]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
chorus.h: Consistently define *_DEBUGGING_INFO with the value 1.
[gcc.git] / gcc / ChangeLog
CommitLineData
23532de9
JT
12002-08-29 Jason Thorpe <thorpej@wasabisystems.com>
2
3 * config/chorus.h: Consistently define *_DEBUGGING_INFO with
4 the value 1. Do not undef before defining.
5 * config/darwin.h: Likewise.
6 * config/dbx.h: Likewise.
7 * config/dbxcoff.h: Likewise.
8 * config/dbxelf.h: Likewise.
9 * config/elfos.h: Likewise.
10 * config/interix.h: Likewise.
11 * config/lynx-ng.h: Likewise.
12 * config/lynx.h: Likewise.
13 * config/netware.h: Likewise.
14 * config/psos.h: Likewise.
15 * config/svr3.h: Likewise.
16 * config/alpha/alpha.h: Likewise.
17 * config/alpha/elf.h: Likewise.
18 * config/alpha/vms.h: Likewise.
19 * config/arc/arc.h: Likewise.
20 * config/arm/aout.h: Likewise.
21 * config/arm/coff.h: Likewise.
22 * config/c4x/c4x.h: Likewise.
23 * config/h8300/h8300.h: Likewise.
24 * config/i386/cygwin.h: Likewise.
25 * config/i386/djgpp.h: Likewise.
26 * config/i386/gas.h: Likewise.
27 * config/i386/gstabs.h: Likewise.
28 * config/i386/i386-coff.h: Likewise.
29 * config/i386/i386-interix.h: Likewise.
30 * config/i386/sco5.h: Likewise.
31 * config/i386/svr3dbx.h: Likewise.
32 * config/i386/sysv3.h: Likewise.
33 * config/i386/win32.h: Likewise.
34 * config/i386/x86-64.h: Likewise.
35 * config/i960/i960.h: Likewise.
36 * config/ia64/ia64.h: Likewise.
37 * config/ip2k/ip2k.h: Likewise.
38 * config/m32r/m32r.h: Likewise.
39 * config/m68k/3b1.h: Likewise.
40 * config/m68k/3b1g.h: Likewise.
41 * config/m68k/ccur-GAS.h: Likewise.
42 * config/m68k/coff.h: Likewise.
43 * config/m68k/hp2bsd.h: Likewise.
44 * config/m68k/hp310g.h: Likewise.
45 * config/m68k/hp320g.h: Likewise.
46 * config/m68k/hp3bsd.h: Likewise.
47 * config/m68k/hp3bsd44.h: Likewise.
48 * config/m68k/linux-aout.h: Likewise.
49 * config/m68k/m68k-aout.h: Likewise.
50 * config/m68k/mot3300.h: Likewise.
51 * config/m68k/netbsd.h: Likewise.
52 * config/m68k/openbsd.h: Likewise.
53 * config/m68k/pbb.h: Likewise.
54 * config/m68k/plexus.h: Likewise.
55 * config/m68k/sun2.h: Likewise.
56 * config/m68k/sun3.h: Likewise.
57 * config/m68k/tower-as.h: Likewise.
58 * config/m68k/vxm68k.h: Likewise.
59 * config/m88k/aout-dbx.h: Likewise.
60 * config/m88k/m88k-aout.h: Likewise.
61 * config/mcore/mcore-elf.h: Likewise.
62 * config/mcore/mcore-pe.h: Likewise.
63 * config/mips/elf.h: Likewise.
64 * config/mips/elf64.h: Likewise.
65 * config/mips/iris5gas.h: Likewise.
66 * config/mips/iris6.h: Likewise.
67 * config/mips/mips.h: Likewise.
68 * config/mips/sni-gas.h: Likewise.
69 * config/mmix/mmix.h: Likewise.
70 * config/ns32k/netbsd.h: Likewise.
71 * config/pa/pa64-hpux.h: Likewise.
72 * config/romp/romp.h: Likewise.
73 * config/rs6000/sysv4.h: Likewise.
74 * config/rs6000/xcoff.h: Likewise.
75 * config/sh/coff.h: Likewise.
76 * config/sh/elf.h: Likewise.
77 * config/sparc/linux64.h: Likewise.
78 * config/sparc/liteelf.h: Likewise.
79 * config/sparc/netbsd.h: Likewise.
80 * config/sparc/openbsd.h: Likewise.
81 * config/sparc/pbd.h: Likewise.
82 * config/sparc/sp64-elf.h: Likewise.
83 * config/sparc/sp86x-elf.h: Likewise.
84 * config/sparc/sparc.h: Likewise.
85 * config/vax/vax.h: Likewise.
86 * config/vax/vaxv.h: Likewise.
87
5e98fba2
DD
882002-08-29 "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
89
90 * h8300.c (shift_alg_hi): Various tweaks to improve performance
91 of HImode shifts.
92 (get_shift_alg): Corresponding changes.
93
43852342
JDA
942002-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
95
96 * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
97
44bb111a
RH
982002-08-29 Richard Henderson <rth@redhat.com>
99
100 * expr.h (enum block_op_methods): New.
101 (emit_block_move): Update prototype.
102 * expr.c (block_move_libcall_safe_for_call_parm): New.
103 (emit_block_move_via_loop): New.
104 (emit_block_move): Use them. New argument METHOD.
105 (emit_push_insn): Always respect the given alignment.
106 (expand_assignment): Update call to emit_block_move.
107 (store_expr, store_field, expand_expr): Likewise.
108 * builtins.c (expand_builtin_apply): Likewise.
109 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
110 * function.c (expand_function_end): Likewise.
111 * config/sh/sh.c (sh_initialize_trampoline): Likewise.
112 * config/sparc/sparc.c (sparc_va_arg): Likewise.
113 * calls.c (expand_call, emit_library_call_value_1): Likewise.
114 (save_fixed_argument_area): Use emit_block_move with
115 BLOCK_OP_CALL_PARM instead of move_by_pieces.
116 (restore_fixed_argument_area): Likewise.
117 (store_one_arg): Fix alignment parameter to emit_push_insn.
118
08b3d104
JDA
1192002-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
120
121 * install.texi (hppa64-hp-hpux11*): Document installation procedure.
122
ce4e9970 1232002-08-29 Catherine Moore <clm@redhat.com>
8376061d
CM
124
125 * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
126 NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
127 (PREDICATE_CODES): Include new predicates.
128 (RTX_COSTS): Handle UMOD and UDIV. Tune MULT for v850e.
129 (TARGET_SWITCHES): Add strict-align.
130 (TARGET_STRICT_ALIGN): New.
131 (MASK_DEFAULT, STRICT_ALIGNMENT): Redefine.
132 * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
133 Define.
134 (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
135 v850_muldi3.
136 * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
137 L_callt_save_r2_r31, L_return_r2_r31,
138 L_save_all_interrupt): Change addi to add.
139 (L_save_interrupt, L_return_interrupt): Rework.
140 (__return_r31): Correct .size directive.
141 (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
142 (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
143 New routines.
144 * config/v850/v850.c (expand_prologue): Call
145 gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
146 gen_callt_return_interrupt and gen_callt_save_all_interrupt.
147 (reg_or_int9_operand): New predicate.
148 (reg_or_const_operand): New routine.
149 * config/v850/v850.md (return_interrupt): Changed from
150 restore_interrupt.
151 (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
152 (callt_save_interrupt): Change save sequence.
153 (callt_return_interrupt): New.
154 (save_interrupt): Don't use runtime function for LONG_CALLS
155 and TARGET_PROLOG_FUNCTION.
156 (save_all_interrupt): Likewise.
157 (mulsi3): Use new predicate.
158 (moviscc): Disallow some combination of constants.
159 Fix define_split for sasf insns, so that it will not generate bad
160 code if operand0 and operand5 are the same.
161 * config/v850/v850-protos.h: Prototype new predicates.
162
585e661a
GDR
1632002-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
164
165 * c-common.c (builtin_define_type_precision): New function.
166 (cb_register_builtins): Use it. Define __WCHAR_UNSIGNED__ is
167 wchar_t is unsigned in C++.
168 * doc/cpp.texi (Common Predefined Macros): Document
169 __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
170 __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
171 __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
172
bd8f9aec
SP
1732002-08-28 Sylvain Pion <pion@cs.nyu.edu>
174
175 * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
176 section. Mention that it is enabled by -Wall.
177 (-Wall): Mention that there can be language-specific warnings as well.
178 (-Wctor-dtor-privacy): Mention that it is enabled by default.
179 (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
180
58ab7171
R
181Wed Aug 28 15:35:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
182
183 * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
184 if it is ever live.
185
186 * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
187 attribute for SHCOMPACT.
188
189 * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
190 appropriately.
191 (FUNCTION_BOUNDARY): Specify only the minimum alignment required
192 by the ABI.
193
194 * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
195
27f4b67e
JT
1962002-08-28 Jason Thorpe <thorpej@wasabisystems.com>
197
198 * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
199 "MASK_GAS|MASK_ABICALLS".
200 * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
201 (TARGET_DEFAULT): Remove.
202 (MACHINE_TYPE): Undefine before defining.
203 (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
204
eca7f13c
MM
2052002-08-27 Mark Mitchell <mark@codesourcery.com>
206
207 * c-common.c (warn_abi): New variable.
208 * c-common.h (warn_abi): Likewise.
209 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
210 (c_common_decode_option): Handle it.
7ee425e4 211 * doc/invoke.texi: Document -Wabi.
eca7f13c 212
ece4ce85
NP
213Tue Aug 27 23:03:52 2002 Nicola Pero <n.pero@mi.flashnet.it>
214
215 * c-common.c (warn_undeclared_selector): New variable.
216 * c-common.h (warn_undeclared_selector): Idem.
217 * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
218 to on when -Wundeclared-selector is found.
219 (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
220 * objc/objc-act.c (build_selector_expr): If
221 warn_undeclared_selector is set, check that the selector has
222 already been defined, and emit a warning if not.
223
b4378319
NC
2242002-08-27 Nick Clifton <nickc@redhat.com>
225 Catherine Moore <clm@redhat.com>
226 Jim Wilson <wilson@cygnus.com>
227
228 * config.gcc: Add v850e-*-* target.
229 Add --with-cpu= support for v850.
230 * config/v850/lib1funcs.asm: Add v850e callt functions.
231 * config/v850/v850.h: Add support for v850e target.
232 * config/v850/v850.c: Add functions to support v850e target.
233 * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
234 * config/v850/v850.md: Add patterns for v850e instructions.
235 * doc/invoke.texi: Document new v850e command line switches.
236
ef261fee
R
237Tue Aug 27 18:30:47 2002 J"orn Rennecke <joern.rennecke@superh.com>
238 Aldy Hernandez <aldyh at redhat dot com>
239
240 * doc/tm.texi: Applied numerous fixes to the automaton based
241 scheduler descrition.
242
c60ee6f5
JH
243Tue Aug 27 19:51:05 CEST 2002 Jan Hubicka <jh@suse.cz>
244
245 * i386.c (classify_argument): Handle variable sized objects.
246
1985ef90
JH
247Tue Aug 27 19:18:16 CEST 2002 Jan Hubicka <jh@suse.cz>
248
249 * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
250
7acc97e0
JH
251Tue Aug 27 18:01:45 CEST 2002 Jan Hubicka <jh@suse.cz>
252
253 * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
254
23327dae
JH
255Tue Aug 27 18:00:11 CEST 2002 Jan Hubicka <jh@suse.cz>
256
257 * i386.c (classify_argument): Properly compute word size of the analyzed object.
258
c49439f1
R
259Tue Aug 27 14:39:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
260
261 * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
262 mac_gp ftrc_s and cwb. Add / Adjust definitions in individual insn
263 accordingly.
264 (attribute insn_class): Provide default definitions based on type.
265 Remove all insn-specific settings.
266 (various function units): Remove old SH4 scheduling.
267 (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
268 New attributes. Set them where appropriate.
269 (cpu unit FS): Don't define / use.
270 (F3, load_store): New cpu units.
271 (F01): New reservation.
272 (all insn_reservations): Make dependent on sh4 pipeline model.
273 Fix latencies.
274 (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
275 (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
276 (mt insn_reservation): Use type mt_group.
277 (insn_reservation load_store): Split into sh4_load, sh4_load_si,
278 sh4_fload and sh4_store.
279 (insn_reservation branch_zero and branch): Replace with sh4_branch.
280 (insn_reservation branch_far): Replace with sh4_return.
281 (insn_reservation return_from_exp): Rename to:
282 (sh4_return_from_exp). Change to be just d_lock*5.
283 (insn_reservation lds_to_pr): Rename to:
284 (sh4_lds_to_pr). Change to be just d_lock*2.
285 (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
286 d_lock*2.
287 (insn_reservation prload_mem): Rename to:
288 (sh4_prstore_mem). Change to d_lock*2,nothing,memory.
289 (insn_reservation fpscr_store): Rename to:
290 (fpscr_load). Change to d_lock,nothing,F1*3.
291 (insn_reservation fpscr_store_mem): Rename to:
292 (fpscr_load_mem). Change to d_lock,nothing,(F1+memory),F1*2.
293 (insn_reservation multi): Change to
294 d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
295 (insn_reservation fp_arith): Change to issue,F01,F2.
296 (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
297 (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
298 (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
299 (insn_reservation fp_double_cmp): Change to
300 d_lock,(d_lock+F01),F1+F2,F2.
301 (insn_reservation dp_div): Change to
302 issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
303 * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
304 (sh_adjust_cost, SHcompact): Differentiate between different
305 kinds of dependencies. Drop factor of ten for superscalar.
306 Use new instruction types. Add new exception rules.
307
308 * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
309
310 * sh.md (mperm_w): Add DONE.
311
f34fc46e
DE
3122002-08-27 David Edelsohn <edelsohn@gnu.org>
313
314 * longlong.h: Import current PowerPC defintion from GMP-4.1.
315
316 * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
317
318 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
319
dcb44500
R
320Tue Aug 27 13:53:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
321
322 * sh.h (MAX_FIXED_MODE_SIZE): Define.
323
3ec07554
GDR
3242002-08-27 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
325
326 * doc/cpp.texi (Common Predefined Macros): Don't mess with table
327 delimiter.
328
35885eab
GDR
3292002-08-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
330
331 * c-common.c (cpp_define_data_format): New function.
332 (cb_register_builtins): Call it.
333
334 * doc/cpp.texi (Common Predefined Macros): Document
335 __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
336 __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
337 __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
338 __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
339 __TARGET_USES_VAX_H_FLOAT__.
340
d632dee9
ZL
3412002-08-26 Ziemowit Laski <zlaski@apple.com>
342
343 * objc/objc-act.c (get_super_receiver): If inside a class method
344 of a category, cast the receiver to 'id' before accessing the 'isa'
345 field so that <objc/objc-class.h> is not needed. For NeXT runtime.
346
c3cc6b78
UW
3472002-08-26 Ulrich Weigand <uweigand@de.ibm.com>
348
349 * config/s390/s390-protos.h (s390_function_prologue,
350 s390_function_epilogue): Remove.
351 config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
352 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
353
354 config/s390/s390.c (s390_machine_dependent_recorg): New function.
355 config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
356 config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
357 config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
358 to being called from MACHINE_DEPENDENT_REORG. Update regs_ever_live.
359
360 config/s390/s390.c (s390_frame_info): Inline save_fprs_p. Always
361 assume BASE_REGISTER and RETURN_REGNUM need to be saved.
362 (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
363 function is not a leaf function. Use save_gprs and restore_gprs.
364 (s390_emit_epilogue): Likewise.
365 (save_gprs, restore_gprs): New functions.
366 (struct s390_frame): Remove return_reg_saved_p member.
367 (save_fprs_p): Remove.
368 (s390_optimize_prolog): New function.
369 (s390_legitimate_reload_constant): Remove now unnecessary check.
370
371 (s390_function_count): Remove.
372 (s390_output_symbolic_const): Replace s390_function_count by
373 current_function_funcdef_no.
374 (s390_output_constant_pool): Likewise.
375
376 (legitimize_pic_address): Use regs_ever_live to track PIC register
377 instead of current_function_uses_pic_offset_table.
378 (s390_emit_prologue): Likewise.
379 config/s390/s390.md ("call", "call_value"): Likewise.
380
3f662186
NB
3812002-08-26 Neil Booth <neil@daikokuya.co.uk>
382
383 * c-opts.c (find_opt): Don't complain about wrong languages
384 here. Return exact matches even for wrong language.
385 (c_common_decode_option): Complain about wrong languages
386 here.
387
b6128b8c
SH
3882002-08-24 Stuart Hastings <stuart@apple.com>
389
390 * function.h (struct function): Add flag
391 all_throwers_are_sibcalls.
392 * except.c (set_nothrow_function_flags): Replaces
393 nothrow_function_p. Set new flag.
394 * except.h (set_nothrow_function_flags): Replaces
395 nothrow_function_p.
396 * dwarf2out.c (struct dw_fde_struct): Add flag
397 all_throwers_are_sibcalls.
398 (output_call_frame_info): Test it.
399 (dwarf2out_begin_prologue) Propagate it from cfun to
400 dw_fde_struct.
401 * toplev.c (rest_of_compilation): Update calls to
402 nothrow_function_p.
403
280cf02a
ZW
4042002-08-23 Zack Weinberg <zack@codesourcery.com>
405
406 * ggc-page.c (compute_inverse): Short circuit calculation for
407 object sizes larger than half a page.
408
c6664446
DE
4092002-08-23 David Edelsohn <edelsohn@gnu.org>
410
411 * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
412 DEFAULT_ABI == ABI_AIX like PIC. Test PIC & reloc for readonly
413 default.
414 (rs6000_elf_unique_section): Likewise.
415
da57d233
KG
4162002-08-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
417
418 * ns32k.c (ns32k_globalize_label): Delete.
419 * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
420
56a7189a
AM
4212002-08-23 Alan Modra <amodra@bigpond.net.au>
422
423 * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
424 for loading delta with num_insns_constant_wide. Calculate
425 delta_low, delta_high without using a conditional.
426
d65b1d77
JM
4272002-08-22 Jason Merrill <jason@redhat.com>
428
429 * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
430 * c-common.def: Adjust.
431 * c-dump.c (c_dump_tree): Adjust.
432 * c-semantics.c (genrtl_return_stmt): Adjust.
433 * c-pretty-print.c (pp_c_statement): Adjust.
434 * tree-inline.c (copy_body_r): Adjust.
435
8537ed68
ZW
4362002-08-22 Zack Weinberg <zack@codesourcery.com>
437
438 * ggc-page.c: Avoid division in ggc_set_mark.
439 (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
440 compute_inverse): New.
441 (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
442 (init_ggc): Initialize inverse_table.
443
8567c70f
TT
4442002-08-22 Tom Tromey <tromey@redhat.com>
445
446 * doc/install.texi (Configuration): Document --datadir.
447
fde59d4b
AO
4482002-08-22 Alexandre Oliva <aoliva@redhat.com>
449
450 * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
451
44ddc79a
HPN
4522002-08-22 Hans-Peter Nilsson <hp@bitrange.com>
453
454 * gengtype-lex.l (ID): Allow underscore as first character.
455
b275d088
DE
4562002-08-21 David Edelsohn <edelsohn@gnu.org>
457
458 * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
459 function.
460 (rs6000_xcoff_asm_named_section): Rename.
461 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
462
57ce46bb
TT
4632002-08-21 Tom Tromey <tromey@redhat.com>
464
465 For PR java/6005 and PR java/7611:
466 * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
467 (fold): Likewise.
468 * langhooks.c (lhd_can_use_bit_fields_p): New function.
469 * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
470 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
471 (LANG_HOOKS_INITIALIZER): Use it.
472 * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
473 field.
474
27d30956
SS
4752002-08-21 Stan Shebs <shebs@apple.com>
476
477 * tree.c (finish_vector_type): Fix a typo in a comment.
478 * Makefile.in: Fix "the the" stutters in comments.
479 * genautomata.c: Ditto.
480 * ifcvt.c: Ditto.
481 * regrename.c: Ditto.
482 * config/alpha/alpha.c: Ditto.
483 * config/alpha/vms-crt0-64.c: Ditto.
484 * config/alpha/vms-crt0.c: Ditto.
485 * config/alpha/vms-psxcrt0-64.c: Ditto.
486 * config/alpha/vms-psxcrt0.c: Ditto.
487 * config/d30v/d30v.h: Ditto.
488 * config/fr30/fr30.h: Ditto.
489 * config/rs6000/rs6000.c: Ditto.
490 * config/stormy16/stormy16.h: Ditto.
491 * doc/md.texi: Ditto.
8537ed68 492
d873d827
JDA
4932002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
494
495 * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
496
b462d4ab
JM
4972002-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
498
499 * c-decl.c (grokdeclarator): Make invalid combinations with long,
500 short, signed or unsigned into hard errors. Fixes PR c/4319.
501 Also make duplicate modifiers such as "short short" into hard
502 errors.
503
b65d23aa 5042002-08-21 Andrew Pinski <pinskia@physics.uc.edu>
8537ed68 505 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
b65d23aa
AP
506
507 * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
508 to the actual end. Add '@end table' and '@table @code'.
8537ed68 509
3823f0b2
GK
5102002-08-20 Geoffrey Keating <geoffk@redhat.com>
511
8d25d915
GK
512 * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
513
3823f0b2
GK
514 * unroll.c (biv_total_increment): Don't try to compute the total
515 increment for FP BIVs.
516
5eb99654
KG
5172002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
518
519 * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
520 * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
521 ASM_OUTPUT_ALIGNED_BSS): Use target hook.
522 * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
523 * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
524 * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
525 (GLOBAL_ASM_OP): Define.
526 * arm.c (aof_globalize_label): New function.
527 (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
528 * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
529 * c4x.c (c4x_globalize_label): New function.
530 (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
531 * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
532 (GLOBAL_ASM_OP): Define.
533 * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
534 * darwin-protos.h (darwin_globalize_label): Declare.
535 * darwin.c (darwin_globalize_label): New function.
536 * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
537 (ASM_GLOBALIZE_LABEL): Delete.
538 (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
539 * dsp16xx.c (asm_output_common): Use target hook.
540 * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
541 * frv.h (ASM_GLOBALIZE_LABEL): Delete.
542 (GLOBAL_ASM_OP): Define.
543 * i370.c (i370_globalize_label): New function.
544 (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
545 * i370.h (ASM_GLOBALIZE_LABEL): Delete.
546 * i386.c (ix86_asm_file_end): Use target hook.
547 * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
548 (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
549 * ia64.c (ia64_asm_output_external): Likewise.
550 * ia64/sysv4.h: Update comment.
551 * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
552 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
553 * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
554 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
555 * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
556 * mmix-protos.h (mmix_asm_globalize_label): Delete.
557 * mmix.c (mmix_asm_globalize_label): Likewise.
558 * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
559 (GLOBAL_ASM_OP): Define.
560 * ns32k.c (ns32k_globalize_label): New function.
561 * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
562 (ASM_GLOBALIZE_LABEL): Delete.
563 * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
564 (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
565 * pa.c (pa_globalize_label): New function.
566 * pa.h (ASM_GLOBALIZE_LABEL): Delete.
567 (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
568 * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
569 (GLOBAL_ASM_OP): Define.
570 (TARGET_ASM_GLOBALIZE_LABEL): Undef.
571 * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
572 * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
573 (GLOBAL_ASM_OP): Define.
574 * v850.c (v850_output_aligned_bss): Use target hook.
575 * vax.c (vms_globalize_label): New function.
576 (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
577 * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
578 (GLOBAL_ASM_OP): Define.
579 * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
580 * doc/tm.texi: Update docs.
581 * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
582 target hook.
583 * final.c (output_alternate_entry_point): Likewise.
584 * hooks.c (hook_FILEptr_constcharptr_void): New function.
585 * hooks.h (hook_FILEptr_constcharptr_void): Declare.
586 * output.h (assemble_global): Delete.
587 (default_globalize_label): Declare.
588 * system.h (ASM_GLOBALIZE_LABEL): Poison.
589 * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
590 (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
591 * target.h (gcc_target): Add globalize_label member.
592 * varasm.c (asm_output_bss, asm_output_aligned_bss,
593 globalize_decl): Use target hook.
594 (assemble_global): Delete.
595 (default_globalize_label): New function.
596
f8f28a75
KG
5972002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
598
599 * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
600
92b5aacd
DP
6012002-08-20 Devang Patel <dpatel@apple.com>
602 * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
8537ed68 603
761c70aa
KG
6042002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
605
606 * arc.c (output_shift): Use stdio instead of asm_fprintf.
607 * arm.c (thumb_output_function_prologue): Likewise.
608 * avr.c (print_operand): Likewise.
609 * c4x.c (c4x_print_operand): Likewise.
610 * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
611 ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
612 * cris.c (cris_target_asm_function_prologue,
613 cris_asm_output_mi_thunk): Likewise.
614 * h8300.c (print_operand): Likewise.
615 * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
616 * ip2k.c (print_operand): Likewise. Fix format specifier.
617 * m68hc11.c (asm_print_register, print_operand,
618 print_operand_address): Use stdio instead of asm_fprintf.
619 (print_operand_address): Fix format specifier.
620 * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
621 ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
622 asm_fprintf.
623 * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
624 * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
625 * m68k.c (m68k_output_function_prologue,
626 m68k_output_function_epilogue, print_operand): Likewise.
627 * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
628 Likewise. Fix format specifier.
629 * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
630 * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
631 * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
632
5ce6f47b
EC
6332002-08-15 Eric Christopher <echristo@redhat.com>
634 Jeff Knaggs <jknaggs@redhat.com>
635
636 * config.gcc (mipsisa64sr71k-elf): New target.
637 * config/mips/sr71k.md: New file.
638 * config/mips/mips.md: Use it.
639 (rot*): Add sr71k specifics.
640 * config/mips/t-sr71k: New file.
641 * config/mips/mips.h (sr71k): New cpu.
642 (TARGET_SR71K): Use it.
643 (TUNE_SR71K): Ditto.
644 (GENERATE_BRANCHLIKELY): Ditto.
645 (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
646 ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
647 * config/mips/mips.c (sr71k): New cpu.
648 (mips_use_dfa_pipeline_interface): Use.
649
6502002-08-15 Eric Christopher <echristo@redhat.com>
8537ed68 651 Richard Sandiford <rsandifo@redhat.com>
5ce6f47b
EC
652 Aldy Hernandez <aldyh@redhat.com>
653 Graham Stott <grahams@redhat.com>
654 Michael Meissner <meissner@redhat.com>
655 Gavin Romig-Koch <gavin@redhat.com>
656 Ken Raeburn <raeburn@cygnus.com>
657 Alexandre Oliva <aoliva@redhat.com>
658
659 * config.gcc (mips64vr-elf): New target.
660 * config/mips/5400.md: New file.
661 * config/mips/5500.md: Ditto.
662 * config/mips/mips.md: Use them.
663 (frsqrt): New.
664 * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
665 cpus.
666 (mips_issue_rate): Use them.
667 (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
668 (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
669 * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
670 cpus.
671 (TARGET_MIPSx): Use them.
672 (TUNE_MIPSx): Ditto.
673 (GETNATE_MULT3_SI): Ditto.
674 (ISA_HAS_BRANCHLIKELY): Ditto.
675 (ISA_HAS_CONDMOVE): Ditto.
676 (ISA_HAS_NMADD_NMSUB): Ditto.
677 (ISA_HAS_MULHI): New. Ditto.
678 (ISA_HAS_MULS): Ditto.
679 (ISA_HAS_MSAC): Ditto.
680 (ISA_HAS_MACC): Ditto.
681 (ISA_HAS_ROTR_SI): Ditto.
682 (ISA_HAS_ROTR_DI): Ditto.
683 (RTX_COSTS): Use.
684
48209ce5
JDA
6852002-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
686
687 * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
688 at head.
689 (remove_dup_nonsys_dirs): New function.
690 (remove_dup_dirs): Change argument head to head_ptr. Remove warnings.
691 (merge_include_chains): Remove non-system include directories from
692 quote and bracket include chains when they duplicate equivalent system
693 directories.
694 * doc/cpp.texi (-I): Update.
8537ed68
ZW
695 * doc/cppopts.texi (-I): Update.
696 * doc/install.texi (--with-local-prefix): Further document usage of
48209ce5
JDA
697 this option.
698 * doc/invoke.texi (-I): Update.
699
4ca79136
RH
7002002-08-20 Richard Henderson <rth@redhat.com>
701
702 * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
703 (emit_block_move): Split out subroutines.
704 (emit_block_move_via_movstr): New.
705 (emit_block_move_via_libcall): New. Emit bcopy via normal call also.
706 (emit_block_move_libcall_fn): New. Construct function prototype for
707 bcopy as well.
708 (clear_storage): Split out subroutines.
709 (clear_storage_via_clrstr): New.
710 (clear_storage_via_libcall): New. Emit bzero as a normal call also.
711 (clear_storage_libcall_fn): New. Construct function prototype for
712 bzero as well.
713 (emit_push_insn): Use emit_block_move.
714 (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
715 (store_constructor): Likewise.
716
9f05cef3
ZL
7172002-08-19 Ziemowit Laski <zlaski@apple.com>
718
719 * objc/objc-act.c (building_objc_message_expr): Rename to
720 current_objc_message_selector.
721
1bd5981b
ZL
7222002-08-19 Ziemowit Laski <zlaski@apple.com>
723
724 * objc/objc-act.c (build_ivar_chain): Remove.
725 (objc_copy_list): Likewise.
726 (get_class_ivars): Inline call to removed build_ivar_chain
727 function. Save off a clean copy of ivars in the CLASS_OWN_IVARS
728 slot; use that slot (rather than CLASS_IVARS) when accessing
729 ivars for base classes. Call copy_list and chainon instead of
730 objc_copy_list.
731 (build_private_template): Call get_class_ivars instead of
732 build_ivar_chain.
733 (start_class): Allocate room for the CLASS_OWN_IVARS slot.
5ce6f47b 734 (continue_class): Call get_class_ivars instead of
1bd5981b
ZL
735 build_ivar_chain.
736 (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
737 of DECL_BIT_FIELD (which may have been cleared).
738 * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
739
2bf087c0
KG
7402002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
741
742 * genautomata.c (output_translate_vect, output_state_ainsn_table,
743 output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
744 in output file.
745 (output_internal_min_issue_delay_func): Initialize variable in
746 output file.
747
3fcd079e
AO
7482002-08-19 Alexandre Oliva <aoliva@redhat.com>
749
750 * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
751 (stage2_build, stage3_build, stage4_build): Likewise, to CC.
752
71012d97
GK
7532002-08-19 Geoffrey Keating <geoffk@redhat.com>
754 Steve Ellcey <sje@cup.hp.com>
755
756 * machmode.h (SCALAR_INT_MODE_P): New macro to test for
757 scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
758 * explow.c (trunc_int_for_mode): Abort when the mode is not
759 a scaler integer mode.
760 * combine.c (expand_compound_operation): Don't expand Vector
761 or Complex modes into shifts.
762 (expand_field_assignment): Don't do bitwise arithmatic and
763 shifts on Vector or Complex modes.
764 (simplify_comparison): Don't call trunc_int_for_mode
765 for VOIDmode.
766 * recog.c (general_operand): Likewise.
767 (immediate_operand): Likewise.
768 (nonmemory_operand): Likewise.
769
af8cb5c5
DE
7702002-08-19 David Edelsohn <edelsohn@gnu.org>
771
772 * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
773 multi-instruction SImode constant. Add REG_EQUAL note.
774 * config/rs6000/rs6000.md (movsi splitter): Use
5ce6f47b 775 rs6000_emit_set_const.
af8cb5c5 776
9bc146b3
KG
7772002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
778
779 * tree-inline.c (initialize_inlined_parameters): Wrap variable in
780 the macro test controlling its use.
781
66df2ac2
L
7822002-08-18 H.J. Lu (hjl@gnu.org)
783
784 * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
785 crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
786 gnu_ld=yes.
787 (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
788 i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
789 s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
790 xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
791 here.
792 (cris-*-linux*): Remove setting thread_file here.
793
463f1b2b
NB
7942002-08-18 Neil Booth <neil@daikokuya.co.uk>
795
796 PR preprocessor/7602
797 * cppinit.c (path_include): Treat the system environment
798 variables as being cxx_aware.
799
2984fe64
JM
8002002-08-17 Joseph S. Myers <jsm@polyomino.org.uk>
801
802 * c-decl.c (flexible_array_type_p): New function.
803 (grokdeclarator, finish_struct): Use it.
804 * doc/extend.texi: Document constraints on use of structures with
805 flexible array members.
806
fded6d78
RS
8072002-08-17 Richard Sandiford <rsandifo@redhat.com>
808
809 * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
810 config/mips/t-r3900 (MULTILIB_MATCHES): Define.
811 * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
812
8aa5074e
SS
8132002-08-16 Stan Shebs <shebs@apple.com>
814
815 * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
816 for ObjC with -fnext-runtime.
817 * doc/cpp.texi: Document it.
818
f97a5bda
JJ
8192002-08-16 Janis Johnson <janis187@us.ibm.com>
820
821 * doc/install.texi (Final installation): Replace links to individual
822 build status pages with a link to a common page that lists them all.
823
d3075b6c
SP
8242002-08-16 Sylvain Pion <pion@cs.nyu.edu>
825
826 * doc/invoke.texi: Fix typo.
827
fdf68669
DE
8282002-08-16 David Edelsohn <edelsohn@gnu.org>
829
830 * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
831
8322002-08-16 Andrew Haley <aph@redhat.com>
d436bff8
AH
833
834 * tree-inline.c: Add includes for Java inliner.
835 (remap_decl): Don't handle anonymous types for Java.
836 (remap_block): Add handling for Java trees.
837 (copy_scope_stmt): Conditionalize for non-Java use only.
838 (copy_body_r): Handle Java trees. Add handling for
839 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
840 (initialize_inlined_parameters): Handle Java trees.
841 (declare_return_variable): Likewise.
842 (expand_call_inline): Handle Java trees.
843 (walk_tree): Likewise.
844 (copy_tree_r): Don't handle SCOPE_STMTs for Java.
845 (add_stmt_to_compound): New function.
846
204250d2
RH
8472002-08-15 Richard Henderson <rth@redhat.com>
848
849 * Makefile.in (LOOSE_WARN): Remove -fno-common.
850 (NOCOMMON_FLAG): New substitution point.
851 (GCC_WARN_CFLAGS): Include it.
852 * configure.in (ac_checking): Set nocommon_flag.
853 (nocommon_flag): New substitution point.
854
25587e40
AO
8552002-08-15 Alexandre Oliva <aoliva@redhat.com>
856
857 * c-tree.h (skip_evaluation): Move declaration...
858 * c-common.h: ... here.
859 * c-typeck.c (build_external_ref): Don't assemble_external nor
860 mark a tree as used if skip_evaluation is set.
861 * c-parse.in (typeof): New non-terminal to set skip_evaluation
862 around TYPEOF.
863 (typespec_nonreserved_nonattr): Use it.
864
702ada3d
DR
8652002-08-15 Douglas B Rupp <rupp@gnat.com>
866
867 * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
868 (xcoff_debug_hooks): Update end_prologue.
869 * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
870 * debug.h (end_prologue): Add file arg.
871 (end_epilogue): Add line and file args.
872 (dwarf2out_end_epilogue): Add line and file args.
873 (vmsdbgout_after_prologue): Remove.
874 * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
875 (dwarf2_debug_hooks): Update end_prologue.
876 * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
877 (dwarfout_end_prologue): Add file arg.
878 * final.c (vmsdbgout_after_prologue): Remove
879 (final_end_function): Update end_epilogue call.
880 (final_scan_insn): Update end_prologue call.
881 * sdbout.c (sdbout_end_epilogue): Add line and file args.
882 (sdbout_end_prologue): Add file arg.
883 (sdb_debug_hooks): Update end_prologue.
884 (sdb_begin_prologue): Update sdbout_end_prologue call.
885 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
886 vmsdbgout_end_function.
887 (vmsdbgout_end_prologue): New function renamed from
888 vmsdbgout_after_prologue. Call vmsdbgout_source_line.
889 (vmsdbgout_end_function): New function.
890 (vmsdbgout_end_epilogue): Add line and file args. Call
891 vmsdbgout_source_line.
892 (write_pclines): Write only valid line numbers.
893 (write_srccorr): Don't write source correlation records if 0 lines.
894 * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
895
9ef30f83
SE
8962002-08-15 Steve Ellcey <sje@cup.hp.com>
897
898 * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
899 (_Unwind_Internal_Ptr): 32 bit version for use in
900 read_encoded_value_with_base.
901 * gcc/unwind-pe.h (read_encoded_value_with_base): Use
902 _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
903 right size.
904
f7043461
KG
9052002-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
906
907 * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
908 signed/unsigned warnings.
909
910 * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
911 record_reg_classes): Likewise.
912
913 * reload.c (reload_inner_reg_of_subreg, push_reload,
914 find_reloads_address_1): Likewise.
915
b4d330e1
DE
9162002-08-15 David Edelsohn <edelsohn@gnu.org>
917
918 * rs6000.c (output_mi_thunk): Return to function section on
919 TARGET_ELF.
920
921 * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
922
61f02ff5
UW
9232002-08-15 Ulrich Weigand <uweigand@de.ibm.com>
924
925 * config/s390/s390.c (legitimize_address): Optimize loading
926 of large displacements.
927
1330f7d5
DR
9282002-08-14 Douglas B Rupp <rupp@gnat.com>
929
930 * config/alpha/alpha-protos.h: Update.
931
932 * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
933 (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
934 (alpha_linkage_symbol_p): New static function.
935 (print_operand_address): Print linkage operand.
936
937 (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
938 variables.
939 (reloc_kind): New enum.
940 (struct alpha_funcs): New struct.
941 (struct alpha_links): Add reloc_kind field. Rename links_kind field.
942
943 (alpha_need_linkage): Rewrite.
944 (alpha_use_linkage): New global function.
945 (alpha_write_linkage): Rewrite and make static.
946 (alpha_write_one_linkage): Rewrite
947
948 (alpha_start_function): Remove procedure descriptor output.
949 (alpha_end_function): Write linkages at end of each function.
950
951 * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
952 (call_vms_1, call_value_vms_1): Rewrite.
953
954 * config/alpha/vms.h (ASM_FILE_END): Remove.
955
d1f1cc6a
RH
9562002-08-14 Richard Henderson <rth@redhat.com>
957
958 * ggc-page.c (RTL_SIZE): New.
959 (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
960 * rtl.def (BARRIER, NOTE): Pad to 9 slots.
961
23626154
RH
9622002-08-14 Richard Henderson <rth@redhat.com>
963
964 * calls.c: Include target.h.
965 * Makefile.in (calls.o): Update.
966
967 * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
968 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
969
fd350d24
RH
9702002-08-14 Richard Henderson <rth@redhat.com>
971
972 * Makefile.in (LOOSE_WARN): Add -fno-common.
973 * c-common.h (constant_string_class_name): Add missing extern.
974
182d89a3
NB
9752002-08-15 Neil Booth <neil@daikokuya.co.uk>
976
977 PR preprocessor/7358
978 * c-opts.c (check_deps_environment_vars): Ignore main file
979 for SUNPRO_DEPENDENCIES.
980 * cppfiles.c (stack_include_file): Ignore main file if
981 appropriate.
982 * cpplib.h (struct cpp_options): New member in deps.
983 * doc/cppenv.texi: Update.
984
8bfb1467
NB
9852002-08-14 Neil Booth <neil@daikokuya.co.uk>
986
987 PR preprocessor/7526
988 * cpplib.c (run_directive): Kludge so _Pragma dependency works.
989
41685063
NS
9902002-08-14 Nathan Sidwell <nathan@codesourcery.com>
991
992 * doc/invoke.texi (-a): Remove documentation.
993 (-fprofile-arcs): Remove reference to -a, -ax options.
994 * doc/gcov.texi (Gcov Data Files): Data might be merged.
995
77893a23
GDR
9962002-08-14 Gabriel Dos Reis <gdr@nerim.net>
997
998 Fix PR/7566
999 * c-semantics.c (genrtl_case_label): Don't (mis)use
5ce6f47b 1000 warning_with_decl.
77893a23 1001
260f91c2
DJ
10022002-08-14 Dale Johannesen <dalej@apple.com>
1003
8537ed68 1004 * explow.c (emit_stack_restore): Emit memory clobbers
260f91c2
DJ
1005 preceding the stack pop, to prevent the scheduler from
1006 moving refs to variable arrays below this pop.
1007 * reload1.c (reload): Preserve these clobbers for sched2.
1008 * doc/rtl.texi: Document clobber (mem:BLK (scratch)).
1009
cd79e210
NB
10102002-08-14 Neil Booth <neil@daikokuya.co.uk>
1011
1012 * c-opts.c (c_common_post_options): Correct test.
1013
3eb75a73
KG
10142002-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1015
1016 * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
1017 order in call to fprintf.
1018
be3a0ce2
RO
10192002-08-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1020
1021 * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
1022
ccfc6cc8
UW
10232002-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1024
5ce6f47b 1025 * reload.c (find_reloads): Handle constraint letters marked by
ccfc6cc8
UW
1026 EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
1027 (alternative_allows_memconst): Likewise.
1028 * reload1.c (maybe_fix_stack_asms): Likewise.
5ce6f47b 1029 * recog.c (asm_operand_ok, preprocess_constraints,
ccfc6cc8
UW
1030 constrain_operands): Likewise.
1031 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
1032 * local-alloc.c (block_alloc, requires_inout): Likewise.
1033 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
1034
1035 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
1036 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
1037 * doc/tm.texi: Document these two new target macros.
1038
1039 * config/s390/s390.c (s390_expand_plus_operand): Accept already
1040 valid operands.
1041 (q_constraint): New function.
1042 config/s390/s390-protos.h (q_constraint): Declare it.
1043 config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
1044 (EXTRA_MEMORY_CONSTRAINT): New macro.
1045
1046 * config/s390/s390.md: Throughout the machine description,
1047 replace all instances of the constraint combinations 'Qo'
1048 or 'oQ' with simply 'Q'.
1049
d6ee9f6f
SC
10502002-08-14 Stephane Carrez <stcarrez@nerim.fr>
1051
1052 * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
1053 * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
1054 (LIBGCC2_CFLAGS): Compile with -mrelax.
1055
8a0b86f5
SC
10562002-08-14 Stephane Carrez <stcarrez@nerim.fr>
1057
1058 * doc/invoke.texi: Document -minmax for 68HC12.
1059
1060 * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
1061 ("uminqi3"): Likewise.
1062 ("uminhi3", "umaxhi3"): Likewise.
1063
1064 * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
1065 (TARGET_MIN_MAX): Define.
1066 (TARGET_SWITCHES): New option -minmax/-mnominmax.
1067
d6381f4e
SC
10682002-08-14 Stephane Carrez <stcarrez@nerim.fr>
1069
1070 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
1071 (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
1072
1073 * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
1074 (ret, declare, farsym): New gas macros.
1075 (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
1076 ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
1077 and declare the symbol far when compiled with -mlong-calls.
5ce6f47b 1078 (__far_trampoline): New for 68HC12 trampoline code to invoke a
d6381f4e
SC
1079 far handler using jsr/bsr.
1080
1081 * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
1082 (jsr): New macro to transform a 'jsr' into a 'call'.
1083
058edcdb
SC
10842002-08-14 Stephane Carrez <stcarrez@nerim.fr>
1085
1086 * doc/invoke.texi: Document -mlong-calls for 68HC12.
1087
1088 * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
1089 -mlong-calls is specified.
5ce6f47b 1090 (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
058edcdb
SC
1091 assembler directives.
1092 (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
1093 (TARGET_SWITCHES): Add -mlong-calls options.
1094 (current_function_far): Declare.
1095
1096 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
1097 into account the page register saved on the stack.
1098 (m68hc11_override_options): Take into account -mlong-calls option.
1099 (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
1100
1101 * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
1102 if the function is going to be in 68HC12 banked memory (-mlong-calls).
1103 ("*return_16bit"): Likewise.
1104 ("*return_void"): Likewise.
1105 ("call", "call_value"): Use call for a far function call.
1106
c79043f3
NB
11072002-08-14 Neil Booth <neil@daikokuya.co.uk>
1108
1109 * toplev.c (parse_options_and_default_flags): Don't call
1110 post_options here.
1111 (general_init): Initialize GC, pools and tree hash here,
1112 instead of lang_independent_init.
1113 (lang_independent_init): Rename backend_init.
1114 (do_compile): Call post_options hook; exit early if there
1115 have been errors after switch processing.
1116 (toplev_main): Update.
1117
6bf346d4
GDR
11182002-08-14 Gabriel Dos Reis <gdr@nerim.net>
1119
1120 * c-pretty-print.h: Guard against multiple inclusion.
1121 Robustify macros.
1122 (pp_c_attributes): Declare.
1123 * c-pretty-print.c (pp_c_attributes): New function.
1124
cbf2f479
KG
11252002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1126
1127 * m68k.c (m68k_output_function_prologue,
1128 m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
1129 and NEWS/MOTOROLA.
1130 * genattrtab.c: Remove dpx2 comment.
1131 * libgcc2.c (__enable_execute_stack): Delete versions for
1132 NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
1133 sony_news/SYSTYPE_BSD.
1134 * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
1135 __gmicro__, __i860__, __NeXT__ and __pyr__.
1136 * rtl.h: Remove convex comment.
1137 * varasm.c: Likewise.
1138
d3969c34
KG
11392002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1140
1141 * c-opts.c (lang_flags): Const-ify.
1142 * ra-build.c (undef_table): Likewise.
1143 * ra.c (eliminables): Likewise.
1144
df89f8e7
GDR
11452002-08-14 Gabriel Dos Reis <gdr@nerim.net>
1146
1147 * tree.h: Guard against multiple inclusion.
1148
cf87d551
HPN
11492002-08-14 Hans-Peter Nilsson <hp@bitrange.com>
1150
1151 * reload1.c (reload_cse_simplify): Before checking
1152 REG_FUNCTION_VALUE_P, check REG_P.
1153
a43c8986
GK
11542002-08-13 Geoffrey Keating <geoffk@redhat.com>
1155
1156 * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
1157
29337351
NB
11582002-08-13 Neil Booth <neil@daikokuya.co.uk>
1159
1160 * c-opts.c (c_common_init_options): Extra braces needed.
1161
8202c8c4
R
1162Tue Aug 13 17:40:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
1163
1164 * sh.c (sh_init_builtins): Add PARAMS to declaration.
1165 (sh_media_init_builtins, sh_expand_builtin): Likewise.
1166 (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
1167 (sh_expand_binop_v2sf): Likewise.
1168 * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
1169 (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
1170 (sh_initialize_trampoline): Likewise.
1171
07893d4f
UW
11722002-08-13 Ulrich Weigand <uweigand@de.ibm.com>
1173
1174 * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
1175 new condition code modes.
1176 s390.c (s390_match_ccmode_set): Handle those new CC modes.
1177 (s390_select_ccmode): Likewise.
1178 (s390_branch_condition_mask): Likewise.
1179
1180 * s390-protos.h (s390_tm_ccmode): Declare.
1181 s390.c (s390_tm_ccmode): New function.
1182 (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
1183
1184 * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
1185 ("*cmpsi_tm2"): Rename to "*tmsi_ext".
1186 ("*cmpqi_tm2"): Rename to "*tmqi_ext".
1187
1188 ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
1189 "*cmphi_tm_sub","*cmphi_cct_0", "*cmpqi_tm", "*cmpqi_tm_sub",
1190 "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
1191 ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
1192 "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
1193
1194 ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
5ce6f47b 1195 "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
07893d4f
UW
1196 "*cmpqi_ccs_0"): Remove, replace by ...
1197 ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
5ce6f47b 1198 "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
07893d4f
UW
1199 "*tstqi", "*tstqi_cconly"): ... these new patterns.
1200
1201 ("*cmpsidi_ccs"): Remove, replace by ...
1202 ("*cmpsi_ccs_sign"): ... this new pattern.
1203 ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
1204
1205 ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
1206 ("*cli"): ... this new pattern.
1207
1208 ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
1209 "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
1210 New patterns.
1211 ("adddi3_64"): Rename to "*adddi3_64".
1212 ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
1213 ("adddi3"): Adapt expander.
1214
1215 ("*addsi3_cc"): Allow "general_operand" for operand 2.
5ce6f47b 1216 ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
07893d4f
UW
1217 "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
1218
1219 ("addhi3", "addqi3"): Remove, replace by ...
1220 ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
1221
1222 ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
1223 "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
1224 ("subdi3"): Replace by insn and splitter "*subdi3_31".
1225 ("subdi3"): New expander.
1226
1227 ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
1228
1229 ("subhi3", "subqi3"): Remove, replace by ...
1230 ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
1231
1232 ("*muldi3_sign"): New pattern.
1233 ("muldi3"): Do not clobber CC.
1234 ("mulsi3"): Likewise.
1235 ("mulsi_6432"): Likewise.
1236
db62867b
DC
12372002-08-13 Denis Chertykov <denisc@overta.ru>
1238
1239 * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
8537ed68 1240 which can change CC0.
db62867b 1241
8ba46434
R
1242Tue Aug 13 14:49:20 2002 J"orn Rennecke <joern.rennecke@superh.com>
1243
1244 * gcse.c (adjust_libcall_notes): New function.
1245 (do_local_cprop): Use it. Add fourth parameter. Changed caller.
1246
8733892f
NS
12472002-08-13 Nathan Sidwell <nathan@codesourcery.com>
1248
1249 * libgcc2.c (L_bb): Remove unneeded #includes.
1250 (__global_counters, __gthreads_active): Remove unused globals.
1251 (__bb_exit_func): Merge counts into files rather than appending.
1252 * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
1253 (ALL_CFLAGS): ... to here.
1254
f4769721
DC
12552002-08-13 Denis Chertykov <denisc@overta.ru>
1256
1257 * config/ip2k/ip2k.c (commands_in_file): Variable removed.
1258 (function_epilogue): Don't calculate function size.
1259 (ip2k_set_compare): Don't use lookup_const_double.
1260 (asm_file_start): Initialization of commands_in_file removed.
1261 (asm_file_end): Output of commands_in_file removed.
5ce6f47b 1262
f4769721
DC
1263 * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
1264 __INT_MAX__.
1265
c31cddfd
NB
12662002-08-13 Neil Booth <neil@daikokuya.co.uk>
1267
1268 * c-opts.c (c_common_init_options): Check option array is
1269 sorted if checking enabled.
1270
f076f0ce
GDR
12712002-08-13 Gabriel Dos Reis <gdr@nerim.net>
1272
1273 * c-pretty-print.c: #include "c-tree.h".
1274 (pp_c_simple_type_specifier): Tweak.
1275 (pp_c_storage_class_specifier): New.
1276 (pp_c_function_specifier): Likewise.
1277 (pp_c_declaration_specifiers): Likewise.
1278 (pp_c_init_declarator): Likewise.
1279 (pp_c_declaration): Likewise.
1280 (pp_c_direct_declarator): Stub.
1281 (pp_c_declarator): Likewise.
1282 (pp_c_parameter_declaration): Likewise.
1283
f4ff5a69
NB
12842002-08-13 Neil Booth <neil@daikokuya.co.uk>
1285
1286 * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
1287 handle_deferred_opts, sanitize_cpp_opts, defer_opt,
1288 struct deferred_opt): New.
1289 (COMMAND_LINE_OPTIONS): Add -M*.
1290 (missing_arg): Update.
1291 (c_common_decode_option): Handle -M*.
1292 (c_common_post_options): Handle -M*. Use sanitize_cpp_opts;
1293 don't call cpp_post_options.
1294 (c_common_finish, check_deps_environment_vars): Update.
1295 * cppfiles.c (stack_include_file, handle_missing_header): Update.
1296 * cpphash.h (CPP_PRINT_DEPS): Remove.
1297 * cppinit.c: Don't include version.h.
1298 (cpp_create_reader): Don't call deps_init. Initialize
1299 warn_long_long.
1300 (cpp_read_main_file): Init deps if necessary.
1301 (cpp_destroy): Conditionally free deps.
1302 (cpp_finish): Update.
1303 (no_tgt): Remove.
1304 (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
1305 (cpp_post_options): Rename post_options.
1306 * cpplib.h (struct cpp_options): Remove some dependency options;
1307 move others to a new structure.
1308 (cpp_post_options): Remove.
1309 (cpp_finish): Comment.
1310 * fix-header.c (read_scan_file): Don't call cpp_post_options.
1311
34116c2a
HPN
13122002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
1313
1314 * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
1315 ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
1316 MMIX_rR_REGNUM as clobbered.
1317 * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
1318
9b32718c
GDR
13192002-08-12 Gabriel Dos Reis <gdr@nerim.net>
1320
1321 * diagnostic.h (output_formatted_scalar): Rename from
5ce6f47b 1322 output_formatted_integer.
9b32718c
GDR
1323 * diagnostic.def: Add DK_DEBUG.
1324 * diagnostic.c (output_decimal): Adjust.
1325 (output_long_decimal): Likewise.
1326 (output_unsigned_decimal): Likewise.
1327 (output_octal): Likewise.
1328 (output_long_octal): Likewise.
1329 (output_hexadecimal): Likewise.
1330 (output_long_hexadecimal): Likewise.
1331 * c-pretty-print.c (pp_c_type_specifier): New function.
1332 (pp_c_specifier_qualifier_list): Likewise.
1333 (pp_c_abstract_declarator): Likewise.
1334 (pp_c_char): Replace pp_format_integer with pp_format_scalar.
1335
032613df
DE
13362002-08-12 David Edelsohn <edelsohn@gnu.org>
1337
1338 * doc/trouble.texi (Disappointments): Add static constructor and
1339 destructor dependency information for AIX.
1340
a3737481
NB
13412002-08-12 Neil Booth <neil@daikokuya.co.uk>
1342
1343 * cpphash.h (struct printer): New from cppmain.c.
1344 (cpp_reader): New member.
1345 * cppmain.c (struct printer): Move to cpphash.h.
1346 (options, print): Remove.
1347 (account_for_newlines, print_line, maybe_print_line,
1348 cpp_preprocess_file, setup_callbacks, scan_translation_unit,
1349 scan_translation_unit_trad, cb_line_change, cb_ident,
1350 cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
1351 cb_def_pragma): Make reentrant.
1352
d71f7700
KG
13532002-08-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1354
1355 * real.c (ieee_64): Always define.
1356 (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
1357 (dec_h): Not used yet, hide it.
1358 (emdnorm): Mark parameter in ATTRIBUTE_UNUSED. Guard label with
1359 macro controlling use.
1360 (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
1361
c16576e6
JH
1362Mon Aug 12 12:48:20 CEST 2002 Jan Hubicka <jh@suse.cz>
1363
1364 * i386.md (tablejump): Sign extend the operand.
1365 * i386.c (classify_argument): Fix missed case from previous patch.
1366
460bd0e3
NB
13672002-08-12 Neil Booth <neil@daikokuya.co.uk>
1368
1369 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
1370 to c-copts.c.
1371 (warn_multichar): Die.
1372 (cb_register_builtins): Export.
1373 * c-common.h (warn_multichar, preprocess_file): Remove.
1374 (cb_register_builtins): New.
1375 * c-lang.c (c_init): Remove.
1376 (LANG_HOOKS_INIT): Use c_objc_common_init.
1377 * c-lex.c (init_c_lex): Don't canonicalize filename.
1378 * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
1379 (preprocess_file): Make static. Update for cpplib.
1380 (c_common_decode_option): Remove warn_multichar. Use in_fname.
1381 (c_common_post_options): Set some cpp options here.
1382 (c_common_init): Move from c-common.c.
1383 * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
1384 * cpplib.h (struct cpp_options): Remove in_fname.
1385 (cpp_preprocess_file): Update.
1386 * cppmain.c (cpp_preprocess_file): Update for new prototypes.
1387
f3f268dd
KG
13882002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1389
1390 * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
1391
f0201fba
KG
13922002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1393
1394 * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
1395 backslash in comment preceeding macro definition.
1396 * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
1397 * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
1398 * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
1399
e56fc090
HPN
14002002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
1401
1402 * expr.c (store_expr): In condition for checking if value is
1403 generated in TARGET, move call to expr_size last.
1404
76c3e73e
NB
14052002-08-11 Neil Booth <neil@daikokuya.co.uk>
1406
1407 * c-common.c (c_common_init): Call preprocess_file instead.
1408 (c_common_finish): Move to c-opts.c.
1409 * c-common.h (preprocess_file): new.
1410 * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
1411 check_deps_environment_vars, c_common_finish): New.
1412 (c_common_decode_option): Update for out_fname and dependencies.
1413 * cppinit.c (init_dependency_output, output_deps): Remove.
1414 (cpp_destroy): Update prototype.
1415 (cpp_add_dependency_target): New.
1416 (cpp_read_main_file): Don't overlay a buffer.
1417 (cpp_finish): Take a deps output stream and write deps to it.
1418 Return the error count.
1419 (cpp_post_options): Don't canonicalize out_fname, or do anything
1420 with dependencies.
1421 * cpplib.h (struct cpp_options): Remove out_fname and
1422 preprocess_only.
1423 (cpp_add_dependency_target): New.
1424 (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
1425 * cppmain.c (cpp_preprocess_file): Update prototype. Don't
1426 set preprocess_only. Don't handle the output stream directly.
1427
e0c32c62
KG
14282002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1429
1430 * dsp16xx.c (print_operand): Fix format specifier.
1431 * dsp16xx.md: Avoid automatic aggregate initialization.
1432 * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
1433 * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
1434 integer constant modifier.
1435 * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
1436 * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
1437 guards.
1438 * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
1439 * v850.c (v850_select_section): Mark parameter with
1440 ATTRIBUTE_UNUSED.
1441 * global.c (global_alloc): Const-ify.
1442 * ra-colorize.c (hardregset_to_string): Fix format specifier.
1443
7ae8cf75
KG
14442002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1445
1446 * darwin-c.c (darwin_pragma_options): Const-ify.
1447 * darwin.c (machopic_non_lazy_ptr_name,
1448 machopic_validate_stub_or_non_lazy_ptr): Likewise.
1449 (machopic_indirect_data_reference): Wrap variables in macros
1450 controlling their use.
1451 (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
1452 (machopic_select_section): Use parentheses around && within ||.
1453 * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
1454
8819cab5
KG
14552002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1456
1457 * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
1458 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
1459 ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
1460 ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
1461 mdr_try_remove_redundant_insns, track_w_reload,
1462 mdr_try_wreg_elim): Make function static to match prototype.
1463 * mmix.c (mmix_target_asm_function_epilogue): Likewise. Mark
1464 parameter with ATTRIBUTE_UNUSED.
1465
ab2877a3
KG
14662002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1467
1468 * arc.c (arc_init): Don't use ISO C style function definitions.
1469 * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
1470 arm_get_strip_length, arm_strip_name_encoding): Likewise.
1471 * avr.h (progmem_section): Likewise.
1472 * h8300.c h8300_asm_insn_count): Likewise.
1473 * m32r.c (init_idents): Likewise.
1474 * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
1475 * sh.c (sh_cfun_interrupt_handler_p): Likewise.
1476 * xtensa.c (xtensa_build_va_list): Likewise.
1477
08767a6f
NB
14782002-08-11 Neil Booth <neil@daikokuya.co.uk>
1479
1480 * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
1481 * c-opts.c (parse_option): Rename find_opt.
1482 (set_std_c99): New function.
1483 (COMMAND_LINE_OPTIONS): Handle -remap and -o. Remove OPT_std_bad.
1484 (missing_arg): Remove OPT_std_bad. Handle -o.
1485 (c_common_decode_option): Handle input and output file names,
1486 -o and -remap. Clean up -std= handling.
1487 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
1488 (cpp_handle_option): Similarly. Don't handle filenames.
1489
db01f480
JH
1490Sun Aug 11 14:43:17 CEST 2002 Jan Hubicka <jh@suse.cz>
1491
1492 * i386.c (classify_argument): Fix computing of field's offsets.
1493
a7701995
AJ
14942002-08-11 Andreas Jaeger <aj@suse.de>
1495
1496 PR target/7531:
1497 * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
1498
2516f236
ZL
14992002-08-10 Ziemowit Laski <zlaski@apple.com>
1500
1501 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
1502 reference to clk_objective_c with flag_objc.
1503 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
1504 Likewise.
1505 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1506
f749a36b
NB
15072002-08-10 Neil Booth <neil@daikokuya.co.uk>
1508
1509 * c-opts.c (set_std_cxx98, set_std_c89): New.
1510 (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
1511 (c_common_decode_option): Handle new switches from cppinit.c.
1512 Add -std=gnu++98.
1513 * cppinit.c (set_lang): Rename cpp_set_lang. Export.
1514 (no_arg, no_num): Remove.
1515 (COMMAND_LINE_OPTIONS): Move more to c-opts.c. Drop all lang-
1516 switches apart from -lang-objc and lang-asm.
1517 (cpp_handle_option): Similarly.
1518 * cpplib.h (cpp_set_lang): New.
1519 * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
1520 -std=gnu++98.
1521 * objc/lang-specs.h: Remove -ansi.
1522
77abb5d8
JH
1523Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka <jh@suse.cz>
1524 Graham Stott
1525
1526 * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
1527 errors.
1528
fac37dc4
KG
15292002-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1530
d950dee3
KG
1531 * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
1532 emit_jump_insn): Fix uninitialized variable.
1533 * gcov.c (init_line_info): Likewise.
1534 * genautomata.c (transform_3): Add braces around ambiguous
1535 else.
1536 * ifcvt.c (cond_exec_process_insns): Mark parameter with
1537 ATTRIBUTE_UNUSED.
1538 * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
1539 * regrename.c (copyprop_hardreg_forward): Fix uninitialized
1540 variable.
1541
fac37dc4
KG
1542 * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
1543 warnings in output files.
1544
0f7866e7
ZL
15452002-08-09 Ziemowit Laski <zlaski@apple.com>
1546
1547 * c-common.c (flag_objc): New.
1548 * c-common.h (c_language_kind): Get rid of clk_objective_c
1549 enum value.
1550 (flag_objc): New extern declaration.
1551 * c-decl.c (implicitly_declare): Call objc_check_decl
1552 instead of maybe_objc_check_decl.
1553 (finish_decl): Likewise.
1554 (grokfield): Likewise.
1555 (finish_struct): Likewise.
1556 * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
1557 (maybe_objc_comptypes): Rename to objc_comptypes.
a7701995 1558 (maybe_building_objc_message_expr): Rename to
0f7866e7
ZL
1559 objc_message_selector.
1560 * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
1561 replace with flag_objc as needed.
1562 * c-opts.c (c_common_init_options): Likewise.
1563 (c_common_decode_option): Likewise.
1564 * c-parse.in (init_reswords): Likewise.
1565 * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
1566 (maybe_objc_comptypes): Rename to objc_comptypes.
a7701995 1567 (maybe_building_objc_message_expr): Rename to
0f7866e7
ZL
1568 objc_message_selector.
1569 * c-typeck.c (comptypes): Call objc_comptypes instead of
1570 maybe_objc_comptypes, and/or objc_message_selector instead of
1571 maybe_building_objc_message_expr.
1572 (comp_target_types): Likewise.
1573 (convert_for_assignment): Likewise.
1574 (warn_for_assignment): Likewise.
1575 * cppinit.c (init_builtins): Set __OBJC__ manifest constant
1576 independently of those for other languages.
1577 * objc/objc-act.c (maybe_objc_comptypes): Delete.
1578 (maybe_objc_check_decl): Delete.
a7701995 1579 (maybe_building_objc_message_expr): Rename to
0f7866e7
ZL
1580 objc_message_selector.
1581 * objc/objc-lang.c (objc_init_options): Use clk_c instead of
1582 clk_objective_c; set flag_objc flag.
1583
c512fd7b
TM
15842002-08-09 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1585
1586 * ifcvt.c (find_if_case_2): Test correct basic block for size.
1587
5e1bf043 15882002-08-09 Dale Johannesen <dalej@apple.com>
c512fd7b 1589
5e1bf043
DJ
1590 * config/rs6000/rs6000.md: Add sibcall patterns.
1591 * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL): Define.
1592 * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
1593 Rewritten to handle sibcalls.
1594 * config/rs6000/rs6000.c (function_ok_for_sibcall): New.
1595 * config/rs6000/rs6000-protos.h (function_ok_for_sibcall): New.
1596
2043c38e
NS
15972002-08-08 Nathan Sidwell <nathan@codesourcery.com>
1598
1599 * profile.c (da_file_name): New static var.
1600 (init_branch_prob): Initialize it.
1601 (end_branch_prob): Remove da file.
1602
1603 * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
41685063 1604 * configure.in (coverage_flags): Default to nothing.
2043c38e
NS
1605 * configure: Rebuilt.
1606
4b7091eb
NB
16072002-08-09 Neil Booth <neil@daikokuya.co.uk>
1608
1609 * Makefile.in (c-opts.o): Update
1610 * c-opts.c: Include intl.h.
1611 (print_help): Move from cppinit.c. Remove unused options.
1612 (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
1613 (missing_arg): Complain for switches without an argument.
1614 (c_common_decode_option): Reject missing joined arguments.
1615 Handle new switches from cppinit.c.
1616 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
1617 (cpp_handle_option): Similarly.
1618 (print_help): Moved to c-opts.c.
1619 * cpplib.h (struct cpp_options): Remove help_only.
1620 * gcc.c (cpp_unique_options): Remove -$.
1621 * doc/cppopts.texi: Undocument -h.
1622
9e20be0c
JJ
16232002-08-08 Jakub Jelinek <jakub@redhat.com>
1624
1625 * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
1626 legitimate constant.
1627 (legitimate_pic_operand_p): Neither pic operand.
1628 (legitimate_address_p): But legitimate address.
1629 (get_thread_pointer): Generate MEM/u instead of CONST around
1630 UNSPEC_TP.
1631 (print_operand): Remove printing of UNSPEC_TP.
1632 (print_operand_address): And print it here.
1633
7b9be5c7 16342002-08-08 Devang Patel <dpatel@apple.com>
9e20be0c 1635
a7701995
AJ
1636 * objc/objc-act.c (build_selector_translation_table): Issue warning,
1637 when -Wselector is used,if method for which selector is being
7b9be5c7 1638 created does not exist.
a7701995 1639
5615d8fd
SC
16402002-08-08 Stephen Clarke <stephen.clarke@superh.com>
1641
1642 * config/sh/sh.c (prepare_move_operands): Only call
1643 target_reg_operand if TARGET_SHMEDIA.
a7701995 1644
3b85fe5f
JJ
16452002-08-08 Jakub Jelinek <jakub@redhat.com>
1646
1647 * config/rs6000/rs6000.h, config/rs6000/aix.h,
1648 config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
1649 two patches.
1650 * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
1651
e10c79fe
LB
16522002-08-08 Lars Brinkhoff <lars@nocrew.org>
1653 Richard Henderson <rth@redhat.com>
1654
1655 * emit-rtl.c (gen_rtx_REG): After reload, only return
1656 frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
1657
aa2a83dc
JJ
16582002-08-08 Jakub Jelinek <jakub@redhat.com>
1659
1660 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
1661 * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
1662 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
1663 macro.
1664
aeaf4d25
AN
16652002-08-08 Adam Nemet <anemet@lnxw.com>
1666
1667 * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
1668 register.
1669 (thumb_expand_prologue): Likewise.
1670 (thumb_output_function_prologue): Likewise.
1671 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
1672 the additional push of the PIC register.
1673
22aa533e
NS
16742002-08-08 Nathan Sidwell <nathan@codesourcery.com>
1675
1676 * configure.in (enable_coverage): New enable switch.
1677 * configure: Rebuilt.
1678 * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
1679 (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
1680 (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
1681 (mostlyclean): Remove coverage files.
1682 * doc/install.texi: Document enable_coverage.
1683
1684 * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
1685 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
1686 * f/Make-lang.in (f.mostlyclean): Remove coverage files.
1687 * java/Make-lang.in (java.mostlyclean): Remove coverage files.
1688 * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
1689 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
1690 files.
a7701995 1691
18bdccaa
NB
16922002-08-08 Neil Booth <neil@daikokuya.co.uk>
1693
1694 * c-opts.c (cpp_opts): New.
1695 (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
1696 (c_common_decode_options): Handle cpplib switches.
1697 (c_common_init_options): Set cpp_opts.
1698 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
1699 (cpp_handle_option): Similarly.
1700
774b5662
DE
17012002-08-08 David Edelsohn <edelsohn@gnu.org>
1702
1703 * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
1704 (TARGET_ALTIVEC_ABI): Same.
1705 (TARGET_ALTIVEC_VRSAVE): Same.
1706
1707 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
1708 icode not CODE_FOR_nothing. Change switch to if.
1709
957e9e48
AM
17102002-08-08 Alan Modra <amodra@bigpond.net.au>
1711
1712 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
1713
daf06049
JJ
17142002-08-08 Jakub Jelinek <jakub@redhat.com>
1715
1716 * stor-layout.c (place_union_field): For bitfields if
1717 PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
1718 TYPE_USER_ALIGN.
1719
043d39a6
JDA
17202002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
1721
1722 * pa.c (struct deferred_plabel): Constify name field.
1723
34bb92e3
NB
17242002-08-07 Neil Booth <neil@daikokuya.co.uk>
1725
1726 * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
1727
3ec5d64d
JDA
17282002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
1729
1730 * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
1731 local_prefix are the same.
1732 * configure: Rebuilt.
1733
ad9335eb
JJ
17342002-08-07 Jakub Jelinek <jakub@redhat.com>
1735 Richard Henderson <rth@redhat.com>
1736
1737 * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
1738 to type_align when PCC_BITFIELD_TYPE_MATTERS. Only apply
1739 ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
1740 (place_field): Likewise.
1741 * config/i386/i386.c (x86_field_alignment): Don't check
1742 DECL_USER_ALIGN here.
1743 * config/rs6000/rs6000.c (rs6000_field_alignment): New.
1744 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
1745 prototype.
1746 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
1747 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
1748 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
1749 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
1750 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
1751 * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
1752
0b6f2917
NB
17532002-08-07 Neil Booth <neil@daikokuya.co.uk>
1754
1755 * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
1756 * c-common.c: Don't include tree-inline.h.
1757 (c_common_init_options, c_common_post_options): Move to c-opts.c.
1758 * c-common.h (c_common_decode_option): New.
1759 * c-decl.c (c_decode_option): Remove.
1760 * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
1761 * c-opts.c: New file.
1762 * c-tree.h (c_decode_option): Remove.
1763 * doc/passes.texi: Update.
1764 * objc/objc-act.c (objc_decode_option): Remove.
1765 * objc/objc-act.h (objc_decode_option): Remove.
1766 * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
1767 c_common_decode_option.
1768
e49ec17d
CD
17692002-08-07 Chris Demetriou <cgd@broadcom.com>
1770
1771 * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
1772 dependency on TARGET_DOUBLE_FLOAT.
1773
ac1ca451
SC
17742002-08-07 Stephen Clarke <stephen.clarke@superh.com>
1775
1776 * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
1777 overwrite callee-save registers. Fix comment.
1778
af34e51e
CD
17792002-08-06 Chris Demetriou <cgd@broadcom.com>
1780
1781 * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
1782 in target_flags based on ISA, if it was not set on the command
1783 line. Warn if MASK_BRANCHLIKLEY is set but the ISA does not
1784 support Branch Likely instructions.
1785 * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
1786 (TARGET_BRANCHLIKELY): Likewise.
1787 (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
1788 (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
1789 ISA_HAS_BRANCHLIKELY.
1790 (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
1791 * doc/invoke.texi: Document new MIPS -mbranch-likely and
1792 -mno-branch-likely options.
1793
2631af95
KG
17942002-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1795
f538618e
KG
1796 * ip2k.c (ip2k_set_compare): Add missing iteration variable.
1797
2631af95
KG
1798 * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
1799 $(GCONFIG_H).
1800
1ae0ccb6
AH
18012002-08-06 Aldy Hernandez <aldyh@redhat.com>
1802
8537ed68
ZW
1803 * c-decl.c (duplicate_decls): Error out for incompatible TLS
1804 declarations.
1ae0ccb6 1805
8537ed68 1806 * testsuite/gcc.dg/tls/diag-3.c: New.
1ae0ccb6 1807
f1a044c7
JM
18082002-08-06 Jason Merrill <jason@redhat.com>
1809
1810 * c-common.c (c_expand_expr) [STMT_EXPR]: If the last expression is
1811 a VAR_DECL with RTL that matches the target, just return that RTL.
1812
8d3e27d1
DJ
18132002-08-06 Dale Johannesen <dalej@apple.com>
1814 * c-common.c (fname_decl): Use line number 0 for
8537ed68 1815 __func__, to avoid confusing debuggers.
8d3e27d1 1816
8b219a76
NS
18172002-08-06 Nathan Sidwell <nathan@codesourcery.com>
1818
1819 * gcov.c: Tidy.
1820 (struct line_info, struct coverage): New structures.
1821 (gcov_file_name, gcov_file): Remove globals.
1822 (output_data): Take source file parameter. Fix memory leak. Break
1823 up into ...
1824 (init_line_info, output_line_info, make_gcov_file_name,
1825 accumulate_branch_counts): ... here.
1826 (calculate_branch_probs, function_summary): Adjust.
1827 (main): Adjust.
1828 (function_*): Remove global variables.
1829
317e98c0
NB
18302002-08-06 Neil Booth <neil@daikokuya.co.uk>
1831
1832 * dwarf2out.c: Remove unused macros.
1833
81d41e74
NB
18342002-08-06 Neil Booth <neil@daikokuya.co.uk>
1835
1836 * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
1837
58551c23
NB
18382002-08-06 Neil Booth <neil@daikokuya.co.uk>
1839
1840 * cppinit.c (struct lang_flags): Rename trigraphs std.
1841 (set_lang): Update.
1842 * cpplib.h (struct cpp_options): New member std.
1843 * cppmacro.c (_cpp_builtin_macro_text): Use std.
1844 (collect_args): Flag whether to swallow a possible future
1845 comma pasted with varargs.
1846 (replace_args): Use this flag.
1847 * doc/cpp.texi: Update varargs extension documentation.
1848
daeabcd0
JJ
18492002-08-06 Jakub Jelinek <jakub@redhat.com>
1850
1851 * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
1852
39e3a681
JJ
18532002-08-06 Jakub Jelinek <jakub@redhat.com>
1854
9812691e
JJ
1855 * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
1856 and MODE_CLASS_INT modes.
39e3a681 1857
609a87f3
JJ
18582002-08-06 Jakub Jelinek <jakub@redhat.com>
1859
1860 * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
1861 --{enable,disable}-threads is given to configure.
1862 (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
1863 x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
1864 powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
1865 s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
1866 Remove thread_file setting here.
1867
ff4c5e7b
DE
18682002-08-06 David Edelsohn <edelsohn@gnu.org>
1869
1870 * doc/install.texi (Binaries): Update Bull Freeware URL.
1871
54f3aa9e
GP
18722002-08-06 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1873
1874 * doc/gcc.texi (Top): Rename Index to Keyword Index.
1875
d19202ba
NS
18762002-08-05 Nathan Sidwell <nathan@codesourcery.com>
1877
1878 * gcov.c (output_data): Round to % to nearest, tweak formatting.
1879
1bed5ee3
JJ
18802002-08-05 Jakub Jelinek <jakub@redhat.com>
1881
1882 * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
1883 of the operands into MINUS_EXPR if code is PLUS_EXPR.
1884
84512347
DR
18852002-08-05 Douglas B Rupp <rupp@gnat.com>
1886
1887 * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
1888 * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
1889 drectve_section): Define.
1890 * config/i386/t-interix: Replace interix.o rule with winnt.o.
1891 * config/i386/interix.c: Remove.
1892
b835f6f1
GK
18932002-08-05 Geoffrey Keating <geoffk@redhat.com>
1894
1895 * attribs.c: Don't include obstack.h.
1896 * builtins.c: Likewise.
1897 * cfganal.c: Likewise.
1898 * cfgbuild.c: Likewise.
1899 * cfgcleanup.c: Likewise.
1900 * emit-rtl.c: Likewise.
1901 * loop.c: Likewise.
1902 * stmt.c: Likewise.
1903
1904 * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
1905
fd291392
GDR
19062002-08-05 Gabriel Dos Reis <gdr@nerim.net>
1907
1908 * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
1909
054b7507
CD
19102002-08-04 Chris Demetriou <cgd@broadcom.com>
1911
1912 * doc/invoke.texi: Remove duplicated paragraph describing
1913 TARGET_SWITCHES.
1914
6d9f628e
GK
19152002-08-04 Geoffrey Keating <geoffk@redhat.com>
1916
1917 * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
1918 * collect2.h (permanent_obstack): Delete declaration.
1919 * collect2.c (permanent_obstack): Delete definition.
1920 (main): Don't initialise permanent_obstack. Use xstrdup instead.
1921 * expr.c: Don't include obstack.h.
1922 (permanent_obstack): Delete declaration.
1923 * function.c: Don't include obstack.h.
1924 (permanent_obstack): Delete declaration.
1925 * integrate.c: Don't include obstack.h.
1926 (function_maybepermanent_obstack): Delete declaration.
1927 * print-tree.c (debug_tree): Use x*alloc not permalloc.
1928 * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
1929 * tlink.c (pfgets): Use xstrdup not permanent_obstack.
1930 * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
1931 * tree.h: Rename init_obstacks to init_ttree. Remove declarations
1932 of permalloc, expralloc, perm_calloc.
1933 * tree.c (permanent_obstack): Delete definition.
1934 (init_ttree): Rename from init_obstacks.
1935 (permalloc): Delete.
1936 (perm_calloc): Delete.
1937 (dump_tree_statistics): Don't print information about
1938 permanent_obstack.
1939 * varasm.c (assemble_start_function): Use xstrdup instead of
1940 permalloc/strcpy.
1941 (assemble_variable): Likewise.
1942 * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
1943 permalloc.
1944 (unicosmk_add_extern): Likewise.
1945 * config/c4x/c4x.c (c4x_external_ref): Likewise.
1946 (c4x_global_label): Likewise.
1947 * config/frv/frv.c (frv_encode_section_info): Likewise.
1948 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
1949 (i386_pe_record_exported_symbol): Likewise.
1950 * config/mips/mips.c (mips_output_external): Likewise.
1951 (mips_output_external_libcall): Likewise.
1952 * config/pa/pa.c: (permanent_obstack): Delete declaration.
1953 (output_call): Use ggc_strdup instead of allocating on
1954 permanent_obstack.
1955 * config/romp/romp.c: Include ggc.h.
1956 (get_symref): Don't declare permanent_obstack, use ggc_strdup
1957 intead of permanent_obstack.
1958 * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
1959 instead of permalloc.
1960 * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
1961 instead of permalloc
1962 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
1963 instead of permalloc.
1964 * config/vax/vax.c (vms_check_external): Use xmalloc instead of
1965 permalloc.
1966
36a05131
BS
19672002-08-04 Bernd Schmidt <bernds@redhat.com>
1968
1969 Contribute a port developed primarily by Michael Meissner,
1970 Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
1971 * config.gcc: Add frv-elf target.
1972 * config/frv/cmovd.c: New file.
1973 * config/frv/cmovh.c: New file.
1974 * config/frv/cmovw.c: New file.
1975 * config/frv/frv-abi.h: New file.
1976 * config/frv/frv-asm.h: New file.
1977 * config/frv/frv-modes.def: New file.
1978 * config/frv/frv-protos.h: New file.
1979 * config/frv/frv.c: New file.
1980 * config/frv/frv.h: New file.
1981 * config/frv/frv.md: New file.
1982 * config/frv/frvbegin.c: New file.
1983 * config/frv/frvend.c: New file.
1984 * config/frv/lib1funcs.asm: New file.
1985 * config/frv/media.h: New file.
1986 * config/frv/modi.c: New file.
1987 * config/frv/t-frv: New file.
1988 * config/frv/uitod.c: New file.
1989 * config/frv/uitof.c: New file.
1990 * config/frv/ulltod.c: New file.
1991 * config/frv/ulltof.c: New file.
1992 * config/frv/umodi.c: New file.
1993 * config/frv/xm-frv.h: New file.
86a0cbcb
BS
1994
1995 * config/frv/media.h: Removed again.
1996
37b8715b
NS
19972002-08-04 Nathan Sidwell <nathan@codesourcery.com>
1998
1999 * gcov.c (bb_file_time): New static variable.
2000 (object_directory): May also be object file.
2001 (preserve_paths): New static variable.
2002 (print_usage): Adjust.
2003 (options): Adjust.
2004 (process_args): Adjust.
2005 (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
2006 file. Find modification date on bb file.
2007 (read_profile): Don't rewind a NULL file.
2008 (format_hwint): New static function.
2009 (function_summary): Use format_hwint.
2010 (output_data): SOURCE_FILE_NAME is never relative to
2011 OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
2012 mangling. Adjust output format to make it more machine readable.
2013 * doc/gcov.texi: Document & clarify semantics.
a7701995 2014
d500c5d7
JM
20152002-08-04 Joseph S. Myers <jsm@polyomino.org.uk>
2016
2017 * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
2018
ea67fe71
NS
20192002-08-04 Nathan Sidwell <nathan@codesourcery.com>
2020
2021 * gcc.c (cc1_options): Pass output file as auxbase when
2022 appropriate.
2023 * profile.c (init_branch_prob): FILENAME has already had ending
2024 stripped.
2025 * final.c (end_final): Likewise.
2026 * toplev.c (aux_base_name): New global.
2027 (compile_file): Pass aux_base_name to init init_branch_prob and
2028 end_final.
2029 (independent_decode_option, case 'a'): New auxinfo options.
2030 (case 'd'): Protect against mising basename.
2031 (do_compile): Initialize aux_base_name.
2032 * toplev.h (aux_base_name): New global.
2033 * doc/invoke.texi: Adjust documentation.
2034
b23c054d
NS
20352002-08-04 Nathan Sidwell <nathan@codesourcery.com>
2036
2037 * config/i386/i386.c (x86_field_alignment): Remove duplicate test
2038 of TARGET_ALIGN_DOUBLE.
2039
04c1334c 20402002-08-04 Gabriel Dos Reis <gdr@nerim.net>
a7701995 2041
04c1334c
GDR
2042 * diagnostic.c (inform): New function.
2043 * diagnostic.h (inform): Declare.
a7701995 2044
e34eaae5
DE
20452002-08-03 David Edelsohn <edelsohn@gnu.org>
2046
2047 * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
2048 (movhi_internal): Same.
2049 (movqi_internal): Same.
2050 (movdi_internal64): Same.
2051
2052 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
2053
2054 * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
2055 (ASM_OUTPUT_SKIP): Use it. SIZE unsigned.
2056 (COMMON_ASM_OP): Define.
2057 (ASM_OUTPUT_ALIGNED_COMMON): Use it. SIZE unsigned.
2058 Use ALIGN parameter.
2059 (LOCAL_COMMON_ASM_OP): Define.
2060 (ASM_OUTPUT_LOCAL): Use it. SIZE unsigned.
2061
e7b489c8
RS
20622002-08-03 Roger Sayle <roger@eyesopen.com>
2063
2064 * builtins.def: Define new builtin functions exp, expf, expl,
2065 log, logf and logl (and their __builtin_* variants).
2066 * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
2067 Define exp_optab and log_optab.
2068 * optabs.c (init_optans): Initialize exp_optab and log_optab.
2069 * genopinit.c (optabs): Implement exp_optab and log_optab
2070 using exp?f2 and log?f2 patterns.
2071 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
2072 and BUILT_IN_LOG* using exp_optab and log_optab respectively.
2073 (expand_builtin): Ignore the new builtins (and all cos and
2074 sin variants) when not optimizing. Expand new builtins via
2075 expand_builtin_mathfn when flag_unsafe_math_optimizations.
2076
2077 * doc/extend.texi: Document new exp and log builtins.
2078 * doc/md.texi: Document new exp?f2 and log?f2 patterns
2079 (and previously undocumented cos?f2 and sin?f2 patterns).
2080
de8920be
JM
20812002-08-03 Jason Merrill <jason@redhat.com>
2082
2083 * explow.c (int_expr_size): New fn.
2084 * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
2085 * expr.h: Declare it.
2086
ba462c8e
KW
20872002-08-02 Krister Walfridsson <cato@df.lth.se>
2088
2089 * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
2090 gengtype-* dependencies.
2091
2017ed61
EC
20922002-08-02 Eric Christopher <echristo@redhat.com>
2093
2094 * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
2095 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
2096 #ifndef to #undef.
2097 (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
2098
055dd007
DE
20992002-08-02 David Edelsohn <edelsohn@gnu.org>
2100
2101 PR optimize/7067
2102 * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
2103 small if optimizing for size.
2104
771a2a66
DJ
21052002-08-02 Daniel Jacobowitz <drow@mvista.com>
2106
2107 * configure.in (FORBUILD): Use $build_alias.
2108 * configure: Regenerated.
2109
ac8ab9fe
RS
21102002-08-02 Richard Sandiford <rsandifo@redhat.com>
2111
2112 * config.gcc: Don't include mips/abi64.h in $tm_file.
2113 * hard-reg-set.h (call_really_used_regs): Declare.
2114 * config/mips/abi64.h: Remove file.
2115 * config/mips/linux.h,
2116 * config/mips/iris6.h: Don't include it.
2117 * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
2118 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
2119 (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
2120 FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
2121 FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
2122 Bring across definitions from abi64.h.
2123 (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
2124 (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
2125 (struct mips_args): Use it.
2126 * config/mips/mips.c (mips_conditional_register_usage): Define.
2127
a77a9a18
JM
21282002-08-02 Jason Merrill <jason@redhat.com>
2129
2130 * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
2131 * langhooks.c (lhd_expr_size): Define default.
2132 * langhooks.h (struct lang_hooks): Add expr_size.
2133 * explow.c (expr_size): Call it.
2134 * expr.c (store_expr): Don't copy an expression of size zero.
2135 (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
2136 to store.
2137 * Makefile.in (builtins.o): Depend on langhooks.h.
2138
a6be5aee
KG
21392002-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2140
2141 * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
2142 * ra-debug.c: Include "tm_p.h".
2143 * ra-rewrite.c (is_partly_live_1): Change return type to bool.
2144
e3e16ee3
TM
21452002-08-02 Toon Moene <toon@moene.indiv.nluug.nl>
2146
2147 * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
2148 when not honoring signalling NaNs.
2149 (simplify_ternary_operation): a == b has a definite value
2150 when not honoring NaNs.
2151
b9d8832d
JM
21522002-08-02 Jason Merrill <jason@redhat.com>
2153
2154 * gdbinit.in (pct): New macro.
2155
825abef4
SS
21562002-08-01 Stan Shebs <shebs@apple.com>
2157 Andreas Tobler <toa@pop.agri.ch>
2158
2159 * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
2160 plays nice with Darwin headers.
bf2e488f 2161 (_BSD_RUNE_T_DEFINED_): Likewise.
825abef4 2162
56da7207
ZW
21632002-08-01 Zack Weinberg <zack@codesourcery.com>
2164
2165 * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
2166 * cppinit.c (cpp_post_options): Likewise.
2167
2168 * cppexp.c (cpp_classify_number): Suppress -Wtraditional
2169 warning about 'LL' suffix (but not 'ULL' etc) when
2170 -Wno-long-long is in effect.
2171
2172 * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
2173 Check for failing time()/localtime(), issue a warning, and
2174 make __TIME__ and __DATE__ expand to fallback strings.
2175
2176 * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
2177 and __TIME__ when the date and time cannot be determined.
2178
f4857b9b
AM
21792002-08-02 Alan Modra <amodra@bigpond.net.au>
2180
2181 * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
2182
77ca7b2e
DJ
21832002-08-01 Daniel Jacobowitz <drow@mvista.com>
2184
2185 * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
2186
5b552f76
CD
21872002-08-01 Chris Demetriou <cgd@broadcom.com>
2188
2189 * config.gcc (mipsisa64sb1-*-elf*): New configuration.
2190 (mipsisa64sb1el-*-elf*): Likewise.
2191 * config/mips/mips.c (mips_cpu_info_table): Add sb1.
2192 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
2193 (TARGET_SB1, TUNE_SB1): New macros.
2194 * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
2195 -mtune flags.
2196
54fbf6a1
DE
21972002-08-01 David Edelsohn <edelsohn@gnu.org>
2198
2199 * varasm.c (asm_emit_uninitialized): Return false if global BSS
2200 and ASM_EMIT_BSS not supported by target.
2201 (assemble_variable): Do not duplicate uninitialized logic.
2202 Fall through if asm_emit_uninitialized failed.
2203
3d16b407
CD
22042002-08-01 Chris Demetriou <cgd@broadcom.com>
2205
2206 * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
2207
fb52d8de
AM
22082002-08-02 Alan Modra <amodra@bigpond.net.au>
2209
80926cc1
AM
2210 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
2211 (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
2212
fb52d8de
AM
2213 * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
2214 HOST_BITS_PER_WIDE_INT == 64.
2215
a4b5414c
KG
22162002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2217
2218 * df.c (df_insn_table_realloc): Change parameter to unsigned.
2219 * optabs.c (expand_binop): Make variable unsigned.
2220 * simplify-rtx.c (simplify_subreg): Likewise.
2221 * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
2222
a03e67c3
FS
22232002-08-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2224
2225 * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
2226
de273d3f
RH
22272002-08-01 Richard Henderson <rth@redhat.com>
2228
56da7207 2229 * toplev.c (parse_options_and_default_flags): Don't set
de273d3f
RH
2230 flag_reorder_blocks for -Os.
2231
2232 * config/avr/avr.c (avr_optimization_options): Remove.
2233 * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
2234 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
2235 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
2236
4e4d733e
L
22372002-08-01 H.J. Lu <hjl@gnu.org>
2238 Richard Henderson <rth@redhat.com>
2239
2240 * output.h (DECL_READONLY_SECTION): Remove.
2241 (decl_readonly_section): Declare.
2242 * varasm.c (decl_readonly_section): New.
2243 (default_section_type_flags, default_select_section): Use it.
2244 * config/arm/pe.c (arm_pe_unique_section): Likewise.
2245 * config/i386/interix.c (i386_pe_unique_section): Likewise.
2246 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
2247 * config/mcore/mcore.c (mcore_unique_section): Likewise.
2248 * config/mips/mips.c (mips_unique_section): Likewise.
2249
32e9b960
RH
22502002-08-01 Richard Henderson <rth@redhat.com>
2251
2252 * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
2253 refers to a subroutine parameter.
2254
81e602b5
JJ
22552002-08-01 Jakub Jelinek <jakub@redhat.com>
2256
2257 * varasm.c (assemble_visibility): Strip name encoding.
2258
ac14c725
ID
22592002-08-01 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2260
2261 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
2262 (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
2263 when there is no frame pointer.
2264 (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
2265 registers properly.
2266 * config/ns32k/__unorddf2.c: New file.
2267 * config/ns32k/__unordsf2.c: New file.
2268 * config/ns32k/t-ns32k: New file.
2269 * config.gcc (ns32k-*-netbsd*): Use it.
2270
17072732
AH
22712002-08-01 Aldy Hernandez <aldyh@redhat.com>
2272
2273 * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
2274
c288218a
NB
22752002-08-01 Neil Booth <neil@daikokuya.co.uk>
2276
2277 * c-common.c (__GXX_ABI_VERSION): Correct spelling.
2278
43bfc248
BK
22792002-08-01 Benjamin Kosnik <bkoz@redhat.com>
2280
2281 * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
2282
479f2cea
RS
22832002-08-01 Richard Sandiford <rsandifo@redhat.com>
2284
2285 * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
2286
02280659
ZD
22872002-08-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2288
2289 * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
2290 n_sets): Removed.
2291 (expr_hash_table, set_hash_table): Type changed to ...
2292 (struct hash_table): New type.
2293 (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
2294 insert_expr_in_table, insert_set_in_table, compute_hash_table,
2295 dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
2296 compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
2297 (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
2298 (alloc_hash_table): New.
2299 (free_set_hash_table, free_expr_hash_table): Merged to ...
2300 (free_hash_table): New.
2301 (compute_set_hash_table, compute_expr_hash_table): Merged to ...
2302 (compute_hash_table_work): New.
2303 (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
2304 find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
2305 pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
2306 one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
2307 hoist_code, one_code_hoisting_pass,
2308 trim_ld_motion_mems): Altered due to changed type of hash tables.
2309
905173eb
ZW
23102002-08-01 Zack Weinberg <zack@codesourcery.com>
2311
2312 * final.c (output_alternate_entry_point):
2313 If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
2314
83321d36
KG
23152002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2316
ad0f1765
KG
2317 * objc/objc-act.c (encode_complete_bitfield): Add prototype and
2318 avoid ISO C style function definition.
2319
83321d36
KG
2320 * expr.c (expand_assignment): Delete unused variable.
2321
73e42cf3
TM
23222002-08-01 Toon Moene <toon@moene.indiv.nluug.nl>
2323
2324 * c-common.c (cb_register_builtins): Set
2325 __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
2326 is given, and to 0 otherwise.
2327 * combine.c (simplify_if_then_else): HONOR_NANS
2328 implies FLOAT_MODE_P.
2329
78df51fe
NB
23302002-08-01 Neil Booth <neil@daikokuya.co.uk>
2331
2332 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
2333 (cpp_handle_option): Don't handle it.
2334 (print_help): Update.
2335 * doc/cppopts.texi: Update.
2336
abecfc8f
NB
23372002-08-01 Neil Booth <neil@daikokuya.co.uk>
2338
2339 * c-common.c (cb_register_builtins): If C++, define
2340 __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
2341 * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
2342cp:
2343 * lang-specs.h: Simplify in accordance with new code in
2344 c-common.c.
2345
4078b403
NB
23462002-08-01 Neil Booth <neil@daikokuya.co.uk>
2347
2348 * c-common.c: Define all C/ObjC/C++ warning and flag variables.
2349 * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
2350 * c-decl.c: Move all warning and flag variables to c-common.c.
2351 * c-format.c: Move all warning variables to c-common.c.
2352 * c-tree.h: Move all warning and flag declarations to c-common.h.
2353 * objc/objc-act.c: Move all warning variables to c-common.c.
2354 (flag_warn_protocol): Rename warn_protocol.
2355
692f5611
JDA
23562002-07-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2357
2358 * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
2359
480e7ded
GS
23602002-07-31 Graham Stott <grahams@btinternet.com>
2361
905173eb 2362 * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
480e7ded
GS
2363 .section prefix.
2364
b069de3b
SS
23652002-07-31 Stan Shebs <shebs@apple.com>
2366
2367 * config.gcc (i[34567]86-*-darwin*): New configuration.
2368 * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
2369 defining.
2370 (TARGET_ENCODE_SECTION_INFO): Ditto.
2371 (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
2372 * config/darwin.c (machopic_indirect_data_reference): Remove
2373 setting of RTX_UNCHANGING_P.
2374 (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
2375 not to be applied to sums.
2376 * config/i386/t-darwin: New file.
2377 * config/i386/darwin.h: New file.
2378 * config/i386/i386.h (TARGET_MACHO): Add default definition.
2379 * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
2380 * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
2381 label and not the GOT add.
2382 (constant_address_p): For Mach-O, seeing a CONST is enough.
2383 (legitimate_pic_address_disp_p): Add a Mach-O case.
2384 (legitimate_address_p): Also test machopic_operand_p if Mach-O.
2385 (legitimize_pic_address): Use generic Mach-O code to legitimize.
2386 (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
2387 if outputting a difference.
2388 (ix86_output_addr_diff_elt): Add Mach-O case.
2389 (ix86_expand_move): Similarly.
2390 (ix86_expand_call): Similarly.
2391 (current_machopic_label_num): New global.
2392 (machopic_output_stub): New function.
2393 (ix86_value_regno): New function.
2394 (ix86_function_value): Use it instead of VALUE_REGNO.
2395 (ix86_libcall_value): Ditto.
2396 * config/i386/unix.h (VALUE_REGNO): Remove.
2397
1de4ecb6
GS
23982002-07-31 Graham Stott <grahas@btinternet.com>
2399
2400 * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
905173eb 2401 hash for LABEL_REF's.
1de4ecb6 2402
23368455
GS
24032002-07-31 Graham Stott <grahams@btinternet.com>
2404
2405 * config/rs6000/rs6000.c (spe_init_builtins,
2406 altivec_init_builtins, rs6000_common_init_builtins):
905173eb 2407 Replace ANSI with K&R function def.
23368455 2408
ad72b533
DE
24092002-07-31 David Edelsohn <edelsohn@gnu.org>
2410
2411 * rs6000.c (validate_condition_mode): Test flag_finite_math_only
2412 for CCFPmode.
2413
302359da
RS
24142002-07-31 Richard Sandiford <rsandifo@redhat.com>
2415
2416 * config/mips/crtn.asm: Don't use __mips16 to determine the
2417 return-address offset. Define RA to a suitable temporary
2418 register for the return address.
2419
ead0c1d5
RS
24202002-07-31 Richard Sandiford <rsandifo@redhat.com>
2421
2422 * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
2423 constraints to 'd'.
2424
3fb9d48a
CD
24252002-07-30 Chris Demetriou <cgd@broadcom.com>
2426
2427 * config/mips/elf.h (STARTFILE_SPEC): Define differently if
2428 default ABI is MEABI. (Undoes incorrect change in Eric Christopher's
2429 patch on 2002-07-29.)
2430 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
2431
072cdaed
KG
24322002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2433
506a61b1
KG
2434 * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
2435 fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
2436 ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
2437 openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
2438 s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
2439 (ASM_GLOBALIZE_LABEL): Delete.
2440 (GLOBAL_ASM_OP): Define.
2441
072cdaed 2442 * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
905173eb 2443
072cdaed
KG
2444 * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
2445 * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
2446
6fd14075
GK
24472002-07-30 Geoffrey Keating <geoffk@redhat.com>
2448
2449 * doc/extend.texi (Hints implementation): Document that GCC
2450 mostly ignores `register'.
2451
2e8f2e8f
TM
24522002-07-30 Toon Moene <toon@moene.indiv.nluug.nl>
2453
2454 * flags.h: Declare flag_finite_math_only.
2455 Use it in definition of HONOR_NANS and
2456 HONOR_INFINITIES.
2457 * c-common.c (cb_register_builtins): Emit
2458 __FINITE_MATH_ONLY__ when flag_finite_math_only
2459 is set.
2460 * combine.c (simplify_if_then_else): If
2461 flag_finite_math_only is set, a == b has a
2462 definite value.
2463 * toplev.c: Initialize flag_finite_math_only.
2464 (set_flags_fast_math): Set it on -ffast-math.
2465 (flag_fast_math_set_p): Test it.
2466 * doc/invoke.texi: Document -ffinite-math-only.
2467
a538e580
RH
24682002-07-30 Richard Henderson <rth@redhat.com>
2469
2470 * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
2471 (noce_process_if_block): Likewise.
2472
26e20555
BS
24732002-07-30 Bernd Schmidt <bernds@redhat.com>
2474
2475 * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
2476 Bail out early if false_expr is NULL and we'd crash due to this.
79cbc1f7
BS
2477 * genemit.c (gen_expand): Recognize return insns even if the return
2478 appears in a parallel.
d8088c6f
BS
2479 * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
2480 * config/fp-bit.c: Likewise.
2481 * doc/tm.texi: Document it.
905173eb 2482
0559cc77
DE
24832002-07-30 David Edelsohn <edelsohn@gnu.org>
2484 Zack Weinberg <zack@codesourcery.com>
2485
2486 * rs6000.c (rs6000_expand_unop_builtin): Check icode not
2487 CODE_FOR_nothing. Change switch to if.
2488 (rs6000_expand_binop_builtin): Same.
2489 (rs6000_expand_builtin): Expand builtin if target support enabled.
2490 (rs6000_init_builtins): Init builtin if target support enabled.
2491 (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
2492
60b8aa94
FS
24932002-07-30 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2494
2495 * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
2496
714fb710
RS
24972002-07-30 Richard Sandiford <rsandifo@redhat.com>
2498
2499 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
2500
c608a684
R
2501Tue Jul 30 18:31:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
2502
2503 * sh.md (cond_delay_slot): New attribute.
2504 (cbranch delay): Use it for anulled-true case.
2505 (stuff_delay_slot): New pattern.
2506 * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
2507 delay slot insn.
2508 (gen_far_branch): Emit stuff_delay_slot pattern.
2509
0a756401
R
2510Tue Jul 30 11:21:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
2511
2512 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
2513
68e82b83
KH
25142002-07-30 Kazu Hirata <kazu@cs.umass.edu>
2515
2516 * fold-const.c: Fix comment typos.
2517 * gcse.c: Likewise.
2518 * reload1.c: Likewise.
2519
fe6b547a
AH
25202002-07-29 Aldy Hernandez <aldyh@redhat.com>
2521
2522 * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
2523 for TARGET_SPE.
2524
7ff4a7ef
GDR
25252002-07-30 Gabriel Dos Reis <gdr@nerim.net>
2526
2527 * c-pretty-print.h (pp_c_statement): Declare.
2528 * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
2529 (pp_c_statement): Define.
2530
4ad5e05d
KG
25312002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2532
2533 * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
2534 darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
2535 ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
2536 mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
2537 rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
2538 v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
2539
2540 * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
2541 * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
2542
1e6a3e1e
GDR
25432002-07-30 Gabriel Dos Reis <gdr@nerim.net>
2544
2545 * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
2546 (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
2547 COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
2548 (pp_c_expression): Update.
2549
1dcd444b
KG
25502002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2551
2552 * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
2553 concat in lieu of xmalloc/strcpy/memcpy/sprintf.
2554 * alpha/vms-ld.c (main): Likewise.
2555 * dsp16xx.c (double_reg_to_memory): Likewise.
2556 * mcore.c (mcore_expand_prolog): Likewise.
2557 * cppfiles.c (read_name_map): Likewise.
2558 * gensupport.c (process_rtx, identify_predicable_attribute,
2559 alter_test_for_insn): Likewise.
2560 * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
2561
e62f4abc
RS
25622002-07-29 Roger Sayle <roger@eyesopen.com>
2563
2564 * builtins.c (expand_builtin): Change the default behavior to
905173eb 2565 only issue an error if the builtin function doesn't have a
e62f4abc
RS
2566 fallback library call. Remove several cases handled by the
2567 new default.
2568
0cd2fb44
JDA
25692002-07-29 John David Anglin <dave@hiauly1.hia.nrc>
2570
2571 * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
2572 floating point format of the target is IEEE.
2573 * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
2574 format of the target is DEC.
2575
b642261e
RH
25762002-07-29 Richard Henderson <rth@redhat.com>
2577
2578 * unroll.c (verify_addresses): Remove.
2579 (find_splittable_givs): Never split DEST_ADDR givs.
2580
cba57c9d
GK
25812002-07-29 Geoffrey Keating <geoffk@redhat.com>
2582
2583 * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
2584 is exhaustive.
2585 (Files): Improve documentation on generated source files.
2586
2587 * doc/extend.texi (Translation implementation): Document what
2588 diagnostics look like.
2589 (Identifiers implementation): Document that there's normally no
2590 limit on identifier names.
2591 (Integers implementation): Document two's complement.
2592 (Hints implementation): Document that GCC honours 'inline', mostly.
2593 (Preprocessing directives implementation): Document that GCC
2594 requires the current time.
2595
76a8ecba
GDR
25962002-07-30 Gabriel Dos Reis <gdr@nerim.net>
2597
2598 * c-pretty-print.h (struct c_pretty_print_info): Add new member.
2599 (pp_initializer): New macro.
2600 (pp_c_initializer): Declare.
2601 * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
2602 (pp_c_initializer): Define.
2603 (pp_c_initializer_list): New function.
2604 (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
2605 VECTOR_CST, CONSTRUCTOR.
2606 (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
905173eb 2607 IMAGPART_EXPR.
76a8ecba
GDR
2608 (pp_c_cast_expression): Handle FLOAT_EXPR.
2609 (pp_c_assignment_expression): Handle INIT_EXPR.
2610 (pp_c_expression): Update.
2611
4307be72
NB
26122002-07-30 Neil Booth <neil@daikokuya.co.uk>
2613
2614 * objc/objc-act.c (objc_init): Return immediately if filename
2615 is NULL.
2616
6d439235
EC
26172002-07-29 Eric Christopher <echristo@redhat.com>
2618
905173eb
ZW
2619 * config/mips/elf.h: Remove ecoff.h and gofast includes.
2620 (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
2621 (SDB_DEBUGGING_INFO): Undefine.
2622 (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
6d439235
EC
2623 (PUT_SDB_SIZE): Remove.
2624 (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
905173eb
ZW
2625 (STARTFILE_SPEC): Add isa3264 define.
2626 * config/mips/elf64.h: Ditto. Move TARGET_MEM_FUNCTIONS from here...
2627 * config/mips/ecoff.h: Remove. and here...
2628 * config/mips/iris3.h: and here...
2629 * config/mips/sni-svr4.h: and here...
2630 * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
6d439235
EC
2631 Add assembler -mmdebug options for non-dwarf debugging.
2632 * config/mips/r3900.h: Remove debug info defines.
905173eb
ZW
2633 * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
2634 * config/mips/isa3264.h: Ditto.
2635 * config/mips/t-isa3264: Fix up for file removal and gofast configure
2636 change.
2637 * config/mips/t-elf: Ditto.
2638 * config/mips/t-ecoff: Ditto.
2639 * config/mips/t-r3900: Ditto.
2640 * config/mips/t-iris5-6: Ditto.
2641 * config/mips/t-isa3264: Ditto.
2642 * config/mips/t-linux: Remove.
2643 * config/mips/t-netbsd: Remove.
2644 * config/mips/t-mips: New file.
2645 * config/mips/t-gofast: Ditto.
2646 * config/mips/netbsd.h: Remove unnecessary undefines.
2647 * config/mips/linux.h: Remove #include of mips.h.
2648 * config.gcc: Add mips.h include for elf targets. Remove tm_file
2649 for ecoff. Add gofast configure option for mips.
6d439235 2650
4357a6c3
CD
26512002-07-29 Chris Demetriou <cgd@broadcom.com>
2652
2653 * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
2654 linker scripts use STARTUP directives consistently.
2655 * configure: Regenerate.
2656 * config.in: Regenerate.
2657 * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
2658 on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
2659 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
2660 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
2661 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
2662 will be the same.
2663
9a5cd606
AH
26642002-07-29 Aldy Hernandez <aldyh@redhat.com>
2665
2666 * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
2667
a23acaa6
AH
26682002-07-29 Aldy Hernandez <aldyh@redhat.com>
2669
2670 * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
2671
10ed84db
AH
26722002-07-29 Aldy Hernandez <aldy@quesejoda.com>
2673
2674 * config/rs6000/rs6000.md: Move altivec patterns from here...
2675
2676 * config/rs6000/altivec.md: ...to here.
2677
c3021e5d
AH
26782002-07-29 Aldy Hernandez <aldyh@redhat.com>
2679
2680 * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
2681
6f1087be
RH
26822002-07-29 Richard Henderson <rth@redhat.com>
2683
2684 * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
2685 set_mem_attributes and add BITPOS argument. Subtract it from
2686 OFFSET when same is adjusted.
2687 (set_mem_attributes): New wrapper function.
2688 * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
2689 remove offset adjustment hack.
2690 * expr.h (set_mem_attributes_minus_bitpos): Declare.
2691
61ccbcfd
GDR
26922002-07-29 Gabriel Dos Reis <gdr@nerim.net>
2693
2694 * Makefile.in (C_OBJS): Include c-pretty-print.o
2695 (c-pretty-print.o): Add depency rule.
2696 * pretty-print.h: Add more macros.
2697 * c-pretty-print.c: New file.
2698 * c-pretty-print.h: Likewise.
2699
09101f56
AH
27002002-07-29 Aldy Hernandez <aldyh@redhat.com>
2701
2702 * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
2703 constants to __ev64_s32__.
2704 (__internal_ev_mwhgsmian): Same.
2705 (__internal_ev_mwhgsmfan): Same.
2706 (__internal_ev_mwhgssfan): Same.
2707 (__internal_ev_mwhgumiaa): Same.
2708 (__internal_ev_mwhgsmiaa): Same.
2709 (__internal_ev_mwhgsmfaa): Same.
2710 (__internal_ev_mwhgssfaa): Same.
2711
af673a52
DE
27122002-07-29 David Edelsohn <edelsohn@gnu.org>
2713
2714 * varasm.c (assemble_variable): Narrow test for uninitialized
2715 without BSS target support.
2716
6c208acd
NS
27172002-07-29 Nathan Sidwell <nathan@codesourcery.com>
2718
2719 * profile.c: Add file comment describing the overall algorithm and
2720 structures.
2721 (struct edge_info): Add comments.
2722 (struct bb_info): Add comments.
2723 * basic-block.h (EDGE_*): Add comments.
2724 * doc/gcov.texi (Gcov Data Files): Document bit flags.
2725
624f0d60
BW
27262002-07-29 Bob Wilson <bob.wilson@acm.org>
2727
2728 * config/xtensa/elf.h, config/xtensa/linux.h
2729 (TARGET_OS_CPP_BUILTINS): Define.
2730 (CPP_PREDEFINES): Remove.
2731 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
2732 (CPP_SPEC): Remove.
2733
2199e5fa
ZW
27342002-07-29 Zack Weinberg <zack@codesourcery.com>
2735
2736 * gensupport.c: Include hashtab.h.
2737 (insn_elision, condition_table, hash_c_test, cmp_c_test,
2738 maybe_eval_c_test): New routines and data structures to
2739 support insn elision.
2740 (init_md_reader): Read and initialize the condition_table.
2741 (read_md_rtx): Discard insn patterns whose C test is provably
2742 always false.
2743 * gensupport.h: Declare new functions and data structures.
2744
2745 * genconditions.c, dummy-conditions.c: New files.
2746 * Makefile.in: Build genconditions; run it to construct
2747 insn-conditions.c; build that and link it into most gen*
2748 programs.
2749 (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
2750 (GEN): Delete, unused.
2751 (STAGESTUFF): Update.
2752
2753 * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
2754 CODE_FOR_nothing for all elided patterns.
2755 (main): Tweaked to support this.
2756 * genflags.c (gen_proto): Emit a static inline generator
2757 function here for all elided patterns, which simply returns
2758 NULL_RTX.
2759 (gen_insn): Do not define HAVE_xxx for elided patterns.
2760 (main): Tweaked to support this. No need to forward-declare
2761 struct rtx_def.
2762 * genrecog.c: Do not bother emitting the C test if it's known
2763 to be true at compile time.
2764
6ab185d6
MS
27652002-07-29 Mike Stump <mrs@apple.com>
2766
6d439235 2767 * config.gcc (target_gtfiles): Initialize, as otherwise cross
2199e5fa 2768 compilers hosted on powerpc-apple-darwin6.0 won't even build.
6ab185d6 2769
72b075d1
RE
27702002-07-29 Richard Earnshaw <rearnsha@arm.com>
2771
2772 * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
2773 remove clobber of LR.
2774 (sibcall_insn, sibcall_value_insn): Update accordingly.
2775 (sibcall_epilogue): Remove debugging comment from assembler stream.
2776
f63c45ec
GDR
27772002-07-29 Gabriel Dos Reis <gdr@nerim.net>
2778
2779 * pretty-print.h: Define more macros.
2780 * diagnostic.h (output_formatted_integer): Moved from...
2781 * diagnostic.c: ... here.
2782
c27c15db
KG
27832002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2784
2785 * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
2786
99086d59
ZW
27872002-07-28 Zack Weinberg <zack@codesourcery.com>
2788
2789 * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
2790 arguments. Always use ".-symbol" as expression argument.
2791 * doc/tm.texi: Update to match. Document requirement for
2792 ".size symbol, .-symbol" to be acceptable to assembler.
2793
2794 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
2795 config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
2796 config/i386/freebsd-aout.h, config/i386/sco5.h,
2797 config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
2798 config/xtensa/linux.h: Update uses of ASM_OUTPUT_MEASURED_SIZE.
2799
dd86aabf
KG
28002002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2801
6fd327e9
KG
2802 * Makefile.in (gengtype-lex.c): Fix error in last change.
2803
8155cedd
KG
2804 * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
2805 backslash.
2806
dd86aabf
KG
2807 * Makefile.in (vmsdbgout.o): Depend on function.h.
2808
2809 * vmsdbgout.c: Include function.h.
2810
d4348177
AM
28112002-07-28 Alan Modra <amodra@bigpond.net.au>
2812
2813 * prefix.c (update_path): Don't strip single `.' path components
2814 unless stripping a later `..' component. Exit loop as soon as
2815 a valid path is found.
2816
c2ef6d34
RS
28172002-07-27 Roger Sayle <roger@eyesopen.com>
2818
2819 * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
2820 argument. Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
2821 BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
2822 floating point unordered comparisons (e.g. __builtin_isgreater)
2823 as const, and leave the remaining GCC_BUILTINs unchanged.
2824
2825 * c-decl.c (builtin_function): No need to explicitly mark
2826 BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
2827
52bfebf0
RS
28282002-07-27 Roger Sayle <roger@eyesopen.com>
2829
2830 * Makefile.in: rtlanal.o now depends upon real.h.
2831
2832 * flags.h [flag_signaling_nans]: New flag.
2833 [HONOR_SNANS]: New macro.
2834
2835 * toplev.c [flag_signaling_nans]: Initialize to false.
99086d59 2836 (f_options): Add processing for "-fsignaling-nans".
52bfebf0
RS
2837 (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
2838 (process_options): flag_signaling_nans implies flag_trapping_math.
2839
2840 * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
2841 when -fsignaling-nans. First step to implementing WG14's N965.
2842
2843 * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
2844 1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
2845 [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
2846
2847 * simplify-rtx.c (simplify_relational_operation): Conditionalize
2848 transforming abs(x) < 0.0 into false on !HONOR_SNANS.
2849
2850 * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
2851 required by HONOR_SNANS. (may_trap_p): Floating point DIV, MOD,
99086d59
ZW
2852 UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
2853 -fsignaling_nans. EQ and NE only trap for flag_signaling_nans
52bfebf0
RS
2854 not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
2855
2856 * doc/invoke.texi: Document new -fsignaling-nans compiler option.
2857
e66f55b8
KG
28582002-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2859
2860 * Makefile.in (gengtype-lex.c): Work around a bug in flex.
2861 * gengtype-lex.l (YY_USE_PROTOS): Undef.
2862 (YY_DECL): Define.
2863
a3926fe1
RS
28642002-07-27 Roger Sayle <roger@eyesopen.com>
2865
2866 * doc/invoke.texi: Document that both -fno-builtin-foo and
2867 -fno-builtin are supported by the g++ front-end.
2868
ef69da62
SS
28692002-07-27 Stan Shebs <shebs@apple.com>
2870
2871 * configure.in: Rename config_gtfiles to target_gtfiles.
2872 * configure: Regenerate.
2873 * doc/gty.texi: Update reference.
2874 * config.gcc (powerpc-*-darwin*): Set target_gtfiles
2875 instead of appending to it.
2876
a4b0320c
AH
28772002-07-25 Aldy Hernandez <aldyh@redhat.com>
2878
2879 * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
2880 vectors are split into two registers.
2881 (function_arg): Same.
2882
c427db5d
R
2883Thu Jul 26 23:00:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
2884
2885 * pa.md (extv): Check predicates before emitting extv_32.
2886
57ac7be9
AM
28872002-07-27 Alan Modra <amodra@bigpond.net.au>
2888
2889 * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
2890 (rs6000_traceback): New var.
2891 (rs6000_override_options): Set rs6000_traceback.
2892 (rs6000_output_function_epilogue): Implement traceback options.
2893 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
2894 (rs6000_traceback_name): Declare.
2895
2896 * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
2897 label reference when NO_PROFILE_COUNTERS.
2898
8e51619a
JM
28992002-07-26 Jason Merrill <jason@redhat.com>
2900
2901 * function.c (assign_parms): Handle frontend-directed pass by
2902 invisible reference.
2903
b41f25cf
NB
29042002-07-26 Neil Booth <neil@daikokuya.co.uk>
2905
2906 * doc/cppopts.texi: Update.
2907
c2734e05
NB
29082002-07-26 Neil Booth <neil@daikokuya.co.uk>
2909
2910 * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
2911 warnings on assertions.
2912
c372b0fa
NB
29132002-07-26 Neil Booth <neil@daikokuya.co.uk>
2914
2915 * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
2916 RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
2917 RID_COMPL): Remove.
2918 * c-parse.in (rid_to_yy): Similarly.
2919
558ee214
JM
29202002-07-26 Jason Merrill <jason@redhat.com>
2921
2922 * c-dump.c: Resurrect.
2923 * tree-dump.c: Move C-specific stuff to c-dump.c.
2924 * c-common.h: Declare c_dump_tree.
2925 * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
2926 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
2927 (c-dump.o): New rule.
2928
ce71f754
AM
29292002-07-26 Alan Modra <amodra@bigpond.net.au>
2930
2931 * config/rs6000/rs6000.md: Enable patterns using rlwinm for
2932 PowerPC64. Replace "T" and "S" constraints with "n" when the
2933 predicate will do. Formatting fixes.
2934 (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
2935 as for extzvsi_internal1.
2936
e179e7d7
NB
29372002-07-25 Neil Booth <neil@daikokuya.co.uk>
2938
2939 * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
2940 DERIV_END_LABEL_FMT): Remove.
2941 (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
2942
a2056183
NB
29432002-07-25 Neil Booth <neil@daikokuya.co.uk>
2944
2945 * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
2946 Remove.
2947
308c142a
SS
29482002-07-25 Stan Shebs <shebs@apple.com>
2949
2950 * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
2951 local var dwarfp.
2952 (output_compiler_stub): Remove unused locals.
2953 (output_call): Always initialize line number.
2954
59324685
R
2955Thu Jul 25 20:34:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
2956
2957 * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
2958 * sh.md (truncdiqi2, movqi_media): Likewise.
2959
77bbd421
NB
29602002-07-25 Neil Booth <neil@daikokuya.co.uk>
2961
2962 * gcse.c (obstack_chunk_alloc): Remove.
2963 (gcse_alloc): Fix to count allocated bytes.
2964 * collect2.c (SYMBOL__MAIN): Remove.
2965
7bad45b0
NB
29662002-07-25 Neil Booth <neil@daikokuya.co.uk>
2967
2968 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
2969 HAVE_TARGET_EXECUTABLE_SUFFIX.
2970
184166b5
R
2971Thu Jul 25 18:57:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
2972
2973 * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
2974 SIZE, EXPR and OFFSET.
2975
40cb04f1
RH
29762002-07-25 Richard Henderson <rth@redhat.com>
2977
2978 * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
2979 in ARRAY_REF of DECL_P case.
2980
a27fb29b
RS
29812002-07-25 Richard Sandiford <rsandifo@redhat.com>
2982
2983 * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
2984 description. Document -mips32, -mips64, and the associated -march
2985 values. Describe the "mipsN" arguments to -march. Say that the
2986 -mipsN options are equivalent to -march. Reword the description
2987 of default type sizes.
2988 * toplev.h (target_flags_explicit): Declare.
2989 * toplev.c (target_flags_explicit): New var.
2990 (set_target_switch): Update target_flags_explicit.
2991 * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
2992 * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
2993 * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
2994 * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
2995 * config/mips/mips.h (mips_cpu_info): New struct.
2996 (mips_cpu_string, mips_explicit_type_size_string): Remove.
2997 (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
2998 (MIPS_CPP_SET_PROCESSOR): New macro.
2999 (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
3000 Define _MIPS_ARCH and _MIPS_TUNE.
3001 (MIPS_ISA_DEFAULT): Don't provide a default value. Instead...
3002 (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
3003 MIPS_ISA_DEFAULT were already defined.
3004 (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
3005 (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
3006 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
3007 (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
3008 (ABI_GAS_ASM_SPEC): Remove.
3009 (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
3010 (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
3011 Invoke %(asm_abi_default_spec) if no ABI was specified.
3012 (CC1_SPEC): Remove ISA -> register-size rules.
3013 (EXTRA_SPECS): Remove abi_gas_asm_spec. Add asm_abi_default_spec.
3014 * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
3015 (mips_cpu_string, mips_explicit_type_size_string): Remove.
3016 (mips_cpu_info_table): New array.
3017 (mips_set_architecture, mips_set_tune): New fns.
3018 (override_options): Rework to make -mipsN equivalent to -march.
3019 Detect more erroneous cases, including those removed from CC1_SPEC.
3020 Don't change the ABI based on architecture, or vice versa.
3021 Unify logic with GAS.
3022 (mips_asm_file_start): Get architecture name from mips_arch_info.
3023 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3024 (mips_parse_cpu): Take the name of the option as argument. Handle
3025 'from-abi'. Raise an error if the option is wrong.
3026 (mips_cpu_info_from_isa): New fn.
3027
6bbdc759
RS
30282002-07-25 Richard Sandiford <rsandifo@redhat.com>
3029
3030 * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
3031 (tablejump_mips162): Likewise.
3032
80a62484
R
3033Thu Jul 25 10:23:41 2002 J"orn Rennecke <joern.rennecke@superh.com>
3034
3035 * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
3036 int_mode_for_mode.
3037
ea793912
GDR
30382002-07-25 Gabriel Dos Reis <gdr@nerim.net>
3039
3040 * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
99086d59 3041 complaining.
ea793912
GDR
3042 * c-common.h (c_sizeof): Adjust definition.
3043 (c_alignof): Likewise.
3044 * c-tree.h (c_sizeof_nowarn): Now macro.
3045 * c-typeck.c (c_sizeof_nowarn): Remove definition.
3046
2d615444
NB
30472002-07-25 Neil Booth <neil@daikokuya.co.uk>
3048
3049 * c-decl.c (c_decode_option): No need to handle switches
3050 cpplib handles.
3051
2be2ac70
ZW
30522002-07-24 Zack Weinberg <zack@codesourcery.com>
3053
3054 * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
3055 ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
3056 * doc/tm.texi: Document them. Also document SIZE_ASM_OP,
3057 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
3058
3059 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
3060 config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
3061 config/cris/aout.h, config/i386/freebsd-aout.h,
3062 config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
3063 config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
3064 config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
3065 config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
3066 config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
3067 config/xtensa/elf.h, config/xtensa/linux.h:
3068 Use the new macros.
3069 Where possible, remove redundant definitions of SIZE_ASM_OP,
3070 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
3071
518878e1
AH
30722002-07-24 Aldy Hernandez <aldyh@redhat.com>
3073
3074 * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
3075 TARGET_ISEL, and TARGET_FPRS.
99086d59 3076
518878e1
AH
3077 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3078 -mabi=spe, -mabi=no-spe, and -misel=.
3079
3080 * config/rs6000/rs6000-protos.h: Add output_isel.
3081 Move vrsave_operation prototype here.
3082
3083 * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
3084 (smaxsi3): Same.
3085 (uminsi3): Same.
3086 (umaxsi3): Same.
3087 (abssi2_nopower): Disallow when TARGET_ISEL.
3088 (*ne0): Same.
3089 (negsf2): Change to expand and rename old pattern to *negsf2.
3090 (abssf2): Change to expand and rename old pattern to *abssf2.
99086d59 3091
518878e1
AH
3092 New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
3093 fixunssfsi2.
3094
3095 Change patterns that check for TARGET_HARD_FLOAT or
3096 TARGET_SOFT_FLOAT to also check TARGET_FPRS.
3097
3098 * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
3099 rs6000_isel, rs6000_fprs, rs6000_isel_string.
3100 (rs6000_override_options): Add 8540 case to
3101 processor_target_table.
3102 Set rs6000_isel for the 8540.
3103 Call rs6000_parse_isel_option.
3104 (enable_mask_for_builtins): New.
3105 (rs6000_parse_isel_option): New.
3106 (rs6000_parse_abi_options): Add spe and no-spe.
3107 (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
3108 (rs6000_legitimize_address): Check for TARGET_FPRS when checking
3109 for TARGET_HARD_FLOAT.
3110 Add case for SPE_VECTOR_MODE.
3111 (rs6000_legitimize_reload_address): Handle SPE vector modes.
3112 (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
3113 vector modes.
3114 Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
3115 (rs6000_emit_move): Check for TARGET_FPRS.
3116 Add cases for SPE vector modes.
3117 (function_arg_boundary): Return 64 for SPE vector modes.
3118 (function_arg_advance): Check for TARGET_FPRS and
3119 Handle SPE vectors.
3120 (function_arg): Same.
3121 (setup_incoming_varargs): Check for TARGET_FPRS.
3122 (rs6000_va_arg): Same.
3123 (struct builtin_description): Un-constify mask field. Move up in
3124 file.
3125 (bdesc_2arg): Un-constify and add SPE builtins.
3126 (bdesc_1arg): Same.
3127 (bdesc_spe_predicates): New.
3128 (bdesc_spe_evsel): New.
3129 (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
3130 (rs6000_expand_binop_builtin): Same.
3131 (bdesc_2arg_spe): New.
3132 (spe_expand_builtin): New.
3133 (spe_expand_predicate_builtin): New.
3134 (spe_expand_evsel_builtin): New.
3135 (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
3136 (rs6000_init_builtins): Initialize SPE builtins. Call
3137 rs6000_common_init_builtins.
3138 (altivec_init_builtins): Move all non-altivec builtin code to...
3139 (rs6000_common_init_builtins): ...here. New function.
3140 (branch_positive_comparison_operator): Allow NE code for SPE.
3141 (ccr_bit): Return correct ccr bit for SPE fp.
3142 (print_operand): Emit crnor in 'D' case for SPE.
3143 New case 't'.
3144 Add SPE code for 'y' case.
3145 (rs6000_generate_compare): Generate rtl for SPE fp.
3146 (output_cbranch): Handle SPE hard floats.
3147 (rs6000_emit_cmove): Handle isel.
3148 (rs6000_emit_int_cmove): New.
3149 (output_isel): New.
3150 (rs6000_stack_info): Adjust stack frame so GPRs are saved in
3151 64-bits for SPE.
3152 (debug_stack_info): Add SPE info.
3153 (gen_frame_mem_offset): New.
3154 (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
3155 Change mode of frame pointer, when saving it, to Pmode.
3156 (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
3157 Misc cleanups and use gen_frame_mem_offset when appropriate.
3158
3159 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
3160 (TARGET_SPE_ABI): New.
3161 (TARGET_SPE): New.
3162 (TARGET_ISEL): New.
3163 (TARGET_FPRS): New.
3164 (FIXED_SCRATCH): New.
3165 (RTX_COSTS): Add PROCESSOR_PPC8540.
3166 (ASM_CPU_SPEC): Add case for 8540.
3167 (TARGET_OPTIONS): Add isel= case.
3168 (rs6000_spe_abi): New.
3169 (rs6000_isel): New.
3170 (rs6000_fprs): New.
3171 (rs6000_isel_string): New.
3172 (UNITS_PER_SPE_WORD): New.
3173 (LOCAL_ALIGNMENT): Adjust for SPE.
3174 (HARD_REGNO_MODE_OK): Same.
3175 (DATA_ALIGNMENT): Same.
3176 (MEMBER_TYPE_FORCES_BLK): New.
3177 (FIRST_PSEUDO_REGISTER): Set to 113.
3178 (FIXED_REGISTERS): Add SPE registers.
3179 (reg_class): Same.
3180 (REG_CLASS_NAMES): Same.
3181 (REG_CLASS_CONTENTS): Same.
3182 (REGNO_REG_CLASS): Same.
3183 (REGISTER_NAMES): Same.
3184 (DEBUG_REGISTER_NAMES): Same.
3185 (ADDITIONAL_REGISTER_NAMES): Same.
3186 (CALL_USED_REGISTERS): Same.
3187 (CALL_REALLY_USED_REGISTERS): Same.
3188 (SPE_ACC_REGNO): New.
3189 (SPEFSCR_REGNO): New.
3190 (SPE_SIMD_REGNO_P): New.
3191 (HARD_REGNO_NREGS): Adjust for SPE.
3192 (VECTOR_MODE_SUPPORTED_P): Same.
3193 (REGNO_REG_CLASS): Same.
3194 (FUNCTION_VALUE): Same.
3195 (LIBCALL_VALUE): Same.
3196 (LEGITIMATE_OFFSET_ADDRESS_P): Same.
3197 (SPE_VECTOR_MODE): New.
3198 (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
3199 the GPRs. Set FIXED_SCRATCH fixed in SPE case.
3200 (rs6000_stack): Add spe_gp_size, spe_padding_size,
3201 spe_gp_save_offset.
3202 (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
3203 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
3204 (SPE_CONST_OFFSET_OK): New.
3205 (rs6000_builtins): Add SPE builtins.
3206
3207 * testsuite/gcc.dg/ppc-spe.c: New.
99086d59 3208
518878e1
AH
3209 * config/rs6000/eabispe.h: New.
3210
3211 * config/rs6000/spe.h: New.
3212
3213 * config/rs600/spe.md: New.
3214
3215 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3216 __SIMD__ for TARGET_SPE.
3217
3218 * config.gcc: Add powerpc-*-eabispe* case.
3219 Add spe.h to user headers for powerpc.
3220
8d1b7ba1
CD
32212002-07-24 Chris Demetriou <cgd@broadcom.com>
3222
3223 * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
3224 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
3225 * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
3226
8ad8135a
RH
32272002-07-24 Richard Henderson <rth@redhat.com>
3228
3229 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
3230 form when not optimizing.
3231
dc44a4d8
DM
32322002-07-24 David Mosberger <davidm@hpl.hp.com>
3233
3234 * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
3235 thread_pointer_rtx as unchanging.
3236
c5605318
MM
32372002-07-24 Michael Matz <matz@suse.de>
3238
3239 * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
3240 (free_reg): Use it.
3241
3ade30ea
RE
32422002-07-24 Richard Earnshaw <rearnsha@arm.com>
3243
3244 * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
3245 pattern.
3246 (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
3247 (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
3248
8a3ad737
CD
32492002-07-24 Chris Demetriou <cgd@broadcom.com>
3250
3251 * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
3252 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
3253 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
3254
7e51e626
JH
3255Wed Jul 24 17:59:12 CEST 2002 Jan Hubicka <jh@suse.cz>
3256
3257 * toplev.c (rest_of_compilation): Dump loops before clobbering
3258 the structure.
3259
5df533b3
JH
3260Wed Jul 24 17:23:16 CEST 2002 Jan Hubicka <jh@suse.cz>
3261
3262 * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
3263
79258dce
RS
32642002-07-24 Frank van der Linden <fvdl@wasabisystems.com>
3265
3266 PR optimization/7291
3267 * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
3268 problem on x86_64.
3269
26ff2117
GDR
32702002-07-24 Gabriel Dos Reis <gdr@nerim.net>
3271
3272 * pretty-print.h: Add macros from cp/error.c
3273
0ba1b2ff
AM
32742002-07-24 Alan Modra <amodra@bigpond.net.au>
3275
3276 * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
3277 (mask64_2_operand): Declare.
3278 (build_mask64_2_operands): Declare.
3279 (and64_2_operand): Declare.
3280 (extract_MB): Declare.
3281 (extract_ME): Declare.
3282 * config/rs6000/rs6000.c (mask64_operand): Allow all ones. Remove
3283 CONST_DOUBLE code.
3284 (mask_operand_wrap): New insn predicate.
3285 (mask64_2_operand): Likewise.
3286 (and64_2_operand): Likewise.
3287 (build_mask64_2_operands): New function.
3288 (extract_MB): New function.
3289 (extract_ME): New function.
3290 (print_operand <case m,M>): Use extract_MB and extract_ME.
3291 (print_operand <case S>): Allow all ones. Remove CONST_DOUBLE support.
3292 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
3293 (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
3294 mask64_2_operand. Remove CONST_DOUBLE from mask64_operand.
3295 * config/rs6000/rs6000.md (andsi3_internal3): New
3296 (andsi3_internal3+1): Enable split for powerpc64.
3297 (andsi3_internal3+2): New split.
3298 (andsi3_internal4): Renamed old andsi3_internal3.
3299 (andsi3_internal5): New.
3300 (andsi3_internal5+1): Enable split for powerpc64.
3301 (andsi3_internal5+2): New split.
3302 (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
3303 (anddi3): Handle 't' constraint.
3304 (anddi3+1): New split.
3305 (anddi3_internal2): Handle 't' constraint.
3306 (anddi3_internal2+1): New split.
3307 (anddi3_internal3): Handle 't' constraint.
3308 (anddi3_internal3+1): New split.
3309
097657c3
AM
33102002-07-24 Alan Modra <amodra@bigpond.net.au>
3311
3312 * config/rs6000/rs6000.md: Remove scratch reg on insns using
3313 addze and similar (plus (comparison r1 r2) r3) insns. Add
3314 missing scratch reg in one case. Formatting fixes.
3315
a69cbaac
NB
33162002-07-24 Neil Booth <neil@daikokuya.co.uk>
3317
3318 * cppexp.c (parse_defined): Mark macro used.
3319 * cpphash.h (struct cpp_macro): New member "used".
3320 (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
3321 (struct cpp_reader): New member.
3322 * cppinit.c (cpp_finish_options): Set first_unused_line.
3323 (cpp_finish): Warn of unused macros if requested.
3324 (OPT_TABLE): New switches.
3325 (cpp_handle_option): Handle them.
3326 * cpplib.c (do_undef): Warn if macro unused.
3327 (do_ifdef, do_ifndef): Mark macro used.
3328 * cpplib.h (struct cpp_options): New member.
3329 * cppmacro.c (_cpp_warn_if_unused_macro): New.
3330 (enter_macro_context): Mark macro used.
3331 (_cpp_create_definition): Mark macro unused; warn if unused
3332 when redefined.
3333 * cpptrad.c (scan_out_logcial_line, push_replacement_text):
3334 Mark macros used.
3335 * doc/cppopts.texi: Update.
3336
c0667597
NB
33372002-07-23 Neil Booth <neil@daikokuya.co.uk>
3338
3339 * dwarf2out.c (SECTION_ASM_OP,
3340 ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
3341 * system.h (SECTION_ASM_OP): Poison.
3342 * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
3343 * config/alpha/alpha-interix.h, config/mips/linux.h
3344 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
3345 * config/mmix/mmix-protos.h, config/mmix/mmix.c
3346 (mmix_asm_output_define_label_difference_symbol): Remove.
3347 * config/mmix/mmix.h
3348 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
b841421a 3349 * doc/tm.texi: Remove documentation.
c0667597 3350
bf7cd754
R
3351Tue Jul 23 21:49:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3352
3353 * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
3354 (constrain_operands): Likewise.
3355 * regclass.c (record_reg_classes): Likewise.
3356 * reload.c (find_reloads): Likewise.
3357 * doc/md.texi: Likewise.
451f86fd
R
3358
3359 * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
3360 * simplify-rtx.c (simplify_subreg): When converting to a non-int
3361 mode, try to convert to an integer mode of matching size first.
1d5fa6b4
R
3362
3363 * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
3364 from individual subregs, check that each subreg has been generated
3365 sucessfully.
3366
10d6af32
NB
33672002-07-23 Neil Booth <neil@daikokuya.co.uk>
3368
3369 * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
3370 * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
3371 FOR_EACH_BB_IN_SBITMAP): Remove.
3372 * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
3373 * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
3374 LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
3375 * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
3376 PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
3377 * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
3378
6aaae39a
GDR
33792002-07-23 Gabriel Dos Reis <gdr@nerim.net>
3380
3381 * pretty-print.h: New file.
3382
45e574d0
JDA
33832002-07-23 Paul Koning <pkoning@equallogic.com>
3384
3385 * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
3386 (LARGEST_EXPONENT_IS_NORMAL): Ditto.
3387 (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
3388 (TARGET_G_FLOAT): Default to 0 if not defined.
99086d59 3389 (ieeetoe): New, common routine to convert target format floats
45e574d0
JDA
3390 to internal form.
3391 (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
3392 vs. others.
3393 (e113toe): Change to use ieeetoe.
3394
33952002-07-23 Roman Lechtchinsky <rl@cs.tu-berlin.de>
3396
3397 * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
3398 IBM.
3399 (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
3400 (e64toe): Remove special cases for DEC and IBM. Remove support for
3401 ARM_EXTENDED_IEEE_FORMAT.
3402 (e24toe): Remove special cases for DEC.
3403 (significand_size): Simplify. Indent.
3404 (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
3405 (etoieee, toieee): New.
3406 (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
3407 etoieee and toieee for IEEE arithmetic.
3408
3764f879
GDR
34092002-07-23 Gabriel Dos Reis <gdr@nerim.net>
3410
3411 * doc/extend.texi: Say ISO C90, not ISO C89.
3412 * doc/invoke.texi: Likewise.
3413 * doc/standards.texi: Likewise.
3414
aa0f70e6
SE
34152002-07-23 Steve Ellcey <sje@cup.hp.com>
3416
3417 * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
3418 Fix permutation of conversion and plus/mult.
3419 * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
3420 ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
3421 (expand_builtin_strncpy) Ditto.
3422 (expand_builtin_memset) Ditto.
3423
fa72b064
GDR
34242002-07-23 Gabriel Dos Reis <gdr@nerim.net>
3425
3426 Fix PR/7363:
3427 * c-common.c (c_sizeof_or_alignof_type): New function.
3428 (c_alignof): Remove definition.
3429 * c-common.h (c_sizeof, c_alignof): Define as macros.
3430 (c_sizeof_or_alignof_type): Declare.
3431 (my_friendly_assert): Moved from cp/cp-tree.h
3432 * c-typeck.c (c_sizeof): Remove definition.
3433
2b773ee2
JH
34342002-07-23 Jan Hubicka <jh@suse.cz>
3435
3436 * gcse.c (try_replace_reg): Use num_changes_pending.
3437 * recog.c (num_changes_pending): New function.
3438 (validate_replace_src): Use validate_repalce_src_group.
3439 (validate_replace_src_group): New.
3440 * recog.h (validate_repalce_src_group): New.
3441 (num_changes_pending): Likewise.
3442
a0dc500c
R
3443Tue Jul 23 12:16:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
3444
3445 * calls.c (emit_library_call_value_1): If
3446 FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
3447 libcall, const call nor pure call.
3448
d22eda7b
NB
34492002-07-23 Neil Booth <neil@daikokuya.co.uk>
3450
3451 * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
3452
b5e66e65
NB
34532002-07-23 Neil Booth <neil@daikokuya.co.uk>
3454
3455 * vmsdbgout.c (SECTION_ASM_OP): Remove.
3456
c3a600c0
NB
34572002-07-23 Neil Booth <neil@daikokuya.co.uk>
3458
3459 * config/i386/i386.c (AT_BP): Remove.
3460
4fa31c2a
NB
34612002-07-23 Neil Booth <neil@daikokuya.co.uk>
3462
3463 * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
3464 Default definition.
3465 * gcse.c: Don't define obstack_chunk_free.
3466 * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
3467 flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
3468 integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
3469 reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
3470 Don't define obstack macros.
3471
fd576c86
SC
34722002-07-22 Stephane Carrez <stcarrez@nerim.fr>
3473
3474 PR target/6744
3475 * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
3476 ASM_OPERANDS instructions.
3477
b791ff31
SC
34782002-07-22 Stephane Carrez <stcarrez@nerim.fr>
3479
3480 PR target/7361
3481 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
3482 constant addresses only on 68HC12.
3483
4a941115
NB
34842002-07-22 Neil Booth <neil@daikokuya.co.uk>
3485
3486 * cppfiles.c (stack_include_file): Correct test of whether
3487 a dependency should be output.
3488
7488cc6d
DE
34892002-07-22 David Edelsohn <edelsohn@gnu.org>
3490
3491 * collect2.c (is_ctor_dtor): Add other possible JOINER values.
3492
b41caf7c
RE
34932002-07-22 Richard Earnshaw <rearnsha@arm.com>
3494
3495 * arm.md (movqi): If optimizing and we can create pseudos, use
3496 a ZERO_EXTEND to load from memory, then copy the result into the
3497 target.
3498 (movhi): Likewise, but only for ARMv4.
3499
492e9934
NB
35002002-07-22 Neil Booth <neil@daikokuya.co.uk>
3501
3502 * ssa-ccp.c (PHI_PARMS): Remove.
3503
f01f01a6
RS
35042002-07-22 Richard Sandiford <rsandifo@redhat.com>
3505
3506 * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
3507 on big-endian targets.
3508
c2ae8aef
KG
35092002-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3510
3511 * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
3512 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
3513 HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
3514 New formatting macros.
3515
3516 * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
3517
eab2120d
R
3518Mon Jul 22 15:27:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
3519
3520 * rtlanal.c (subreg_regno_offset): Return correct offset for
3521 big endian paradoxical subregs.
0d541696
R
3522
3523 * optabs.c (expand_vector_unop): Don't expand using sub_optab
3524 if we got the wrong mode.
bb9b3805
R
3525
3526 * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
3527 * genrecog.c (write_switch, write_cond): Use it.
3528 * genemit.c (gen_exp): Likewise.
3529
e96eb215
JJ
35302002-07-22 Jakub Jelinek <jakub@redhat.com>
3531
3532 * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
3533
cf3c4f56
JJ
35342002-07-22 Jakub Jelinek <jakub@redhat.com>
3535
3536 * c-decl.c (build_compound_literal): Defer compound literal decls
3537 until until file end to emit them only if they are actually used.
3538
533c4863
KG
35392002-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3540
3541 * ra-build.c (check_conflict_numbers): Hide unused function.
3542 (livethrough_conflicts_bb): Avoid automatic aggregate
3543 initialization.
3544 (parts_to_webs_1): Avoid `U' integer constant modifier.
3545 (conflicts_between_webs): Wrap a variable in the macro controlling
3546 its usage.
3547 * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
3548 (dump_igraph, dump_graph_cost): Avoid string concatenation
3549 (dump_static_insn_cost): Avoid automatic aggregate
3550 initialization.
3551 * ra-rewrite.c (insert_stores): Avoid automatic aggregate
3552 initialization.
3553 (dump_cost): Avoid string concatenation
3554
8943a0b4
RH
35552002-07-21 Richard Henderson <rth@redhat.com>
3556
3557 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
3558 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
3559
b1aef35b
RH
35602002-07-21 Richard Henderson <rth@redhat.com>
3561
3562 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
3563 that are not unrolled completely.
3564
5e1afb11
RH
35652002-07-21 Richard Henderson <rth@redhat.com>
3566
3567 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
3568 * loop.c (strength_reduce): Update.
3569 * toplev.c (rest_of_compilation): Do unrolling in the first
3570 loop pass, not the second.
3571
c67a1cf6
RH
35722002-07-21 Richard Henderson <rth@redhat.com>
3573
3574 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
3575 when flag_argument_noalias == 2.
3576 * alias.c (nonoverlapping_memrefs_p): Handle that.
3577 * print-rtl.c (print_mem_expr): Likewise.
3578
b68daef4
HS
35792002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
3580
3581 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
3582 instead of __negdi2 directly.
3583
060a58c5
NB
35842002-07-21 Neil Booth <neil@daikokuya.co.uk>
3585
3586 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
3587 * function.c (SYMBOL__MAIN): Remove definition.
3588 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
99086d59 3589 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
060a58c5
NB
3590 * profile.c (GCOV_INDEX_TO_BB): Remove.
3591 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
3592 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
3593
2f8dd115
NB
35942002-07-21 Neil Booth <neil@daikokuya.co.uk>
3595
3596 * c-lex.c (GET_ENVIRONMENT): Remove.
3597 * collect2.c (GET_ENV_PATH_LIST): Remove.
3598 (prefix_from_env): Use GET_ENVIRONMENT.
3599 * cppinit.c (GET_ENV_PATH_LIST): Remove.
3600 (init_standard_includes): Use GET_ENVIRONMENT.
3601 * defaults.h (GET_ENVIRONMENT): Define here if not already.
3602 * gcc.c (GET_ENV_PATH_LIST): Remove.
3603 (make_relative_prefix, process_command): Update.
3604 * protoize.c (GET_ENV_PATH_LIST): Remove.
3605 (do_processing): Update.
3606
56508306
GDR
36072002-07-21 Gabriel Dos Reis <gdr@nerim.net>
3608
3609 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
3610 (grokdeclarator): Likewise.
3611 * c-format.c (C_STD_NAME): Likewise.
3612 * c-lex.c (interpret_integer): Likewise.
3613 * c-typeck.c (build_array_ref): Likewise.
3614 * cpplex.c (_cpp_lex_direct): Likewise.
3615 * toplev.c (documented_lang_options): Likewise.
3616
e2f62855
NB
36172002-07-21 Neil Booth <neil@daikokuya.co.uk>
3618
3619 * c-format.c (T99_I, T99_UI): Remove.
3620
c89d1dfd
NB
36212002-07-21 Neil Booth <neil@daikokuya.co.uk>
3622
3623 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
3624
46690369
JH
3625Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
3626
3627 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
3628 do_local_cprop.
3629
60ffc1b8
AJ
36302002-07-21 Andreas Jaeger <aj@suse.de>
3631
99086d59 3632 * reload1.c (fixup_abnormal_edges): Remove unused variable.
60ffc1b8 3633
c05ffc49
BS
36342002-07-21 Bernd Schmidt <bernds@redhat.com>
3635
3636 Improvements for the ifcvt pass from Michael Meissner, with patches
3637 by Richard Sandiford <rsandifo@redhat.com>
3638 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
3639 * ifcvt.c (cond_exec_changed_p): New static variable.
3640 (last_active_insn): New function, renamed from last_active_insn_p
3641 and changed to return the last active insn in a basic block. All
3642 callers updated.
3643 (block_fallthru): New function.
3644 (cond_exec_process_insns): New argument CE_INFO. Pass it to
3645 IFCVT_MODIFY_INSN. All callers updated.
3646 Return false if START or END are NULL.
3647 Handle case where we're processing an insn that is already
3648 conditional.
3649
3650 (noce_process_if_block): CE_INFO argument rather than
3651 multiple args containing the involved basic blocks. All callers
3652 changed.
3653 (process_if_block, merge_if_block, find_if_block,
3654 cond_exec_process_if_block): Likewise.
3655
3656 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
3657 changed.
3658 Use new function last_active_insn to simplify some code.
3659 New code to handle multiple tests.
3660 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
3661 cond_exec_changed_p to TRUE.
3662
3663 (process_if_block): New code to handle multiple tests.
3664 (merge_if_block): Likewise.
3665 (find_if_header): New arg PASS. Changed to return the currently
3666 processed basic block or NULL instead of true/false. All callers
3667 changed.
3668 Call IFCVT_INIT_EXTRA_FIELDS.
3669 (block_jumps_and_fallthru_p): New function.
3670 (find_if_block): Discover opportunities to convert multiple tests.
3671 Add additional debugging output.
3672 Update the ce_info structure before returning.
3673
3674 (if_convert): Run multiple passes of if-conversion.
3675 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
3676 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
3677 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
3678 these macros.
3679
ae860ff7
JH
3680Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
3681
3682 * gcse.c: Include cselib.h
3683 (constptop_register): Break out from ...
3684 (cprop_insn): ... here; kill basic_block argument.
3685 (do_local_cprop, local_cprop_pass): New functions.
3686 (one_cprop_pass): Call local_cprop_pass.
3687
0da65b89
RS
36882002-07-20 Roger Sayle <roger@eyesopen.com>
3689
3690 * simplify-rtx.c (simplify_relational_operation): Optimize
3691 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
3692
47cc673a
MM
36932002-07-20 Michae Matz <matz@suse.de>
3694
3695 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
3696
68e65275
NB
36972002-07-20 Neil Booth <neil@daikokuya.co.uk>
3698
3699 * cppexp.c (struct op): Add token pointer.
3700 (check_promotion, CHECK_PROMOTION): New.
3701 (optab): Update.
3702 (_cpp_parse_expr): Update, use token pointer of struct op.
3703 (reduce): Warn about change of sign owing to promotion.
3704 * cppinit.c (cpp_handle_option): New warning if -Wall.
3705 * cpplib.h (struct cpp_options): New member.
3706
e3485bbc
DE
37072002-07-19 David Edelsohn <edelsohn@gnu.org>
3708
3709 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
3710 fpu list. Separate Power4 compare and delayed_compare. Correct
3711 Power4 fpcompare.
3712 (fix_truncdfsi2_internal): Restore FPR preference.
3713 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
3714 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
3715
449655a6
MV
37162002-07-19 Momchil Velikov <velco@fadata.bg>
3717
3718 * reload1.c (reload_as_needed): Duplicate oldpat.
3719
8b583747
AM
37202002-07-20 Alan Modra <amodra@bigpond.net.au>
3721
3722 PR optimization/7130
3723 * loop.h (struct loop_info): Add "preconditioned".
3724 * unroll.c (unroll_loop): Set it.
3725 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
3726
0dc36574
ZW
37272002-07-19 Zack Weinberg <zack@codesourcery.com>
3728
3729 * rtl.def (CODE_LABEL): Remove slot 8.
3730 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
3731 (LABEL_ALTERNATE_NAME): Delete.
3732 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
3733 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
3734
3735 * final.c (output_alternate_entry_point): New.
3736 (final_scan_insn): Use it instead of
3737 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
3738 of a case label being an alternate entry point.
3739
3740 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
3741 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
3742 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
3743 (field deleted).
3744 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
3745
3746 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
3747 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
3748 * doc/tm.texi: Delete documentation of
3749 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
3750
59267987
RO
37512002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3752
3753 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
3754 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
3755 (LINK_SPEC): Define.
3756 (STARTFILE_SPEC): Define.
3757 (ENDFILE_SPEC): Define.
3758
3759 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
3760 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
3761
3762 * config/mips/iris6-o32-gas.h: New file.
3763 * config.gcc (mips-sgi-irix6*o32): Use it.
3764
3765 * config/mips/t-iris5-gas: New file.
3766 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
3767
75aef48a
NB
37682002-07-19 Neil Booth <neil@daikokuya.co.uk>
3769
3770 * cppexp.c (ALWAYS_EVAL): Remove.
3771 (optab, reduce): Always evaluate.
3772 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
3773 only if not skipping evaluation.
3774
72a5503d
MM
37752002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
3776
3777 * config/avr/avr.c (debug_hard_reg_set): Remove.
3778
059ba716
CD
37792002-07-19 Chris Demetriou <cgd@broadcom.com>
3780
3781 * gcc.c (cpp_options): Include "%1" (cc1_spec).
3782
544823b6
RH
37832002-07-19 Richard Henderson <rth@redhat.com>
3784
3785 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
3786
c35383cb
AM
37872002-07-19 Alan Modra <amodra@bigpond.net.au>
3788
3789 * prefix.c (update_path): Don't zap single `.' path components
3790 unless followed by another `.' and fix typo last patch.
3791
ad28cff7
NB
37922002-07-18 Neil Booth <neil@daikokuya.co.uk>
3793
3794 * cppexp.c (cpp_num_mul): Remove unused parameter.
3795 (UNARY, BINARY, OTHER, binary_handler): Remove.
3796 (ALWAYS_EVAL): New.
3797 (optab): Update.
3798 (reduce): Refactor to a large switch, don't use a function
3799 pointer.
3800
139b7f86
BT
38012002-07-18 Bo Thorsen <bo@berlioz.suse.de>
3802
3803 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
3804
e69d1422
R
3805Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
3806
3807 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
3808 (sh_expand_binop_v2sf): Likewise.
3809 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
3810 (int_gpr_dest, trunc_hi_operand): New functions.
3811 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
3812 trunc_hi_operand.
3813 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
3814 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
3815 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
3816 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
3817 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
3818 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
3819 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
3820 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
3821 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
3822 (movsf_ie+1): Likewise.
3823 (loaddi_trunc): Use int_gpr_dest predicate.
3824 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
3825 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
3826 (casesi_worker_0+[12], casesi_worker): Likewise.
3827 (shcompact_preserve_incoming_args): Likewise.
3828 (mov_nop): Use any_register_operand predicate.
3829 (mperm_w0): Use trunc_hi_operand predicate.
3830
47a4976f
JDA
38312002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
3832
3833 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
3834 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
3835 numbering.
3836
f3a4e54e
JDA
38372002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
3838
3839 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
3840
30484ccf
RH
38412002-07-18 Richard Henderson <rth@redhat.com>
3842
3843 PR optimization/7147
3844 * ifcvt.c (noce_get_condition): Make certain that the condition
3845 is valid at JUMP.
3846
d042370e
R
3847Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
3848
3849 * sh.c (barrier_align, push): Shut up compiler warnings.
3850 (initial_elimination_offset,sh_media_init_builtins): Likewise.
3851 (reg_no_subreg_operand): Delete.
3852
61fee9b3
BT
38532002-07-17 Bo Thorsen <bo@suse.de>
3854
3855 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
3856 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
3857 (STARTFILE_SPEC): Remove hardcoded library paths.
3858 (ENDFILE_SPEC): Likewise.
3859
f305679f
JH
3860Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
3861
3862 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
3863
3864 * gcse.c (try_replace_reg): Do not return false positives.
3865
99bcb625
AM
38662002-07-18 Alan Modra <amodra@bigpond.net.au>
3867
f6f23ad2
AM
3868 * prefix.c: (update_path): Strip ".." components when prior dir
3869 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
3870
99bcb625
AM
3871 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
3872 (ASM_OUTPUT_REG_POP): Likewise.
3873
09eeeacb
AM
38742002-07-18 Alan Modra <amodra@bigpond.net.au>
3875
3876 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
3877 adjustments to first_reg for profiling case.
3878 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
3879 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
3880 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
3881 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
3882 (ASM_OUTPUT_REG_POP): Define.
3883 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
3884 (ASM_OUTPUT_REG_POP): Undef.
3885
74d06cf2
NB
38862002-07-17 Neil Booth <neil@daikokuya.co.uk>
3887
3888 * cpplib.c (do_sccs): Handle #sccs on all systems.
3889 * system.h (SCCS_DIRECTIVE): Poison.
3890 * config/darwin.h, config/freebsd.h, config/netbsd.h,
3891 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
3892 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
3893 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
3894 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
3895 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
3896 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
3897 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
3898 Remove all references to SCCS_DIRECTIVE.
3899 * doc/cpp.texi, doc/tm.texi: Update.
3900
61dde664
R
3901Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
3902
3903 * regrename.c (maybe_mode_change): New function.
3904 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
3905
97f51ac4
RB
39062002-07-17 Rodney Brown <rbrown64@csc.com.au>
3907
3908 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
3909 suppress addition when either ct or cf are zero.
3910
f1a73cfe 39112002-06-17 Eric Botcazou <ebotcazou@multimania.com>
30484ccf 3912 Glen Nakamura <glen@imodulo.com>
f1a73cfe
EB
3913
3914 PR optimization/6713
3915 * loop.c (loop_givs_rescan): Explicitly delete the insn that
3916 sets a non-replaceable giv after issuing the new one.
3917
23ff0223
NB
39182002-07-17 Neil Booth <neil@daikokuya.co.uk>
3919
3920 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
3921 eval_token): Clarify and correct use of "bool" variables.
3922 * cpplib.h (struct cpp_options): Similarly.
3923 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
3924 * cpptrad.c (recursive_macro): Similarly.
3925
ac09192a
R
3926Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
3927
d28586ab 3928 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
ac09192a 3929 SHmedia code.
68cef009
R
3930
3931 * sh.md (cmpgtudi_media): Remove spurious @.
701e3726
R
3932
3933 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
3934 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
ca903bba
R
3935
3936 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
3937 * sh-protos.h (sh_initialize_trampoline): Declare.
3938 * sh.c (sh_initialize_trampoline): New function.
3939 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
3940 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
3941 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
3942 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
3943 * sh.md (initialize_trampoline, double_shori): New patterns.
3944 (initialize_trampoline_compact): Likewise.
3945 (shmedia32_initialize_trampoline_big): Remove.
3946 (shmedia32_initialize_trampoline_little): Likewise.
0ac78517
R
3947
3948 * sh-protos.h (binary_float_operator): Remove declaration.
3949 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
3950 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
3951 (unary_float_operator, sh_expand_unop_v2sf): New functions.
3952 (sh_expand_binop_v2sf): Likewise.
3953 (zero_vec_operand): Delete.
3954 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
3955 all non-shared ones.
3956 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
3957 Enable nsb and byterev.
3958 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
3959 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
3960 in general regs.
3961 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
3962 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
3963 immediate operands.
3964 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
3965 Add DF_HI_REGS.
3966 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
3967 lowpart fp regs - only for big endian for now.
3968 (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
3969 when FPU is in use.
3970 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
3971 (LOAD_EXTEND_OP): NIL for SImode.
3972 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
3973 general and fp registers is 4.
3974 PREDICATE_CODES: Amend binary_float_operator entry.
3975 Remove zero_vec_operand. Add unary_float_operator.
3976 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
3977 subreg SET_DEST.
3978 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
3979 (truncdiqi2): Do sign extension.
3980 (movsi_media, movdi_media): Allow to use r63 to an fp register.
3981 (movdf_media, movsf_media): Likewise.
3982 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
3983 Collapse to one define_insn_and_split. Allow immediate sources.
3984 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
3985 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
3986 (movv4sf): Allow immediate sources.
3987 (movsf_media_nofpu+1): Don't split moves to FP registers.
3988 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
3989 (movv8qi_i+3): Check against CONST0_RTX.
3990 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
3991 for input and output operands. Fix argument 3 to gen_mextr_rl.
3992 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
3993 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
3994 (mshf0_w, fipr, ftrv): Likewise.
3995 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
3996
e9d7b180
JD
39972002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3998
3999 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
4000 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
4001 * arm.c: Similarly.
4002
8214bf98
RS
40032002-07-17 Richard Sandiford <rsandifo@redhat.com>
4004
4005 * config/mips/mips-protos.h (mips_sign_extend): Declare.
4006 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
4007 (TARGET_SWITCHES): Remove debugh.
4008 (ISA_HAS_TRUNC_W): New macro.
4009 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
4010 (PREDICATE_CODES): Remove se_nonimmediate_operand.
4011 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
4012 any SImode move_operand.
4013 (se_nonimmediate_operand): Remove.
4014 (mips_sign_extend): New.
4015 (mips_move_2words): Use it for sign-extended source operands.
4016 (override_options): Allow integers to be put into single FPRs.
4017 (mips_secondary_reload_class): Handle integers in float registers.
4018 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
4019 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
4020 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
4021 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
4022 (fix_truncdfdi2): Provide only a single alternative, in which the
4023 integer is in a float register. Depend on TARGET_FLOAT64 rather
4024 than TARGET_64BIT.
4025 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
4026 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
4027 (movdi_internal2): Don't allow the source operand to be sign-extended.
4028 Add alternatives for float registers.
4029 (*movdi_internal2_extend): New. Version of movdi_internal2 that
4030 allows sign-extension.
4031 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
4032 (movsi_internal2): Rename to movsi_internal. Add alternatives for
4033 float registers. Remove TARGET_DEBUG_H_MODE test.
4034 (movhi_internal1): Rename to movhi_internal. Don't check
4035 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
4036 (movqi_internal1): Rename to movqi_internal and remove
4037 TARGET_DEBUG_H_MODE dependency.
4038 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
4039
7ab0121e
JW
40402002-07-16 Jim Wilson <wilson@redhat.com>
4041
4042 * toplev.c (lang_dependent_init): Create function context for
4043 init_expr_once.
4044
349ccf2e
HPN
40452002-07-16 Hans-Peter Nilsson <hp@axis.com>
4046
4047 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
4048 --gc-sections if -r.
4049 * config/cris/cris.h: Ditto.
4050
06ec023f
RB
40512002-07-16 Rodney Brown <rbrown64@csc.com.au>
4052
4053 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
4054 the comparison directly gives a mask suppress addition when cf is
4055 zero by complementing the mask.
4056
39cef914
NN
40572002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
4058
4059 * Makefile.in: Delete references to enquire.
4060 * enquire.c: Move to contrib.
4061
92c1a778
SS
40622002-07-16 Stan Shebs <shebs@apple.com>
4063
2aa9948d
SS
4064 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
4065 config/rs6000/darwin.h.
4066 (ASM_OUTPUT_SKIP): Ditto.
4067 (TEXT_SECTION_ASM_OP): Ditto.
4068 (DATA_SECTION_ASM_OP): Ditto.
4069 (ASM_APP_ON): Define.
4070 (ASM_APP_OFF): Define.
4071 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
4072 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
4073
4074 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
92c1a778
SS
4075 (machopic_function_base_name): Declare result to be const.
4076 (machopic_non_lazy_ptr_name): Ditto.
4077 (machopic_stub_name): Ditto.
2aa9948d 4078 * config/darwin-protos.h: Ditto for the prototypes.
92c1a778 4079
daaab00a
JH
4080Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
4081
4082 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
4083
63c574cc
JH
4084Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
4085
4086 * i386.md (prefetch): Fix for 64bit mode.
4087 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
4088
2a500b9e
JH
4089Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
4090
4091 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
4092 * i386.c (x86_machine_dependent_reorg): New function.
4093 * i386-protos.h (x86_machine_dependent_reorg): Declare.
4094
e5faf155
ZW
40952002-07-16 Zack Weinberg <zack@codesourcery.com>
4096
4097 * builtins.c (std_expand_builtin_va_start): Remove unused
4098 first argument.
4099 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
4100 std_expand_builtin_va_start with just two arguments.
4101 * expr.h: Update prototypes.
4102
4103 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
4104 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
4105 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
4106 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
4107 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
4108 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
4109 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
4110 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
4111 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
4112 argument from all implementations of EXPAND_BUILTIN_VA_START
4113 and all uses of std_expand_builtin_va_start.
4114
dbf65c2f
R
4115Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
4116
4117 * regrename.c (copy_value): Don't record high part copies.
4118
6acb6d3e 41192002-07-16 Steve Ellcey <sje@cup.hp.com>
99b823ca 4120
6acb6d3e
SE
4121 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
4122 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
4123 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
4124
5d7c2819
ID
41252002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
4126
4127 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
4128
4129 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
4130 into addsi3 using register class "x" and "y".
4131
4132 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
4133 "earlyclobber" constraint modifier for some alternative.
e5faf155 4134
5d7c2819
ID
4135 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
4136 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
4137 unordered.
4138 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
4139
4140 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
4141 (TARGET_SWITCHES): Add -mieee-compare option.
4142 (OVERRIDE_OPTIONS): 32332 is a subset of
4143 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
4144 (TARGET_SWITCHES): Fix description of bitfield option.
4145 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
4146 -mieee-compare option. Remove 32332 flag.
4147
5da4f548 41482002-07-16 Steve Ellcey <sje@cup.hp.com>
5d7c2819
ID
4149
4150 * explow.c (convert_memory_address): Remove special handling
5da4f548 4151 when POINTERS_EXTEND_UNSIGNED < 0.
5d7c2819 4152 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
5da4f548
SE
4153 (movedi_symbolic): Fix typo.
4154 (load_fptr): Remove mode restriction so it works for SI and DI.
4155 (load_fptr_internal1): Ditto.
4156 (load_gprel): Ditto.
4157 (load_symptr_internal1): Ditto.
4158 (call_pic): Ditto.
5d7c2819 4159 * config/ia64.c (call_operand): Modify mode check.
5da4f548
SE
4160 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
4161 (ia64_expand_move): Ditto.
4162 (ia64_assemble_integer): Handle SImode function pointers.
4163 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
4164 (ia64_expand_op_and_fetch): Ditto.
4165 (ia64_expand_compare_and_swap): Ditto.
4166 (ia64_expand_lock_test_and_set): Ditto.
4167 (ia64_expand_lock_release): Ditto.
4168
1575c31e
JD
41692002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4170
4171 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
4172
41732002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4174 Richard Earnshaw <rearnsha@arm.com>
4175
e5faf155 4176 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
1575c31e
JD
4177 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
4178
3894f59e
RE
41792002-07-16 Richard Earnshaw <rearnsha@arm.com>
4180
4181 * arm.md (stack_tie): New insn. Use an idiom that the alias code
4182 understands to be a memory clobber.
4183 * arm.c (arm_expand_prologue): Use it.
4184
e0b89be2 41852002-07-16 Daniel Berlin <dberlin@dberlin.org>
54b2a7f8
DB
4186
4187 * ra-rewrite.c: #include reload.h, insn-config.h
4188 * ra-build.c: #include reload.h
4189 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
e5faf155 4190 depend on reload.h, insn-config.h.
54b2a7f8 4191
cffa2189
R
4192Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
4193
4194 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
4195 the same size as a word.
4196
4197 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
4198 BYTES_BIG_ENDIAN into account.
4199
052c96b1
JH
4200Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
4201
4202 * i386.md (prefetch): Fix for 64bit mode.
4203 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
4204
4205 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
4206
ae32926b
MM
42072002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4208
4209 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
4210
6c535c69
ZW
42112002-07-15 Zack Weinberg <zack@codesourcery.com>
4212
4213 * ginclude/varargs.h: Replace with stub which issues #error.
4214 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
4215 __builtin_va_start.
4216
4217 * builtins.def (BUILT_IN_VARARGS_START): Delete.
4218 (BUILT_IN_VA_START): New.
4219 * builtins.c (expand_builtin_va_start): Eliminate first
4220 argument and code to implement pre-ISO varargs.
4221 (std_expand_builtin_va_start): Ignore first argument; it is
4222 always 1.
4223 (expand_builtin): Handle BUILT_IN_VA_START and
4224 BUILT_IN_STDARG_START identically. Delete
4225 BUILT_IN_VARARGS_START case.
4226
4227 * function.c (assign_parms): Delete hide_last_arg and all
4228 its uses.
4229 (mark_varargs): Delete function.
4230 * function.h (struct function): Delete 'varargs' bit.
4231 (current_function_varargs): Delete macro.
4232 * tree.h: Don't declare mark_varargs.
4233
4234 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
4235 (c_expand_body): Don't call mark_varargs.
4236 * c-objc-common.c: Handle BUILT_IN_VA_START and
4237 BUILT_IN_STDARG_START identically. Delete
4238 BUILT_IN_VARARGS_START case.
4239 * c-tree.h: Don't declare c_mark_varargs.
4240 * c-parse.in: Remove grammar rules for '&...' (which has been
4241 commented out since before 2.7.2) and for '...' in K+R
4242 argument declarations.
4243
4244 * builtins.c, function.c, integrate.c, sibcall.c,
4245 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
4246 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
4247 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
4248 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
4249 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
4250 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
4251 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
4252 config/stormy16/stormy16.c: Delete all references to
4253 current_function_varargs, and code predicated on that flag.
4254
4255 * config/alpha/alpha.c (alpha_va_start),
4256 config/arc/arc.c (arc_va_start),
4257 config/i386/i386.c (ix86_va_start),
4258 config/mips/mips.c (mips_va_start),
4259 config/mn10300/mn10300.c (mn10300_va_start),
4260 config/rs6000/rs6000.c (rs6000_va_start),
4261 config/s390/s390.c (s390_va_start),
4262 config/sh/sh.c (sh_va_start),
4263 Ignore first argument; it is always 1.
4264
4265 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
4266 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
4267 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
4268 Delete m68hc11_va_start.
4269 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
4270 No need to define EXPAND_BUILTIN_VA_START.
4271
4272 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
4273 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
4274
6d80a854
EB
42752002-07-15 Eric Botcazou <ebotcazou@multimania.com>
4276
4277 PR optimization/7153
4278 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
4279 dies in more than one insn.
4280
043cfcbe
JT
42812002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
4282
4283 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
4284
ed8d2920 42852002-07-15 Michael Matz <matz@suse.de>,
6c535c69 4286 Daniel Berlin <dberlin@dberlin.org>,
ed8d2920
MM
4287 Denis Chertykov <denisc@overta.ru>
4288
4289 Add a new register allocator.
4290
4291 * ra.c: New file.
4292 * ra.h: New file.
4293 * ra-build.c: New file.
4294 * ra-colorize.c: New file.
4295 * ra-debug.c: New file.
4296 * ra-rewrite.c: New file.
4297
4298 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
4299 (ra-rewrite.o): New .o files for libbackend.a.
4300 (GTFILES): Add basic-block.h.
4301
4302 * toplev.c (flag_new_regalloc): New.
4303 (f_options): New option "new-ra".
4304 (rest_of_compilation): Call initialize_uninitialized_subregs()
4305 only for the old allocator. If flag_new_regalloc is set, call
4306 new allocator, instead of local_alloc(), global_alloc() and
4307 friends.
4308
4309 * doc/invoke.texi: Document -fnew-ra.
4310 * basic-block.h (FOR_ALL_BB): New.
4311 * config/rs6000/rs6000.c (print_operand): Write small constants
4312 as @l+80.
4313
4314 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
4315 (df_reg_table_realloc): Make size at least as large as max_reg_num().
4316 (df_insn_table_realloc): Size argument now is absolute, not relative.
4317 Changed all callers.
4318
4319 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
4320 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
4321
4322 2002-06-20 Michael Matz <matz@suse.de>
4323
4324 * df.h (struct ref.id): Make unsigned.
4325 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
4326
4327 2002-06-13 Michael Matz <matz@suse.de>
4328
4329 * df.h (DF_REF_MODE_CHANGE): New flag.
4330 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
4331 involving subregs with invalid mode changes, when
4332 CLASS_CANNOT_CHANGE_MODE is defined.
4333
4334 2002-05-07 Michael Matz <matz@suse.de>
4335
4336 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
4337
4338 2002-05-03 Michael Matz <matz@suse.de>
4339
4340 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
4341
4342 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
4343
4344 * regclass.c (regclass): Work with all regs which have sets or
4345 refs.
4346 (reg_scan_mark_refs): Count regs inside (clobber ...).
4347
4348 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
4349
4350 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
4351 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
4352 add new refs.
4353 (df_bb_refs_update): Don't clear insns_modified here, ...
4354 (df_analyse): ... but here.
4355
4356 * sbitmap.c (dump_sbitmap_file): New.
4357 (debug_sbitmap): Use it.
4358
4359 * sbitmap.h (dump_sbitmap_file): Add prototype.
4360
4361 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
4362
4363 * df.c (df_insn_modify): Grow the UID table if necessary, rather
4364 than assume all emits go through df_insns_modify.
4365
4366 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
4367
4368 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
4369 increase REG_N_REFS (like flow does), so that regclass doesn't
4370 think a reg is useless, and thus, not calculate a class, when it
4371 really should have.
4372
4373 2001-01-28 Daniel Berlin <dberlin@redhat.com>
4374
4375 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
4376 dataflow analysis.
4377
794a292d
JJ
43782002-07-15 Jakub Jelinek <jakub@redhat.com>
4379
4380 PR middle-end/7245
4381 * config/i386/i386.c (const_int_1_31_operand): New.
4382 * config/i386/i386.h (PREDICATE_CODES): Add it.
4383 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
4384 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
4385 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
4386
05d49501
AM
43872002-07-14 Alan Modra <amodra@bigpond.net.au>
4388
4389 PR target/7282
4390 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
4391 (floatunssidf2): Likewise.
4392 (floatsidf_ppc64): New insn_and_split.
4393 (floatunssidf_ppc64): Likewise.
4394
e89617fe
AJ
43952002-07-14 Andreas Jaeger <aj@suse.de>
4396
4397 * config.gcc (sh64): Remove unused
4398 target_requires_64bit_host_wide_int.
4399
78762e3b
RS
44002002-07-12 Roger Sayle <roger@eyesopen.com>
4401
4402 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
4403 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
4404 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
4405 whether clear_by_pieces should be used to clear storage.
4406 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
4407
4408 * doc/tm.texi: Document these two new target macros.
4409
f7a454e9
SC
44102002-07-12 Stephane Carrez <stcarrez@nerim.fr>
4411
4412 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
4413 the scratch register.
4414 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
4415 of it, forbid reload to use it.
4416
26af4041
MM
44172002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
4418
4419 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
4420 usage on 64-bit hosts, return value was truncated to 32 bits.
4421
226cfe61
R
4422Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
4423
4424 * simplify-rtx.c (simplify_subreg): Handle floating point
4425 CONST_DOUBLEs. When an integer subreg of a smaller mode than
4426 the element mode is requested, compute a subreg with an
4427 integer mode of the same size as the element mode first.
4428
25c25947
R
4429Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
4430
4431 * combine.c (try_combine): When converting a paradoxical subreg
4432 to an extension, take LOAD_EXTEND_OP into account.
4433
789b7de5
RO
44342002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4435
4436 * config.gcc (mips-sgi-irix6*o32): New configuration.
4437
4438 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
4439 configurations.
4440 * configure: Regenerate.
4441
4442 * config/mips/iris6-o32-as.h: New file.
4443 * config/mips/iris6-o32.h: New file.
e89617fe 4444
789b7de5
RO
4445 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
4446 (NM_FLAGS): Define.
4447 (HAVE_AS_SHF_MERGE): Undefine.
4448
4449 * config/mips/t-iris5-as: New file.
4450 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
4451
4452 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
4453 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
4454 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
4455 dp-bit.c, fp-bit.c): Move ...
4456 * config/mips/t-iris5-6: ... here.
4457 New file, shared by IRIX 5 and IRIX 6.
4458 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
4459 mips-sgi-irix5*): Use it.
4460
4461 * config/mips/iris6.h: Remove duplicate comment.
4462
4463 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
4464 !TARGET_IRIX6]: Define.
4465 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
4466
4467 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
4468
a18c2c5f
JDA
44692002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
4470
4471 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
4472 and delete code to force constant to register.
4473 * pa-protos.h (adddi3_operand): Add prototype.
4474 * pa.c (adddi3_operand): New function.
4475
e65a2d65
RS
44762002-07-11 Roger Sayle <roger@eyesopen.com>
4477
4478 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
4479 non-ANSI builtin functions.
4480
a06e3c40
R
4481Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
4482
4483 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
4484 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
4485 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
4486 (gen_const_vector_0): Use it.
4487
47abc309
JDA
44882002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
4489
4490 * pa.md (adddi3): For 32-bit targets, force constants to a register
4491 if they don't fit in an 11-bit immediate. Change insn predicate to
4492 arith11_operand. Remove comment.
4493 * pa.c (cint_ok_for_move): Fix comment.
4494 (emit_move_sequence): Don't directly split DImode constants on 32-bit
4495 targets.
4496
8ac9d31f
TJ
44972002-07-11 Tim Josling <tej@melbpc.org.au>
4498
e89617fe 4499 Remove front end hard coding from gengtype.c.
8ac9d31f
TJ
4500
4501 * Makefile.in
4502 (STAGESTUFF): add gtyp-gen.h
4503 (GTFILES): Remove front end specific files.
4504 (GTFILES_FILES_LANGS): New, from configure..
4505 (GTFILES_FILES_FILES): Likewise.
4506 (GTFILES_LANG_DIR_NAMES): Likewise.
4507 (GTFILES_SRCDIR): Likewise.
4508 (gtyp-gen.h): Build from configure information.
4509 (s-gtype): Remove command line parameters from gengtype.
4510 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
4511 (mostlyclean): Delete files generated by and for gengtype.
4512
4513 * c-config-lang.in: New file.
4514
4515 * configure.in (all_gtfiles_files_langs): New. Accumulate files
4516 for each language.
4517 (all_gtfiles_files_files): New. Accumulate language for each file
4518 accumulated.
4519 (gtfiles): Pick up value for C.
4520 (srcdir): AC-SUBST this variable.
4521 (all_gtfiles_files_langs): AC-SUBST this variable.
4522 (all_gtfiles_files_files): AC-SUBST this variable.
e89617fe 4523
8ac9d31f 4524 * configure: Regenerate.
e89617fe 4525
8ac9d31f
TJ
4526 * gengtype-lex.l (parse_file): Make parameter const.
4527
4528 * gengtype.c (toplevel): include gtyp-gen.h.
4529 (BASE_FILE_<language> unnamed enum): Delete.
4530 (lang_names): Delete (replaced by gtyp-gen.h)
4531 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
4532 all references.
4533 (NUM_GT_FILES): New.
4534 (NUM_LANG_FILES): New.
4535 (srcdir_len): New.
4536 (NUM_BASE_FILES): Change calculation.
4537 (open_base_files): Change prototype to avoid warning.
4538 (startswith): Delete.
4539 (get_file_basename): Iterate through generated language list not
4540 hard coded list.
4541 (get_base_file_bitmap): Use generated list of files and languages.
4542 (close_output_files): Add prototype to rmove warning.
4543 (main): Iterate through list of generated files from gtyp-gen.h
4544 rather than command line paramaters. Ignore duplicated file
e89617fe 4545 names.
8ac9d31f
TJ
4546
4547 * gengtype.h (parse_file): Amend prototype for const parameter.
e89617fe 4548
8ac9d31f
TJ
4549 * doc/sourcebuild.texi: Document gtfiles variable.
4550
4551 * doc/gty.texi: Document changes to gtfiles variable for front
4552 ends.
4553
4554 * objc/config-lang.in (gtfiles): Add files needed for objc front
4555 end.
4556
0e603223
RS
45572002-07-10 Roger Sayle <roger@eyesopen.com>
4558
4559 PR c/2454
4560 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
4561 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
4562
c5358a5d
RS
45632002-07-10 Roger Sayle <roger@eyesopen.com>
4564 Zack Weinberg <zack@codesourcery.com>
4565
4566 * builtins.def: Make the argument types of abort and exit
4567 independent of the front-end.
4568
a35f8b74
AM
45692002-07-11 Alan Modra <amodra@bigpond.net.au>
4570
4571 * config/rs6000/linux64.h (ASM_SPEC): Define.
4572
89e7058f
AH
45732002-07-10 Aldy Hernandez <aldyh@redhat.com>
4574
6c535c69
ZW
4575 * config/rs6000/rs6000.c (emit_frame_save): New.
4576 (rs6000_frame_related): Replace reg2 before reg.
4577 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
4578 and eh_return registers.
89e7058f 4579
086bbd21
TM
45802002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
4581
4582 Revert all patches for optimization of Complex .op. Real.
4583 * complex_part_zero_p: Remove
4584 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
4585 with x.
4586 * expand_cmplxdiv_wide: Ditto.
4587 * expand_binop: Ditto.
4588
126dbce0
MM
45892002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
4590
4591 * config/avr/avr.md: Fix two 0x80000000 constants to make them
4592 negative also on 64-bit hosts.
4593
4594 Default to -fno-reorder-blocks when optimizing for size.
4595 * config/avr/avr-protos.h (avr_optimization_options): Declare.
4596 * config/avr/avr.c (avr_optimization_options): New function.
4597 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
4598
4599 Optimize returning from simple functions.
4600 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
4601 * config/avr/avr.c (avr_simple_epilogue): New function.
4602 * config/avr/avr.md (return): New insn.
4603
21c318ba
DR
46042002-07-10 Douglas B Rupp <rupp@gnat.com>
4605
4606 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
4607 HAS_INIT_SECTION to protection.
4608
537834c8
MM
46092002-07-10 Mark Mitchell <mark@codesourcery.com>
4610
4611 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
4612 deprecated.
4613
80ba02b1
R
4614Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
4615
4616 * combine.c (gen_lowpart_for_combine): Handle vector modes.
4617 Supply non-VOID mode to simplify_gen_subreg.
4618
ae3aa00d
JH
4619Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
4620
4621 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
4622
029f3983
JL
46232002-07-10 Jeffrey A Law <law@redhat.com>
4624
7a464913
JL
4625 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
4626 as appropriate.
4627
6c535c69
ZW
4628 * mn10200.c (expand_epilogue): Fix test to determine which scratch
4629 register to use.
029f3983 4630
ff27a429
R
4631Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
4632
4633 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
4634 Get mode from dest.
4635 If simplify_gen_subreg fails, try next equivalent.
4636
e6986399
GDR
46372002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
4638
4639 * diagnostic.h: #include location.h
4640 (location_t): Move definition to..
4641 * location.h: ... here. New file.
4642 * tree.h: #include location.h
4643 (DECL_SOURCE_LOCATION): New macro.
4644 (DECL_SOURCE_FILE): Use.
4645 (DECL_SOURCE_LINE): Likewise.
4646 (struct tree_decl): REplace filename and linenum with locus.
4647 * Makefile.in (TREE_H): add location.h
4648 (diagnostic.o): Depends on gt-location.h
4649 (gt-location.h): Depends on s-gtype
4650
7990b46f
MK
46512002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
4652
4653 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
4654 TARGET_OS_CPP_BUILTINS.
4655 * config/rs6000/aix31.h: Likewise.
4656 * config/rs6000/aix41.h: Likewise.
4657 * config/rs6000/aix43.h: Likewise.
4658 * config/rs6000/aix51.h: Likewise.
4659 * config/rs6000/beos.h: Likewise.
4660 * config/rs6000/darwin.h: Likewise.
4661 * config/rs6000/eabi.h: Likewise.
4662 * config/rs6000/eabisim.h: Likewise.
4663 * config/rs6000/linux.h: Likewise.
4664 * config/rs6000/linux64.h: Likewise.
4665 * config/rs6000/lynx.h: Likewise.
4666 * config/rs6000/mach.h: Likewise.
4667 * config/rs6000/rtems.h: Likewise.
4668 * config/rs6000/sysv4.h: Likewise.
4669 * config/rs6000/vxppc.h: Likewise.
efa39e99
DP
4670
46712002-07-09 Devang Patel <dpatel@apple.com>
4672 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
4673 Do not allow ObjC objects as a parameter type for Objective-C methods.
4674 My previous patch restricted 'struct' also.
e89617fe 4675
cd98faa1
NB
46762002-07-09 Neil Booth <neil@daikokuya.co.uk>
4677
4678 * cpperror.c (cpp_error): Default to directive_line within
4679 directives here.
4680 * cppexp.c (cpp_interpret_integer): Only use traditional
4681 number semantics in directives.
4682 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
4683 (do_include_common): Similarly.
4684 * cpptrad.c (scan_out_logical_line): Implement accurate
4685 quoting of <> in #include.
4686 * doc/cpp.texi: Update.
4687
2ad65b0e 4688Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
6c535c69 4689 J"orn Rennecke <joern.rennecke@superh.com>
2ad65b0e
SC
4690
4691 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
4692 * sh.md (attribute issues): Replace with:
4693 (attribute pipe_model). All users changed.
4694 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
4695 All users changed.
4696 (function units sh5issue, sh5fds): New.
4697 (attribute is_mac_media): New.
4698 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
4699 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
4700 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
4701 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
4702 (call_media, call_value_media, sibcall_media): Likewise.
4703 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
4704 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
4705 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
4706 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
4707 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
4708 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
4709 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
4710 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
4711 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
4712 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
4713 (truncdfsf2_media): Likewise.
4714 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
4715 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
4716
b6d33983
R
4717Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
4718
4719 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
4720 * sh.c (general_extend_operand, inqhi_operand): New functions.
4721 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
4722 alternatives using 'N' modifier. Add type.
4723 (adddi3z_media): Likewise. Enable generator function generation.
4724 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
4725 exact predicates / constraints. Add type.
4726 (subsi3): Allow 0 for SHMEDIA.
4727 (udivsi3_i4_media): Use match_operand for input values
4728 rather than hard registers.
4729 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
4730 unnecessarily through hard registers. Keep copies of pseudo
4731 registers outside of the libcall sequence.
4732 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
4733 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
4734 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
4735 (extendhidi2, extendqidi2): Likewise.
4736 (andsi3_compact): Name.
4737 (andcdi3): Enable generator function generation.
4738 (zero_extendhisi2, zero_extendqisi2): Rename to
4739 (zero_extendhisi2_compact, zero_extendqisi2_compact).
4740 (extendhisi2, extendqisi2): Rename to
4741 (extendhisi2_compact, extendqisi2_compact).
4742 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
4743 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
4744 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
4745 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
4746 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
4747 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
4748 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
4749 (shmedia32_initialize_trampoline_big): Likewise.
4750 (shmedia32_initialize_trampoline_little): Likewise.
4751 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
4752 (negdi2): Remove spurious T clobber.
4753 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
4754 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
4755 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
4756 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
4757 (ic_invalidate_line_media): Write back data cache before invalidating
4758 instruction cache. Add type.
4759 (movsf_media): Sign-extend when the destination is a general
4760 purpose register. Add type.
4761 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
4762 (casesi_worker_0+1): Only increment ref count for proper label.
4763 (casesi_worker_0+2): Likewise.
4764
7ca0873c
MM
47652002-07-09 Mark Mitchell <mark@codesourcery.com>
4766
4767 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
4768
26b10ae0 47692002-07-09 Steve Ellcey <sje@cup.hp.com>
7ca0873c 4770
26b10ae0
SE
4771 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
4772 from Pmode to ptr_mode.
4773 (get_exception_pointer): Ditto.
4774 (connect_post_landing_pads): Ditto.
4775 (dw2_build_landing_pads): Ditto.
4776
0c3a2ea0
SE
47772002-07-08 Steve Ellcey <sje@cup.hp.com>
4778 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
4779 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
4780 (handle_pragma_redefine_extname): Change to use new function.
4781
26c34780
RS
47822002-07-08 Roger Sayle <roger@eyesopen.com>
4783
4784 * combine.c (combine_simplify_rtx): Add an explicit cast
4785 to avoid signed/unsigned comparison warning.
4786 (simplify_if_then_else): Likewise.
4787 (extended_count): Likewise.
4788 (simplify_shift_const): Likewise.
4789 (simplify_comparison): Likewise.
4790
1d4047e0
RS
47912002-07-08 Richard Sandiford <rsandifo@redhat.com>
4792
4793 * config/mips/mips.md: Add imadd type. Update scheduler description
4794 to use imadd as well as imul.
4795 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
4796 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
4797 (*mul_sub_si): Likewise for first alternative. Change second
4798 alternative from imul to multi.
4799
5351f1ca
NB
48002002-07-07 Neil Booth <neil@daikokuya.co.uk>
4801
4802 * c-common.c (c_common_post_options): Update prototype;
4803 don't init backends if preprocessing only.
4804 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
4805 * langhooks.h (struct lang_hooks): Update post_options to
4806 return a boolean.
4807 * toplev.c (parse_options_and_default_flags, do_compile,
4808 lang_independent_init): Update prototypes. Allow the
4809 front end to specify that there is no need to initialize
4810 the back end.
4811 (general_init): Move call to hex_init here...
4812 (toplev_main): ...from here. Pass flag for back end init
4813 suppression.
4814
c8cc4417
R
4815Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
4816
4817 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
4818 (PREDICATE_CODES): Add entries for equality_comparison_operator,
4819 greater_comparison_operator and less_comparison_operator.
4820 * sh.c (print_operand): Add '\'' code. Make 'o' handle
4821 more operators.
4822 (equality_comparison_operator): New function.
4823 (greater_comparison_operator, less_comparison_operator): Likewise.
4824 * sh.md (beq_media_i): Disable generator function generation.
4825 Use match_operator to handle a whole class of comparisons. Add
4826 modifier in output template to provide branch prediction. Add type.
4827 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
4828 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
4829 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
4830 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
4831
957ec0f9
HPN
48322002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
4833
4834 Emit MMIX function prologue and epilogue as rtl.
4835 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
4836 not unprototyped get_hard_reg_initial_val.
4837 ("call_value", "nonlocal_goto_receiver"): Ditto.
4838 ("return"): Make define_expand. Move real insn to...
4839 ("*expanded_return"): New pattern.
4840 ("prologue", "epilogue"): New define_expands.
4841 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
4842 (struct machine_function): New member in_prologue.
4843 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
4844 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
4845 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
4846 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
4847 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
4848 (LOCAL_REGNO): Define. Adjust comment.
4849 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
4850 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
4851 leaf_function_p.
4852 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
4853 the prologue.
4854 (mmix_target_asm_function_prologue): Make static. Just mark that
4855 the prologue is being emitted. Move guts to...
4856 (mmix_expand_prologue): New function. Adjust for emitting
4857 prologue as rtl. For sizes, use HOST_WIDE_INT only.
4858 (mmix_target_asm_function_epilogue): Make static. Simply emit a
4859 \n. Move guts to...
4860 (mmix_expand_epilogue): New function. Adjust for emitting
4861 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
4862 (mmix_target_asm_function_end_prologue): Mark that the prologue
4863 has ended.
4864 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
4865 (mmix_conditional_register_usage): Improve comments.
4866 (mmix_local_regno): New function.
4867 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
4868 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
4869 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
4870 (mmix_get_hard_reg_initial_val): Ditto.
4871
7ab5c789
AJ
48722002-07-06 Andreas Jaeger <aj@suse.de>
4873
4874 * toplev.c (set_fast_math_flags): Don't use ISO C style function
4875 definitions.
4876 * gengtype.c (open_base_files): Likewise.
4877 (close_output_files): Likewise.
4878 * tracer.c (find_best_predecessor): Likewise.
4879 (find_best_successor): Likewise.
4880 (ignore_bb_p): Likewise.
4881
df061a43
RS
48822002-07-05 Roger Sayle <roger@eyesopen.com>
4883
4884 PR c++/7099
4885 * builtin-attrs.def: Define new attribute lists for use in
4886 builtins.def.
4887 * builtins.def [DEF_BUILTIN]: Modify to take an additional
4888 ATTRS argument, an enumerated value defined in builtin-attrs.def
4889 that represents the attribute list for the builtins. Modify
4890 all builtin functions to pass an appropriate attribute list.
4891 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
4892 their required noreturn attributes.
4893 * tree.h (enum_builtin_function): Ignore the additional parameter
4894 to DEF_BUILTIN.
4895 * builtins.c (built_in_names): Likewise.
4896 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
4897 argument with a tree representing the functions attribute list.
4898 Pass this "attrs" argument to builtin_function. No longer handle
4899 the noreturn_p processing manually.
4900 (built_in_attributes): Move the definitions from builtin-attrs.def
4901 before c_common_nodes_and_builtins.
4902 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
4903 DEF_BUILTIN, passing it to both builtin_function and the changed
4904 builtin_function_2.
4905
4906 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
4907 __builtin__exit and __builtin__Exit.
4908
e5eb8de8
SC
49092002-07-05 Stephane Carrez <stcarrez@nerim.fr>
4910
4911 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
4912 QI mode registers in soft registers.
7ab5c789 4913 ("zero_extendqihi2"): Do not take into account soft registers
e5eb8de8
SC
4914 for register allocation (use '*' constraint).
4915
4c8aed14
SC
49162002-07-05 Stephane Carrez <stcarrez@nerim.fr>
4917
4918 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
4919 it is dead.
4920 ("*ashrsi3"): Likewise.
4921 ("*lshrsi3"): Likewise.
4922
99ed68ea
VM
49232002-07-05 Vladimir Makarov <vmakarov@redhat.com>
4924
4925 * genautomata.c (output_max_insn_queue_index_def): Take latencies
4926 into account.
4927
4c8aed14 49282002-07-05 Stephane Carrez <stcarrez@nerim.fr>
581fd392
SC
4929
4930 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
4931 address computation and memory moves.
4932
9833f679
MM
49332002-07-03 Mark Mitchell <mark@codesourcery.com>
4934
4935 PR c++/6706
4936 * dwarfout.c (output_reg_number): Fix warning message.
4937 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
4938 before using it.
7ab5c789 4939
81bca2f5
RO
49402002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4941
4942 * gcc/gcc.c (asm_debug): Move initialization ...
4943 (init_spec): ... here.
4944
17f44f02
NS
49452002-07-05 Nathan Sidwell <nathan@codesourcery.com>
4946
4947 * c-parse.in (extdef): Append ';'.
4948 (old_style_parm_decls): Append ';'.
4949
da77408f
DJ
49502002-07-04 Daniel Jacobowitz <drow@mvista.com>
4951
4952 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
4953 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
4954 to gcc_cv_as_gstabs_flag.
4955 * configure: Rebuilt.
4956
ec52b446
GK
49572002-07-04 Geoffrey Keating <geoffk@redhat.com>
4958
4959 * ggc.h (ggc_add_root): Document as obsolete.
4960
8721e3df
R
4961Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
4962
4963 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
4964 (mshflo_w): Likewise.
4965
3767c0fd
R
4966Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
4967
4968 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
4969 vector mode subregs of constants to finding integer mode
4970 subregs of constants.
4971 * cse.c (cse_insn): Use simplify_gen_subreg.
4972 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
4973 From a vector mode expression of different size than the
4974 target mode.
4975
4e314d1f
EC
49762002-07-03 Eric Christopher <echristo@redhat.com>
4977
4978 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
4979 * config/mips/mips.h: Remove deprecated -m<processor> options
4980 and cc1_cpu_spec associated.
4981 (CONSTANT_ADDRESS_P): Fix last patch.
4982 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
4983 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
4984 sunge_sf): Remove.
4985
6f0361e3
SS
49862002-07-03 Stan Shebs <shebs@apple.com>
4987
4988 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
4989 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
4990 (CPP_SPEC): Remove insertion of APPLE_CC definition.
4991
3129af4c
RS
49922002-07-03 Roger Sayle <roger@eyesopen.com>
4993
4994 * combine.c (struct_undo): Change types of recorded substitutions
4995 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
4996 (do_SUBST_INT): Change types of the substitution from unsigned int
4997 to int, to avoid compilation warning from SUBST_INT's only caller.
4998
4999 (make_extraction): Add cast to avoid compilation warning.
5000 (force_to_mode): Remove cast to avoid compilation warning.
5001
c7375e61
EB
50022002-07-03 Eric Botcazou <ebotcazou@multimania.com>
5003 Jeff Law <law@redhat.com>
5004
5005 * i386.md (length_immediate attribute): Fix typo.
5006 (length_address attribute): Likewise.
5007 (modrm attribute): Set it to 0 for immediate call instructions.
5008 (jcc_1 pattern): Set modrm attribute to 0.
5009 (jcc_2 pattern ): Likewise.
5010 (jump pattern): Likewise.
5011 (doloop_end_internal pattern): Explicitly set length.
5012 (leave pattern): Fix typo.
5013 (leave_rex64 pattern): Likewise.
5014
61c07d3c
DE
50152002-07-03 David Edelsohn <edelsohn@gnu.org>
5016
5017 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
5018 in FPR as preference.
5019 (fctiwz): Same.
5020 (floatdidf2, fix_truncdfdi2): Same.
5021 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
5022 (floatditf2): Same.
5023 (floatsitf2, fix_trunctfsi2): SImode in GPR.
5024 (ctrdi): Remove FPR alternative and splitter.
5025
50262002-07-03 Will Cohen <wcohen@redhat.com>
77966be3
WC
5027
5028 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
5029
34a80643
R
5030Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
5031
5032 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
5033 than UNITS_PER_WORD, unless this is little endian and the first unit
5034 in this word. Let extract_bit_field decide how to load an element.
5035 Force arguments to matching mode.
5036 (expand_vector_unop): Likewise.
5037
5038 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
5039 consist of word_mode elements.
5040 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
5041 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
5042 (build_unary_op): Allow vector types for BIT_NOT_EPR.
5043 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
5044 CONST_VECTOR.
5045 * optabs.c (expand_vector_binop): Try to perform operation in
5046 smaller vector modes with same inner size. Add handling of AND, IOR
5047 and XOR. Reject expansion to inner-mode sized scalars when using
5048 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
5049 (expand_vector_unop): Try to perform operation in smaller vector
5050 modes with same inner size. Add handling of one's complement.
5051 When there is no vector negate operation, try a vector subtract
5052 operation. Use simplify_gen_subreg on constants.
5053 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
5054 constants into smaller vectors with same inner mode, and to
5055 integer CONST_DOUBLEs.
5056
622d3731
KG
50572002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5058
5059 * c-parse.in (parsing_iso_function_signature): New variable.
5060 (extdef_1): New, copied from...
5061 (extdef): ... here. Reset parsing_iso_function_signature.
5062 (old_style_parm_decls): Reset parsing_iso_function_signature.
5063 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
5064 Warn about ISO C style function definitions.
5065 (nested_function, notype_nested_function): Reset
5066 parsing_iso_function_signature.
5067 (parmlist_2): Set parsing_iso_function_signature.
5068
5069 * doc/invoke.texi (-Wtraditional): Document new behavior.
5070
9bb46191
CD
50712002-07-02 Chris Demetriou <cgd@broadcom.com>
5072
5073 * config.gcc (mips*el-*-*): Use tm_defines to set
5074 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
5075 * config/mips/little.h: Remove.
5076
e1c2dd26 50772002-07-02 Devang Patel <dpatel@apple.com>
c40da518 5078
c40da518 5079 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
31e25abd
CD
5080 object as parameter. Prevent something like 'NSObject' to be
5081 used as the type for a method argument.
c40da518 5082
0879540b
NB
50832002-07-03 Neil Booth <neil@daikokuya.co.uk>
5084
5085 * cpptrad.c: Update comment.
5086
b6fb43ab 50872002-07-02 Neil Booth <neil@daikokuya.co.uk>
4e314d1f 5088
b6fb43ab
NB
5089 * doc/cpp.texi: Update for traditional preprocessing changes.
5090 * goc/cppopts.texi: Similarly.
5091
c1c5187c
ZL
50922002-07-02 Ziemowit Laski <zlaski@apple.com>
5093
5094 * c-parse.in (designator): Enable designated initializers if ObjC.
5095 (objcmessageexpr): Remove references to objc_receiver_context.
5096 * objc/objc-act.h (objc_receiver_context): Remove decl.
5097 * objc/objc-act.c (objc_receiver_context): Remove.
5098 (lookup_objc_ivar): Test objc_method_context instead of
5099 objc_receiver_context.
5100
52702ae1
R
5101Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
5102
5103 * sh.c (print_operand, case 'N'): Allow zero vector.
5104 (arith_reg_or_0_operand): Likewise.
5105 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
4e314d1f 5106 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
52702ae1
R
5107 IOR, XOR, PLUS and SET and take their respective constant
5108 ranges into account.
5109 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
5110 * sh.md (subdi3, subdi3_media): Allow zero operand.
5111 (movv8qi_i+3): Only vector that is not split is the zero vector.
5112 Fix operand 3 to simplify_subreg.
5113 (movv2si_i): Split alternative 1.
5114 (mshfhi_l_di_rev+1): New splitter.
5115
49e7b251
NB
51162002-07-02 Neil Booth <neil@daikokuya.co.uk>
5117
ba57a9c0 5118 PR preprocessor/7029
49e7b251
NB
5119 * cppinit.c (cpp_handle_option): Suppress warnings with an
5120 implicit "-w" for "-M" and "-MM".
5121 * doc/cppopts.texi: Update.
5122
a3acdc0c
RS
51232002-07-01 Roger Sayle <roger@eyesopen.com>
5124
5125 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
5126 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
5127 builtin_function.
5128
0b558962
AM
51292002-07-02 Alan Modra <amodra@bigpond.net.au>
5130
5131 * README.Portability: Fix typos.
5132
9a81c5b7
HPN
51332002-07-01 Hans-Peter Nilsson <hp@axis.com>
5134
5135 PR target/7177
5136 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
5137 of indirections for register inside sign-extended mem part.
5138
6a2dd09a
RS
51392002-07-01 Roger Sayle <roger@eyesopen.com>
5140
5141 * tree.h: Modify builtin_function interface to take an extra
5142 argument ATTRS, which is a tree representing an attribute list.
5143
5144 * c-decl.c (builtin_function): Accept additional parameter.
5145 * objc/objc-act.c (builtin_function): Likewise.
5146 * f/com.c (builtin_function): Likewise.
5147 * java/decl.c (builtin_function): Likewise.
5148 * ada/utils.c (builtin_function): Likewise.
5149 * cp/decl.c (builtin_function): Likewise.
5150 (builtin_function_1): Likewise.
5151
5152 * c-common.c (c_common_nodes_and_builtins): Pass an additional
5153 NULL_TREE argument to builtin_function. (builtin_function_2):
5154 Likewise.
5155 * cp/call.c (build_java_interface_fn_ref): Likewise.
5156 * objc/objc-act.c (synth_module_prologue): Likewise.
5157 * java/decl.c (java_init_decl_processing): Likewise.
5158 * f/com.c (ffe_com_init_0): Likewise.
5159
5160 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
5161 NULL_TREE argument to builtin_function.
5162 * config/arm/arm.c (def_builtin): Likewise.
5163 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
5164 * config/i386/i386.c (def_builtin): Likewise.
5165 * config/ia64/ia64.c (def_builtin): Likewise.
5166 * config/rs6000/rs6000.c (def_builtin): Likewise.
5167
e20569ae
ZW
51682002-07-01 Zack Weinberg <zack@codesourcery.com>
5169
5170 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
5171 * config/mips/t-isa3264: Likewise.
5172 * config/mmix/t-mmix: Likewise.
5173
f1b690f1
JDA
51742002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
5175
5176 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
5177
6bfa5aac
RS
51782002-07-01 Roger Sayle <roger@eyesopen.com>
5179
5180 PR opt/4046
5181 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
5182 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
5183 B are truth values.
5184
9a5c1b9d
NN
51852002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
5186
5187 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
5188
d3fc4dbc
MK
51892002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
5190
3b2124df
MK
5191 * README.Portability (Function prototypes): Give an example of
5192 declaring and defining a function with no arguments.
5193
d3fc4dbc
MK
5194 * README.Portability (Function prototypes): Document new
5195 variable-argument function macros.
5196
c1b92d09
R
5197Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
5198
5199 * sh.c (langhooks.h): Include.
5200 (sh_init_builtins, sh_media_init_builtins): New functions.
5201 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
5202 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
5203 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
5204 (builtin_description): New struct tag.
5205 (signature_args, bdesc): New arrays.
5206 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
5207 (print_operand): Add 'N' modifier.
5208 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
5209 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
5210 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
5211 (CONST_COSTS): Add special case for SHmedia AND.
5212 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
5213 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
5214 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
5215 target_operand can also be const or unspec.
5216 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
5217 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
5218 (attribute type): Add new types.
5219 (anddi3): Add splitter.
5220 (movdi_const_16bit+1): Add code to handle vector constants and
5221 bitmasks efficiently.
5222 (shori_media): Have generator function made.
5223 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
5224 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
5225 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
5226 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
5227 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
5228 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
5229 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
5230 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
5231 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
5232 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
5233 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
5234 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
5235 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
5236 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
5237 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
5238 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
5239 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
5240 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
5241 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
5242 (ftrv): Likewise.
5243
5244 (fpu_switch+1, fpu_switch+2): Remove constraint.
5245
97ebc06f
AH
52462002-07-01 Aldy Hernandez <aldyh@redhat.com>
5247
6c535c69
ZW
5248 * tree.c (build_function_type_list): Update function comment.
5249 Rename first argument to return_type.
97ebc06f 5250
353a10d0
NB
52512002-07-01 Neil Booth <neil@daikokuya.co.uk>
5252
5253 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
5254 tradcif.y and related files.
5255
e34cabb3
NB
52562002-07-01 Neil Booth <neil@daikokuya.co.uk>
5257
5258 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
5259
8bf3ccbb
KG
52602002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5261
5262 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
5263
118f8dc1
DP
52642002-06-30 Devang Patel <dpatel@apple.com>
5265
5266 * objc/objc-act.c (finish_file): Avoid finish_objc() if
5267 -fsyntax-only.
5268
e3223ea2
DC
5269Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
5270 Frank Ch. Eigler <fche@redhat.com>
6c535c69 5271 Matthew Green <mrg@redhat.com>
e3223ea2
DC
5272 Richard Henderson <rtl@redhat.com>
5273 Dave Hudson <dave.hudson@ubicom.com>
5274 Jeff Johnston <jjohnstn@redhat.com>
5275 Alan Lehotsky <apl@alum.mit.edu>
5276 Bernd Schmidt <bernds@redhat.com>
5277 Graham Stott <grahams@redhat.com>
4e314d1f 5278
e3223ea2
DC
5279 * doc/extend.texi: Add ip2k port to description of attribute
5280 naked.
5281 * doc/install.texi (Specific): Add ip2k description.
5282 * doc/install-old.texi (Configurations): Add ip2k to possible
5283 cpu types.
5284 * doc/md.texi: Document ip2k constraints.
5285 * config/ip2k/crt0.S: New file.
5286 * config/ip2k/ip2k-protos.h: New file.
5287 * config/ip2k/ip2k.c: New file.
5288 * config/ip2k/ip2k.h: New file.
5289 * config/ip2k/ip2k.md: New file.
5290 * config/ip2k/libgcc.S: New file.
5291 * config/ip2k/t-ip2k: New file.
5292
66b8c57f
HPN
52932002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
5294
5295 * config/mmix/mmix.md ("return"): New pattern.
5296 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
5297 (TARGET_USE_RETURN_INSN): New macros.
5298 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
5299 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
5300 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
5301 (MMIX_POP_ARGUMENT): New macro.
5302 (mmix_target_asm_function_prologue): When no epilogue is executed,
5303 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
5304 (mmix_print_operand) <case '.'>: New case.
5305 (mmix_print_operand_punct_valid_p): Match '.'.
5306 (mmix_use_simple_return): New function.
5307 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
5308 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
5309 -msingle-exit, -mno-single-exit.
5310 (MMIX Options): Ditto.
5311
e7a60f56
AH
53122002-06-30 Aldy Hernandez <aldyh@redhat.com>
5313
6c535c69 5314 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
e7a60f56 5315
1ef7d32b
KG
53162002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5317
5318 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
5319
c8b64bf2
AM
53202002-06-30 Alan Modra <amodra@bigpond.net.au>
5321
5322 * unroll.c (loop_iterations): Handle EQ loops.
5323
35aba846
DE
53242002-06-29 David Edelsohn <edelsohn@gnu.org>
5325
5326 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
5327 constraint in define_expand, not splitter.
5328 Formatting.
5329
b4de2f7d
AH
53302002-06-29 Aldy Hernandez <aldyh@redhat.com>
5331
6c535c69
ZW
5332 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
5333 build_function_type_list instead of build_function_type.
b4de2f7d 5334
6c535c69 5335 * config/ia64/ia64.c (ia64_init_builtins): Same.
b4de2f7d 5336
6c535c69 5337 * config/alpha/alpha.c (alpha_init_builtins): Same.
b4de2f7d 5338
6c535c69 5339 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
b4de2f7d 5340
6c535c69 5341 * config/arm/arm.c (arm_init_builtins): Same.
b4de2f7d 5342
6c535c69 5343 * tree.h: Add build_function_type_list prototype.
b4de2f7d 5344
6c535c69 5345 * tree.c (build_function_type_list): New.
b4de2f7d 5346
1691051f
KG
53472002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5348
5349 * collect2.c (scan_prog_file): Fix typo in message.
5350
7bfb14f1
AL
53512002-06-28 Aaron Lehmann <aaronl@vitelus.com>
5352
6c535c69 5353 * fold-cont.c: Remove unused CHARMASK.
7bfb14f1 5354
38800fe8
NB
53552002-06-29 Neil Booth <neil@daikokuya.co.uk>
5356
5357 PR preprocessor/7150
5358 * cppmain.c (scan_translation_unit_trad): Simplify.
590e1987 5359 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
38800fe8 5360
f60ed6be
NB
53612002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
5362
5363 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
5364 Don't use CPP_PREDEFINES.
5365 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
5366 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
5367 * config/i386/djgpp.h, config/i386/i386-coff.h,
5368 config/i386/i386-interix.h, config/i386/i386-interix3.h,
5369 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
5370 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
5371 config/i386/uwin.h: Similarly.
5372
76118c11
HB
53732002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5374
6c535c69 5375 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
76118c11
HB
5376 flag_inline_trees to enable inlining.
5377
9137b119
PE
53782002-06-28 Phil Edwards <pme@gcc.gnu.org>
5379
5380 * configure.in (gcc_gxx_include_dir): Change to match versioned
5381 C++ headers if --enable-version-specific-runtime-libs is used.
5382 * configure: Regenerate.
5383
6bdb8dd6
JH
53842002-06-28 Jan Hubicka <jh@suse.cz>
5385
5386 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
5387
f1b1186f
SC
53882002-06-28 Stephen Clarke <stephen.clarke@superh.com>
5389
5390 * combine.c (combine_simplify_rtx): Pass the mode of the
5391 shift count, not the shift operation when trying to simplify
5392 a shift on a SHIFT_COUNT_TRUNCATED target.
5393
ae9bd481
SC
53942002-06-28 Stephane Carrez <stcarrez@nerim.fr>
5395
5396 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
5397 avoid the auto increment addressing modes.
5398 ("*subsi3"): Likewise.
4e314d1f 5399 (split for add/sub on address): For 68HC12 push the value on
ae9bd481
SC
5400 the stack and do the operation with a pop.
5401
1d63a28a
NB
54022002-06-28 Neil Booth <neil@daikokuya.co.uk>
5403
5404 * cpplib.c (_cpp_handle_directive): Move #define-specific
5405 code to the #define handler...
5406 (do_define): ...here.
5407 (lex_macro_node): No longer a need to check for comments here.
5408
4caff360
SC
54092002-06-28 Stephane Carrez <stcarrez@nerim.fr>
5410
5411 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
5412 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
5413 Declare.
5414 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
5415 do not reorder basic blocks at the end when optimizing for size.
5416
2cc21497
SC
54172002-06-28 Stephane Carrez <stcarrez@nerim.fr>
5418
5419 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
5420 (m68hc11_make_autoinc_notes): New function.
5421 (m68hc11_split_move): Be very cautious when spliting a move with
5422 auto increment/decrement modes because this may result in incompatible
5423 directions; add REG_INC notes to the resulting insn for CSE reg.
5424
3cdd2821
SC
54252002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
5426
5427 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
5428 can be a valid address.
5429
e6a82e80
AH
54302002-06-28 Aldy Hernandez <aldyh@redhat.com>
5431
6c535c69
ZW
5432 * config/rs6000/rs6000.c: Remove unusued variables from last
5433 patch.
e6a82e80 5434
a7ae18e2
AH
54352002-06-27 Aldy Hernandez <aldyh@redhat.com>
5436
5437 Revert:
6c535c69
ZW
5438 * config/rs6000/rs6000.c (rs6000_override_options): Move
5439 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
a7ae18e2 5440
3a9b8c7e
AH
54412002-06-27 Aldy Hernandez <aldyh@redhat.com>
5442
6c535c69
ZW
5443 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
5444 lvx/stv/dst builtins...
5445 (altivec_expand_ld_builtin): ...to here.
5446 (altivec_expand_st_builtin): ...here.
5447 (altivec_expand_dst_builtin): ...and here (respectively).
3a9b8c7e 5448
5f9dc214
BW
54492002-06-28 Bob Wilson <bob.wilson@acm.org>
5450
5451 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
5452
53501a19
BS
54532001-06-08 Bernd Schmidt <bernds@redhat.com>
5454
5455 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
5456 subregs.
5457 * recog.c (general_operand, register_operand): Disallow them.
5458
d1a58688
NB
54592002-06-28 Neil Booth <neil@daikokuya.co.uk>
5460
5461 PR preprocessor/7138
5462 * cpplib.c (_cpp_handle_directive): Do traditional
5463 preparation after setting state.angled_headers.
5464 * cpptrad.c (scan_out_logical_line): Fix potential
5465 quote bug.
5466
55c1c60d
AH
54672002-06-27 Aldy Hernandez <aldyh@redhat.com>
5468
6c535c69
ZW
5469 * config/rs6000/rs6000.c (rs6000_override_options): Move
5470 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
55c1c60d 5471
3219c65b
BW
54722002-06-27 Bob Wilson <bob.wilson@acm.org>
5473
5474 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
5475 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
5476 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
5477
c8f863fc
RS
54782002-06-27 Roger Sayle <roger@eyesopen.com>
5479
5480 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
5481 * config/stormy16/stormy16.h: Likewise.
5482
5483 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
5484 with #define.
5485
8d5362b7
GP
54862002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5487
5488 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
5489 Hitachi entry. Make punctuation more consistent.
5490
57694e40
MK
54912002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
5492
5493 * doc/install.texi: Change ` bit' to `-bit'.
5494 * doc/md.texi: Change `-bits' to `-bit'.
5495 * doc/tm.texi: Change `-bits' to ` bits'.
5496
c635a1ec
DB
54972002-06-27 Daniel Berlin <dberlin@dberlin.org>
5498
5499 * gcse.c (hoist_code): Rewrite to only get list of dominated
4e314d1f 5500 blocks once per BB. Also fix reversed test (by removing need for
c635a1ec
DB
5501 the test at all).
5502
951a0766
NB
55032002-06-27 Neil Booth <neil@daikokuya.co.uk>
5504
5505 * cpphash.h (_cpp_set_trad_context): Remove.
5506 * cpplib.c (prepare_directive_trad): Do nothing for #define.
5507 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
5508 * cpptrad.c: Update comments.
5509 (_cpp_read_logical_line_trad): Let scan_logical_line handle
5510 updating the current context.
5511 (scan_logical_line): Update the current context.
5512 (_cpp_create_trad_definition): Similarly.
5513 (_cpp_set_trad_context): Remove.
5514
06470238
NB
55152002-06-27 Neil Booth <neil@daikokuya.co.uk>
5516
5517 PR preprocessor/7070
5518 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
5519
0c14a54d
BW
55202002-06-26 Bob Wilson <bob.wilson@acm.org>
5521
5522 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
5523 config/xtensa/xtensa.c (xtensa_return_addr): New function.
5524 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
5525 config/xtensa/xtensa.md (fix_return_addr): New pattern.
5526
e9873fd5
KG
55272002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5528
5529 * mips.c (coprocessor_operand, coprocessor2_operand,
5530 symbolic_operand): Move prototypes from here...
5531 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
5532 symbolic_operand): ...to here.
5533
650e8d05
R
5534Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5535
5536 * config/sh/crt1.asm: remove _stack label definition
5537 and sentinel value.
5538
c7836bcd
KG
55392002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5540
5541 * varasm.c: Include real.h before output.h.
5542
6e1f54e2
AH
55432002-06-26 Aldy Hernandez <aldyh@redhat.com>
5544
6c535c69
ZW
5545 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
5546 check for TARGET_ALTIVEC.
6e1f54e2 5547
18fbcbcf
NN
55482002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
5549
5550 * config.gcc (vax-*-vms*): Make obselete.
5551
09bed167
KG
55522002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5553
5554 * gcc.c (warn_std): Delete.
5555
8254cb45
LR
55562002-06-25 Loren J. Rittle <ljrittle@acm.org>
5557
5558 * doc/extend.texi: Fix formatting of last checkin.
5559
f9ee10ab
RO
55602002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5561
5562 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
5563 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
5564
90989b26
AH
55652002-06-25 Aldy Hernandez <aldyh@redhat.com>
5566
6c535c69
ZW
5567 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5568 discrepancies from motorola's documentation.
90989b26 5569
9881adff
R
5570Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
5571
5572 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
5573 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
4de1b7a9 5574
4e314d1f 5575 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
4de1b7a9
R
5576 produce a 32 bit result before normalization, then normalize with a
5577 left shift. Compute approximative error of 2nd reciprocal
5578 approximation in 2's complement. Fix mask generation from upper
5579 longword of second divide stage result.
5580 For large divisor, fix shift count used to truncate first stage
5581 divide result; make decision if to adjust upwards based on comparison
5582 of higher parts of normalized values.
5583 (udivdi): Likewise. Undo normalization of result for large divisor
5584 case.
5585
16b46035
DM
55862002-06-25 David S. Miller <davem@redhat.com>
5587
5588 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
5589
0c6db544
NB
55902002-06-25 Neil Booth <neil@daikokuya.co.uk>
5591
5592 * cpplib.c (do_include_common): Revert to correct line number
5593 if -traditional.
5594 * cpptrad.c (scan_out_logical_line): Treat null directive as
5595 white space. Invlidate MI optimization for non-whitespace
5596 text outside a directive.
5597
eef709c7
KG
55982002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5599
b41e09a7
KG
5600 * Makefile.in (SHELL): Set to @SHELL@.
5601 * fixinc/Makefile.in (SHELL): Likewise.
5602
eef709c7
KG
5603 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
5604 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
5605 initialization.
5606
b0ac73f8
JL
56072002-06-24 Jeff Law <law@redhat.com>
5608
5609 * flow.c (propagate_one_insn): When removing an insn
5610 with a REG_LIBCALL note but not the entire libcall sequence,
5611 delete the associated REG_RETVAL note.
5612
9e96203d
R
5613Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
5614
5615 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
5616 (udivsi3): Likewise. Rewrite SH1 implementation.
5617 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
5618 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
5619 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
5620 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
5621 (_moddi3): Likewise.
5622
5623 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
87912be7
R
5624
5625 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
5626 arguments into account for stack_regs.
5627
0d893a63
MK
56282002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
5629
5630 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
5631 in examples.
4e314d1f 5632
04a5176a
AH
56332002-06-24 Art Haas <ahaas@neosoft.com>
5634
5635 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
5636 * doc/tm.texi (Frame Layout): Likewise.
5637
cad61762 56382002-06-20 Steve Ellcey <sje@cup.hp.com>
ec52b446 5639
cad61762
SE
5640 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
5641 Set float_format to i128.
5642
556a56ac
DM
56432002-06-24 David S. Miller <davem@redhat.com>
5644
5645 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
5646 32-bit ABI libfuncs to NULL.
5647
563facba
DM
5648 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
5649 strings instead of quoted strings for code blocks.
b776892b 5650
556a56ac
DM
5651 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
5652 optabs if op1 is const0_rtx.
5653
a8106207
DM
5654 * Makefile.in (GTFILES): Add basic-block.h
5655 * basic-block.h (label_value_list, tail_recursion_label_list):
5656 Mark with GTY.
5657
2c088b53
NB
56582002-06-24 Neil Booth <neil@daikokuya.co.uk>
5659
5660 * cpptrad.c (scan_out_logical_line): Check recursing only when
5661 we know we have a macro invocation in the function-like case.
5662 Only call _cpp_handle_directive if we know we have a good
5663 directive, or we want to reject a bad directive.
5664
0228d06b
AM
56652002-06-24 Alan Modra <amodra@bigpond.net.au>
5666
5667 * doloop.c (doloop_valid_p): Correct comment.
5668 (doloop_modify_runtime <abs_inc != 1>): Simplify.
5669 (doloop_modify_runtime <do-while>): Don't emit code when NE.
5670
2f9021d3
DC
5671Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
5672
5673 * config.gcc: Add support for ip2k.
5674
bc9c2952 56752002-06-23 Jan Hubicka <jh@suse.cz>
f81a79ef
JH
5676 Jeff Law <law@redhat.com>
5677
5678 * function.h (struct emit_status): Clarify potential contents
5679 of regno_reg_rtx array.
5680 * integrate.c (copy_rtx_and_substitute): Update comments. Make
5681 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
bc9c2952
AJ
5682
5683 * reg-stack.c (convert_regs_exit): Push the registers to stack in
5684 proper order.
5685
faa964e5
UW
56862002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
5687
5688 PR middle-end/6963
5689 * function.c (assign_stack_temp_for_type): Do not return
5690 the same MEM rtx for multiple uses of a stack slot.
5691
7ae3e57c
DM
56922002-06-22 David S. Miller <davem@redhat.com>
5693
5694 PR target/6841 target/6770 target/6719
5695 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
5696 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
5697 GENERAL_OR_EXTRA_FP_REGS.
5698
847c76c8
NB
56992002-06-22 Neil Booth <neil@daikokuya.co.uk>
5700
5701 * cpptrad.c (struct fun_macro): Add line number.
5702 (scan_out_logical_line): Set it, and use it to report unterminated
5703 macro invocations.
5704
813674e0
KG
57052002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5706
5707 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
5708 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
5709 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
5710 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
5711 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
5712 REGEXP_ONEOF, check_name): Const-ify.
5713
23361093
MT
57142002-06-21 Matt Thomas <matt@3am-software.com>
5715
5716 * config/vax/vax.c (vax_output_function_prologue): Use
bc9c2952 5717 REGISTER_PREFIX. Fix some indentation.
23361093
MT
5718 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
5719 (VAX_ISTREAM_SYNC): Define.
5720 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
bc9c2952
AJ
5721 i-stream sync to the end.
5722 (REGISTER_PREFIX): Define as "".
23361093
MT
5723 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
5724
1c655a0d
JT
57252002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
5726
5727 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
5728 configurations.
5729
3e16bfe2
KG
57302002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5731
5732 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
5733 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
5734
6b0760fd
MT
57352002-06-21 Matt Thomas <matt@3am-software.com>
5736
5737 * config/vax/netbsd.h: Adjust a comment.
5738 (TARGET_DEFAULT): Redefine as 0.
5739
31a78298
RH
57402002-06-21 Richard Henderson <rth@redhat.com>
5741
5742 * bb-reorder.c (make_reorder_chain_1): Search harder for the
bc9c2952
AJ
5743 vax casesi fallthru edge.
5744 * cfglayout.c (cleanup_unconditional_jumps): Use
31a78298
RH
5745 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
5746 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
5747 block after ADDR_VEC.
5748
d8bf1785
RO
57492002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5750
5751 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
5752
00b94a44
NB
57532002-06-21 Neil Booth <neil@daikokuya.co.uk>
5754
5755 * cpperror.c (cpp_error): For traditional CPP, default to
5756 diagnostics on pfile->line.
5757 * cpplib.c (prepare_directive_trad): Set line number for
5758 diagnostics for #define too.
5759 * cpptrad.c (skip_whitespace): Skip comments properly.
5760 (_cpp_expansions_different_trad): Initialize quote2.
5761
c583c5c3
HPN
57622002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
5763
5764 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
5765 * config/mmix/mmix.h: Ditto.
5766 * config/mmix/mmix-protos.h: Ditto.
5767 * config/mmix/mmix.c: Ditto. Fix typo in comment.
5768 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
5769 comment. Comment extra CC modes.
5770
1292ec0c
JH
57712002-06-20 Jan Hubicka <jh@suse.cz>
5772
5773 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
5774 (scope_to_insns_finalize): Do not call set_block_levels; handle
5775 sequences.
5776 (choose_inner_scope): New.
5777 * rtl.h (choose_inner_scope): Declare.
5778
0f8e3849
JDA
57792002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
5780
5781 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
5782 HOST_WIDE_INT.
5783 * pa.c (pa_asm_output_mi_thunk): Likewise.
5784 (n_deferred_plabels): Change type to size_t.
5785 (output_deferred_plabels, output_call): Use size_t instead of int.
5786
0655301f
RH
57872002-06-20 Richard Henderson <rth@redhat.com>
5788
5789 PR target/4041
5790 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
5791 pattern and adjust constraints for coldfire.
5792
2b3aadfc
RH
57932002-06-20 Richard Henderson <rth@redhat.com>
5794
5795 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
5796
5c44e275
CD
57972002-06-20 Chris Demetriou <cgd@broadcom.com>
5798
5799 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
5800
8fff5435
CD
58012002-06-20 Chris Demetriou <cgd@broadcom.com>
5802
5803 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
5804
8a67e083
SS
58052002-06-20 Stan Shebs <shebs@apple.com>
5806
5807 * dominance.c: Include errors.h instead of error.h.
5808
017acb41
NB
58092002-06-20 Neil Booth <neil@daikokuya.co.uk>
5810
5811 * cppexp.c (cpp_interpret_integer): Don't force traditional
5812 numbers to be unsigned.
5813 * cpplib.c (prepare_directive_trad): Set line number for
5814 diagnostics.
5815 * cpptrad.c (scan_out_logical_line): Continue scanning out
5816 at start of buffer.
5817 * gcc.c (trad_capable_cpp): Use cc1 always.
5818
0ed4a390
JL
58192002-06-20 Jeffrey Law <law@redhat.com>
5820
5821 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
5822 elimination in leaf functions by default yet.
5823
988ef418
RS
58242002-06-20 Richard Sandiford <rsandifo@redhat.com>
5825
5826 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
5827
0ab2e54b
RO
58282002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5829
5830 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
5831 multilibs.
5832 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
d8bf1785 5833 Fixes PR other/6836.
0ab2e54b 5834
355be0dc
JH
5835Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
5836 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
5837
5838 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
5839
5840 * basic-block.h: Do not include et-forest.h
5841 (dominance_info): Declare as struct dominance-info.
5842 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
5843 deleting block.
5844 * dominance.c (struct dominance_info): Define.
5845 (BB_NODE, SET_BB_NODE): New macros.
5846 (bb_hash_func, bb_eq_func): Kill.
5847 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
5848 nearest_common_dominator, dominated_by_p, recount_dominator,
5849 add_to_dominance_info, delete_from_dominance_info): update for new
5850 representation.
5851 (get_dominated_by, redirect_immediate_dominators): Rewrite using
5852 enumerate_sons.
5853 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
5854 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
5855 structure.
5856
5857 * et-forest.h: Update copyright; revamp all function to operate on
5858 nodes
5859 (et_forest_value): Kill.
5860 (et_forest_enumerate_sons, et_forest_node_value): New.
5861 * et-forest.c: Update copyright.
5862 * et-forest.h: Update copyright; revamp all function to operate on
5863 nodes
5864 (et_forest_value): Kill.
5865 (et_forest_enumerate_sons, et_forest_node_value): New.
5866
5867 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
5868
5869 * basic-block.h: Inlude et-forest.h
5870 (basic_block_def): Kill dominator.
5871 (dominance_info): New type.
5872 (loops): Use dominace_info.
5873 (dominace handling functions): Take dominace_info as argument
5874 instead of bitmaps.
5875 (create_preheader): Likewise.
5876 * cfg.c (entry_exit_blocks): Kill dominator.
5877 (dump_flow_info): Do not dump dominators.
5878 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
5879 dominators.
5880 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
5881 (flow_loops_pre_header_scan, make_forwarder_block,
5882 canonicale_loop_headers, flow_loops_find): Likewise.
5883 * dominance.c: Include error.h
5884 (idoms_to_doms): Kill.
5885 (bb_hash_func, bb_eq_func): New static functions.
5886 (debug_dominace_info): New global function.
5887 (calculate_dominance_info): Use new et forest structure.
5888 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
5889 get_dominated_by, redirect_immediate_dominators,
5890 nearest_common_dominator, dominated_by_p, verify_dominators,
5891 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
5892 delete_from_dominance_info): New global functions.
5893 * gcse.c (domnators): CHange to dominance_info.
5894 (alloc_hoist_mem): Do not alloc dominators
5895 (free_code_hoist_mem): Use free_dominance_info.
5896 (compute_code_hoist_data): Use dominance_info.
5897 (hoist_code): Likewise.
5898 * ifcvt.c (post_dominators): Likewise.
5899 (find_if_case_2, if_convert): Likewise.
5900 * predict.c (process_note_predictions, process_note_prediction,
5901 estimate-probability): Likewise.
5902 * sched-rgn.c (find_rgns, init_regions): Likewise.
5903 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
5904 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
5905 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
5906 find_evaluations, convert_to_ssa): Likewise.
5907 * ssa.h (compute_dominance_frontiers): Likewise.
5908
5909 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
5910
5911 * Makefile.in (et-forest.c): Add.
5912 * et-forest.c: New file.
5913 * at-forest.h: New file.
5914
ef9772c8
KG
59152002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5916
62c71f4b
KG
5917 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
5918 array size calculation.
5919 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
5920 Likewise.
5921
ef9772c8
KG
5922 * diagnostic.c (diagnostic_kind_text): Const-ify.
5923 * gengtype.c (lang_names): Likewise.
5924
b0dd4808
JH
5925Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
5926
5927 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
5928
8433a25e
RO
59292002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5930
5931 * config/sol2.h: New file.
5932 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
5933 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
5934 (sparc-*-chorusos*): Likewise.
5935 (sparc-*-elf*): Likewise.
5936 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
5937 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
5938 (sparc-hal-solaris2*): Likewise.
5939 (sparc-*-solaris2*): Likewise.
5940 (sparclite-*-elf*): Likewise.
5941 (sparc86x-*-elf*): Likewise.
5942 (sparc64-*-elf*): Likewise.
bc9c2952 5943
8433a25e
RO
5944 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
5945 config/sol2.h.
5946 (ASM_SPEC): Override config/sol2.h version for now.
5947 Removed obsolete GAS_REJECTS_MINUS_S variant.
5948 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
5949 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
5950 (TARGET_OS_CPP_BUILTINS): Likewise.
5951 Assert system=unix.
5952 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
5953 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
5954 config/sol2.h.
5955 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
5956 (ASM_CPU_SPEC): Define.
5957 (SUBTARGET_EXTRA_SPECS): Define.
bc9c2952 5958
8433a25e
RO
5959 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
5960 in config/sparc/sol2.h.
5961 (ASM_SPEC): Moved to config/sol2.h.
5962 (CPP_CPU_SPEC): Simplified.
5963 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
5964 consistency.
5965 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
5966 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
5967 STARTFILE_ARCH64_SPEC.
5968 (STARTFILE_SPEC): Moved to config/sol2.h
5969 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
5970 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
5971 (LINK_ARCH64_SPEC): Simplified.
5972 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
5973 (LINK_SPEC): Moved to config/sol2.h
bc9c2952 5974
8433a25e
RO
5975 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
5976 config/sol2.h.
5977 Use BITS_PER_WORD for size.
5978 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
5979 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
5980 (CPP_PREDEFINES): Removed OS-specific part handled by
5981 TARGET_OS_CPP_BUILTINS.
5982 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
5983 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
5984 (ASM_SPEC): Moved to config/sol2.h.
5985 (PREFERRED_DEBUGGING_TYPE): Likewise.
5986 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
5987 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
5988 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
5989 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
bc9c2952 5990
8433a25e
RO
5991 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
5992 * config/i386/sol2gas.h: Removed.
5993
b6bb1d56
JH
5994Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
5995
5996 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
5997
e50b19ce 59982002-06-16 Aldy Hernandez <aldyh@redhat.com>
4e314d1f 5999
e50b19ce
AH
6000 * gcc.c-torture/execute/simd-1.c: New.
6001
6002 * gcc.dg/simd-1.c: New.
6003
6004 * doc/extend.texi (Vector Extensions): Document that we can
6005 specify simd types not specifically supported by the hardware.
6006 Document that simd types can be used as function arguments.
6007 Document that signness does make a difference in SIMD types.
6008 Misc cleanups and revisions to the vector extensions section.
6009
6010 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
6011 constants.
6012
6013 * expr.c (vector_mode_valid_p): New.
6014
6015 * expr.h: Add vector_mode_valid_p.
6016
6017 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
6018
6019 * c-common.c (type_for_mode): Always build vector nodes regardless
6020 of VECTOR_MODE_SUPPORTED_P.
6021 (handle_mode_attribute): Error if we can't emulate a nonexisting
6022 vector mode.
6023 (handle_vector_size_attribute): Same.
6024
6025 * optabs.c (expand_binop): Open-code vector operations.
6026 (expand_unop): Open-code vector unops.
6027 (expand_vector_binop): New.
6028 (expand_vector_unop): New.
4e314d1f 6029
e50b19ce
AH
6030 * c-typeck.c (build_binary_op): Allow vectors in binops.
6031 Allow vectors in conditional operatiors.
6032 (build_unary_op): Allow vectors in unary minus.
6033
6034 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
6035 TARGET_ALTIVEC.
6036
74d86f4f
RH
60372002-05-20 Richard Henderson <rth@redhat.com>
6038
6039 * c-common.c (c_common_get_alias_set): Correctly handle characters.
6040 Rearrange order of expressions; don't handle vectors here.
6041 * alias.c (get_alias_set): Let vectors match their components.
6042
1867b624
CD
60432002-06-19 Chris Demetriou <cgd@broadcom.com>
6044
6c535c69 6045 * config/mips/mips.c (mips_emit_prefetch): Use hints which
1867b624
CD
6046 match desired locality.
6047
2c1d2fcb
DD
60482002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
6049
6050 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
6051 (h8300_insert_attributes): New.
6052
84d901be
AD
60532002-06-19 Akim Demaille <akim@epita.fr>
6054
6055 * c-parse.in (initelt: identifier ':' initval): Add an empty
6056 action to fix a type clash.
6057 (aliasdecl, classdef): Add the missing closing `;'.
6058 Whitespace changes.
6059 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
6060 $$ = $1 type clashes.
6061
8f2e3902
EC
60622002-06-19 Eric Christopher <echristo@redhat.com>
6063
6064 * config/mips/mips.c (symbol_operand): New function.
6065 (mips_emit_prefetch): Ditto.
6066 * config/mips/mips-protos.h: Define.
6067 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
6068 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
6069 (LEGITIMIZE_ADDRESS): Ditto.
6070 * config/mips/mips.md (prefetch, prefetch_si_address,
6071 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
6072
c894819c
EC
60732002-06-19 Eric Christopher <echristo@redhat.com>
6074
6075 * config/fp-bit.h: Add unordered defines for gofast.
6076
4005971c
VM
60772002-06-19 Vladimir Makarov <vmakarov@redhat.com>
6078
6079 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
6080 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
6081 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
6082 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
6083 checking and without it.
6084 (decl_name, decl_mode_check_failed, regexp_name,
6085 regexp_mode_check_failed): New functions.
6086 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
6087 gen_presence_set, gen_absence_set, gen_automaton,
6088 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
6089 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
6090 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
6091 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
6092 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
6093 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
6094 (decl_hash, decl_eq_p): Use the macros.
6095 (find_decl): Ditto. Set up mode of work_decl.
6096 (process_excls, process_presence_absence, process_decls,
6097 check_automaton_usage, process_regexp, process_regexp_decls,
6098 check_usage, loop_in_regexp, check_loops_in_regexps,
6099 process_regexp_cycles, add_advance_cycle_insn_decl,
6100 initiate_states, initiate_excl_sets,
6101 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
6102 transform_2): Use the macros.
6103 (transform_3): Ditto. Check mode before making transformations of
6104 ALLOF.
6105 (regexp_transform_func, transform_insn_regexps,
6106 process_unit_to_form_the_same_automaton_unit_lists,
6107 form_the_same_automaton_unit_lists_from_regexp,
6108 form_the_same_automaton_unit_lists,
6109 process_seq_for_forming_states, process_alts_for_forming_states,
6110 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
6111 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
6112 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
6113 units_to_automata_heuristic_distr, create_ainsns,
6114 units_to_automata_distr, create_automata): Use the macros.
6115 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
6116 (longest_path_length, min_issue_delay_pass_states,
6117 output_dead_lock_vect, output_tables, output_insn_code_cases,
6118 output_internal_insn_latency_func, output_print_reservation_func,
6119 output_description, output_automaton_units, generate): Use the
6120 macros.
6121 (make_insn_alts_attr): Ditto. Check case when there are not
6122 alternatives in the reservation.
6123 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
6124 make_bypass_attr, form_important_insn_automata_lists,
6125 expand_automata): Use the macros.
c894819c 6126
015089dd
TJ
61272002-06-20 Tim Josling <tej@melbpc.org.au>
6128
6129 * Makefile.in: Clean up code to check for misspecified languages
6130 in enable-languages.
6131
7999462c
AP
61322002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
6133
84d901be 6134 * cpptrad.c (_cpp_replacement_text_len): initialize len.
7999462c 6135
9c8d079c
JM
61362002-06-19 Jason Merrill <jason@redhat.com>
6137
6138 * Makefile.in (unstrap, restrap): New targets.
6139 (bootstrap): Mention restrap.
6140
d90a95fb
MK
61412002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
6142
6143 * except.c (ehl_free): Remove.
6144
6145 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
6146 builtin_define and builtin_define_std.
6147
f01a0d8d
ID
61482002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
6149
6150 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
6151 (sCOND): Restrict operand class so that gcc knows how to reload them.
6152 (bitfield_set): Merge two unnamed insn's using alternatives.
6153 (call_value): Remove constraint on unused uperand.
6154 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
6155 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
c894819c 6156
f01a0d8d
ID
6157 * longlong.h (count_trailing_zeros): Escape newline and beautify.
6158
62363d99
MM
61592002-06-19 Mark Mitchell <mark@codesourcery.com>
6160
6161 * Makefile.in (QMTEST_DIR): Simplify definition.
6162
099bd656
NC
61632002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
6164
6165 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
6166 #define.
6167
278c4662
NB
61682002-06-19 Neil Booth <neil@daikokuya.co.uk>
6169
6170 * cpphash.h (struct cpp_reader): Make date and time strings.
6171 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
6172 _cpp_replacement_text_len): New.
6173 * cppinit.c (cpp_create_reader): Update.
6174 (init_builtins): Register appropriate builtins for -traditional-cpp.
6175 * cppmacro.c (new_number_token): Remove.
6176 (_cpp_builtin_macro_text): New.
6177 (builtin_macro): Use it.
6178 (cpp_macro_definition): Update to handle traditional macros.
6179 * cppmain.c (cb_line_change): Don't do column positioning for
6180 traditional output.
6181 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
6182 state ls_fun_close.
6183 (skip_whitespace): Fix.
6184 (maybe_start_funlike): Don't set state.parsing_args.
6185 (scan_out_logical_line): Remove duplicate error. Use lex_state
6186 rather than state.parsing_args.
6187 (push_replacement_text): Handle builtins.
6188 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
6189
afd1930f 61902002-06-18 Hans-Peter Nilsson <hp@axis.com>
f01a0d8d 6191 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
afd1930f
HPN
6192
6193 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
6194 attribute __always_inline__.
6195
5ee924c2
BW
61962002-06-18 Bob Wilson <bob.wilson@acm.org>
6197
6198 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
6199 when generating the call to _mcount.
6200 (NO_PROFILE_COUNTERS): Define.
6201
32c36ac8
RH
62022002-06-18 Richard Henderson <rth@redhat.com>
6203
6204 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
6205 2002-06-02 change.
6206
c985dc5e
R
6207Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
6208
6209 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
6210 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
6211 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
6212 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
e3ba8d11
R
6213
6214 * sh-protos.h (sh_pr_interrupt): Declare.
6215 * sh.c (sh_pr_interrupt): New function.
6216 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
6217 (sh_hard_regno_rename_ok): Likewise.
6218 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
6219
e3c8eb86
VM
62202002-06-18 Vladimir Makarov <vmakarov@redhat.com>
6221
6222 * rtl.def (DEFINE_AUTOMATON): Add description of new options
6223 `time' and `v'. Fix incorrect description of option `w'.
6224
6225 * doc/md.texi: Ditto.
6226
6227 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
6228 (gen_automata_option): Process the new options.
6229 (transform_2, transform_3): Initialize some variables.
6230 (initiate_automaton_gen): Use the new macros.
c894819c 6231
b2471838
RS
62322002-06-18 Richard Sandiford <rsandifo@redhat.com>
6233
6234 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
6235 (mips_set_return_address, mips_restore_gp): Declare.
6236 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
6237 (current_frame_info): Remove.
6238 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
6239 * config/mips/mips.c: Remove uses of current_frame_info.
6240 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
6241 (struct machine_function): Add 'frame' and 'insns_len'.
6242 (current_frame_info, zero_frame_info): Remove.
6243 (mips_restore_gp, mips_set_return_address): New.
6244 (mips_initial_elimination_offset): New.
6245 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
6246 (eh_return define_split): Use mips_set_return_address.
6247
d97371e0
NB
62482002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
6249
6250 * cpplib.c (dtable): Update.
6251 (end_directive): Decrement expansion prevention count.
6252 Clear state.in_expression.
6253 (prepare_directive_trad): Set state.in_expression.
6254 Increment expansion prevention count.
6255 * cpptrad.c (enum ls): New.
6256 (_cpp_overlay_buffer): Set overlaid_buffer.
6257 (_cpp_remove_overlay): Use overlaid_buffer.
6258 (_cpp_read_logcial_line_trad): Update buffer when it might
6259 have changed.
6260 (scan_out_logical_line): Handle state transitions for assertions
6261 and defined() in #if, and for funlike invocations including the
6262 directive case. Handle '<' and '>' as a quote mechanism in
6263 #include. Warn about unterminated macro invocations.
6264 * cpphash.h (struct lexer_state): New member in_expression.
6265 (struct cpp_reader): New member overlaid buffer.
6266
807b20b0
HPN
62672002-06-18 Hans-Peter Nilsson <hp@axis.com>
6268
6269 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
6270 __always_inline__.
6271
8a09a7e5
AM
62722002-06-18 Alan Modra <amodra@bigpond.net.au>
6273
147d5f6f
AM
6274 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
6275
8a09a7e5
AM
6276 * doloop.c (doloop_optimize): Extract pattern from insn.
6277
390de769
MK
62782002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
6279
6280 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
6281
0ed4a390 62822002-06-17 Jeff Law <law@redhat.com>
912ce297
JL
6283
6284 * libgcc2.c: Do not include symcat.h or machmode.h.
6285
5c45425b
RH
62862002-06-17 Richard Henderson <rth@redhat.com>
6287
6288 PR target/6922
6289 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
6290
9aa497ae
TT
62912002-06-17 Tom Tromey <tromey@redhat.com>
6292
6293 * dwarfout.c: Include function.h.
6294
7f11f1f9
AS
62952002-06-17 Andreas Schwab <schwab@suse.de>
6296
6297 * print-rtl.c (print_rtx): Print space before vector, not after.
6298 (debug_rtx): Clear sawclose before printing.
6299 (debug_rtx_list): Print newline after each list element.
6300 (debug_rtx_range): Likewise.
6301
df696a75
RH
63022002-06-17 Richard Henderson <rth@redhat.com>
6303
6304 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
6305 (current_function_funcdef_no): Similarly.
6306 * function.c (funcdef_no): Similarly.
6307 (prepare_function_start): Set current_function_funcdef_no.
6308 (expand_function_start): Don't set current_function_profile_label_no.
6309 * dwarf2out.h (current_funcdef_number): Remove.
6310 * dwarf2out.c (current_funcdef_number): Remove. Replace with
6311 current_function_funcdef_no throughout.
6312 * dwarfout.c, vmsdbgout.c: Similarly.
6313 * except.c (sjlj_funcdef_number): Remove.
6314 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
6315 (output_function_exception_table): Likewise.
6316 * final.c (profile_function): Use current_function_funcdef_no
6317 instead of current_function_profile_label_no.
6318
97272202
VM
63192002-06-17 Vladimir Makarov <vmakarov@redhat.com>
6320
6321 * sched-ebb.c (init_ready_list): Check INSN_P first.
6322
8bccce2d
R
6323Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
6324
6325 * sh.md (divsi3): Update way how to find insns in a sequence.
dec0798e
R
6326
6327 * reload1.c (merge_assigned_reloads): Don't change reloads
6328 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
6329 to RELOAD_OTHER when there are conflicting input reloads.
6330
0af5c896
RE
63312002-06-17 Richard Earnshaw (rearnsha@arm.com)
6332
6333 * function.c (epilogue_done): Correctly build a sequence of insns for
6334 a sibcall epilogue.
6335
9d0fa9d6
NC
63362002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
6337
845b1456
NC
6338 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
6339 #define.
6340
9d0fa9d6
NC
6341 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
6342
e83f3cff
RH
63432002-06-16 Richard Henderson <rth@redhat.com>
6344
6345 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
6346 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
6347
caecc099
RH
63482002-06-16 Richard Henderson <rth@redhat.com>
6349
6350 PR opt/6722
6351 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
6352
3d05b15f
NB
63532002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
6354
caecc099
RH
6355 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
6356 * config/i386/i386-aout.h, config/i386/i386elf.h,
6357 config/i386/sysv4.h: Remove CPP_PREDEFINES.
6358 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
6359 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
6360 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
6361 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
3d05b15f 6362 CPP_PREDEFINES and part of CPP_SPEC.
caecc099 6363 * config/i386/sysv4-cpp.h: New.
3d05b15f 6364
8370aa3a
RH
63652002-06-16 Richard Henderson <rth@redhat.com>
6366
65a90f3c 6367 PR c/7030
8370aa3a
RH
6368 * dwarf2out.c (modified_type_die): Don't assign the qualified die
6369 to the unqualified type.
6370
e932b21b
JH
6371Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
6372
6373 * i386-protos.h (x86_field_alignment): Declare.
6374 * i386.c (x86_field_alignment): Define.
6375 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
6376 (BIGGEST_FIELD_ALIGNMENT): Kill.
6377
7ee02381
RH
63782002-06-16 Richard Henderson <rth@redhat.com>
6379
f01a0d8d 6380 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
7ee02381 6381
750491fc
RH
63822002-06-16 Richard Henderson <rth@redhat.com>
6383
6384 * c-common.c (flag_ms_extensions): Move from c++ front end.
6385 * c-common.h (flag_ms_extensions): Declare.
6386 * c-decl.c (c_decode_option): Add -fms-extensions.
6387 (grokfield): Don't accept anonymous structures in ISO C mode;
6388 accept only unnamed anonymous structures in GNU C mode; accept
6389 Plan 9 extensions in MS mode.
6390 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
6391 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
6392 (extension): Clear flag_iso.
6393 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
6394
c134da6b
HPN
63952002-06-16 Hans-Peter Nilsson <hp@axis.com>
6396
6397 PR target/7042
6398 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
6399 early if current_function_epilogue_delay_list is non-empty.
6400 * config/cris/cris.md ("return"): Add sanity check asserting that
6401 current_function_epilogue_delay_list is empty.
6402
038c7976
JL
64032002-06-16 Jeff Law <law@redhat.com>
6404
006a94b0
JL
6405 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
6406 sharing of hard registers.
6407
6408 * toplev.c (rest_of_compilation): Remove redundant conditional.
6409
038c7976
JL
6410 * toplev.c (rest_of_compilation): Perform a simpler, less costly
6411 cleanup of the CFG when not optimizing.
6412
0797741a
AM
64132002-06-16 Alan Modra <amodra@bigpond.net.au>
6414
6415 * gcc.c (main): Correct startfile_prefix_spec check.
6416
a6e2e53e
GK
64172002-06-12 Geoffrey Keating <geoffk@redhat.com>
6418
6419 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
6420 include both darwin.o and rs6000-c.o.
6421
129e0ee8
RS
64222002-06-15 Roger Sayle <roger@eyesopen.com>
6423
6424 * expr.c (compare_from_rtx): Call simplify_relational_operation
6425 on all comparisons, not just those between integer constants,
6426 with the correct (possibly unsigned) comparison code.
6427 (do_compare_rtx_and_jump): Likewise.
6428
d5355cb2
JDA
64292002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
6430
6431 * Makefile.in (tm_defines): New configuration variable.
6432 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
6433 Pass tm_defines in TM_DEFINES.
6434 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
6435 * config.gcc (tm_defines): New configuration variable.
6436 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
6437 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
6438 * configure.in: Substitute tm_defines.
6439 * configure: Rebuilt.
6440 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
6441 * doc/install.texi: Update.
6442 * pa/pa-700.h: Delete file.
6443 * pa/pa-7100.h: Delete file.
6444
8dcb27ed
RS
64452002-06-15 Roger Sayle <roger@eyesopen.com>
6446
6447 * fold-const.c (comparison_to_compcode): New function to convert
6448 an comparison TREE CODE into a bit-based representation.
6449 (compcode_to_comparison): New function to convert from this bit
6450 based representation back to a comparison TREE CODE.
6451 (fold_truthop): Simplify (x<y) && (x==y) and related composite
6452 comparisons.
6453
182e515e
AH
64542002-06-15 Aldy Hernandez <aldyh@redhat.com>
6455
f01a0d8d 6456 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
182e515e 6457
f01a0d8d
ID
6458 * stor-layout.c (compute_record_mode): Remove check for
6459 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
6460 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
6461 MEMBER_TYPE_FORCES_BLK.
182e515e 6462
f01a0d8d 6463 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
182e515e 6464
f01a0d8d 6465 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
182e515e 6466
8773135d
JS
64672002-06-14 Jeff Sturm <jsturm@one-point.com>
6468
6469 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
6470
893a047c
SE
64712002-06-14 Steve Ellcey <sje@cup.hp.com>
6472
6473 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
6474 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
6475 * configure, config.in: Regenerate.
6476
045d7161
EB
64772002-06-14 Eric Botcazou <ebotcazou@multimania.com>
6478
6479 * loop.c (check_final_value): Use v->always_executed
6480 instead of v->always_computable.
6481 * unroll.c (final_giv_value): Don't calculate the final
6482 value as a function of the biv if the giv is not computed
6483 for every loop iteration.
6484
048c8616 64852002-06-14 Eric Botcazou <ebotcazou@multimania.com>
c894819c 6486
048c8616
EB
6487 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
6488
43e4a9d8
EB
64892002-06-14 Eric Botcazou <ebotcazou@multimania.com>
6490
52689a98 6491 PR c/6677
43e4a9d8
EB
6492 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
6493 the truncation down when the target type is signed.
6494 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
6495 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
6496 the conversion if the target type is a smaller type.
6497
fa4a5557
RH
64982002-06-14 Richard Henderson <rth@redhat.com>
6499
6500 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
6501 earlier. Re-factor comparisons vs extrema.
6502
d95eb49f
RH
65032002-06-14 Richard Henderson <rth@redhat.com>
6504
6505 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
6506
be202ec2
FS
65072002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6508
6509 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
6510 * sched-deps.c (add_dependence): Likewise.
6511 (group_leader): Likewise.
6512 * sched-rgn.c (init_ready_list): Likewise.
6513 * doc/rtl.texi: Adjust accordingly.
6514
e56c4463
JL
65152002-06-13 Jeffrey Law <law@redhat.com>
6516
99a15921
JL
6517 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
6518 null pointer checks were eliminated. Update prototype.
6519 (delete_null_pointer_checks): Similarly.
6520 * rtl.h (delete_null_pointer_checks): Update prototype.
6521 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
6522 delete_null_pointer_checks deletes one or more null
6523 pointer checks. Do not run cleanup_cfg before gcse, the
6524 CFG is accurate and optimized at that point..
6525
e56c4463
JL
6526 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
6527 of hard registers.
6528
556b821e
UW
65292002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
6530
6531 * Makefile.in (libgcc.mk): Depend on specs.
6532
fa60f36d
R
6533Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
6534
6535 * sh.md (mulsi3): Update way how to find insns in a sequence.
6536
03b8ec29
DD
6537Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
6538
6539 * sh.h: Define HARD_REGNO_RENAME_OK
6540 * sh.c: sh_hard_regno_rename_ok: New. If current function has
6541 interrupt_handler attribute, only registers saved on stack are OK.
6542 * sh-protos.h: Declare sh_hard_regno_rename_ok.
6543
8e831557
KK
65442002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
6545
6546 * config/sh/sh.md (jump): Emit jump insn.
6547 (call_pcrel): Get pattern of the result of gen_call_site.
6548 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
6549
bf9d5852
NB
65502002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
6551
6552 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
6553 * cpptrad.c: Update comments.
6554 (skip_whitespace, copy_comment): Take a new parameter.
6555 (skip_escaped_newlines): Don't duplicate escaped newline test.
6556 (copy_comment): Different location for CUR, decide here how
6557 to copy / replace the comment.
6558 (skip_whitespace): Copy whitespace.
6559 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
6560 (scan_out_logical_line): Let copy comment handle keeping or
6561 replacing comments.
6562 (scan_parameters, _cpp_create_trad_definition): Update.
6563
57292ec3
AL
65642002-06-13 Alan Lehotsky <apl@alum.mit.edu>
6565
6566 * reload.c (get_secondary_mem,find_reloads_address,
6567 find_reloads_address_1): Pass reference to MEM to find_reloads_address
6568 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
c894819c 6569
a6f5e048
RH
65702002-06-13 Jessica Han <jessica@cup.hp.com>
6571
6572 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
6573 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
6574 * doc/tm.texi: Document them.
6575 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
6576 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
6577 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
6578 (ASM_OUTPUT_FDESC): Likewise.
6579
3aafa0bb
EC
65802002-06-13 Eric Christopher <echristo@redhat.com>
6581
6582 * diagnostic.c (output_format): Fix thinko.
6583
8e581963
R
6584Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
6585
6586 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
6587 (DWARF2_UNWIND_INFO): Define to 0.
9d7ed806
R
6588
6589 * config/sh/sh.c (calc_live_regs): Don't use initial_value
6590 optimization for PR_MEDIA_REG.
6591
b66377c1
NB
65922002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
6593
6594 * cpphash.h (_cpp_lex_identifier_trad): Remove.
6595 * cpplib.c (end_directive): Don't skip, always remove overlay
6596 apart from #define.
6597 (prepare_directive_trad): Handle NULL pfile->directive.
6598 (_cpp_handle_directive): Always call prepare_directive_trad
6599 if traditional.
6600 * cppmain.c (check_multiline_token): Rename account_for_newlines,
6601 generalize inputs.
6602 (scan_translation_unit_trad): Use it.
6603 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
6604 output, get escaped newline in comment close correct.
6605 (check_output_buffer, skip_whitespace): Update.
6606 (_cpp_lex_identifier_trad): Remove.
6607 (scan_out_logical_line): Handle -C and comments in directives
6608 properly.
6609
8bc6e101
R
6610Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
6611
6612 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
6613 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
6614 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
6615 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
6616 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
6617 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
6618 (SELECT_SH5_COMPACT_NOFPU): Likewise.
6619 (TARGET_SWITCHES): Use them.
6620 (TARGET_CPU_DEFAULT): Define if not already defined.
6621 (TARGET_DEFAULT): Use it.
6622 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
6623 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
6624 * config/sh/t-monolib: New file.
6625
2181005d
RS
66262002-06-13 Roger Sayle <roger@eyesopen.com>
6627
6628 * toplev.c (rest_of_compilation): Simplify (and correct) the
6629 logic of the first delete-null-pointer-checks pass.
6630
aaae0bb9
JH
6631Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
6632
6633 * i386.c (ix86_expand_movstr): Fix pasto.
6634
6635Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
b80cb6e2
JH
6636
6637 * reload.c (find_valid_class): Fix thinko in my previous patch.
6638
dd3fbd93
UW
66392002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
6640
6641 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
6642 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
6643 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
6644 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
6645
0d0f605c
GDR
66462002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
6647
6648 * tree-inline.c (expand_call_inline): Don' mess with _DECL
3aafa0bb 6649 fields.
0d0f605c 6650
c92bcccb
GDR
66512002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
6652
6653 * diagnostic.c (output_format): Recognize "%H" as a format
6654 specifier for a location_t.
6655 (text_specifies_location): New function.
6656 (diagnostic_set_info): Use it.
6657
7f243674
JL
66582002-06-13 Jeffrey Law <law@redhat.com>
6659
6cde4876
JL
6660 * emit-rtl.c (static_regno_reg_rtx): Define.
6661 (init_emit_once): Initialize static_regno_reg_rtx.
6662 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
6663 of building new hard reg objects once per function.
6664 (gen_rtx_REG): Try to share hard regs.
6665 * regclass.c (init_fake_stack_mems): New function broken out from
6666 init_regs.
6667 * rtl.h (init_fake_stack_mems): Declare.
6668 * toplev.c (lang_independent_init): Call init_regs before
6669 init_emit_once. Call init_fake_stack_mems after init_emit_once.
6670
110b3faa
JL
6671 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
6672
7f243674
JL
6673 * alias.c (argument_registers): Remove.
6674 (init_alias_once): Initialize static_reg_base_value here. Remove
6675 initialization of argument_registers.
6676 (init_alias_once_per_function): Remove.
6677 (init_alias_analysis): Copy all the entries from static_reg_base_value
6678 into new_reg_base_value all at once.
6679 * rtl.h (init_alias_once_per_function): Remove declaration.
6680 * function.c (prepare_function_start): Do not call
6681 init_alias_once_per_function.
6682
6683 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
6684 starting a sequence and emitting an INSN.
6685
a336f2e5
RS
66862002-06-13 Richard Sandiford <rsandifo@redhat.com>
6687
6688 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
6689
2acf0fa9
DM
66902002-06-13 David S. Miller <davem@redhat.com>
6691
6692 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
6693
974c43f1
NB
66942002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
6695
6696 * cpplib.c (end_directive): Handle line skipping. Only remove
6697 the rest of the line if the directive was valid.
6698 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
6699 expanding a traditional macro.
6700 * cpptrad.c (recursive_macro): New.
6701 (read_logical_line_trad): Handle skipping.
6702 (scan_out_logical_line): Continue after a successful directive.
6703 Don't expand macros whilst skipping, or if recursing.
6704 (_cpp_create_trad_definition): scan_out_logical_line now sets
6705 the output current position.
6706
12bf26b6
EC
67072002-06-12 Eric Christopher <echristo@redhat.com>
6708
6709 From Chris Demetriou <cgd@broadcom.com>
6710 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
6711 comment.
6712 (ISA_HAS_MADD_MSUB): Ditto.
6713 (ISA_HAS_NMADD_NMSUB): Ditto.
6714
be95b8a5
EC
67152002-06-12 Eric Christopher <echristo@redhat.com>
6716
6717 * config.gcc: Consolidate little endian handling and
6718 little/big endian targets.
6719 * config/mips/elfl.h: Remove file.
6720 * config/mips/elfl64.h: Ditto.
6721 * config/mips/ecoffl.h: Ditto.
6722 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
6723
e03856fe
GK
67242002-06-12 Geoffrey Keating <geoffk@redhat.com>
6725
6726 * gengtype.h (xvasprintf): New prototype.
6727 (xasprintf): New prototype.
6728 (struct outf): New.
6729 (get_output_file): Return an outf_p.
6730 (header_file): Is now an outf_p.
6731 (base_files): Now are outf_p.
6732 (oprintf): New.
6733 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
6734 rather than stdio operations. Use xasprintf in a few places,
6735 when appropriate.
6736 (xvasprintf): New.
6737 (xasprintf): New.
6738 (struct filemap): Delete.
6739 (files): Delete.
6740 (output_files): New.
6741 (oprintf): New.
6742 (create_file): Create an outf_p. Add parameter to indicate output
6743 file name, change all callers.
6744 (open_base_files): Create gtype-desc.c here.
6745 (get_output_file_with_visibility): Rewrite.
6746 (get_output_file_name): Just look at 'name' field in struct outf.
6747 (close_output_files): Rewrite.
6748
ec01703c
JT
67492002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
6750
6751 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
be95b8a5 6752 (MASK_G_FLOAT): Define.
ec01703c
JT
6753 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
6754 (TARGET_SWITCHES): Likewise.
6755 (TARGET_DEFAULT): Likewise.
6756
8b0397a6
DJ
67572002-06-12 Daniel Jacobowitz <drow@mvista.com>
6758
6759 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
6760 * config/mips/mips.c (mips_output_filename): Don't print a
6761 ".file" directive if we are using DWARF-2.
6762 (mips_output_function_prologue): Do not emit source file
6763 name for TARGET_GAS.
6764
495333a6
JH
6765Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
6766
6767 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
6768 decide whether emit the short opcode.
6769 * i386.h (x86_shift1): Declare.
6770 (TARGET_SHIFT1): New macro.
6771 * i386.c (x86_shift1): New global variable.
6772
8b0397a6
DJ
6773 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
6774 unconditionally; make loop to rebuild CFG; kill unnecesary
6775 find_basic_block calls; kill compute_bb_for_insn call.
495333a6
JH
6776 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
6777 * haifa-sched.c (sched_init): Likewise.
6778 * ssa-ccp.c (ssa_const_prop): Likewise.
6779 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
6780
d11cea13
DM
67812002-06-11 David S. Miller <davem@redhat.com>
6782
6783 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
6784 active_insn_p.
6785
676997cf
RH
67862002-06-11 Richard Henderson <rth@redhat.com>
6787
6788 * c-common.c (builtin_define_type_max): New.
6789 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
6790 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
6791
6792 From Joseph S. Myers:
6793 * glimits.h: Rewrite to expect the double underscore definitions
6794 from the compiler.
6795
6796 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
6797 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
6798 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
6799 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6800 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
6801 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
6802 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
6803 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
6804
116b7a5e
RH
68052002-06-11 Richard Henderson <rth@redhat.com>
6806
6807 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
6808 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
6809 (code_for_builtns): Update.
6810 (alpha_init_builtins): Add __builtin_thread_pointer and
6811 __builtin_set_thread_pointer.
6812 (alpha_expand_builtin): Handle void builtins.
6813 * doc/extend.texi (Alpha Built-in Functions): Update.
6814
0cec6af1
HPN
68152002-06-11 Hans-Peter Nilsson <hp@axis.com>
6816
6817 PR target/6997
6818 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
6819
1c0ca89d
ZW
68202002-06-11 Zack Weinberg <zack@codesourcery.com>
6821
6822 * config.gcc: Make the name of the extra-modes file adjustable
6823 by target stanzas.
6824 (s390x, strongarm, xscale stanzas): Use this facility.
6825 * configure.in: Update to match.
6826 * configure: Regenerate.
6827
5dc8d536
AH
68282002-06-11 Aldy Hernandez <aldyh@redhat.com>
6829
1c0ca89d
ZW
6830 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
6831 max/mins as unsigned GE compares.
5dc8d536 6832
169274cd
JT
68332002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
6834
1c0ca89d 6835 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
169274cd
JT
6836 * config/vax/bsd.h: New file.
6837 * config/vax/netbsd.h: Add missing notice.
1c0ca89d
ZW
6838 (CPP_PREDEFINES): Remove.
6839 (TARGET_OS_CPP_BUILTINS): Define.
6840 (CPP_SPEC): Use NETBSD_CPP_SPEC.
169274cd
JT
6841 * config/vax/openbsd.h: Update copyright years.
6842 (CPP_PREDEFINES): Remove.
6843 (TARGET_OS_CPP_BUILTINS): Define.
6844 * config/vax/ultrix.h: Likewise.
6845 * config/vax/vaxv.h: Likewise.
6846 * config/vax/vms.h: Likewise.
6847 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
6848 (CPP_PREDEFINES, CPP_SPEC): Remove.
6849
2f41793e
JH
6850Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
6851
6852 * i386.md (addqi_1_slp, subqi_1_slp
6853 (andqi_ext0, testqi_ext0): Remove unnecesary check.
6854 (addhi*, addqi*): Simplify "dec" condition.
6855 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
6856 (and, or, xor to QImode splitters): New.
6857 (iorqi_ext*): New.
6858 (xorqi_ext_0): New.
6859 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
6860 (andqi_ext_1_rex64): New.
6861 (ashrqi*_slp): New.
6862 (ashlqi*_slp): New.
6863 (lshlqi*_slp): New.
6864 (rotrqi3*_slp): New.
6865 (rotlqi3*_slp): New.
6866
fc5c400a
GK
68672002-06-11 Geoffrey Keating <geoffk@redhat.com>
6868
4c4eb375
GK
6869 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
6870 softfloat.h.
6871 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
6872 (CPP_ENDIAN_LITTLE_SPEC): Delete.
6873 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
6874 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
6875 __LONG_DOUBLE_128__ setting, _CALL_* setting.
6876 (CPP_DEFAULT_SPEC): Delete.
6877 (CPP_FLOAT_DEFAULT_SPEC): Delete.
6878 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
6879 (CPP_SYSV_DEFAULT_SPEC): Delete.
6880 (CPP_ENDIAN_BIG_SPEC): Delete.
6881 (CPP_ENDIAN_LITTLE_SPEC): Delete.
6882 (CPP_ENDIAN_SPEC): Delete.
6883 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
6884 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
6885 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
6886 cpp_longdouble_default.
6887 * config/rs6000/softfloat.h: Delete.
6888 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
6889 (EXTRA_SPECS): Delete cpp_cpu.
6890 (TARGET_CPU_CPP_BUILTINS): New.
6891 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
6892 prototype.
6893 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
6894 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
6895 (CPP_DEFAULT_SPEC): Delete.
6896 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
6897 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
6898 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
6899 (CPP_DEFAULT_SPEC): Delete.
6900 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
6901 (CPLUSPLUS_CPP_SPEC): Likewise.
6902 (CPP_CPU_SPEC): Delete.
6903 (CPP_DEFAULT_SPEC): Delete.
6904 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
6905 (CPLUSPLUS_CPP_SPEC): Likewise.
6906 (CPP_CPU_SPEC): Delete.
6907 (CPP_DEFAULT_SPEC): Delete.
6908 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
6909 (CPP_DEFAULT_SPEC): Delete.
6910 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
6911 (CPP_DEFAULT_SPEC): Delete.
6912
fc5c400a
GK
6913 * doc/gty.texi: Small updates.
6914
13f0d49c
GDR
69152002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
6916
6917 * objc/objc-act.c (warn_with_ivar): Adjust calls to
6918 diagnostic_count_error.
6919 (warn_with_method): Likewise.
6920
6921 * diagnostic.h (warnings_are_errors_message): New field of
6922 diagnostic_context.
6923 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
6924 match semantics.
6925 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
6926 (diagnostic_count_diagnostic): Make aware of other kinds of
1c0ca89d 6927 diagnostics.
13f0d49c
GDR
6928 (diagnostic_initialize): Initialize warnings_are_errors_message field.
6929
0797e472
TT
69302002-06-11 Tom Tromey <tromey@redhat.com>
6931
6932 For PR java/6520:
6933 * fold-const.c (fold_convert): Don't modify existing tree's type.
6934
f288d4aa
GK
69352002-06-11 Geoffrey Keating <geoffk@redhat.com>
6936
6937 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
6938
d27bab4c
RH
69392002-06-11 Richard Henderson <rth@redhat.com>
6940
6941 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
6942
bc2a8f08
RH
69432002-06-11 Richard Henderson <rth@redhat.com>
6944
1c0ca89d 6945 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
bc2a8f08
RH
6946 DWARF2_UNWIND_INFO is false.
6947
b217ec1b
BW
69482002-06-11 Bob Wilson <bob.wilson@acm.org>
6949
6950 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
6951
11819f80
UW
6952 * config/s390/s390.c (emit_prologue): gen_store_multiple
6953 returns an insn now, not a pattern.
6954
c2727579
RO
69552002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6956
6957 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
6958 $(TEXI2DVI) -o.
6959
285464d0
JH
6960Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
6961
6962 * i386.c (x86_promote_QImode): Set for Athlon
6963 (x86_fast_prefix): New global variable.
6964 (x86_arch_always_fancy_math_387): Fix formating.
6965 * i386.h (x86_fast_prefix): Declare
6966 (TARGET_FAST_PREFIX): define.
6967 * i386.md (and to strict_low_part, HI to SI
6968 promoting splitter): Use new macro.
6969
6970 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
6971
1bb1f121
ZW
69722002-06-11 Zack Weinberg <zack@codesourcery.com>
6973
6974 * Makefile.in (distclean): Delete junk left in testsuite
6975 directory, too.
6976
88c65786
JL
69772002-06-11 Jeffrey Law <law@redhat.com>
6978
c6a3fcf0
JL
6979 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
6980 last insn created by the splitter.
6981
0db79a6b
JL
6982 * caller-save.c (init_caller_save): Move creation of SAVEINSN
6983 and RESTINSN into into the scope of the sequence.
6984
47eb2ca8
JL
6985 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
6986 RETURN insns.
6987
603b4b92
JL
6988 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
6989
88c65786
JL
6990 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
6991 not the pattern. So extract the pattern from the insn.
882c7223
JL
6992
6993 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
6994
df14489a
UW
69952002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
6996
6997 * config/s390/s390.md (movsi): Only use floating point
6998 register alternatives when operands are already fprs.
6999 (movdi_31, movdi_64): Likewise.
7000
6f9703af
DM
70012002-06-11 David S. Miller <davem@redhat.com>
7002
7003 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
7004 Only run RTX equality checks on INSN_P rtl.
7005
b2ccb744
UW
70062002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
7007
7008 * config/s390/s390.md (reload_base, ltorg): Remove.
1c0ca89d 7009 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
b2ccb744 7010 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1c0ca89d 7011 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
b2ccb744
UW
7012 s390_asm_output_pool_prologue): Likewise.
7013 * s390.h (s390_pool_start_insn): Likewise.
7014
1c0ca89d 7015 * s390.c (s390_output_symbolic_const): Remove support for
b2ccb744
UW
7016 old-style pool chunks.
7017 (s390_function_epilogue): Likewise.
1c0ca89d 7018 (s390_output_constant_pool): Likewise. Also, fix incorrect
b2ccb744
UW
7019 alignment for 64-bit literal pools.
7020 (print_operand_address): Remove 'y' and 'Y' format flags.
1c0ca89d 7021 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
b2ccb744
UW
7022 old-style pool chunks.
7023 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
7024 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
7025 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
7026
7027 * s390.c (consttable_operand): New function.
7028 * s390-protos.h (consttable_operand): Declare it.
7029 * s390.h (PREDICATE_CODES): Add consttable_operand.
1c0ca89d
ZW
7030 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
7031 consttable_sf, consttable_df, pool_start_31, pool_end_31,
b2ccb744
UW
7032 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
7033 * s390.c (struct constant, struct constant_pool): New data types.
7034 (constant_modes, gen_consttable): New variables.
1c0ca89d 7035 (s390_start_pool, s390_end_pool, s390_add_pool,
b2ccb744 7036 s390_dump_pool, s390_free_pool): New functions.
1c0ca89d 7037 (s390_chunkify_pool): Completely reimplement literal pool
b2ccb744
UW
7038 overflow handling.
7039
7040 * s390.c (s390_pool_overflow): New variable.
7041 * s390.h (s390_pool_overflow): Declare it.
1c0ca89d 7042 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
b2ccb744
UW
7043 jumps in literal pool overflow situations.
7044
7045 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
1c0ca89d 7046 (s390_frame_info): Account for possible use of RETURN_REGNUM
b2ccb744
UW
7047 by new literal pool overflow code.
7048 (s390_emit_prologue): Likewise.
7049
2f937369
DM
70502002-06-05 David S. Miller <davem@redhat.com>
7051
7052 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
7053 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
7054 emit_insns_before_scope, emit_insns_after,
7055 emit_insns_after_scope): Delete declaration.
7056 * ada/misc.c (insert_code_for): Use emit_insn* instead of
7057 emit_insns_foo.
7058 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
7059 (alpha_set_memflags): Fix comment.
7060 (set_frame_related_p): Use get_insns instead of gen_sequence.
7061 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
7062 emitting no insns.
7063 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
7064 gen_sequence.
7065 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
7066 * config/fr30/fr30.c (fr30_move_double): Likewise.
7067 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
7068 Likewise.
7069 * config/ia64/ia64.c (spill_restore_mem): Likewise.
7070 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
7071 no insns.
7072 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
7073 instead of gen_sequence.
7074 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
7075 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
7076 * config/sh/sh.c (sh_need_epilogue): Likewise.
7077 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
7078 attributes.
7079 (setjmp pattern and split): Use them to avoid splitter which emits
7080 no RTL.
7081 * genattrtab.c (main): Emit include of function.h
7082 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
7083 get_insns instead of gen_sequence.
7084 * config/cris/cris.c (cris_split_movdx): Likewise.
7085 * emit-rtl.c (emit_insns*): Kill.
7086 (try_split): Expect insn list instead of SEQUENCE.
7087 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
7088 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
7089 Make them abort if a SEQUENCE is given and RTL checking is
7090 enabled.
7091 (emit_*_scope): Don't forget to set scope on final insn.
7092 (gen_sequence): Move from here...
7093 * ssa.c (gen_sequence): To here as private function.
7094 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
7095 comments.
7096 (expand_builtin_return, expand_builtin_mathfn): Likewise.
7097 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
7098 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
7099 (expand_builtin_expect_jump): Use get_insns and fix comments.
7100 * calls.c (try_to_integrate): Use emit_insn_foo.
7101 (expand_call, emit_library_call_value_1): Likewise.
7102 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
7103 (emit_move_insn_1): Use get_insns instead of gen_sequence.
7104 (expand_expr): Use emit_insn_foo.
7105 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
7106 * except.c (build_post_landing_pads): Likewise.
7107 * flow.c (attempt_auto_inc): Likewise.
7108 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
7109 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
7110 * function.c (fixup_var_refs_insn): Use get_insns instead of
7111 gen_sequence.
7112 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
7113 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
7114 (fixup_stack_1, purge_addressof_1, expand_main_function,
7115 get_arg_pointer_save_area): Likewise.
7116 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
7117 expand_function_end): Use emit_insn_foo.
7118 (record_insns, keep_stack_depressed): Work with insn list instead
7119 of SEQUENCE, fix comments.
7120 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
7121 noce_try_store_flag_constants, noce_try_store_flag_inc,
7122 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
7123 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
7124 (noce_process_if_block): Use get_insns instead of gen_sequence.
7125 * optabs.c (add_equal_note): Work with insn list, fix comments.
7126 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
7127 (expand_unop, expand_complex_abs, expand_unop_insn,
7128 expand_no_conflict_block): Likewise.
7129 (gen_move_insn): Use get_insns instead of gen_sequence.
7130 (gen_cond_trap): Likewise.
7131 * integrate.c (copy_rtx_and_substitute): Likewise.
7132 (emit_initial_value_sets): Use emit_insn_foo.
7133 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
7134 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
7135 now that RTL generators give insn lists.
7136 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
7137 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
7138 instead of gen_sequence.
7139 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
7140 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
7141 instead of gen_sequence.
7142 * loop.c (move_movables, emit_prefetch_instructions,
7143 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
7144 Likewise.
7145 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
7146 (product_cheap_p): Likewise, and add commentary about RTL wastage
7147 here.
7148 * lcm.c (optimize_mode_switching): Use get_insns instead of
7149 gen_sequence.
7150 * profile.c (gen_edge_profiler): Likewise.
7151 * regmove.c (copy_src_to_dest): Likewise.
7152 * reg-stack.c (compensate_edge): Likewise and fix comment.
7153 * gcse.c (process_insert_insn): Likewise.
7154 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
7155 * jump.c (delete_prior_computation): Update comment.
7156 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
7157 of gen_sequence, update comments to match.
7158 * recog.c (peephole2_optimize): Work with insn lists instead of
7159 SEQUENCE rtl.
7160 * sched-vis.c (print_pattern): Abort on SEQUENCE.
7161 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
7162 Use get_insns instead of gen_sequence.
7163 (copy_loop_body): Likewise and don't emit dummy NOTE.
7164 * genrecog.c: Don't mention SEQUENCE rtl in comments.
7165 * combine.c (try_combine): Expect insn lists from split generator.
7166 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
7167 hand.
1c0ca89d 7168
43cf10b5
RS
71692002-06-11 Roger Sayle <roger@eyesopen.com>
7170 Andreas Jaeger <aj@suse.de>
7171
7172 * cfgbuild.c: Update copyright years.
7173
1062f15a
AS
71742002-06-11 Andreas Schwab <schwab@suse.de>
7175
1c0ca89d 7176 * config/m68k/m68k.h (PREDICATE_CODES): Define.
1062f15a 7177
ce3649d2
EC
71782002-06-11 Eric Christopher <echristo@redhat.com>
7179
7180 * doc/tm.texi (Run-time Target): Add comment about flag_iso
7181 and strict ANSI.
7182 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
7183 * config/mips/ecoffl.h: Ditto.
7184 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
7185 (CPP_PREDEFINES): Ditto.
7186 * config/mips/elfl64.h: Ditto.
7187 * config/mips/elfl.h: Ditto.
7188 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
7189 out until irix header consolidation.
7190 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
7191 with SUBTARGET_OS_CPP_BUILTINS.
7192 * config/mips/iris6.h: Ditto.
7193 (CPLUSPLUS_CPP_SPEC): Remove.
7194 * config/mips/linux.h: Ditto.
7195 * config/mips/netbsd.h: Ditto.
7196 * config/mips/openbsd.h: Ditto.
7197 * config/mips/rtems.h: Ditto.
7198 * config/mips/rtems64.h: Ditto.
7199 * config/mips/sni-svr4.h: Ditto.
7200 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
7201 ISA_MIPS32, ISA_MIPS64): New defines.
7202 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
7203 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
7204 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7205 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
7206 (TARGET_CPU_CPP_BUILTINS): Define.
7207 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
7208 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
7209 (movdicc): Remove check for ISA_MIPS32.
7210 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
7211 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
7212 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
7213 sunge_sf, sunle_df, sunle_sf): New patterns.
7214
bc3437ba
NB
72152002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
7216
7217 * Makefile.in: Update cppmain.o.
7218 * cpphash.h (struct cpp_reader): Move some members to a
7219 nested structure.
7220 (trad_line): Rename saved_line.
7221 (_cpp_read_logical_line_trad): Update.
7222 (_cpp_remove_overlay): New.
7223 * cppinit.c (cpp_create_reader): No need to set saved_line.
7224 (cpp_destroy): Update.
7225 (cpp_read_main_file): Only overlay if compiling.
7226 * cpplex.c (continue_after_nul): Return false if in directive.
7227 * cpplib.c (EXPAND): New.
7228 (directive_table, SEEN_EOL): Update.
7229 (end_directive): Remove overlay if traditional; don't skip
7230 line in traditional #define.
7231 (prepare_directive_trad): New.
7232 (_cpp_handle_directive, run_directive): Update for traditional
7233 directives.
7234 (lex_macro_node): Simplify, don't use lex_identifier_trad.
7235 * cpplib.h (struct options): Add preprocess_only.
7236 * cppmain.c: Don't include intl.h.
7237 (cpp_preprocess_file): Set options->preprocess_only.
7238 (scan_translation_unit_trad): Fix, and print line numbers.
7239 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
7240 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
7241 save_replacement_text, _cpp_create_trad_definition): Update for
7242 variable renaming.
7243 (_cpp_overlay_buffer): Save line number.
7244 (_cpp_remove_overlay): Rename from restore_buff, restore line.
7245 (_cpp_read_logical_line_trad): Don't handle overlays here.
7246 (scan_out_logical_line): Process directives.
7247
b25bb36a
DS
72482002-06-11 Danny Smith <dannysmith@users.sourforge.net>
7249
7250 * gthr-win32.h: Wrap functions in extern "C".
7251 (__gthread_key_t): Typedef as unsigned long,
7252 not win32 DWORD.
7253 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
7254 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
7255 (__gthr_win32_once, __gthr_win32_key_create,
7256 __gthr_win32_key_delete, __gthr_win32_getspecific,
7257 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
7258 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
7259 __gthr_win32_mutex_unlock): Declare.
7260 (__gthread_once,__gthread_key_create,
7261 __gthread_key_delete, __gthread_getspecific,
7262 __gthread_setspecific, __gthread_mutex_init_function,
7263 __gthread_mutex_lock,__gthread_mutex_trylock,
7264 __gthread_mutex_unlock): Call corresponding
7265 __gthr_win32_* extern implementations if #defined
7266 __GTHREAD_HIDE_WIN32API.
7267 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
ce3649d2 7268 $(srcdir)/config/i386/gthr-win32.c
b25bb36a
DS
7269 * config/i386/gthr-win32.c: New implementation file.
7270 (__gthr_win32_once, __gthr_win32_key_create,
7271 __gthr_win32_key_delete, __gthr_win32_getspecific,
7272 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
7273 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
7274 __gthr_win32_mutex_unlock): New functions, based on
7275 static inlines in gthr-win32.h.
7276
a69c385e
BW
72772002-06-10 Bob Wilson <bob.wilson@acm.org>
7278
7279 * config/xtensa/xtensa.c (override_options): Don't warn about
7280 using -fpic or -fPIC when PIC is enabled by default.
7281
e654730d
RS
72822002-06-10 Roger Sayle <roger@eyesopen.com>
7283
7284 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
7285
a5381466
ZW
72862002-06-10 Zack Weinberg <zack@codesourcery.com>
7287
7288 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
ce3649d2 7289 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
a5381466
ZW
7290 exists, substitute its pathname as @extra_modes_file@, define
7291 EXTRA_MODES_FILE to be an appropriate string to #include it
7292 with, and define EXTRA_CC_MODES to 1.
7293
7294 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
7295 it's defined. Get rid of redundancy in calling sequence for
7296 CC; don't use it to define CCmode, to avoid a warning.
7297 * libgcc2.c: Include symcat.h for the sake of machmode.def.
7298
7299 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
7300 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
7301 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
7302 New files.
7303 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
7304 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
7305
7306 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
7307 defining extra CC modes.
7308
852c6ec7
RS
73092002-06-10 Roger Sayle <roger@eyesopen.com>
7310 Andreas Jaeger <aj@suse.de>
7311
7312 * cfgrtl.c (create_basic_block_structure): Remove index argument
7313 and use last_basic_block++ instead. (create_basic_block): Update.
7314 * cfgbuild.c (find_basic_blocks_1): Likewise.
7315
7316 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
7317 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
7318 * sched-ebb.c (schedule_ebbs): Likewise.
7319 * sched-rgn.c (schedule_insns): Likewise.
7320 * ssa-ccp.c (ssa_const_prop): Likewise.
7321 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
7322 * toplev.c (rest_of_compilation): Likewise.
7323 * config/ia64/ia64.c (ia64_reorg): Likewise.
7324
60c86d4e
RS
73252002-06-10 Roger Sayle <roger@eyesopen.com>
7326
7327 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
7328 of matching registers.
7329
9543a9d2
RS
73302002-06-10 Roger Sayle <roger@eyesopen.com>
7331
7332 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
7333 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
7334
38e18619
HPN
73352002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
7336
7337 * config/mmix/mmix.h: Improve comments.
7338 (CPP_SPEC, CPP_PREDEFINES): Don't define.
7339 (TARGET_CPU_CPP_BUILTINS): Define.
7340 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
7341 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
7342 unused predicate.
7343 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
7344 compiler warning.
7345 (mmix_constant_address_p): Remove another
7346 redundant test before case.
7347 (mmix_canonicalize_comparison): Remove unused function.
7348 (mmix_print_operand_address): Don't test and adjust for operand in
7349 non-canonical format.
7350 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
7351 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
7352
ac17cd8f
ZW
73532002-06-10 Zack Weinberg <zack@codesourcery.com>
7354
7355 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
7356 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
7357 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
7358 (gen_compare): Use CCmode unconditionally.
7359
7b668f9e
JJ
73602002-06-10 Jakub Jelinek <jakub@redhat.com>
7361
7362 PR optimization/6759
7363 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
7364 the REQ_EQUAL note.
7365
85d49058
JJ
73662002-06-10 Jakub Jelinek <jakub@redhat.com>
7367
7368 PR c/6660
7369 * c-decl.c (grokfield): Allow user defined types if they declare
7370 structs or unions for unnamed fields.
7371
50f30e6b
JJ
73722002-06-10 Jakub Jelinek <jakub@redhat.com>
7373
7374 PR c/6809
7375 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
7376
156755ac
JJ
73772002-06-10 Jakub Jelinek <jakub@redhat.com>
7378
7379 PR optimization/6842
7380 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
7381 operand subreg cannot be simplified.
7382
5d056e9b
JJ
73832002-06-10 Jakub Jelinek <jakub@redhat.com>
7384
7385 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
7386 (compare_constant): Likewise.
7387 (output_addressed_constants): Likewise.
7388
2bf87216
JJ
73892002-06-10 Jakub Jelinek <jakub@redhat.com>
7390
7391 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
7392 merge bb with itself.
7393
135fd2d8
RH
73942002-06-10 Richard Henderson <rth@redhat.com>
7395
7396 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
7397 (builtin_zapnot): Likewise.
7398
7399 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
7400 reservation.
7401
fce5a9f2
EC
74022002-06-10 Eric Christopher <echristo@redhat.com>
7403
7404 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
7405 prototype and function.
7406 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
7407 (call_insn_operand): Remove half pic references.
7408 (legitimate_address_p): Ditto.
7409 * config/i386/i386.h: Remove half pic defines.
7410
95b1627e
EC
74112002-06-10 Eric Christopher <echristo@redhat.com>
7412
7413 * doc/extend.texi (Return Address): Add note explaining the side-
7414 effects of inlining on __builtin_return_address.
7415
aea185b3
TT
74162002-06-10 Tom Tromey <tromey@redhat.com>
7417
7418 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
7419 (c-common.o): Depend on langhooks.h.
7420
afb03408
NB
74212002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
7422
7423 * cpphash.h (_cpp_read_logical_line_trad,
7424 _cpp_expansions_different_trad): Update prototypes.
7425 * cpplex.c (continue_after_nul): New.
7426 * cppmain.c: Include cpphash.h.
7427 (scan_translation_unit_trad): New.
7428 (cpp_preprocess_file): Call it.
7429 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
7430 overlay.
7431 (_cpp_expansions_different_trad): Update prototype.
7432
2754d3c5
R
7433Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
7434
7435 Fix cfi generation for SH[1-4]:
7436
7437 * sh.c (frame_insn): New function.
7438 (output_stack_adjust): Add parameter emit_fn. All callers changed.
7439 (push): Now returns rtx. Use frame_insn.
7440 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
7441 of a DF register.
7442 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
7443
ad854f24
ZW
74442002-06-10 Zack Weinberg <zack@codesourcery.com>
7445
7446 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
7447 and gtype-desc.c.
7448 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
7449 (distclean): ... not here. But do delete all testsuite/*.log,
7450 testsuite/*.sum files here. Delete mkheaders. Delete
7451 po/*.gmo and the testsuite directory in a split tree build.
7452
bf1660a6
JL
74532002-06-10 Jeffrey Law <law@redhat.com>
7454
7455 * alias.c (static_reg_base_value): New to hold RTL for
7456 items allocated once per function for the aliasing code.
7457 (init_alias_once_per_function): Initialize static_reg_base_value.
7458 (init_alias_analysis): Avoid throw-away allocations of RTL by
7459 using pre-computed values in static_reg_base_value.
7460 * function.c (prepare_function_start): Call
7461 init_alias_once_per_function appropriately.
7462 * rtl.h (init_alias_once_per_function): Declare.
7463 * caller-save (init_caller_save): Restructure slightly to
7464 avoid lots of silly RTL generation.
7465 * expr.c (init_expr_once): Likewise.
7466 * reload1.c (reload_cse_regs_1): Allocate throw-away register
7467 RTL object here. Pass it into children.
7468 (reload_cse_simplify_operands): Use passed-in register RTL
7469 object.
7470 (reload_cse_simplify): Pass through throw-away register
7471 RTL object.
7472
8dc58484 74732002-06-10 Daniel Berlin <dberlin@dberlin.org>
ad854f24 7474
8dc58484
DB
7475 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
7476
ea16b5ee
RS
74772002-06-10 Richard Sandiford <rsandifo@redhat.com>
7478
7479 * gcc.c (process_command): Avoid assignment to read-only location.
7480 Fix sizeof calculation.
7481
6618c5d4
NB
74822002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
7483
7484 * cpphash.h (struct cpp_macro): Put comments on their own lines.
7485 (_cpp_expansions_different_trad): New.
7486 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
7487 * cpptrad.c (canonicalize_text): New.
7488 (scan_out_logical_line): Handle no arguments correctly.
7489 (save_replacement_text): Commit memory when finished.
7490 (_cpp_expansions_different_trad): New.
7491
96e3ac4f
TJ
74922002-06-10 Tim Josling <tej@melbpc.org.au>
7493
7494 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
7495 TREELANG and COBOL.
7496 (lang_names): Add treelang and cobol.
7497 (get_file_basename): Add code to support treelang and cobol as
7498 4th and 5th users of c-common.c.
7499
37a4aa31
GK
75002002-06-09 Geoffrey Keating <geoffk@redhat.com>
7501
7502 * Makefile.in (install-driver): Install driver as
7503 $(target_alias)-gcc-$(version).
7504 * gcc.c (spec_version): Make const.
7505 (process_command): Handle -V and -b by using exec.
7506 * doc/invoke.texi (Target Options): Restore -V option,
7507 update docs for -b option.
7508
02ef40d9
TJ
75092002-06-10 Tim Josling <tej@melbpc.org.au>
7510
ad854f24
ZW
7511 * configure.in (remaining_languages_check):
7512 Added check that all languages specified were found.
02ef40d9
TJ
7513 Exit if not found. Previous behaviour was silent failure.
7514 * configure: Regenerated.
7515
b38b97c4 75162002-06-10 Tim Josling <tej@melbpc.org.au>
ad854f24 7517
1c0ca89d 7518 First steps to making treelang documentation compliant, based on
b38b97c4
TJ
7519 instructions in sourcebuild.texi. Also add to gcc.c list of
7520 default languages.
ad854f24 7521
b38b97c4
TJ
7522 * doc/contrib.texi: Add self as contributor of treelang.
7523
7524 * doc/frontends.texi: Add mention of treelang.
7525
7526 * doc/invoke.texi (Overall Options): Add mention of treelang.
7527
7528 * doc/standards.texi: Add mention of treelang.
7529
ae9dbf1f
HPN
75302002-06-09 Hans-Peter Nilsson <hp@axis.com>
7531
7532 * config/cris/cris.c: Include ggc.h
7533
1ce676a0
NB
75342002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
7535
7536 * cpphash.h (_cpp_push_text_context): Update.
7537 (_cpp_arguments_ok): New.
7538 * cppmacro.c (_cpp_arguments_ok): New, split out from...
7539 (collect_args): ...here.
7540 (_cpp_push_text_context): Change inputs.
7541 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
7542 replace_args_and_push): New.
7543 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
7544 Don't use IS macros directly.
7545 (scan_out_logical_line): Handle function-like macro argument
7546 collection.
7547 (push_replacement_text): Update.
7548 (replacement_length): Remove.
7549 (_cpp_create_trad_definition): Don't skip whitespace before
7550 checking for '('.
7551
25f2e176
MM
75522002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
7553
7554 * config/avr/avr.c (avr_mcu_types): Update for new devices.
7555 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
7556 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
7557 * config/avr/avr.md ("type" and "length" attributes): New type
7558 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
7559 output a single "call" or "rcall" insn depending on device size.
7560 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
7561
309323c2
DE
75622002-06-09 David Edelsohn <edelsohn@gnu.org>
7563
7564 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
7565 synonym for 630. Add power4. Remove embedded processors. Use -m604
7566 assembler option.
7567 (CPP_CPU_SPEC): Add power3 and power4.
7568 (PROCESSOR_DEFAULT): Change to 604e.
7569 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
7570 (CPP_CPU_SPEC): Similar additions.
7571 (enum process_type): Add POWER4.
7572 (RTX_COSTS): Add POWER4.
7573 (CPP_CPU_SPEC): Similar additions.
7574 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
6ef0903d 7575 (PROCESSOR_DEFAULT64): Define.
309323c2
DE
7576 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
7577 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
7578 branch adjustment.
7579 (rs6000_issue_rate): Add Power4.
7580 * config/rs6000/rs6000.md (cpu attr): Add power4.
7581 (iu compare): Remove 604, 604e, 620, 630.
7582 Add basic Power4 scheduling information.
7583 (mfcr/mtcrf): Change type attribute to cr_logical.
7584
1f8e4682
KG
75852002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7586
57d80297
KG
7587 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
7588 ATTRIBUTE_PRINTF_2.
7589 * gengtype-lex.l: Fix format specifier warning.
7590
1f8e4682
KG
7591 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
7592 not isspace.
7593 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
7594 lieu of isspace/IDchar.
7595 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
7596 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
7597 ISSPACE.
7598
5a9ee623
ZW
75992002-06-08 Zack Weinberg <zack@codesourcery.com>
7600
7601 * Makefile.in (LIBCPP_OBJS): Take out version.o.
7602 * cpphash.h (cpp_reader): Take out print_version member.
7603 * cppinit.c: (cpp_handle_option): Don't do anything with
7604 -version. Just set help_only for --version, --target-help.
7605 Just set verbose option for -v.
7606 (cpp_post_options): Don't print a version string.
7607
c16e5a35
MM
76082002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
7609
7610 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
7611 (avr_section_type_flags): New, handle .noinit* sections.
7612
79bc889e
JT
76132002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
7614
7615 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
7616 and include netbsd_entry_point.
7617 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
7618 (NETBSD_ENTRY_POINT): Define.
7619
6a79bb0a
JT
76202002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
7621
7622 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
5a9ee623 7623 if not already defined.
6a79bb0a
JT
7624 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
7625
e52b6b63
MM
76262002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
7627
7628 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
7629 in a noreturn function.
7630 (avr_output_function_prologue, avr_output_function_epilogue):
7631 Correct function size calculation. Do not crash on empty function.
7632 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
7633
1569d670
JT
76342002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
7635
7636 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
7637 netbsd_link_spec and netbsd_entry_point.
7638 (LINK_SPEC): Use %(netbsd_link_spec).
7639 (NETBSD_ENTRY_POINT): Define.
7640
cfb06024
JT
76412002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
7642
7643 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
7644 linker emulation.
7645 (LINK_ARCH64_SPEC): Likewise.
7646 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
7647 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
7648
5a9ee623
ZW
76492002-06-08 Marc Espie <espie@openbsd.org>
7650
7651 * lists.c (free_list): Fix typo in comment.
e3623158 7652
272cdf58
AJ
76532002-06-08 Andreas Jaeger <aj@suse.de>
7654
7655 * lcm.c (optimize_mode_switching): Add unused attribute for
7656 variable.
7657
7658 * sched-deps.c (sched_analyze): Remove unused variable.
7659
bf3f2a12
GDR
76602002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
7661
7662 * diagnostic.def: Don't capitalize diagnostict descriptors.
7663
523a5f2f
JT
76642002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
7665
7666 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
7667 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
7668 (NETBSD_ENTRY_POINT): Define.
7669
a3e944f9
JT
76702002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
7671
7672 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
7673 NETBSD_LINK_SPEC_ELF.
7674 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
7675 (NETBSD_ENTRY_POINT): Define.
7676 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
7677 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
7678 netbsd_entry_point.
7679 (NETBSD_ENTRY_POINT): Define.
7680
854928a0
JT
76812002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
7682
7683 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
7684 netbsd_link_spec and netbsd_entry_point.
7685 (LINK_SPEC): Use %(netbsd_link_spec).
7686 (NETBSD_ENTRY_POINT): Define.
7687
6bb5d2e7
JT
76882002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
7689
7690 * config/netbsd-elf.h (LINK_SPEC): Rename to...
7691 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
7692 to specify program entry point.
7693
e50126e8
JL
76942002-06-07 Jeff Law <law@redhat.com
7695
7696 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
272cdf58 7697 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
e50126e8
JL
7698 than creating a new register.
7699 (distribute_notes): Likewise.
7700 * df.c (df_reg_use_gen): Likewise.
7701 (df_reg_clobber_gen): Likewise.
7702 (df_ref_record): Likewise.
7703 * expr.c (use_regs): Likewise.
7704 * flow.c (propagate_one_insn): Likewise.
7705 (mark_set_1): Likewise.
7706 (mark_used_reg): Likewise.
7707 * reload.c (emit_reload_insns): Likewise.
7708
bc9c18c3
RS
77092002-06-07 Roger Sayle <roger@eyesopen.com>
7710
7711 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
7712 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
7713 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
7714 comparison code comp can be reversed.
7715
437f1df1
RS
77162002-06-07 Roger Sayle <roger@eyesopen.com>
7717
7718 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
7719 constants last in comparisons. Optimize (x+1.0)>0.0 into the
7720 equivalent x > -1.0 when -ffast-math.
7721
cd24b8a4
JT
77222002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
7723
7724 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
7725 * config/mips/t-netbsd: New file.
7726
09e77dee
ZW
77272002-06-07 Zack Weinberg <zack@codesourcery.com>
7728
7729 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
7730 options their own entries.
7731 (parse_option): Clarify comment.
7732 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
7733 special case. Replace if/strcmp chain for -W options with
7734 use of new OPT_* entries for them.
7735 (cpp_handle_options): Update to match.
7736 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
7737 * c-decl.c: Update call to cpp_handle_option.
7738
942030dc
AD
77392002-06-07 Akim Demaille <akim@epita.fr>
7740
7741 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
7742 Whitespace changes.
7743
f2846820
JL
77442002-06-07 Jeffrey Law <law@redhat.com>
7745
7746 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
7747 on empty lists.
7748
4bafaa6f
L
77492002-06-07 H.J. Lu (hjl@gnu.org)
7750
7751 * configure.in: Add --enable-__cxa_atexit.
7752 * configure: Regenerated.
7753 * config.in: Likewise.
7754
7755 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
7756 not defined.
7757
caef5b46
GDR
77582002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
7759
7760 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
7761
ac64a17c
JT
77622002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
7763
7764 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
7765
97459791
JM
77662002-06-07 Jason Merrill <jason@redhat.com>
7767
7768 * cppexp.c (num_equality_op): Use a temporary variable to work
7769 around gcc 3.0.4 bug.
7770
4b1d52c7
GDR
77712002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
7772
7773 * diagnostic.c (diagnostic_build_prefix): Tidy.
7774
c70f6ed3
NB
77752002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
7776
7777 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
7778 scan_parameters, save_replacement_text, replacement_length): New.
7779 (scan_out_logical_line): Take a macro and save parameters if
7780 non-NULL.
7781 (_cpp_logical_line_trad): Update.
7782 (_cpp_create_trad_definition): Update to handle function-like
7783 macros.
7784 * cpplex.c (new_buff): Update.
7785 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
7786 * cpphash.h: ...here.
7787 (CPP_ALIGN2, _cpp_save_parameter): New.
7788 * cppmacro.c (save_parameter): Rename, export.
7789 (parse_params): Update.
7790
aec2ac46
AJ
77912002-06-07 Andreas Jaeger <aj@suse.de>
7792
7793 * config/mmix/mmix.c: Remove extra broken prototype for
7794 mmix_init_machine_status.
7795
9f313342
GK
77962002-06-06 Geoffrey Keating <geoffk@redhat.com>
7797
7798 * gengtype.c: Add comments before all the routines.
7799
3fa1b448
JT
78002002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
7801
7802 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
7803 from and add t-sh64 to ${tmake_file}.
7804 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
7805 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
7806 * config/sh/t-netbsd-sh5-32: Remove.
7807 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
7808 MULTILIB_ENDIAN.
7809 (MULTILIB_DIRNAMES): Define.
7810
0d682900
JH
7811Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
7812
7813 * i386.md (and promoting splitters): Disable QI to SImode promoting
7814 when doing so changes immediate to be 32bit.
7815
7816 * rtl.h (emit_*_scope): Declare.
7817 * emit-rtl.c (emit_*_scope): New global functions.
7818 (try_split): Copy scope.
7819 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
7820 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
7821 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
7822 noce_process_if_block, find_cond_trap): Copy scopes.
7823 * recog.c (peephole2_optimize): likewise.
7824
c991649c
JL
78252002-06-06 Jeffrey Law <law@redhat.com>
7826
7827 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
7828
8a5d66c4
R
7829Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
7830
7831 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
7832
d7f8491b
RO
78332002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7834
7835 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
7836 ($(docdir)/gccinstall.info): New target.
7837 (info): Depend on it.
7838 (gccinstall.dvi): New target.
7839 (dvi): Depend on it.
7840 * doc/.cvsignore: Ignore new info files.
7841 * doc/install.texi (@setfilename): Reflect new info filename.
7842
eaeb7de8
R
7843Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
7844
7845 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
7846 on an UNSPEC.
7847
0c7aeb88
NP
7848Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
7849
7850 PR objc/6834
7851 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
7852 c_common_get_alias_set.
aec2ac46 7853 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
0c7aeb88 7854
2a496e8b
JDA
78552002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
7856
7857 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
7858 functions.
7859 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
7860 * avr/avr.c (avr_output_function_epilogue): Use above to determine
7861 function size.
7862 * pa/pa.c (pa_output_function_prologue): Likewise.
7863
2ff581c3
DM
78642002-06-05 David S. Miller <davem@redhat.com>
7865
7866 * integrate.c (subst_constants): Handle 'B' RTL format.
7867
b2e2d0cc
EC
78682002-06-05 Eric Christopher <echristo@redhat.com>
7869
7870 * varasm.c (make_decl_rtl): Fix comment for removed
7871 halfpic.c.
7872
0f81faf6
EC
78732002-06-05 Eric Christopher <echristo@redhat.com>
7874
7875 * Makefile.in: Remove missed halfpic bits.
7876
33005162
EC
78772002-06-05 Eric Christopher <echristo@redhat.com>
7878
7879 * toplev.c: Remove half-pic.
7880 * config/mips/mips.c: Ditto.
7881 * config/mips/mips.h: Ditto. Remove unused defines.
7882 * config/mips/openbsd.h: Update comment to reflect above.
7883 * config/mips/mips.md: Remove half-pic constraints.
7884 * halfpic.h: Delete.
7885 * halfpic.c: Ditto.
7886
80081028
JL
78872002-06-05 Jeffrey Law <law@redhat.com>
7888
5a9ee623
ZW
7889 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
7890 rejects (mem (lo_sum (reg) (unspec))), but will allow
7891 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
80081028 7892
cbc69f84
NB
78932002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
7894
7895 * cpphash.h (_cpp_create_definition): Update prototype.
7896 (_cpp_push_text_context, _cpp_create_trad_definition): New.
7897 ( cpp_lex_identifier_trad): New.
7898 (_cpp_set_trad_context): New.
7899 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
7900 * cpplib.c (SEEN_EOL): Update.
7901 (lex_macro_node): Update for -traditional.
7902 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
7903 * cppmacro.c (_cpp_create_definition): Split into
7904 create_iso_definition() and _cpp_create_trad_definition().
7905 (warn_of_redefinition): Update prototype; handle traditional
7906 macros.
7907 (_cpp_push_text_context): New.
7908 * cpptrad.c (skip_whitespace, push_replacement_text): New.
7909 (lex_identifier): Call ht_lookup with correct start.
7910 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
7911 _cpp_set_trad_context): New.
7912 (scan_out_logical_line): Update to handle changing contexts.
7913
dbf87f32
R
7914Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
7915
7916 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
7917 (shl*-*-elf*): Add.
7918 * config/sh/t-be (MULTILIB_ENDIAN): Set.
7919 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
7920 * t-sh (MULTILIB_ENDIAN): Set.
7921 (MULTILIB_OPTIONS): Use it.
7922 * t-sh64 (MULTILIB_OPTIONS): Likewise.
7923 (MULTILIB_DIRNAMES): Likewise.
7924
47b69537
GDR
79252002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
7926
7927 * toplev.h (report_error_function): Remove.
7928
7929 * diagnostic.h (location_t): New datatype.
7930 (text_info): Likewise.
7931 (diagnostic_info): Likewise.
7932 (output_prefix): New macro.
7933 (diagnostic_last_function_changed): Likewise.
7934 (diagnostic_set_last_function): Likewise.
7935 (diagnostic_last_module_changed): Likewise.
7936 (diagnostic_set_last_module): Likewise.
7937 (report_diagnostic): Now macro.
7938 (diagnostic_set_info): Declare.
7939
7940 * diagnostic.c (report_problematic_module): Rename to
33005162 7941 diagnostic_repor_current_module.
47b69537
GDR
7942 (set_diagnostic_context): Remove.
7943 (count_error): Rename to diagnostic_error_count.
7944 (error_function_changed): Remove.
7945 (record_last_error_function): Likewise.
7946 (error_module_changed): Likewise.
7947 (record_last_error_module): Likewise.
7948 (context_as_prefix): Rename to diagnostic_build_prefix.
7949 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
7950 (diagnostic_set_info): New function.
7951
7952 * objc/objc-act.c: #include diagnostic.h
7953 (error_with_ivar): Adjust call to count_error.
7954 (warn_with_method): Likewise.
7955 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
7956
540eaea8
BW
79572002-06-05 Bob Wilson <bob.wilson@acm.org>
7958
7959 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
7960 lang_hooks.types.make_type instead of make_node; set up
7961 __va_list_tag type decl.
7962 (xtensa_builtin_saveregs): Remove broken use of
7963 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
7964 for saved registers; add varargs alias set.
7965
f23a084d
NB
79662002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
7967
7968config:
7969 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
7970 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
7971 CPP_PREDEFINES and part of CPP_SPEC.
7972 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
7973 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
7974
3fe3a596
JH
7975Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
7976
7977 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
7978
1fd9ba59
AM
79792002-06-05 Alan Modra <amodra@bigpond.net.au>
7980
7981 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
7982
cea554e0
ZW
79832002-06-04 Zack Weinberg <zack@codesourcery.com>
7984
7985 * gengtype-yacc.y: Make sure all rules end with a semicolon.
7986
07232638
BW
79872002-06-04 Bob Wilson <bob.wilson@acm.org>
7988
7989 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
7990 typo in function prototype and include "ggc.h" header.
7991
c4b50f1a
RH
79922002-06-04 Richard Henderson <rth@redhat.com>
7993
7994 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
7995 (print_operand) ['U']: Likewise.
7996 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
7997 (alpha_expand_unaligned_store_words): Likewise.
7998 (alpha_expand_builtin_vector_binop): Fix typo.
7999 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
8000 umulh, and cix insns.
8001 (one_arg_builtins): Add cix builtins.
8002 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
8003 (alpha_expand_builtin): Fix typo in arity.
8004 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
8005 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
8006 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
8007 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
8008 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
8009 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
8010 builtin_ctlz, builtin_ctpop): New.
8011 * doc/extend.texi (Alpha Built-in Functions): Update.
8012
aaab35ae
GK
80132002-06-04 Geoffrey Keating <geoffk@redhat.com>
8014
afb0f770
GK
8015 * gengtype.c (write_gc_root): Don't unnecessarily prevent
8016 global variable-length arrays being roots.
8017
aaab35ae
GK
8018 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
8019 * configure.in (config_gtfiles): New variable.
8020 (all_gtfiles): Initialise from config_gtfiles.
8021 * configure: Regenerate.
8022
1ba7b414
NB
80232002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
8024
8025config/i386:
8026 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
8027 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
8028 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
8029 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
8030 win32.h (CPP_SPEC): Remove cpp_cpu.
8031 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
8032 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
8033
135ca7b2
JJ
80342002-06-04 Janis Johnson <janis187@us.ibm.com>
8035
8036 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
8037
85d69216 80382002-06-04 Jeff Law <law@redhat.com.
5a9ee623
ZW
8039 David Edelsohn <edelsohn@gnu.org>
8040 Michael Matz <matz@kde.org>
85d69216
JL
8041
8042 * sched-int.h (struct deps): New field libcall_block_tail_insn.
8043 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
8044 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
8045 is set, then mark the current insn as being part of a libcall
8046 scheduling group.
8047 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
8048
8049 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
8050 insns against the issue rate.
8051
63f4a88e
JH
8052Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
8053
8054 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
8055 * final.c (final_scan_insn): Likewise.
8056 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
8057 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
8058 * haifa-sched.c (unlink_other_notes): Likeewise.
8059 (reemit_notes): Likewise.
8060 * print-rtl.c (print_rtx): Likewise.
8061 * sched-deps (sched-analyze): Likewise.
8062 * rtl.c (note_insn_name): Likewise.
8063 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
8064 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
8065 (RANGE_*): Kill.
8066
a5d1f75b
JT
80672002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
8068
8069 * varasm.c (mark_constants): Handle RTX format 'B'.
8070
82eda77e
NB
80712002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
8072
8073 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
8074 (struct cpp_context): Add traditional fields.
8075 * cppmacro.c (paste_all_tokens, push_ptoken_context,
8076 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
8077 * cpptrad.c (skip_comment, lex_identifier,
8078 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
8079
589005ff
KH
80802002-06-04 Kazu Hirata <kazu@cs.umass.edu>
8081
8082 * gbl-ctors.h: Fix formatting.
8083 * gcc.c: Likewise.
8084 * gccspec.c: Likewise.
8085 * gcov.c: Likewise.
8086 * gcov-io.h: Likewise.
8087 * gcse.c: Likewise.
8088 * ggc-common.c: Likewise.
8089 * ggc.h: Likewise.
8090 * ggc-page.c: Likewise.
8091 * ggc-simple.c: Likewise.
8092 * global.c: Likewise.
8093 * graph.h: Likewise.
8094 * gthr-dce.h: Likewise.
8095 * gthr.h: Likewise.
8096 * gthr-posix.h: Likewise.
8097 * gthr-rtems.h: Likewise.
8098 * gthr-solaris.h: Likewise.
8099 * gthr-win32.h: Likewise.
8100
e2500fed
GK
81012002-06-03 Geoffrey Keating <geoffk@redhat.com>
8102
8103 Merge from pch-branch:
33005162 8104
e2500fed
GK
8105 * gengtype.h (UNION_OR_STRUCT_P): New macro.
8106 * gengtype.c (write_gc_structure_fields): Use it.
8107 (write_gc_root): Use it here too.
8108
8109 * gengtype.c (write_gc_structure_fields): Assume that lengths
8110 of typenames fit into an 'int'; don't pass a size_t to "%d" in
8111 printf.
8112 (write_gc_marker_routine_for_structure): Likewise.
8113 (write_gc_types): Likewise.
8114 (write_gc_root): Likewise.
8115
8116 * varray.h (VARRAY_CLEAR): New.
8117 (varray_clear): Prototype.
8118 * varray.c (varray_clear): New.
8119 * cselib.c (reg_values_old): New.
8120 (used_regs_old): New.
8121 (cselib_init): Use cached varrays if available to avoid
8122 generating large amounts of garbage.
8123 (cselib_finish): Don't throw away old varrays.
8124
8125 * final.c (insn_addresses_): Move out of ifdef.
8126
8127 * varray.c (uses_ggc): Make more varray kinds GCable.
8128 * varray.h (union varray_data_tag): Let gengtype see
8129 fields 'generic' and 'te'.
8130 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
8131 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
8132 (reg_to_stack): Don't call VARRAY_FREE.
8133 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
8134 (insn_addresses_): Use gengtype to mark.
8135 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
8136 pointers; handle generic pointers in unused union fields.
8137 (get_output_file_with_visibility): Include cselib.h,
8138 insn-addr.h in gtype-desc.c.
8139 * function.c (prologue): Use gengtype to mark.
8140 (epilogue): Likewise.
8141 (sibcall_epilogue): Likewise.
8142 * dependence.c: Include gt-dependence.h, ggc.h.
8143 (struct def_use): Use gengtype to mark.
8144 (struct loop): Likewise.
8145 (struct induction): Likewise.
8146 (struct dependence): Likewise.
8147 (def_use_chain): Likewise.
8148 (dep_chain): Likewise.
8149 (loop_chain): Likewise.
8150 (induction_chain): Likewise.
8151 (init_dependence_analysis): Don't free anything, just clear pointers.
8152 (build_def_use): Use GGC to allocate def_use.
8153 (add_loop): Use GGC to allocate loop.
8154 (find_induction_variable): Use GGC to allocate induction.
8155 (check_node_dependence): Use GGC to allocate induction, dependence.
8156 (dump_node_dependence): Don't free varrays.
8157 (end_dependence_analysis): Likewise.
8158 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
8159 (struct elt_loc_list): Likewise.
8160 (struct elt_list): Likewise.
8161 * cselib.c: Don't include obstack.h.
8162 (hash_table): Use gengtype to mark.
8163 (reg_values): Use gengtype to mark.
8164 (used_regs): Use gengtype to mark.
8165 (cselib_obstack): Delete.
8166 (cselib_startobj): Delete.
8167 (empty_vals): Mark as deletable.
8168 (empty_elt_lists): Mark as deletable.
8169 (empty_elt_loc_lists): Mark as deletable.
8170 (new_elt_list): Use GGC to allocate struct elt_list.
8171 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
8172 (clear_table): Don't delete obstack; don't unnecessarily clear
8173 deletable variables.
8174 (new_cselib_val): Use GGC to allocate struct cselib_val.
8175 (cselib_init): Don't set up obstacks. Use GGC to allocate
8176 hash table.
8177 (cselib_finish): Just clear variables, don't free anything.
8178 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
8179 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
8180 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
8181 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
8182 (gt-reg-stack.h): New rule.
8183 (gt-dependence.h): New rule.
8184 (gtype-desc.o): Add cselib.h, insn-addr.h.
8185
8186 * varray.c: Use only necessary headers.
8187 (element_size): New.
8188 (uses_ggc): New.
8189 (varray_init): Take type, not size. Use GGC if appropriate.
8190 (varray_grow): Update for change to struct varray_head_tag.
8191 Use GGC if appropriate.
8192 * varray.h (struct const_equiv_data): Use gengtype.
8193 (enum varray_data_enum): New.
8194 (union varray_data_tag): Use gengtype.
8195 (struct varray_head_tag): Use gengtype. Replace size field with
8196 enum varray_data_enum.
8197 (varray_init): Update prototype.
8198 (VARRAY_SCHED_INIT): Delete.
8199 (VARRAY_*_INIT): Update for change to varray_init.
8200 (VARRAY_SCHED): Delete.
8201 (VARRAY_PUSH_SCHED): Delete.
8202 (VARRAY_TOP_SCHED): Delete.
8203 * tree.h: Update for change to length specifier.
8204 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
8205 (clone_body): Likewise.
8206 * ssa.h (ssa_definition): Use gengtype to mark.
8207 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
8208 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
8209 * rtl.h (struct rtvec_def): Update for change to length specifier.
8210 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
8211 (struct initial_value_struct): Update for change to length specifier.
8212 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
8213 (ggc_add_tree_varray_root): Delete prototype.
8214 (ggc_mark_rtx_varray): Delete prototype.
8215 (ggc_mark_tree_varray): Delete prototype.
8216 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
8217 (ggc_add_tree_varray_root): Delete.
8218 (ggc_mark_rtx_varray): Delete.
8219 (ggc_mark_tree_varray): Delete.
8220 (ggc_mark_rtx_varray_ptr): Delete.
8221 (ggc_mark_tree_varray_ptr): Delete.
8222 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
8223 (create_varray): Delete prototype.
8224 * gengtype.c (varrays): Delete.
8225 (create_varray): Delete.
8226 (adjust_field_type): Detect array of string pointers.
8227 (process_gc_options): Remove code to handle varray_type option.
8228 (set_gc_used_type): Remove TYPE_VARRAY case.
8229 (output_escaped_param): New.
8230 (write_gc_structure_fields): Use output_escaped_param on all
8231 parameters. Handle 'skip' with 'use_param' option. Handle
8232 arrays of strings. Remove TYPE_VARRAY handling.
8233 (write_gc_roots): Use boolean to detect 'length' option.
8234 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
8235 (struct_fields): Call adjust_field_type on array fields.
8236 (type): Remove VARRAY_TYPE case.
8237 (type_option): Likewise.
8238 * gengtype-lex.l: Don't consider varray_type a keyword.
8239 * function.h: Update for change to length specifier.
8240 (free_eh_status): Delete prototype.
8241 * function.c (free_after_compilation): Don't call free_eh_status.
8242 (reorder_blocks): Don't use VARRAY_FREE.
8243 * except.c (struct eh_status): Update for change to length specifier.
8244 remove varray_type specifier.
8245 (free_eh_status): Delete.
8246 * dwarf2out.c: Include gt-dwarf2out.h.
8247 (used_rtx_varray): Use gengtype to mark, move
8248 outside ifdefs.
8249 (incomplete_types): Likewise.
8250 (decl_scope_table): Likewise.
33005162 8251 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
e2500fed
GK
8252 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
8253 * c-tree.h (struct lang_type): Update for change to length specifier.
8254 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
8255 * c-objc-common.c: Include gt-c-objc-common.h.
8256 (deferred_fns): Mark for gengtype.
8257 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
8258 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
8259 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
8260 (gtype-desc.o): Update dependencies.
8261 (dwarf2out.o): Add gt-dwarf2out.h.
8262 (varray.o): Update dependencies.
8263 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
8264 (gt-c-objc-common.h): New rule.
8265 (gt-dwarf2out.h): New rule.
8266 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
8267
8268 * doc/gty.texi (GTY Options): Correct spelling.
8269 (GGC Roots): Likewise.
8270 * Makefile.in (TEXI_CPP_FILES): New.
8271 (TEXI_GCC_FILES): New.
8272 (TEXI_GCCINT_FILES): New.
8273 (TEXI_CPPINT_FILES): New.
8274 ($(docdir)/cpp.info): Use new macros.
8275 ($(docdir)/gcc.info): Likewise.
8276 ($(docdir)/gccint.info): Likewise.
8277 ($(docdir)/cppinternals.info): Likewise.
8278 (cpp.dvi): Likewise.
8279 (gcc.dvi): Likewise.
8280 (gccint.dvi): Likewise.
8281 (cppinternals.dvi): Likewise.
8282
8283 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
8284 * doc/gccint.texi (Top): Include gty.texi.
8285 * doc/gty.texi: New file.
8286
8287 * bitmap.c: Include ggc.h, gt-bitmap.h.
8288 (bitmap_ggc_free): New.
8289 (bitmap_elem_to_freelist): New.
8290 (bitmap_element_free): Use bitmap_elem_to_freelist.
8291 (bitmap_element_allocate): Allow use of GGC.
8292 (bitmap_clear): Use bitmap_elem_to_freelist.
8293 (bitmap_copy): Update for change to bitmap_element_allocate.
8294 (bitmap_set_bit): Likewise.
8295 (bitmap_operation): Update for changes elsewhere.
8296 (bitmap_initialize): Allow to create bitmaps that will use GGC.
8297 * bitmap.h (struct bitmap_element_def): Use gengtype.
8298 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
8299 (bitmap_initialize): Add extra parameter.
8300 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
8301 (BITMAP_ALLOCA): Delete.
8302 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
8303 (BITMAP_GGC_ALLOC): New.
8304 * Makefile.in (gtype-desc.o): Add bitmap.h.
8305 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
8306 (GTFILES): Add bitmap.c.
8307 (gt-bitmap.h): New rule.
8308 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
8309 * basic-block.h: Update for changes to bitmap_initialize.
8310 * except.c (exception_handler_label_map): Move into...
8311 (struct eh_status): Here.
8312 (struct eh_region): Make 'aka' GCable.
8313 (free_eh_status): Don't need to specially handle
8314 exception_handler_label_map.
8315 (add_ehl_entry): Update for changes to exception_handler_label_map.
8316 (find_exception_handler_labels): Likewise.
8317 (remove_exception_handler_label): Likewise.
8318 (maybe_remove_eh_handler): Likewise.
8319 (for_each_eh_label): Likewise.
8320 (remove_eh_handler): Allocate 'aka' using GGC.
8321 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
8322 to list of includes.
8323
8324 * gengtype.c (write_gc_marker_routine_for_structure): Name
33005162 8325 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
e2500fed
GK
8326 (write_gc_types): Arrange for the tests with NULL to be inlined.
8327 (write_gc_roots): Update uses of procedure pointers.
8328 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
8329
8330 * Makefile.in (explow.o): Add dependency on gt-explow.h.
8331 (sdbout.o): Add dependency on gt-sdbout.h.
8332
8333 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
8334 (mem_attrs_htab): Likewise.
8335 (init_emit_once): Don't call ggc_add_deletable_htab.
8336 * fold-const.c (size_htab): Use gengtype to clear unused entries.
8337 (size_int_type_wide): Don't call ggc_add_deletable_htab.
8338 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
8339 parameters, use them, change callers.
8340 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
8341 (write_gc_roots): Handle 'if_marked' option.
8342 (main): Don't need to call set_gc_used_type any more.
8343 * ggc.h (ggc_htab_marked_p): Delete.
8344 (ggc_htab_mark): Delete.
8345 (struct ggc_cache_tab): New.
8346 (gt_ggc_cache_rtab): New declaration.
8347 * ggc-common.c (struct d_htab_root): Delete.
8348 (d_htab_roots): Delete.
8349 (ggc_add_deletable_htab): Delete.
8350 (ggc_htab_delete): Handle new htab-deleting mechanism.
8351 (ggc_mark_roots): Use new htab-deleting mechanism.
8352 * tree.c (type_hash_table): Use gengtype to clear unused entries.
8353 Make static.
8354 (init_obstacks): Don't call ggc_add_deletable_htab.
8355
8356 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
8357 (struct hashed_entry): Likewise.
8358 (nst_method_hash_list): Likewise.
8359 (cls_method_hash_list): Likewise.
8360 (HASH_ALLOC_LIST_SIZE): Delete.
8361 (ATTR_ALLOC_LIST_SIZE): Delete.
8362 * objc/objc-act.c (hash_init): Use ggc to allocate
8363 nst_method_hash_list, cls_method_hash_list.
8364 (hash_enter): Use ggc to allocate; allocate one entry at a time.
8365 (hash_add_attr): Likewise.
8366 (ggc_mark_hash_table): Delete.
8367 (objc_act_parse_init): Delete.
8368 (objc_init): Delete reference to objc_act_parse_init.
8369 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
8370 obstack.h. Replace references to 'struct hash_table' with htab_t.
8371 (struct symbol_hash_entry): Replace hash header with key field.
8372 (struct file_hash_entry): Replace hash header with key field.
8373 (struct demangled_hash_entry): Replace hash header with key field.
8374 (hash_string_eq): New.
8375 (hash_string_hash): New.
8376 (symbol_hash_newfunc): Delete.
8377 (symbol_hash_lookup): Modify to use htab_t.
8378 (file_hash_newfunc): Delete.
8379 (file_hash_lookup): Modify to use htab_t.
8380 (demangled_hash_newfunc): Delete.
8381 (demangled_hash_lookup): Modify to use htab_t.
8382 (tlink_init): Modify to use htab_t.
8383 * hash.h: Delete.
8384 * hash.c: Delete.
8385 * ggc.h: Delete forward structure declarations.
8386 Delete prototypes for deleted functions.
8387 * ggc-common.c: Don't include hash.h.
8388 (ggc_add_tree_hash_table_root): Delete.
8389 (ggc_mark_tree_hash_table_entry): Delete.
8390 (ggc_mark_tree_hash_table): Delete.
8391 (ggc_mark_tree_hash_table_ptr): Delete.
8392 * gengtype.c (write_gc_structure_fields): Allow param_is option.
8393 (write_gc_marker_routine_for_structure): Use visibility of
8394 the parameter if there is one.
8395 * function.c: Replace hash.h with hashtab.h. Replace references
8396 to 'struct hash_table *' with htab_t.
8397 (struct insns_for_mem_entry): Include a plain key.
8398 (fixup_var_refs_insns_with_hash): Update to use htab_t.
8399 (insns_for_mem_newfunc): Delete.
8400 (insns_for_mem_hash): Update to use htab_t.
8401 (insns_for_mem_comp): Likewise.
8402 (insns_for_mem_walk): Likewise.
8403 * c-lang.c: Include ggc.h.
8404 * Makefile.in (OBJS): Remove hash.o.
8405 (c-lang.o): Add GGC_H.
8406 (COLLECT2_OBJS): Remove hash.o.
8407 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
8408 (ggc-common.o): Remove hash.h.
8409 (function.o): Remove hash.h, add HASHTAB_H.
8410 (genautomata.o): Remove hash.h, add HASHTAB_H.
8411
8412 * varasm.c (mark_const_str_htab_1): Delete.
8413 (mark_const_str_htab): Delete.
8414 (const_str_htab_del): Delete.
8415 (const_str_htab): Use gengtype to mark.
8416 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
8417 allocate them.
8418 * tree.c (mark_tree_hashtable_entry): Delete.
8419 (mark_tree_hashtable): Delete.
8420 * tree.h (mark_tree_hashtable): Delete prototype.
8421 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
8422 (ggc_mark): Likewise.
8423 (ggc_calloc): New.
8424 (htab_create_ggc): New.
8425 * ggc-common.c (ggc_calloc): New.
8426 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
8427 (struct type): Add param_struct structure.
8428 * gengtype.c (param_structs): New.
8429 (adjust_field_type): Handle param_is option.
8430 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
8431 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
8432 (write_gc_structure_fields): Add new PARAM parameter. Update
8433 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
8434 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
8435 Use it to generate function name. Update callers.
8436 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
8437 Process them.
8438 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
8439 option.
8440 (main): Define PTR as pointer-to-scalar. Don't specially
8441 mark deferred_string or ehl_map_entry.
8442 * gengtype-yacc.y (PARAM_IS): Add new token.
8443 (externstatic): Use adjust_field_type.
8444 (type_option): Add PARAM_IS.
8445 * gengtype-lex.l: Add rule for typedef of function pointers.
8446 Add rule for PARAM_IS.
8447 (IWORD): Add size_t.
8448 * except.c (exception_handler_label_map): Use gengtype to mark.
8449 (type_to_runtime_map): Likewise.
8450 (mark_ehl_map_entry): Delete.
8451 (mark_ehl_map): Delete.
8452 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
8453 (t2r_mark_1): Delete.
8454 (t2r_mark): Delete.
8455 * Makefile.in (gtype-desc.o): Correct dependencies.
8456 (GTFILES): Add hashtab.h.
8457 (genautomata.o): Actually uses hashtab.h.
8458
8459 * Makefile.in (stringpool.o): Add $(GGC_H).
8460 (dwarf2asm.o): Likewise.
8461 (GTFILES): Add hashtable.h.
8462 * c-common.h (struct c_common_identifier): Use gengtype.
8463 * c-decl.h (c_mark_tree): Delete.
8464 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
8465 * c-tree.h (struct lang_identifier): Use gengtype.
8466 (union lang_tree_node): New.
8467 (c_mark_tree): Delete prototype.
33005162 8468 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
e2500fed
GK
8469 dwarf2_debug_hooks.
8470 * gengtype-lex.l (IWORD): Allow 'bool'.
8471 (ptr_alias): Match.
8472 * gengtype-yacc.y (ALIAS): New token.
8473 (type_option): New rule.
8474 (option): Use type_option.
8475 * gengtype.c (process_gc_options): New.
8476 (set_gc_used_type): Use it.
8477 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
8478 Add new variable 't' to hold the type of the field being processed.
8479 Add more error checking. Use UNION_P when looking at 'desc' option.
8480 Handle language-specific structures containing other
8481 language-specific structures.
8482 (write_gc_types): Handle 'ptr_alias' option.
8483 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
8484 * ggc-common.c (ggc_pending_trees): Delete.
8485 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
8486 (ggc_mark_trees): Delete.
8487 (gt_ggc_m_tree_node): Delete.
8488 * ggc.h (ggc_pending_trees): Delete.
8489 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
8490 * hashtable.h (ht_identifier): Use gengtype.
8491 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
8492 * langhooks.h (struct lang_hooks): Delete mark_tree.
8493 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
8494 anyway.
8495 * system.h: Poison LANG_HOOKS_MARK_TREE.
8496 * tree.c (tree_node_structure): New.
8497 * tree.h (struct tree_common): Use gengtype.
8498 (struct tree_int_cst): Likewise.
8499 (struct tree_real_cst): Likewise.
8500 (struct tree_string): Likewise.
8501 (struct tree_complex): Likewise.
8502 (struct tree_vector): Likewise.
8503 (struct tree_identifier): Likewise.
8504 (struct tree_list): Likewise.
8505 (struct tree_vec): Likewise.
8506 (struct tree_exp): Likewise.
8507 (struct tree_block): Likewise.
8508 (struct tree_type): Likewise.
8509 (struct tree_decl): Likewise.
8510 (enum tree_structure_enum): New.
8511 (union tree_node): Use gengtype, with an alias.
8512 (tree_node_structure): Prototype.
8513 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
8514
8515 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
8516 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
8517 to LANG_HOOKS_FUNCTION_FINAL.
8518 * Makefile.in (GTFILES): Add bitmap.h.
8519 * except.c (struct eh_region): Mark field 'aka' to be skipped.
8520
8521 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
8522 (alpha_init_machine_status): Give proper type.
8523 * Makefile.in (c-lang.o): Depend on gtype-c.h.
8524 (optabs.o): Depend on gt-optabs.h.
8525 (GTFILES): Add optabs.o.
8526 (gt-optabs.h): Add rule.
8527 * optabs.c: Include gt-optabs.h.
8528
8529 * gengtype.c (set_gc_used_type): Correct some errors in last change.
8530 (write_gc_structure_fields): If a field which should be NULL is
8531 not, abort.
8532 * c-pragma.c: Move struct align_stack and variable alignment_stack
8533 out from the ifdef.
8534
8535 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
8536 * config/xtensa/xtensa.c: Include gt-cris.h.
8537 (struct machine_function): Use gengtype to mark.
8538 * config/mmix/mmix.h (struct machine_function): Use gengtype
8539 to mark.
8540 * config/cris/t-cris: Add dependencies for gt-cris.h.
8541 * config/cris/cris.c: Include gt-cris.h.
8542 (struct machine_function): Use gengtype to mark.
8543 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
8544 to mark.
8545 * doc/tm.texi (Per-Function Data): Delete references to
8546 mark_machine_status.
8547 * config/ia64/ia64.c (ia64_override_options): Don't set
8548 mark_machine_status.
8549 * config/i386/i386.c (override_options): Likewise.
8550 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
8551 * config/arm/arm.c (arm_init_expanders): Likewise.
8552 * config/alpha/alpha.c (override_options): Likewise.
33005162 8553 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
e2500fed
GK
8554 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
8555 (write_gc_structure_fields): Don't handle 'really' option.
8556 Handle 'maybe_null' option.
8557 (write_gc_types): Handle 'maybe_null' option.
8558 * function.h (struct function): Don't use "really".
8559 (mark_machine_status): Delete declaration.
8560 (mark_lang_status): Delete declaration.
8561 (gt_ggc_mr_machine_function): Delete prototype.
8562 (gt_ggc_mr_language_function): Delete prototype.
8563 * function.c (mark_machine_status): Delete.
8564 (mark_lang_status): Delete.
8565 (gt_ggc_mr_machine_function): Delete.
8566 (gt_ggc_mr_language_function): Delete.
8567 * c-tree.h (mark_c_function_context): Delete prototype.
8568 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
8569 * c-decl.c (struct language_function): Rename from struct
8570 c_language_function. Update uses. Use gengtype to mark.
8571 (mark_c_function_context): Delete.
8572 * c-common.h (struct c_language_function): Rename from struct
8573 language_function.
8574 (mark_stmt_tree): Delete prototype.
8575 (c_mark_lang_decl): Delete prototype.
8576 (mark_c_language_function): Delete prototype.
8577 * c-common.c (mark_stmt_tree): Delete.
8578 (c_mark_lang_decl): Delete.
8579 (mark_c_language_function): Delete.
8580
8581 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
8582 (lang_bitmap): New typedef. Use where appropriate.
8583 (struct type): Add gc_used field, lang_struct field.
8584 (UNION_P): New macro.
8585 (new_structure): New prototype.
8586 (find_structure): Remove 'pos' parameter. Change all callers.
8587 * gengtype-lex.l: Update for changes to find_structure.
8588 * gengtype-yacc.y (typedef_struct): Use new_structure.
8589 (yacc_ids): Suppress warning.
8590 (type): Use new_structure.
8591 * gengtype.c (string_type): Update for changes to struct type.
8592 (find_structure): Just find a structure, don't worry about
8593 creating one.
8594 (new_structure): New.
8595 (note_yacc_type): Use new_structure.
8596 (set_gc_used_type): New.
8597 (set_gc_used): New.
8598 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
8599 (write_gc_types): Handle TYPE_LANG_STRUCT.
8600 (write_gc_marker_routine_for_structure): New.
8601 (main): Call set_gc_used. Add some calls to set_gc_used_type
8602 for places where GCC doesn't use gengtype properly yet.
8603 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
8604 (gt_ggc_m_tree_node): Likewise.
8605
8606 * varasm.c (copy_constant): Call expand_constant if we hit
8607 something we can't recognise.
8608
8609 * ggc-common.c (ggc_mark_rtvec_children): Delete.
8610 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
8611 (lang_mark_false_label_stack): Delete.
8612 * rtl.h (struct rtvec_def): Use gengtype to mark.
8613 * ggc.h (ggc_mark_rtvec): Delete.
8614 (gt_ggc_m_rtvec_def): Delete.
8615 (ggc_mark_nonnull_tree): Delete.
8616 (ggc_mark_rtvec_children): Delete prototype.
8617 (lang_mark_false_label_stack): Delete declaration.
8618
8619 * gengtype.h (note_yacc_type): Add prototype.
8620 * gengtype.c (note_yacc_type): New function.
8621 * gengtype-lex.l: Add lexer support for yacc files.
8622 * gengtype-yacc.y (start): Extract union from yacc files.
8623 (yacc_union): New rule.
8624 (yacc_typematch): New rule.
8625 (yacc_ids): New rule.
8626 (enum_items): Tweak for efficiency.
8627 (optionseq): Likewise.
8628
8629 * c-common.h (struct language_function): Use gengtype.
8630 (struct c_lang_decl): Likewise.
8631 * c-tree.h (struct lang_decl): Likewise.
8632 (struct lang_type): Likewise.
8633 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
8634 tree language substructures.
8635
8636 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
8637 ggc_mark_tree.
8638 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
8639
8640 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
8641
8642 * stmt.c (struct nesting): Add discriminator. Use gengtype to
8643 mark. Remove 'data.block.cleanup_ptr' field.
8644 (struct stmt_status): Use usual technique to mark struct nesting.
8645 (gt_ggc_mr_nesting_cond): Delete.
8646 (gt_ggc_mr_nesting_loop): Delete.
8647 (gt_ggc_mr_nesting_block): Delete.
8648 (gt_ggc_mr_nesting_case_stmt): Delete.
8649 (expand_start_cond): Set discriminator.
8650 (expand_start_loop): Likewise.
8651 (expand_start_null_loop): Likewise.
8652 (expand_start_bindings_and_block): Set discriminator. Don't set
8653 deleted fields.
8654 (expand_decl_cleanup): Replace 'cleanup_ptr' with
8655 &thisblock->data.block.cleanups.
8656 (expand_start_case): Set discriminator.
8657 (expand_start_case_dummy): Set discriminator.
8658
8659 * ggc-callbacks.c: Remove.
8660
8661 * gengtype.h (struct type): Add 'u.s.bitmap' field.
8662 (find_structure): Add 'pos' parameter.
8663 * gengtype-lex.l: Update callers to find_structure.
8664 * gengtype-yacc.y: Likewise.
8665 * gengtype.c (find_structure): Allow for structures to be defined
8666 in multiple language backends.
8667 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
8668 (counter): Rename to gc_counter.
8669 (write_gc_structure_fields): Fail when writing out fields for
8670 an incomplete structure. Ignore arrays of scalars. Handle
8671 'tree_vec' special.
8672 (write_gc_types): Reset counter for each procedure written.
8673
8674 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
8675 (free_case_nodes): Delete.
8676 (expand_end_case_type): Delete call to free_case_nodes.
8677
8678 * Makefile.in (cselib.o): Include gt-<filename>.h.
8679 (gcse.o): Likewise.
8680 (profile.o): Likewise.
8681 (alias.o): Likewise.
8682 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
8683 alphabetize backend files.
8684 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
8685 * alias.c: Use gengtype for roots.
8686 * c-common.h (struct stmt_tree_s): Use gengtype.
8687 * c-decl.c: Use gengtype for roots.
8688 * cselib.c: Use gengtype for roots.
8689 * expr.c: Use gengtype for roots.
8690 * fold-const.c: Use gengtype for roots.
8691 * gcse.c: Use gengtype for roots.
8692 * gengtype-lex.l: Handle typedefs of function types.
8693 Allow for empty array bounds.
8694 Allow processing to stop on initialisers.
8695 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
8696 (semiequal): New rule.
8697 * gengtype.c (create_file): Tidy output files.
8698 (get_output_file_with_visibility): Fix paren warning. Fix bug
8699 involving multiple input files mapping to one output file.
8700 (write_gc_structure_fields): Skip arrays of scalars.
8701 (write_gc_types): Tidy output files.
8702 (write_gc_root): New function.
8703 (write_gc_roots): Fix bugs, add support for roots that are
8704 structures.
8705 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
8706 (ggc_mark_tree_ptr): Delete.
8707 (ggc_add_rtx_root): Delete.
8708 (ggc_add_tree_root): Delete.
8709 (ggc_del_root): Delete.
8710 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
8711 allocate struct initial_value_struct.
8712 * profile.c: Use gengtype for roots.
8713 * sdbout.c: Use gengtype for roots.
8714 * varasm.c (mark_weak_decls): Delete unused prototype.
8715 (mark_const_hash_entry): Delete unused function.
8716 * config/darwin-protos.h: Use gengtype for roots.
8717 (machopic_add_gc_roots): Delete.
8718 * config/arm/arm.c: Use gengtype for roots.
8719 * config/arm/arm.h: Use gengtype for roots.
8720 * config/c4x/c4x-protos.h: Use gengtype for roots.
8721 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
8722 * config/d30v/d30v-protos.h: Use gengtype for roots.
8723 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
8724 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
8725 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
8726 * config/ia64/ia64-protos.h: Use gengtype for roots.
8727 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
8728 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
8729 * config/m68hc11/m68hc11.c (z_reg): Make global.
8730 (z_reg_qi): Make global.
8731 (m68hc11_add_gc_roots): Delete.
8732 * config/mcore/mcore-protos.h: Use gengtype for roots.
8733 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
8734 * config/mips/mips.c (mips_add_gc_roots): Delete.
8735 * config/mips/mips.h: Use gengtype for roots.
8736 * config/mmix/mmix.c (override_options): Use gengtype for roots.
8737 * config/mmix/mmix.h: Use gengtype for roots.
8738 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
8739 * config/mn10200/mn10200.h: Use gengtype for roots.
8740 * config/pa/pa.c: Use gengtype for roots, marking.
8741 (struct deferred_plabel): Use GGC, gengtype.
8742 (pa_add_gc_roots): Delete.
8743 (mark_deferred_plabels): Delete.
8744 * config/pj/pj-protos.h: Use gengtype for roots.
8745 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
8746 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
8747 machopic_add_gc_roots.
8748 * config/rs6000/rs6000.h: Use gengtype for roots.
8749 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
8750 (gt-darwin.h): Add rule.
8751 * config/sh/sh.c: Use gengtype for roots.
8752 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
8753 (gt-sh.h): Add rule.
8754 * config/sparc/sparc.c: Use gengtype for roots.
8755 (sparc_add_gc_roots): Delete.
8756 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
8757 (mark_ultrasparc_pipeline_state): Delete.
8758 * config/sparc/sparc.h: Use gengtype for roots.
8759
8760 * Makefile.in (c-parse.o): Update dependencies.
8761 (c-common.o): Likewise.
8762 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
8763 Add dependencies for the files they generate.
8764 * c-common.c: Replace ggc_add_* uses with GTY annotations.
8765 * c-common.h: Likewise.
8766 * c-decl.c: Likewise.
8767 (gt_ggc_mp_binding_level): Delete.
8768 * c-lang.c: Include gtype-c.h.
8769 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
8770 gt-c-parse.h.
8771 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
8772 (gt_ggc_mp_align_stack): Delete.
8773 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
8774 * function.c: Replace ggc_add_* uses with GTY annotations.
8775 (gt_ggc_mp_function): Delete.
8776 * function.h: Replace ggc_add_* uses with GTY annotations.
8777 * gengtype.c (lang_names): New.
8778 (NUM_BASE_FILES): New.
8779 (open_base_files): Create language base files.
8780 (startswith): New.
8781 (get_file_basename): New.
8782 (get_base_file_bitmap): New.
8783 (get_output_file_with_visibility): Rename from get_output_file.
8784 Add more mappings for various C/Objc filenames.
8785 (finish_root_table): New.
8786 (write_gc_roots): Handle dependencies and scoping properly.
8787 * gengtype.h: Add prototypes for new functions.
8788 * ggc-common.c (struct deletable_root): Delete.
8789 (deletables): Delete.
8790 (ggc_add_deletable_root): Delete.
8791 (ggc_mark_roots): No need to deal with deleted functionality.
8792 * ggc.h (ggc_add_deletable_root): Delete prototype.
8793 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
8794 (gtype-objc.h): Add rule to create.
8795 * objc/config-lang.in (gtfiles): New.
8796 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
8797 ggc_add_* with GTY markers. Include gtype-objc.h.
8798 (ggc_mark_imp_list): Delete.
8799 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
8800 * objc/objc-lang.c: Random Whitespace Change.
8801
8802 * except.h (exception_handler_labels): Delete.
8803 (get_exception_handler_labels): New.
8804 * except.c (exception_handler_labels): Delete.
8805 (struct eh_status): Add exception_handler_labels field.
8806 (doing_eh): Don't add exception_handler_labels as root.
8807 (free_eh_status): Don't need to free exception_handler_labels.
8808 (get_exception_handler_labels): New.
8809 (find_exception_handler_labels): Update for move of
8810 exception_handler_labels.
8811 (remove_exception_handler_label): Likewise.
8812 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
8813 * jump.c (rebuild_jump_labels): Likewise.
8814 * loop.c (find_and_verify_loops): Likewise.
8815 * sched-rgn.c (is_cfg_nonregular): Likewise.
8816
8817 * gengtype.c (write_gc_structure_fields): Handle variable-length
8818 TYPE_ARRAYs.
8819
8820 * varasm.c (struct weak_syms): Use GGC, gengtype.
8821 (mark_weak_decls): Delete.
8822 (weak_decls): Likewise.
8823 (add_weak): Likewise.
8824 (remove_from_pending_weak_list): Likewise.
8825 (init_varasm_once): Likewise.
8826
8827 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
8828 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
8829 stor-layout.c, regclass.c, and lists.c.
8830 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
8831 gt-regclass.h and gt-lists.h on s-gtype.
8832 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
8833 * except.c: Use gengtype for roots.
8834 * explow.c: Use gengtype for roots. Include gt-explow.h.
8835 * expr.h (init_stor_layout_once): Delete prototype.
8836 * function.c: Use gengtype for roots.
8837 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
8838 * gengtype-yacc.y (start): Can also be an externstatic.
8839 (externstatic): New production.
8840 (struct_fields): Correct array bounds inversion for 2-d arrays.
8841 * gengtype.c (variables): New variable.
8842 (note_variable): New function.
8843 (get_output_file): Include libfuncs.h into gtype-desc.c.
8844 (get_output_file_name): New function.
8845 (write_gc_structure_fields): Suppress warnings.
8846 (write_gc_types): Make static.
8847 (put_mangled_filename): New function.
8848 (write_gc_roots): New function.
8849 (main): Call write_gc_roots.
8850 * gengtype.h (note_variable): Prototype.
8851 (get_output_file_name): Prototype.
8852 (write_gc_types): Delete prototype.
8853 * ggc.h: Clean up unnecessary structure predefinitions.
8854 (struct ggc_root_tab): Define.
8855 (gt_ggc_m_rtx_def): Make function, not macro.
8856 (gt_ggc_m_tree_node): Likewise.
8857 * libfuncs.h: Use gengtype for roots.
8858 * lists.c: Use gengtype for roots. Include gt-lists.h.
8859 (init_EXPR_INSN_LIST_cache): Delete.
8860 * optabs.c: Use gengtype for roots.
8861 (gt_ggc_mp_optab): Delete.
8862 * optabs.h: Use gengtype for roots.
8863 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
8864 * rtl.h: Use gengtype for roots.
8865 (init_EXPR_INSN_LIST_cache): Delete prototype.
8866 * stor-layout.c: Use gengtype for roots.
8867 Include gt-stor-layout.h.
8868 (init_stor_layout_once): Delete.
8869 * toplev.c: Use gengtype for roots. Delete calls to deleted
8870 routines.
8871 * tree.c: Use gengtype for roots.
8872 * tree.h: Use gengtype for roots.
8873 * varasm.c: Use gengtype for roots.
33005162 8874
e2500fed
GK
8875 * Makefile.in (GTFILES): Add @all_gtfiles@.
8876 * configure: Regenerate.
8877 * configure.in: Construct all_gtfiles from the gtfiles definitions
8878 in config-lang.in.
8879 * gengtype-yacc.y (type): Warn about duplicate structure names.
8880 * gengtype.c (get_output_file): Handle .c files in language
8881 subdirectories.
8882
8883 * Makefile.in (GTFILES): Run gengtype on all the config files
8884 and on the target .c file.
8885 * except.c (mark_eh_region): Delete.
8886 (init_eh_for_function): Use GGC on struct eh_status.
8887 (mark_eh_status): Delete.
8888 (free_eh_status): Use GGC.
8889 (expand_eh_region_start): Use GGC to
8890 (collect_eh_region_array): Allocate last_region_number using GGC.
8891 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
8892 (remove_eh_handler): Let GGC free struct eh_region.
8893 (add_call_site): Use GGC to reallocate call_site_record array.
8894 * function.c (init_machine_status): Update calling sequence.
8895 (mark_machine_status): Likewise.
8896 (mark_lang_status): Likewise.
8897 (prepare_function_start): Update init_machine_status call.
8898 (mark_function_status): Delete.
8899 (maybe_mark_struct_function): Delete.
8900 (ggc_mark_struct_function): Delete.
8901 (gt_ggc_mp_function): New.
8902 (gt_ggc_mr_machine_function): New.
8903 (gt_ggc_mr_language_function): New.
8904 (init_function_once): Use canonical names.
8905 * function.h (struct function): Use gengtype.
8906 (init_machine_status): Return the structure.
8907 (mark_machine_status): Take a 'void *'.
8908 (mark_lang_status): Likewise.
8909 * ggc-common.c (ggc_mark_trees): Use canonical name for
8910 ggc_mark_struct_function.
8911 * tree.h (ggc_mark_struct_function): Delete prototype.
8912 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
8913 (alpha_init_machine_status): Likewise.
8914 (override_options): Use canonical name for alpha_mark_machine_status.
8915 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
8916 * config/arm/arm.h (struct machine_function): Use gengtype.
8917 * config/arm/arm.c (arm_mark_machine_status): Delete.
8918 (arm_init_machine_status): Update calling sequence.
8919 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
33005162 8920 * config/cris/cris.c (cris_init_machine_status): Update
e2500fed
GK
8921 calling sequence.
8922 * config/d30v/d30v.h (struct machine_function): Use gengtype.
33005162 8923 * config/d30v/d30v.c (d30v_init_machine_status): Update
e2500fed
GK
8924 calling sequence.
8925 (d30v_mark_machine_status): Delete.
8926 * config/i386/i386.c: Include gt-i386.h.
8927 (struct machine_function): Use gengtype.
8928 (ix86_init_machine_status): Update calling sequence.
8929 (ix86_mark_machine_status): Delete.
8930 (override_options): Use canonical namke for ix86_mark_machine_status.
8931 * config/ia64/ia64.h (struct machine_function): Use gengtype.
33005162 8932 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
e2500fed
GK
8933 sequence.
8934 (ia64_mark_machine_status): Delete.
33005162 8935 (ia64_override_options): Use canonical name for
e2500fed 8936 ia64_mark_machine_status.
33005162 8937 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
e2500fed
GK
8938 sequence.
8939 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
8940 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
8941 * gengtype.c (get_output_file): Fix warning.
8942 (main): Add prototype to suppress warning.
8943 * tree.c: Remove tree_hash_mark prototype.
8944
8945 * tree.h (init_stmt): Delete prototype.
8946 * toplev.c (lang_independent_init): Don't call init_stmt.
8947 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
8948 (stmt_obstack): Delete.
8949 (POPSTACK): No need to free 'struct nesting'.
8950 (gt_ggc_mr_nesting_cond): Use canonical names.
8951 (gt_ggc_mr_nesting_loop): Use canonical names.
8952 (gt_ggc_mr_nesting_block): Use canonical names.
8953 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
8954 (mark_stmt_status): Delete.
8955 (init_stmt): Delete.
8956 (clear_last_expr): Clear both last_expr_type and last_expr_value.
8957 Use it everywhere that last_expr_type was cleared.
8958 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
8959 (zap_lists): Delete.
8960 * ggc.h (ggc_add_deletable_root): Prototype.
8961 (mark_stmt_status): Remove prototype.
8962 * ggc-common.c (ggc_add_deletable_root): New.
8963 (ggc_mark_roots): Handle deletable roots.
8964 * function.c (ggc_mark_struct_function): Use canonical name
8965 for mark_stmt_status.
8966 * emit-rtl.c (free_sequence_stack): New.
8967 (start_sequence): Use a freelist for sequences.
8968 (end_sequence): Likewise.
8969 (init_emit_once): Add free_sequence_stack as a deleteable root.
8970 * c-pragma.c Include gt-c-pragma.h.
8971 (struct align_stack): Use gengtype.
8972 (push_alignment): Use GGC for struct align_stack.
8973 (mark_align_stack): Delete.
8974 (gt_ggc_mp_align_stack): New.
8975 (init_pragma): Use canonical name for mark_align_stack.
8976 * c-decl.c: Include gt-c-decl.h.
8977 (struct binding_level): Use gengtype.
8978 (make_binding_level): Use GGC; handle the freelist here.
8979 (pop_binding_level): New.
8980 (pushlevel): Move code into make_binding_level.
8981 (push_label_level): Likewise.
8982 (poplevel): Move code into pop_binding_level.
8983 (pop_label_level): Likewise.
8984 (mark_binding_level): Delete.
8985 (gt_ggc_mp_binding_level): New.
8986 (c_init_decl_processing): Use canonical name for mark_binding_level.
8987 Add free_binding_level as deletable root.
8988 (mark_c_function_context): Use canonical name for mark_binding_level.
8989 * Makefile.in (c-decl.o): Add gt-c-decl.h.
8990 (c-pragma.o): Add gt-c-pragma.h.
8991 (GTFILES): Add c-decl.c and c-pragma.c.
8992 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
8993
8994 * tree.c (struct type_hash): Use gengtype.
8995 (init_obstacks): Use canonical name for type_hash_mark.
8996 (type_hash_mark): Delete.
8997 Include gt-tree.h.
8998 * rtl.h (struct mem_attrs): Use gengtype.
8999 * optabs.h (struct optab): Use gengtype.
9000 * optabs.c (expand_binop): Squish signed/unsigned warning.
9001 (mark_optab): Make local, use canonical name, use autogenerated
9002 marker procedure.
9003 (init_optabs): Use canonical name for mark_optab.
9004 (new_optab): Use GGC to allocate optabs.
9005 * ggc.h: Delete mark_optab prototype.
9006 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
9007 mem_attrs marker procedure.
9008 * gengtype.c (get_output_file): Include headers in gtype-desc.c
9009 explicitly rather than deducing them from file names.
9010 (write_gc_structure_fields): Handle arrays of structures.
9011 (main): Return non-zero exit code if errors occur during output.
9012 * emit-rtl.c (mem_attrs_mark): Delete.
9013 (init_emit_once): Use canonical name for mem_attrs marker procedure.
9014 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
9015 (tree.o): Depend on gt-tree.h.
9016 (GTFILES): Add rtl.h, optabs.h, tree.c.
9017 (gt-tree.h): Add it to s-gtype rule.
9018
9019 * .cvsignore: Ignore gengtype flex/bison generated files.
9020 * Makefile.in (GGC_H): Add gtype-desc.h.
9021 (OBJS): Add gtype-desc.o.
9022 (GEN): Add gengtype.
9023 (STAGESTUFF): Add gengtype.
9024 (varasm.o): Add gt-varasm.h.
9025 (stmt.o): Add gt-stmt.h.
9026 (except.o): Add gt-except.h.
9027 (integrate.o): Add gt-integrate.h.
9028 (GTFILES): New.
9029 Add new rules for new files.
9030 * configure: Regenerate.
9031 * configure.in: Correct defaults.h paths.
9032 * emit-rtl.c (mark_sequence_stack): Delete.
9033 (mark_emit_status): Delete.
9034 (start_sequence): Allocate sequence structures using GGC.
9035 (end_sequence): Allocate sequence structures using GGC.
9036 * except.c: Use gengtype for various structures. Include
9037 gt-except.h.
9038 * expr.c (mark_expr_status): Delete.
9039 * function.c: Use gengtype for various structures. Include
9040 gt-function.h.
9041 (mark_function_status): Use standard gt_ggc names for marker functions.
9042 (ggc_mark_struct_function): Likewise.
9043 * function.h: Use gengtype for various structures.
9044 * gengtype-lex.l: New file.
9045 * gengtype-yacc.y: New file.
9046 * gengtype.c: New file.
9047 * gengtype.h: New file.
9048 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
9049 the standard names. Remove some now-unnecessary prototypes.
9050 * integrate.c: Use gengtype for various structures. Include
9051 gt-integrate.h.
9052 (mark_hard_reg_initial_vals): Delete.
9053 * integrate.h (mark_hard_reg_initial_vals): Delete.
9054 * stmt.c: Use gengtype for various structures. Include
9055 gt-stmt.h.
9056 (mark_case_node): Delete.
9057 (mark_goto_fixup): Delete.
9058 (mark_stmt_status): Use standard gt_ggc names for marker functions.
9059 * system.h: Define GTY to empty. In flex/bison files,
9060 don't poison malloc or realloc, instead just define them to
9061 xmalloc and xrealloc.
9062 * varasm.c: Use gengtype for various structures. Include
9063 gt-varasm.h. Use standard gt_ggc names for marker functions.
9064 (mark_pool_constant): Delete.
9065 (mark_varasm_status): Delete.
9066 (decode_rtx_const): #if 0 out non-typesafe hack.
9067
9068 * function.h (free_lang_status): Mark as obsolete.
9069 * function.c (free_lang_status): Mark as obsolete.
9070 * c-decl.c (push_c_function_context): Use GC to allocate and free
9071 struct language_function.
9072 (pop_c_function_context): Likewise.
9073 * c-common.c (mark_c_language_function): Mark struct
9074 language_function.
9075
9076 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
9077 Document that the machine_function structures must be allocated
9078 using GC. Update mark_machine_status documentation.
9079 * function.h: Don't declare free_machine_status.
33005162 9080 * function.c (free_machine_status): Don't define.
e2500fed
GK
9081 (free_after_compilation): Don't call free_machine_status.
9082 (ggc_mark_struct_function): Mark f->machine. Call
9083 mark_machine_status only on non-NULL pointers.
9084 * system.h: Poison free_machine_status.
9085 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
9086 struct machine_function.
9087 (xtensa_free_machine_status): Delete.
9088 (override_options): Don't set free_machine_status.
9089 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
9090 free_machine_status.
9091 (rs6000_init_machine_status): Use GC on struct machine_function.
9092 (rs6000_free_machine_status): Delete.
9093 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
9094 machine_function.
9095 (ia64_mark_machine_status): Likewise.
9096 (ia64_free_machine_status): Delete.
9097 (ia64_override_options): Don't set free_machine_status.
9098 * config/i386/i386.c (override_options): Don't set
9099 free_machine_status.
9100 (ix86_init_machine_status): Use GC on struct machine_function.
9101 (ix86_mark_machine_status): Likewise.
9102 (ix86_free_machine_status): Delete.
9103 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
9104 machine_function.
9105 (d30v_mark_machine_status): Likewise.
9106 (d30v_free_machine_status): Delete.
9107 (d30v_init_expanders): Don't set free_machine_status.
9108 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
9109 machine_function.
9110 (arm_init_machine_status): Likewise.
9111 (arm_free_machine_status): Delete.
9112 (arm_init_expanders): Don't set free_machine_status.
9113 * config/alpha/alpha.c (override_options): Don't set
9114 free_machine_status.
9115 (alpha_init_machine_status): Use GC on struct machine_function.
9116 (alpha_mark_machine_status): Likewise.
9117 (alpha_free_machine_status): Delete.
9118
9119 * varasm.c (compare_constant): Fix typo.
9120
9121 * varasm.c: Don't include obstack.h.
9122 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
9123 (struct rtx_const): Give substructures names, improve formatting.
9124 (struct constant_descriptor): Delete.
9125 (struct constant_descriptor_tree): New, based on constant_descriptor.
9126 (const_hash_table): Is a hash table of trees.
9127 (mark_const_hash_entry): Is used for hashes of trees. Mark
9128 constant_descriptor_tree structure.
9129 (mark_const_str_htab_1): Mark deferred_string structure.
9130 (compare_constant): Rewrite to compare trees.
9131 (compare_constant_1): Delete.
9132 (record_constant): Delete.
9133 (record_constant_1): Delete.
9134 (output_constant_def): Use struct constant_descriptor_tree.
9135 Don't duplicate trees twice.
9136 (struct constant_descriptor_rtx): New.
9137 (struct pool_constant): Used for rtx constants.
9138 (init_varasm_status): Update for change to struct varasm_status.
9139 (mark_varasm_status): Likewise.
9140 (free_varasm_status): Delete.
9141 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
9142 (record_constant_rtx): Likewise.
9143 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
9144 (force_const_mem): Likewise.
9145 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
9146 * function.c (free_after_compilation): Don't use free_varasm_status.
9147 * function.h: Don't prototype free_varasm_status.
9148
9149 * ggc-common.c (ggc_realloc): Handle X being NULL.
9150
9151 * ggc-common.c (ggc_realloc): New function.
9152 * ggc.h: Prototype it.
9153 * emit-rtl.c (free_emit_status): Delete.
9154 (init_emit): Allocate emit subarrays using GC.
9155 (gen_reg_rtx): Reallocate subarrays using GC.
9156 (init_emit): Use GC to allocate 'struct emit_status' and its
9157 subarrays.
9158 (mark_emit_status): Mark structure and its subarrays.
9159 * stmt.c (free_stmt_status): Delete.
9160 * expr.c (free_expr_status): Delete.
9161 * function.h: Remove prototypes for deleted functions.
9162 * function.c (free_after_compilation): Don't use deleted functions.
9163 Don't call free() on x_parm_reg_stack_loc.
9164 (free_after_parsing): Don't use free_stmt_status.
9165 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
9166 (mark_function_status): Mark x_parm_reg_stack_loc.
9167
9168 * varasm.c (init_varasm_status): Use GC to allocate
9169 'struct varasm_status' and its fields x_const_rtx_hash_table
9170 and x_const_rtx_sym_hash_table.
9171 (mark_varasm_status): Mark them.
9172 (free_varasm_status): Use GC to free them.
9173 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
9174 (mark_expr_status): Mark the structure itself.
9175 (free_expr_status): Use GC to free the structure.
9176 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
9177 (mark_stmt_status): Mark the 'struct stmt_status' itself.
9178 (init_stmt_for_function): Allocate the structure for GC.
9179
9180 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
9181 (equate_type_number_to_die): Likewise.
9182 * tree.h (TYPE_SYMTAB_DIE): New macro.
9183 (struct die_struct): Predeclare.
9184 (struct tree_type): Add field symtab.die. Add a tag
9185 to the union type of field symtab.
9186
9187 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
9188 'struct rtvec_def *', not 'struct rtvec_def'.
9189
9190 * function.h (original_arg_vector): Make a real rtvec.
9191 * function.c (ggc_mark_struct_function): Adjust.
9192 * integrate.c (expand_inline_function): Adjust.
9193
b655555e
JT
91942002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
9195
9196 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
9197 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
9198 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
9199 (TARGET_VERSION_CPU): Define according to the
9200 default target.
9201 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
9202 TARGET_VERSION_CPU.
9203 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
9204 if TARGET_SHMEDIA64.
9205 (LINK_DEFAULT_CPU_EMUL): Define according to the
9206 default target.
9207 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
9208 (SUBTARGET_LINK_SPEC): Define.
9209 (LINK_SPEC): Use SH_LINK_SPEC.
9210 (ASM_SPEC): Remove.
9211 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
9212 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
9213 and TARGET_SHMEDIA64 which abort, for now.
9214 * config/sh/t-netbsd-sh5: New file.
9215 * config/sh/t-netbsd-sh5-32: New file.
9216 * config/sh/t-netbsd-sh5-64: New file.
9217
6d8fd7bb
RH
92182002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
9219 Richard Henderson <rth@redhat.com>
9220
9221 * config/alpha/alpha.c (reg_or_const_int_operand): New.
9222 (some_operand, input_operand): Accept CONST_VECTOR.
9223 (alpha_extra_constraint): Add 'W'.
9224 (alpha_expand_zap_mask): New.
9225 (alpha_expand_builtin_vector_binop): New.
9226 (enum alpha_builtin): New.
9227 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
9228 (alpha_init_builtins, alpha_expand_builtin): New.
9229 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
9230 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
9231 (PREDICATE_CODES): Update.
9232 * config/alpha/alpha-protos.h: Update.
9233 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
9234 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
9235 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
9236 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
9237 (movv2si, movv2si_fix, movv2si_nofix): New.
9238 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
9239 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
9240 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
9241 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
9242 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
9243 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
9244 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
9245 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
9246 builtin_unpkbw, unpkbw): New.
9247 * doc/extend.texi (Alpha Built-in Functions): New.
9248
618939de
RH
92492002-06-03 Richard Henderson <rth@redhat.com>
9250
9251 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
9252 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
9253
73db7137
RH
92542002-06-03 Richard Henderson <rth@redhat.com>
9255
6933647a
RH
9256 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
9257
73db7137
RH
9258 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
9259 (const0_operand): New.
9260 (reg_or_fp0_operand, fp0_operand): Remove.
9261 * config/alpha/alpha.h (PREDICATE_CODES): Update.
9262 * config/alpha/alpha-protos.h: Update.
9263 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
9264 and fp0_operand with reg_or_0_operand and const0_operand.
9265
a6f7c915
DN
92662002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
9267
9268 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
9269
b2f02503
RS
92702002-06-03 Roger Sayle <roger@eyesopen.com>
9271
9272 * gcse.c (cprop_jump): Use single_set to get the pattern
9273 from the setcc argument.
9274
4fcc2065
GDR
92752002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
9276
33005162 9277 * diagnostic.h (diagnostic_count): Move from output_buffer to
4fcc2065
GDR
9278 diagnostic_context.
9279 (diagnostic_kind_count): Adjust definition.
9280
5204d665
JH
9281Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
9282
9283 * except.c (except.c): Do not rebuild CFG.
9284 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
9285 optimization.
9286
0478a14c
JH
9287Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
9288
9289 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
9290 * toplev.c: Include cfglahout.h
9291 * Makefile.in (toplev.c): Add dependnecy.
9292
30efe578
NB
92932002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
9294
9295 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
9296 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
9297 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
9298
a782515b
JT
92992002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
9300
9301 * config/ns32k/netbsd.h: Update copyright years.
9302 (TARGET_OS_CPP_BUILTINS): Define.
9303 (CPP_PREDEFINES): Remove.
9304 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
9305 (TARGET_CPU_CPP_BUILTINS): Define.
9306
0fb7aeda
KH
93072002-06-02 Kazu Hirata <kazu@cs.umass.edu>
9308
589005ff 9309 * emit-rtl.c: Fix formatting.
0fb7aeda
KH
9310 * errors.h: Likewise.
9311 * except.c: Likewise.
9312 * explow.c: Likewise.
9313 * expmed.c: Likewise.
9314 * expr.c: Likewise.
9315 * expr.h: Likewise.
9316
1c8ec18b
KH
93172002-06-02 Kazu Hirata <kazu@cs.umass.edu>
9318
9319 * config/h8300/elf.h: Fix formatting.
9320 * config/h8300/rtems.h: Likewise.
9321
86cb04f6
JT
93222002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
9323
9324 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
9325
5d83269d
TT
93262002-06-02 Tom Tromey <tromey@redhat.com>
9327
9328 * fixinc/fixincl.x: Rebuilt.
9329 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
9330
62f6a494
NB
93312002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
9332
9333config/i370:
9334 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
9335 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
9336 * mvs.h: Similarly.
9337 * oe.h: Similarly.
9338
0acb0203
JH
9339Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
9340
9341 * final.c (final): Allow notes to not have computed addresses;
9342 kill no longer needed STACK_REGS ifdef.
9343
ada8d98a
RH
93442002-06-02 Richard Henderson <rth@redhat.com>
9345
9346 * gcse.c (bypass_conditional_jumps): Fix typo last change.
9347
ba4f7968
JH
9348Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
9349
ada8d98a
RH
9350 * loop.c (emit_prefetch_instructions): Properly place the address
9351 computation.
ba4f7968
JH
9352
9353Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
9354
9355 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
9356 (set_block_for_insn): Turn into macro.
9357 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
9358 * cfglayout.c (insn_scopes): Kill.
9359 (scope_to_insns_initialize): Do not use insn_scopes.
9360 (scope_to_insns_finalize): Likewise.
9361 (duplicate_insn_chain): Likewise.
9362 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
9363 * cfgrtl.c (basic_block_for_insn): Kill.
9364 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
9365 (create_basic_block_structure): Use reorder_insns.
9366 (compute_bb_for_insn): Do not use basic_block_for_insn.
9367 (merge_blocks_nomove): Likewise.
9368 (update_bb_for_insn): Likewise.
9369 (verify_flow_info): Likewise.
9370 (set_block_for_insn): Kill.
9371 * combine.c (try_combine): Update gen_rtx_INSN call.
9372 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
9373 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
9374 scopes and BBs.
9375 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
9376 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
9377 Clear BB.
9378 (emit_insns_after): Simplify.
9379 (emit_copy_of_insn_after): Copy scope.
9380 * final.c (final_start_function): Lower scopes.
9381 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
9382 * integrate.c (copy_insn_list): Cope scopes.
9383 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
9384 * loop.c (loop_optimize): Do not care block notes.
9385 * print-rtl.c (print_rtx): Print BB.
9386 * recog.c (apply_change_group): Simplify.
9387 * rtl.c (copy_rtx): Handle 'B'.
9388 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
9389 * rtl.h (Field accessors): Update indexes.
9390 * sched-ebb.c (schedule_ebbs): Do not lower notes.
9391 * sched-rgn.c (schedule_insns): Likewise.
9392 * toplev.c (rest_of_compilation): Lower notes.
9393 * unroll.c (unroll_loop): Do not care scoping notes.
9394 (copy_loop_body): Copy scopes.
9395
537fc532
NB
93962002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
9397
9398config/h8300:
9399 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
9400 SUBTARGET_SPEC.
9401 * rtems.h: Similarly.
9402 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
9403 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
9404 (TARGET_CPU_CPP_BUILTINS): Use.
9405
ab780373
RH
94062002-06-02 Richard Henderson <rth@redhat.com>
9407
9408 * alias.c: Include target.h.
9409 (mark_constant_function): Use targetm.binds_local_p instead
9410 of checking TREE_PUBLIC ourselves.
9411 * Makefile.in (alias.o): Add TARGET_H.
9412
b9305c66
NB
94132002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
9414
9415 * c-lex.c: Update copyright and file description.
9416
0ac3e0c4
NB
94172002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
9418
9419 * config/fr30/fr30.h: Update to new CPP macros.
9420
be3a1d46
NB
94212002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
9422
9423 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
9424
ceeedfc1 94252002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
a8fd5963 9426 Zack Weinberg <zack@codesourcery.com>
ceeedfc1
NB
9427
9428 * c-common.c (c_common_init): Override cpplib's default
9429 warn_long_long setting.
9430 * c-lex.c (lex_number): Replace with interpret_integer,
9431 interpret_float, narrowest_unsigned_type and
9432 narrowest_signed_type, taking advantage of the new
9433 cpplib functionality.
9434 * cpperror.c (_cpp_begin_message): If a warning is turned
9435 into an error, avoid printing "warning:".
9436 * cppexp.c (cpp_num_sign_extend): New.
9437 * cppinit.c: Update comment.
9438 * cpplib.h (cpp_num_sign_extend): New.
9439 * tree.h: Update comment.
9440
27e511e0
GDR
94412002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
9442
9443 * diagnostic.h (struct diagnostic_context): Add new member
33005162 9444 internal_error.
27e511e0
GDR
9445 (internal_error_function): Remove declaration.
9446 * diagnostic.c (internal_error_function): Remove definition..
9447 (internal_error): Adjust use.
9448
818b6b7f
RH
94492002-06-02 Richard Henderson <rth@redhat.com>
9450
9451 * rtl.h (CC0_P): New.
9452 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
9453 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
9454 (bypass_block): Save old dest block for dump text.
9455 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
9456 Allow only true SET insns, not single_set.
9457
167143a0
GDR
94582002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
9459
9460 * diagnostic.c (diagnostic_finish): Rename to output_flush.
9461 (clear_disgnostic_info): Rename to output_clear_data. Use false
9462 instead of 0 for boolean value.
9463 Adjust function call throughout.
9464
eae4bc56
JH
9465Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
9466
9467 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
9468 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
9469
9eb404a0
NB
94702002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
9471
9472 * d30v.h (CPP_PREDEFINES): Replace with
9473 (TARGET_CPU_CPP_BUILTINS): New.
9474
53e8b0b8
RS
94752002-06-02 Roger Sayle <roger@eyesopen.com>
9476
9477 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
9478
92e34b67
JH
9479Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
9480
9481 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
9482
e7e9d242
RH
94832002-06-02 Richard Henderson <rth@redhat.com>
9484
9485 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
9486
9af145ae
MM
94872002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
9488
9489 Support for C++ constructors/destructors.
9490 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
9491 instead of looping if main() returns.
9492 (asm_file_start): Output global symbols that cause .data and .bss
9493 initialization code to be linked in, unconditionally for now.
9494 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
9495 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
9496 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
9497 (LIBSTDCXX): New.
9498 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
9499 (__tablejump__): New.
9500 (__do_copy_data, __do_clear_bss): New.
9501 (__do_global_ctors, __do_global_dtors): New.
9502 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
9503 _ctors, _dtors.
9504
0d66ad57
NB
95052002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
9506
9507 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
9508 (CPP_SPEC, CPP_PREDEFINES): Kill.
9509 * c4x/rtems.h (CPP_PREDEFINES): Kill.
9510 (TARGET_OS_CPP_BUILTINS): New.
9511
5c856b23
JH
9512Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
9513
9514 * Makefile.in (tracer.o): New.
9515 * params.def (TRACER_*): New options.
9516 * rtl.h (tracer): Declare.
9517 * timevar.def (TV_TRACER): New.
9518 * toplev.c (dump_file_index): Add DFI_tracer.
9519 (dump_file_info): Add tracer.
9520 (flag_tracer): New.
9521 (lang_indepdenent_options): Add tracer.
9522 (rest_of_compilation): Call tracer.
9523 * tracer.c: New file.
9524 * invoke.texi (-ftracer): Document.
9525 (--param tracer-*): Document.
9526
e2405951
DB
95272002-06-01 Daniel Berlin <dberlin@dberlin.org>
9528
9529 * tree-inline.c (expand_call_inline): Make the statement
33005162 9530 expression we generate have a COMPOUND_STMT.
e2405951 9531
0e3f0221
RS
95322002-06-01 Roger Sayle <roger@eyesopen.com>
9533
9534 * gcse.c (cprop_cc0_jump): Function deleted.
9535 (cprop_jump): Take an additional argument which is the possibly
9536 NULL cc setting insn immediately before the conditional jump.
9537 When a MODE_CC set is present, substitute it into the JUMP_INSN
9538 before attempting the constant propagation.
9539 (cprop_insn): Recognize cc setters followed by conditional jumps
9540 as a special case. Use cprop_jump instead of cprop_cc0_jump.
9541 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
9542 (find_bypass_set): New function based upon find_avail_set used by
9543 cprop, but finds constant expressions available at the end of
9544 basic blocks.
9545 (bypass_block): New function. Given a basic block that begins
9546 with a conditional jump and multiple incoming edges, perform
9547 the jump bypass optimization.
9548 (bypass_conditional_jumps): New function. Call bypass_block with
9549 each suitable basic block in the CFG using a simple single pass.
9550
378393da
RS
95512002-06-01 Roger Sayle <roger@eyesopen.com>
9552
9553 * tree.c (real_minus_onep): New function to test for -1.0.
9554 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
9555
01c58f26
RS
95562002-06-01 Roger Sayle <roger@eyesopen.com>
9557
9558 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
9559 and "!p && !q" into "(p|q) == 0" under suitable conditions.
9560
91b12472
AJ
95612002-06-01 Andreas Jaeger <aj@suse.de>
9562
9563 * cppexp.c (cpp_classify_number): Cast precission to int for
9564 correct printf format.
9565
01e9ae86
MM
95662002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
9567
9568 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
9569 expected, but don't really exist: atmega83, atmega85, attiny10.
9570 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
9571 emulations for all devices.
9572 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
9573 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
9574
be1e06df
KH
95752002-06-01 Kazu Hirata <kazu@cs.umass.edu>
9576
9577 * config/h8300/h8300-protos.h: Add a prototype for
9578 h8300_shift_needs_scratch_p.
9579 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
9580 * config/h8300/h8300.h (OK_FOR_R): New.
9581 (OK_FOR_S): Likewise.
9582 (OK_FOR_T): Likewise.
9583 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
9584 * config/h8300/h8300.md (anonymous shift patterns): Use
9585 constraints R, S, and T.
9586
2ecfd709
ZD
9587Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9588
9589 * basic-block.h (struct basic_block_def): New field loop_father.
9590 (BB_VISITED): New flag.
9591 (struct loop): New field pred, removed field shared.
9592 (struct loops): New field parray.
9593 (LOOP_EXITS_DOMS): Removed.
9594 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
9595 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
9596 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
9597 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
9598 verify_loop_structure): Declare.
9599 * cfg.c (entry_exit_blocks): Initialize loop_father field.
9600 * cfganal.c (dfs_enumerate_from): New function.
9601 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
9602 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
9603 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
9604 flow_loop_dump, flow_loops_dump, flow_loops_free,
9605 flow_loop_tree_node_add, flow_loop_level_compute,
9606 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
9607 flow_loop_outside_edge_p): Modified for new infrastructure.
9608 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
9609 redirect_edge_with_latch_update, flow_loop_free): New static functions.
9610 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
9611 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
9612 find_common_loop, verify_loop_structure, loop_latch_edge,
9613 loop_preheader_edge): New functions.
9614 (flow_loops_cfg_dump): Do not show dominators, as this information
9615 does not remain up to date long.
9616 (flow_loops_find): Store results in new format.
9617 * predict.c (propagate_freq, estimate_probability,
9618 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
9619 infrastructure.
9620
d9763749 96212002-06-01 Alan Lehotsky <apl@alum.mit.edu>
91b12472 9622
d9763749
AL
9623 * except.c (nothrow_function_p): Walk epilogue delay list
9624 checking the insn, not the chain for potential throws.
91b12472 9625
1e730c5c
ZW
96262002-05-31 Zack Weinberg <zack@codesourcery.com>
9627
9628 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
9629 (install): Refer to install-cpp directly.
9630 (uninstall-cpp): Folded into uninstall rule.
9631 * configure.in: Delete all code relating to --disable-cpp.
9632 * configure: Regenerate.
9633 * config/t-install-cpp: Delete.
9634
6f9b006d
RH
96352002-05-31 Richard Henderson <rth@redhat.com>
9636
9637 * configure.in (HAVE_AS_TLS): Add alpha tests.
9638 * configure: Rebuild.
9639 * config/alpha/alpha.c (TARGET_AS_TLS): New.
9640 (alpha_tls_size, alpha_tls_size_string): New.
9641 (overide_options): Set it. Always install machine_status hooks.
9642 (input_operand): Accept got tls predicates.
9643 (local_symbol_p): Merge into ...
9644 (local_symbolic_operand): ... here. Reject tls symbols.
9645 (global_symbolic_operand): Likewise.
9646 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
9647 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
9648 (tp16_symbolic_operand, tp32_symbolic_operand): New.
9649 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
9650 (alpha_encode_section_info): Handle TLS symbols.
9651 (alpha_strip_name_encoding): Likewise.
9652 (alpha_legitimate_address_p): Likewise.
9653 (alpha_legitimize_address): Likewise.
9654 (alpha_expand_mov): Early exit to avoid nop moves.
9655 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
9656 (alpha_init_machine_status, alpha_mark_machine_status,
9657 alpha_free_machine_status): Always define.
9658 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
9659 (print_operand, print_operand_address): Add TLS relocs.
9660 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
9661 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
9662 (TARGET_SWITCHES): Add -mtls-kernel.
9663 (alpha_tls_size, alpha_tls_size_string): New.
9664 (TARGET_OPTIONS): Add -mtls-size=.
9665 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
9666 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
9667 (ASM_OUTPUT_LABELREF): Skip %.
9668 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
9669 (PREDICATE_CODES): Update.
9670 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
9671 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
9672 UNSPEC_TP, UNSPECV_SET_TP): New.
9673 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
9674 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
9675 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
9676 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
9677 (call_value_osf_2_er): Accept anything as op4.
9678 * config/alpha/alpha-protos.h: Update.
9679 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
9680
39e5db1a
ZW
96812002-05-31 Zack Weinberg <zack@codesourcery.com>
9682
9683 * cppinit.c (append_include_chain): Always pay attention to
9684 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
9685 marker on argument.
9686
41077ce4
KH
96872002-05-31 Kazu Hirata <kazu@cs.umass.edu>
9688
9689 * target.h: Fix formatting.
9690 * timevar.h: Likewise.
9691 * tlink.c: Likewise.
9692 * toplev.c: Likewise.
9693 * toplev.h: Likewise.
9694 * tree.c: Likewise.
9695 * tree-dump.h: Likewise.
9696 * tree.h: Likewise.
9697 * tree-inline.h: Likewise.
9698 * unroll.c: Likewise.
9699 * unwind-dw2.c: Likewise.
9700 * unwind-dw2-fde.c: Likewise.
9701 * unwind-dw2-fde-glibc.c: Likewise.
9702 * unwind-dw2-fde.h: Likewise.
9703 * unwind.h: Likewise.
9704 * unwind-sjlj.c: Likewise.
9705 * varasm.c: Likewise.
9706 * varray.h: Likewise.
9707 * vmsdbg.h: Likewise.
9708 * vmsdbgout.c: Likewise.
9709 * xcoffout.h: Likewise.
9710
b2e426a0
IS
97112002-05-31 Igor Shevlyakov <igor@microunity.com>
9712
1e730c5c 9713 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
b2e426a0
IS
9714 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
9715
8b968bd1
MW
97162002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
9717
9718 * gcc.c (cpp_unique_options): Remove "-d" options.
9719 (cpp_debug_options): New spec string.
9720 (default_compilers): Use it.
9721 * objc/lang-specs.h: Likewise.
9722
5c35940c
NN
97232002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
9724
1e730c5c 9725 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
5c35940c
NN
9726 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
9727 * gcc/mklibgcc.in: Likewise.
9728 * gcc/config/arc/t-arc: Likewise.
9729 * gcc/configure.in: Likewise.
9730 * gcc/configure: Regenerate.
9731
8b496ceb
SS
97322002-05-31 Stan Shebs <shebs@apple.com>
9733 Turly O'Connor <turly@apple.com>
9734
9735 * c-decl.c (struct binding_level): Change int field n_incomplete
9736 to tree list incomplete_list.
9737 (clear_binding_level): Init field with NULL.
9738 (pushdecl): Add incomplete type to list.
9739 (mark_binding_level): Mark the incomplete list.
9740 (finish_struct): Scan the incomplete list for types instead
9741 of all decls in the current binding level.
9742
4722213d
JDA
97432002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
9744
9745 * pa.c (output_millicode_call): Add missing '%' characters.
9746 (output_call): Likewise.
9747
1086fcb1
DE
97482002-05-31 David Edelsohn <edelsohn@gnu.org>
9749
9750 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
9751 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
9752
afdfb380 97532002-05-31 Alan Lehotsky <apl@alum.mit.edu>
91b12472 9754
afdfb380
AL
9755 * varasm.c (mark_constant_pool): Walk epilogue delay list
9756 checking the insn, not the chain for potential constants.
1e730c5c 9757
f2df45f6
R
9758Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
9759
9760 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
9761
91ea38f9
JH
9762Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
9763
9764 * i386.c (classify_argument): Properly handle base types.
9765
9766 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
9767 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
9768 registers.
9769
10d1bb36
JH
9770Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
9771
9772 * gcse.c (gcse_emit_move_after): New.
9773 (pre_delete, hoist_store): Use it.
9774
9775 * reload1.c (emit_input_reload_insns): Use constrain_operands
9776 instead of constraint_accepts_reg_p to verify optimization.
9777 (constraint_accepts_reg_p): Kill
9778
9779 * reload1.c (reload_cse_delete_noop_set): Kill.
9780 (reload_cse_simplify): use delte_insn_and_edges.
9781
8a72fb76
ZD
97822002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9783
9784 * cfgloop.c (flow_loops_find): Initialize first and last fields
9785 correctly.
9786
a9da2e5b
NB
97872002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
9788
9789 * c-common.c (builtin_define_std): Correct logic.
9790
6248c4dd
JDA
97912002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
9792
9793 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
9794 (output_call): Likewise.
9795
d499455b
JDA
97962002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
9797
9798 * pa.c: Move output.h include after tree.h include.
9799 (pa_asm_output_mi_thunk): Constify identifier lab.
9800
2eb2901a
JT
98012002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
9802
9803 * config/ns32k/ns32k.h: Define named constants for the
9804 bits in target_flags and use them.
9805 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
9806
806bf413
JDA
98072002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
9808
9809 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
9810 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
9811 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
9812 default scheduling model.
9813 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
9814 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
9815 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
9816 * doc/install.texi (hppa*-*-*): Document default scheduling.
9817
6d8d2bbc
JDA
98182002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
9819
9820 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
9821
c8eb9785
JT
98222002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
9823
9824 * config.gcc (ns32k-*-netbsd*): Set tm_file to
9825 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
9826 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
9827 netbsd.h, or netbsd-aout.h.
9828
6e2e5b6a
JT
98292002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
9830
9831 * longlong.h (count_trailing_zeros): Add missing \, and clean up
9832 whitespace in __ns32000__ case.
9833
00182e1e
AH
98342002-05-31 Aldy Hernandez <aldyh@redhat.com>
9835
1e730c5c
ZW
9836 * expr.c (expand_expr): Output partially zeroed out vectors with
9837 output_constant_def.
00182e1e 9838
b4eb03fe
JT
98392002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9840
9841 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
9842 (sh-*-netbsdelf*)
9843 (shl*-*-netbsdelf*): New targets.
9844 * config/sh/netbsd-elf.h: New file.
8fd0df91 9845 * config/sh/t-netbsd: New file.
b4eb03fe 9846
261376e7
RH
98472002-05-30 Richard Henderson <rth@redhat.com>
9848 Eric Botcazou <ebotcazou@multimania.com>
9849
9850 PR optimization/6822
9851 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
9852 to unsigned int for op1 comparisons. Use gen_int_mode.
9853
ce60bf25
EB
98542002-05-30 Eric Botcazou <ebotcazou@multimania.com>
9855
9856 * expmed.c (const_mult_add_overflow_p): New.
9857 * expr.h: Declare it.
9858 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
9859 Don't eliminate the biv if the giv has a constant multiplier and
9860 the rhs argument of the comparison does satisfy the predicate.
9861 Use expand_mult_add to compute the replacement constant.
9862
d18b1ed8
OS
98632002-05-30 Osku Salerma <osku@iki.fi>
9864
9865 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
9866 (c_common_get_alias_set): Handle it.
9867 * doc/extend.texi: Document it.
9868
a7943381
RH
98692002-05-30 Richard Henderson <rth@redhat.com>
9870
9871 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
9872 * toplev.c (process_options): Don't check it.
9873 * doc/tm.texi: Don't document it.
9874 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
9875 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
9876 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
9877 frame pointer optimization if current_function_profile.
9878
e11e816e
KH
98792002-05-30 Kazu Hirata <kazu@cs.umass.edu>
9880
9881 * langhooks.c: Fix formatting.
9882 * langhooks.h: Likewise.
9883 * lcm.c: Likewise.
9884 * libgcc2.c: Likewise.
9885 * lists.c: Likewise.
9886 * local-alloc.c: Likewise.
9887 * loop.c: Likewise.
9888 * loop.h: Likewise.
9889
98902002-05-30 Marc Espie <espie@openbsd.org>
9891
9892 * config.gcc (sparc64-*-openbsd*): New.
9893 * config/sparc/openbsd1-64.h: New.
9894 * config/sparc/openbsd64.h: New.
91f0fcee 9895
d35dfca9
JL
98962002-05-30 Jeff Law <law@redhat.com>
9897
9898 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
9899 a dead insn with a REG_RETVAL note when the entire libcall is not
9900 dead and remove the associated REG_LIBCALL note at the same time.
9901
81b40b72
R
9902Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
9903
9904 * lcm.c (output.h): #include.
9905 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
9906 as an ordinary block.
9907 (optimize_mode_switching): Don't pretend that the exit block is
9908 an ordinary block, or handle sucessors of entry block specially.
9909 Instead, split edges from entry block and to exit block, and
9910 put a computing definition on the thus gained post-entry-block,
9911 and a need on the pre-exit-block.
9912
c8ea9a0f
JH
9913Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
9914
9915 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
9916 * rtl.texi: Document 'B'
9917
348f0869
JT
99182002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9919
9920 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
9921 at run-time.
9922 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
9923
9a171fcd
AH
99242002-05-30 Aldy Hernandez <aldyh@redhat.com>
9925
1e730c5c
ZW
9926 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
9927 const0_rtx instead of NULL_RTX when in error.
9928 (altivec_expand_abs_builtin): Same.
9929 (rs6000_expand_binop_builtin): Same.
9930 (altivec_expand_predicate_builtin): Same.
9931 (altivec_expand_stv_builtin): Same.
9932 (rs6000_expand_ternop_builtin): Same.
9933 (altivec_expand_builtin): Same.
9a171fcd 9934
62a35e60
DM
99352002-05-29 David S. Miller <davem@redhat.com>
9936
9937 * rtl.h (clear_emit_caches): Delete.
9938 * integrate.c (output_inline_function): Don't call it.
9939 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
9940 (clear_emit_caches): Delete definition.
9941 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
9942
cbc39da8
HPN
99432002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
9944
9945 * config/mmix/mmix.c: Include real.h.
9946 (mmix_constant_address_p): Remove redundant test before switch.
9947
50efa737
JT
99482002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
9949
9950 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
9951 only if not already defined.
9952
2e760b15
KH
99532002-05-29 Kazu Hirata <kazu@cs.umass.edu>
9954
9955 * config/h8300/h8300-protos.h: Remove prototypes for
9956 ok_for_bclr and small_power_of_two.
9957 * config/h8300/h8300.c (small_power_of_two): Remove.
9958 (ok_for_blcr): Likewise.
9959 (fix_bit_operand): Make WHAT deal with an integer instead of a
9960 constraint character.
9961 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
9962 (CONST_OK_FOR_P): Likewise.
9963 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
9964 CONST_OK_FOR_P any more.
9965 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
9966 of fix_bit_operand.
9967 (iorqi3): Likewise.
9968 (xorqi3): Likewise.
9969
e1c293ae
JT
99702002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
9971
9972 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
9973 (CPP_PREDEFINES): Make sure this is undefined.
9974 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
9975 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
9976 or -U__MIPSEB__ before defining one or the other. Instead,
9977 use %(subtarget_endian_default) if neither -EB nor -EL are
9978 specified.
9979 (SUBTARGET_EXTRA_SPECS): Define.
9980 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
9981 %(netbsd_cpp_spec).
9982
fde6d81f
HPN
99832002-05-29 Hans-Peter Nilsson <hp@axis.com>
9984
9985 * doc/md.texi (Patterns): Note pattern condition pitfall
9986 for unnamed insn.
9987
92898235
AH
99882002-05-29 Aldy Hernandez <aldyh@redhat.com>
9989
1e730c5c
ZW
9990 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
9991 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
9992 ternary operations from here...
9993 (rs6000_expand_builtin): ...to here.
9994 New argument expandedp.
9995 Change all instances of altivec_expand_binop_builtin to
9996 rs6000_expand_binop_builtin.
9997 (altivec_expand_unop_builtin): Rename to
9998 rs6000_expand_unop_builtin.
9999 (altivec_expand_binop_builtin): Rename to
10000 rs6000_expand_binop_builtin.
10001 (altivec_expand_ternop_builtin): Rename to
10002 rs6000_expand_ternop_builtin.
92898235 10003
67adf6a9
RH
100042002-05-29 Richard Henderson <rth@redhat.com>
10005
10006 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
10007 (TARGET_BI_ARCH): Likewise.
10008 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
10009 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
10010 (TARGET_64BIT_DEFAULT): Default to 0.
10011 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
10012
145aacc2
RH
100132002-05-29 Richard Henderson <rth@redhat.com>
10014
10015 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
10016 (get_pc_thunk_name): New.
10017 (output_set_got): Use it.
10018 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
10019 into linkonce sections.
10020
a5b49bbc
JT
100212002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
10022
10023 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
10024 (CPP_PREDEFINES): Make sure this is undefined.
10025 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
10026 (CPP_SUBTARGET_SPEC): Don't provide different versions for
10027 default-32 and default-64. Just always use %(netbsd_cpp_spec).
10028 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
10029 cpp_subtarget_spec64. Add netbsd_cpp_spec.
10030 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
10031 (CPP_PREDEFINES): Make sure this is undefined.
10032 (SUBTARGET_EXTRA_SPECS): Define.
10033 (CPP_SPEC): Use %(netbsd_cpp_spec).
10034
54374491
JL
100352002-05-29 Jeff Law <law@redhat.com>
10036
ae02eae8
JL
10037 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
10038
b862c2aa
JL
10039 * flow.c (propagate_one_insn): Do not remove a dead insn if it
10040 contains a REG_RETVAL note.
10041
d10791ba
JL
10042 * haifa-sched (sched_analyze): Remove another useless clearing
10043 of SCHED_GROUP_P I missed yesterday.
10044
54374491
JL
10045 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
10046 * pa.c (pa_asm_output_mi_thunk): New function.
10047 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
10048
92c392e6
NB
100492002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
10050 Marek Michalkiewicz <marekm@amelek.gda.pl>
10051
10052 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
10053 (avr_asm_only_p): Make non-static.
10054 (enum avr_arch): Remove.
10055 (avr_arch_types): New.
10056 (avr_mcu_types): Update.
10057 (avr_override_options): Use avr_arch_types table instead of switch.
10058 * avr.h (CPP_PREDEFINES): Die.
10059 (avr_base_arch_macro, avr_extra_arch_macro): New.
10060 (TARGET_CPU_CPP_BUILTINS): New.
10061 (CPP_SPEC, EXTRA_SPECS): Simplify.
10062 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
10063 CPP_AVR5_SPEC): Die.
10064
4528173e
JT
100652002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
10066
10067 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
10068 NETBSD_OS_CPP_BUILTINS_AOUT.
10069 (SUBTARGET_EXTRA_SPECS): Define.
10070 (CPP_SPEC): Use %(netbsd_cpp_spec).
10071
bd09bdeb
RH
100722002-05-29 Richard Henderson <rth@redhat.com>
10073
10074 * config/i386/i386.c (ix86_output_function_epilogue): New.
10075 (TARGET_ASM_FUNCTION_EPILOGUE): New.
10076 (pic_label_name): Remove.
10077 (pic_labels_used): New.
10078 (ix86_asm_file_end): Emit one pc load stub for each register used.
10079 (output_set_got): Generate deep pc load to any register.
10080 (ix86_select_alt_pic_regnum): New.
10081 (ix86_save_reg): Don't save pic register if we can find a valid
10082 call-clobbered replacement.
10083 (ix86_expand_prologue): If we found a valid replacement, renumber
10084 pic_offset_table_rtx.
10085 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
10086 pic_offset_table_rtx after reload.
10087 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
10088 * config/i386/i386.md (set_got): Make insn, not expander.
10089 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
10090
002ff5bc
RH
100912002-05-29 Richard Henderson <rth@redhat.com>
10092
10093 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
10094 alignment for alloca.
10095
edfe8595
RH
100962002-05-29 Richard Henderson <rth@redhat.com>
10097
10098 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
10099 (print_operand_address): Only add rip for symbolic addresses
10100 for which we do not have another relocation type.
10101
cd7714ee
JT
101022002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
10103
10104 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
10105 (EXTRA_SPECS): Add netbsd_cpp_spec.
10106 (CPP_SPEC): Use %(netbsd_cpp_spec).
10107 (CPP_PREDEFINES): Remove.
10108 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
10109 (EXTRA_SPECS): Define.
10110 (CPP_SPEC): Use %(netbsd_cpp_spec).
10111 (CPP_PREDEFINES): Remove.
10112
8dc901de
NB
101132002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
10114
10115 PR preprocessor/6844
10116 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
10117 NUL.
10118
2274b31a
EC
101192002-05-29 Eric Christopher <echristo@redhat.com>
10120
10121 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
10122 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
10123
5c7666c1
NC
101242002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
10125
10126 * config/fr30/fr30.md: Remove previous restriction on splits.
10127 Enforce conformance through gen_lowpart and cont_int_operand.
1e730c5c 10128 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
5c7666c1
NC
10129 as the assembler does not support ".bss".
10130
45beef47
JT
101312002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
10132
10133 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
10134 (CPP_PREDEFINES): Remove.
10135 (SUBTARGET_EXTRA_SPECS): Define.
10136 (CPP_SPEC): Use %(netbsd_cpp_spec).
10137 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
10138 (CPP_PREDEFINES): Remove.
10139 (SUBTARGET_EXTRA_SPECS): Define.
10140 (CPP_SPEC): Use %(netbsd_cpp_spec).
10141 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
10142 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
10143 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
10144 Add netbsd_cpp_spec.
10145 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
10146
cd7ab83f
NB
101472002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
10148 Zack Weinberg <zack@codesourcery.com>
10149
10150 * cppexp.c (cpp_num): Move to cpplib.h.
10151 (CPP_ERROR): Remove.
10152 (interpret_float_suffix, interpret_int_suffix): New.
10153 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
10154 (cpp_classify_number, cpp_interpret_integer): New.
10155 (interpret_number): Remove.
10156 (eval_token): Update to use new routines.
10157 * cpphash.h (cpp_num_part): Move to cpplib.h.
10158 * cppinit.c (cpp_post_options): Set warn_long_long.
10159 * cpplib.h (struct cpp_options): Add warn_long_long.
10160 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
10161 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
10162 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
10163 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
10164 cpp_interpret_integer): New.
10165
61a8515c
JS
101662002-05-29 Joel Sherrill <joel@OARcorp.com>
10167
10168 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
10169
53a428b5
JT
101702002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
10171
10172 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2274b31a
EC
10173 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
10174 (CPP_SUBTARGET_SPEC): Define.
10175 (SUBTARGET_EXTRA_SPECS): Define.
53a428b5
JT
10176 (CPP_SPEC): Remove.
10177
45b1f7c7
CL
101782002-05-29 Chris Lattner <sabre@nondot.org>
10179
1e730c5c
ZW
10180 * ssa.c (rename_insn_1): Rename uses of undefined registers to
10181 prevent confusion if/when the register is defined.
45b1f7c7 10182
049746c2
HPN
101832002-05-29 Hans-Peter Nilsson <hp@axis.com>
10184
10185 PR target/6838
10186 * config/cris/cris.md: Fix typos and thinkos in comments.
10187 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
10188 second alternative.
10189 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
10190 ("*mov_sideqi_mem"): Similar, but for operand 3.
10191 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
10192 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
10193 Remove spurious mode specifier on operand 2.
10194
4d4d89e2
KH
101952002-05-29 Kazu Hirata <kazu@cs.umass.edu>
10196
10197 * config/h8300/h8300-protos.h: Remove the prototype for
10198 o_operand.
10199 Add prototypes for single_one_operand and single_zero_operand.
10200 * config/h8300/h8300.c (o_operand): Remove.
10201 (single_one_operand): New.
10202 (single_zero_operand): Likewise.
10203 (print_operand): For 'V' operand, and the operand with 0xff.
10204 For 'V' and 'W' operands, do not and the bit position with 7.
10205 * config/h8300/h8300.md (various anonymous patterns): Replace
10206 use of exact_log2 with single_one_operand/single_zero_operand.
10207
abd6ddec
UW
102082002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
10209
10210 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
10211
da06d85a
UW
102122002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
10213
10214 * config/s390/s390.c (legitimate_pic_operand_p): Do not
10215 accept symbolic LARL operands.
2274b31a 10216 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
da06d85a 10217 epilogue insns.
2274b31a 10218
f8766020
HP
102192002-05-29 Hartmut Penner <hpenner@de.ibm.com>
10220
10221 * config/s390/s390.md (cmpstr_64/31): Mark whole
2274b31a 10222 input registers as used.
f8766020 10223
66edd3b4
RH
102242002-05-28 Richard Henderson <rth@redhat.com>
10225
10226 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
10227 not current_function_uses_pic_offset_table and
10228 current_function_uses_const_pool; examine current_function_profile.
10229 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
10230 input to blockage if needed.
10231 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
10232 (legitimize_pic_address): Likewise. Set regs_ever_live for
10233 pic_offset_table_rtx when invoked during reload.
10234 * config/i386/i386.h (FINALIZE_PIC): Remove.
10235 * config/i386/i386.md (tablejump): Reformat. Do not set
10236 current_function_uses_pic_offset_table.
10237 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
10238 (blockage): Accept anything as operand 0.
10239
52f4fff6
JT
102402002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
10241
10242 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
10243 common CPP built-ins for all NetBSD a.out targets.
10244 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
10245 common CPP built-ins for all NetBSD ELF targets.
10246 * config/netbsd.h: Add missing notice.
10247 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
10248 for all NetBSD targets.
10249 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
10250 for all NetBSD targets using an LP64 code model.
10251 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
10252 NetBSD targets.
10253
e0e577a2
RH
102542002-05-28 Richard Henderson <rth@redhat.com>
10255
10256 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
10257 update if UPDATE_LIFE_LOCAL.
10258
102592002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
62526ec3
TM
10260
10261 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
10262
f1a58d92 10263Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1e730c5c 10264 Jason R. Thorpe <thorpej@wasabisystems.com>
f1a58d92
R
10265
10266 config/sh reorganization to factor out endianness and coff:
10267
10268 * config/sh/little.h: New file.
1e730c5c
ZW
10269 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
10270 defined, define to 0 to select big-endian.
f1a58d92 10271 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
1e730c5c
ZW
10272 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
10273 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
10274 * config/sh/t-be: New file.
10275 * config/sh/t-le: New file.
f1a58d92
R
10276
10277 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
10278 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
10279 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
10280 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
10281 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
10282 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
10283 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
10284 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
10285 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
10286 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
10287 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
10288 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
10289 (LINK_SPEC): Define to SH_LINK_SPEC.
10290 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
10291 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
10292 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
10293 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
10294 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
10295 * config/sh/coff.h: New file.
10296 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
10297 (TARGET_OBJFMT_CPP_BUILTINS): Define.
10298 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
10299 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
10300 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
10301 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
10302 (PTRDIFF_TYPE): Likewise.
10303 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
10304 (CPP_PREDEFINES): Don't define.
10305 (TARGET_OBJFMT_CPP_BUILTINS): Define.
10306 (LINK_SPEC): Define to SH_LINK_SPEC.
10307 (LINK_EMUL_PREFIX): Redefine.
10308 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
10309 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
10310 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
10311 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
10312 (TARGET_OS_CPP_BUILTINS): Define.
10313 (TARGET_DEFAULT): Redefine.
10314 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
10315 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
10316 (LINK_SPEC): Don't redefine.
10317 (LINK_DEFAULT_CPU_EMUL): Redefine.
10318 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
10319 * sh.c (sh_asm_named_section): Don't declare / define.
10320 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
10321 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
10322 (sh64-*-elf* tm_file): Likewise.
10323 (sh-*-rtemself* tm_file): Likewise.
10324 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
10325 (sh-*-linux* tmake_file): Add sh/t-le.
10326 (sh-*-rtems* tm_file): Add sh/coff.h
10327 (sh-*-* tm_file): Likewise.
10328
10329Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
10330
10331 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
10332 CONSTANT_POOL_ADDRESS_P.
10333
10334 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
10335
d10791ba 103362002-05-28 David Edelsohn <edelsohn@gnu.org>
33a3dfc4
DE
10337 Jeff Law <law@redhat.com>
10338
64de6c0a
DE
10339 * optabs.c (expand_binop): Fix nwords sign warnings.
10340 generate pseudo for add_optab.
10341
33a3dfc4
DE
10342 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
10343 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
10344
972957ba 103452002-05-28 Marc Espie <espie@openbsd.org>
33a3dfc4 10346
2274b31a 10347 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
972957ba
ME
10348 inherited from gas.h.
10349 (ASM_QUAD): Undef. OpenBSD does not support it.
10350
cc92b8ab
DS
103512002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
10352
10353 * doc/install.texi (binaries): Change mingw binaries
10354 link to www.mingw.org.
10355
f8088d55
ZD
103562002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10357
10358 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
10359
0b7ae565
RH
103602002-05-28 Richard Henderson <rth@redhat.com>
10361
10362 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
10363 bottom alignment for leaf functions.
10364
16069d69
ZW
103652002-05-28 Zack Weinberg <zack@codesourcery.com>
10366
10367 * config/pa/milli32.S, config/pa/lib1funcs.asm,
10368 config/sparc/sol2-g1.asm: Delete unused files.
10369
04653686
RH
103702002-05-28 Richard Henderson <rth@redhat.com>
10371
10372 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
10373
f3ea5f6a
RH
10374 * flow.c (calculate_global_regs_live): Rename call_used to
10375 invalidated_by_call. Initialize from regs_invalidated_by_call
10376 instead of call_used_regs.
10377
923c7cdf
RH
10378 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
10379 DECL_EXTERNAL.
10380
11ad4784
ZW
103812002-05-28 Zack Weinberg <zack@codesourcery.com>
10382
8abbd76a
ZW
10383 * tree.h: Don't include real.h.
10384 Forward-declare struct realvaluetype.
11ad4784
ZW
10385 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
10386 contain it.
10387 (TREE_REAL_CST_PTR): New accessor.
10388 (TREE_REAL_CST): Update.
10389 * real.h: Include machmode.h.
2274b31a 10390 (realvaluetype): Make it struct realvaluetype, not a typedef.
11ad4784
ZW
10391 (build_real): Prototype here.
10392
10393 * tree.c: Include real.h.
2274b31a
EC
10394 (build_real): Allocate the REAL_VALUE_TYPE as a separate
10395 object in GC memory, set TREE_REAL_CST_PTR to point to it.
11ad4784
ZW
10396 (build_real_from_int_cst): Use build_real.
10397 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
10398 REAL_CST.
10399
10400 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
10401 fold-const.c, print-tree.c, real.c: Include real.h.
10402 * Makefile.in: Update dependency lists.
10403
bf77398c
ZD
104042002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10405
10406 * basic-block.h (last_basic_block): Declare.
10407 (expunge_block_nocompact): Declaration removed.
10408 (compact_blocks): Declare.
10409 * cfg.c (last_basic_block): New variable.
10410 (expunge_block_nocompact): Removed.
10411 (expunge_block): Do not compact basic blocks.
10412 (compact_blocks): New.
10413 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
10414 longer change.
10415 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
10416 last_basic_block.
10417 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
10418 real positions of blocks.
10419 (delete_unreachable_blocks): Simplified -- quadratic behavior now
10420 cannot occur.
10421 (cleanup_cfg): Compact blocks.
10422 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
10423 basic_block_info varray.
10424 (flow_delete_block): Comment update.
10425 (back_edge_of_syntactic_loop_p): Modify position check code.
10426 (verify_flow_info): Update checking.
10427 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
10428 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
10429 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
10430 indices no longer change.
10431 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
10432 last_basic_block.
10433 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
10434 * profile.c (branch_prob): Compact blocks.
10435 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
10436 last_basic_block.
10437
ae12a094
KH
104382002-05-28 Kazu Hirata <kazu@cs.umass.edu>
10439
10440 * config/h8300/h8300.md (two anonymous patterns): New.
10441
c6172f14
DM
104422002-05-28 David S. Miller <davem@redhat.com>
10443
10444 * config/sparc/sparc.md (cpu): Tidy.
10445 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
10446 'trap'.
10447 (in_call_delay): Delete reference to 'return' type.
10448 (eligible_for_return_delay, in_return_delay, define_delay
10449 referencing those): Delete.
10450 (rest of file): Use new type attributes as appropriate.
10451 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
10452 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
10453 * config/sparc/ultra1_2.md (us1_single): New reservation.
10454 (us1_ialuX): Likewise.
10455 * config/sparc/ultra3.md (us3_single): Likewise.
10456 (us3_ialuX): Likewise.
10457 (us3_imul, us3_idiv): Tweak.
2274b31a 10458
34a6c2ec
RH
104592002-05-28 Richard Henderson <rth@redhat.com>
10460
10461 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
10462 STRING_CST.
10463
9c075570
RH
104642002-05-28 Richard Henderson <rth@redhat.com>
10465
10466 * config.gcc: Obsolete mn10200.
10467
359b0bec
NB
104682002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
10469
10470 * cppexp.c (interpret_number): Optimize for single-digit
10471 and less-than-half-precision cases.
10472 (num_trim, num_positive, num_div_op): Cast constants.
10473
4075db8f
BT
104742002-05-27 Bo Thorsen <bo@suse.de>
10475
10476 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
10477 3.1 branch. The file was made by Jakub Jelinek.
10478 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
10479 support so multilib doesn't break. And don't define this at all
10480 when -Dinhibit_libc is used.
10481 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
10482 * config/i386/t-linux64: Implement full multilib support. Patch
10483 originally done by Andreas Jaeger and Jakub Jelinek.
10484
39f2f3c8
RS
104852002-05-27 Roger Sayle <roger@eyesopen.com>
10486
10487 * c-common.c: Add support for __attribute__((nothrow)) to specify
10488 that a function cannot throw an exception (using TREE_NOTHROW).
10489 (handle_nothrow_attribute): New function to process this attribute.
10490
10491 * doc/extend.texi: Document the new nothrow function attribute.
10492
d51b0053
L
104932002-05-27 H.J. Lu (hjl@gnu.org)
10494
10495 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
10496 (num_positive): Likewise.
10497 (num_div_op): Likewise.
10498
630363b4
NB
104992002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
10500
10501 * c-common.c (c_common_init): Always use intmax_t.
10502
d94cde01
NB
105032002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
10504
10505 * c-common.c (c_common_init): Use intmax_t for now.
10506
57f851a3
AH
105072002-05-24 Andrew Haley <aph@redhat.com>
10508
10509 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
10510 if T is a boolean type.
10511
d55bc081
ZD
105122002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10513
10514 * basic-block.h (last_basic_block): Defined as synonym for
10515 n_basic_blocks.
10516 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
10517 flow_depth_first_order_compute, flow_preorder_transversal_compute,
10518 flow_dfs_compute_reverse_init): Replaced relevant occurences of
10519 n_basic_blocks with last_basic_block.
10520 * cfgbuild.c (make_edges): Likewise.
10521 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
10522 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
10523 * combine.c (combine_instructions): Likewise.
10524 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
10525 iterative_dataflow_bitmap): Likewise.
10526 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
10527 calc_idoms, idoms_to_doms): Likewise.
10528 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
10529 Likewise.
10530 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
10531 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
10532 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
10533 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
10534 delete_null_pointer_checks, compute_code_hoist_vbeinout,
10535 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
10536 compute_store_table, build_store_vectors): Likewise.
10537 * haifa-sched.c (sched_init): Likewise.
10538 * ifcvt.c (if_convert): Likewise.
10539 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
10540 pre_edge_lcm, compute_available, compute_nearerout,
10541 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
10542 Likewise.
10543 * predict.c (estimate_probability, process_note_prediction,
10544 note_prediction_to_br_prob): Likewise.
10545 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
10546 * recog.c (split_all_insns, peephole2_optimize): Likewise.
10547 * regrename.c (copyprop_hardreg_forward): Likewise.
10548 * resource.c (init_resource_info): Likewise.
10549 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
10550 init_regions, schedule_insns): Likewise.
10551 * ssa-ccp.c (ssa_const_prop): Likewise.
10552 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
10553 * ssa.c (compute_dominance_frontiers,
10554 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
10555
10556 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
10557 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
10558 sizes consistently.
10559
71d2c5bd
JH
10560Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
10561
10562 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
10563 new.
10564 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
10565 hoist_insn_after, hoist_insn_to_edge): New.
10566
5149f070
JH
10567Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
10568
10569 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
10570 (PROP_FINAL): Include.
10571 * flow.c (life_analysis, update_life_info,
10572 init_propagate_block_info, mark_set_1, mark_used_rgs):
10573 Support SCAN_DEAD_STORE.
10574
c9220e3a
NB
105752002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
10576
10577 * c-common.c (c_common_init): Set CPP arithmetic precision.
10578 * cppexp.c (cpp_num_part): Move typedef ...
10579 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
10580 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
10581 (sanity_checks): Update.
10582
e34a3d31
GK
105832002-05-26 Geoffrey Keating <geoffk@redhat.com>
10584
10585 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
10586 (mkheaders): New rule.
10587 (install-mkheaders): New rule.
10588 * configure.in (all_outputs): Add mkheaders.
10589 * configure: Regenerate.
10590 * mkheaders.in: New file.
10591
9059e33c
JJ
105922002-05-26 Jakub Jelinek <jakub@redhat.com>
10593
10594 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
10595
291cc0fe
AJ
105962002-05-26 Andreas Jaeger <aj@suse.de>
10597
10598 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
10599
91318908
NB
106002002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
10601
10602 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
10603 right_shift): Remove.
10604 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
10605 HIGH_PART): New.
10606 (struct op): Use cpp_num.
10607 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
10608 num_part_mul, num_unary_op, num_binary_op, num_negate,
10609 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
10610 num_div_op, num_lshift, num_rshift, append_digit): New.
10611 (interpret_number, parse_defined, eval_token, reduce): Update
10612 for two-integer arithmetic.
10613 (binary_handler): New typedef.
10614 (optab): Update.
10615 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
10616 (_cpp_parse_expr, reduce): Update to handle two-integers.
10617 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
10618
331ca350
MM
106192002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
10620
10621 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
10622 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
10623 branch insn into account, do not assume 1.
10624 (avr_out_sbxx_branch): New function. Optimize cases of skipping
10625 over single word insn. Handle upper half of I/O space too.
10626 * config/avr/avr.md (*sbrx_branch): Use it.
10627 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
10628 (*sbix_branch, *sbix_branch_bit7): Likewise.
10629 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
10630 Use RTL peepholes to optimize register operand sign tests.
10631
bcb6a2be
MM
106322002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
10633
10634 * config/avr/avr.c (avr_asm_only_p): New variable.
10635 (avr_override_options): Set it here if AVR1.
10636 (asm_file_start): Test it here, report an error if set.
10637
ca7fd9cd
KH
106382002-05-26 Kazu Hirata <kazu@cs.umass.edu>
10639
10640 * alias.c: Fix formatting.
10641 * attribs.c: Likewise.
10642 * bb-reorder.c: Likewise.
10643 * bitmap.c: Likewise.
10644 * bitmap.h: Likewise.
10645 * builtins.c: Likewise.
10646
a65dc37d
JH
10647Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
10648
10649 * reload.c (find_valid_class): Accept new argument DEST,
10650 choose class accordingly.
10651 (push_reload): Update callers.
10652
9b89393b
AJ
106532002-05-26 Andreas Jaeger <aj@suse.de>
10654
10655 * combine.c (combine_instructions): Do not indent #if for
10656 traditional C.
10657
b53bb376
RH
106582002-05-25 Richard Henderson <rth@redhat.com>
10659
10660 * c-pragma.c (apply_pragma_weak): Convert value identifier to
10661 string for decl_attributes.
10662 (handle_pragma_weak): Call assemble_alias if we're modifying
10663 an existing decl.
10664
e133041b
RH
106652002-05-25 Richard Henderson <rth@redhat.com>
10666
10667 PR target/6788
10668 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
10669 using rtl instead of fprintf.
10670 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
10671 * config/sparc/sparc-protos.h: Update.
10672
81a75f0f
NB
106732002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
10674
10675 * Makefile.in (C_COMMON_H): Fix.
10676 Update other targets.
10677 * c-common.c: Don't include c-lex.h.
10678 (builtin_define_with_value): Make static and prototype.
10679 (builtin_define_std): Move from c-lex.h.
10680 * c-common.h (init_c_lex): Move from c-lex.h.
10681 * c-decl.c: Don't include c-lex.h.
10682 (make_pointer_declarator): Move from c-parse.in.
10683 * c-lex.c: Don't include c-lex.h.
10684 * c-lex.h: Remove.
10685 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
10686 (make_pointer_declarator): Move to c-decl.c.
10687 * c-pragma.c: Don't include c-lex.h.
10688 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
10689 * c-tree.h (make_pointer_declarator): New.
10690doc:
10691 * passes.texi, tm.texi: Update.
10692objc:
10693 * Make-lang.in: Update and correct.
10694 * objc-act.c: Don't include c-lex.h or cpplib.h.
10695treelang:
10696 * treetree.c: Don't include c-lex.h.
10697config:
10698 * darwin-c.c: Don't include c-lex.h.
10699 * c4x/c4x-c.c: Don't include c-lex.h.
10700 * c4x/t-c4x: Update.
10701 * i370/i370-c.c: Don't include c-lex.h.
10702 * i370/t-i370: Update.
10703 * i960/i960-c.c: Don't include c-lex.h.
10704 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
10705 * i960/t-960bare: Update.
10706 * i960/t-vxworks: Update.
10707 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
10708 * rs6000/t-darwin: Update.
10709 * rs6000/t-rs6000-c-rule: Update.
10710 * v850/v850-c.c: Don't include c-lex.h.
10711 * v850/v850.c: Don't include c-lex.h or cpplib.h.
10712
10713
04d2be8e
KH
107142002-05-25 Kazu Hirata <kazu@cs.umass.edu>
10715
10716 * tree.def: Fix typos.
10717 * doc/install.texi: Likewise.
10718
7b6e506e
RH
107192002-05-25 Richard Henderson <rth@redhat.com>
10720
10721 * configure.in (HAVE_AS_TLS): Add ia64 test.
10722 * configure: Rebuild.
10723 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
10724 (override_options): Set it.
10725 (TARGET_HAVE_TLS): New.
10726 (sdata_symbolic_operand): Look for 's'.
10727 (tls_symbolic_operand): New.
10728 (ia64_expand_load_address): Abort for tls symbols.
10729 (gen_tls_get_addr): New.
10730 (gen_thread_pointer): New.
10731 (ia64_expand_move): Split out from movdi. Handle tls symbols.
10732 (rtx_needs_barrier): Add new unspecs.
10733 (ia64_encode_section_info): Handle tls symbols.
10734 (ia64_strip_name_encoding): Strip two encoding chars.
10735 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
10736 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
10737 (TARGET_OPTIONS): Add tls-size.
10738 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
10739 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
10740 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
10741 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
10742 (movsf, movdf): Likewise.
10743 (movdi_symbolic): Use match_scratch. Don't split if we won't
10744 have a scratch availiable.
10745 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
10746 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
10747 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
10748 * config/ia64/ia64-protos.h: Update.
10749 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
10750 sdata_symbolic_operand.
10751 (ASM_OUTPUT_LABELREF): Strip two characters.
10752
8c1d52a3
KH
107532002-05-25 Kazu Hirata <kazu@cs.umass.edu>
10754
10755 * combine.c (simplify_set): Remove an unnecessary subreg.
10756
b47cae3d
MM
107572002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
10758
10759 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
10760
10761 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
10762
ce9e3a6d
GDR
107632002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
10764
10765 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
10766
fb2c6841
RS
107672002-05-25 Roger Sayle <roger@eyesopen.com>
10768
10769 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
10770 (cond (compare x y) 0) into the equivalent (cond x y).
10771
da7ac8f1
GDR
107722002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
10773
10774 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
10775
c7bdf0a6
ZW
107762002-05-24 Zack Weinberg <zack@codesourcery.com>
10777
10778 * config.gcc: Remove all stanzas for previously obsoleted
10779 systems. Where necessary, add explicit error stanzas to
10780 prevent removed systems from being misidentified as something
10781 else. Begin a fresh obsoletions list, with the systems that
10782 were reprieved last round.
10783 * doc/install.texi: Remove all mention of dead targets.
10784 * fixinc/mkfixinc.sh: Likewise.
10785
10786 * config/arm/arm.h: Bit 31 of target_flags is no longer
10787 reserved.
10788
10789 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
10790 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
10791 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
10792 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
10793 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
10794 config/alpha/osf12.h, config/alpha/osf2or3.h,
10795 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
10796 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
10797 config/clipper/clipper-protos.h, config/clipper/clipper.c,
10798 config/clipper/clipper.h, config/clipper/clipper.md,
10799 config/clipper/clix.h, config/convex/convex-protos.h,
10800 config/convex/convex.c, config/convex/convex.h,
10801 config/convex/convex.md, config/convex/fixinc.convex,
10802 config/convex/proto.h, config/elxsi/elxsi-protos.h,
10803 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
10804 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
10805 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
10806 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
10807 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
10808 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
10809 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
10810 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
10811 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
10812 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
10813 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
10814 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
10815 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
10816 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
10817 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
10818 config/m68k/altos3068.h, config/m68k/apollo68.h,
10819 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
10820 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
10821 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
10822 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
10823 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
10824 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
10825 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
10826 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
10827 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
10828 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
10829 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
10830 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
10831 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
10832 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
10833 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
10834 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
10835 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
10836 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
10837 config/mips/dec-osf1.h, config/mips/elflorion.h,
10838 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
10839 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
10840 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
10841 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
10842 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
10843 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
10844 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
10845 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
10846 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
10847 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
10848 config/ns32k/sequent.h, config/ns32k/tek6000.h,
10849 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
10850 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
10851 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
10852 config/sparc/rtems.h, config/we32k/we32k-protos.h,
10853 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
10854 Delete file.
10855
755ac5d4
RH
108562002-05-24 Richard Henderson <rth@redhat.com>
10857
10858 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
10859 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
10860 * config/i386/i386.c (tls_model_chars): Add leading space.
10861 (tls_symbolic_operand): Don't bias by 1.
10862 (legitimize_address): Don't unbias by 1.
10863
c429f12e
TM
108642002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
10865
10866 * lcm.c (optimize_mode_switching): Change bb used as indices
10867 to bb->index.
10868
8beda321
RH
108692002-05-24 Richard Henderson <rth@redhat.com>
10870
10871 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
10872 of update_life_info_in_dirty_blocks.
10873
90442291
JJ
108742002-05-24 Jakub Jelinek <jakub@redhat.com>
10875
10876 PR other/6782
10877 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
10878
3620711b
NB
108792002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
10880
10881 PR preprocessor/6780
10882 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
10883
2f8d482e
JB
108842002-05-24 Jim Blandy <jimb@redhat.com>
10885
10886 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
10887 entry with a type code of zero, marking the end of the compilation
10888 unit's macro info.
10889
95bfe95f
RH
108902002-05-24 Richard Henderson <rth@redhat.com>
10891
c7bdf0a6
ZW
10892 * varasm.c (asm_output_bss): Always output one byte.
10893 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
95bfe95f 10894
7efda054
BM
108952002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
10896
10897 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
10898 namespace.
10899
8a951190
AJ
109002002-05-24 Andreas Jaeger <aj@suse.de>
10901
10902 * ggc-page.c (alloc_page): Cast variables of type size_t to
10903 unsigned long, adjust printf format string.
10904 (ggc_alloc): Likewise.
10905 (ggc_print_statistics): Likewise.
10906 (ggc_print_statistics): Correct printf format string for SCALE to
10907 use unsigned long.
10908
f29e2ec0
DS
109092002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
10910
10911 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
10912
211a0cbe 109132002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
c7bdf0a6 10914 Zack Weinberg <zack@codesourcery.com>
211a0cbe
GDR
10915
10916 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
10917 quoted strings.
10918 * dwarf2out.c (lookup_filename): Properly quote filename in .file
8a951190 10919 directive in assembly file.
211a0cbe
GDR
10920 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
10921 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
10922 * config/pj/pj.h (ASM_FILE_START): Likewise.
10923 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10924 * config/avr/avr.c (asm_file_end): Likewise.
10925 * toplev.c (output_quoted_string): Handle possibly signed plain
8a951190 10926 char.
211a0cbe
GDR
10927 * toplev.h (output_clean_symbol_name): Declare
10928 * toplev.c (output_clean_symbol_name): Define.
10929 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
10930 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
10931
2f0552b6
AM
109322002-05-24 Alan Modra <amodra@bigpond.net.au>
10933
10934 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
10935
b326b2c1
VM
109362002-05-23 Vladimir Makarov <vmakarov@redhat.com>
10937
10938 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
10939 of size of unsigned.
10940
f996902d
RH
109412002-05-23 Richard Henderson <rth@redhat.com>
10942
10943 * configure.in (HAVE_AS_TLS): New test.
10944 * config.in, configure: Rebuild.
10945 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
10946 (ix86_tls_dialect_string, ix86_tls_dialect): New.
10947 (override_options): Set it.
10948 (tls_model_chars, tls_symbolic_operand): New.
10949 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
10950 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
10951 (local_exec_symbolic_operand): New.
10952 (get_pic_label_name): Merge into output_set_got.
10953 (ix86_asm_file_end): Emit pic_label_name if defined.
10954 (legitimate_constant_p, constant_address_p): New.
10955 (legitimate_pic_operand_p): New.
10956 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
10957 (legitimate_address_p): Likewise.
10958 (ix86_encode_section_info): Rename from i386_; handle tls decls.
10959 (ix86_strip_name_encoding): New.
10960 (get_thread_pointer): New.
10961 (legitimize_address): Handle tls symbols.
10962 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
10963 Remove UNSPEC_PLT.
10964 (struct machine_function): Add some_ld_name.
10965 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
10966 (print_operand) [&]: Use it. Handle UNSPEC_TP.
10967 (output_addr_const_extra): New.
10968 (maybe_get_pool_constant): New.
10969 (ix86_split_to_parts): Use it.
10970 (ix86_expand_move): Handle tls symbols.
10971 (ix86_tls_get_addr): New.
10972 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
10973 (TARGET_OPTIONS): Add tls-dialect.
10974 (CONSTANT_ADDRESS_P): Use new out-of-line function.
10975 (LEGITIMATE_CONSTANT_P): Likewise.
10976 (LEGITIMATE_PIC_OPERAND_P): Likewise.
10977 (TARGET_STRIP_NAME_ENCODING): New.
10978 (ASM_OUTPUT_LABELREF): New.
10979 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
10980 (OUTPUT_ADDR_CONST_EXTRA): New.
10981 (PREDICATE_CODES): Update.
10982 (ix86_tls_dialect, ix86_tls_dialect_string): New.
10983 * config/i386/i386.md: Regroup and renumber unspec constants.
10984 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
10985 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
10986 (tls_global_dynamic, tls_local_dynamic_base): New.
10987 (tls_local_dynamic_once): New.
10988 * config/i386/i386-protos.h: Update.
10989
821e35ba
RH
109902002-05-23 Richard Henderson <rth@redhat.com>
10991
10992 * genemit.c (gen_insn): Print file:lineno comment before function.
10993 (main): likewise.
10994 * gensupport.c (struct queue_elem): Add filename member.
10995 (queue_pattern): Initialize it; update all callers.
10996 (process_include): Don't free filename.
10997 (read_md_rtx): Set read_rtx_filename.
10998
0f1ffa23 109992002-05-23 Hans Boehm <Hans_Boehm@hp.com>
821e35ba
RH
11000
11001 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
0f1ffa23 11002
8e9fadc3
RH
110032002-05-23 Richard Henderson <rth@redhat.com>
11004
11005 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
11006
244c2241
RH
110072002-05-23 Richard Henderson <rth@redhat.com>
11008
11009 * doc/extend.texi (C++98 Thread-Local Edits): Update with
11010 commentary from Mark.
11011
e0082a72
ZD
110122002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11013
11014 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
11015 Use FOR_EACH_BB macros to iterate over basic block chain.
11016 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
11017 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
11018 Likewise.
11019 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
11020 find_unreachable_blocks, create_edge_list, verify_edge_list,
11021 remove_fake_edges, add_noreturn_fake_exit_edges,
11022 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
11023 Likewise.
11024 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
11025 find_sub_basic_blocks): Likewise.
11026 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
11027 Likewise.
11028 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
11029 Likewise.
11030 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
11031 Likewise.
11032 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
11033 commit_edge_insertions, commit_edge_insertions_watch_calls,
11034 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
11035 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
11036 * conflict.c (conflict_graph_compute): Likewise.
11037 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
11038 df_modified_p, df_refs_unlink, df_dump): Likewise.
11039 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
11040 * final.c (compute_alignments): Likewise.
11041 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
11042 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
11043 count_or_remove_death_notes): Likewise.
11044 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
11045 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
11046 classic_gcse, compute_transp, cprop, compute_pre_data,
11047 compute_transpout, invalidate_nonnull_info,
11048 delete_null_pointer_checks_1, delete_null_pointer_checks,
11049 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
11050 compute_store_table, build_store_vectors, store_motion): Likewise.
11051 * global.c (global_conflicts, mark_elimination): Likewise.
11052 * graph.c (print_rtl_graph_with_bb): Likewise.
11053 * haifa-sched.c (sched_init): Likewise.
11054 * ifcvt.c (if_convert): Likewise.
11055 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
11056 compute_available, compute_nearerout, compute_rev_insert_delete,
11057 optimize_mode_switching): Likewise.
11058 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
11059 * predict.c (estimate_probability, note_prediction_to_br_prob,
11060 propagate_freq, counts_to_freqs, expensive_function_p,
11061 estimate_bb_frequencies): Likewise.
11062 * profile.c (instrument_edges, get_exec_counts,
11063 compute_branch_probabilities, compute_checksum, branch_prob,
11064 find_spanning_tree): Likewise.
11065 * recog.c (split_all_insns, peephole2_optimize): Likewise.
11066 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
11067 Likewise.
11068 * regclass.c (scan_one_insn, regclass): Likewise.
11069 * regmove.c (mark_flags_life_zones, regmove_optimize,
11070 record_stack_memrefs): Likewise.
11071 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
11072 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
11073 * resource.c (find_basic_block): Likewise.
11074 * sched-ebb.c (schedule_ebbs): Likewise.
11075 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
11076 find_single_block_region, find_rgns, schedule_insns)
11077 * sibcall.c (optimize_sibling_and_tail_recursive_call)
11078 * ssa-ccp.c (optimize_unexecutable_edges,
11079 ssa_ccp_df_delete_unreachable_insns): Likewise.
11080 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
11081 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
11082 rename_block, convert_to_ssa, compute_conservative_reg_partition,
11083 compute_coalesced_reg_partition, rename_equivalent_regs,
11084 convert_from_ssa): Likewise.
11085 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
11086 process_for_unwind_directive): Likewise.
11087
11088 * df.c (FOR_ALL_BBS): Removed.
11089 * gcse.c (struct null_pointer_info): Type of current_block field
11090 changed.
11091 (struct reg_avail_info): Type of last_bb field changed.
11092 * config/ia64/ia64.c (block_num): Removed.
11093 (need_copy_state): Type changed.
11094 (last_block): New.
11095
17645b15
NB
110962002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
11097
11098 * cppinit.c (mark_named_operators): Split out from init_builtins.
11099 (cpp_finish_options): Call it from here instead.
11100
79ed7328
JT
111012002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
11102
11103 * builtin-attrs.def: Update copyright years.
11104 (ATTR_NONNULL): New attribute identifier.
11105 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
11106 attribute tree lists.
11107 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
11108 format operand.
11109 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
11110 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
11111 attribute lists. Chain the appropriate nonnull attribute.
11112 * c-format.c (check_format_arg): Remove null format string
11113 warning.
11114 * testsuite/gcc.dg/format/null-1.c: New test.
11115
7d600178
RO
111162002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11117
11118 * Makefile.in (ADAC): Define.
11119 (SYSLIBS): Define.
11120 (.SUFFIXES): Move before language makefile fragments.
11121 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
11122
5ff225fc
MM
111232002-05-23 Mark Mitchell <mark@codesourcery.com>
11124
11125 * varasm.c (make_decl_rtl): Don't allow weak variables to be
11126 placed in common.
11127
0f72964f
JH
11128Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
11129
11130 * cfg.c (dump_flow_info): Print results of
11131 maybe_hot/probably_never_executed predicates.
11132 * toplev.c (open_dump_file): Print function frequency.
11133
c863f8c2
DM
111342002-05-23 David S. Miller <davem@redhat.com>
11135
11136 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
11137 regsets.
11138
b34c7881
JT
111392002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
11140
11141 * c-common.c (warn_nonnull): Declare.
11142 (c_common_attribute_table): Add "nonnull" attribute.
11143 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
11144 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
11145 check_function_arguments_recurse): New functions.
11146 * c-common.h (warn_nonnull): Declare extern.
11147 (check_function_arguments, check_function_arguments_recurse): New
11148 prototypes.
11149 * c-decl.c (c_decode_option): Add -Wnonnull option.
11150 * c-format.c (set_Wformat): Set warn_nonnull if enabling
11151 format checking.
11152 (format_check_context): New structure.
11153 (check_format_info_recurse): Remove recursion and rename to...
11154 (check_format_arg): ...this. Update comment.
11155 (check_format_info): Use check_function_arguments_recurse.
11156 * c-typeck.c (build_function_call): Call check_function_arguments
11157 instead of check_function_format.
11158 * doc/extend.texi: Document "nonnull" attribute.
11159 * doc/invoke.texi: Docuemnt -Wnonnull option.
11160 * testsuite/gcc.dg/nonnull-1.c: New test.
11161 * testsuite/gcc.dg/nonnull-2.c: New test.
11162
95479831
DM
111632002-05-23 David S. Miller <davem@redhat.com>
11164
11165 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
11166 * cfgcleanup.c (cleanup_cfg): If it is set do not
11167 attempt to delete trivially dead insns.
11168 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
11169 * toplev.c (rest_of_compilation): Document non-trivial aspect
11170 the RTL before optimize_save_area_alloca is run.
11171
a97d1398
NB
111722002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
11173
11174 * c-lex.c (indent_level): Remove.
11175 (cb_file_change, c_lex): Remove indent level handling.
11176 * c-lex.h (indent_level): Remove.
11177 * input.h (struct file_stack): Remove indent_level.
11178 * toplev.c (push_srcloc): Remove indent_level handling.
11179
66b408f2
JJ
111802002-05-23 Jakub Jelinek <jakub@redhat.com>
11181
11182 PR target/6753
11183 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
11184 of x in constraints for clarity.
11185 (sse_mov?fcc split): abort if op2 == op3.
11186 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
11187 sse_movsfcc_const0_4): Add earlyclobber.
11188 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
11189 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
11190 Use Y instead of x in constraints.
11191
5bf0ebab
RH
111922002-05-23 Richard Henderson <rth@redhat.com>
11193
9217ef40
RH
11194 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
11195 (C++98 Thread-Local Edits): New subsection.
11196
5bf0ebab
RH
11197 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
11198 (ix86_arch): Set type to enum processor_type.
11199
8a951190 11200 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5bf0ebab
RH
11201 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
11202
4832c9e1
JJ
112032002-05-23 Jakub Jelinek <jakub@redhat.com>
11204
11205 * configure.in: Fix as version test for binutils 2.12.1 releases
11206 (without dates).
11207 * configure: Rebuilt.
11208
c8c03509
RH
112092002-05-23 Richard Henderson <rth@redhat.com>
11210
11211 * config/i386/i386.c (get_pic_label_name): New.
11212 (load_pic_register): Remove.
11213 (output_set_got): New.
11214 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
11215 * config/i386/i386.md (UNSPEC_SET_GOT): New.
11216 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
11217 (prologue_set_got, prologue_get_pc): Remove.
11218 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
11219 (builtin_setjmp_receiver): Use gen_set_got.
11220 * config/i386/i386-protos.h: Update.
11221
d51f3632
JH
11222Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
11223
11224 * gcse.c (hash_expr): Do not use alias set for hashing.
11225
b0a93386
KB
112262002-05-22 Kevin Buettner <kevinb@redhat.com>
11227
11228 * dbxout.c (dbxout_class_name_qualifiers): New function.
11229 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
11230
bdee42b1
NB
112312002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
11232
11233 * cpperror.c (_cpp_begin_message): No special casing
11234 of CPP_FATAL_LIMIT.
11235 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
11236 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
11237 * cpplib.c (do_include_common): Use DL_ERROR.
11238 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
11239 (DL_ICE): Renumber.
11240 * fix-header.c (read_scan_file): Update.
11241
0e07aff3
RH
112422002-05-22 Richard Henderson <rth@redhat.com>
11243
11244 * config/i386/i386.c (ix86_expand_call): New function, extracted
11245 from md call patterns. Add pic_offset_table_rtx to
11246 CALL_INSN_FUNCTION_USAGE when needed.
11247 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
11248 (call_value_pop, call_value, untyped_call): Likewise.
11249 (call_exp, call_value_exp): Remove.
11250 * config/i386/i386-protos.h: Update.
11251
6f001fdf
RH
112522002-05-22 Richard Henderson <rth@redhat.com>
11253
11254 * varasm.c (default_section_type_flags): Check for VAR_DECL
11255 before using DECL_THREAD_LOCAL.
11256
cbaaba19
DE
112572002-05-22 David Edelsohn <edelsohn@gnu.org>
11258
11259 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
11260 (STARTFILE_SPEC): Delete PE crt0.o.
11261 * config/rs6000/aix51.h: Same.
11262 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
11263 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
11264 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
11265 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
11266 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
11267
c711ba8e
RH
112682002-05-22 Richard Henderson <rth@redhat.com>
11269
11270 * varasm.c (default_section_type_flags): Handle tls data and
11271 default sections.
11272 (default_unique_section): Handle tls sections.
11273
343f59d9
AM
112742002-05-23 Alan Modra <amodra@bigpond.net.au>
11275
11276 * configure.in (CROSS): Define NATIVE_CROSS.
11277 * configure: Regenerate.
11278 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
11279 (startfile_prefix_spec): New var.
11280 (static_specs): Add startfile_prefix_spec.
11281 (do_spec_2): Split out from..
11282 (do_spec): ..here.
11283 (main): Process startfile_prefix_spec.
11284 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
11285 dynamic linker.
11286 (STARTFILE_PREFIX_SPEC): Define.
11287 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
c7bdf0a6 11288 absolute paths.
343f59d9 11289
df383483
KH
112902002-05-22 Kazu Hirata <kazu@cs.umass.edu>
11291
11292 * cpperror.c: Fix formatting.
11293 * cppexp.c: Likewise.
11294 * cppfiles.c: Likewise.
11295 * cpphash.c: Likewise.
11296 * cpphash.h: Likewise.
11297 * cppinit.c: Likewise.
11298 * cpplex.c: Likewise.
11299 * cpplib.c: Likewise.
11300 * cppmacro.c: Likewise.
11301 * cppmain.c: Likewise.
11302 * cppspec.c: Likewise.
11303
2dd36f90
JJ
113042002-05-22 Jakub Jelinek <jakub@redhat.com>
11305
11306 * combine.c (force_to_mode): Use gen_int_mode.
11307 Don't clear CONST_INT bits outside of mode.
11308
8dc02d7f
RH
113092002-05-22 Richard Henderson <rth@redhat.com>
11310
11311 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
11312 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
11313
45f79783
JJ
113142002-05-22 Jakub Jelinek <jakub@redhat.com>
11315
11316 PR c/6643
11317 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
11318 if DECL_SIZE_UNIT is INTEGER_CST.
11319
19f71cd7
RH
113202002-05-22 Richard Henderson <rth@redhat.com>
11321
11322 * flow.c (life_analysis): Delete broken reg_label check.
11323
d5bcfcce
RH
113242002-05-22 Richard Henderson <rth@redhat.com>
11325
11326 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
11327 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
11328
985d311b 11329Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5ff94354
R
11330
11331 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
11332 (embed-bb.c): New rule.
985d311b 11333 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
5ff94354
R
11334 * config/sh/embed_bb.c: Delete.
11335
985d311b
R
11336Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
11337
11338 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
11339
f6d45746
KH
113402002-05-22 Kazu Hirata <kazu@cs.umass.edu>
11341
11342 * config/h8300/h8300.md (*andorqi3): New.
11343
e5f3b786
NB
113442002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
11345
11346 PR preprocessor/6517
11347 * Makefile.in: Update.
11348 * c-common.c (c_common_post_options): Add preprocessor
11349 errors to the error count.
11350 * c-lang.c (c_post_options): Kill.
11351 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
11352 * hooks.h: Add header guards.
11353 * langhooks-def.h: Include hooks.h.
11354 (LANG_HOOKS_POST_OPTIONS): Update.
11355 * langhooks.h (struct lang_hooks): Update post_options.
11356 * toplev.c (parse_options_and_default_flags): Update.
11357objc:
11358 * objc-lang.c (objc_post_options): Kill.
11359 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
11360
4c526be3
BK
113612002-05-21 Bruce Korb <bkorb@gnu.org>
11362
11363 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
021c1f34
BK
11364 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
11365 * fixinc/fixincl.x: regen.
4c526be3 11366
f87c27b4
KH
113672002-05-21 Kazu Hirata <kazu@cs.umass.edu>
11368
11369 * cfgbuild.c: Fix formatting.
11370 * cfg.c: Likewise.
11371 * cfgcleanup.c: Likewise.
11372 * cfglayout.c: Likewise.
11373 * cfgloop.c: Likewise.
11374 * cfgrtl.c: Likewise.
11375
3d78f2e9
RH
113762002-05-21 Richard Henderson <rth@redhat.com>
11377
11378 * c-common.h (enum rid): Add RID_THREAD.
11379 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
11380 (grokdeclarator): Grok __thread.
11381 * c-parse.in (reswords): Add __thread.
11382 (rid_to_yy): Add RID_THREAD.
11383
11384 * tree.h (DECL_THREAD_LOCAL): New.
11385 (struct tree_decl): Add thread_local_flag.
11386 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
11387 * tree.c (staticp): TLS variables are not static.
11388
11389 * target-def.h (TARGET_HAVE_TLS): New.
11390 * target.h (have_tls): New.
11391 * output.h (SECTION_TLS): New.
11392 * varasm.c (assemble_variable): TLS variables can't be common for now.
11393 (default_section_type_flags): Handle .tdata and .tbss.
11394 (default_elf_asm_named_section): Handle SECTION_TLS.
11395 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
11396
11397 * flags.h (flag_tls_default): Declare.
11398 * toplev.c (flag_tls_default): Define.
11399 (display_help): Display help for it.
11400 (decode_f_option): Set it.
11401
11402 * doc/extend.texi (Thread-Local): New node describing language-level
11403 thread-local storage.
11404 * doc/invoke.texi (-ftls-model): Document.
11405
11406 * fixinc/inclhack.def (thread_keyword): New.
11407 * fixinc/fixincl.x: Rebuild.
11408
a151daf0
JL
114092002-05-21 Jeffrey A Law <law@redhat.com>
11410
8a951190 11411 * optabs.c (expand_binop): For double-word integer multiplies,
c7539aa0
JL
11412 do not compute intermediate results into something that is
11413 not a register (such as a SUBREG or MEM).
11414
a151daf0
JL
11415 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
11416 (ix86_sched_reorder): Make sure to initialize scheduling
11417 data even when there's only one insn in the ready queue.
11418
96b1f73b
VM
114192002-05-21 Vladimir Makarov <vmakarov@redhat.com>
11420
11421 * genautomata.c (reserv_sets_hash_value): Fix a typo.
11422
dceb2b75
VM
114232002-05-21 Vladimir Makarov <vmakarov@redhat.com>
11424
11425 * genautomata.c (reserv_sets_hash_value): Define hash_value as
11426 set_el_t. Transform the hash value into unsigned.
11427 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
11428 (transform_3): Add code to process `(A,B)+(D,E)'.
11429
159d5964
NY
114302002-05-21 NIIBE Yutaka <gniibe@m17n.org>
11431
11432 * reload1.c (do_output_reload): Run delete_output_reload
11433 only if optimizing.
11434
cf5124f6
RS
114352002-05-21 Roger Sayle <roger@eyesopen.com>
11436
11437 PR middle-end/6600
11438 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
11439 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
11440 (can_store_by_pieces): ... and here to limit the largest mode used.
11441 Add a comment to document this function.
11442
380e6ade
RH
114432002-05-21 Richard Henderson <rth@redhat.com>
11444
11445 * flow.c (life_analysis): Fix test for deleted label.
11446
1f95326c
NB
114472002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
11448
11449 * doc/tm.texi: Fix typo.
11450
2a1dc0d8
ZW
114512002-05-21 Zack Weinberg <zack@codesourcery.com>
11452
11453 * c-common.c (c_common_init): Set options->unsigned_char from
11454 flag_signed_char.
11455 (cb_register_builtins): Define __STRICT_ANSI__ and
11456 __CHAR_UNSIGNED__ here...
11457 * cppinit.c (init_builtins): Not here.
11458 (cpp_create_reader): unsigned_char option defaults to 0, not
11459 !DEFAULT_SIGNED_CHAR.
11460 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
11461 and -funsigned-char.
11462
11463 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
11464 * cpphash.c (_cpp_init_hashtable): Don't set it.
11465 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
11466 directly. Clarify comment.
11467
d29146f2 114682002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2a1dc0d8 11469
f5eb2fc8
ZD
11470 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
11471 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
11472 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
11473 BASIC_BLOCK (n_basic_blocks - 1).
d29146f2 11474 * cfganal.c (can_fallthru, flow_call_edges_add,
f5eb2fc8 11475 flow_preorder_transversal_compute): Too.
d29146f2 11476 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
f5eb2fc8
ZD
11477 find_sub_basic_blocks): Too.
11478 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
d29146f2 11479 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
f5eb2fc8
ZD
11480 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
11481 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
d29146f2
ZD
11482 * combine.c (this_basic_block): Type changed to basic_block.
11483 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
11484 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
f5eb2fc8
ZD
11485 get_last_value, distribute_notes, distribute_links): Too.
11486 * final.c (compute_alignments): Too.
11487 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
11488 * function.c (thread_prologue_and_epilogue_insns): Too.
11489 * gcse.c (compute_code_hoist_vbeinout): Too.
11490 * global.c (build_insn_chain): Too.
11491 * ifcvt.c (find_if_block, find_cond_trap): Too.
11492 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
11493 * regmove.c (regmove_optimize): Too.
11494 * resource.c (find_basic_block): Too.
11495 * sched-ebb.c (schedule_ebbs): Too.
11496 * ssa-dce.c (find_control_dependence, find_pdom): Too.
d29146f2 11497
68bd6dd6
AJ
114982002-05-21 Andreas Jaeger <aj@suse.de>
11499
11500 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
11501
35a76aac
RH
115022002-05-21 Richard Henderson <rth@redhat.com>
11503
11504 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
11505 unspec names, not numbers.
11506
2870428f
JM
115072002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
11508
11509 * doc/sourcebuild.texi: Mention snapshot-README and
11510 snapshot-index.html as needing updating for new front ends.
11511
b0ad77d5
KG
115122002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11513
11514 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
11515 disabling checking, and avoid multiple evaluation of RTX.
11516
279be7c8
RE
115172002-05-21 Richard Earnshaw <rearnsha@arm.com>
11518
11519 * bitmap.c (bitmap_find_bit): Return early if we have the correct
11520 element cached.
11521
193a563a
JH
11522Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
11523
11524 * profile.c (gen_edge_profiler): Set alias set before the memory is
11525 used.
11526
31825e57
DM
115272002-05-20 David S. Miller <davem@redhat.com>
11528
11529 * cselib.c (max_value_regs): New.
11530 (cselib_lookup, cselib_invalidate_regno): Initialize it when
11531 adding new entries to the REG_VALUES table and we are dealing with
11532 a hard register.
11533 (clear_table): Initialize it.
11534 (cselib_invalidate_regno): Use it to determine which hard
11535 registers to scan when mode is not VOIDmode.
11536
68bd6dd6 115372002-05-20 Duraid Madina <duraid@fl.net.au>
29d83d60
DM
11538
11539 * tradcpp.c (fixup_newlines): Use old-style function header.
11540
e0a09fda
KW
115412002-05-20 Krister Walfridsson <cato@df.lth.se>
11542
11543 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
11544
e0c13c70
L
115452002-05-20 H.J. Lu (hjl@gnu.org)
11546
11547 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
11548
11549 * config/mips/mips.h (DFMODE_NAN): Defined.
11550 (SFMODE_NAN): Likewise.
11551
4c11675d 115522002-05-20 Dale Johannesen <dalej@apple.com>
e0c13c70 11553
2a1dc0d8
ZW
11554 * combine.c (cant_combine_insn_p): Back out my
11555 previous patch.
4c11675d 11556
6a4d6760
KH
115572002-05-20 Kazu Hirata <kazu@cs.umass.edu>
11558
11559 * params.c: Fix formatting.
11560 * params.h: Likewise.
11561 * predict.c: Likewise.
11562 * prefix.c: Likewise.
11563 * print-rtl.c: Likewise.
11564 * print-tree.c: Likewise.
11565 * profile.c: Likewise.
11566
5715ca64
L
115672002-05-20 H.J. Lu (hjl@gnu.org)
11568
11569 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
11570
00b89f01
NC
115712002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
11572
11573 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
11574 switches straight on to the assembler, do not abbreviate them.
11575 * config/arm/elf.h (ASM_SPEC): As above.
11576 * config/arm/semi.h (ASM_SPEC): As above.
11577 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
11578 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
11579 -mcpu=xscale on to the assembler by default.
11580 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
11581
1441374b
RH
115822002-05-20 Richard Henderson <rth@redhat.com>
11583
11584 * cse.c (canon_hash): Reorder do_not_record test. Always
11585 allow pic_offset_table_rtx.
11586
c0fe508e
TM
115872002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
11588
11589 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
11590 (expand_binop): Ditto (3 times).
11591
f362c762
MM
115922002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
11593
11594 * Makefile.in (distclean): Remove QMTest stuff.
11595 (QMTEST_PATH): New variable.
11596 (QMTESTFLAGS): Likewise.
11597 (QMTESTRUNFLAGS): Likewise.
11598 (QMTEST): Likewise.
11599 (QMTEST_GPP_TESTS): Likewise.
11600 (QMTEST_DIR): Likewise.
11601 (QMTEST_DIR/context): New target.
11602 (qmtest-g++): Likeise.
11603 (qmtest-gui): Likewise.
11604 (QMTEST_DIR/gpp-expected.qmr): Likewise.
11605
16861f33
AH
116062002-05-19 Aldy Hernandez <aldyh@redhat.com>
11607
2a1dc0d8
ZW
11608 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
11609 an altivec register if TARGET_ALTIVEC.
16861f33 11610
2a1dc0d8
ZW
11611 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
11612 to ALTIVEC_VECTOR_MODE.
11613 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
11614 (rs6000_va_arg): Vectors may go in registers if they are not
11615 altivec vectors.
16861f33 11616
23459e15
KH
116172002-05-19 Kazu Hirata <kazu@cs.umass.edu>
11618
11619 * protoize.c: Fix formatting.
11620
174cc7d1
RH
116212002-05-19 Richard Henderson <rth@redhat.com>
11622
11623 * gensupport.c (init_include_reader): Merge into ...
11624 (process_include): ... here. Simplify composite path creation.
11625 Plug memory leaks. Fix file/line number tracking. Do not
11626 process_define_cond_exec. Return void.
11627 (process_rtx): Don't check process_include return value.
11628
918ed612
ZD
116292002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11630
11631 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
11632 fields.
11633 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
11634 traversing basic block chain.
11635 (create_basic_block_structure, create_basic_block): Declaration changed.
11636 (link_block, unlink_block): Declare.
11637 * cfg.c (entry_exit_blocks): Initialize new fields.
11638 (link_block, unlink_block): New.
11639 (expunge_block_nocompact): Unlink basic block.
11640 (dump_flow_info): Print prev_bb/next_bb fields.
11641 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
11642 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
11643 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
11644 * cfgrtl.c (create_basic_block_structure, create_basic_block,
11645 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
11646 (verify_flow_info): Check that list agrees with numbering.
11647
e0322d5c
NB
116482002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
11649
11650 * c-common.c (preprocessing_asm): New macro.
11651 * c-lex.h (builtin_define, builtin_assert): Use pfile.
11652doc:
11653 * tm.texi: Update.
11654config/alpha:
11655 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
11656 (CPP_SPEC): Simplify.
11657 (TARGET_CPU_CPP_BUILTINS): Update.
11658 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
11659 (CPP_SPEC): Simplify.
11660 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
11661 (TARGET_OS_CPP_BUILTINS): Update.
11662 * osf.h (CPP_XFLOAT_SPEC): Kill.
11663 (TARGET_OS_CPP_BUILTINS): Update.
11664 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
11665 * osf5.h (CPP_XFLOAT_SPEC): Kill.
11666 * vms.h (CPP_SUBTARGET_SPEC): Kill.
11667 (TARGET_OS_CPP_BUILTINS): Update.
11668
121f5c2c
RH
116692002-05-19 Richard Henderson <rth@redhat.com>
11670
11671 * varasm.c (default_binds_local_p): Fix typo.
11672
651c5ed9
MM
116732002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
11674
11675 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
11676 CONST_INT operand to the correct mode after adding 1 to it.
11677
bce0deb2
MM
116782002-05-19 Mark Mitchell <mark@codesourcery.com>
11679
11680 * config.gcc (powerpc-wrs-windiss*): New target.
11681
4aa74a4f
FS
116822002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11683
11684 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
11685 (ashrdi3): Use it.
11686
a15135c9
MM
116872002-05-18 Mark Mitchell <mark@codesourcery.com>
11688
11689 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
11690 alphasort.
11691 * config.in: Regenerated.
11692 * configure: Regenerated.
11693
47754fd5
RH
116942002-05-19 Richard Henderson <rth@redhat.com>
11695
11696 * target-def.h (TARGET_BINDS_LOCAL_P): New.
11697 * target.h (struct gcc_target): Move boolean fields to the end.
11698 Add binds_local_p.
11699 * varasm.c (default_binds_local_p): New.
11700 * output.h: Declare it.
11701
11702 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
11703 * config/cris/cris.c (cris_encode_section_info): Likewise.
11704 * config/i386/i386.c (i386_encode_section_info): Likewise.
11705 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
11706 * config/sh/sh.c (sh_encode_section_info): Likewise.
11707
11708 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
11709 (TARGET_BINDS_LOCAL_P): New.
11710
fc881338
RH
117112002-05-19 Richard Henderson <rth@redhat.com>
11712
11713 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
11714 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
11715 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
11716
11717 * toplev.c (display_help): Kill -a -ax help.
11718
68bd6dd6 11719 * config/1750a/1750a.h, config/alpha/alpha.h,
fc881338
RH
11720 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
11721 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
11722 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
11723 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
11724
11725 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
11726 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
11727
11728 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
11729 (ix86_output_function_block_profiler): Kill.
11730 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
11731 (m68hc11_function_block_profiler): Kill.
11732 * config/m68hc11/m68hc11-protos.h: Update.
11733 * config/m88k/m88k.c (output_block_profiler): Kill.
11734 (output_function_block_profiler): Kill.
11735 * config/m88k/m88k-protos.h: Update.
11736
772c5265
RH
117372002-05-19 Richard Henderson <rth@redhat.com>
11738
11739 * system.h (STRIP_NAME_ENCODING): Poison it.
11740 * output.h (STRIP_NAME_ENCODING): Remove.
11741 (default_strip_name_encoding): Declare.
11742 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
11743 * target.h (strip_name_encoding): New.
11744 * varasm.c (default_strip_name_encoding): New.
11745
11746 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
11747 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
11748 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
11749 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
11750 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
11751 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
11752 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
11753 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
11754 config/v850/v850.h: Use the hook, not the macro.
11755
11756 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
11757 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
11758 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
11759 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
11760 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
11761 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
68bd6dd6 11762 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
772c5265
RH
11763 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
11764 config/v850/v850.c, config/v850/v850.h:
11765 Move STRIP_NAME_ENCODING to out-of-line function and add
11766 TARGET_STRIP_NAME_ENCODING.
11767
11768 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
11769 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
11770 with TARGET_STRIP_NAME_ENCODING referencing existing function;
11771 make function static.
11772
11773 * xcoffout.c: Include target.h
11774 * Makefile.in (xcoffout.o): Update.
11775
11776 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
11777 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
11778 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
11779 reloc argument unused.
11780 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
11781
11782 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
11783 STRIP_NAME_ENCODING docs.
11784
8f9eb495
AJ
117852002-05-19 Andreas Jaeger <aj@suse.de>
11786
11787 * gengenrtl.c: Add prototype for excluded_rtx.
11788
11789 * real.h: Add prototype for exact_real_truncate.
11790
fb49053f
RH
117912002-05-18 Richard Henderson <rth@redhat.com>
11792
11793 * system.h (ENCODE_SECTION_INFO): Poison it.
11794 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
11795 * target.h (encode_section_info): New.
11796 * varasm.c (make_decl_rtl, output_constant_def): Use it.
11797 * hooks.c (hook_tree_int_void): New.
11798 * hooks.h: Declare it.
11799
11800 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
11801 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
11802 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
11803 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
11804 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
11805 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
11806 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
11807 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
11808 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
11809 config/mcore/mcore-protos.h, config/mcore/mcore.c,
11810 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
11811 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
11812 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
11813 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
11814 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
11815 referencing existing function. Make function static.
11816
11817 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8f9eb495 11818 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
fb49053f
RH
11819 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
11820 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
11821 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8f9eb495 11822 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
fb49053f
RH
11823 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
11824 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
11825 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
11826 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8f9eb495 11827 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
fb49053f
RH
11828 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
11829 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
11830 Move ENCODE_SECTION_INFO to out-of-line function and add
11831 TARGET_ENCODE_SECTION_INFO.
11832
11833 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
11834 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11835
11836 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
11837 from SUBTARGET_*
11838 (switch_to_section): Replace in_rdata case with in_readonly_data.
11839
11840 * config/h8300/h8300.c (h8300_encode_label): Make static.
11841 * config/h8300/h8300-protos.h: Update.
11842
11843 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
11844 from rs6000_encode_section_info; make static.
11845 (rs6000_xcoff_encode_section_info): New.
11846
11847 * config/v850/v850.c (v850_encode_data_area): Make static.
11848 * config/v850/v850-protos.h: Update.
11849
11850 * config/vax/vax.c: Include flags.h.
11851 (vms_select_section): Fix typo.
11852
11853 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
11854 ENCODE_SECTION_INFO docs.
11855
9fe08fd0
RH
118562002-05-18 Richard Henderson <rth@redhat.com>
11857
11858 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
11859 REGISTER_TARGET_PRAGMAS.
11860 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
11861
410b770f
RH
11862 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
11863
b64a1b53
RH
118642002-05-18 Richard Henderson <rth@redhat.com>
11865
11866 * system.h (SELECT_RTX_SECTION): Poison.
11867 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
11868 * target.h (select_rtx_section): New.
11869 * varasm.c (output_constant_pool): Use it.
11870 (default_select_rtx_section, default_elf_select_rtx_section): New.
11871 * output.h: Declare them.
11872
11873 * config/darwin.h (SELECT_RTX_SECTION): Move ...
11874 * config/darwin.c (machopic_select_rtx_section): ... here.
11875 * config/darwin-protos.h: Update.
11876
11877 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
11878 * config/nextstep.c (machopic_select_rtx_section): ... here.
11879 (nextstep_select_section): Rename variable to avoid macro clash.
11880 * config/nextstep-protos.h: Update.
11881
11882 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
11883 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
11884 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8f9eb495 11885 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
b64a1b53
RH
11886 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
11887 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8f9eb495 11888 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
b64a1b53
RH
11889 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
11890 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
11891 (SELECT_RTX_SECTION): Remove.
11892
11893 * config/darwin.h, config/elfos.h, config/nextstep.h,
11894 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
11895 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
11896 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
11897 config/sparc/lynx.h, config/xtensa/xtensa.c
11898 (TARGET_ASM_SELECT_RTX_SECTION): New.
11899
11900 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
11901 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
11902 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
11903 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
11904 (ia64_aix_select_rtx_section): New.
11905 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
11906 redefining.
11907 * config/mips/mips.c (mips_select_rtx_section): Make static.
8f9eb495 11908 Support ELF SHF_MERGE features.
b64a1b53
RH
11909 * config/mips/mips-protos.h: Update.
11910 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
11911 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
11912 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
11913 make static, fall back to default_elf_select_rtx_section.
11914 * config/rs6000/rs6000-protos.h: Update.
11915 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
11916 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
11917 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
11918 * config/romp/romp.c (romp_select_rtx_section): New.
11919 * config/s390/s390.c (s390_select_rtx_section): New.
11920 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
11921 declarations before target macro definition.
11922 (xtensa_emit_call): Use static buffer.
11923 (xtensa_select_rtx_section): New.
11924 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
11925 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
11926 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
11927
11928 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
11929 SELECT_RTX_SECTION docs.
11930
11931Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5f90a099
JH
11932
11933 * i386.md (movsi/movdi): Fix template.
11934 (sse2 patterns): Set attributes consistently.
11935
11936 * i386.md (pushqi2, ashrqi_*): Fix constraint.
11937
6835a09c
TM
119382002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
11939
11940 * optabs.c (complex_part_zero_p): New.
11941 * (expand_cmplxdiv_straight): Use it.
11942 * (expand_cmplxdiv_wide): Ditto.
11943 * (expand_binop): Ditto.
11944
d48bc59a
RH
119452002-05-18 Richard Henderson <rth@redhat.com>
11946
11947 * final.c (HAVE_READONLY_DATA_SECTION): New.
11948 (shorten_branches): Use it instead of ifdefs.
11949 * varasm.c (enum in_section): Add in_readonly_data.
11950 (text_section, data_section): Tidy.
11951 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
11952
11953 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
11954 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
11955 (READONLY_DATA_SECTION): Don't undef.
11956
11957 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
11958 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
11959 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
11960
11961 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
11962 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
11963 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
11964 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
11965
11966 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
11967 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
11968 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
11969 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
11970 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
11971 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
11972 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
11973 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
11974 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
11975
11976 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
11977 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
11978 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
11979 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
11980 config/pa/pa64-hpux.h, config/sparc/litecoff.h
11981 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
11982
11983 * config/elfos.h, config/netware.h, config/svr3.h,
11984 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
11985 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
11986 config/h8300/h8300.h, config/i386/i386-interix.h,
11987 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
11988 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
11989
11990 * config/elfos.h, config/netware.h, config/svr3.h,
11991 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
11992 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
11993 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
11994 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
11995
11996 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
11997 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
11998 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
11999 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
12000 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
12001 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
12002 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
12003 config/rs6000/sysv4.h, config/v850/v850.h
12004 (EXTRA_SECTIONS): Remove in_const/in_rdata.
12005 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
12006
12007 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
12008 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
12009 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
12010 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
12011 * config/alpha/alpha.c (alpha_start_function): Likewise.
12012 (alpha_write_linkage): Likewise.
12013 * config/m32r/m32r.c (m32r_select_section): Likewise.
12014 * config/m88k/m88k.c (m88k_select_section): Likewise.
12015 * config/mips/mips.c (mips_select_rtx_section): Likewise.
12016 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
12017 (rs6000_elf_select_section): Likewise.
12018 * config/v850/v850.c (v850_select_section): Likewise.
12019
12020 * config/1750a/1750a.h, config/i860/sysv3.h
12021 (READONLY_DATA_SECTION_ASM_OP): New.
12022 READONLY_DATA_SECTION_ASM_OP.
12023 * config/i386/interix.c, config/i386/winnt.c
12024 (i386_pe_unique_section): Always use .rdata prefix.
12025 * config/pa/som.h (readonly_data): Always switch to read-only section.
12026 (READONLY_DATA_SECTION): Predicate on flag_pic.
12027 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
12028 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
12029 (READONLY_DATA_SECTION): Update.
12030
e964a556
JT
120312002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
12032
12033 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8f9eb495 12034 is used without -Wformat.
e964a556
JT
12035 * c-common.h (warn_format_zero_length): Declare extern.
12036 * c-decl.c (warn_options): Add "format-zero-length".
12037 * c-format.c (warn_format_zero_length): Declare.
12038 (set_Wformat): Set warn_format_zero_length for -Wformat.
12039 (check_format_info): Only warn about zero-length formats if
12040 warn_format_zero_length is true. Include the format type
12041 name in the warning message.
12042 * doc/invoke.texi: Document -Wformat-zero-length.
12043 * testsuite/gcc.dg/format/zero-length-1.c: New test.
12044
d92b4486
KH
120452002-05-18 Kazu Hirata <kazu@cs.umass.edu>
12046
12047 * timevar.c: Fix formatting.
12048 * tlink.c: Likewise.
12049 * toplev.c: Likewise.
12050 * tree-dump.c: Likewise.
12051 * tree-inline.c: Likewise.
12052
43612ffb
NB
120532002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
12054
12055 * cppinit.c (cpp_post_options): If preprocessed, turn off
12056 traditional. If traditional, turn off column numbers.
12057 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
12058 * cpptrad.c (handle_newline): Update line_base.
12059 (skip_comment): Handle -Wcomment.
12060
f24a153a
ZW
120612002-05-17 Zack Weinberg <zack@codesourcery.com>
12062
12063 * cppinit.c (struct builtin): Remove unused fields.
12064 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
12065 (operator_array): New - was second half of builtin_array.
12066 (init_builtins): Simplify loop over builtin_array/operator_array.
12067
12403335
NB
120682002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
12069
12070 * defaults.h (UNIQUE_SECTION): Remove.
12071 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
12072
1f8c3c5b
RH
120732002-05-17 Richard Henderson <rth@redhat.com>
12074
12075 * expr.c (init_expr_once): Don't use start/end_sequence.
12076 Use rtx_alloc instead of emit_insn.
12077 * toplev.c (lang_dependent_init): Run init_expr_once here ...
12078 (lang_independent_init): ... not here.
12079
4664f4c4
JT
120802002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
12081
12082 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
12083
93febe68
MM
120842002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
12085
12086 * config/avr/avr.c (avr_regs_to_save): New function. Also check
12087 for fixed registers, possibly used for global register variables.
12088 (initial_elimination_offset, avr_output_function_prologue,
12089 avr_output_function_epilogue): Move common code to avr_regs_to_save.
12090
004cb263
NB
120912002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
12092
12093 * Makefile.in: Update for cpptrad.c.
12094 * cpphash.h (struct cpp_buffer): New members for buffer
12095 overlays.
12096 (struct cpp_reader): New members for traditional output.
12097 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
12098 * cppinit.c (cpp_create_reader): Set trad_line.
12099 (cpp_destroy): Free trad_out_base if used.
12100 (cpp_read_main_file): Overlay an empty buffer if traditional.
12101 (cpp_finish_options): Don't do builtins.
12102 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
12103 (cpp_handle_option): Handle it.
12104 * cpplex.c (continue_after_nul): New.
12105 (_cpp_lex_direct): Use handle_nul.
12106 * cpplib.h (struct cpp_options): New traditional option.
12107 * cpptrad.c: New file.
12108
bdcae02b
NB
121092002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
12110
12111 * c-common.c (c_common_init_options): Use C89 for Objective-C,
12112 and set the options flag.
12113 * cppinit.c (lang_flags): Remove objc.
12114 (lang_defaults): Remove OBJC and OBJCXX.
12115 (set_lang): Update.
12116 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
12117 (cpp_handle_option): Remove -+ and -lang-objc++.
12118 For ObjC, just set a flag.
12119 (print_help): Update.
12120 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
12121
0fca60ab
RO
121222002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12123
12124 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
12125 bootstrap with -mips3.
12126
dd3f0101
KH
121272002-05-17 Kazu Hirata <kazu@cs.umass.edu>
12128
12129 * final.c: Fix formatting.
12130 * fix-header.c: Likewise.
12131 * flow.c: Likewise.
12132 * fold-const.c: Likewise.
12133 * function.c: Likewise.
12134
5ca9299f
DM
121352002-05-17 David S. Miller <davem@redhat.com>
12136
12137 PR c/6689, PR optimization/6615
12138 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
12139 and make it a pointer to rtx. Update comments.
12140 (update_equiv_regs): When scanning for equivalences, record
12141 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
12142 it while making the equiv replacements.
12143
508bc172
RO
121442002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12145
12146 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
12147
5cd983a6
KK
121482002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
12149
12150 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
12151 when encoding visibility into SYMBOL_REF_FLAG.
12152
ce0f3925
RS
121532002-05-17 Richard Sandiford <rsandifo@redhat.com>
12154
12155 * expr.c (force_operand): Fix reversed move.
12156
06809951
GP
121572002-05-17 Kurt Wall <kwall@kurtwerks.com>
12158
12159 * doc/install.texi (Testing): Mention two common DejaGnu warnings
12160 that can be ignored.
12161
121622002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12163
12164 * doc/install.texi (Final install): Recommend to install into a
12165 "clean" target directory.
12166
1d5d7a21
RH
121672002-05-17 Richard Henderson <rth@redhat.com>
12168
12169 * config/ia64/ia64.md: Use braced strings instead of quoted strings
12170 for code blocks. Tidy whitespace.
12171
ae46c4e0
RH
121722002-05-17 Richard Henderson <rth@redhat.com>
12173
12174 * hooks.c (hook_tree_bool_false): New.
12175 * hooks.h: Declare it.
12176 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
12177 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
12178 * target.h (select_section, unique_section): New.
12179 (in_small_data_p): New.
12180 * varasm.c (resolve_unique_section): Use hooks instead of macros.
12181 (variable_section, output_constant_def_contents): Likewise.
12182 (default_select_section, default_unique_section): New.
12183 (categorize_decl_for_section, default_elf_select_section): New.
12184 * output.h: Declare them.
12185
12186 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
12187 (TARGET_ASM_SELECT_SECTION): New.
12188 (SELECT_SECTION): Move ...
12189 * config/darwin.c (machopic_select_section): ... here.
12190 * config/darwin-protos.h: Update.
12191
12192 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
12193 (SELECT_SECTION): Move ...
12194 * config/nextstep.c (nextstep_select_section): ... here.
12195 * config/nextstep-protos.h: Update.
12196
12197 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
12198 (TARGET_ASM_SELECT_SECTION): New.
12199 * config/svr3.h (SELECT_SECTION): Remove.
12200
12201 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
12202 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
12203 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
12204 (alpha_encode_section_info): Use it.
12205 * config/alpha/alpha-protos.h: Update.
12206 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
12207 (SELECT_SECTION, UNIQUE_SECTION): Remove.
12208 (TARGET_ASM_SELECT_SECTION): New.
12209 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
12210
12211 * config/arm/pe.h (UNIQUE_SECTION): Remove.
12212 (TARGET_ASM_UNIQUE_SECTION): New.
12213
12214 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
12215 (avr_unique_section): Rename from unique_section; make static.
12216 * config/avr/avr-protos.h: Update.
12217 * config/avr/avr.h (UNIQUE_SECTION): Remove.
12218
12219 * config/c4x/c4x.h (SELECT_SECTION): Remove.
12220
12221 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
12222 (TARGET_ASM_UNIQUE_SECTION): New.
12223 * config/i386/i386-interix.h: Likewise.
12224 * config/i386/win32.h: Likewise.
12225 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
12226 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
12227 * config/i386/sco5.h (SELECT_SECTION): Remove.
12228 (TARGET_ASM_SELECT_SECTION): New.
12229 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
12230
12231 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
12232 instead of SELECT_SECTION.
12233 * config/m68k/dpx2.h: Likewise.
12234 * config/rs6000/lynx.h: Likewise.
12235
12236 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
12237 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
12238 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
12239 (ia64_in_small_data_p): New.
12240 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
12241 (ia64_aix_select_section, ia64_aix_unique_section): New.
12242 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
12243 (SELECT_SECTION, UNIQUE_SECTION): Remove.
12244
12245 * config/m32r/m32r.h (SELECT_SECTION): Remove.
12246 (TARGET_ASM_SELECT_SECTION): New.
12247 * config/m32r/m32r.c (m32r_select_section): Take align argument.
12248 * config/m32r/m32r-protos.h: Update.
12249
12250 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
12251 (SELECT_SECTION): Move ...
12252 * config/m88k/m88k.c (m88k_select_section): ... here.
12253
12254 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
12255 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
12256 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
12257 (mcore_unique_section): Make static.
12258 * config/mcore/mcore-protos.h: Update.
12259
12260 * config/mips/elf.h (UNIQUE_SECTION): Remove.
12261 (TARGET_ASM_UNIQUE_SECTION): New.
12262 * config/mips/elf64.h: Likewise.
12263 * config/mips/iris6gld.h: Likewise.
12264 * config/mips/linux.h: Likewise.
12265 * config/mips/mips-protos.h: Update.
12266 * config/mips/mips.c (mips_select_section): Add align argument.
12267 * config/mips/mips.h (SELECT_SECTION): Remove.
12268 (TARGET_ASM_SELECT_SECTION): New.
12269
12270 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
12271 * config/mmix/mmix.c (mmix_select_section): Remove.
12272 (mmix_unique_section): Remove.
12273 * config/mmix/mmix-protos.h: Update.
12274
12275 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
12276 (SELECT_SECTION): Move ...
12277 * config/pa/pa.c (pa_select_section): ... here.
12278 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
12279
12280 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
12281 from rs6000_select_section and make static.
12282 (rs6000_elf_unique_section): Similarly.
12283 (rs6000_xcoff_select_section): From xcoff.h.
12284 (rs6000_xcoff_unique_section): Likewise.
12285 * config/rs6000/rs6000-protos.h: Update.
12286 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
12287 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
12288 * config/rs6000/xcoff.h: Likewise.
12289
12290 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
12291 (SELECT_SECTION): Move ...
12292 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
12293
12294 * config/v850/v850.h (SELECT_SECTION): Move ...
12295 * config/v850/v850.c (v850_select_section): ... here.
12296 (TARGET_ASM_SELECT_SECTION): New.
12297
12298 * config/vax/vms.h (SELECT_SECTION): Move ...
12299 * config/vax/vax.c (vms_select_section): ... here.
12300 (TARGET_ASM_SELECT_SECTION): New.
12301
12302 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
12303 for the target hooks.
12304
eaeb23a7
NC
123052002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
12306
12307 * config/arm/arm.c (emit_multi_reg_push): Do not set
12308 RTX_FRAME_RELATED_P on the SEQUENCE.
12309
a00fe19f
RH
123102002-05-16 Richard Henderson <rth@redhat.com>
12311
12312 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
12313 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
12314
5ccff482
RH
123152002-05-16 Richard Henderson <rth@redhat.com>
12316
12317 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
12318
068d7739
RH
12319 * config/ia64/ia64.c (saveable_obstack): Do not declare.
12320
0b17ab2f
RH
123212002-05-16 Richard Henderson <rth@redhat.com>
12322
12323 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
12324 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
12325 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
12326 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
12327 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
12328 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
12329 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
12330 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
12331 Revert "Basic block renumbering removal", and two followup patches.
12332
8ae86b3c
JT
123332002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
12334
12335 * lcm.c (optimize_mode_switching): Revert previous change.
12336
4e9f27af
ZD
123372002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12338
12339 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
12340 with only extant block numbers.
12341
3cdc1dbc
JT
123422002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
12343
12344 * lcm.c (optimize_mode_switching): Fix typo.
12345
fbfb3b09
ZD
123462002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12347
12348 * flow.c (calculate_global_regs_live): Queue blocks in program order.
12349
b4b0fb02
RO
123502002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12351
12352 * doc/install.texi (Configuration): Document PWDCMD.
12353
63b827c5
DJ
123542002-05-16 Dale Johannesen <dalej@apple.com>
12355
12356 * combine.c (cant_combine_insn_p): Reenable combinations
12357 involving hard regs unless CLASS_LIKELY_SPILLED_P.
12358
748d29c1
NB
123592002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
12360
12361 * c-common.c (cb_register_builtins): Handle more built-ins
12362 here rather than in gcc.c specs.
12363 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
12364 (cpp_options): Pass -O flags even when only preprocessing.
12365 * toplev.c (set_fast_math_flags): New prototype.
12366 (fast_math_flags_set_p): New.
12367 (set_no_fast_math_flags): Remove.
12368 (decode_f_option): Update.
12369 * toplev.h (set_fast_math_flags): Update.
12370 (fast_math_flags_set_p): New.
12371 (set_no_fast_math_flags): Remove.
12372config:
12373 * c4x/c4x.c (c4x_override_options): Update.
12374
5279d739
ZW
123752002-05-16 Zack Weinberg <zack@codesourcery.com>
12376
12377 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
12378 Default-define here.
12379 (builtin_define_with_value): Can now wrap the expansion in
12380 quotation marks if such is wanted.
a00fe19f 12381 (cb_register_builtins): Update calls to builtin_define_with_value.
5279d739
ZW
12382 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
12383 here.
12384 (c_common_init): Set options->stdc_0_in_system_headers.
12385 * c-lex.h: Update prototype of builtin_define_with_value.
12386 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
12387 and REGISTER_PREFIX.
12388
12389 * cppinit.c (VERS, ULP, C, X): Kill.
12390 (builtin_array): Remove entries for __VERSION__,
12391 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
12392 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
12393 a constant.
12394 (init_builtins): Kill off a bunch of now-dead code.
12395 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
12396 -fno-leading-underscore.
12397 (cpp_handle_option): Remove code to set user_label_prefix.
12398 (cpp_post_options): Likewise.
12399
12400 * cpplib.h (struct cpp_options): Remove user_label_prefix.
12401 (stdc_0_in_system_headers): New.
12402 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
12403 stdc_0_in_system_headers) too to decide the value of __STDC__.
12404
12405 * tradcpp.c (user_label_prefix): Kill.
a00fe19f 12406 (main): Remove code handling -f(no-)leading-underscore.
5279d739
ZW
12407 (initialize_builtins): Don't define __REGISTER_PREFIX__
12408 or __USER_LABEL_PREFIX__.
12409 (install_value): Wrap compound statement in dummy loop so the
12410 macro works properly in an if statement.
12411
12412
62e6ca55
JJ
124132002-05-16 Janis Johnson <janis187@us.ibm.com>
12414
12415 * loop.h (struct loop_info): Add member has_prefetch.
12416 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
12417 (prescan_loop): Initialize has_prefetch.
12418 (struct prefetch_info): Change prefetch_in_loop and
12419 prefetch_before_loop from bit fields to ints.
12420 (emit_prefetch_instructions): Several small fixes.
12421 (check_dbra_loop): Don't reverse loop that uses prefetch.
12422
1e6347d8
RO
124232002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12424
12425 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
12426 * configure.in: Likewise.
12427 * fixinc/check.tpl: Likewise.
12428 * fixinc/fixinc.dgux: Likewise.
12429 * fixinc/fixinc.svr4: Likewise.
12430 * fixinc/fixinc.winnt: Likewise.
12431 * fixinc/fixincl.sh: Likewise.
12432 * fixproto: Likewise.
12433 * configure: Regenerate.
12434
355e4ec4
ZD
124352002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12436
12437 Basic block renumbering removal:
12438 * basic_block.h (struct basic_block_def): Renamed index to sindex,
12439 added prev_bb and next_bb fields.
12440 (n_basic_blocks): Renamed to num_basic_blocks.
12441 (last_basic_block): New, index of last basic block.
12442 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
12443 traversing basic block chain.
12444 (BLOCK_NUM): index -> sindex.
12445 (create_basic_block_structure, create_basic_block): Declaration changed.
12446 (debug_num2bb): Declare.
12447 (expunge_block_nocompact): Declaration removed.
12448 (link_block, unlink_block, compact_blocks): Declare.
12449 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
12450 * cfg.c (entry_exit_blocks): Initialize new fields.
12451 (clear_edges, alloc_block, expunge_block, cached_make_edge,
12452 redirect_edge_pred, dump_flow_info, dump_edge_info,
12453 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
12454 free_aux_for_edges): Modified.
12455 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
12456 (expunge_block_nocompact): Removed.
12457 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
12458 find_unreachable_blocks, create_edge_list, print_edge_list,
12459 verify_edge_list, flow_edge_list_print, remove_fake_successors,
12460 remove_fake_edges, flow_reverse_top_sort_order_compute,
12461 flow_depth_first_order_compute, flow_preorder_transversal_compute,
12462 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
12463 flow_dfs_compute_reverse_execute): Modified.
12464 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
12465 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
12466 Modified.
12467 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
12468 merge_blocks_move_predecessor_nojumps,
12469 merge_blocks_move_successor_nojumps, merge_blocks,
12470 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
12471 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
12472 * cfglayout.c (skip_insns_after_block, label_for_bb,
12473 record_effective_endpoints, scope_to_insns_finalize,
12474 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
12475 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
12476 cfg_layout_duplicate_bb): Modified.
12477 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
12478 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
12479 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
12480 flow_loops_find, flow_loop_outside_edge_p): Modified.
12481 * cfgrtl.c (create_basic_block_structure, create_basic_block,
12482 flow_delete_block, compute_bb_for_insn, split_block,
12483 try_redirect_by_replacing_jump, redirect_edge_and_branch,
12484 force_nonfallthru_and_redirect, tidy_fallthru_edge,
12485 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
12486 commit_edge_insertions, commit_edge_insertions_watch_calls,
12487 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
12488 purge_all_dead_edges): Modified.
12489 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
12490 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
12491 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
12492 Modified.
12493 * conflict.c (conflict_graph_compute): Modified.
12494 * df.c (FOR_ALL_BBS): Removed.
12495 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
12496 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
12497 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
12498 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
12499 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
12500 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
12501 * final.c (compute_alignments, final_scan_insn): Modified.
12502 * flow.c (verify_local_live_at_start, update_life_info,
12503 update_life_info_in_dirty_blocks, free_basic_block_vars,
12504 delete_noop_moves, calculate_global_regs_live,
12505 initialize_uninitialized_subregs, allocate_bb_life_data,
12506 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
12507 mark_used_reg, count_or_remove_death_notes): Modified.
12508 * function.c (thread_prologue_and_epilogue_insns): Modified.
12509 * gcse.c (struct null_pointer_info): Change typo of current_block
12510 to basic_block.
12511 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
12512 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
12513 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
12514 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
12515 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
12516 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
12517 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
12518 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
12519 pre_delete, one_pre_gcse_pass, compute_transpout,
12520 invalidate_nonnull_info, delete_null_pointer_checks_1,
12521 free_code_hoist_mem, compute_code_hoist_vbeinout,
12522 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
12523 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
12524 compute_store_table, build_store_vectors, insert_insn_start_bb,
12525 insert_store, replace_store_insn, free_store_memory, store_motion):
12526 Modified.
12527 * global.c (global_alloc, global_conflicts, mark_elimination,
12528 build_insn_chain): Modified.
12529 * graph.c (print_rtl_graph_with_bb): Modified.
12530 * haifa-sched.c (sched_init): Modified.
12531 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
12532 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
12533 if_convert): Modified.
12534 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
12535 compute_insert_delete, pre_edge_lcm, compute_available,
12536 compute_farthest, compute_nearerout, compute_rev_insert_delete,
12537 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
12538 Modified.
12539 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
12540 * loop.c (loop_dump_aux): Modified.
12541 * predict.c (combine_predictions_for_insn, estimate_probability,
12542 last_basic_block_p, process_note_prediction, process_note_predictions,
12543 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
12544 expensive_function_p, estimate_bb_frequencies,
12545 compute_function_frequency): Modified.
12546 * print-rtl.c (print_rtx): Modified.
12547 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
12548 get_exec_counts, compute_branch_probabilities, compute_checksum,
12549 branch_prob, find_spanning_tree): Modified.
12550 * recog.c (split_all_insns, peephole2_optimize): Modified.
12551 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
12552 convert_regs_1, convert_regs_2, convert_regs): Modified.
12553 * regclass.c (scan_one_insn, regclass): Modified.
12554 * regmove.c (mark_flags_life_zones, regmove_optimize,
12555 combine_stack_adjustments): Modified.
12556 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
12557 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
12558 * reorg.c (dbr_schedule): Modified.
12559 * resource.c (find_basic_block, init_resource_info): Modified.
12560 * sbitmap.c (sbitmap_intersection_of_succs,
12561 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
12562 sbitmap_union_of_preds): Modified.
12563 * sched-deps.c (init_dependency_caches): Modified.
12564 * sched-ebb.c (schedule_ebbs): Modified.
12565 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
12566 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
12567 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
12568 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
12569 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
12570 ssa_const_prop): Modified.
12571 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
12572 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
12573 * ssa.c (remove_phi_alternative, find_evaluations,
12574 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
12575 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
12576 make_regs_equivalent_over_bad_edges,
12577 make_equivalent_phi_alternatives_equival,
12578 compute_conservative_reg_partition,
12579 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
12580 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
12581 Modified.
12582
5a566bed
MM
125832002-05-16 Mark Mitchell <mark@codesourcery.com>
12584
12585 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
12586
48f6efae
NC
125872002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
12588
12589 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
12590 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
12591 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
12592 calling CONSTANT_POOL_ADDRESS_P.
12593 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
12594 to decide whether to define __arm__ or __thumb.
355e4ec4 12595 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
48f6efae
NC
12596 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
12597
b166fadd
NB
125982002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
12599
12600 * config/arc/arc.h (CPP_PREDEFINES): Remove.
12601 (CPP_SPEC): Update.
12602 (TARGET_CPU_CPP_BUILTINS): New.
12603
601328bb
NB
126042002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
12605
12606 * cpphash.h (cpp_macro): Move here, and make expansion a union.
12607 * cppmacro.c (cpp_macro): Remove.
12608 (enter_macro_context, replace_args, warn_of_redefinition,
12609 _cpp_create_definition, cpp_macro_definition): Update.
12610
ff48be5c
JM
126112002-05-16 Jason Merrill <jason@redhat.com>
12612
12613 * config/mips/mips.c (mips_output_external): Don't do sdata
12614 optimization for a variable with DECL_COMDAT set.
12615
805c42ba
AH
126162002-05-15 Aldy Hernandez <aldyh@redhat.com>
12617
355e4ec4
ZD
12618 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
12619 Cleanups for accepting modifiers on pointers.
12620 Fix predicate typos.
12621 Allow long pointers as well as int pointers.
805c42ba 12622
34fb9ba5
RH
126232002-05-15 Richard Henderson <rth@redhat.com>
12624
12625 * varasm.c (merge_weak): Remove special case for extern and common.
12626
62e118f5
MH
126272002-05-15 Matt Hiller <hiller@redhat.com>
12628
12629 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
355e4ec4 12630 XFAILing.
62e118f5
MH
12631 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
12632 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
12633 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
12634 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
12635 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
12636 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
12637
fefac463
AH
126382002-05-15 Aldy Hernandez <aldyh@redhat.com>
12639
355e4ec4 12640 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
fefac463 12641
5f004351
AH
126422002-05-15 Aldy Hernandez <aldyh@redhat.com>
12643
355e4ec4
ZD
12644 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
12645 ("altivec_mfvscr"): Read from VSCR.
12646
12647 Add vscr sets for the following insns: altivec_vctuxs,
12648 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
12649 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
12650 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
12651 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
12652 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
12653 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
12654 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
12655 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
12656 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
12657 altivec_vsum2sws, altivec_vsumsws.
12658
12659 * config/rs6000/rs6000.h: Add VSCR fixed register.
12660 (CALL_REALLY_USED_REGISTERS): Add vscr.
12661 (CALL_USED_REGISTERS): Same.
12662 (FIXED_REGISTERS): Same.
12663 (REG_ALLOC_ORDER): Same.
12664 (reg_class): Add VSCR_REGS.
12665 (REG_CLASS_NAMES): Same.
12666 (REG_CLASS_CONTENTS): Same.
12667 (VSCR_REGNO): New.
12668 (REGISTER_NAMES): Add vscr.
12669 (DEBUG_REGISTER_NAMES): Same.
12670 (ADDITIONAL_REGISTER_NAMES): Same.
12671 (FIRST_PSEUDO_REGISTER): Increment.
12672 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5f004351 12673
033afd11
RH
126742002-05-15 Jakub Jelinek <jakub@redhat.com>
12675
12676 * fold-const.c (fold): Fix a typo.
12677
126782002-05-15 Eric Botcazou <ebotcazou@multimania.com>
12679
12680 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
12681 comparison against the highest or lowest integer value before
12682 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
12683 transformation and that of an unsigned comparison against 0
12684 right after.
12685
14285ace
RH
126862002-05-15 Richard Henderson <rth@redhat.com>
12687
12688 * varasm.c (merge_weak): Error for any weakening after definition.
12689 Adjust weakening after use warning to catch more cases.
12690 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
12691 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
12692
194734e9
JH
12693Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
12694
12695 * invoke.texi (-malign-double): Re-add lost warning.
12696
12697 * i386-protos.h (x86_output_mi_thunk): Declare.
12698 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
12699 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
12700
12701 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
12702 when flag_asynchronous_unwind_tables is set.
12703
12704 * flags.h (flag_reorder_functions): Declare.
12705 * function.c (prepare_function_start): Initialize frequnecy.
14285ace 12706 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
194734e9
JH
12707 * Makefile.in (predict.o): Add dependency on target.h and params.h
12708 * defaults.h (HOT_TEXT_SECTION_NAME,
12709 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
12710 * predict.c (choose_function_section): New function.
12711 (estimate_bb_frequencies): Use it.
12712 * toplev.c (flag_reorder_functions): New global variable.
12713 (lang_independent_options): New.
12714 (parse_options_and_default_flags): Set.
12715 * varasm.c (assemble_start_function): Bypass functdion alignment
12716 for never executed functions.
12717 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
12718 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
12719 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
12720 Document.
12721
12722 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
12723
12724 * predict.c: Inlude profile.h
12725 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
12726 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
12727 Use the information about maximal counter in the program.
12728
12729 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
12730
12731 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
12732 probably_never_executed_bb_p): New functions.
12733 * cfgcleanup.c (outgoing_edges_match): Use them.
12734 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
12735 (maybe_hot_bb_p, probably_cold_bb_p,
12736 probably_never_executed_bb_p): New functions.
12737
12738 * function.h (function): Add new field function_frequency.
12739 * predict.c (compute_function_frequency): New function.
12740 (estimate_probability): Call it.
12741
61ad9a34
JJ
127422002-03-09 Jakub Jelinek <jakub@redhat.com>
12743
12744 PR optimization/5172, optimization/5200
12745 * gcse.c (gcse_main): Disable store_motion.
12746
a11eba95
ZW
127472002-05-14 Zack Weinberg <zack@codesourcery.com>
12748
12749 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
12750 (c_common_nodes_and_builtins): Use it.
12751 (builtin_define_with_value): New function.
12752 (cb_register_builtins): Define __SIZE_TYPE__,
12753 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
12754 using builtin_define_with_value. Use consistent notation when
12755 defining __GXX_WEAK__.
12756 (WCHAR_TYPE_SIZE): Don't redefine.
12757 (combine_strings): Don't use WCHAR_TYPE_SIZE.
12758
12759 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
12760 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
12761 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
12762 * tradcpp.c (initialize_builtins): Likewise.
12763 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
12764
12765 * c-lex.h (builtin_define_with_value): Prototype.
12766 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
12767 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
12768 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
12769
12770 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
12771 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
12772 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
12773 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
12774 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
12775 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
12776 config/sparc/sol2-bi.h, config/sparc/sparc.h:
12777 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
12778 to __SIZE_TYPE__ etc from all spec strings. When this makes
12779 extra specs empty, delete them.
12780
1c31ecf6
JDA
127812002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
12782
12783 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
12784 for PA8000 or generating dwarf2 call frame information.
12785 (output_call): Remove DO_FRAME_NOTES check from return pointer
12786 optimization.
12787 (following_call): Return 0 when scheduling for PA8000 or generating
12788 dwarf2 call frame information. Revise comment.
12789
ac9cfada
NB
127902002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
12791
12792config/alpha:
12793 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
12794 and __IEEE_FP_INEXACT as appropriate.
12795 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
12796 (CPP_SPEC): Remove ieee defines.
12797 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
12798
9b690711
RH
127992002-05-14 Richard Henderson <rth@redhat.com>
12800
12801 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
12802 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
12803
e6471be6
NB
128042002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
12805
e6471be6
NB
12806 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
12807 (CPP_SPEC): Update.
12808 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
12809 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
12810 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
12811 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
12812 (EXTRA_SPECS): Update.
12813 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
12814 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
12815 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
12816 define TARGET_OS_CPP_BUILTINS if necessary.
12817
e5f5feea
NB
128182002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
12819
12820 * gcc.c (cpp_options): Must pass -m* and -f* options
12821 to the front end even when only preprocessing.
12822 (cc1_options): Remove redundant -lang-c.
12823 * tradcpp.c (main): Ignore -m options.
12824objc:
12825 * lang-specs.h: Similarly.
12826
317638a8
VM
128272002-05-14 Vladimir Makarov <vmakarov@redhat.com>
12828
12829 * genautomata.c (transform_3): Add code for transformation
12830 `(A,B,...)+C -> A+C,B,...'.
12831
4d604303
JH
12832Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
12833
12834 * final.c (end_final): Do not output profile_arcs constructor, when
12835 no functions are instrumented.
12836
b18b06ed
JH
12837Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
12838
12839 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
12840
a12f97f0
GP
128412002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12842
12843 * doc/install.texi: Remove special markup originally required for
12844 HTML generation with texi2html.
12845
c1ae3eb4
AS
128462002-05-14 Andreas Schwab <schwab@suse.de>
12847
12848 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
12849 SELECT_SECTION.
12850 (UNIQUE_SECTION): Define to get small data correctly.
1b18fc2c
AS
12851
12852 * varasm.c (resolve_unique_section): Add third parameter
12853 flag_function_or_data_sections and use it instead of
12854 flag_function_sections.
12855 (assemble_start_function): Pass flag_function_sections.
12856 (asm_emit_uninitialised): Pass flag_data_sections.
12857 (assemble_variable): Likewise.
12858
8ee41eaf
RH
128592002-05-14 Richard Henderson <rth@redhat.com>
12860
12861 * config/i386/i386.md: Use define_constants for unspec numbers.
12862 * config/i386/i386.c: Likewise.
12863
e6471be6
NB
128642002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
12865
12866 * doc/contrib.texi: Update my entry.
12867
c297b764
MM
128682002-05-13 Mark Mitchell <mark@codesourcery.com>
12869
12870 * fixinc/inclhack.def (winidss_valist): Limit applicability.
12871 * fixinc/fixincl.x: Regenerated.
12872 * fixinc/tests/base/math.h: Update.
12873 * fixinc/tests/base/testing.h: Likewise.
12874
0b42c8f8
ZW
128752002-05-13 Zack Weinberg <zack@codesourcery.com>
12876
12877 * genattr.c (gen_attr): Don't emit a comma after the last
12878 enumerator.
12879
546c093e
RH
128802002-05-13 Richard Henderson <rth@redhat.com>
12881
12882 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
12883 by non-local gotos.
12884 * recog.c (peephole2_optimize): Likewise.
12885
85be8c2d
AP
128862002-05-13 Andris Pavenis <pavenis@lanet.lv>
12887
12888 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
12889 input to O_BINARY.
12890
765b8f90
JL
128912002-05-13 Jeffrey A Law (law@redhat.com)
12892
fe4b3c79
JL
12893 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
12894 Update prototype and callers.
12895 (propagate_one_insn): Stack pointer adjustments kill MEMs on
12896 the mem_set_list which reference the stack pointer, as do
12897 calls to constant functions as they may clobber outgoing
12898 argument space.
12899
16133d00
JL
12900 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
12901
765b8f90
JL
12902 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
12903 (ia32_multipass_dfa_lookahead): New function.
12904
63826d5b
NB
129052002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
12906
12907 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
12908 (translate_options): Remove 'V'.
12909 (process_command): Similarly.
12910doc:
12911 * invoke.texi: Remove documentation of 'V'.
12912
dcb41ced
UW
129132002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
12914
12915 * config/s390/linux.h: Revert 2002-04-22 changes.
12916
8dfea428
SM
129172002-05-13 Scott Marks <SMarks@mobile-mind.com>
12918
12919 * config/fr30/fr30.md: Only allow splits of immediate loads
12920 if the destination is a register.
12921
12a41c22
NB
129222002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
12923
12924 * Makefile.in (c-common.o, cppinit.o): Update.
12925 * c-common.c: Include except.h.
12926 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
12927 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
12928 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
12929 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
12930 CPP_PREDEFINES): Handle here.
12931config:
12932 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
12933 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
12934 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
12935 TARGET_OS_CPP_BUILTINS.
12936 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
12937 (CPP_SPEC, EXTRA_SPECS): Update.
12938 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
12939 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
12940 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
12941 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
12942 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
12943doc:
12944 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
12945 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
12946
5692c7bc
ZW
129472002-05-12 Zack Weinberg <zack@codesourcery.com>
12948
12949 * emit-rtl.c (global_rtl): Update comment.
12950 (const_double_htab, const_double_htab_hash,
12951 const_double_htab_hash, lookup_const_double): New.
12952 (const_int_htab_hash, const_int_htab_eq): Remove const
12953 qualifiers, which cause tons of warnings with RTL checking on.
12954 (gen_rtx_CONST_DOUBLE): Deleted.
12955 (const_double_from_real_value): New function - bears some
12956 resemblance to the former immed_real_const_1.
12957 (immed_double_const): Moved here from varasm.c and
12958 simplified.
12959 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
12960 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
12961 (gen_rtx): Use immed_double_const.
12962 (init_emit_once): Initialize the const_double_htab. Use
12963 REAL_VALUE_FROM_INT where possible. Can now use
12964 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
12965 * varasm.c (struct varasm_status): Remove x_const_double_chain.
12966 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
12967 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
12968 (init_varasm_status, mark_varasm_status): Don't touch
12969 x_const_double_chain.
12970
12971 * output.h: Delete prototype for clear_const_double_mem.
12972 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
12973 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
12974 const_double_from_real_value, not immed_real_const_1, and use
12975 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
12976 CONST_DOUBLE_ATOF.
12977 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
12978 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
12979 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
12980 (gen_rtx_REG): Second arg is unsigned.
12981
12982 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
12983 (excluded_rtx): New, return true for CONST_DOUBLE.
12984 (genmacro): Write nothing for excluded codes.
12985 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
12986 * expr.c (expand_expr): Likewise.
12987 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
12988 CONST_DOUBLE_CHAIN.
12989 * toplev.c (rest_of_compilation): Don't call
12990 clear_const_double_mem.
12991
12992 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
12993 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
12994 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
12995 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
12996 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
12997 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
12998 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
12999 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
13000
31397a7b
KG
130012002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13002
13003 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
13004
1b70d38a
TT
130052002-05-12 Tom Tromey <tromey@redhat.com>
13006
13007 * tree.h (copy_node): Don't mention TREE_PERMANENT.
13008
9a5834ae
ZW
130092002-05-12 Zack Weinberg <zack@codesourcery.com>
13010
13011 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
13012 (scan_comma_elt): New function. Accepts whitespace in comma lists.
13013 * gensupport.h: Prototype new routines.
13014 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
13015 use of printf.
13016 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
13017 (next_comma_elt): Use scan_comma_elt.
13018
13019 * config/i386/i386.md: Use new attribute notation to break up
13020 long lines in define_attr forms.
13021
51286de6
RH
130222002-05-12 Richard Henderson <rth@redhat.com>
13023
13024 * expr.c (compress_float_constant): New.
13025 (emit_move_insn): Use it.
13026 (float_extend_from_mem): New.
13027 (init_expr_once): Initialize it.
13028 * real.c (exact_real_truncate): New.
13029
13030 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
13031 dropped into memory; penalize for size.
13032 (RTX_COSTS): FLOAT_EXTEND is free.
13033 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
13034 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
13035
6412341e
RH
130362002-05-12 Richard Henderson <rth@redhat.com>
13037
13038 * profile.h (profile_info): Add missing extern to declaration.
13039 * profile.c (profile_info): Define it.
13040
12877f09
JDA
130412002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
13042
13043 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
13044 used for DImode and TImode.
13045
387f9e32
NB
130462002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
13047
13048 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
13049 fake a newline.
13050
e1a0f69c
ZW
130512002-05-11 Zack Weinberg <zack@codesourcery.com>
13052
13053 * config/rs6000/rs6000.c (rs6000_default_long_calls,
13054 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
13055 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
13056 (rs6000_override_options): Handle -m(no-)longcall.
13057 (init_cumulative_args, output_mi_thunk): Check for both
13058 longcall and shortcall attributes on the function.
13059 (rs6000_attribute_table): Add "shortcall".
13060 (rs6000_handle_longcall_attribute): Update comment.
13061 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
13062 altivec_expand_ternop_builtin): Add default clauses to switches
13063 to silence warnings.
13064
13065 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
13066 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
13067 (TARGET_OPTIONS): Add longcall and no-longcall.
13068
13069 * config/rs6000/rs6000.md (call_nonlocal_sysv,
13070 call_value_nonlocal_sysv): Split by alternatives. One pair
13071 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
13072 the call cookie. The other pair accepts only LR/CTR and has
13073 no restriction.
13074
13075 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
13076 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
13077 tmake_file.
13078 * config/rs6000/rs6000-c.c: New file.
13079 * config/rs6000/t-rs6000-c-rule: New file.
13080 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
13081 Prototype rs6000_pragma_longcall.
13082
13083 * doc/extend.texi: Document shortcall attribute.
13084 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
13085
9c64026d
JDA
130862002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
13087
13088 * reorg.c (dbr_schedule): Remove unnecessary test.
13089
6c81a490
JH
13090Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
13091
13092 * i386.md (testsi to testqi spliters): New.
13093
13094 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
13095
13096 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
13097
13098 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
13099
13100 * basic-block.h: New flag EDGE_CAN_FALLTHRU
13101 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
13102 that can be made fallthru.
13103
13104 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
13105
13106 * cfglayout.c (cleanup_unconditional_jumps): New static function.
13107 (cfg_layout_initialize): Use it.
4c476cf3 13108
e4447d94
MM
131092002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
13110
13111 * config/avr/avr.c (avr_mcu_types): Update supported devices.
13112 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
13113 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13114
3a538a66
KH
131152002-05-11 Kazu Hirata <kazu@cs.umass.edu>
13116
13117 * dbxout.c: Fix formatting.
13118 * dependence.c: Likewise.
13119 * df.c: Likewise.
13120 * diagnostic.c: Likewise.
13121 * doloop.c: Likewise.
13122 * dominance.c: Likewise.
13123 * doschk.c: Likewise.
13124 * dwarf2asm.c: Likewise.
13125 * dwarf2out.c: Likewise.
13126 * dwarfout.c: Likewise.
13127
2292e8fc
RH
131282002-05-10 Richard Henderson <rth@redhat.com>
13129
13130 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
13131 Convert integers constants as needed. Replace "nwords" field with
13132 "sizeof_bb".
13133 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
13134 * function.h: Fix typo in comment.
13135 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
13136
dbfb1116
RS
131372002-05-10 Roger Sayle <roger@eyesopen.com>
13138
13139 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
13140 into the equivalent (signed char)c > 0.
13141
79a497cd
JJ
131422002-05-10 Janis Johnson <janis187@us.ibm.com>
13143
13144 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
13145 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
13146 (struct prefetch_info): Fix spelling of member bytes_accessed.
13147 (emit_prefetch_instructions): Make dump messages more regular;
13148 restructure code to add more dump messages; use new macros for
13149 heuristics. (There are no code generation changes in any of this).
13150
6c45cb0d
DM
131512002-05-10 David S. Miller <davem@redhat.com>
13152
7440af14
DM
13153 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
13154 (struct rtx_def): Update unchanging flag comment.
13155 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
13156 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
13157 to be handled to INSN too.
13158 (dbr_schedule): Likewise.
13159 * resource.c (next_insn_no_annul): Likewise.
13160
6c45cb0d
DM
13161 * cse.c (rtx_cost): Remove multiplication by power of 2 special
13162 casing.
13163
29f21e4f
GP
131642002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13165
13166 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
13167 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
13168 (possibly) work around broken /bin/sh.
13169
e4ba88da
RO
131702002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13171
13172 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
13173 . as N64/N32 libgcc_s.so subdirs.
13174
4f4778ee
DM
131752002-05-10 David S. Miller <davem@redhat.com>
13176
13177 * config/sparc/sparc.md: Use define_constants for unspec numbers.
cf40ea15
DM
13178
13179 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
13180 more accurately.
13181 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
13182 comment.
13183 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
13184 * doc/rtl.texi: Document these macros more accurately.
13185 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
13186 JUMP_INSNs and CALL_INSNs.
13187 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
13188 or INSN_FROM_TARGET_P if the code is appropriate.
13189
1a499b92
MM
131902002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
13191
13192 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
13193 before using SYMBOL_REF_FLAG (addr).
13194
13195 * config/avr/avr-protos.h (avr_io_address_p): Declare.
13196 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
13197 Make non-static. Update all callers.
13198 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
13199 New insns to clear/set/test a single bit in I/O address space.
13200
65212b66
KG
132012002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13202
13203 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
13204
3df89291
NB
132052002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
13206
13207 * Makefile.in: Update.
13208 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
13209 builtin_define_std): New.
13210 (c_common_init): Register CPP builtins callback.
13211 * c-common.h (flag_iso, flag_undef): New.
13212 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
13213 * c-lex.c: Don't include target.h.
13214 (cb_register_builtins): Move to c-common.c.
13215 (init_c_lex): Don't register hook here.
13216 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
13217 (cpp_define, cpp_assert): Remove.
13218 * gcc.c (cc1_options): Pass -undef to front end.
13219 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
13220 (TARGET_INITIALIZER): Update.
13221 * target.h (struct cpp_reader): Don't predeclare.
13222 (struct gcc_target): Remove cpp builtin hook.
13223 * tree.c (default_register_cpp_builtins): Remove.
13224doc:
13225 * tm.texi: Update.
13226
32fa4565
NB
132272002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
13228
13229 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
13230
23357c55
RO
132312002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13232
13233 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
13234 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
13235
5aa26af0
JJ
132362002-05-09 Jakub Jelinek <jakub@redhat.com>
13237
13238 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
13239 * config/sparc/libgcc-sparc-glibc.ver: New file.
13240 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
13241 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
13242
2937267b
JJ
132432002-05-09 Jakub Jelinek <jakub@redhat.com>
13244
13245 PR target/6429
13246 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
13247 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
13248 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
13249 base multilibs.
13250 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
13251 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
13252 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
13253 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
13254
086c0f96
RH
132552002-05-09 Richard Henderson <rth@redhat.com>
13256
13257 * config/ia64/ia64.md: Use define_constants for unspec numbers.
13258 * config/ia64/ia64.c: Likewise.
13259
a8b4881f
RS
132602002-05-09 Richard Sandiford <rsandifo@redhat.com>
13261
13262 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
13263 (save_restore_insns): Likewise.
13264 (mips_expand_prologue, mips_expand_epilogue): Update callers.
13265 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
13266
243e5500 13267Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
890d52e8 13268
af2728a4
JL
13269 * athlon.md, k6.md, pentium.md, ppro.md): New files.
13270 * i386.md: Move scheduling information into new files.
13271
890d52e8
JL
13272 * i386.md (type attribute): Add "rotate" for rotate insns.
13273 (rotate insns): Set type to "rotate".
13274 (various attributes and function units): Treat rotate like shift.
13275 (pent_pair attribute): Only rotates by one bit position are
13276 pairable.
13277 (sbb insns): Explicitly set pent_pair attribute on a couple
13278 that were missing it.
13279
f78ec36a
R
13280Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
13281
13282 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
13283 make sure that buffer starts on odd word address.
13284 (sh_va_arg): Skip odd fp registers when reading a double precision
13285 value.
13286
ff431459
NB
132872002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
13288
13289 * tree.h (preserve_data, object_permanent_p, type_precision):
13290 Remove.
13291
c3bf3e6e
NB
132922002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
13293
13294 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
13295 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
13296doc:
13297 * cpp.texi: Update for removal of obsolete features.
13298
02263a8a
JH
13299Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
13300 Jeffrey A Law (law@redhat.com)
13301
13302 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
13303 the DFA interface for Pentium processors.
13304 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
13305 (attr_pent_pair, ix86_pent_find_pair): Remove.
13306 (ix86_sched_reorder_pentium): Remove.
13307 (ix86_sched_reorder): Remove reordering for Pentium.
13308 * i386.md (Pentium scheduling): Rewrite using DFA description.
13309
3e638a90
JH
13310Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
13311
13312 * cfganal.c (can_fallthru): Fix fast path.
13313 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
13314 with edges to the next block.
13315
b7c9bf28
JH
13316Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
13317 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
13318
13319 * final.c (end_final): Use C trees to output data structures for profiling.
13320
13321 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5692c7bc
ZW
13322 (profile.o): New dependency profile.h
13323 (final.o): New dependency profile.h
13324 * profile.h: New file. New global structure profile_info.
13325 * final.h (count_edges_instrumented_now): Declare.
13326 (current_function_cfg_checksum): Declare.
13327 (function_list): New structure.
13328 (functions_head, functions_tail): New static variables.
13329 (end_final): Emits more data, removed some -ax stuff.
13330 (final): Stores function names and chcksums.
13331 * gcov-io.h (__write_gcov_string): New function.
13332 (__read_gcov_string): New function.
13333 * gcov.c (read_profile): New function.
13334 (create_program_flow_graph): Uses read_profile instead of reading
b7c9bf28 13335 da_file.
5692c7bc
ZW
13336 (read_files): Removed da_file checking, it's done by read_profile now.
13337 * libgcc2.c (bb_function_info): New structure.
13338 (bb): New field in structure, removed some -ax stuff.
13339 (__bb_exit_func): Changed structure of da_file.
13340 * profile.c (count_edges_instrumented_now): New global variable.
13341 (current_function_cfg_checksum): New global variable.
13342 (max_counter_in_program): New global variable.
13343 (get_exec_counts): New function.
13344 (compute_checksum): New function.
13345 (instrument_edges): Sets count_edges_instrumented_now.
13346 (compute_branch_probabilities): Uses get_exec_counts instead of
b7c9bf28 13347 reading da_file.
5692c7bc
ZW
13348 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
13349 (init_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 13350 now.
5692c7bc 13351 (end_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 13352 now.
5692c7bc 13353 * gcov.texi: Updated information about gcov file format.
b7c9bf28 13354
786de7eb
KH
133552002-05-09 Kazu Hirata <kazu@cs.umass.edu>
13356
13357 * sbitmap.c: Fix formatting.
13358 * scan.c: Likewise.
13359 * scan-decls.c: Likewise.
13360 * sched-deps.c: Likewise.
13361 * sched-ebb.c: Likewise.
13362 * sched-rgn.c: Likewise.
13363 * sched-vis.c: Likewise.
13364 * sdbout.c: Likewise.
13365 * sibcall.c: Likewise.
13366 * simplify-rtx.c: Likewise.
13367 * ssa.c: Likewise.
13368 * ssa-ccp.c: Likewise.
13369 * ssa-dce.c: Likewise.
13370 * stmt.c: Likewise.
13371 * stor-layout.c: Likewise.
13372 * stringpool.c: Likewise.
13373
b7764693
DM
133742002-05-09 David S. Miller <davem@redhat.com>
13375
13376 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
13377
4e7d5d27
DM
133782002-05-07 David S. Miller <davem@redhat.com>
13379
13380 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
13381 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
13382 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
13383 library implementation clobbers the output before the inputs
13384 are fully consumed, use stack temporary for the output.
13385
f979570e
JT
133862002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
13387
13388 * config/netbsd.h (CPP_SPEC): Remove.
13389 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
13390 * config/i386/netbsd.h (CPP_SPEC): Define.
13391 * config/ns32k/netbsd.h (CPP_SPEC): Define.
13392 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
13393 * config/sparc/netbsd.h (CPP_SPEC): Define.
13394 * config/vax/netbsd.h (CPP_SPEC): Define.
13395
a6a2274a
KH
133962002-05-08 Kazu Hirata <kazu@cs.umass.edu>
13397
13398 * read-rtl.c: Fix formatting.
13399 * real.c: Likewise.
13400 * recog.c: Likewise.
13401 * regclass.c: Likewise.
13402 * regmove.c: Likewise.
13403 * reg-stack.c: Likewise.
13404 * reload1.c: Likewise.
13405 * reload.c: Likewise.
13406 * resource.c: Likewise.
13407 * rtlanal.c: Likewise.
13408 * rtl.c: Likewise.
13409 * rtl-error.c: Likewise.
13410
461b48d5
JDA
134112002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
13412
13413 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
13414 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
13415
95d075ff
BS
134162002-05-08 Bernd Schmidt <bernds@redhat.com>
13417
13418 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
13419 use __SSE2__ macro instead.
13420 * config/i386/xmmintrin.h: Likewise.
13421
2d4cc6a7
JJ
134222002-05-08 Janis Johnson <janis187@us.ibm.com>
13423
13424 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
13425 and use it in all invocations of these macros. Clean up comments.
13426 * rtl.c (rtl_check_failed_flag): Add an argument for the name
13427 of the flag access macro whose check failed.
13428 * doc/rtl.texi (Flags): Document additional flag uses.
13429
3f8ffc7c
RS
134302002-05-08 Robert Spier <rspier@pobox.com>
13431 Neil Booth <neil@daikokuya.demon.co.uk>
13432
13433 PR preprocessor/6521
13434 * cppfiles.c (handle_missing_header): Don't do anything
13435 different for <> includes.
13436doc:
13437 * cppopts.texi: Update documentation for -MG.
13438
b9e2d17b
NB
134392002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
13440
13441 * cpplex.c (cpp_interpret_charconst): Truncate as well as
13442 sign-extend.
13443doc:
13444 * cpp.texi: Clarify multichar charconst valuation.
13445
8d8269fa
MM
134462002-05-08 Mark Mitchell <mark@codesourcery.com>
13447
13448 * doc/invoke.texi: Document -mwindiss option.
13449
29b91443
JM
134502002-05-08 Jason Merrill <jason@redhat.com>
13451
13452 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
13453
13454 * dwarf2out.c (gen_type_die): Abort on broken recursion.
13455
13456 PR c++/6381
13457 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
13458 REAL_CST.
13459
6c76b950
NC
134602002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
13461
13462 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
13463 little-endian multilibs to override arm/thumb multilibs.
a5c76ee6 13464 Do not build hardware floating point multilibs, nor apcs-26
6c76b950
NC
13465 multilibs for the Thumb.
13466
f90bf7ca
MM
134672002-05-08 Mark Mitchell <mark@codesourcery.com>
13468
13469 PR c/6569.
13470 * varasm.c (mark_weak): New function.
13471 (merge_weak): Use it. Do not call declare_weak.
13472 (declare_weak): Use merge_weak.
13473
1e150f2c
JH
13474Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
13475
13476 * cse.c (dead_libcall_p): Update counts.
13477 (delete_trivially_dead_insns): Update call of dead_libcall_p.
13478
969d70ca
JH
13479Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
13480
13481 * cfglayout.c (function_tail_eff_head): Rename to ...
13482 (function_footer): ... this one.
13483 (unlink_insn_chain): New functions.
13484 (label_for_bb): Only call block_label and emit debug message.
13485 (record_effective_endpoints): Actually unlink the headers and footers.
13486 (fixup_reorder_cahin): Re-insert the unlinked sequences.
13487 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
13488 * cfglayout.h (struct reorder_block_def): New fields footer/header;
13489 remove eff_head/eff_end.
13490 * rtl.h (set_first_insn): Declare.
13491 * emit-rtl.c (set_first_insn): New function.
13492
13493 * cfglayout.c (fixup_reorder_chain): Dump duplicated
13494 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
13495 cfg_layout_duplicate_bb): New global function.
13496 (duplicate_insn_chain): New static function.
13497 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
13498 cfg_layout_duplicate_bb): Declare.
13499 (struct reorder_block_def): Add "original" field.
13500 * emit-rtl.c (emit_copy_of_insn_after): New function.
13501 * rtl.h (emit_copy_of_insn_after): Declare.
13502
13503 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
13504 (fixup_reorder_chain): properly handle edges to exit block.
13505
13506Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13507 Jan Hubicka <jh@suse.cz>
13508
13509 * basic-block.h (note_prediction_to_br_prob): declare.
13510 * c-semantics.c: Inlucde predit.h
13511 (expand_stmt): predict GOTO_STMT as not taken.
13512 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
13513 (cleanup_cfg): Do not free tail_recursion_list.
13514 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
13515 (flow_delete_block): Kill predictions past end of basic block.
13516 * output.h (delete_unreachable_blocks): Declare.
13517 * predict.c (predicted_by_p, process_note_predictions,
13518 process_note_prediction, last_block_p): New function.
13519 (estimate_probability): Bypass loop on PRED_CONTINUE;
13520 do not handle noreturn heuristics; kill PRED_RETURN; add
13521 PRED_EARLY_RETURN.
13522 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
13523 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
13524 * predict.h (IS_TAKEN): New constant.
13525 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
13526 * rtl.c (NOTE_INSN_PREDICTION): New.
13527 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
13528 New macro.
13529 (insn_note): add NOTE_INSN_PREDICTION.
13530 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
13531 CFG; free tail_recursion_label_list.
13532 * stmt.c: Include predict.h;
13533 (return_prediction): New.
13534 (expand_value_return): Use it.
13535 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
13536
41f8d041
RS
135372002-05-08 Richard Sandiford <rsandifo@redhat.com>
13538
13539 * config/mips/mips.md: Name the unspecs with define_constant.
13540 (*HILO_delay): Rename to 'hilo_delay' (no star).
13541 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
13542 (reload_outdi, reload_outsi): Likewise.
13543
9cabb1d8
KH
135442002-05-07 Kazu Hirata <kazu@cs.umass.edu>
13545
13546 * toplev.c: Fix formatting.
13547
4c76f856
JJ
135482002-05-07 Janis Johnson <janis187@us.ibm.com>
13549
13550 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
13551 * configure.in (ac_rtlflag_checking): New.
13552 * doc/install.texi (--enable-checking): Document RTL flag checking.
13553
44a147ad
NB
135542002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
13555
13556 * c-common.c (c_common_init): Set options->unsigned_wchar.
13557 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
13558 group target dependencies.
13559 (init_builtins, cpp_handle_option): Update.
13560 * cpplex.c (cpp_interpret_charconst): Update.
13561 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
13562 signed_char to unsigned_char, group target dependencies.
13563 * defaults.h (WCHAR_UNSIGNED): Remove.
13564 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
13565config:
13566 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
13567 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
13568 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
13569 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
13570 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
13571doc:
13572 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
13573
cace4f93
MM
135742002-05-07 Mark Mitchell <mark@codesourcery.com>
13575
13576 * fixinc/inclhack.def (windiss_math1): New fix.
13577 (windiss_math2): Likewise.
13578 (windiss_valist): Likewise.
13579 * fixinc/fixincl.x: Regenerated.
13580
e2ff6cee
AJ
135812002-05-07 Andreas Jaeger <aj@suse.de>
13582
13583 * genautomata.c (output_internal_min_issue_delay_func): Add
13584 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
13585 (output_internal_trans_func): Likewise.
13586
bdad4be5
JL
13587Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
13588
13589 * pa.c (hppa_profile_hook): Use force_reg to get the address
13590 of the profile hook into an appropriate pseudo register.
13591
a1ffecd9
MM
135922002-05-07 Mark Mitchell <mark@codesourcery.com>
13593
13594 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
13595 (LINK_START_SPEC): Handle it.
13596 (LINK_OS_SPEC): Likewise.
13597 (CPP_SPEC): Likewise.
13598 (STARTFILE_SPEC): Likewise.
13599 (LIB_SPEC): Likewise.
13600 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
13601 all platforms.
13602 (CRTSAVRES_DEFAULT_SPEC): New macro.
13603 (LIB_WINDISS_SPEC): New macro.
13604 (CPP_OS_WINDISS_SPEC): Likewise.
13605 (STARTFILE_WINDISS_SPEC): Likewise.
13606 (ENDFILE_WINDISS_SPEC): Likewise.
13607 (LINK_START_WINDISS_SPEC): Likewise.
13608 (LINK_OS_WINDISS_SPEC): Likewise.
13609 * config/rs6000/windiss.h: New file.
e2ff6cee 13610
df966bff
AH
136112002-05-07 Aldy Hernandez <aldyh@redhat.com>
13612
a5c76ee6 13613 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
df966bff 13614
db84f1bd
DM
136152002-05-06 David S. Miller <davem@redhat.com>
13616
13617 * config/sparc/sparc.md (shift insns): Do not mask off
13618 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
13619 take care of it.
13620
818c0c94
RH
136212002-05-06 Richard Henderson <rth@redhat.com>
13622
13623 PR c++/6212
13624 * expr.c (highest_pow2_factor_for_type): New.
13625 (expand_assignment): Use it.
13626
61e0b50f
AH
136272002-05-06 Aldy Hernandez <aldyh@redhat.com>
13628
818c0c94
RH
13629 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
13630 unspec_volatile.
13631 ("altivec_mfvscr"): Same.
61e0b50f 13632
5a63e069
JJ
136332002-05-06 Janis Johnson <janis187@us.ibm.com>
13634
13635 * rtl.h (struct rtx_def): Update comments.
13636 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
13637 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
13638 RTL_FLAG_CHECK macros with list of expected RTL codes.
13639 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
13640 (rtl_check_failed_flag): New.
13641 * reload1.c (reload): Use REG macro before changing rtx to MEM.
13642 (reload_cse_noop_set_p): Check rtx code before using access macro.
13643 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
13644 before using access macro.
13645
4afe3952
JJ
136462002-05-06 Janis Johnson <janis187@us.ibm.com>
13647
13648 * doc/rtl.texi (Flags): Update to reflect current usage.
13649
1f77b5da
RS
136502002-05-06 Roger Sayle <roger@eyesopen.com>
13651
13652 PR opt/3995
13653 * fold-const.c (sign_bit_p): New function.
13654 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
818c0c94 13655 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1f77b5da
RS
13656 Reapply fold when converting (A & C) == C into (A & C) != 0.
13657 (fold_binary_op_with_conditional_arg): Fix typo in comment.
13658
a5a49440
NB
136592002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
13660
13661 * c-common.c (warn_multichar): New.
13662 (c_common_init): Set CPP's warn_multichar.
13663 * c-common.h (warn_multichar): New.
13664 * c-decl.c (warn_multichar): Remove.
13665 * c-lex.c (lex_charconst): Update.
13666 * c-tree.h (warn_multichar): Remove.
13667 * cppexp.c (eval_token): Sign-extend charconst value.
13668 * cppinit.c (cpp_create_reader): Set warn_multichar.
13669 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
13670 each character. Update prototype. Sign-extend the result.
13671 * cpplib.h: Fix conditions.
13672 (struct cpp_options): Add new warning flag.
13673 (cpp_interpret_charconst): Update prototype.
13674doc:
13675 * cpp.texi: Update documentation.
13676
83e0be55
VM
136772002-05-06 Vladimir Makarov <vmakarov@redhat.com>
13678
13679 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
13680 Fix typo in usage of allof instead of unit.
13681
688ec718
RH
136822002-05-06 Richard Henderson <rth@redhat.com>
13683
13684 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
13685 and any jump or call for IN.
13686
f6536266
BS
136872002-05-06 Bernd Schmidt <bernds@redhat.com>
13688
e2ff6cee 13689 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
f6536266
BS
13690 -msse2.
13691 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
e2ff6cee 13692
0316d49b
RS
136932002-05-06 Roger Sayle <roger@eyesopen.com>
13694
13695 * fold-const.c (lshift-double): Cast the high word to an unsigned
13696 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
13697 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
13698 avoid compiler warning. (fold): Remove redundant code from
13699 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
13700
5d50fab3
JL
137012002-05-06 Jeff Law <law@redhat.com>
13702
13703 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
13704 * pa.c (pa_adjust_cost): Remove all true dependency cost
13705 adjustments. Also remove support for non-DFA scheduling.
13706 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
13707 to adjust true dependency costs. Update various comments.
13708 (7100lc, 7200, 7300 scheduling): Simplify by combining the
13709 FP ALU & MPY units into a single unit.
13710
a17a104c
CM
137112002-05-06 Catherine Moore <clm@redhat.com>
13712
13713 * config/v850/v850.c (compute_register_save_size): Make sure
818c0c94 13714 to count all of the registers that will be saved.
a17a104c 13715
7799175f
JH
13716Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
13717
13718 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
13719
0ac941a0
DM
137202002-05-06 David S. Miller <davem@redhat.com>
13721
13722 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
13723 allow result to overlap input operands in memory.
13724
95ff5d3f
NB
137252002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
13726
13727doc:
13728 * cpp.texi: Update multichar charconst docs.
13729
639e8b0c
NB
137302002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
13731
13732 * cpplex.c (cpp_interpret_charconst): Sign-extend each
13733 character. Don't ignore excess characters. Treat
13734 multicharacter character constants as signed.
13735 (cpp_parse_escape): Clarify diagnostic.
13736
84ea5bc1
JJ
137372002-05-05 Jakub Jelinek <jakub@redhat.com>
13738
13739 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
13740 use add instead of shift.
13741 (ashldi3_sp64): Likewise.
13742 (ashlsi3_const1, ashldi3_const1): Remove.
13743 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
13744 * config/sparc/sparc.c (const1_operand): New.
13745
40cd22f2
JT
137462002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
13747
13748 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
13749
cac01076
JJ
137502002-05-05 Jakub Jelinek <jakub@redhat.com>
13751
13752 PR target/6561
13753 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
13754
98791e3a
RH
137552002-05-05 Richard Henderson <rth@redhat.com>
13756
13757 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
13758 memory latency adjustments.
13759 (alpha_variable_issue): Remove.
13760 (alpha_use_dfa_pipeline_interface): New.
13761 (alpha_multipass_dfa_lookahead): New.
13762 * config/alpha/alpha.md: Remove define_function_unit scheduling;
13763 include new dfa scheduling.
13764 (attr type): Add none.
13765 (blockage): Use it.
13766 * config/alpha/ev4.md: New.
13767 * config/alpha/ev5.md: New.
13768 * config/alpha/ev6.md: New.
13769
309527ce
DM
137702002-05-05 David S. Miller <davem@redhat.com>
13771
13772 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
13773
68252e27
KH
137742002-05-05 Kazu Hirata <kazu@cs.umass.edu>
13775
13776 * cse.c: Fix formatting.
13777 * emit-rtl.c: Likewise.
13778
30cc9d00
VM
137792002-05-05 Vladimir Makarov <vmakarov@redhat.com>
13780
13781 * genautomata.c (initiate_states): Add additional guard to
13782 initialize `units_array'.
13783
deb09eff
VM
137842002-05-05 Vladimir Makarov <vmakarov@redhat.com>
13785
13786 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
13787 process_unit_to_form_the_same_automaton_unit_lists,
13788 form_the_same_automaton_unit_lists
13789 check_unit_distributions_to_automata): New prototypes and
13790 functions.
13791 (check_automata): Rename it into `check_automata_insn_issues'.
13792 (unit_decl): New fields `the_same_automaton_unit' and
13793 `the_same_automaton_message_reported_p'.
13794 (unit_decl_t): New typedef.
13795 (the_same_automaton_lists): New gloval variable.
13796 (unit_regexp, unit_set_el, units_array, units_cmp,
13797 output_get_cpu_unit_code_func): Use the typedef.
13798 (evaluate_max_reserv_cycles): Increment
13799 `description->max_insn_reserv_cycles'.
13800 (initiate_states): Don't increment `max_cycles_num'.
13801 (transform_insn_regexps): Move code around transformation of
13802 regexps from `generate'.
13803 (generate): Remove call of `transform_insn_regexps'.
13804 (expand_automata): Call `transform_insn_regexps' and
13805 `check_unit_distributions_to_automata'. Check errors before
13806 `generate'.
13807
13808 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
13809 automaton `ultrasparc3_1'.
e2ff6cee 13810
2443d4e1
NB
138112002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
13812
13813 * c-common.c (c_common_init): Set up CPP arithmetic.
13814 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
13815 something reasonable for the host.
13816 (sanity_checks): Add checks.
13817 (cpp_read_main_file): Call sanity_checks() from here...
13818 (cpp_post_options): ... not here.
13819 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
13820 * cpplib.h (struct cpp_options): New member int_precision.
13821
791a949f
FS
138222002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13823
13824 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
13825
091fb516
DM
138262002-05-04 David S. Miller <davem@redhat.com>
13827
f60ebeb7
DM
13828 * config/sparc/linux.h, config/sparc/linux64.h
13829 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
13830
214c6394
DM
13831 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
13832 more RTX codes.
13833 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
13834
091fb516
DM
13835 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
13836 of SETs.
13837
f2fdc802
TJ
138382002-05-05 Tim Josling <tej@melbpc.org.au>
13839
e2ff6cee 13840 * treelang; New directory for new sample language treelang.
f2fdc802 13841
3d90d290
NB
138422002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
13843
13844 * Makefile.in (c-lex.o): Update.
13845 * c-lex.c: Include target.h.
13846 (cb_register_builtins): New.
13847 (init_c_lex): Set builtins callback.
13848 * c-lex.h (cpp_define, cpp_assert): New prototypes.
13849 * cppinit.c (init_builtins): Use callback, including for
13850 GXX_WEAK.
13851 * cpplib.h (struct cpp_callbacks): New member.
13852 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
13853 (TARGET_INITIALIZER): Update.
13854 * target.h (struct gcc_target): New hook.
13855 * tree.c (default_register_cpp_builtins): New.
13856 * tree.h (default_register_cpp_builtins): New.
13857doc:
13858 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
13859
625458d0
NB
138602002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
13861
13862 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
13863 (cpp_post_options): Move sanity checks to...
13864 (sanity_checks): New.
13865 * cpplex.c (maybe_read_ucs): Fix prototype.
13866 (parse_string, cpp_parse_escape): Cast for %c format specifier.
13867 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
13868 if necessary.
13869
916b60b7
BS
138702002-05-04 Bernd Schmidt <bernds@redhat.com>
13871
13872 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
13873 builtins. Use V2DI patterns instead of TI for logical operations.
13874 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
13875 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
13876 (ix86_expand_builtins): Change the pattern used for movntdq.
13877 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
13878 sse2_nandv2di3): New patterns.
13879 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
13880 on operands.
13881 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
13882 (cvtdq2pd): Correct mode on operand 1.
13883 (sse2_umulsidi3): Describe without unspec.
13884 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
13885 machine modes.
13886 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
13887 (ashlv2di3): Likewise, from sse2_ashlv2di3.
13888 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
13889 ashlv4si3, ashlv2di3): Use SImode for shift count.
13890 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
13891 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
13892 New patterns.
13893 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
13894 New typedefs.
13895 (__m128i, __m128d): New macros.
13896 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
13897 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
13898 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
13899 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
13900 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
e2ff6cee 13901 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
916b60b7
BS
13902 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
13903 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
e2ff6cee 13904 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
916b60b7
BS
13905 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
13906 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
13907 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
13908 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
13909 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
13910 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
13911 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
13912 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
13913 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
13914 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
13915 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
13916 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
13917 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
13918 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
13919 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
13920 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
13921 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
13922 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
13923 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
13924 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
13925 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
13926 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
13927 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
13928 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
13929 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
13930 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
13931 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
13932 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
13933 functions.
e2ff6cee 13934 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
916b60b7
BS
13935 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
13936
c26fbbca
KH
139372002-05-04 Kazu Hirata <kazu@cs.umass.edu>
13938
13939 * dwarf2out.c: Fix formatting.
13940 * varasm.c: Likewise.
13941
0387639b
DE
139422002-05-04 David Edelsohn <edelsohn@gnu.org>
13943
13944 PR c/6543
13945 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
13946 clobber and use result as temporary value.
13947
8a28dbcc
JH
13948Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
13949
13950 * expr.c (force_operand): Use expand_simple_* to handle more
13951 cases.
13952
4268e8bb
NB
139532002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
13954
13955 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
13956 and sign-extension.
13957 (lex_charconst): Update for change in prototype of
13958 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
13959 appropriately.
13960 * cpphash.h (BITS_PER_CPPCHAR_T): New.
13961 * cppinit.c (cpp_create_reader): Initialize them for no
13962 change in semantics.
13963 (cpp_post_options): Add sanity checks.
13964 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
13965 and truncation issues. Calculate in type cppchar_t.
13966 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
13967 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
13968 run-time dependent precision correctly. Return whether the
13969 result is signed or not.
13970 * cpplib.c (dequote_string): Use cppchar_t; update.
13971 * cpplib.h (cppchar_signed_t): New.
13972 struct cpp_options): New precision members.
13973 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
ae1a07e0 13974 * cppexp.c (eval_token): Update.
4268e8bb 13975
af54350e
DM
139762002-05-03 David S. Miller <davem@redhat.com>
13977
2ce04b6b
DM
13978 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
13979 * config/sparc/sparc.c (sparc_rtx_costs): New function
13980 implementing RTX_COSTS and CONST_COSTS.
13981 * config/sparc/sparc.h (CONST_COSTS): Delete.
13982 (RTX_COSTS_CASES): Define.
13983 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
13984 the work.
13985
a1d9bd0c
DM
13986 * config/sparc/sparc.md (DFA schedulers): Split out...
13987 * config/sparc/cypress.md, config/sparc/hypersparc.md,
13988 config/sparc/sparclet.md, config/sparc/supersparc.md,
13989 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
13990
e87bb82e
DM
13991 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
13992 checks on it, always defined for Sparc.
13993
af54350e
DM
13994 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
13995 Tweak, and add more detailed comments.
13996
935bfb44
ZW
139972002-05-03 Zack Weinberg <zack@codesourcery.com>
13998
13999 * Re-apply patch accidentally reverted with
14000 DFA scheduler merge: remove all rules and variables to slurp
14001 source files out of libiberty and rebuild them with HOST_CC.
14002 ($(HOST_PREFIX_1)varray.o): New rule.
14003 (genattrtab rule): Word wrap.
14004
fa7a0712
JT
140052002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
14006
14007 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
14008 (CPP_SUBTARGET_SPEC): Define.
14009 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
14010 cpp_subtarget specs.
14011 (CPP_SPEC): Redefine to include %(cpp_subtarget).
14012
14c93978
DM
140132002-05-03 David S. Miller <davem@redhat.com>
14014
14015 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
14016 * target.h (struct gcc_target): Delete cycle_display member.
14017
14d118d6
DM
14018 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
14019 (rtx_needs_barrier): Delete reference to cycle_display unspec.
14020 (ia64_sched_reorder2): Mention need for cycle display handling
14021 once such notes exist.
935bfb44 14022
b3ae1ccd
RH
140232002-05-03 Richard Henderson <rth@redhat.com>
14024
14025 * real.c (etoasc): Strip most trailing zeros for clarity.
14026 * sched-vis.c: Include real.h.
14027 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
14028 * Makefile.in (sched-vis.o): Add real.h.
14029
8f39865a
DM
140302002-05-03 David S. Miller <davem@redhat.com>
14031
14032 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
14033 no longer needed.
14034
b44140e7
AH
140352002-05-03 Aldy Hernandez <aldyh@redhat.com>
14036
935bfb44
ZW
14037 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
14038 when we get an out of range literal.
14039 (altivec_expand_ternop_builtin): Same.
14040 (altivec_expand_unop_builtin): Same.
14041 (altivec_expand_builtin): Same, for dss.
14042 (altivec_expand_builtin): Use trees instead of rtl when
14043 determining literal argument validity.
b44140e7 14044
aaaed752
DM
140452002-05-03 David S. Miller <davem@redhat.com>
14046
14047 Delete cycle display scheduling hook.
14048 * config/ia64/ia64.c (ia64_cycle_display,
14049 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
14050 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
14051 and use emit_insn_before instead of ia64_emit_insn_before.
14052 * config/ia64/ia64.md (unspec usage): Delete cycle display.
14053 (cycle_display): Delete insn pattern.
14054 * config/sparc/sparc.md (unspec usage): Delete cycle display.
14055 (cycle_display): Delete insn pattern.
14056 * config/sparc/sparc.c (sparc_cycle_display,
14057 TARGET_SCHED_CYCLE_DISPLAY): Delete.
14058 * doc/md.texi (cycle_display): Don't mention.
14059 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
935bfb44 14060
b37c2614
RH
140612002-05-03 Richard Henderson <rth@redhat.com>
14062
14063 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
14064 * recog.h: Declare them.
14065
14066 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
14067 * config/sparc/sparc.md: Use store_data_bypass_p instead.
14068 * config/sparc/sparc-protos.h: Update.
935bfb44 14069
e1c1132e
JT
140702002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
14071
14072 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
14073 -D__arch64__. Add -D_LP64.
14074 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
14075 from sparc.h.
14076 (CPP_ARCH64_SPEC): Likewise.
14077 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
14078 (NO_BUILTIN_SIZE_TYPE): Undef.
14079
0b2fb0d7
VM
140802002-05-03 Vladimir Makarov <vmakarov@redhat.com>
14081
14082 * genautomata.c (min_issue_delay_pass_states): Change return type
14083 in the prototype.
14084 (min_issue_delay_pass_states): Change the algorithm.
14085 (min_issue_delay): Set up min_insn_issue_delay for the state.
14086 (output_min_issue_delay_table): Interchange the nested loops and
14087 and initiate min_insn_issue_delay for states.
935bfb44 14088
3d4ce12a
JH
14089Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
14090
14091 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
14092 jump is simplejump.
14093
14094Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
37ad04a5
JH
14095
14096 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
14097 sequence.
14098
b5482208
RH
140992002-05-03 Richard Henderson <rth@redhat.com>
14100
14101 PR opt/6534
14102 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
14103 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
14104 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
14105 code before JUMP, not EARLIEST.
14106
5a3085c5
JM
141072002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
14108
14109 * c-format.c (check_format_info_main): Don't check for presence of
14110 parameter for * width until after operand number has been read,
14111 and only check for it if format parameters are available.
14112 Fixes PR c/6547.
14113
40039424
JT
141142002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
14115
14116 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
14117 (LINK_SPEC): Undef before defining.
14118
8157303b
JJ
141192002-05-03 Jakub Jelinek <jakub@redhat.com>
14120
14121 PR preprocessor/6489
14122 * tradcpp.c (fixup_newlines): New.
14123 (main, finclude): Use it.
14124
66319f5c
RS
141252002-05-03 Richard Sandiford <rsandifo@redhat.com>
14126
14127 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
14128 * config/mips/mips.c (mips_unique_section): Strip encoding from
14129 decl name.
14130
ce8076ad
JJ
141312002-05-03 Jakub Jelinek <jakub@redhat.com>
14132
14133 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
14134 mode.
14135
975c6e4e
RO
141362002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14137
14138 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
14139 (Specific): Removed buildstats references.
14140 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
14141 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
14142 Accomodate Solaris versions beyond 8.
14143 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
14144 (Specific, *-*-solaris2.8): Removed, obsolete.
14145
d70e94ec
JJ
141462002-05-03 Jakub Jelinek <jakub@redhat.com>
14147
14148 PR target/6542
14149 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
14150 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
14151 fill leaf_reg_remap with identity.
14152 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
14153
6b148bd9
KH
141542002-05-03 Kazu Hirata <kazu@cs.umass.edu>
14155
14156 * config/h8300/crti.asm: Remove trailing spaces.
14157 * config/h8300/h8300.c: Likewise.
14158 * config/h8300/lib1funcs.asm: Likewise.
14159
609688f3
JM
141602002-05-02 Jason Merrill <jason@redhat.com>
14161
14162 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
14163 * c-decl.c (c_init_decl_processing): Use it.
14164 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
14165 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
14166 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
14167
3b03c671
KH
141682002-05-03 Kazu Hirata <kazu@cs.umass.edu>
14169
14170 * regrename.c: Fix formatting.
14171 * tree.c: Likewise.
14172
3b4961bd
JH
14173Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
14174
14175 * i386.md (attribute memory): Handle compares properly.
14176
19cba4a0
JH
14177Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
14178
3b4961bd 14179 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
19cba4a0
JH
14180 to none.
14181
797a6ac1
KH
141822002-05-02 Kazu Hirata <kazu@cs.umass.edu>
14183
14184 * function.c: Fix formatting.
14185
6d0de005
JH
141862002-05-02 Jan Hubicka <jh@suse.cz>
14187
14188 * haifa-sched.c (schedule_insn): Print table of instructions and
14189 reservations.
14190 (sched_block): Do not print ready list at verbosity level 1.
14191 * sched-vis.c (print_insn): Make global.
14192 * sched-ebb.c (ebb_print_insn): Rename from...
14193 (print_insn): ... this one.
14194 * sched-int.h (print_insn): Declare
14195
0bfb9a69
RH
141962002-05-02 Richard Henderson <rth@redhat.com>
14197
14198 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
14199 emitted by cycle_display.
14200
6b976d99
LR
142012002-05-02 Loren J. Rittle <ljrittle@acm.org>
14202
14203 * doc/install.texi (*-*-freebsd*): Update to latest status.
14204
0a295052
JJ
142052002-05-02 Jakub Jelinek <jakub@redhat.com>
14206
14207 PR target/6540
14208 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
14209 * config/float-sparc.h: Assume 128-bit long double if
14210 __LONG_DOUBLE_128__ is defined.
14211
842d5d6c
VM
142122002-05-02 Vladimir Makarov <vmakarov@redhat.com>
14213
14214 * genattrtab.c (write_function_unit_info): Add a dummy element
14215 when num_units == 0.
14216
3d7a6309
HB
142172002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14218
14219 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
14220 TYPE_MODE (double_type_node) instead of DFmode.
14221
1b6763cf
JH
14222Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
14223
14224 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
14225 jumps post reload.
14226 * toplev.c (rest_of_compilation): Revert Richard's patch.
14227
b303008e
JDA
142282001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
14229
14230 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
14231
6ed7412a
CM
142322002-05-02 Catherine Moore <clm@redhat.com>
14233
14234 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
14235
e0a2f705
KH
142362002-05-02 Kazu Hirata <kazu@hxi.com>
14237
b32d6163 14238 * combine.c: Fix comment typos.
e0a2f705
KH
14239 * expr.c: Likewise.
14240 * genautomata.c: Likewise.
14241 * stmt.c: Likewise.
14242 * tree.h: Likewise.
14243
38e23049
JM
142442002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
14245
14246 * doc/install.texi: State GNAT version requirements.
14247
40f4a97d
NC
142482002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
14249
14250 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
14251 of the frame pointer or arg pointer register which strict register
14252 checking is not enabled.
14253
0d6d6892
AH
142542002-05-02 Aldy Hernandez <aldyh@redhat.com>
14255
b5482208 14256 * gcc.dg/altivec-8.c: New.
0d6d6892 14257
b5482208
RH
14258 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
14259 PRE_INC and PRE_DEC for altivec modes.
0d6d6892 14260
abaa8559
BK
142612002-05-01 Bruce Korb <bkorb@gnu.org>
14262
14263 * fixinc/check.tpl(set-writable): make sure the function exists first
14264 * fixinc/inclhack.def(alpha_assert): fix test_text
14265 * fixinc/tests/base/assert.h: add in missing result
14266
ecab2143
JL
142672002-05-01 Jeff Law <law@redhat.com>
14268
14269 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
14270 'T' constraint.
14271
ea619b46
JB
142722002-05-01 Joel Brobecker <brobecker@gnat.com>
14273
14274 * dbxout.c (dbxout_type): Emit size information for range types,
14275 as well, but only when using GDB extensions.
14276
c72931a6
RH
142772002-05-01 Richard Henderson <rth@redhat.com>
14278
14279 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
14280 target-independent gnu binutils date test.
14281
2150ad33
RH
142822002-05-01 Richard Henderson <rth@redhat.com>
14283
14284 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
14285 info before expunging the block.
14286
1651cc96
JJ
142872002-05-01 Jakub Jelinek <jakub@redhat.com>
14288
14289 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
14290 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
14291 -M -or -MM is in effect.
14292
8998d5bf
ZW
142932002-05-01 Zack Weinberg <zack@codesourcery.com>
14294
14295 * config.gcc: Correct test of --enable-obsolete. Obsolete all
14296 A29k configurations.
14297 * doc/install.texi: Update to match.
14298
a81eed10
FS
142992002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14300
14301 PR bootstrap/6514
14302 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
14303 for duplicates. Always loop over whole list.
14304
8d53318f
RK
14305Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14306
14307 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
14308
4109b118
JS
143092002-05-01 Joel Sherrill <joel@OARcorp.com>
14310
14311 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
14312 support routines.
14313
c4a9c570
JS
143142002-05-01 Joel Sherrill <joel@OARcorp.com>
14315
14316 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
14317
ea112fc4
DE
143182002-05-01 David Edelsohn <edelsohn@gnu.org>
14319
14320 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
14321 (nabs_nopower): Same.
14322 (floatdisf2): New pattern.
14323 (absdi2): Convert to define_insn_and_split.
14324 (nabsdi2): Same.
14325 (trunctfsf2): Same.
14326 (floatditf2): Same.
14327 (floatsitf2): Same.
14328 (fix_trunctfdi2): Same.
14329 (fix_trunctfsi2): Same.
14330
dda78254
JM
143312002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
14332
14333 * doc/install.texi: Update Texinfo version requirement
14334 documentation.
14335
26aeede4
JJ
143362002-05-01 Jakub Jelinek <jakub@redhat.com>
14337
14338 PR target/6512, PR target/5628
14339 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
14340 when memory is not aligned.
14341 (movdf_insn_v9only_vis): Likewise.
14342 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
14343 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
14344 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
14345
9b7bc465
AH
143462002-05-01 Aldy Hernandez <aldyh@redhat.com>
14347
8998d5bf 14348 * gcc.dg/altivec-7.c: New.
9b7bc465 14349
8998d5bf 14350 * config/rs6000/altivec.h: Cleanup.
9b7bc465 14351
08b57fb3
AH
143522002-04-30 Aldy Hernandez <aldyh@redhat.com>
14353
8998d5bf
ZW
14354 * doc/invoke.texi (Option Summary): Add -mvrsave=.
14355 (RS/6000 and PowerPC Options): Document -mvrsave=.
08b57fb3 14356
8998d5bf
ZW
14357 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
14358 (rs6000_altivec_vrsave_string): Same.
14359 (rs6000_override_options): Call rs6000_parse_vrsave_option.
14360 (rs6000_parse_vrsave_option): New.
14361 (rs6000_stack_info): Only generate vrsave instructions when
14362 TARGET_ALTIVEC_VRSAVE.
08b57fb3 14363
8998d5bf
ZW
14364 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
14365 (rs6000_altivec_vrsave_string): Define extern.
14366 (rs6000_altivec_vrsave): Same.
14367 (TARGET_ALTIVEC_VRSAVE): New.
08b57fb3 14368
8e8c38cd
RH
143692002-04-30 Richard Henderson <rth@redhat.com>
14370
14371 PR opt/6516
14372 * toplev.c (rest_of_compilation): Don't run cross-jump before
14373 bb-reorder.
14374
4be9e9cb
TR
143752002-04-30 Tom Rix <trix@redhat.com>
14376
8998d5bf 14377 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4be9e9cb
TR
14378 check which_alternative.
14379
1eeeb6a4
KH
143802002-04-30 Kazu Hirata <kazu@hxi.com>
14381
14382 * cpplex.c: Fix comment formatting.
14383 * function.c: Likewise.
14384 * integrate.c: Likewise.
14385 * regrename.c: Likewise.
14386 * sibcall.c: Likewise.
14387 * simplify-rtx.c: Likewise.
14388 * tree-inline.c: Likewise.
14389
ed9d6ff9
JDA
143902002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
14391
14392 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
14393 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
14394 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
14395 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
14396 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
14397 * pa/x-ada: New file. Define ADA_CFLAGS.
14398
1f2641b6
HPN
143992002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
14400
14401 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
14402 from MMIX_LAST_REGISTER_FILE_REGNUM.
14403 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
14404 (struct machine_function): New member highest_saved_stack_register
14405 previously static variable in mmix.c.
14406 (MACHINE_DEPENDENT_REORG): Define.
14407 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
14408 (MMIX_OUTPUT_REGNO): New.
14409 (mmix_target_asm_function_prologue): Move calculation of last used
14410 saved-stack-register into...
14411 (mmix_machine_dependent_reorg): New function. Update to also handle
14412 !TARGET_ABI_GNU.
14413 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
14414 register names, simplify somewhat by new variable regno.
14415 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
14416 register.
14417 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
14418 emitting register names.
14419 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
14420 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
14421 Remove fixed FIXME.
14422 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
14423 Declare.
14424
14425 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
14426
73985940
RH
144272002-04-30 Richard Henderson <rth@redhat.com>
14428
14429 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
14430 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
14431 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
14432 emit_tfmode_cvt): New.
14433 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
14434 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
14435 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
14436 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
14437 * config/sparc/sparc-protos.h: Update.
14438
2b46bc67
JJ
144392002-04-30 Janis Johnson <janis187@us.ibm.com>
14440
14441 * install.texi (Final install): Add to the list of info to include
14442 in a report of a successful bootstrap, and add link to 3.1 list.
14443
3d34cd91
JH
14444Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
14445
14446 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
14447 (mode): Add vector modes
14448 (i387): Kill attribute.
14449 (unit): New attribute.
14450 (length_immediate): Grok new types.
14451 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
14452 (modrm): Use "unit".
14453 (memory): Handle MMX/SSE properly.
14454 (scheduling descriptions): Kill uses of fop1.
14455 (sse, mmx, fp patterns): Set type and mode properly.
14456
243e5500 14457Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
3193c415 14458
30482eb0
JL
14459 * pa.c (override_options): Default to PA8000 scheduling.
14460 * doc/invoke.texi (HP-PA options): Mention newly added 7300
14461 scheduling parameter.
14462
3193c415
JL
14463 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
14464 handling of double precision multiplies.
14465
14466 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
14467 fpdiv and fpsqrt instructions.
14468 (7200 & 7300 scheduling): Fix typo in handling of
14469 store-load and store-store penalties.
14470
c0a34cb7
GP
144712002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14472
14473 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
14474 mips. Add two missing commas.
14475
8bce0628
PC
144762002-04-30 Paolo Carlini <pcarlini@unitus.it>
14477
14478 * doc/contrib.texi (Contributors): Update Paolo Carlini's
14479 and Benjamin Kosnik's entries.
14480
84643cbf
DM
144812002-04-29 David S. Miller <davem@redhat.com>
14482
14483 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
14484 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
14485 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
14486 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
14487
da6886f6
FS
144882002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14489
14490 * combine.c (find_split_point): Use gen_int_mode.
14491
fae15c93
VM
144922002-04-29 Vladimir Makarov <vmakarov@redhat.com>
14493
14494 Merging code from dfa-branch:
8998d5bf 14495
fae15c93
VM
14496 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
14497
14498 * genautomata.c (output_reserv_sets): Fix typo.
14499
14500 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
14501
14502 * genautomata.c (output_reserv_sets): Remove
14503 next_cycle_output_flag.
14504
14505 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
14506
8998d5bf
ZW
14507 * sched-rgn.c (init_ready_list): Make the DFA code handle
14508 USE/CLOBBER insns in the same way as the traditional
14509 scheduler.
14510 (new_ready): Similarly..
fae15c93
VM
14511
14512 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
14513
14514 * haifa-sched.c (schedule_block): Change the DFA state only after
14515 issuing insn.
14516
14517 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
14518
14519 * pa.c (hppa_use_dfa_pipeline_interface): New function.
14520 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
14521 (override_options): Add PA7300 scheduling support.
14522 (pa_adjust_cost): Update various comments. Properly
14523 handle anti and output dependencies when using the
14524 DFA scheduler.
14525 (pa_issue_rate): Add PA7300 scheduling support.
14526 (pa_can_combine_p): Call extract_insn before calling
14527 constrain_operands (taken from mainline tree).
14528 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
14529 * pa.md (cpu attr): Add 7300. Rewrite pipeline
14530 descriptions using DFA descriptions. Add PA7300
14531 scheduling support.
14532
14533 2002-03-30 David S. Miller <davem@redhat.com>
14534
14535 Add UltraSPARC-III DFA scheduling support.
14536 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
14537 Update FP conditional move on register insn patterns to use it, as
14538 appropriate.
14539 (define_attr cpu): Add ultrasparc3.
14540 (define_attr us3load_type): New, update integer load patterns to
14541 set it, as appropriate.
14542 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
14543 (rest): Add UltraSPARC3 scheduling description.
14544 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
14545 (PROCESSOR_ULTRASPARC3): New.
14546 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
14547 ({ASM,CPP}_CPU_SPEC): Likewise.
14548 (REGISTER_MOVE_COST): Likewise.
14549 (RTX_COSTS): Likewise.
14550 * config/sparc/sparc.c (sparc_override_options,
14551 sparc_initialize_trampoline, sparc64_initialize_trampoline,
14552 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
14553 sparc_issue_rate): Likewise.
14554 * config/sparc/sol2.h: Likewise.
14555 * config/sparc/sol2-sld-64.h: Likewise.
14556 * config/sparc/linux64.h: Likewise.
8998d5bf 14557
fae15c93
VM
14558 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
14559
14560 * doc/md.texi: Add comments about usage the latency time for the
14561 different dependencies and about case when two or more conditions
14562 in different define_insn_reservations returns TRUE for an insn.
14563
14564 * doc/md.texi: Add reference for automaton based pipeline
14565 description.
8998d5bf 14566
fae15c93
VM
14567 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
14568
14569 * doc/passes.texi: Add missed information about genattrtab.
14570
14571 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
14572
14573 * genautomata.c (output_automata_list_transition_code): Check
14574 automata_list on NULL.
14575
14576 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
14577
14578 * genautomata.c (output_insn_code_cases,
14579 output_automata_list_min_issue_delay_code,
14580 output_automata_list_transition_code,
14581 output_automata_list_state_alts_code): Comment the functions.
14582
14583 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
14584
14585 * genautomata.c (automata_list_el_t): New typedef.
14586 (get_free_automata_list_el,free_automata_list_el,
14587 free_automata_list, automata_list_hash, automata_list_eq_p,
14588 initiate_automata_lists, automata_list_start, automata_list_add,
14589 automata_list_finish, finish_automata_lists,
14590 output_insn_code_cases, output_automata_list_min_issue_delay_code,
14591 output_automata_list_transition_code,
14592 output_automata_list_state_alts_code, add_automaton_state,
14593 form_important_insn_automata_lists): New functions and prototypes.
14594 (insn_reserv_decl): Add members important_automata_list and
14595 processed_p.
14596 (ainsn): Add members important_p.
14597 (automata_list_el): New structure.
14598 (first_free_automata_list_el, current_automata_list,
14599 automata_list_table): New global variables.
14600 (create_ainsns): Initiate member important_p.
14601 (output_internal_min_issue_delay_func): Generate the switch and
14602 call output_insn_code_cases.
14603 (output_internal_trans_func, output_internal_state_alts_func):
14604 Ditto.
14605 (generate): Call initiate_automata_lists.
14606 (automaton_states): New global variable.
14607 (expand_automata): Call form_important_insn_automata_lists.
14608 (write_automata): Call finish_automata_lists.
8998d5bf 14609
fae15c93
VM
14610 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
14611
14612 * genautomata.c (add_excls, add_presence_absence): Check that
8998d5bf 14613 cpu units in the sets belong the same automaton.
fae15c93
VM
14614
14615 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
14616 about that cpu units in the sets belong the same automaton.
14617
14618 * doc/md.texi: Ditto.
8998d5bf 14619
2799d721
VM
14620 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
14621 Nitin Gupta <niting@noida.hcltech.com>
8998d5bf 14622
fae15c93
VM
14623 * config/sh/sh.c (sh_use_dfa_interface): New function.
14624
14625 (sh_issue_rate): New Function.
14626 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
14627 TARGET_SCHED_ISSUE_RATE: define.
14628
14629 * config/sh/sh.md: Add DFA based pipeline description for SH4.
14630
8998d5bf
ZW
14631 (define_attr insn_class): New attribute used for DFA
14632 scheduling.
fae15c93
VM
14633 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
14634 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
14635 cmpeqdi_t): Likewise.
14636
14637 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
8998d5bf 14638 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
fae15c93
VM
14639 ex_group.
14640 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
8998d5bf 14641
fae15c93
VM
14642 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
14643
14644 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
14645 break.
14646
14647 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
14648
14649 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
14650 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
14651 necessary.
14652 (output_dfa_start_func): Initiate new variable insn_codes_length,
14653 (write_automata): Output definition of the new variable.
8998d5bf 14654
fae15c93
VM
14655 2001-10-02 David S. Miller <davem@redhat.com>
14656
14657 * haifa-sched.c (advance_one_cycle): New function.
14658 (schedule_block): Use it.
14659 (queue_to_ready): Use it, and also make sure to advance the DFA
14660 state on all stall cycles, not just those where insn_queue links
14661 are found.
14662
14663 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
14664
14665 * haifa-sched.c (max_issue): Remove last_p argument. Only return
14666 non-zero if the highest-priority instruction could be scheduled.
14667 (choose_ready): Remove last argument from max_issue call.
14668
14669 2001-09-28 David S. Miller <davem@redhat.com>
14670
14671 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
14672 ultrasparc and 3 for other multi-issue sparcs.
14673
14674 2001-09-27 David S. Miller <davem@redhat.com>
14675
14676 * config/sparc/sparc.md (cycle_display): New pattern.
14677 * config/sparc/sparc.c (sparc_cycle_display): New.
14678 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
14679
14680 2001-09-25 David S. Miller <davem@redhat.com>
14681
14682 Convert all of Sparc scheduling to DFA
14683 * config/sparc/sparc.md: Kill all define_function_unit
14684 directives and replace with DFA equivalent.
14685 * config/sparc/sparc.c (ultrasparc_adjust_cost,
14686 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
14687 ultra_fpmode_conflict_exists, ultra_find_type,
14688 ultra_build_types_avail, ultra_flush_pipeline,
14689 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
14690 ultrasparc_variable_issue, ultrasparc_sched_init,
14691 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
14692 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
14693 ultra_cur_hist, ultra_cycles_elapsed): Kill.
14694 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
14695 ultrasparc_store_bypass_p): New.
14696 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
14697 Declare.
14698
14699 2001-09-24 David S. Miller <davem@redhat.com>
14700
14701 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
14702 ready->vec[foo] not ready[foo].
14703
14704 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
14705
14706 * doc/md.texi: Correct examples for define_insn_reservations
14707 `mult' and `div'.
14708
14709 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
14710
14711 * genautomata.c (create_automata): Print message about creation of
14712 each automaton.
14713 (generate): Remove printing meease about creation of
14714 automata.
14715
14716 2001-09-05 David S. Miller <davem@redhat.com>
14717
14718 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
14719 * config/sparc/linux64.h: Likewise.
14720
14721 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
14722
14723 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
14724 schedule_block, sched_init, sched_finish): Add missed calls of
14725 use_dfa_pipeline_interface.
14726
14727 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
14728 Ditto.
14729
14730 * sched-vis.c (get_visual_tbl_length): Ditto.
8998d5bf 14731
fae15c93
VM
14732 2001-08-27 Richard Henderson <rth@redhat.com>
14733
14734 * genattr.c (main): Emit state_t even when not doing scheduling.
14735
14736 2001-08-27 Richard Henderson <rth@redhat.com>
14737
14738 * genautomata.c (expand_automata): Always create a description.
14739
14740 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
14741
8998d5bf 14742 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
fae15c93
VM
14743 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
14744 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
14745 RTL constructions.
14746
14747 * genattr.c (main): New variable num_insn_reservations. Increase
14748 it if there is DEFINE_INSN_RESERVATION. Output automaton based
14749 pipeline hazard recognizer interface.
14750
14751 * genattrtab.h: New file.
14752
14753 * genattrtab.c: Include genattrtab.h.
14754 (attr_printf, check_attr_test, make_internal_attr,
14755 make_numeric_value): Move protypes into genattrtab.h. Define them
14756 as external.
14757 (num_dfa_decls): New global variable.
14758 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
14759 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
14760 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
14761 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
14762
14763 * genautomata.c: New file.
14764
14765 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
14766
8998d5bf 14767 * sched-int.h: (curr_state): Add the external definition for
fae15c93
VM
14768 automaton pipeline interface.
14769 (haifa_insn_data): Add comments for members blockage and units.
14770
14771 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
14772 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
14773 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
14774 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
14775 TARGET_SCHED_DFA_POST_CYCLE_INSN,
14776 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
14777 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
14778 macros.
14779 (TARGET_SCHED): Use the new macros.
14780
14781 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
14782 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
14783 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
14784 dfa_bubble): New members in gcc_target.sched.
14785
8998d5bf 14786 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
fae15c93
VM
14787 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
14788 (insn_queue): Redefine it as pointer to array.
14789 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
14790 INSN_QUEUE_SIZE.
14791 (max_insn_queue_index_macro_value): New variable.
14792 (curr_state, dfa_state_size, ready_try): New varaibles for
14793 automaton interface.
14794 (ready_element, ready_remove, max_issue): New function prototypes
14795 for automaton interface.
14796 (choose_ready): New function prototype.
14797 (insn_unit, blockage_range): Add comments.
14798 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
14799 FUNCTION_UNITS_SIZE == 0.
14800 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
14801 actual_hazard, potential_hazard): Add comments.
14802 (insn_cost): Use cost -1 as undefined value. Remove
14803 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
14804 pipeline interface.
14805 (ready_element, ready_remove): New functions for automaton
14806 interface.
14807 (schedule_insn): Add new code for automaton pipeline interface.
14808 (queue_to_ready): Add new code for automaton pipeline interface.
14809 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
14810 (debug_ready_list): Print newline when the queue is empty.
14811 (max_issue): New function for automaton pipeline interface.
14812 (choose_ready): New function.
14813 (schedule_block): Add new code for automaton pipeline interface.
14814 Print ready list before scheduling each insn.
14815 (sched_init): Add new code for automaton pipeline interface.
14816 Initiate insn cost by -1.
14817 (sched_finish): Free the current automaton state and finalize
14818 automaton pipeline interface.
14819
14820 * sched-rgn.c: Include target.h.
14821 (init_ready_list, new_ready, debug_dependencies): Add new code for
14822 automaton pipeline interface.
14823
14824 * sched-vis.c: Include target.h.
14825 (get_visual_tbl_length): Add code for automaton interface.
14826 (target_units, print_block_visualization): Add comments.
14827
8998d5bf 14828 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
fae15c93
VM
14829 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
14830 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
14831 (getruntime.o, genautomata.o): New entries.
14832 (genattrtab.o): Add new dependency file genattrtab.h.
14833 (genattrtab): Add new dependencies. Link it with `libm.a'.
14834 (getruntime.o, hashtab.o): New entries for canadian cross.
14835
14836 * doc/md.texi: Description of automaton based model.
14837
14838 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
14839 Add comments.
14840 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
14841 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
14842 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
14843 TARGET_SCHED_DFA_POST_CYCLE_INSN,
14844 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
14845 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
14846 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
14847 hook descriptions.
14848 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
14849 MAX_DFA_ISSUE_RATE): New macro descriptions.
14850
14851 * doc/contrib.texi: Add dfa based scheduler contribution.
14852
14853 * doc/gcc.texi: Add more information about genattrtab.
14854
a2ff290c
RK
14855Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14856
14857 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
14858 adjust_address_nv call.
14859
f97903cc
JJ
148602002-04-29 Janis Johnson <janis187@us.ibm.com>
14861
14862 * doc/install.texi (Testing): Provide additional information, and
14863 a stronger encouragement, for running the testsuites.
14864
f41a6bf1
DD
148652002-04-29 DJ Delorie <dj@redhat.com>
14866
14867 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
14868 given in upper case.
14869
d8af0868
RO
148702002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14871
14872 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
14873 Solaris 2 <widec.h> if missing.
14874 * fixinc/fixincl.x: Regenerate.
14875 * fixinc/tests/base/widec.h: New file.
14876
1034407f
NC
148772002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
14878
14879 * toplev.c (f_options): Add "profile" switch so that
14880 -fno-profile can be used to disable -p.
14881
fbe5eb6d
BS
148822002-04-29 Bernd Schmidt <bernds@redhat.com>
14883
14884 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
14885 UV2DImode.
14886 * tree.c (build_common_tree_nodes_2): Likewise.
14887 * tree.h (enum tree_index): Likewise.
14888 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
14889
14890 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
14891 entries.
14892 (init_mmx_sse_builtins): Initialize SSE2 builtins.
14893 (ix86_expand_builtin): Add support for SSE2 builtins.
14894 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
14895 (VALID_SSE_REG_MODE): Use it.
14896 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
14897 (enum ix86_builtins): Add SSE2 builtins.
14898 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
14899 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
14900 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
14901 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
14902 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
14903 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
14904 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
14905 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
14906 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
14907 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
14908 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
14909 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
14910 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
14911 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
14912 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
14913 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
14914 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
14915 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
14916 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
14917 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
14918 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
14919 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
14920 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
14921 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
14922 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
14923 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
14924 lfence_insn): New patterns.
14925 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
14926 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
14927
44aefada
JH
14928Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
14929
14930 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
14931
d5482cdc
GP
149322002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14933
14934 * doc/contrib.texi (Contributors): Add Paolo Carlini and
14935 Janis Johnson.
14936 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
14937 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
14938 and CPU instead of cpu.
14939
2c4b77f3
JH
14940Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
14941
14942 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
14943 variables.
14944 (lang_independent_options): Add -fif-conversion, -fif-conversion2
14945 (rest_of_compilation): Do if conversion only when asked for.
14946 (parse_options_and_default_flags): Set new variables to 1 for -O1
14947 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
14948
3de72741
JH
14949Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
14950
14951 * i386.c (dbx64_register_map): Fix typo.
14952
8aa18a7d
JH
14953Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
14954
14955 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
14956 real_one_half, real_bb_freq_max): New static variables.
14957 (debug_profile_bbauxs): Kill.
14958 (process_note_predictions): Kill unused variable.
14959 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
14960 volatile double.
14961 (propagate_freq): Use REAL_ARITHMETICS.
14962 (estimate_bb_frequencies): Likevise; init new static variables.
14963 * Makefile.in (predict.o): Add dependency on real.h
14964
1bbad4c6
DM
149652002-04-28 David S. Miller <davem@redhat.com>
14966
14967 PR target/6500
14968 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
14969 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
14970 several {reads,writes} instead.
14971 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
14972 Define.
14973
3ef3f384
DM
149742002-04-27 David S. Miller <davem@redhat.com>
14975
14976 PR target/6494
14977 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
14978 of the stack bias.
14979
14980 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
14981 including signal.h and sys/ucontext.h, not needed.
14982
ec493bcb
HPN
149832002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
14984
14985 * varasm.c (output_constant_def): Correct test for not calling
14986 ENCODE_SECTION_INFO for INTEGER_CST.
14987
60284a59
NB
149882002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
14989
14990 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
14991 keep most cases as function eval_token.
14992 (eval_token): New function.
14993 (_cpp_parse_expr): Read token here for improved diagnostics.
14994 Don't use op_as_text. Detect bad ':' here.
14995 (reduce): Don't detect bad ':' here.
14996 (op_as_text): Remove.
14997 * cpphash.h (_cpp_test_assertion): Change prototype.
14998 * cpplib.c (_cpp_test_assertion): Change prototype.
14999
349a4b40
RH
150002002-04-28 Richard Henderson <rth@redhat.com>
15001
15002 PR c/5154
8998d5bf 15003 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
349a4b40
RH
15004 (ggc_mark_rtx_children): New.
15005
7a03f82f
JJ
150062002-04-28 Jakub Jelinek <jakub@redhat.com>
15007
15008 PR target/6496
15009 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
15010 after call peepholes for UltraSPARC.
15011 (call + jump 64-bit peepholes): Remove.
15012
80103f96
FS
150132002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15014
15015 PR c/6497
15016 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
15017 result as temporary value.
15018
06990986
JJ
150192002-04-28 Jakub Jelinek <jakub@redhat.com>
15020
15021 PR c++/6396
15022 * toplev.c (rest_of_compilation): Only run regrename and copy
15023 propagation if optimizing.
15024
a20fd5ac
JJ
150252002-04-28 Jakub Jelinek <jakub@redhat.com>
15026
15027 PR optimization/6475
15028 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
15029 register of REGNO_DECL (i).
15030 * Makefile.in (reload1.o): Add $(TREE_H).
15031
87ed109f
NB
150322002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
15033
15034 * cppexp.c (lex): Update to use state.skip_eval.
15035 (struct op): Remove prio and flags members.
15036 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
15037 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
15038 (LEFT_ASSOC): New macro.
15039 (optab): New table of operator priorities and flags.
15040 (SHIFT): Update.
15041 (_cpp_parse_expr): Clean up logic. Return bool. Use a
15042 malloc-ed parser stack.
15043 (reduce): New; reduce the operator stack.
15044 (_cpp_expand_op_stack): Expand the operator stack as necessary.
15045 * cpphash.h (struct op): Predeclare.
15046 (struct cpp_reader): New members op_stack, op_limit.
15047 (struct lexer_state): New member skip_eval.
15048 (_cpp_parse_expr): Update.
15049 (_cpp_expand_op_stack): New.
15050 * cpplib.c (do_if): Update.
15051 * cppinit.c (cpp_create_reader): Create op stack.
15052 (cpp_destroy): And destroy it.
15053 * cpplib.h (CPP_LAST_CPP_OP): Correct.
15054 (TTYPE_TABLE): Correct.
15055
45806a3f
FS
150562002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15057
15058 PR c/6343
15059 * c-decl.c (duplicate_decls): Call merge_weak.
15060 * c-pragma.c (apply_pragma_weak): Warn about misuse.
15061 * output.h (merge_weak): Prototype merge_weak.
15062 * varasm.c (merge_weak): New function.
15063 (declare_weak): Make sure we don't give an error on VAR_DECLs.
15064 Mark RTL with SYMBOL_REF_WEAK.
15065
a6227154
KG
150662002-04-27 Kurt Garloff <garloff@suse.de>
15067
15068 * tree-inline.c (inlinable_function_p): Improve heuristics
15069 by using a smoother function to cut down allowable inlinable size.
15070 * param.def: Add parameters max-inline-insns-single,
15071 max-inline-slope, min-inline-insns that determine the exact
15072 shape of the above function.
15073 * param.h: Likewise.
15074
94a50397
RH
150752002-04-26 Richard Henderson <rth@redhat.com>
15076
15077 * c-parse.in (malloced_yyss, malloced_yyvs): New.
15078 (yyoverflow): Re-add. Set them.
15079 (free_parser_stacks): New.
15080 * c-common.h: Declare it.
15081 * c-lex.c (c_common_parse_file): Call it.
15082
9c0a0632
RH
150832002-04-26 Richard Henderson <rth@redhat.com>
15084
15085 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
15086 for fallthru search.
15087
b875d2ee
EC
150882002-04-26 Eric Christopher <echristo@redhat.com>
15089
15090 PR optimization/3700
15091 * config/mips/mips.c (mips_issue_rate): Define. New function.
15092 (TARGET_SCHED_ISSUE_RATE): Use.
15093
1db828df
DM
150942002-04-25 David S. Miller <davem@redhat.com>
15095
15096 PR target/6422
15097 * reorg.c (optimize_skip): Do not allow exception causing
15098 instructions to be considered for delay slots.
15099 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
15100 (relax_delay_slots): Do not try to consider exception causing
15101 instructions as redundant.
15102
ae5d234e
RH
151032002-04-26 Richard Henderson <rth@redhat.com>
15104
15105 PR c/5225
15106 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
15107
7d793e9b
MM
151082002-04-26 Mark Mitchell <mark@codesourcery.com>
15109
15110 PR bootstrap/6445
15111 * config/i386/i386.md (untyped_call): Return the value in a float
15112 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
15113 TARGET_80387.
15114
b13ab42c
AO
151152002-04-26 Alexandre Oliva <aoliva@redhat.com>
15116
15117 * tree.c (tree_int_cst_lt): Compare constants whose types differ
15118 in unsigned-ness correctly.
15119
5e56f909
JDA
151202002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
15121
15122 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
15123 portable runtime model.
15124
bde3c0c0
RH
151252002-04-26 Richard Henderson <rth@redhat.com>
15126
a6227154 15127 * c-parse.in (yyoverflow): Revert.
bde3c0c0 15128
5276df18
DE
151292002-04-26 David Edelsohn <edelsohn@gnu.org>
15130 Richard Henderson <rth@redhat.com>
15131
15132 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
15133 result as temporary value.
15134
b84a3874
RH
151352002-04-26 Richard Henderson <rth@redhat.com>
15136
15137 PR c/3581
15138 * c-common.c (fix_string_type): Split out of ...
15139 (combine_strings): ... here. Take a varray, not a tree list.
15140 (c_expand_builtin_printf): Use fix_string_type.
15141 * c-common.h: Update decls.
15142 * c-parse.in (string): Remove. Update all uses to use STRING
15143 instead, and not call combine_strings.
15144 (yylexstring): New.
15145 (_yylex): Use it.
15146 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
15147 (build_asm_stmt): Likewise.
15148 * objc/objc-act.c (my_build_string): Use fix_string_type.
15149 (build_objc_string_object): Build varray for combine_strings.
15150
d8ae8cd4
BT
151512002-04-26 Bo Thorsen <bo@suse.co.uk>
15152
15153 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
15154 x86-64.
15155
f8b954fc
NB
151562002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
15157
15158 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
15159 (HAVE_NO_R_OPERAND): Remove.
15160 (HAVE_VALUE): Remove.
15161 (op_to_prio): Update.
15162 (UNARY): Don't alter flags.
15163 (_cpp_parse_expr): want_value used to indicate whether
15164 a number or unary operator is expected next. Distinguish
15165 unary and binary +/-.
15166 (op_as_text): Update for unary operators.
15167
6052bef0
RH
151682002-04-25 Richard Henderson <rth@redhat.com>
15169
15170 PR c/2161
15171 * c-parse.in (yyoverflow): New.
15172
5c5b2283
RH
151732002-04-25 Richard Henderson <rth@redhat.com>
15174
15175 PR c/2098
15176 * c-common.c (shorten_compare): Simplfy conditions leading to
15177 the generation of a warning.
15178
28ce94d4
RH
151792002-04-25 Richard Henderson <rth@redhat.com>
15180
15181 PR c/2035
15182 * expmed.c (extract_bit_field): Fall through to generic code rather
15183 than aborting on subreg special case.
15184
6bfd0c63
DM
151852002-04-25 David S. Miller <davem@redhat.com>
15186
15187 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
15188 for DECL being NULL.
15189
7a430e3b
SC
151902002-04-25 Steve Christiansen <smc@us.ibm.com>
15191
15192 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
15193
45c42d7d
EB
151942002-04-25 Eric Botcazou <ebotcazou@multimania.com>
15195
15196 * c-decl.c (grokdeclarator): Remove outdated ??? note
15197 on invalid declaration of flexible array members.
15198
eb7715a4
RH
151992002-04-25 Richard Henderson <rth@redhat.com>
15200
15201 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
15202
cf5ee720
UW
152032002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
15204
15205 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
15206 needed by the compiler, even if they are used as global regs.
15207
d604bca3
MH
152082002-04-25 Matt Hiller <hiller@redhat.com>
15209
15210 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
15211 functions.
15212 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
15213 of the corresponding functions.
15214 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
15215 New prototypes.
b875d2ee 15216
d604bca3
MH
152172002-04-25 Matt Hiller <hiller@redhat.com>
15218
15219 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
15220
15221 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
15222 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
15223 registers, adjust comment accordingly.
15224 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
15225 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
15226 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
15227 for coprocessor registers.
15228 (ADDITIONAL_REGISTER_NAMES): Include
15229 ALL_COP_ADDITIONAL_REGISTER_NAMES.
b875d2ee 15230
d604bca3
MH
15231 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
15232 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
15233 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
15234 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
15235 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
15236
15237 (mips_char_to_class): Adjust comment to include coprocessor
15238 constraint letters.
15239
15240 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
15241 New functions.
15242 (mips_reg_names, mips_regno_to_class): Include coprocessor
15243 information.
15244 (mips_sw_reg_names): Ditto, make non-static.
15245 (mips_move_1word): Handle moves to and from coprocessor registers.
15246 (mips_move_2words): Handle moves to and from coprocessor
15247 registers.
15248 (mips_class_max_nregs, mips_register_move_cost): Handle
15249 coprocessor register classes.
15250 (override_options): Initialize mips_char_to_class and
15251 mips_hard_regno_mode_ok properly for coprocessor registers.
15252
15253 * config/mips/mips.md (movdi_internal, movdi_internal2,
15254 movsi_internal1, movsi_internal2): Add constraint-sets for
15255 coprocessor registers.
15256 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
15257 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
15258 isn't mips.
15259 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
15260 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
15261 isn't mips.
15262 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
15263 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
15264 isn't mips.
15265 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
15266 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
15267 isn't mips.
b875d2ee 15268
d604bca3
MH
15269 * doc/tm.texi: Document feature.
15270
b9a26d09
NB
152712002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
15272
15273 * integrate.c (function_attribute_inlinable_p): Simplify.
15274 Check the table pointer is not NULL.
15275
ab5973b7
SB
152762002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
15277
15278 * doc/c-tree.texi: Fix typo in introduction.
15279
ff45c01e
NB
152802002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
15281
15282 * c-common.h (c_common_parse_file): Update.
15283 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
15284 * c-lex.c (YYDEBUG): Get from c-lex.h.
15285 (c_common_parse_file): Update.
15286 * c-lex.h (YYDEBUG, yydebug): New.
15287 * c-parse.in (YYDEBUG): Get from c-lex.h.
15288 (c_set_yydebug): Remove.
15289 * c-tree.h (c_set_yydebug): Remove.
15290 * langhooks-def.h (lhd_do_nothing_i): New.
15291 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
15292 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
15293 * langhooks.c (lhd_do_nothing_i): New.
15294 (lhd_set_yydebug): Remove.
15295 * langhooks.h (struct lang_hooks): Update.
15296 * toplev.c (set_yydebug): New.
15297 (compile_file): Update call to parse_file hook.
15298 (decode_d_option): Update.
15299objc:
15300 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
15301
fcae219a
R
15302Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
15303
15304 * loop.c (load_mems): Don't change the interface of called functions.
15305
15306 * calls.c (expand_call): Take current_function_pretend_args_size
15307 into account when setting argblock for sibcalls.
15308
d0fea45a
MH
153092002-04-24 Matt Hiller <hiller@redhat.com>
15310
15311 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
15312 * c-lex.c: Ditto.
15313
15314 * cpplex.c (skip_line_comment): Process comment one multibyte
15315 character at a time rather than one char at a time, if
15316 appropriate.
15317 (parse_string): Process string one multibyte character at a time
15318 rather than one char at a time, if appropriate.
15319 * c-lex.c (lex_string): Lex and copy multibyte strings
15320 appropriately.
15321 * cpplib.h (cppchar_t): Change to unsigned.
15322
2d1b5436
RH
153232002-04-24 Richard Henderson <rth@redhat.com>
15324
15325 PR c/3467
15326 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
15327 for c99.
15328
5e039e6b
R
15329Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
15330
15331 * sh.c (sh_va_arg): If argument was passed by reference,
15332 dereference the pointer.
309d8365
R
15333
15334 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
51214775
R
15335
15336 * sh.md (divsi3_i4_media): Use match_operand for input values
15337 rather than hard registers.
15338 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
15339 unnecessarily through hard registers. Keep copies of pseudo
15340 registers outside of the libcall sequence.
15341
15342 * sh.md (casesi_shift_media): Add modes.
b700634a
R
15343
15344 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
15345 values in memory.
15346
349ae713
NB
153472002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
15348
15349 * attribs.c (c_common_attribute_table): Move table and handlers
15350 to c-common.c.
15351 (format_attribute_table, lang_attribute_table,
15352 lang_attribute_common): Remove.
15353 (init_attributes): Replace NULL pointers with pointers to the
15354 empty table.
15355 (handle_packed_attribute, handle_nocommon_attribute,
15356 handle_common_attribute, handle_noreturn_attribute,
15357 handle_noinline_attribute, handle_always_inline_attribute,
15358 handle_used_attribute, handle_unused_attribute,
15359 handle_const_attribute, handle_transparent_union_attribute,
15360 handle_constructor_attribute, handle_destructor_attribute,
15361 handle_mode_attribute, handle_section_attribute,
15362 handle_aligned_attribute, handle_weak_attribute,
15363 handle_alias_attribute, handle_visibility_attribute,
15364 handle_no_instrument_function_attribute, handle_malloc_attribute,
15365 handle_no_limit_stack_attribute, handle_pure_attribute,
15366 handle_deprecated_attribute, handle_vector_size_attribute,
15367 vector_size_helper): Move to c-common.c.
15368 * c-common.c (c_common_attribute_table,
15369 handle_packed_attribute, handle_nocommon_attribute,
15370 handle_common_attribute, handle_noreturn_attribute,
15371 handle_noinline_attribute, handle_always_inline_attribute,
15372 handle_used_attribute, handle_unused_attribute,
15373 handle_const_attribute, handle_transparent_union_attribute,
15374 handle_constructor_attribute, handle_destructor_attribute,
15375 handle_mode_attribute, handle_section_attribute,
15376 handle_aligned_attribute, handle_weak_attribute,
15377 handle_alias_attribute, handle_visibility_attribute,
15378 handle_no_instrument_function_attribute, handle_malloc_attribute,
15379 handle_no_limit_stack_attribute, handle_pure_attribute,
15380 handle_deprecated_attribute, handle_vector_size_attribute,
15381 vector_size_helper): Move from attribs.c.
15382 * c-common.h (c_common_attribute_table,
15383 c_common_format_attribute_table): New.
15384 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
15385 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
15386 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
15387 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
15388 (LANG_HOOKS_INITIALIZER): Update.
15389 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
15390 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
15391 * target.h: Update comment.
15392 * tree.c (default_target_attribute_table): Remove.
15393 * tree.h (default_target_attribute_table, format_attribute_table,
15394 lang_attribute_table, lang_attribute_common): Remove.
15395objc:
15396 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
15397 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
15398
84f0ace0
JM
153992002-04-24 Jason Merrill <jason@redhat.com>
15400
15401 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
15402 * dwarf2out.c (dwarf_attr_name): Support it.
15403 (gen_array_type_die): Emit it.
15404 (lookup_type_die): No special handling for VECTOR_TYPE.
15405 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
15406
120eaf28
RH
154072002-04-24 Richard Henderson <rth@redhat.com>
15408
15409 * config/mips/mips.md (movdi_usd): Renumber.
15410
e732178c
DM
154112002-04-24 David S. Miller <davem@redhat.com>
15412
15413 PR target/6420
15414 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
15415 32-bit Sparc and current_function_returns_struct is true.
15416
e879eb2f
JH
15417Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
15418
15419 * loop.c (canonicalize_condition): Use gen_int_mode.
15420
4287a893
AH
154212002-04-24 Aldy Hernandez <aldyh@redhat.com>
15422
15423 * config/rs6000/altivec.h: Cleanup file. Add non individual
15424 variants.
15425 (vec_vaddubm): New.
15426 (vec_vadduhm): New.
15427 (vec_vadduwm): New.
15428 (vec_vaddfp): New.
15429 (vec_vaddcuw): New.
15430 (vec_vaddubs): New.
15431 (vec_vaddsbs): New.
15432 (vec_vadduhs): New.
15433 (vec_vadduws): New.
15434 (vec_vaddsws): New.
15435 (vec_vand): New.
15436 (vec_vandc): New.
15437 (vec_vavgub): New.
15438 (vec_vavgsb): New.
15439 (vec_vavguh): New.
15440 (vec_vavgsh): New.
15441 (vec_vavguw): New.
15442 (vec_vavgsw): New.
15443 (vec_vrfip): New.
15444 (vec_vcmpbfp): New.
15445 (vec_vcmpequb): New.
15446 (vec_vcmpequh): New.
15447 (vec_vcmpequw): New.
15448 (vec_vcmpeqfp): New.
15449 (vec_vcmpgefp): New.
15450 (vec_vcmpgtub): New.
15451 (vec_vcmpgtsb): New.
15452 (vec_vcmpgtuh): New.
15453 (vec_vcmpgtsh): New.
15454 (vec_vcmpgtuw): New.
15455 (vec_vcmpgtsw): New.
15456 (vec_vcmpgtfp): New.
15457 (vec_vcmpgefp): New.
15458 (vec_vcfux): New.
15459 (vec_vcfsx): New.
15460 (vec_vctsxs): New.
15461 (vec_vctuxs): New.
15462 (vec_vexptefp): New.
15463 (vec_vrfim): New.
15464 (vec_lvx): New.
15465 (vec_lvebx): New.
15466 (vec_lvehx): New.
15467 (vec_lde): Add vector float variant.
15468 (vec_lvewx): New.
15469 (vec_lvxl): New.
15470 (vec_vlogefp): New.
15471 (vec_vmaddfp): New.
15472 (vec_vmhaddshs): New.
15473 (vec_vmaxub): New.
15474 (vec_vmaxsb): New.
15475 (vec_vmaxuh): New.
15476 (vec_vmaxsh): New.
15477 (vec_vmaxuw): New.
15478 (vec_vmaxsw): New.
15479 (vec_vmaxsw): New.
15480 (vec_vmaxfp): New.
15481 (vec_vmrghb): New.
15482 (vec_vmrghh): New.
15483 (vec_vmrghw): New.
15484 (vec_vmrglb): New.
15485 (vec_vmrglh): New.
15486 (vec_vmrglw): New.
15487 (vec_vminub): New.
15488 (vec_vminsb): New.
15489 (vec_vminuh): New.
15490 (vec_vminsh): New.
15491 (vec_vminuw): New.
15492 (vec_vminsw): New.
15493 (vec_vminfp): New.
15494 (vec_vmladduhm): New.
15495 (vec_vmhraddshs): New.
15496 (vec_msumubm): New.
15497 (vec_vmsummbm): New.
15498 (vec_vmsumuhm): New.
15499 (vec_vmsumshm): New.
15500 (vec_vmsumuhs): New.
15501 (vec_vmsumshs): New.
15502 (vec_vmuleub): New.
15503 (vec_vmulesb): New.
15504 (vec_vmuleuh): New.
15505 (vec_vmulesh): New.
15506 (vec_vmuloub): New.
15507 (vec_mulosb): New.
15508 (vec_vmulouh): New.
15509 (vec_vmulosh): New.
15510 (vec_vnmsubfp): New.
15511 (vec_vnor): New.
15512 (vec_vor): New.
15513 (vec_vpkuhum): New.
15514 (vec_vpkuwum): New.
15515 (vec_vpkpx): New.
15516 (vec_vpkuhus): New.
15517 (vec_vpkshss): New.
15518 (vec_vpkuwus): New.
15519 (vec_vpkswss): New.
15520 (vec_vpkshus): New.
15521 (vec_vpkswus): New.
15522 (vec_vperm): New.
15523 (vec_vrefp): New.
15524 (vec_vrlb): New.
15525 (vec_vrlh): New.
15526 (vec_vrlw): New.
15527 (vec_vrfin): New.
15528 (vec_vrsqrtefp): New.
15529 (vec_vsel): New.
15530 (vec_vslb): New.
15531 (vec_vslh): New.
15532 (vec_vslw): New.
15533 (vec_vsldoi): New.
15534 (vec_vsl): New.
15535 (vec_vslo): New.
15536 (vec_vspltb): New.
15537 (vec_vsplth): New.
15538 (vec_vspltw): New.
15539 (vec_vspltisb): New.
15540 (vec_vspltish): New.
15541 (vec_vspltisw): New.
15542 (vec_vsrb): New.
15543 (vec_vsrh): New.
15544 (vec_vsrw): New.
15545 (vec_vsrab): New.
15546 (vec_vsrah): New.
15547 (vec_vsraw): New.
15548 (vec_vsr): New.
15549 (vec_vsro): New.
15550 (vec_stvx): New.
15551 (vec_stvebx): New.
15552 (vec_stvehx): New.
15553 (vec_stvewx): New.
15554 (vec_stvxl): New.
15555 (vec_vsububm): New.
15556 (vec_vsubuhm): New.
15557 (vec_vsubuwm): New.
15558 (vec_vsubfp): New.
15559 (vec_vsubcuw): New.
15560 (vec_vsububs): New.
15561 (vec_vsubsbs): New.
15562 (vec_vsubuhs): New.
15563 (vec_vsubshs): New.
15564 (vec_vsubuws): New.
15565 (vec_vsubsws): New.
15566 (vec_vsum4ubs): New.
15567 (vec_vsum4sbs): New.
15568 (vec_vsum4shs): New.
15569 (vec_vsum2sws): New.
15570 (vec_vsumsws): New.
15571 (vec_vrfiz): New.
15572 (vec_vupkhsb): New.
15573 (vec_vupkhpx): New.
15574 (vec_vupkhsh): New.
15575 (vec_vupklsb): New.
15576 (vec_vupklpx): New.
15577 (vec_vupklsh): New.
15578 (vec_vxor): New.
15579
cff27795
EB
155802002-04-23 Eric Botcazou <ebotcazou@multimania.com>
15581
15582 PR c/5430
15583 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
15584 added literals from substracted literals.
15585 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
15586 (fold) [associate]: Preserve MINUS_EXPR if needed.
15587
952bca84
ZW
155882002-04-23 Zack Weinberg <zack@codesourcery.com>
15589
15590 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
15591 are obsoleted.
15592
50cb2154
TT
155932002-04-23 Tom Tromey <tromey@redhat.com>
15594
15595 * gcc.c: Added --resource. For PR java/6314.
15596
271f61fb
DB
155972002-04-23 David O'Brien <obrien@FreeBSD.org>
15598
9566d1e9 15599 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
271f61fb
DB
15600 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
15601 these libraries.
15602
bdabbc80
DB
156032002-04-23 David O'Brien <obrien@FreeBSD.org>
15604
15605 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
15606
74411039
JH
15607Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
15608
15609 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
15610 workaround.
15611 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
15612 (ix86_expand_clrstr): Fix typo.
15613 * loop.c (gen_load_of_final_value): New.
15614 (loop_givs_rescan, strength_reduce, check_dbra_loop):
15615 Use it.
15616
1a887f86
RS
156172002-04-23 Roger Sayle <roger@eyesopen.com>
15618
15619 * builtins.c (builtin_memset_gen_str): New function.
15620 (expand_builtin_memset): Optimize the case of constant length, but
15621 unknown value.
15622
8d3441e0
AH
156232002-04-23 Aldy Hernandez <aldyh@redhat.com>
15624
cff27795
EB
15625 * config/rs6000/altivec.h (vec_step): Remove extraneous
15626 parentheses.
15627 (vec_ctu): Cast return.
8d3441e0 15628
f6f315fe
AM
156292002-04-23 Alan Modra <amodra@bigpond.net.au>
15630
15631 PR target/6413
15632 * function.h: (struct function): Add profile_label_no field.
15633 (current_function_profile_label_no): Define.
15634 * function.c: (profile_label_no): New static var.
15635 (expand_function_start): Increment it, and copy to
15636 current_function_profile_label_no.
15637 * output.h (profile_label_no): Delete.
15638 * final.c (profile_label_no): Delete.
15639 (profile_function): Use current_function_profile_label_no.
15640 (final_end_function): Don't increment profile_label_no here.
15641 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
15642 profile_label_no with current_function_profile_label_no.
15643 * config/pa/pa.c (current_function_number): Delete.
15644 (pa_output_function_prologue): Don't output profile label here.
15645 (hppa_profile_hook): Use label_no param rather than
15646 current_function_number.
15647 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
15648 * config/pa/pa.h: .. here.
15649 (FUNCTION_PROFILER): Output profile label here.
15650
d239cdc0
EC
156512002-04-22 Eric Christopher <echristo@redhat.com>
15652
15653 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
15654 patch of 2002-04-09 due to binutils issues.
15655 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
15656
04428ad4
AH
156572002-04-22 Aldy Hernandez <aldyh@redhat.com>
15658
cff27795
EB
15659 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
15660 constraint to 'o' for m=r and r=m alternatives.
15661 ("*movv8hi_internal1"): Same.
15662 ("*movv16qi_internal1"): Same.
15663 ("*movv4sf_internal1"): Same.
04428ad4 15664
2adc7f12
JJ
156652002-04-22 Janis Johnson <janis187@us.ibm.com>
15666
15667 * rtl.h (RTX_FLAG): New macro.
15668 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
15669 * final.c (alter_subreg): Use macro to access rtx flag.
15670 * integrate.c (copy_rtx_and_substitute): Use new access macro.
15671 * print-rtl.c (print_rtx): Use new access macro.
15672
15673 * cse.c (insert): Check rtx code before accessing flag.
15674
15675 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
15676 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
15677 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
15678 convert_const_symbol_ref, make_canonical, make_alternative_compare,
15679 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
15680 simplify_test_exp, optimize_attrs, simplify_by_exploding,
15681 find_and_mark_used_attributes, unmark_used_attributes,
15682 add_values_to_cover, simplify_with_current_value,
15683 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
15684 copy_rtx_unchanging, main): Use new access macros.
15685
b7c89afe
TR
156862002-04-22 Tom Rix <trix@redhat.com>
15687
15688 * expmed.c (init_expmed): Generate shifted constant once.
15689
9340544b
ZW
156902002-04-22 Zack Weinberg <zack@codesourcery.com>
15691
15692 * c-lex.c (lex_charconst): Call convert to get constant in
15693 proper type; don't just smash the type field.
15694 Fixes PR c/6300.
15695
15696 * config.gcc: Add list of obsolete configurations. Disallow
15697 building these without --enable-obsolete.
15698 * doc/install.texi: Document --enable-obsolete and obsoletion
15699 policy. Mention obsoletion of individual targets in
15700 appropriate places.
15701
f942d7a5
RH
157022002-04-22 Richard Henderson <rth@redhat.com>
15703
15704 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
15705
157062002-04-22 Mark Mitchell <mark@codesourcery.com>
8ed8f731
MM
15707
15708 PR f/6138.
15709 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
15710 (walk_fixup_memory_subreg): Likewise.
15711 (fixup_var_refs_insn): Adjust accordingly.
15712 (fixup_var_refs_1): Likewise.
15713
232b0b45
UW
157142002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
15715
15716 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
15717 LIBPATH_ARCH64_SPEC): Define.
15718 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
15719 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
15720 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
15721 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
15722
1b61552b
JS
157232002-04-22 Joel Sherrill <joel@OARcorp.com>
15724
15725 * gthr-rtems.h: Correct prototypes to remove warnings.
15726
0fe854a7
RH
157272002-04-22 Richard Henderson <rth@redhat.com>
15728
15729 PR c/6344
15730 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
15731
15732 * gcse.c (free_insn_expr_list_list): New.
15733 (clear_modify_mem_tables): Use it. Fix bit set usage.
15734 (canon_list_insert): Use EXPR_LISTs for expressions.
15735 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
15736
af0d16cd
NB
157372002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
15738
15739 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
15740 file change and include code to _cpp_pop_buffer.
15741 * cpphash.h (struct pending_option): Predeclare.
15742 (struct cpp_reader): New member next_include_file.
15743 (_cpp_pop_file_buffer): Update.
15744 (_cpp_push_next_buffer): Update, rename.
15745 * cppinit.c (cpp_destroy): Free include chain and pending here.
15746 (cpp_finish_options): Simplify.
15747 (_cpp_push_next_buffer): Rename and clean up.
15748 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
15749 Clarify.
15750 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
15751
0d918572
AH
157522002-04-22 Aldy Hernandez <aldyh@redhat.com>
15753
0fe854a7
RH
15754 * config/rs6000/altivec.h (vec_xor): Add variant for both args
15755 being vector signed int.
15756 (vec_andc): Same.
15757 (vec_xor): Add variant for both args being vector signed char.
15758 Remove redundant variant.
15759 (vec_andc): Same.
0d918572 15760
77e2c290
DM
157612002-04-21 David S. Miller <davem@redhat.com>
15762
15763 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
15764 compare mode in output RTL.
15765
ee2ca2a2
DE
157662002-04-22 David Edelsohn <edelsohn@gnu.org>
15767
15768 * config/rs6000/rs6000.c (rs6000_override_options): Correct
15769 style and formatting of previous patch.
15770
894bdff6
AM
157712002-04-22 Alan Modra <amodra@bigpond.net.au>
15772
15773 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
15774 flag_pic for ABI_AIX.
15775
562a5c27
NB
157762002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
15777
15778 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
15779 * cppfiles.c (read_include_file): Similarly.
15780 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
15781 uxstrdup ustrchr, ufputs): Similarly.
15782 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
15783 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
15784 cpp_ideq, parse_identifier, parse_number): Similarly.
15785 * cpplib.c (struct directive, dequote_string, D, run_directive,
15786 cpp_push_buffer): Similarly.
15787 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
15788 _cpp_create_definition, check_trad_stringification,
15789 cpp_macro_definition): Similarly.
15790
9ac3b1be
NB
157912002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
15792
15793 * cppmacro.c (funlike_invocation_p): Don't step back
15794 over CPP_EOF.
15795
9dda4cc8
DE
157962002-04-21 David Edelsohn <edelsohn@gnu.org>
15797
15798 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
15799 labelno.
15800
20764052
JM
158012002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
15802
15803 * doc/invoke.texi: Remove Chill references.
15804 * doc/gcc.texi: Update last modified date.
15805
26b29884
KH
158062002-04-20 Kazu Hirata <kazu@hxi.com>
15807
15808 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
15809 push and pop. Replace add.l with add.w.
15810
59184677
TM
158112002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
15812
15813 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
15814 multiply instructions for H8/300H case.
15815
b1113e0a
TM
158162002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
15817
15818 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
15819 Bum three instructions from each routine.
15820
b03e38e1
NB
158212002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
15822
15823 * Makefile.in: Update.
15824 * decl.c (push_c_function_context, pop_c_function_context,
15825 mark_c_function_context): Rename for consistency.
15826 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
15827 * c-tree.h (push_c_function_context, pop_c_function_context,
15828 mark_c_function_context): Rename for consistency.
15829 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
15830 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
15831 * function.c (init_lang_status, save_lang_status,
15832 restore_lang_status, mark_lang_status, free_lang_status):
15833 Move to langhooks.h.
15834 (push_function_context_to, pop_function_context_from,
15835 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
15836 Update.
15837 * function.h (init_lang_status, save_lang_status,
15838 restore_lang_status, mark_lang_status, free_lang_status):
15839 Move to langhooks.h.
15840 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
15841 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
15842 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
15843 LANG_HOOKS_FUNCTION_INITIALIZER): New.
15844 (LANG_HOOKS_INITIALIZER): Update.
15845 (lhd_do_nothing_f): New.
15846 * langhooks.h (struct lang_hooks_for_functions): New.
15847 (struct lang_hooks): New hooks.
15848 * langhooks.c (lhd_do_nothing_f): New.
15849objc:
15850 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
15851 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
15852
db430d26
DM
158532002-04-19 David S. Miller <davem@redhat.com>
15854
15855 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
15856 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
15857
0f2a3457
JJ
158582002-04-19 Jakub Jelinek <jakub@redhat.com>
15859
15860 PR optimization/3756
15861 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
15862 x = ((int) y < 0) ? cst1 : cst2.
15863
ce5e43d0
JJ
158642002-04-19 Jakub Jelinek <jakub@redhat.com>
15865
15866 PR c/6358
15867 * function.c: Reapply patch for c/6358.
15868 (expand_function_end): Copy decl_rtl's mode, not
15869 current_function_return_rtx mode.
15870
158712002-04-19 Joel Sherrill <joel@OARcorp.com>
9eb83f6c
JS
15872
15873 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
15874 targets.
15875
40e7f8ea
TT
158762002-04-19 Tom Tromey <tromey@redhat.com>
15877
15878 * doc/install.texi (Specific): Update status of Solaris 2.8.
15879 For PR libgcj/6158.
15880
62a12b27
AS
158812002-04-19 Andreas Schwab <schwab@suse.de>
15882
15883 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
15884 (PUT_REAL): Restore old definition.
15885
1405141b
DN
158862002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
15887 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15888
15889 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
15890 binutils 2.11.2 and higher generate smaller binaries than Sun's
15891 native tools.
15892
303a3927
MM
158932002-04-19 Mark Mitchell <mark@codesourcery.com>
15894
15895 PR c++/6352
15896 * toplev.c (rest_of_compilation): Do not defer functions for which
15897 TREE_SYMBOL_REFERENCED has already been set.
15898
de80110b
JH
15899Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
15900
15901 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
15902 alternative.
15903
ab393bf1
NB
159042002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
15905
15906 * builtins.c: Include langhooks.h.
15907 (lang_type_promotes_to): Remove.
15908 (expand_builtin_va_arg): Use new hook.
15909 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
15910 (simple_type_promotes_to): Move to c-typeck.c.
15911 * c-common.h (simple_type_promotes_to): Remove.
15912 * c-decl.c (duplicate_decls, grokdeclarator): Update.
15913 * c-format.c: Include langhooks.h.
15914 (check_format_types): Update.
15915 * c-tree.h (c_type_promotes_to): New.
15916 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
15917 (type_lists_compatible_p): Update.
15918 * langhooks-def.h (lhd_type_promotes_to): New.
15919 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
15920 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
15921 * langhooks.c (lhd_type_promotes_to): New.
15922 * langhooks.h (struct lang_hooks_for_types): New hook.
15923 * tree.h (lang_type_promotes_to): Remove.
15924objc:
15925 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
15926
0cd3301b
RH
159272002-04-18 Richard Henderson <rth@redhat.com>
15928
58533fa2 15929 * function.c: Revert patch for c/6358.
0cd3301b
RH
15930
159312002-04-18 Richard Henderson <rth@redhat.com>
15932
58533fa2
RH
15933 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
15934 blocks. Handle multiple references to the TRAP block. Handle
15935 non-adjacent THEN and OTHER blocks.
0cd3301b 15936
58533fa2
RH
159372002-04-18 Richard Henderson <rth@redhat.com>
15938
15939 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
15940 crash with no type for by-mode libcalls.
15941
15942 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
0cd3301b 15943
57174693
BW
159442002-04-18 Bob Wilson <bob.wilson@acm.org>
15945
15946 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
15947 __xtensa_nonlocal_goto): Use a syscall instructions to flush
15948 the register windows.
15949
46468cd9
ZW
159502002-04-18 Zack Weinberg <zack@codesourcery.com>
15951
15952 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
15953 appropriate. Document need for extended precision even when
15954 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
15955 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
15956 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
15957 instead of relying on later syntax error when REAL_WIDTH > 5.
15958 * real.c: Define NE based only on whether or not we have a
15959 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
15960 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
15961 define GET_REAL and PUT_REAL as simple memcpy operations; no
15962 need to byteswap or round.
15963 Use #error instead of #ifdef-ing out the entire file, for
15964 prompt error detection.
15965
15966 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
15967
2f82dbf8
DM
159682002-04-18 David S. Miller <davem@redhat.com>
15969
15970 * config/sparc/sparc.h (BRANCH_COST): Define.
15971
15972 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
15973 does it.
15974
566576e7
HPN
159752002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
15976
15977 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
15978 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
15979 propagate_block calls after relaxation loop using new variable
15980 stabilized_prop_flags.
15981
51dcde6f
RH
159822002-04-18 Richard Henderson <rth@redhat.com>
15983
15984 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
15985 (ia64_va_arg): Expect variable sized types by reference.
15986 * config/ia64/ia64-protos.h: Update.
46468cd9 15987 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
51dcde6f
RH
15988 ia64_function_arg_pass_by_reference.
15989
26406018
RH
159902002-04-18 Richard Henderson <rth@redhat.com>
15991
46468cd9
ZW
15992 * ifcvt.c: Include except.h.
15993 (block_has_only_trap): Break out from find_cond_trap.
15994 (find_cond_trap): Use it. Always delete the trap block.
15995 (merge_if_block): Allow then block null. Be less simplistic about
15996 what insns can end a block.
15997 * Makefile.in (ifcvt.o): Depend on except.h.
96b453dc 15998
26406018
RH
15999 * config/ia64/ia64.md (trap, conditional_trap): New.
16000
a3acf46d
JJ
160012002-04-18 Jakub Jelinek <jakub@redhat.com>
16002
16003 PR c/6358
16004 * function.c (assign_parms): Assign hard current_function_return_rtx
16005 register here...
16006 (expand_function_end): ...not here.
16007
7a228918
NB
160082002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
16009
16010 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
16011 * c-tree.h (c_incomplete_type_error): New.
16012 * c-typeck.c (require_complete_type, build_component_ref): Update.
16013 (incomplete_type_error): Rename.
16014 * langhooks-def.h (lhd_incomplete_type_error): New.
16015 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
16016 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
16017 * langhooks.c (lhd_incomplete_type_error): New.
16018 * langhooks.h (struct lang_hooks_for_types): New hook.
16019 * tree.c (size_in_bytes): Use new hook.
16020 * tree.h (incomplete_type_error): Remove.
16021objc:
16022 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
16023
f18664c1
ZW
160242002-04-18 Zack Weinberg <zack@codesourcery.com>
16025
16026 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
16027 TARGET_FLOAT_FORMAT blocks.
16028
8ecab453
GP
160292002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16030
16031 * doc/install.texi (Downloading the source): Do not mention Chill
16032 any longer, but mention Ada.
16033 (Configuration): Do not mention Chill any longer.
16034
528d8489
HPN
160352002-04-18 Hans-Peter Nilsson <hp@axis.com>
16036
16037 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
16038
91da27c5
JH
16039Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
16040
16041 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
16042 in last patch.
16043
a32db605
JJ
160442002-04-18 Jakub Jelinek <jakub@redhat.com>
16045
16046 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
16047 instead of unsigned_type.
16048
5a28d8cc
JH
16049Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
16050
16051 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
16052 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
16053 later.
16054
3d980b9f
BS
160552002-04-18 Bernd Schmidt <bernds@redhat.com>
16056
16057 * attribs.c (vector_type_node_list): New static variable.
16058 (handle_vector_size_attribute): Use it to avoid generating a
16059 new type node each time we are called.
16060
2e676d78
BS
16061 * combine.c (subst): Avoid trying to make a vector mode subreg of
16062 an integer constant.
16063 (gen_lowpart_for_combine): Likewise.
46468cd9 16064
58c2956c
RS
160652002-04-18 Roger Sayle <roger@eyesopen.com>
16066 Jakub Jelinek <jakub@redhat.com>
16067
16068 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
16069 for integer constant c (if x has unsigned type or sign bit is not
16070 set in c). This folds the zero/sign extension into the bit-wise and
16071 operation.
16072
692efa8e
JJ
160732002-04-18 Jakub Jelinek <jakub@redhat.com>
16074
16075 PR middle-end/6205
16076 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
16077 otherwise xorps.
16078
1372d4ce
NY
160792002-04-17 NIIBE Yutaka <gniibe@m17n.org>
16080
16081 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
16082
169ce44d
NC
160832002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
16084
16085 * gcc.c (read_specs): Detect and fail if an attempt is made to
16086 rename a spec string to an already existing string.
16087
b30d2115
UW
160882002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
16089
16090 * config/s390/s390.c (legitimize_pic_address): Do not generate
16091 illegal address constant without CONST.
16092
d6964c30
KG
160932002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16094
16095 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
16096 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16097
7c82a1ed
UW
160982002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
16099
16100 PR optimization/6305
16101 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
16102 to make sure previous reloads are taken into account. Generate
16103 better code if one operand is an in-range immediate constant.
16104
58db9d1a
AH
161052002-04-16 Andrew Haley <aph@cambridge.redhat.com>
16106
16107 * doc/install.texi (Building): libgcj requires GNU make.
16108
2a732575
JJ
161092002-04-17 Jakub Jelinek <jakub@redhat.com>
16110
16111 PR bootstrap/6315
16112 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
16113 even if hard quad and register is not floating.
16114 (movtf reg<-mem split): Disallow splitting if hard quad and
16115 register is floating.
16116 (movtf mem<-reg split): Likewise.
16117 * config/sparc/sparc.c (fp_register_operand): New predicate.
16118 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
16119
75a65e46
ZW
161202002-04-17 Zack Weinberg <zack@codesourcery.com>
16121
16122 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
16123 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
16124 (unprotoize.o): Ditto. Build from protoize.c. Define
16125 UNPROTOIZE on command line.
16126 * protoize.c: Include cppdefault.h. Delete include_defaults.
16127 (in_system_include_dir): Use cpp_include_defaults (defined in
16128 cppdefault.o).
16129 * unprotoize.c: Delete file.
16130
650f0e97
AH
161312002-04-17 Aldy Hernandez <aldyh@redhat.com>
16132
46468cd9
ZW
16133 * config/rs6000/altivec.h (vec_ld): Add array variants.
16134 (vec_lde): Same.
16135 (vec_ldl): Same.
650f0e97 16136
71a0ab0c 161372002-04-17 Alan Matsuoka <alanm@redhat.com>
46468cd9 16138 Aldy Hernandez <aldyh@redhat.com>
71a0ab0c 16139
46468cd9
ZW
16140 * config/rs6000/altivec.h: Define __ALTIVEC__.
16141 (bool): New.
16142 (__pixel): New.
16143 (pixel): New.
16144 (vec_cfux): New.
16145 (vec_vmaddfp): New.
16146 (vec_vsldoi): New.
16147 Add parentheses to all macro arguments.
71a0ab0c 16148
ff2c46ac
RH
161492002-04-16 Richard Henderson <rth@redhat.com>
16150
16151 PR c++/6320
16152 * except.c (remove_eh_handler): Insert inner regions at beginning
16153 of sibling chain. Refactor expressions.
16154
f1ba94dd
RH
161552002-04-16 Richard Henderson <rth@redhat.com>
16156
f0871dfe
RH
16157 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
16158 * config/sparc/sol2-gas-bi.h: New file.
16159 * config.gcc (sparc*-solaris): Add it as needed.
16160 * configure.in (AS_SPARC64_FLAG): Remove check.
16161 * config.in, configure: Regenerate.
16162
16163 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
16164
161652002-04-16 Richard Henderson <rth@redhat.com>
16166
16167 * config/mips/mips.c (override_options): Don't override N32 for
16168 a 64-bit ISA.
409d3c60 16169
f1ba94dd
RH
16170 PR 6202
16171 * config/mips/mips.md (can_delay): Split out of existing define_delays.
16172 (HILO_delay): Set can_delay false.
16173
178c3eff
DJ
161742002-04-16 Dale Johannesen <dalej@apple.com>
16175
16176 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
16177 instruction addresses.
16178 (rs6000_output_function_epilogue): Likewise.
16179
7d6f6369
PC
161802002-04-16 Paolo Carlini <pcarlini@unitus.it>
16181
16182 * c-parse.in (poplevel, compstmt_start,
16183 compstmt_primary_start): Add ending ';', in accordance
16184 with POSIX.
16185
8947df0c
RH
161862002-04-16 Richard Henderson <rth@redhat.com>
16187
16188 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
16189 Adjust tm_file order to get TARGET_DEFAULT set properly.
16190 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
16191 * doc/install.texi (sparc-solaris): Update.
16192
3148ad6d
DJ
161932002-04-16 Dale Johannesen <dalej@apple.com>
16194
16195 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
16196 comparison operands do not match each other or if modes of
16197 conditions do not match result.
16198
014cb9b6 161992002-04-16 Hartmut Penner <hpenner@de.ibm.com>
562a69be 16200
014cb9b6
HP
16201 PR target/6305
16202 * config/s390/s390.md (mulsidi3): Set both subregs of the
46468cd9 16203 multiword register.
562a69be 16204
014cb9b6 162052002-04-16 Aldy Hernandez <aldyh@redhat.com>
4c8c0dec 16206
8947df0c 16207 * config/rs6000/altivec.h (vec_addc): Type check.
4c8c0dec 16208
a9772b60
JJ
162092002-04-16 Jakub Jelinek <jakub@redhat.com>
16210
16211 PR middle-end/6279
16212 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
16213
16214 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
16215
861829ed
RH
162162002-04-15 Richard Henderson <rth@redhat.com>
16217
16218 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
16219 call_really_used_regs too.
16220
bcf2fe9c
RH
162212002-04-15 Richard Henderson <rth@redhat.com>
16222
16223 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
16224
629111c7
DM
162252002-04-15 David S. Miller <davem@redhat.com>
16226
16227 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
16228 as being CLOBBERed.
16229
98ef3137
JJ
162302002-04-16 Jakub Jelinek <jakub@redhat.com>
16231
16232 PR c/6290
16233 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
16234 CONST_VECTOR is { 0, ... 0 }.
16235
0aa911c5
LR
162362002-04-15 Loren J. Rittle <ljrittle@acm.org>
16237
16238 * doc/install.texi (Installing GCC: Configuration): Clarify
16239 the only supported ways to configure gcc.
16240
83248d49 162412002-04-15 Roland McGrath <roland@frob.com>
46468cd9 16242
83248d49
RM
16243 * config.gcc (alpha*-*-gnu*): New target configuration.
16244 * config/alpha/gnu.h: New file for it.
16245 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
16246
b2123dc0
MM
162472002-04-16 Mark Mitchell <mark@codesourcery.com>
16248
16249 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
16250 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
16251 * tree.h (expand_start_stmt_expr): Update prototype.
16252 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
16253 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
16254 on the STMT_EXPR created for the inline function.
46468cd9 16255
8fe2d853
RH
162562002-04-15 Richard Henderson <rth@redhat.com>
16257
16258 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
16259 config/i386/linux-aout.h, config/i386/linux-oldld.h,
16260 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
16261 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
16262 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
16263 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
16264 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
16265 Define __gnu_linux__, not gnu_linux.
16266 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
16267
07cdae91
MM
162682002-04-15 Mark Mitchell <mark@codesourcery.com>
16269
16270 Remove Chill front end.
16271 * gcc.c (default_compilers): Remove Chill entries.
16272 * ch: Remove directory.
16273 * doc/frontends.texi: Remove information about Chill.
16274 * doc/sourcebuild.texi: Likewise.
16275 * doc/standards.texi: Likewise.
16276
41823c5e
DR
162772002-04-15 Douglas B Rupp <rupp@gnat.com>
16278
16279 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
16280 (LONGLONG_STANDALONE): Define.
16281
eb29ddb6
DM
162822002-04-15 David S. Miller <davem@redhat.com>
16283
16284 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
16285 Call emit_library_call with LCT_NORMAL.
16286 (sparc_initialize_trampoline): Use LCT_foo instead of
16287 magic constant in emit_library_call invocations.
16288 (sparc64_initialize_trampoline): Likewise.
16289 (sparc_profile_hook): Likewise.
16290 * config/sparc/sparc.md: Likewise.
16291
16292 * config/sparc/sparc.c (sparc_extra_constraint_check):
16293 Fix type of argument 'c'.
16294 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
16295 Likewise.
16296
bd6bec6b
GDR
162972002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
16298
16299 * diagnostic.h (output_buffer_state): Redefine.
16300 (output_format_decoder): New macro.
16301 (output_prefixing_rule): Likewise.
16302 (output_line_cutoff): Likewise.
16303 (diagnostic_format_decoder): Adjust.
16304 (diagnostic_prefixing_rule): Likewise.
16305 (diagnostic_line_cutoff): Likewise.
16306 (diagnostic_state): Likewise.
16307 (diagnostic_kind_count): Likewise.
16308 (diagnostic_buffer): Now a macro.
16309
16310 * diagnostic.c (diagnostic_buffer): Remove definition.
16311 (output_is_line_wrapping): Adjust.
16312 (set_real_maximum_length): Likewise.
16313 (output_set_maximum_length): Likewise.
16314 (init_output_buffer): Likewise.
16315 (lhd_print_error_function): Likewise.
16316 (output_do_verbatim): Likewise.
16317
ebef4e8c
NB
163182002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
16319
16320 * cpperror.c (print_location): Don't print include chain
16321 if line == 0.
16322 (cpp_begin_message): Update to use DL_ macros.
16323 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
16324 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
16325 cpp_notice, cpp_notice_from_errno): Remove.
16326 (cpp_error, cpp_error_with_line): Update to take a diagnostic
16327 level.
16328 (cpp_errno): New.
16329 * cppexp.c (CPP_ICE): Remove.
16330 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
16331 lex, integer_overflow, _cpp_parse_expr): Update.
16332 * cppfiles.c (read_include_file, find_include_file,
16333 handle_missing_header, _cpp_read_file, remap_filename): Update.
16334 * cpphash.h (enum error_type): Remove.
16335 (_cpp_begin_message): Update.
16336 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
16337 cpp_handle_option, cpp_post_options): Update.
16338 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
16339 skip_whitespace, parse_identifier, parse_slow, parse_string,
16340 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
16341 cpp_interpret_charconst): Update.
16342 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
16343 lex_macro_node, do_undef, glue_header_name, parse_include,
16344 do_include_common, read_flag, do_line, do_linemarker, do_ident,
16345 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
16346 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
16347 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
16348 _cpp_pop_buffer, do_diagnostic): Update.
16349 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
16350 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
16351 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
16352 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
16353 cpp_notice, cpp_notice_from_errno): Remove.
16354 (cpp_error, cpp_error_with_line): Update to take a diagnostic
16355 level.
16356 (cpp_errno): New.
16357 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
16358 collect_args, enter_macro_context, save_parameter, parse_params,
16359 _cpp_create_definition, check_trad_stringification,
16360 cpp_macro_definition): Update.
16361 * cppmain.c (cpp_preprocess_file): Update.
16362 * fix-header.c (read_scan_file): Update.
16363
c19a3859
AS
163642002-04-14 Andreas Schwab <schwab@suse.de>
16365
16366 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
16367
10fdbed6
JD
163682002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
16369
16370 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
16371
77660a9a
MM
163722002-04-13 Mark Mitchell <mark@codesourcery.com>
16373
16374 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
16375 not gnu_hurd.
16376
e0ff1ded
HPN
163772002-04-13 Hans-Peter Nilsson <hp@axis.com>
16378
16379 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
16380
2341c7ea
JS
163812002-04-13 Joel Sherrill <joel@OARcorp.com>
16382
16383 * config/sparc/t-elf: Enable v8 multilibs. Impacts
16384 sparc-elf and sparc-rtems targets.
16385
d29350c0
MM
163862002-04-13 Mark Mitchell <mark@codesourcery.com>
16387
16388 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
16389 defined, and __gnu_hurd__ wherever __GNU__ is defined.
16390 * arm/linux-elf.h: Likewise.
16391 * cris/aout.h: Likewise.
16392 * cris/linux.h: Likewise.
16393 * i370/linux.h: Likewise.
16394 * i386/gnu.h: Likewise.
16395 * i386/linux-aout.h: Likewise.
16396 * i386/linux-oldld.h: Likewise.
16397 * i386/linux.h: Likewise.
16398 * i386/linux64.h: Likewise.
16399 * ia64/linux.h: Likewise.
16400 * m68k/linux-aout.h: Likewise.
16401 * m68k/linux.h: Likewise.
16402 * mips/linux.h: Likewise.
16403 * pa/pa-linux.h: Likewise.
16404 * pj/linux.h: Likewise.
16405 * rs6000/sysv4.h: Likewise.
16406 * s390/linux.h: Likewise.
16407 * sh/linux.h: Likewise.
16408 * sparc/linux-aout.h: Likewise.
16409 * sparc/linux.h: Likewise.
16410 * sparc/linux64.h: Likewise.
16411 * xtensa/linux.h: Likewise.
16412
fc552851
RS
164132002-04-13 Richard Sandiford <rsandifo@redhat.com>
16414
16415 * stmt.c (check_unique_operand_names): Expect operand names to
16416 be strings rather than identifiers. Use simple_cst_equal to
16417 compare them.
16418 (resolve_operand_name_1): Make same identifier to string change here.
16419 * c-parse.in (asm_operand): Convert a named operand into a string.
16420 * cp/parse.y (asm_operand): Likewise.
16421
1d405c5e
AS
164222002-04-13 Andreas Schwab <schwab@suse.de>
16423
16424 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
16425
c740732f
MM
164262002-04-12 Mark Mitchell <mark@codesourcery.com>
16427
16428 Revert these changes:
16429
16430 2002-04-06 Mark Mitchell <mark@codesourcery.com>
16431
16432 PR c++/5571
16433 * stor-layout.c (layout_decl): Reset the RTL for the decl.
16434
3fc602a0
RH
164352002-04-12 Richard Henderson <rth@redhat.com>
16436
16437 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
16438 (sparc*-*-solaris): Clean up header files.
16439 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
16440 and plan on generating 64-bit code.
16441 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
16442 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
16443 * config/sparc/sol2-sld-64.h: Rename ...
16444 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
16445 for AS_SPARC64_FLAG not defined.
16446 * config/sparc/sol2-gld-bi.h: New.
16447 * config/sparc/sol2-sld.h: Remove.
16448 * config/sparc/sol26-sld.h: New.
16449 * config/sparc/sol2.h: Tidy comments.
16450 * doc/install.texi: Document sparc-solaris configury changes.
16451
2f15e255
RH
164522002-04-12 Richard Henderson <rth@redhat.com>
16453
16454 * recog.c (offsettable_address_p): Match the logic in adjust_address.
16455
16456 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
16457 in 64-bit mode only. Use only for 32-bit or MEDLOW.
16458
cc8475cb
RO
164592002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16460
16461 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
16462
6f133a4a
JL
16463Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
16464
ef1b8858 16465 * pa.c (pa_can_combine_p): Call extract_insn before calling
6f133a4a
JL
16466 constrain_operands.
16467
1329e600
DR
164682002-04-12 Douglas B Rupp <rupp@gnat.com>
16469
16470 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
16471 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
16472 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2d424b9f 16473 (CPP_PREDEFINES): Handle __declspec.
1329e600
DR
16474 * config/i386/t-interix (USER_H): Remove.
16475
0339d239
DD
164762002-04-12 DJ Delorie <dj@redhat.com>
16477
16478 * integrate.c (compare_blocks): Make comparisons safe for when
16479 sizeof(int) < sizeof(char *).
16480 (find_block): Likewise.
16481
cc4d5fec
JH
164822002-04-12 Jan Hubicka <jh@suse.cz>
16483 David Edelsohn <edelsohn@gnu.org>
16484
16485 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
16486 registers.
16487 (symbol_ref_operand): New.
16488 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
16489 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
16490
93215a1b
AS
164912002-04-12 Andreas Schwab <schwab@suse.de>
16492
16493 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
16494 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
16495 overrides the definition in config/svr4.h.
46468cd9 16496
1d80248e
EN
164972002-04-12 Eric Norum <eric.norum@usask.ca>
16498
16499 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
16500 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
16501 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
16502 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
16503 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
16504 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
16505 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
16506 definitions to config/rtems.h and make the targets more similar.
16507
fa1591cb
RK
16508Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16509
fa06ab5c
RK
16510 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
16511 POINTERS_EXTEND_UNSIGNED.
16512 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
16513 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
16514
fa1591cb
RK
16515 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
16516 not specified.
16517
12e85a0e
R
16518Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
16519
16520 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
16521 depends on TARGET_SHMEDIA, not TARGET_SH5.
16522
1ab3e58a
HPN
165232002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
16524
16525 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
16526 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
16527
18778292
R
16528Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
16529
16530 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
16531 no r0 clobber.
16532
9002507c
AS
165332002-04-12 Andreas Schwab <schwab@suse.de>
16534
16535 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
16536
9be40833
RH
165372002-04-12 Richard Henderson <rth@redhat.com>
16538
16539 PR bootstrap/4191
16540 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
16541
16542 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
16543 modes spanning multiple hard regs.
46468cd9 16544
9be40833
RH
16545 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
16546
3d9268b6
JDA
165472002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
16548
16549 * pa.c (pa_output_function_prologue): Don't accumulate the total
16550 number of code bytes when using TARGET_64BIT, or gas, SOM and not
16551 the portable runtime.
16552 (output_deferred_plabels): Handle 64bit plabels.
16553 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
16554 generating pic code using the GAS assembler for object formats that
16555 are not SOM (ie., ELF32 and ELF64).
16556 (output_millicode_call): Check attribute type if attribute length is 28.
16557 Likewise use $PIC_pcrel$0. Only call get_attr_length and
16558 dbr_sequence_length once.
16559 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
16560 dbr_sequence_length once.
16561 * pa.h (TARGET_SOM): Define if not defined.
16562 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
16563 with GAS and not SOM.
16564 (jump, call_internal_reg, call_value_internal_reg): Likewise.
16565 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
16566
d360fd18
DB
165672002-04-11 David O'Brien <obrien@FreeBSD.org>
16568
16569 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
16570 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
16571 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
16572 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
16573 elfos.h and dbxelf.h values are fine now.
16574 * config/i386/freebsd.h, config/alpha/freebsd.h
16575 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
16576
5b8fcab6
DB
165772002-04-11 David O'Brien <obrien@FreeBSD.org>
16578
16579 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
16580 or set Acpu or Amachine. Reformat.
16581 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
16582 define.
16583 (LINK_SPEC): Do not need to undef.
16584 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
16585 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
16586 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
16587 define.
16588 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
16589 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
16590 (LINK_SPEC): Do not need to undef.
16591 (DONT_USE_BUILTIN_SETJMP): Do not define.
16592 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
16593 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
16594 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
16595 Remove trailing spaces.
16596 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
16597 __ELF__, or set Acpu or Amachine. Reformat.
16598 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
16599 define.
16600
fee42cc1
DB
166012002-04-11 David O'Brien <obrien@FreeBSD.org>
16602
16603 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
16604 all other *-*-freebsd* targets.
16605
77a403e4
RH
166062002-04-11 Richard Henderson <rth@redhat.com>
16607
16608 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
16609
cf0005c6
DB
166102002-04-11 David O'Brien <obrien@FreeBSD.org>
16611
16612 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
16613 Include {cpu}/{cpu}.h thru tm_file.
16614 (alpha*-*-linux*ecoff): Remove target.
16615 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
16616 (LINK_SPEC): Remove, is not OS independent.
16617 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
16618 (LINK_SPEC): Do not need to #undef any longer.
16619 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
16620 any longer.
16621 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
16622 __ELF__.
16623 (LINK_SPEC): Moved here from alpha/elf.h.
16624 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
16625 SUB_CPP_PREDEFINES.
16626 * config/alpha/linux-ecoff.h: Remove.
16627 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
16628 (CPP_SPEC): Define _POSIX_SOURCE as needed.
16629 (CPP_SUBTARGET_SPEC): Do not define.
16630 (LINK_SPEC): Do not need to #undef any longer.
16631 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
16632 * config/alpha/vms.h: Likewise.
16633
9be40833 166342002-04-11 Richard Sandiford <rsandifo@redhat.com>
7825d1cf
RS
16635
16636 * doc/extend.texi: Remove old claim that typedefs cannot have
16637 an alignment attribute.
16638
010f87c4
JJ
166392002-04-11 Jakub Jelinek <jakub@redhat.com>
16640
16641 PR optimization/6177
16642 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
16643 bitpos is 0 and bitsize CONCAT size.
16644
578fc63d
JJ
166452002-04-11 Jakub Jelinek <jakub@redhat.com>
16646
16647 PR c/6223
16648 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
16649
bf9b85ce
DB
166502002-04-10 David O'Brien <obrien@FreeBSD.org>
16651
16652 * config/alpha/freebsd.h: Minor reformatting.
16653 (CPP_SPEC): Define ELF and add cpp_subtarget.
16654 (ASM_SPEC): No longer needed.
16655
7425707d
RH
166562002-04-11 Richard Henderson <rth@redhat.com>
16657
16658 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
16659 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
16660 (dimode mem/zero splitter): New.
16661
1a05e874
HPN
166622002-04-11 Hans-Peter Nilsson <hp@axis.com>
16663
16664 * config/cris/cris.c (cris_override_options): Tweak error message
16665 for PIC not implemented.
16666
16667 * config/cris/cris.h: Tweak comments related to parameter-passing.
16668
16669 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
16670
6f3d0447
RH
166712002-04-10 Richard Henderson <rth@redhat.com>
16672
16673 * except.c (add_ehl_entry): Allow duplicates after landing pad
16674 creation.
16675
174bf2b1
DE
166762002-04-10 David Edelsohn <edelsohn@gnu.org>
16677
16678 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
16679
03f10472
TM
166802002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
16681
16682 * c-decl.c (c_init_decl_processing): Move generation of
16683 decls for g77_integer_type_node and friends from here ...
16684 * c-common.c (c_common_nodes_and_builtins): ... to here.
16685
2f460a0a
UW
166862002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
16687
16688 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
16689 is only used as frame pointer when frame_pointer_needed is true.
16690
0be5cf85
RE
166912002-04-10 Richard Earnshaw <rearnsha@arm.com>
16692
16693 PR target/817
16694 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
16695 for the fact that the pool entry uses two words.
16696 (movdf_hard_insn): Similarly. Also, ADR instruction can span
16697 1k bytes.
16698 (movdf_soft_insn): Similarly.
16699 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
16700 for the fact that the pool entry uses three words.
16701
bf6d4777
RS
167022002-04-10 Richard Sandiford <rsandifo@redhat.com>
16703
16704 * config/mips/mips.c (mips_va_arg): When using the struct version
16705 of the EABI va_list, allow arguments in the register save area to
16706 take up less room than a stack argument.
16707
c2e9dc85
RH
167082002-04-10 Richard Henderson <rth@redhat.com>
16709
16710 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
16711 if EXPAND_INITIALIZER.
16712
bc8e8e97
RH
167132002-04-09 Richard Henderson <rth@redhat.com>
16714
16715 * config/alpha/alpha.md (movdi_er_maybe_g): New.
16716 * config/alpha/alpha.c (alpha_expand_mov): Use it.
16717
a6a063b8
AM
167182002-04-10 Alan Modra <amodra@bigpond.net.au>
16719
16720 PR optimization/6233
16721 * rtlanal.c (pure_call_p): New function.
16722 * rtl.h (pure_call_p): Declare.
16723 * loop.c (prescan_loop): Use it to set has_nonconst_call.
16724 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
16725
7b2e1077
EC
167262002-04-09 Eric Christopher <echristo@redhat.com>
16727
16728 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
16729 information to .comm directive.
16730
d8a50944
RH
167312002-04-09 Richard Henderson <rth@redhat.com>
16732
16733 PR c/5078
16734 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
16735
6a58eee9
RH
167362002-04-09 Richard Henderson <rth@redhat.com>
16737
16738 * basic-block.h (flow_delete_block_noexpunge): Declare.
16739 (expunge_block_nocompact): Declare.
16740 * cfg.c (expunge_block_nocompact): Split out from ...
16741 (expunge_block): ... here.
16742 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
16743 (flow_delete_block_noexpunge): Split out from ...
16744 (flow_delete_block): ... here.
16745 * cfgcleanup.c (delete_unreachable_blocks): Compact while
16746 removing dead blocks.
16747 * except.c (exception_handler_labels): Remove.
16748 (exception_handler_label_map): New.
16749 (struct eh_region): Add aka member.
16750 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
16751 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
16752 (for_each_eh_label, for_each_eh_label_1): New.
16753 (init_eh): Register exception_handler_label_map.
16754 (free_eh_status): Use free_region.
16755 (find_exception_handler_labels): Use the map, not the list.
16756 (remove_exception_handler_label): Likewise.
16757 (maybe_remove_eh_handler): Likewise.
16758 (remove_eh_handler): Use the region aka bitmap.
16759 * except.h (exception_handler_labels): Remove.
16760 (for_each_eh_label): Declare.
16761 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
16762 * loop.c (invalidate_loops_containing_label): New.
16763 (find_and_verify_loops): Use it. Use for_each_eh_label.
16764 * sched-rgn.c (is_cfg_nonregular): Use
16765 current_function_has_exception_handlers.
16766
b47374fa
RH
167672002-04-09 Richard Henderson <rth@redhat.com>
16768
16769 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
16770 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
16771 Do not return changed status.
16772 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
16773 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
16774 New functions that do return changed status.
16775 * sbitmap.h: Update decls.
16776 * gcse.c, lcm.c: Use _cg functions as needed.
16777
1951818c
R
16778Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
16779
16780 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
16781 (sh64-*-elf*, sh-*-rtemself*): Likewise.
16782 * config/sh/embed_bb.c: New file.
16783 * config/sh/embed-elf.h: New file.
16784 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
16785 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
16786 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
16787 __PTRDIFF_TYPE__ .
16788 (SUBTARGET_CPP_PTR_SPEC): Don't define.
16789 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
16790 Add subtarget_asm_endian_spec.
16791 (ASM_SPEC): Use subtarget_asm_endian_spec.
16792 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
16793 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
16794 (WCHAR_UNSIGNED): Define.
16795 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
16796 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
16797 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
16798 Fix value.
16799 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
16800 (sh_adjust_cost): Likewise.
16801 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
16802 __PTRDIFF_TYPE__ .
16803 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
16804 (WCHAR_TYPE_SIZE): Likewise.
16805 (ASM_SPEC): Use subtarget_asm_endian_spec.
16806 (SH_ELF_WCHAR_TYPE): #undef/ #define.
16807 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
16808 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
16809 (MAX_WCHAR_TYPE_SIZE): Don't #define .
16810 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
16811 (USER_LABEL_PREFIX): Don't #undef /#define .
16812 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
16813 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
16814 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
16815 (ASM_SPEC): Likewise.
16816 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
16817 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
16818 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
16819 (LIB2FUNCS_EXTRA): Define.
16820 * t-sh64 (LIB2FUNCS_EXTRA): Define.
16821 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
16822 (LIB1ASMFUNCS_CACHE): Define.
16823 (LIB2FUNCS_EXTRA): Redefine empty.
16824
34295799
RH
168252002-04-08 Richard Henderson <rth@redhat.com>
16826
16827 * reorg.c (get_branch_condition): Use reversed_comparison_code.
16828
e8766a39
SC
168292002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16830
16831 * config/m68hc11/larith.asm (__map_data_section): Fix condition
16832 and optimize for size.
16833 (__do_global_ctors): Fix pointer comparison.
16834 (__do_global_dtors): Likewise.
16835
f451b552
DM
168362002-04-09 David S. Miller <davem@redhat.com>
16837
16838 * config/sparc/sparc.c (sparc_extra_constraint_check): New
16839 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
16840 allow reloading pseudos.
16841 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
16842 * config/sparc/sparc-protos.h: Declare it.
16843
16844 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
16845 unsigned comparison warning.
16846 (output_restore_regs): Mark leaf_function as unused.
16847
1ce7f3c2
RK
16848Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16849
16850 * expr.c (is_aligning_offset): New function.
16851 (expand_expr, case COMPONENT_EXPR): Call it.
16852
7a31a340
DM
168532002-04-08 David S. Miller <davem@redhat.com>
16854
16855 PR target/6082
16856 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
16857
16858 Make init_priority work on Sparc when using GNU ld.
16859 * config/sparc/linux.h, config/sparc/linux64.h,
16860 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
16861 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
16862 * config/sparc/sol2-gld.h: New file to do the same.
16863 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
16864 sparc/sol2-gld.h to tm_file.
16865
16866 PR optimization/4328
16867 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
16868 * doc/md.texi: Document it.
16869 * config/sparc/sparc.md (movdi_insn_sp64_novis,
16870 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
16871 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
16872 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
16873 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
16874
11579f33
AJ
168752002-04-08 Andreas Jaeger <aj@suse.de>
16876
16877 * stmt.c (expand_asm_operands): Revert last patch from Richard
16878 Henderson.
16879
b57215d9
GP
168802002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16881
16882 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
16883 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
16884
168852002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16886
16887 * doc/contrib.texi (Contributors): Add David O'Brien.
16888
534d0cc0
AM
168892002-04-08 Alan Modra <amodra@bigpond.net.au>
16890
16891 * configure.in (auto-build.h): Use target_alias and build_alias
16892 when running configure.
16893 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
16894 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
16895 * configure: Regenerate.
16896
19fe522a
DM
168972002-04-07 David S. Miller <davem@redhat.com>
16898
16899 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
16900
bf2d0b8e
JDA
169012002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
16902
16903 PR 5933
16904 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
16905 generating 32-bit pic code.
16906
477cdac7
JT
169072002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
16908
16909 * cppinit.c (cpp_create_reader): Initialize
16910 discard_comments_in_macro_exp.
16911 (COMMAND_LINE_OPTIONS): Add "-CC" option.
16912 (cpp_handle_option): Handle "-CC" option.
16913 * cpplex.c (save_comment): If saving a C++ comment in
16914 a directive, convert it to a C comment.
16915 (_cpp_lex_direct): Pass second comment start character to
16916 save_comment to indicate comment type.
16917 * cpplib.c (_cpp_handle_directive): If processing
16918 a "#define" directive and discard_comments_in_macro_exp
16919 is false, re-enable saving of comments.
16920 (lex_macro_node): If discard_comments_in_macro_exp is false,
16921 discard any comments before the macro identifier.
16922 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
16923 member.
16924 * cppmacro.c (cpp_get_token): If expanding a macro while
16925 processing a directive, discard any comments we might encounter.
16926 (parse_params): If discard_comments_in_macro_exp is false,
16927 ignore comments in the macro parameter list.
16928 * gcc.c (cpp_unique_options): Add "-CC" option.
16929 (option_map): Map "--comments-in-macros" to "-CC".
16930 * doc/cppopts.texi: Document "-CC" option.
16931 * f/lang-specs.h: Add "-CC" option.
16932 * testsuite/gcc.dg/cpp/maccom1.c: New test.
16933 * testsuite/gcc.dg/cpp/maccom2.c: New test.
16934 * testsuite/gcc.dg/cpp/maccom3.c: New test.
16935 * testsuite/gcc.dg/cpp/maccom4.c: New test.
16936 * testsuite/gcc.dg/cpp/maccom5.c: New test.
16937 * testsuite/gcc.dg/cpp/maccom6.c: New test.
16938
f1526122
JDA
169392002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
16940
16941 PR middle-end/6180
16942 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
16943
b1896e61
MM
169442002-04-06 Mark Mitchell <mark@codesourcery.com>
16945
0154eaa8
MM
16946 PR c++/5571
16947 * stor-layout.c (layout_decl): Reset the RTL for the decl.
16948
b1896e61
MM
16949 PR opt/5120
16950 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
16951 RTX_UNCHANGING_P for the functions arguments when a tail call
16952 is made.
16953
b0148884
JM
169542002-04-06 Jason Merrill <jason@redhat.com>
16955
16956 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
16957 (parse_options_and_default_flags): Set them appropriately.
16958 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
16959
392fc5b0
HPN
169602002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
16961
16962 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
16963 here.
16964
16965 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
16966 semicolon.
16967
16968 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
16969 types come in by-reference. Fix typo in comment.
16970
2d69e3cb
DM
169712002-04-05 David S. Miller <davem@redhat.com>
16972
16973 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
16974 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
16975 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
16976 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
16977
169782002-04-05 David S. Miller <davem@redhat.com>
16979
16980 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
16981 are not going to emit return instructions, emit at least a nop
16982 for the sake of sane backtraces.
16983
5f9fb0e3
RH
169842002-04-05 Richard Henderson <rth@redhat.com>
16985
16986 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
16987
49f37a0d
JJ
169882002-04-05 Jakub Jeilnek <jakub@redhat.com>
16989
16990 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
16991
974a3101
AO
169922002-04-05 Alexandre Oliva <aoliva@redhat.com>
16993
16994 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
16995 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
16996 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
16997
2e04a694
AS
169982002-04-05 Andreas Schwab <schwab@suse.de>
16999
a40179bd 17000 * c-convert.c: Include c-common.h.
2e04a694
AS
17001 * Makefile.in (c-convert.o): Updated.
17002
1f785b7c
JJ
170032002-04-05 Jakub Jelinek <jakub@redhat.com>
17004
17005 * mklibgcc.in: Use separate libgcc.map for each multilib.
17006 * Makefile.in (distclean): Don't remove libgcc.map here.
17007
4d2fb38b
JJ
170082002-04-05 Jakub Jelinek <jakub@redhat.com>
17009
17010 * Makefile.in (s-mlib): Handle --disable-multilib by separate
17011 genmultilib invocation.
17012
bb63e5a0
RS
170132002-04-04 Richard Sandiford <rsandifo@redhat.com>
17014
17015 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
17016 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
17017 to num_gprs for symmetry.
17018 * config/mips/mips.c: Adjust accordingly.
17019
8ab80eaa
NB
170202002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
17021
17022 * c-common.c (truthvalue_conversion): Rename, update.
17023 * c-common.h (c_common_truthvalue_conversion): New.
17024 * c-convert.c (convert): Update.
17025 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
17026 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
17027 * c-typeck.c (build_binary_op, build_unary_op,
17028 build_conditional_expr): Update.
17029 * fold-const.c (constant_boolean_node, fold): Use langhook.
17030 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
17031 * langhooks.h (struct lang_hooks): New hook.
17032 * stmt.c (expand_decl_cleanup): Use langhook.
17033 * tree.h (truthvalue_conversion): Remove.
17034objc:
17035 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
17036
a2e9374a
AM
170372002-04-05 Alan Modra <amodra@bigpond.net.au>
17038
17039 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
17040 Add rules to make null object file.
17041
64d08263
JB
170422002-04-04 Jim Blandy <jimb@redhat.com>
17043
17044 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
17045 macro formal parameter names.
17046
aa7634dd
DM
170472002-04-04 David S. Miller <davem@redhat.com>
17048
17049 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
17050
ecc114f7
RH
170512002-04-04 Richard Henderson <rth@redhat.com>
17052
17053 PR middle-end/5099
17054 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
17055 Support copies into and out of memory. Don't accept allows_reg
17056 and allows_mem as gospel.
17057
c4484b8f
RH
170582002-04-04 Richard Henderson <rth@redhat.com>
17059
17060 PR opt/6165
17061 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
17062 (write_dependence_p): Likewise.
17063
39002160
RH
170642002-04-04 Richard Henderson <rth@redhat.com>
17065
17066 * predict.c (estimate_bb_frequencies): Do frequency calculation
17067 with a volatile temporary.
17068
f53ebe71
UW
170692002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17070
17071 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
17072
15e0ecab
JJ
170732002-04-04 Jakub Jelinek <jakub@redhat.com>
17074
17075 PR c++/6119
17076 * final.c (final_start_function): Don't bump profile_label_no here...
17077 (final_end_function): ...but here.
17078
ffd386b0
JJ
170792002-04-04 Jakub Jelinek <jakub@redhat.com>
17080
17081 * config/sparc/sparc.md (pic): New attribute.
17082 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
17083 into stack slots.
17084 (split after do_builtin_setjmp_setup): New.
17085
8b156b3e
JJ
170862002-04-04 Jakub Jelinek <jakub@redhat.com>
17087
17088 PR fortran/6106
17089 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
17090 change.
17091
014c0998
JJ
170922002-04-04 Jakub Jelinek <jakub@redhat.com>
17093
17094 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
17095 UNITS_PER_WORD for zero sized aggregates.
17096
4d8611d9
DM
170972002-04-03 David S. Miller <davem@redhat.com>
17098
17099 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
17100 one-character spec for this, just use %(link_gcc_c_sequence).
17101
b03ad99d
DM
171022002-04-03 David S. Miller <davem@redhat.com>
17103
17104 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
17105 handling.
17106
823fbbce
JDA
171072002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
17108
17109 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
17110 (DWARF_FRAME_RETURN_COLUMN): Move.
17111 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
17112 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
17113 * pa.c (except.h, predict.h): Include.
17114 (FRP): Delete.
17115 (store_reg_modify, set_reg_plus_d): Revise prototypes.
17116 (output_ascii): Add cast.
17117 (store_reg_modify): Revise to add frame notes.
17118 (set_reg_plus_d): Likewise.
17119 (compute_frame_size): Include space for eh data registers in frame if
17120 the current function calls eh_return.
17121 (hppa_expand_prologue): Ensure register %r2 is saved if the current
17122 function calls eh_return. Save eh data registers if the current
17123 function calls eh_return. Fix code to add frame notes. Emit
17124 blockage to prevent insns with frame notes being scheduled in the
17125 delay slot of calls.
17126 (hppa_expand_epilogue): Restore eh data registers and do final stack
17127 adjustment if the current function calls eh_return. Don't add frame
17128 notes.
17129 (output_call): Revise for change in length of call insn. Don't do
17130 return pointer adjustment for an unconditional jump in the delay slot
17131 of a call when using frame notes.
17132 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
17133 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
17134 (ARG_POINTER_CFA_OFFSET): Define.
17135 * pa.md (return_external_pic): New pattern.
17136 (prologue): Correct formatting. Use return_external_pic if current
17137 function calls eh_return.
17138 (call_internal_symref, call_value_internal_symref,
17139 sibcall_internal_symref, sibcall_value_internal_symref): Change default
17140 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
17141 respectively.
17142 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
17143
17144 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
17145 list of targets to check using "nop" insn.
17146 * configure: Rebuilt.
17147
4078e224
AM
171482002-04-04 Alan Modra <amodra@bigpond.net.au>
17149
17150 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
17151
bbd7687d
DM
171522002-04-03 David S. Miller <davem@redhat.com>
17153
17154 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
17155 library sequence passed to the linker.
17156 (LINK_COMMAND_SPEC): Use it.
17157 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
17158 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
17159 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
17160
659e5a7a
JM
171612002-04-03 Jason Merrill <jason@redhat.com>
17162
17163 * except.c (struct eh_status): Remove protect_list.
17164 (begin_protect_partials, end_protect_partials): Remove.
17165 (add_partial_entry): Remove.
17166 * except.h: Remove prototypes.
17167
17168 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
17169 expand_decl_cleanup_eh.
17170
17171 PR c++/5636
17172 * tree.h (CLEANUP_EH_ONLY): New macro.
17173 * stmt.c (expand_decl_cleanup_eh): New fn.
17174 (expand_cleanups): Check CLEANUP_EH_ONLY.
17175 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
17176 Use expand_decl_cleanup_eh.
17177 (expand_stmt): Adjust.
17178 * c-common.h: Adjust prototype.
17179
053d3344
HPN
171802002-04-04 Hans-Peter Nilsson <hp@axis.com>
17181
17182 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
17183 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
17184 (cris_target_asm_function_epilogue): Ditto.
17185 (cris_initial_frame_pointer_offset): Ditto.
17186 (cris_simple_epilogue): Ditto.
17187 (cris_expand_builtin_va_arg): Variable-size types come in
17188 by-reference.
17189
61ab5260
DM
171902002-04-03 David S. Miller <davem@redhat.com>
17191
17192 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
17193 little-endian.
17194 (set_fast_math): Correct 'fsr' type.
17195
ef4f94ac
RH
171962002-04-03 Richard Henderson <rth@redhat.com>
17197
36c2272c 17198 PR opt/3569
ef4f94ac
RH
17199 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
17200 * toplev.c (check_global_declarations): Use it.
17201 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
17202 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
17203 (LANG_HOOKS_DECLS): Add it.
17204 * langhooks.c (lhd_warn_unused_global_decl): New.
17205 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
17206 * c-objc-common.c (c_warn_unused_global_decl): New.
17207 * c-tree.h (c_warn_unused_global_decl): Declare.
17208 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
17209
599bba86
NB
172102002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
17211
17212 * langhooks-def.h (lhd_set_decl_assembler_name,
17213 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
17214 (LANG_HOOKS_INITIALIZER): Update.
17215 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
17216 * langhooks.h (struct lang_hooks): New hook.
17217 * tree.c (set_decl_assembler_name): Move to langhooks.c.
17218 (lang_set_decl_assembler_name): Remove.
17219 (init_obstacks): Don't set hook.
17220 (decl_assembler_name): New function.
17221 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
17222 (decl_assembler_name): New.
17223 (lang_set_decl_assembler_name): Remove.
17224
cf7b8b0d
JJ
172252002-04-03 Jakub Jelinek <jakub@redhat.com>
17226
17227 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
17228 works properly with .hidden symbols.
17229 * configure: Rebuilt.
17230 * config.in: Rebuilt.
17231 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
17232 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
17233 properly with .hidden symbols.
17234
faf6db38
JJ
172352002-04-03 Jakub Jelinek <jakub@redhat.com>
17236
17237 PR middle-end/6102
17238 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
17239 USE argument.
17240
68c17f30
RH
172412002-04-03 Richard Henderson <rth@redhat.com>
17242
17243 PR opt/4120
17244 * sched-rgn.c (sets_likely_spilled): New.
17245 (sets_likely_spilled_1): New.
17246 (add_branch_dependences): Use it.
17247
6584b4aa
RH
172482002-04-02 Richard Henderson <rth@redhat.com>
17249
17250 PR opt/4311
17251 * loop.h (LOOP_FIRST_PASS): New.
17252 * loop.c (strength_reduce): Mind it when deciding to unroll.
17253 * toplev.c (rest_of_compilation): Set it.
17254
0acf409f
DM
172552002-04-02 David S. Miller <davem@redhat.com>
17256
17257 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
17258 mems_ok_for_ldd_peep when the order of the loads being examined
17259 is reversed.
17260 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
17261 existing comment to increase comprehension of this situation.
17262
85654444
ZW
172632002-04-02 Zack Weinberg <zack@codesourcery.com>
17264
17265 * config/sh/sh.md: Don't use union real_extract.
17266
543828ca
RH
172672002-04-02 Richard Henderson <rth@redhat.com>
17268
17269 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
17270
39ed301b
DB
172712002-04-02 David O'Brien <obrien@FreeBSD.org>
17272
17273 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
17274 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
17275 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
17276 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
17277 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
17278 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
17279 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
17280 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
17281 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
17282 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
17283 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
17284 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
17285 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
17286 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
17287 Include as many configury headers via tm_file as possible. This
17288 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
17289 * config/openbsd-oldgas.h: New file.
17290 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
17291 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
17292 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
17293 config/i386/i386-coff.h, config/i386/i386-interix.h,
17294 config/i386/iscdbx.h, config/i386/linux-aout.h,
17295 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
17296 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
17297 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
17298 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
17299 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
17300 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
17301 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
17302 config/i386/vxi386.h: Do not directly include configury headers.
17303 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
17304 Directly include configury headers that are no longer automatically
17305 included by the above headers.
17306 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
17307 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
17308 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
17309 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
17310 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
17311 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
17312 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
17313 (TARGET_VERSION): Define.
17314 * config/i386/beos-elf.h, config/i386/freebsd.h,
17315 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
17316 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
17317 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
17318 config/i386/sco5.h, config/i386/sysv4.h
17319 (TARGET_VERSION): Do not need to protect.
17320 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
17321 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
17322 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
17323 config/i386/i386-interix.h, config/i386/linux-aout.h,
17324 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
17325 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
17326 (YES_UNDERSCORES): Do not define - not needed.
17327 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
17328 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
17329 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
17330 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
17331 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
17332 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
17333 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
17334 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
17335
9432c136
EB
173362002-04-02 Eric Botcazou <ebotcazou@multimania.com>
17337 Richard Henderson <rth@redhat.com>
17338
17339 PR c/5484
17340 * function.c (assign_temp): Accept either type or decl argument.
17341 Detect variables whose size is too large to fit into an integer.
17342 * stmt.c (expand_decl): Pass the decl, not the type.
17343
058b1275
DB
173442002-04-02 David O'Brien <obrien@FreeBSD.org>
17345
17346 * protoize.c: Match include directory usage with cppdefault.c.
17347
5add6d1a 173482002-04-03 Jeffrey A Law (law@redhat.com)
9be40833 17349 Hans-Peter Nilsson <hp@bitrange.com>
5add6d1a
JL
17350
17351 * combine.c (simplify_comparison): Avoid narrowing a comparison
17352 with a paradoxical subreg when doing so would drop signficant bits.
17353
1e533e4b
SE
173542002-04-02 Steve Ellcey <sje@cup.hp.com>
17355
17356 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
17357 if POINTERS_EXTEND_UNSIGNED is defined.
17358
7a145e92
RH
173592002-04-02 Richard Henderson <rth@redhat.com>
17360
17361 PR opt/3967
17362 * local-alloc.c (contains_replace_regs): LO_SUM may contain
17363 replace regs.
17364
3a079822
RH
173652002-04-02 Richard Henderson <rth@redhat.com>
17366
17367 * doc/standards.texi: Document required freestanding libc entry points.
17368
c94ccb87
AM
173692002-04-02 Alan Modra <amodra@bigpond.net.au>
17370
17371 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
17372 associated splitter. Remove MQ constraint.
17373 (ctrdi_internal4): Correct CCmode clobber.
17374
fe660a1a
JDA
173752002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
17376
17377 * milli64.S ($$dyncall): New function.
17378 * t-linux (LIB1ASMFUNCS): Revise module list.
17379 (LIB1ASMSRC): Use pa/milli64.S.
17380
eadc0202
RH
173812002-04-02 Richard Henderson <rth@redhat.com>
17382
17383 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
17384 rename solaris_sys_varargs_h.
17385
a1471322
RK
17386Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17387
17388 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
17389 the same mode as its component.
17390
c8b94768
RH
173912002-04-02 Richard Henderson <rth@redhat.com>
17392
17393 PR opt/190
17394 * final.c (this_is_asm_operands): Export.
17395 * output.h (this_is_asm_operands): Declare.
17396 * config/i386/i386.c (print_operand): Error odd asm operands.
17397
161eb4fc
RH
173982002-04-02 Richard Henderson <rth@redhat.com>
17399
17400 PR opt/420
17401 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
17402
b88a94c6
RH
174032002-04-01 Richard Henderson <rth@redhat.com>
17404
17405 PR target/1538
17406 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
17407 * fixinc/fixincl.x: Rebuild.
17408
72e32876
RH
174092002-04-01 Richard Henderson <rth@redhat.com>
17410
17411 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
17412 (atomic_alloc, atomic_free): New.
17413 (SIZE, MASK_FOR, PTR_IN): New.
17414 (emergency_reg_state, emergency_reg_state_free): New.
17415 (emergency_labeled_state, emergency_labeled_state_free): New.
17416 (reg_state_alloced, labeled_state_alloced): New.
17417 (alloc_reg_state, free_reg_state): New.
17418 (alloc_label_state, free_label_state, free_label_states): New.
17419 (push, pop, dup_state_stack, free_state_stack): Use them.
17420 (desc_label_state): Likewise.
17421 (uw_frame_state_for): Free label states and state stack.
17422 (uw_update_reg_address): Eliminate warnings.
17423
84d76074
VM
174242002-04-01 Vladimir Makarov <vmakarov@redhat.com>
17425
17426 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9be40833 17427 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
84d76074 17428
dffd7eb6
NB
174292002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
17430
17431 * c-decl.c (grokdeclarator): Update.
17432 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
17433 * c-tree.h (c_mark_addressable): New.
17434 * c-typeck.c (default_function_array_conversion, build_unary_op,
17435 build_array_ref, convert_for_assignment): Update.
17436 (mark_addressable): Rename.
17437 * calls.c (try_to_integrate, expand_call): Use langhook.
17438 * expr.c (expand_expr): Use langhook.
17439 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
17440 * langhooks.h (struct lang_hooks): New hook.
17441 * stmt.c (expand_asm_operands): Use langhook.
17442 * tree.h (mark_addressable): Remove.
17443objc:
17444 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
17445
544ef5b5
BW
174462002-04-01 Bob Wilson <bob.wilson@acm.org>
17447
9be40833
RH
17448 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
17449 in previous change.
544ef5b5 17450
bcf88f9b
BW
174512002-04-01 Bob Wilson <bob.wilson@acm.org>
17452
17453 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
17454 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
17455
ceef8ce4
NB
174562002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
17457
17458 * c-common.c (unsigned_conversion_warning, convert_and_check,
17459 unsigned_type, signed_type, shorten_compare,
17460 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
17461 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
17462 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
17463 New.
17464 * c-decl.c (grokdeclarator): Update.
17465 * c-format.c (check_format_types): Update.
17466 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
17467 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
17468 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
17469 * convert.c (convert_to_integer): Use new hooks.
17470 * expmed.c (make_tree): Use new hooks.
17471 * expr.c (store_expr): Use new hooks.
17472 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
17473 all_ones_mask_p, unextend, fold): Use new hooks.
17474 * langhooks.h (struct lang_hooks_for_types): New hooks.
17475 * tree.h (signed_or_unsigned_type, signed_type,
17476 unsigned_type): Remove.
17477objc:
17478 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
17479 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
17480
1d9ad0e0
RH
174812002-03-31 Richard Henderson <rth@redhat.com>
17482
17483 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
17484 (desc_frgr_mem): Fix reference to f16-f31.
17485
d544bc39
KG
174862002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17487
17488 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
17489 RTVEC_ELT): Const-ify.
d8750784
KG
17490 * varray.h (VARRAY_CHECK): Const-ify.
17491 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
17492 ggc_mark_rtvec, ggc_mark): Const-ify.
d544bc39 17493
b18101c7
NB
174942002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
17495
17496 * diagnostic.c: Include langhooks-def.h.
17497 * Makefile.in (diagnostic.o): Update.
17498
48a7a235
NB
174992002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
17500
17501 * c-common.c (c_unsafe_for_reeval): Rename.
17502 * c-common.h (c_unsafe_for_reeval): Rename.
17503 * c-decl.c (finish_incomplete_decl): Rename.
17504 (c_init_decl_processing): Don't set langhook.
17505 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
17506 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
17507 * c-objc-common.c (c_objc_common_init): Don't set langhook.
17508 * c-tree.h (finish_incomplete_decl): Rename.
17509 * langhooks-def.h (lhd_unsafe_for_reeval): New.
17510 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
17511 (LANG_HOOKS_INITIALIZER): Update.
17512 * langhooks.c (lhd_unsafe_For_reeval): New.
17513 * langhooks.h (struct langhooks): New hooks.
17514 * toplev.c (incomplete_decl_finalize_hook): Remove.
17515 (wrapup_global_declarations): Update.
17516 * tree.c (lang_unsafe_for_reeval): Remove.
17517 (unsafe_for_reeval): Update.
17518 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
17519 Remove.
17520objc:
17521 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
17522 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
17523
7cb32822
NB
175242002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
17525
17526 * diagnostic.c (print_error_function): Remove.
17527 (default_print_error_function): Rename.
17528 (report_error_function): Update.
17529 * diagnostic.h (print_error_function): Remove.
17530 (default_print_error_function): Remove.
17531 * langhooks-def.h (struct diagnostic_context): Predeclare.
17532 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
17533 (LANG_HOOKS_INITIALIZER): Update.
17534 * langhooks.h (struct diagnostic context): Predeclare.
17535 (struct lang_hooks): New hook.
17536
1db02437
FS
175372002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17538
17539 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
17540 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
17541 !flag_pic.
17542 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
17543 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
17544 of PIC_OFFSET_TABLE_REGNUM thruout.
17545 * config/rs6000/rs6000.md: Likewise.
17546 * config/rs6000/darwin.h: Likewise.
17547
3bf1e984
RK
17548Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17549
17550 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
17551 unsigned HOST_WIDE_INT, not unsigned int.
17552
0864c526
JJ
175532002-03-31 Jakub Jelinek <jakub@redhat.com>
17554
17555 PR middle-end/6096, middle-end/6098, middle-end/6099
17556 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
17557 CODE_LABELs.
17558 (fill_slots_from_thread): Likewise.
17559
105b2084
JJ
175602002-03-31 Jakub Jelinek <jakub@redhat.com>
17561
17562 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
17563 floating fields in float regs.
17564 (function_arg_record_value_2): Likewise.
17565
db08fddf
HPN
175662002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
17567
17568 * config/mmix/mmix.md (define_constants): Remove misleading
17569 FIXME. Add MMIX_fp_rO_OFFSET.
17570 ("nonlocal_goto_receiver"): Don't have stack-frame address of
17571 saved rO as part of the pattern. Remove FIXME.
17572 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
17573 here, at output-time.
17574
4f31cce8
JJ
175752002-03-31 Jakub Jelinek <jakub@redhat.com>
17576
17577 PR middle-end/6100
17578 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
17579 REG_BR_PRED.
17580 (output_v9branch): Likewise.
17581
ba2b7435
AO
175822002-03-31 Alexandre Oliva <aoliva@redhat.com>
17583
17584 * gcc.c: Revert previous patch for now.
17585 * config/i386/djgpp.h: Likewise.
17586
aa66aa5f 175872002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8f840f57
HPN
17588
17589 * config/mmix/crti.asm (_init): Register _fini with atexit.
17590 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
17591
41ba8a20
RH
175922002-03-31 Richard Henderson <rth@redhat.com>
17593
17594 PR target/3997
17595 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
17596 (ASM_OUTPUT_DEF_FROM_DECLS): New.
17597
adc186ef
RH
175982002-03-31 Richard Henderson <rth@redhat.com>
17599
17600 * libgcc2.c (__bb_exit_func): Make static.
17601
9be40833 17602 * config/alpha/alpha.md (trap): New.
a7648399 17603
9602f5a0
RH
176042002-03-31 Richard Henderson <rth@redhat.com>
17605
17606 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
17607 promoted argument types; build trap.
17608 (expand_builtin_trap): New.
17609 (expand_builtin): Use it.
17610 * stmt.c (expand_nl_goto_receivers): Likewise.
17611 * expr.h (expand_builtin_trap): Declare.
17612 * libfuncs.h (LTI_abort, abort_libfunc): New.
17613 * optabs.c (init_optabs): Init abort_libfunc.
17614
1a0a7539
AO
176152002-03-31 Alexandre Oliva <aoliva@redhat.com>
17616
17617 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
17618 (LINK_COMMAND_SPEC): ... from here.
7b2e1077 17619 (init_gcc_specs): Duplicate it here too, omitting
1a0a7539
AO
17620 shared_name in the second copy.
17621 (init_spec): Test for duplicate
17622 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
17623
b5de1a27
DM
176242002-03-30 David S. Miller <davem@redhat.com>
17625
17626 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
17627 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
17628
78414d74 176292002-03-30 Roger Sayle <roger@eyesopen.com>
9be40833 17630 Richard Henderson <rth@redhat.com>
78414d74 17631
9be40833
RH
17632 * regmove.c (combine_stack_adjustments_for_block): Avoid
17633 emitting a stack adjustment of zero bytes. Let delete_insn
17634 update bb->head.
78414d74 17635
33074e5f
RH
176362002-03-30 Richard Henderson <rth@redhat.com>
17637
17638 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
17639 (sparc_emitting_epilogue): New.
17640 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
17641 * config/sparc/sparc-protos.h: Update.
17642 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
17643 (TARGET_SWITCHES): Update.
17644 * config/sparc/sparc.md (return): Remove.
17645 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
17646 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
17647 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
17648 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
17649 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
17650 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
17651 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
17652 Remove MASK_EPILOGUE.
17653 * doc/invoke.texi: Update.
17654
606cc056
DB
176552002-03-30 Daniel Berlin <dan@dberlin.org>
17656
17657 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
17658 CPP will start the file for us.
7b2e1077 17659
bdbe5b8d
RH
176602002-03-30 Richard Henderson <rth@redhat.com>
17661
17662 PR target/5446
17663 * config/ia64/ia64.c (group_barrier_needed_p): Special case
17664 prologue_allocate_stack.
17665 (ia64_single_set): Use insn codes for recognition of special
17666 cases, not rtl matching.
17667 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
17668
4ab95d82
JH
17669Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
17670
17671 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
17672
89a8b315
RH
176732002-03-30 Richard Henderson <rth@redhat.com>
17674
17675 PR target/6032
17676 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
17677 or -fomit-frame-pointer with profiling.
17678 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
17679 (FUNCTION_PROFILER): Do nothing.
17680 (PROFILE_HOOK): New.
17681 * config/sparc/sparc.c (sparc_override_options): Don't check
17682 code models for profiling.
17683 (sparc_function_profiler): Remove.
17684 (sparc_profile_hook): New.
17685 * config/sparc/sparc-protos.h: Update.
17686
30984c57
JJ
176872002-03-30 Jakub Jelinek <jakub@redhat.com>
17688
17689 PR optimization/6086
17690 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
17691 of SUBREG of volatile MEM or because the MEM was mode dependent,
17692 return CLOBBER instead of unmodified SUBREG.
17693
1540f9eb
JH
17694Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
17695
89a8b315
RH
17696 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
17697 when not optimizing.
1540f9eb
JH
17698
17699 * toplev.c (rest_of_compilation): Cann mark_constant_function
17700 only when optimizing.
17701
89a8b315
RH
17702 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
17703 are NULL.
1540f9eb
JH
17704
17705 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
17706 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
17707 (try_optimize_cfg): clear all AUX fields.
17708
17709 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
17710 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
17711 (ix86_address_cost): Be prepared for SUBREGed registers.
17712 (legitimate_address_p): Accept SUBREGed registers.
17713
70d95bac
RH
177142002-03-29 Richard Henderson <rth@redhat.com>
17715
17716 PR target/5672
17717 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
17718
d3294cd9
FS
177192002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17720
17721 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
17722 for aggregate and TFmode types.
17723
a106c875
HPN
177242002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
17725
17726 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
17727
7d7a5d6f
RH
177282002-03-29 Richard Henderson <rth@redhat.com>
17729
6e2d670b 17730 PR target/5886
7d7a5d6f
RH
17731 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
17732 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
17733
30c99a84
RH
177342002-03-29 Richard Henderson <rth@redhat.com>
17735
6e2d670b 17736 PR target/6041
30c99a84
RH
17737 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
17738 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
17739 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
17740 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
17741 conditional.
17742 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
17743
02a566dc
DJ
177442002-03-29 Dale Johannesen <dalej@apple.com>
17745
17746 * loop.c (combine_movables): Do allow combination of pseudos.
17747
bc3a44db
LR
177482002-03-29 Loren J. Rittle <ljrittle@acm.org>
17749
17750 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
17751 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
17752 No functional change except ...
17753 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
17754 * doc/install.texi (*-*-freebsd*): Document port configuration.
17755
b0c48229
NB
177562002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
17757
17758 * Makefile.in (convert.o, calls.o, expmed.o): Update.
17759 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
17760 Use new hooks.
17761 * builtin-types.def (BT_PTRMODE): Update.
17762 * c-common.c (type_for_size): Rename c_common_type_for_size.
17763 (type_for_mode): Similarly.
17764 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
17765 Use new hook.
17766 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
17767 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
17768 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
17769 Redefine.
17770 * c-typeck.c (common_type, comptypes, default_conversion):
17771 Use new hooks.
17772 * calls.c: Include langhooks.h.
17773 (emit_library_call_value_1): Use new hooks. Avoid redundant
17774 calls.
17775 * convert.c: Include langhooks.h
17776 (convert_to_pointer, convert_to_integer): Use new hooks.
17777 * except.c (init_eh): Similarly.
17778 * expmed.c: Include langhooks.h.
17779 (expand_mult_add): Use new hooks.
17780 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
17781 try_casesi): Similarly.
17782 * fold-const.c (optimize_bit_field_compare, make_range,
17783 decode_field_reference, fold_truthop, fold): Similarly.
17784 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
17785 put_var_into_stack): Similarly.
17786 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
17787 LANG_HOOKS_TYPE_FOR_SIZE): New.
17788 (LANG_HOOKS_TYPES_INITIALIZER): Update.
17789 * langhooks.h (lang_hooks_for_types): New hooks.
17790 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
17791 * tree.c (get_unwidened, get_narrower): Similarly.
17792 * tree.h (type_for_mode, type_for_size): Remove.
17793 * varasm.c (force_const_mem): Use new hooks.
17794 * utils2.c (nonbinary_modular_operation): Update.
17795objc:
17796 * objc-act.c (handle_impent): Update.
17797 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
17798 Redefine.
17799
e206a74f
SE
178002002-03-29 Steve Ellcey <sje@cup.hp.com>
17801
17802 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
17803 * config/ia64/ia64.c (basereg_operand): New.
17804 * config/ia64/ia64-protos.h (basereg_operand): Declare.
17805 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
17806
7d9b6378
HPN
178072002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
17808
17809 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
17810 unwind information when frame_pointer_needed.
17811 (mmix_assemble_integer): Tweak wording in comment.
17812
f1e639b1
NB
178132002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
17814
17815 * Makefile.in (except.o): Update.
17816 * except.c: Include langhooks.h.
17817 (init_eh): Use langhook.
17818 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
17819 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
17820 (LANG_HOOKS_INITIALIZER): Update.
17821 * langhooks.h (lang_hooks_for_types): New.
17822 (struct lang_hooks): Add it.
17823 * tree.c (make_lang_type_fn, make_lang_type): Remove.
17824 * tree.h (make_lang_type_fn, make_lang_type): Remove.
17825config:
17826 * alpha/alpha.c: Include langhooks.h.
17827 (alpha_build_va_list): Use langhook.
17828 * d30v/d30v.c: Include langhooks.h.
17829 (d30v_build_va_list): Use langhook.
17830 * i386/i386.c: Include langhooks.h.
17831 (ix86_build_va_list): Use langhook.
17832 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
17833 * s390/s390.c: Include langhooks.h.
17834 (s390_build_va_list): Use langhook.
17835 * stormy16/stormy16.c: Include langhooks.h.
17836 (stormy16_build_va_list): Use langhook.
17837
f17f9332
JJ
178382002-03-29 Jakub Jelinek <jakub@redhat.com>
17839
17840 PR c++/5964
17841 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
17842 attributes.
17843 (length): Compute variable length for branches/calls/jumps here.
17844 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
17845 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
17846 define branch_type attribute.
17847 (divsi3_sp32): Maximum length is 6 not 7.
17848 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
17849 call_address_untyped_struct_value_sp32,
17850 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
17851 * config/sparc/sparc.c (empty_delay_slot): New function.
17852 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
17853 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
17854
0a0440c9
JJ
178552002-03-29 Jakub Jelinek <jakub@redhat.com>
17856
17857 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
17858 nonzero_bits if not needed.
17859 (nonzero_bits) [XOR]: Likewise.
17860 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
17861 reg_last_set_mode and mode are both MODE_INT, but not equal.
17862 (record_value_for_reg): Compute reg_last_set_nonzero_bits
17863 in nonzero_bits_mode for MODE_INT modes.
17864
c9045f47
RH
178652002-03-28 Richard Henderson <rth@redhat.com>
17866
17867 PR target/5715
17868 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
17869 to GAS. Correct drift between alternatives.
17870
f8ed1958
RH
178712002-03-28 Richard Henderson <rth@redhat.com>
17872
17873 PR target/6087
17874 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
17875
54e20385
LR
178762002-03-28 Alexandre Oliva <aoliva@redhat.com>
17877
17878 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
17879 emulation to the linker.
17880
178812002-03-28 Loren J. Rittle <ljrittle@acm.org>
17882
17883 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
17884 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
17885
8bc52806
JL
17886Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
17887
17888 * combine.c (simplify_and_const_int): Make sure to apply mask
17889 when force_to_mode returns a constant integer. PR3311.
17890
279dccc5
JDA
178912002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
17892
17893 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
17894
62aaa62c
GP
178952002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17896
17897 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
17898 and Objective-C Dialect Options.
17899
b8de5050
RH
179002002-03-28 Richard Henderson <rth@redhat.com>
17901
17902 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
17903 comparison should be done vs !=0 not >0 return code. Tidy cases.
17904
619708cc
RH
179052002-03-28 Richard Henderson <rth@redhat.com>
17906
17907 * c-decl.c (finish_function): New arg can_defer_p. Pass it
17908 on to c_expand_body.
17909 * c-tree.h (finish_function): Update decl.
17910 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
17911
b1d874d7
JH
17912Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
17913
17914 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
17915
f5eb5fd0
JH
17916Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
17917
17918 * rtlanal.c: Include flags.h
17919 (may_trap_p): Do not mark FP operations if trapping
17920 if !flag_trapping_math
17921 * Makefile.in (rtlanal.o): Add dependency on flag.h
17922 * ifcvt.c (noce_operand_ok): Avoid the lameness.
17923
81b4c798
ZW
179242002-03-27 Zack Weinberg <zack@codesourcery.com>
17925
17926 * mips.md: Use dconst1, not 1.0, as first argument of
17927 REAL_VALUE_LDEXP. Don't use union real_extract.
17928
55a2ea2a
AM
179292002-03-28 Alan Modra <amodra@bigpond.net.au>
17930
17931 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
17932 rather than $target. Heed program_prefix and
17933 program_transform_name. Search for gas in cross-compiler case too.
17934 "test -x" rather than "test -f".
17935 (gcc_cv_ld): Likewise.
17936 (gcc_cv_nm): Heed program_prefix and program_transform_name.
17937 (gcc_cv_objdump): Likewise.
17938 * configure: Regenerate.
17939
7ffb4fd2
NB
179402002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
17941
17942 * Makefile.in (attribs.o): Update.
17943 * attribs.c: Include langhooks.h.
17944 (decl_attributes): Use langhook.
17945 * c-decl.c (insert_default_attributes): Rename.
17946 * c-tree.h (c_insert_default_attributes): New.
17947 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
17948 (LANG_HOOKS_INITIALIZER): Update.
17949 * langhooks.h (struct lang_hooks): New hook.
17950 * tree.h (insert_default_attributes): Remove.
17951objc:
17952 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
17953
e4dbaed5
AS
179542002-03-27 Andreas Schwab <schwab@suse.de>
17955
17956 * config/i386/i386.c (classify_argument): Also check for
17957 QUAL_UNION_TYPE.
17958
18b467f1
RO
179592002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17960
17961 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
17962 any more.
17963
d337d653
JH
17964Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
17965
17966 * i960.md (ret): Set PC.
17967 (nonlocal_goto): Fix expander.
17968 * builtins.c (epxand_builin_longjmp): Check that we've emitted
17969 some jump or call.
17970
218aa620
JH
17971Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
17972
17973 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
17974 of libcall regions.
17975
e27a4eaf
ZD
17976Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17977
17978 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
17979 assigning to BLOCK_FOR_INSN directly.
17980
8a12f34c
JH
17981Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
17982
17983 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
17984
c9d892a8
NB
179852002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
17986
17987 * c-common.c (c_expand_expr): Fix prototype.
17988 * c-common.h (c_expand_expr): Always declare, update.
17989 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
17990 * c-objc-common.c (c_objc_common_init): No global hook.
17991 * expr.c (expand_expr): Use langhook.
17992 * expr.h (enum expand_modifier): Conditionally declare.
17993 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
17994 (LANG_HOOKS_INITIALIZER): Update.
17995 * langhooks.c (lhd_expand_expr): New.
17996 * langhooks.h (struct lang_hooks): New hook.
17997 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
17998 (lang_independent_init): Don't default hook.
17999objc:
18000 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
18001
6dad5a56
RH
180022002-03-27 Richard Henderson <rth@redhat.com>
18003
18004 PR target/6054
18005 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
18006 TARGET_CONST_GP. Simplify conditions.
18007
59f96879
RH
180082002-03-27 Richard Henderson <rth@redhat.com>
18009
18010 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
18011 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
18012 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
18013
f3f1190d
DS
180142002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
18015
18016 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
18017 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
18018 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
18019 Remove unnecessary masks.
18020 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
18021 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
18022 -mwindows, -mdll switches and their negations.
18023
31c816cf
NB
180242002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
18025
18026 * gcc-common.c (lang_mark_false_label_stack): Remove.
18027 * ggc.h (lang_mark_false_label_stack): Similarly.
18028
7b2e1077 180292002-03-26 Vladimir Makarov <vmakarov@redhat.com>
aee8f532
VM
18030
18031 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
18032
18033 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
18034 or __rtems_ is defined.
18035
1ef9531b
RH
180362002-03-26 Richard Henderson <rth@redhat.com>
18037
18038 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
18039 if a non-trivial load was emitted.
18040 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
18041 in high+extra+low case.
18042
300d4093
RH
180432002-03-26 Richard Henderson <rth@redhat.com>
18044
18045 * config.gcc (sparc*-solaris): Use float_format=sparc.
18046
b3689904
RH
180472002-03-26 Richard Henderson <rth@redhat.com>
18048
18049 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
18050 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
18051 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
18052 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
18053 (WINT_TYPE_SIZE): Fix at 32.
18054
1eefb6c1
RH
180552002-03-26 Richard Henderson <rth@redhat.com>
18056
18057 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
18058 until after eh landing pad generation.
18059 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
18060 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
18061
361ea006
RH
180622002-03-26 Richard Henderson <rth@redhat.com>
18063
18064 * expr.h (ADD_PARM_SIZE): One more convert for INC.
18065
1de38a88
PE
180662002-03-26 Phil Edwards <pme@gcc.gnu.org>
18067
18068 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
18069 and warning switches.
18070 (cc1_options): Likewise.
18071
d7e60e95 180722002-03-26 Hans Boehm <Hans_Boehm@hp.com>
361ea006 18073
d7e60e95
HB
18074 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
18075 Restore more of the signal context. Set no_reg_stack_frame.
18076 * config/ia64/unwind-ia64.c (unw_state_record):
18077 Add no_reg_stack_frame, comments.
18078 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
18079 (uw_update_context): Adjust bsp when unwinding from leaf,
18080 but not signal frame.
18081
7032923b
DE
180822002-03-26 David Edelsohn <edelsohn@gnu.org>
18083
18084 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
18085
8be56275
BW
180862002-03-26 Bob Wilson <bob.wilson@acm.org>
18087
18088 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
18089
56fbb855
RE
180902002-03-26 Richard Earnshaw <rearnsha@arm.com>
18091
18092 PR target/5621
18093 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
18094 "Add a pool_range attribute", which was lost during the ARM/Thumb
18095 merge.
18096
3437320b
BW
180972002-03-26 Bob Wilson <bob.wilson@acm.org>
18098
18099 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
18100 a register into the MAC16 accumulator.
18101
173028e5
AC
181022002-03-26 Andrew Cagney <ac131313@redhat.com>
18103
18104 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
18105 (Warning Options): Document -Wswitch-enum.
18106 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
18107 -Wswitch.
18108 (warn_switch_enum): Define variables.
18109 * flags.h (warn_switch_enum): Declare variables.
18110 * stmt.c (expand_end_case_type): When warn_switch_enum /
18111 -Wswitch-enum, perform switch checks.
18112 Fix PR c/5044.
7b2e1077 18113
e14365a7
RE
181142002-03-26 Richard Earnshaw <rearnsha@arm.com>
18115
18116 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
18117 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
18118 (reload_muladdsi_compare0_scratch): Delete.
18119
46fc709d
LR
181202002-03-26 Loren J. Rittle <ljrittle@acm.org>
18121
18122 * doc/install.texi (*-*-freebsd*): Update.
18123
f36dea3c
RH
181242002-03-26 Richard Henderson <rth@redhat.com>
18125
8e5fe23f
RH
18126 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
18127 (SUB_PARM_SIZE): Cast DEC to ssizetype.
18128
18129 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
18130 types from the normal argument frame.
18131
f36dea3c
RH
18132 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
18133 variable sized objects by reference.
18134 (sparc_va_arg): Receive them by reference too.
18135
1447dc69
HP
181362002-03-26 Hartmut Penner <hpenner@de.ibm.com>
18137
18138 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7b2e1077 18139 code to not restoring global registers.
1447dc69 18140
4f0ade92
NB
181412002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
18142
18143 * Makefile.in (ggc-common.o): Update.
18144 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
18145 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
18146 * c-tree.h (c_mark_tree): New.
18147 * ggc-common.c: Include langhooks.h.
18148 (gcc_mark_trees): Use new langhook.
18149 * ggc-callbacks.c: Delete file.
18150 * ggc.h (lang_mark_tree): Remove.
18151 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
18152 (LANG_HOOKS_INITIALIZER): Update.
18153 * langhooks.h (struct lang_hooks): New hook.
18154objc:
18155 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
18156
caba570b
ZW
181572002-03-25 Zack Weinberg <zack@codesourcery.com>
18158
18159 * doc/cpp.texi: Exclude entire Top node from printed manual.
18160 Move option index after directive index. Insert page breaks
18161 before GFDL and concept index. Index environment variables
18162 with command line options.
18163 * doc/cppenv.texi: Use @vtable for environment variable list.
18164 Add paragraph explaining semantics of empty elements in path
18165 variables. Exclude a cross-reference to Fishkill from the
18166 manpage. Remove an unnecessary cross-reference of the entry
18167 right above the referer. Don't use @anchor in text that goes
18168 into manpage.
18169 * doc/cppopts.texi: Cross-reference the environment variables
18170 section, not the specific environment variable, for consistency.
18171
6b2e80b7
RH
181722002-03-25 Richard Henderson <rth@redhat.com>
18173
18174 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
18175 anywhere in the block. Don't refer to insns that have been
18176 removed from the chain. Iterate backward through the new insns.
18177 Don't refer to edges that have been removed.
18178
67e469d7
AM
181792002-03-26 Alan Modra <amodra@bigpond.net.au>
18180
18181 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
18182 test for overflow of constant.
18183
f2356393
RE
181842002-03-25 Richard Earnshaw <rearnsha@arm.com>
18185
18186 PR target/2623
18187 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
18188 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
18189 these patterns on arm_archv4.
18190
355426ab
DS
181912002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
18192
18193 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
18194 int".
18195
15e5ad76
ZW
181962002-03-25 Zack Weinberg <zack@codesourcery.com>
18197
18198 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
18199 float_handled, float_handler, float_signal, set_float_handler,
18200 and do_float_handler. Set handler for SIGFPE to crash_signal.
18201 * toplev.h: Don't prototype do_float_handler.
18202
18203 * c-lex.c: Fold parse_float into lex_number. Make warning
18204 about portability of hex float constants more informative, and
18205 don't issue it on top of a syntax error.
18206 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
18207 their callers.
18208 * real.h: Define REAL_VALUE_ABS here...
18209 * simplify-rtx.c: ... not here. Fold check_fold_consts,
18210 simplify_unary_real, simplify_binary_real, and
18211 simplify_binary_is2orm1 into their callers.
18212 * tree.c: Fold build_real_from_int_cst_1 into caller.
18213
18214 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
18215
18216 * tsystem.h: Include float.h here...
18217 * libgcc2.c: ... not here.
18218
56ae9405
NC
182192002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
18220
18221 Fixes for: PR bootstrap/3591, target/5676
18222 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
18223 defined. Do not disable exceptions or rtti.
18224 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
18225 mcore.h. Disable exceptions and rtti, since they are not
18226 supported by EPOC.
18227
c88770e9
NB
182282002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
18229
18230 * c-decl.c (maybe_build_cleanup): Remove.
18231 * expr.c (expand_expr): Use langhook.
18232 * langhooks-def.h (lhd_return_null_tree,
18233 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
18234 (LANGHOOKS_INITIALIZER): Update.
18235 * langhooks.c (lhd_return_null_tree): New.
18236 * langhooks.h (struct lang_hooks): New hook.
18237 * tree-inline.c (initialize_inlined_parameters): Use langhook.
18238 * tree.h (maybe_build_cleanup): Remove.
18239
2ed1f154
JJ
182402002-03-25 Jakub Jelinek <jakub@redhat.com>
18241
18242 * regrename.c (build_def_use): Move recog_memoized
18243 before extract_insn.
18244
6ddae612
JJ
182452002-03-25 Jakub Jelinek <jakub@redhat.com>
18246
18247 PR target/6043
18248 * expr.c (emit_group_store): Handle storing into CONCAT.
18249
ea475b23
JJ
182502002-03-25 Jakub Jelinek <jakub@redhat.com>
18251
18252 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
18253 corresponding MATCH_DUP.
18254
e7d482b9
RH
182552002-03-24 Richard Henderson <rth@redhat.com>
18256
cd39fc13
RH
18257 * unroll.c (unroll_loop): Zero label_map.
18258
e7d482b9
RH
18259 * gcse.c: Include except.h.
18260 * Makefile.in (gcse.o): Update.
18261
1bd6476f
RH
182622002-03-24 Richard Henderson <rth@redhat.com>
18263
18264 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
18265 Do resolve_unique_section before shared data clause.
18266
2e6c150a
RH
182672002-03-24 Richard Henderson <rth@redhat.com>
18268
18269 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
18270
b29afcf8
RH
182712002-03-24 Richard Henderson <rth@redhat.com>
18272
15e5ad76 18273 * recog.c (peephole2_optimize): Split blocks when EH insns are
b29afcf8
RH
18274 generated in the middle of a block. Do global life update if
18275 zapped EH edges.
18276
05ed1296
RH
182772002-03-24 Richard Henderson <rth@redhat.com>
18278
18279 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
18280
3ddbb8a9
NB
182812002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
18282
18283 preprocessor/3951
15e5ad76 18284 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3ddbb8a9
NB
18285 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
18286 (init_dependency_output): Don't make no_output decision here.
18287
740b77b6
AC
182882002-03-24 Andrew Cagney <ac131313@redhat.com>
18289
18290 * stmt.c (check_for_full_enumeration_handling): Remove tests of
18291 warn_switch. Update description.
18292 (expand_end_case_type): Call check_for_full_enumeration_handling
18293 when warn_switch.
18294
7590cfd0
SC
182952002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
18296
18297 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
18298 (m68hc11_split_move): Call it to see if the source and destination
18299 operands use the same direction auto inc/dec mode, otherwise make the
c61f581f 18300 source an offsetable memory operand and generate an add.
7590cfd0 18301
2e3d3481
SC
183022002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
18303
18304 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
18305 register for operand 2.
18306 ("*subsi3_zero_extendqi"): Likewise.
18307 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
18308 bits so that it is compatible with a pop.
18309 ("*andhi3_gen"): Likewise.
18310 ("xorhi3"): Likewise.
18311
2784528c
NB
183122002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
18313
18314 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
18315 -pedantic here...
18316 (cpp_post_options): ... not here.
18317
aaf93206
NB
183182002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
18319 Aldy Hernandez <aldyh@redhat.com>
18320
18321 Removal of separate preprocessor cpp0.
18322
18323 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
18324 cpp0, install-common): Update.
18325 * c-common.c (flag_preprocess_only): New.
18326 (c_common_init): Preprocess for -E.
18327 * c-common.h (flag_preprocess_only): New.
18328 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
18329 * c-objc-common.c (c_init_decl_processing): Exit quickly
18330 for NULL return from c_common_init.
18331 * cpplib.h (cpp_preprocess_file): New.
18332 * cppmain.c (main, general_init, pfile, progname): Remove.
18333 (do_preprocessing): Rename cpp_preprocess_file, don't call
18334 cpp_finish. Don't close stdout here.
18335 (setup_callbacks): Update prototype.
18336 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
18337 Update.
18338 * tradcpp.c (main): Ignore -quiet.
18339objc:
18340 * lang-specs.h (default_compilers): Preprocess with cc1obj.
18341
c6e6f5c1
RH
183422002-03-24 Richard Henderson <rth@redhat.com>
18343
18344 PR optimization/5742
18345 * machmode.def: Add inner mode field to complex modes.
18346 * config/mips/mips.c (mips_function_value): Always define. Add
18347 new argument to handle libcalls.
18348 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
18349 (FUNCTION_VALUE): Likewise.
18350 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
18351 * config/mips/mips-protos.h: Update.
18352
d88e57d1
RH
183532002-03-23 Richard Henderson <rth@redhat.com>
18354
18355 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
18356 * config/sparc/sparc-protos.h: Update.
18357 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
18358
6dfaf9ba
RH
183592002-03-23 Richard Henderson <rth@redhat.com>
18360
18361 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
18362 _start or _init begins the text segment.
18363
0c769cf8
DE
183642002-03-23 David Edelsohn <edelsohn@gnu.org>
18365
18366 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
18367 not HOST_WIDEST_INT.
18368 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
18369
64e92a26
RE
183702002-03-23 Richard Earnshaw <rearnsha@arm.com>
18371
18372 PR java/5489
18373 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
18374 operand argument to output_return_instruction.
15e5ad76 18375 * arm.c (arm_print_operand, case 'd'): If the operand is
64e92a26
RE
18376 const_true_rtx then just return.
18377 (arm_print_operand, case 'D'): If the operand is const_true_rtx
18378 then abort.
18379
d6961341
AC
183802002-03-23 Andrew Cagney <ac131313@redhat.com>
18381
18382 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
18383 (Warning Options): Document -Wswitch-default.
18384 * toplev.c (W_options): Add -Wswitch-default. Update comment on
18385 -Wswitch.
18386 (warn_switch_default): Define variable.
18387 (warn_switch): Update comment.
18388 * flags.h (warn_switch_default): Declare variable.
18389 (warn_switch): Update comment.
18390 * stmt.c (expand_end_case): Check for and, when
18391 warn_switch_no_default, warn of a missing default case.
15e5ad76 18392
d4c5ac1f
AM
183932002-03-23 Alan Modra <amodra@bigpond.net.au>
18394
bbaa9790
AM
18395 * real.h (N): Special case 128 bit doubles.
18396
d4c5ac1f
AM
18397 * combine.c (simplify_comparison): When widening modes, ignore
18398 sign extension on CONST_INTs.
18399
84bf8c2c
BW
184002002-03-22 Bob Wilson <bob.wilson@acm.org>
18401
18402 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
18403 passed to adjust_address. Fix comment formatting.
18404
18405
b216cd4a
ZW
184062002-03-22 Zack Weinberg <zack@codesourcery.com>
18407
18408 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
18409 Always make REAL_VALUE_TYPE a struct containing an array of
18410 HOST_WIDE_INT, not a double. Tidy up the code deciding how
18411 big it is. Don't declare or use union real_extract.
18412
18413 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
18414 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
18415 (print_operand), config/arm/arm.c (output_move_double),
18416 config/arm/arm.md (consttable_4, consttable_8),
18417 config/romp/romp.c (output_fpops), config/s390/s390.h
18418 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
18419 (xtensa_output_literal): Don't use union real_extract.
18420
18421 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
18422 (sfmode_constant_to_ulong), config/ns32k/merlin.h
18423 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
18424 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
18425 (PRINT_OPERAND): Don't use local version of union
18426 real_extract.
18427
18428 * config/convex/convex.c (check_float_value), config/vax/vax.c
18429 (vax_float_literal), config/m88k/m88k.md (divdf3),
18430 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
18431 config/pdp11/pdp11.c (output_move_quad): Don't do host
18432 arithmetic on target floating point quantities.
18433
18434 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
18435 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
18436
18437 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
18438 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
18439
18440 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
18441 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
18442 INFINITY.
18443 * print-rtl.c (print_rtx): Disable code which needs
18444 floating-point emulator.
18445 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
18446 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
18447 depending on HOST_FLOAT_FORMAT to be defined properly.
18448
18449 * config/1750a/1750a.c (get_double, float_label): Delete.
18450 (print_operand): Delete huge commented-out chunk. Use
18451 REAL_VALUE_TO_DECIMAL.
18452 * config/1750a/1750a-protos.h: Delete prototypes of deleted
18453 functions.
18454 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
18455 IEEE_FLOAT_FORMAT.
18456 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
18457 Use REAL_VALUE_TO_DECIMAL as ELF version does.
18458 * config/m88k/m88k.c (real_power_of_2_operand,
18459 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
18460 real_extract out of the union; run the input through
18461 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
18462 from that into the union.
18463 * config/pdp11/pdp11.c (output_move_double): Rearrange
18464 parentheses to make automatic indenter happy.
18465
18466 * doc/tm.texi (Cross-compilation): Rename node to "Floating
18467 Point" and rewrite to describe current situation. Also adjust
18468 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
18469 match code.
18470 * doc/rtl.texi: Adjust cross reference.
18471
a8cacfd2
BW
184722002-03-22 Bob Wilson <bob.wilson@acm.org>
18473
18474 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
18475 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
18476 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
18477 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
18478 prevent use of sp as a reload register.
18479 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
18480 non_acc_reg_operand.
18481 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
18482 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
18483 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
18484 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
18485
d4e6133f
NB
184862002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
18487
b216cd4a
ZW
18488 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
18489 * cpplex.c (unterminated): Delete.
18490 (parse_string): No string literal may extend over multiple
18491 lines. Suppress the error when preprocessing assembly.
d4e6133f
NB
18492 * cppmain.c (scan_translation_unit): Strings are single-line.
18493
b216cd4a 18494 * doc/cpp.texi: Update to match.
d4e6133f 18495
65e6c005
JJ
184962002-03-22 Jakub Jelinek <jakub@redhat.com>
18497
18498 PR optimization/5854
18499 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
18500 Shut up warnings.
18501 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
18502 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
18503 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
18504 const0 if scratch register was not allocated.
18505 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
18506 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
18507 with GEN_INT (...).
18508 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
18509 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
18510 with GEN_INT (...) everywhere. Remove constraints in define_split
18511 patterns.
18512 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
18513 require scratch register for setting 0 into regs/non-pushable memory.
18514
7f48c9e1
AO
185152002-03-22 Alexandre Oliva <aoliva@redhat.com>
18516
18517 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
18518 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
18519
909de5da
PE
185202002-03-22 Phil Edwards <pme@gcc.gnu.org>
18521
18522 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
18523 * cppinit.c (cpp_create_reader): On by default.
18524 (cpp_handle_option): Handle -W[no-]endif-labels.
18525 (cpp_post_options): Also enable if -pedantic.
18526 * cpplib.c (do_else): Use it.
18527 (do_endif): Likewise.
18528 * doc/cppopts.texi: Document new option.
18529 * doc/invoke.texi: Document new option.
18530
d8bf17f9
LB
185312002-03-22 Lars Brinkhoff <lars@nocrew.org>
18532
18533 * config/i386/i386.c, config/i386/i386.md: Change all occurences
18534 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
18535
70e0ccd0
AO
185362002-03-22 Alexandre Oliva <aoliva@redhat.com>
18537
18538 * flow.c (calculate_global_regs_live): Clear aux fields of
18539 ENTRY and EXIT.
18540
68882f0f
JJ
185412002-03-22 Jakub Jelinek <jakub@redhat.com>
18542
18543 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
18544 REG or MEM subregs, pass rtx * instead of rtx to it.
18545 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
18546 rtx * instead of rtx to alter_subreg.
18547 * config/m32r/m32r.c (gen_split_move_double): Likewise.
18548 * config/pj/pj.c (pj_output_rval): Likewise.
18549
648fe28b
RH
185502002-03-22 Richard Henderson <rth@redhat.com>
18551
18552 PR target/3177
18553 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
18554 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
18555 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
18556 (ia64_expand_prologue): Look at int_regs, not words, for number
18557 of incomming int regs.
18558
e8dcd824
AM
185592002-03-22 Andrew MacLeod <amacleod@redhat.com>
18560
18561 * expr.c (expand_expr): A RESULT_DECL is part of a call.
18562
96327cdc
JH
18563Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
18564
18565 * toplev.c (flag_loop_optimize, flag_crossjumping):
18566 New static variables.
18567 (rest_of_compilation): Conditionalize crossjumping and
18568 loop optimizer.
18569 (parse_options_and_default_flags): Default loop_optimize and
18570 crossjumping.
18571 (lang_independent_options): Add -fcrossjumping and -floop-optimize
18572 * invoke.texi (crossjumping, loop-optimize): Document.
18573
bc185257
RS
185742002-03-22 Richard Sandiford <rsandifo@redhat.com>
18575
18576 * real.c (eiisneg): Move outside #ifdef NANS.
18577
0a2ed1f1
JH
18578Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
18579
18580 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
18581 frequencies match; avoid match on different loop depths.
18582 (try_crossjump_to_bb): Kill tests that no longer brings time
18583 savings.
18584 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
18585 updating code.
18586 (split_edge): Likewise.
18587
18588 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
18589 variable.
18590
18591 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
18592 * cfgrtl.c: Include insn-config.h
18593 (split_block) Dirtify block in presence of conditional execution
18594
4d72536e
RS
185952002-03-22 Richard Sandiford <rsandifo@redhat.com>
18596
18597 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
18598 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
18599 (function_arg): Constify CUMULATIVE_ARGS.
18600 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
18601 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
18602 (UNITS_PER_DOUBLE): New macro.
18603 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
18604 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
18605 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
18606 fp_regs and stack_words.
18607 (EABI_FLOAT_VARARGS_P): New macro.
18608 * config/mips/mips.c (struct mips_arg_info): New.
18609 (mips_arg_info): New function.
18610 (function_arg_advance): Use it. Add adjustment instructions here
18611 rather than in function_arg.
18612 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
18613 for VOIDmode at the beginning of the function.
18614 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
18615 (function_arg_pass_by_reference): Likewise.
18616 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
18617 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
18618 (mips_va_start): Likewise. Use the new stack_words field of
18619 CUMULATIVE_ARGS to set up overflow area. Reformat.
18620 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
18621 doubles and other types, aligning the overflow pointer for non-doubles
18622 too. Remove some code duplication. Replace hard-coded constants.
18623
e6f884cd
RS
186242002-03-22 Richard Sandiford <rsandifo@redhat.com>
18625
18626 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
18627 (CLASS_UNITS): Undefine.
18628 (CLASS_MAX_NREGS): Use FP_INC.
18629 * config/mips/mips.c (compute_frame_size): Likewise.
18630 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
18631
10cf9bde
NB
186322002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
18633
18634 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
18635 prototype, and handle lexing numbers and identifiers.
18636 (parse_identifier): Update to new form of parse_slow.
18637 (parse_number): Fast path only, use parse_slow otherwise.
18638 (_cpp_lex_direct): Update calls to parse_number.
18639
fbc2782e
DD
186402002-03-21 DJ Delorie <dj@redhat.com>
18641
18642 * bb-reorder.c (make_reorder_chain_1): Protect against
18643 when redundant edges are omitted.
18644 * predict.c (dump_prediction): Likewise.
18645
fba39eaf
RH
186462002-03-21 Richard Henderson <rth@redhat.com>
18647
18648 PR target/5996
18649 * fixinc/inclhack.def (solaris_stdio_tag): New.
18650 * fixinc/fixincl.x: Regenerate.
18651
eba80994
EB
186522002-03-21 Eric Botcazou <ebotcazou@multimania.com>
18653
18654 PR c/5597
18655 * c-typeck.c (process_init_element): Flag non-static
18656 initialization of a flexible array member as illegal.
18657
2a78758b
AM
186582002-03-22 Alan Modra <amodra@bigpond.net.au>
18659
18660 * config/rs6000/t-linux64: New.
18661 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
18662 t-ppccomm. Use t-rs6000 and t-linux64.
18663 (powerpc64-*-gnu* <tmake_file>): Likewise.
bac015e7
AM
18664 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
18665 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
18666 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2a78758b 18667
2cb921f4
AH
186682002-03-21 Aldy Hernandez <aldyh@redhat.com>
18669
eba80994
EB
18670 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
18671 flag_really_no_inline instead of optimize == 0.
2cb921f4 18672
eba80994 18673 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2cb921f4 18674
eba80994 18675 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2cb921f4 18676
eba80994 18677 * flags.h (flag_really_no_inline): New.
2cb921f4 18678
659e5a7a 18679 * c-common.c (c_common_post_options): Initialize
eba80994 18680 flag_really_no_inline.
2cb921f4 18681
eba80994 18682 * toplev.c (flag_really_no_inline): New.
2cb921f4 18683
239b8b9d
JJ
186842002-03-21 Jakub Jelinek <jakub@redhat.com>
18685
18686 * config/avr/avr.md (length): Fix length computation for
18687 conditional branches.
18688
43577e6b
NB
186892002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
18690
18691 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
18692 sdbout.o, profile.o): Update.
18693 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
18694 langhook.
18695 * c-common.h (gettags): Move here from tree.h.
18696 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
18697 insert_block, getdecls, kept_level_p, global_bindings_p): New.
18698 * dbxout.c (dbxout_init): Use getdecls langhook.
18699 * expr.c (expand_expr): Use insert_block langhook.
18700 * fold-const.c: Include langhooks.h.
18701 (fold_range_test, fold_binary_op_with_conditional_arg,
18702 fold): Use global_bindings_p langhook.
18703 * integrate.c (expand_inline_function): Use insert_block langhook.
18704 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
18705 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
18706 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
18707 LANG_HOOKS_GETDECLS): New.
18708 (LANG_HOOKS_INITIALIZER): Update.
18709 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
18710 langhook.
18711 * langhooks.h (struct lang_hooks_for_decls): New.
18712 (struct lang_hooks): Update.
18713 * profile.c: Include langhooks.h.
18714 (output_func_start_profiler): Use new langhooks.
18715 * sdbout.c: Include langhooks.h.
18716 (sdbout_init, sdbout_finish): Use getdecls langhook.
18717 * stmt.c: Include langhooks.h.
18718 (expand_fixup, fixup_gotos): Use new langhooks.
18719 * stor-layout.c: Include langhooks.h.
18720 (variable_size): Use global_bindings_p langhook.
18721 * toplev.c (compile_file): Use getdecls langhook.
18722 * tree-inline.c (remap_block): Use insert_block langhook.
18723 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
18724 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
18725
5b19b10c
RH
187262002-03-21 Richard Henderson <rth@redhat.com>
18727
18728 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
18729 constants in .data when -fpic.
18730
e05af335
GP
187312002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18732
18733 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
18734 where appropriate.
18735
60ffc997
TT
187362002-03-21 Tom Tromey <tromey@redhat.com>
18737
18738 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
18739
75897075
RK
18740Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18741
a73afd69 18742 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
46399021 18743
75897075
RK
18744 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
18745
312687cf
EB
187462002-03-21 Eric Botcazou <ebotcazou@multimania.com>
18747 Richard Henderson <rth@redhat.com>
18748
18749 PR c/5354
18750 * c-common.c (c_expand_expr): Preserve result of a statement
18751 expression if needed.
18752
f0e1f482
JJ
187532002-03-21 Jakub Jelinek <jakub@redhat.com>
18754
18755 PR bootstrap/4195
18756 * genrecog.c (maybe_both_true_mode): Remove.
18757 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
18758 * machmode.def (Pmode): Likewise.
18759
c14b9960
JW
18760Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
18761
18762 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
18763 (nonlocal_mentioned_p_1): New function.
18764 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
18765 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
18766 (mark_constant_function): Recognize pure functions.
18767 * rtl.h (global_reg_mentioned_p): New prototype.
18768 * rtlanal.c (global_reg_mentioned_p,
18769 global_reg_mentioned_p_1): New function.
18770
aaa4d130
RO
187712002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18772
18773 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
18774 UNIX assert.h.
18775 * fixinc/fixincl.x: Regenerate.
18776
e5c4bd1b
JM
187772002-03-20 Jason Merrill <jason@redhat.com>
18778
18779 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
18780
852b81bb
MM
187812002-03-20 Michael Meissner <meissner@redhat.com>
18782
18783 * doc/invoke.texi (Optimize Options): Document that -O2 sets
18784 -fstrict-aliasing.
18785
86d8c251
BW
187862002-03-20 Bob Wilson <bob.wilson@acm.org>
18787
18788 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
18789 ".literal_position" directive before the constant pool.
18790
0a39c350
GP
187912002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18792
18793 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
18794 Add Craig Rodrigues.
18795 Add Brad Lucier to testers.
18796
71a83373
JJ
187972002-03-20 Jakub Jelinek <jakub@redhat.com>
18798
18799 PR target/4792
18800 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
18801 to if_then_else.
18802 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
18803 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
18804 instead of insn_extract.
18805
a29b099d
JJ
188062002-03-20 Jakub Jelinek <jakub@redhat.com>
18807
18808 PR bootstrap/4192
71a83373 18809 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
a29b099d
JJ
18810
18811 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
18812 stmt if some case has been output.
18813
048b1c95
JJ
188142002-03-20 Jakub Jelinek <jakub@redhat.com>
18815
18816 PR c/5972
18817 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
18818 movsfcc_1, movdfcc_1): Add %O2.
18819 * config/i386/i386.c (print_operand): Handle %ON.
18820 Print . before float condition codes in Sun as cmov syntax.
18821 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
18822 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
18823 no longer true.
18824
f4864588
PB
188252002-03-20 Philip Blundell <pb@nexus.co.uk>
18826
18827 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
18828 return instruction if PC was popped.
18829
3a307de4
BW
188302002-03-20 Bob Wilson <bob.wilson@acm.org>
18831
18832 * config/xtensa/xtensa.md: Remove unused type attributes.
18833 (adddi_carry, subddi_carry): Change type attribute to "multi".
18834
048b1c95 188352002-03-19 Dale Johannesen <dalej@apple.com>
ed7d44bc
DJ
18836
18837 PR optimization/5999, middle-end/5731
18838 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
18839 multiplications by reciprocals.
18840
7afff7cf
NB
188412002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
18842
18843 * Makefile.in: Update.
18844 * c-common.c: Include langhooks.h.
18845 (inline_forbidden_p): Use new hook.
18846 * diagnostic.c: Include langhooks.h.
18847 (format_with_decl, announce_function,
18848 default_print_error_function): Use new hook.
18849 * dwarf2out.c (dwarf2_name): Use new hook.
18850 * function.c: Include langhooks.h.
18851 (init_function_start): Use new hook.
18852 * langhooks-def.h (lhd_decl_printable_name): New.
18853 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
18854 (LANGHOOKS_INITIALIZER): Update.
18855 * langhooks.c (lhd_decl_printable_name): New.
18856 * langhooks.h (struct lang_hooks): New hook.
18857 * toplev.c (decl_name, decl_printable_name): Remove.
18858 (open_dump_file): Use new hook.
18859 (process_options): Remove old hook.
18860 * tree.h (decl_printable_name): Remove.
18861objc:
18862 * objc-act.c (objc_init): Remove old hook.
18863 (objc_printable_name): Export.
18864 * objc-act.h (objc_printable_name): New.
18865 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
18866
f78ce0b7
JB
188672002-03-19 Jim Blandy <jimb@redhat.com>
18868
18869 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
18870 the start_source_file debug hook, not the current line number.
18871
15b5aef3
RH
188722002-03-19 Richard Henderson <rth@redhat.com>
18873
18874 * flow.c (EH_USES): Provide default.
18875 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
18876 * doc/tm.texi (EH_USES): New.
18877
18878 * config/ia64/ia64.c (ia64_eh_uses): New.
18879 * config/ia64/ia64-protos.h: Update.
18880 * config/ia64/ia64.h (EH_USES): New.
18881
02a7a3fd
RH
188822002-03-19 Richard Henderson <rth@redhat.com>
18883
18884 * varasm.c (output_constant_def): Fix stupid typo.
18885
93f82d60
RH
188862002-03-19 Richard Henderson <rth@redhat.com>
18887
2842be05 18888 PR 5879
93f82d60
RH
18889 * except.c (current_function_has_exception_handlers): New.
18890 * except.h: Declare it.
18891 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
18892 Combine tests that disable all sibcalls for the function.
18893
ed4fbfa0
OH
188942002-03-19 Olivier Hainque <hainque@act-europe.fr>
18895
18896 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
18897 for INTEGER_CST.
18898
ebf0e888
RH
188992002-03-19 Richard Henderson <rth@redhat.com>
18900
1e82682b 18901 PR 5977, 5991
ebf0e888
RH
18902 * config/ia64/ia64.c: Revert 2002-03-01 patch.
18903 * config/ia64/ia64.h (INIT_EXPANDERS): New.
18904
e37b38d7
JB
189052002-03-19 Jim Blandy <jimb@redhat.com>
18906
18907 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
18908 name, even if the replacement list contains no tokens, as required
18909 by Dwarf.
18910
2a4ea326
JM
189112002-03-19 Jason Merrill <jason@redhat.com>
18912
f9d09ae5
JM
18913 * varasm.c (globalize_decl): Get the name from the RTL, not
18914 DECL_ASSEMBLER_NAME.
18915
2a4ea326
JM
18916 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
18917
99b96edb
BW
189182002-03-19 Bob Wilson <bob.wilson@acm.org>
18919
18920 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
18921 subdi_carry): Define.
18922
3774b567
DE
189232002-03-19 David Edelsohn <edelsohn@gnu.org>
18924
18925 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
18926 about -fpic/-fPIC if extra_warnings set.
18927
21ef78aa
DE
189282002-03-19 David Edelsohn <edelsohn@gnu.org>
18929
18930 * expr.c (expand_expr): Sign-extend CONST_INT generated from
18931 TREE_STRING_POINTER.
0c2fdcdf 18932 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
21ef78aa 18933
91d4b3fd
RK
18934Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18935
18936 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
18937 in favor of SP if FRAME_POINTER_REQUIRED is false.
18938
2496c7bd
LB
189392002-03-19 Lars Brinkhoff <lars@nocrew.org>
18940
18941 * emit-rtl.c (gen_int_mode): New function.
18942 * rtl.h: Prototype for it.
18943 * combine.c (make_extraction, simplify_comparison), expmed.c
18944 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
18945 (convert_modes, store_field), optabs.c (expand_fix),
18946 simplify-rtx.c (neg_const_int, simplify_unary_real),
18947
18948 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
18949 Use it instead of GEN_INT (trunc_int_for_mode (...)).
18950
f735a153
JJ
189512002-03-19 Jakub Jelinek <jakub@redhat.com>
18952
18953 PR c/5656
18954 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
18955 convert_parm_for_inlining.
18956 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
18957 Define.
18958 * langhooks-def.h: Likewise.
18959 * objc/objc-lang.c: Likewise.
18960 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
18961 function.
18962 * tree-inline.c (initialize_inlined_parameters):
18963 Call convert_parm_for_inlining lang hook if needed.
18964 * c-typeck.c (c_convert_parm_for_inlining): New function.
18965 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
18966
1929c971
MM
189672002-03-18 Mark Mitchell <mark@codesourcery.com>
18968
b216cd4a 18969 * calls.c (precompute_arguments): Do not assume that temporaries
1929c971
MM
18970 can be destroyed after expanding the argument.
18971 (expand_call): Likewise.
18972
c79ca0ac
EC
189732002-03-15 Eric Christopher <echristo@redhat.com>
18974
18975 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
18976 Fix register preference on last change.
18977 * config/mips/mips.c (mips_return_in_memory): New function.
18978 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
18979 * config/mips/mips-protos.h: Declare.
18980 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
18981 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
18982
07e2e444
AO
189832002-03-18 Alexandre Oliva <aoliva@redhat.com>
18984
1bfbbbcf
AO
18985 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
18986 a register too.
18987 (anddi3, iorsi3): Likewise.
18988
c066429e
AO
18989 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
18990 use %gprel for symbols that are going to be placed in linkonce
18991 sections.
18992
07e2e444
AO
18993 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
18994 RETURN_ADDRESS_POINTER_REGNUM to $ra.
18995 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
18996 not needed. Disregard leaf_function_p().
18997 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
18998 mips16 frame pointer.
18999 * config/mips/mips.md (store ra): Only to small SP offsets.
19000 2001-08-22 Graham Stott <grahams@redhat.com>
19001 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
19002 return a REG rtx for the return address register.
19003
eb8e00ea
BW
190042002-03-18 Bob Wilson <bob.wilson@acm.org>
19005
19006 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
19007 constant-pool addresses as "mode-dependent".
19008 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
19009
cbb92744
JJ
190102002-03-18 Jakub Jelinek <jakub@redhat.com>
19011
19012 PR target/5740
19013 * expr.c (emit_group_load): Use extract_bit_field if
19014 needed for CONCAT arguments.
19015
657d9449
RE
190162002-03-18 Richard Earnshaw <rearnsha@arm.com>
19017
91f3a802 19018 PR target/4863
657d9449
RE
19019 * arm.md (tablejump): Make this a define_expand. For PIC add the
19020 offset to the base of the table.
19021 (thumb_tablejump): Matcher for Thumb tablejump insn.
19022 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
19023 as the difference of two labels.
19024 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
19025 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
19026 tables in the code.
19027 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
19028 * arm.c (get_jump_table_size): If the table is not in the text
19029 section, return zero.
c79ca0ac 19030
5d5603e2
BS
190312002-03-18 Bernd Schmidt <bernds@redhat.com>
19032
19033 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
19034 of gen_rtx_SUBREG.
19035 (arm_reload_out_hi): Use gen_lowpart instead of
19036 gen_rtx_SUBREG to access QImode components.
19037 * config/arm/arm.md: Disable zero_extend split for QImode
19038 subregs in BIG_ENDIAN mode.
19039 (storehi_bigend): Match use of least significant byte.
19040 (storeinthi): Remove extraneous SUBREG.
66c17b64 19041 Add missing construction of operands[2].
5d5603e2
BS
19042 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
19043 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
19044 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
19045
df15fbc7
AH
190462002-03-18 Aldy Hernandez <aldyh@redhat.com>
19047
2496c7bd
LB
19048 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
19049 any_operand.
df15fbc7 19050
b83b7fa3
RH
190512002-03-17 Richard Henderson <rth@redhat.com>
19052
19053 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
19054 explicitly.
19055
6f7c00fe
HPN
190562002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
19057
19058 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
19059 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
19060
155038f2
KG
190612002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19062
720d42fa
KG
19063 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
19064
155038f2
KG
19065 * predict.c (estimate_bb_frequencies): Delete unused variables.
19066
e6542f4e
RH
190672002-03-17 Richard Henderson <rth@redhat.com>
19068
19069 * config/ia64/ia64.c (ia64_attribute_table): Move before
19070 targetm definition. Make static.
19071
52dabb6c
NB
190722002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
19073
19074 * c-common.h (yyparse, c_common_parse_file): New.
19075 * c-lang.c: Include c-common.h.
19076 (LANG_HOOKS_PARSE_FILE): Redefine.
19077 * c-lex.c: Include c-common.h.
19078 (yyparse): Rename c_common_parse_file. Call yyparse.
19079 * c-parse.in (yyparse): Remove macro.
19080 * c-tree.h (yyparse_1): Remove.
19081 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
19082 (LANG_HOOKS_INITIALIZER): Update.
19083 * langhooks.h (struct lang_hoooks): New hook parse_file.
19084 * toplev.c (compile_file): Use parse_file hook.
19085 * tree.h (yyparse): Remove.
e6542f4e 19086 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
52dabb6c 19087
b5ffe606
HPN
190882002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
19089
ba82f58b
HPN
19090 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
19091 float_truncate, not fix.
19092 ("*truncdfsf2_real"): Ditto.
19093 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
19094
b5ffe606
HPN
19095 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
19096
c8d1b2b7
AO
190972002-03-16 Alexandre Oliva <aoliva@redhat.com>
19098
cfb773f9
AO
19099 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
19100 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
19101 where appropriate. Make the second reference to
19102 leaf_function_p a function call, as intended. Reindented.
19103
4dffef52
AO
19104 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
19105 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
19106
4f5bd6d7
AO
19107 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
19108 add register to non-constant into sp.
19109
c8d1b2b7
AO
19110 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
19111 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
19112 (mips16_gp_pseudo_rtx): Lose.
19113 (INIT_EXPANDERS): Deleted.
19114 * config/mips/mips.c (mips_init_machine_status): New.
19115 (mips_free_machine_status): New.
19116 (mips_mark_machine_status): New.
19117 (override_options): Set them.
19118 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
19119 (struct machine_function): ... new. Replaced all references.
19120 (mips_add_gc_roots): Don't mark them.
19121 (embedded_pic_fnaddr_reg): New, extracted from...
19122 (embedded_pic_offset): ... here.
19123 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
19124 (movsi): Likewise.
19125
b3124fac
NB
191262002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
19127
19128 * cppinit.c: Revert -MD removal.
19129
121449b6
SC
191302002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19131
19132 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
19133 soft registers by default for 68HC12.
19134 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
19135 when compiling with -fomit-frame-pointer.
19136 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
19137 (expand_epilogue): Likewise.
19138 (m68hc11_gen_rotate): Use exg when rotating by 8.
19139
840e2ff1
SC
191402002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19141
19142 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
19143 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
19144 (splits): Remove unused add splits.
19145 ("*addhi3_68hc12"): Tune constraints.
19146 ("addhi_sp"): Try to use X instead of Y in all cases and if the
19147 constant fits in 8-bits and D is dead use abx/aby instructions.
19148 ("*addhi3"): Remove extern declaration of ix_reg.
19149 ("*subsi3"): Optimize and provide new split.
19150 ("subhi3"): Cleanup.
19151 ("*subhi3_sp"): Avoid saving X if we know it is dead.
19152 (arith splits): For 68hc12 save the address register on the stack
19153 and do the arithmetic operation with a pop.
19154
3c9a5efe
SC
191552002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19156
19157 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
19158 allocating QImode in address registers.
19159 ("*movqi_m68hc11"): Likewise.
19160
e41f3392
JH
19161Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
19162
19163 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
19164
576786b0
NB
191652002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
19166
19167 * cppinit.c (print_help): Display -MD and -MMD.
19168 Don't display usage string. Update assertion syntax and
19169 typo.
19170 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
19171 (cpp_handle_option): Update.
19172
1ac458d4
CD
191732002-03-15 Chris Demetriou <cgd@broadcom.com>
19174
19175 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
19176 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
19177 and define it so that regardless of target CPU size,
19178 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
19179 of "int" rather than "long."
19180
1fcd592b
RH
191812002-03-15 Richard Henderson <rth@redhat.com>
19182
19183 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
19184 size as a tree.
19185
a0df6910
SC
191862002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19187
19188 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
19189 ("tstqi" split): Avoid using memory for tstqi on address register.
19190 (splits): Remove constraints.
19191 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
19192 ("cmpdf", "cmpsf"): Remove since not used.
19193 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
19194 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
19195
015a2e59
SC
191962002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19197
19198 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
19199 ("neghi2"): Tighten constraints.
19200 ("one_cmplsi2"): Optimize and simplify split.
19201 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
19202
cd28557c
SC
192032002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19204
19205 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
19206 and split of AND operation to clear the upper bits.
19207 ("*logicalsi3_zextqi"): Likewise.
19208 ("*logicallhi3_zexthi_ashift8"): Likewise.
19209 ("*logicalsi3_silshr16"): Likewise.
19210 ("logicalsi3_silshl16"): Likewise.
19211 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
19212
932657df
SC
192132002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19214
19215 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
19216 (m68hc11_indirect_p): New function.
19217 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
19218 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
19219 TARGET_M6812.
19220 (asm_print_register): Likewise.
19221 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
19222 (m68hc11_indirect_p): Declare.
19223 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
19224 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
19225 (TARGET_SWITCHES): New option -mrelax.
19226 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
19227 destination.
19228 ("iorsi3", "xorsi3"): Likewise.
19229 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
19230 ("*andhi3_mem"): New to handle destination in memory with bclr
19231 and a scratch register.
19232 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
19233 ("*andhi3_const"): New when operand2 is constant.
19234 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
19235 ("*andhi3_gen"): Cleanup of the old "andhi3".
19236 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
19237 ("xorqi3"): Update constraints.
19238
fdffea1a
SC
192392002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19240
19241 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
19242 for reg_equiv_memory_loc when the operand is a register that does
19243 not get a hard register (stack location).
19244 (tst_operand): After reload, accept all memory operand.
19245 (symbolic_memory_operand): Fix detection of symbolic references.
19246 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
19247 accept symbols and any constant.
19248
6272bc68
SC
192492002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19250
19251 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
19252 note on the insn that sets the soft frame register.
19253 (must_parenthesize): ix and iy are also reserved names.
19254 (print_operand_address): One more place where parenthesis are required
19255 to avoid confusion with register names.
19256 (m68hc11_gen_movhi): Allow push of stack pointer.
19257 (m68hc11_check_z_replacement): Fix handling of parallel with a
19258 clobber.
19259 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
19260 the replacement register is.
19261 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
19262 and D8_REGS classes.
19263 (MODES_TIEABLE_P): All modes are tieable except QImode.
19264
1d2d9def
SC
192652002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19266
19267 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
19268 (___subdi3): Likewise.
19269 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
19270 (__map_data_section): Optimize 68hc11 case.
19271
a0ccf503
SC
192722002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19273
19274 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
19275 than a shift to avoid adding a register with itself.
19276 (m68hc11_memory_move_cost): Take into account NO_REGS.
19277 (m68hc11_register_move_cost): Update and use memory move cost
19278 for soft registers.
19279 (m68hc11_address_cost): Make cost of valid offset not 0 so that
19280 it gives more opportunities to cse to optimize.
19281 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
19282 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
19283
6e4ae815
MM
192842002-03-15 Mark Mitchell <mark@codesourcery.com>
19285
19286 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
19287 * c-common.def (CLEANUP_STMT): New tree node.
19288 * c-common.h (CLEANUP_DECL): New macro.
19289 (CLEANUP_EXPR): Likewise.
19290 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
19291 * expr.c (expand_expr): Tidy.
19292 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
19293 * tree-inline.c (initialize_inlined_parameters): Clean up
19294 new local variables.
19295
a42519be
JJ
192962002-03-15 Jakub Jelinek <jakub@redhat.com>
19297
19298 PR bootstrap/4128
19299 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
19300 before movrXX only, use reg_overlap_mentioned_p.
19301 Only special case NE if just one insn can be generated.
19302
15409448
JM
193032002-03-15 Jason Merrill <jason@redhat.com>
19304
19305 * varasm.c (assemble_variable): Call resolve_unique_section before
19306 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
19307 of error_mark_node.
19308
3a4edb44
RE
193092002-03-15 Richard Earnshaw <rearnsha@arm.com>
19310
19311 PR target/5170
19312 * arm.md (split pattern for thumb shiftable immediates): Add comment
19313 explaining non-obvious test.
19314
32defa36
RE
193152002-03-15 Richard Earnshaw <rearnsha@arm.com>
19316
19317 PR target/5712
19318 * arm.md (movaddr, movaddr_insn): Delete.
19319
5cc90635
JM
193202002-03-15 Jason Merrill <jason@redhat.com>
19321
19322 * toplev.c (wrapup_global_declarations): Clarify variable handling.
19323 -fkeep-static-consts doesn't apply to comdats.
19324
ecb0eece
RH
193252002-03-14 Richard Henderson <rth@redhat.com>
19326
19327 * c-decl.c: Include c-pragma.h.
19328 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
19329 (finish_function): Tidy.
19330 * c-pragma.c: Include c-common.h.
19331 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
19332 (handle_pragma_weak): Use them.
19333 (init_pragma): Register pending_weaks.
19334 * c-pragma.h (maybe_apply_pragma_weak): Declare.
19335 * print-tree.c (print_node): Print DECL_WEAK.
19336 * varasm.c (mark_weak_decls): Remove.
19337 (remove_from_pending_weak_list): Remove.
19338 (add_weak): Remove.
19339 (asm_emit_uninitialised): Call globalize_decl for weak commons.
19340 (weak_decls): Make a tree_list.
19341 (declare_weak): Cons weak_decls directly.
19342 (globalize_decl): Remove weak_decls elements directly.
19343 (weak_finish): Simplify weak_decls walk. Don't weaken unused
19344 symbols. Don't pretend to handle aliases.
19345 (init_varasm_once): Update weak_decls registry.
19346 * Makefile.in: Update dependencies.
19347
98d2b17e
RH
193482002-03-14 Richard Henderson <rth@redhat.com>
19349
19350 PR target/5312
19351 * config/ia64/ia64.c: Include tm_p.h last.
19352 (gen_nop_type): Remove duplicate definition.
19353 (cycle_end_fill_slots): Set sched_data for second L slot.
19354 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
19355 (nop_cycles_until): Fix typos.
19356
f2f4927e
JJ
193572002-03-15 Jakub Jelinek <jakub@redhat.com>
19358
19359 PR optimization/5891
19360 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
19361
5025a549
DM
193622002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
19363
19364 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
19365 descriptors correctly.
19366
03e9dbc9
MM
193672002-03-14 Michael Meissner <meissner@redhat.com>
19368
19369 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
19370 100, allowing MAX_UNROLLED_INSNS to be overridden.
19371
19372 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
19373 --param.
19374
19375 * unroll.c (params.h): Include.
19376 (MAX_UNROLLED_INSNS): Delete, now in params.h.
19377
19378 * doc/invoke.texi (--param max-unroll-insns): Document.
19379
19380 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
19381
12249385
RE
193822002-03-14 Richard Earnshaw <rearnsha@arm.com>
19383
19384 * arm.md: Fix warnings about constraints in peepholes and splits.
19385
f0cce04a
ZW
193862002-03-14 Zack Weinberg <zack@codesourcery.com>
19387
19388 * cpphash.h (struct lexer_state): Remove line_extension member.
19389 * cpplib.c (dequote_string, do_linemarker): New functions.
19390 (linemarker_dir): New data object.
19391 (DIRECTIVE_TABLE): No longer need to interpret #line in
19392 preprocessed source. Delete obsolete comment about return
19393 values of handlers.
19394 (end_directive, directive_diagnostics, _cpp_handle_directive):
19395 Don't muck with line_extension.
19396 (directive_diagnostics): No need to issue warnings for
19397 linemarkers here.
19398 (_cpp_handle_directive): Issue warnings for linemarkers here,
19399 when appropriate. Dispatch linemarkers to do_linemarker, not
19400 do_line.
19401 (do_line): Code to handle linemarkers split out to do_linemarker.
19402 Convert escape sequences in filename argument, both places.
19403
19404 * cppmacro.c (quote_string): Rename cpp_quote_string and
19405 export. All callers changed.
19406 * cpplib.h (cpp_quote_string): Prototype.
19407 * cppmain.c (print_line): Call cpp_quote_string on to_file
19408 before printing it.
19409
19410 * doc/cpp.texi: Document that escapes are now interpreted in
19411 #line and in linemarkers, and that non-printing characters are
19412 converted to octal escapes when linemarkers are generated.
19413
19414Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
83a49407
JH
19415
19416 * emit-rtl.c (try_split): Use delete_insns.
19417 * recog.c (split_all_insns): Fix terminating condition.
19418
c882c7ac
RE
194192002-03-14 Richard Earnshaw <rearnsha@arm.com>
19420 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
19421
19422 PR target/5828
19423 * arm.c (arm_output_epilogue): Fix floating-point register save
19424 adjustment when using a frame pointer.
19425
3f26edaa
RS
194262002-03-14 Richard Sandiford <rsandifo@redhat.com>
19427
19428 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
19429 * config/mips/mips.c (compute_frame_size): Retrofit them here.
19430 (save_restore_insns, mips_expand_epilogue): And here.
19431 (build_mips16_call_stub): And here.
19432 (mips_function_value): Use the new macros to decide whether a single
19433 or complex float can be returned in floating-point registers. Return
19434 a parallel rtx in the complex case.
19435
1e3881c2
JH
19436Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
19437
19438 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
19439 call after liveness analysis.
19440
19441 * recog.c (split_insn): Use delete_insn_and_edges.
19442
19443 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
19444 instructions to have branch prediction notes.
19445 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
19446
200ef634
GK
194472002-03-14 Geoffrey Keating <geoffk@redhat.com>
19448
19449 * configure.in: Don't pass -Wno-long-long to a ADA compiler
19450 that doesn't support it.
19451 * configure: Regenerate.
19452
0b82d204
JJ
194532002-03-13 Jakub Jelinek <jakub@redhat.com>
19454
19455 PR target/5626
19456 * config/sparc/sparc.md (normal_branch, inverted_branch,
19457 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
19458 inverted_fp_branch): Adjust calls to output_cbranch.
19459 Set length attribute.
19460 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
19461 output_v9branch. Set length attribute.
19462 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
19463 predicates.
19464 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
19465 (output_cbranch): Likewise. Handle far branches.
19466 (output_v9branch): Handle far branches.
19467 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
19468 Adjust prototypes.
19469 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
19470 noov_compare64_op predicates.
19471
7a8de19b
JM
194722002-03-13 Jason Merrill <jason@redhat.com>
19473
19474 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
19475 into the function and constify it.
19476 * gthr-dce.h, gthr-solaris.h: Likewise.
19477
2a55fd42
DE
194782002-03-13 David Edelsohn <edelsohn@gnu.org>
19479
19480 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
19481 * config/rs6000/rs6000.c (rs6000_va_arg): Use
19482 std_expand_builtin_va_arg if not ABI_V4.
19483
19c5b1cf
JM
194842002-03-13 Jason Merrill <jason@redhat.com>
19485
19486 * varasm.c (globalize_decl): New fn.
19487 (assemble_start_function): Use it.
19488 (asm_emit_uninitialized): Use it.
19489 (assemble_alias): Use it.
19490 (assemble_variable): Use it.
19491
2a15f5e1
HPN
194922002-03-13 Hans-Peter Nilsson <hp@axis.com>
19493
19494 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
f0cce04a 19495 2002-03-12 internal visibility change.
2a15f5e1
HPN
19496 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
19497 visibility into SYMBOL_REF_FLAG.
19498
c0a3eeac
UW
194992002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
19500
19501 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
19502 VOIDmode operand. Add compile-time optimization for constant results.
19503
a1652cee
JM
195042002-03-12 Jason Merrill <jason@redhat.com>
19505
19506 * c-typeck.c (convert_for_assignment): Don't allow conversions
19507 between pointers and references. Only allow lvalues to convert to
19508 reference.
19509
c52a375d
HP
195102002-03-13 Hartmut Penner <hpenner@de.ibm.com>
19511
f0cce04a
ZW
19512 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
19513 before prologue, to avoid scheduling problems.
c52a375d 19514
e387e99b
JJ
195152002-03-13 Jakub Jelinek <jakub@redhat.com>
19516
19517 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
19518 (ELIMINABLE_REGS): Add sfp->sp.
19519 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
19520
195212002-03-13 Jakub Jelinek <jakub@redhat.com>
09948ece
JJ
19522
19523 PR optimization/5892
19524 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
19525
4061c1a3
JJ
195262002-03-13 Jakub Jelinek <jakub@redhat.com>
19527
19528 * loop.c (basic_induction_var): Don't call convert_modes if mode
19529 classes are different.
19530
5b43fed1
RH
195312002-03-12 Richard Henderson <rth@redhat.com>
19532
9f53e965
RH
19533 PR optimization/5901
19534 * function.c (reposition_prologue_and_epilogue_notes): Position
19535 the markers after/before the last/first insn not deleted.
19536
195372002-03-12 Richard Henderson <rth@redhat.com>
19538
19539 PR optimization/5878
5b43fed1
RH
19540 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
19541 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
19542 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
19543
19544 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
19545 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
19546 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
19547
19548 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
19549 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
19550 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
19551 also. Don't set it if not flag_pic.
19552 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
19553 to be INVALID_REGNUM when not used.
19554
4e9bb42b
AH
195552002-03-13 Aldy Hernandez <aldyh@redhat.com>
19556
5b43fed1
RH
19557 * expmed.c (store_bit_field): Reset alias set for memory.
19558 (extract_bit_field): Same.
4e9bb42b 19559
2f9834e8
KG
195602002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19561
19562 * c-common.c (c_tree_code_type, c_tree_code_length,
19563 c_tree_code_name, add_c_tree_codes): Delete.
19564 * c-common.h (add_c_tree_codes): Delete.
19565 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
19566 Define.
19567 * c-objc-common.c (c_objc_common_init): Don't call
19568 add_c_tree_codes, instead set lang_unsafe_for_reeval.
19569 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
19570 objc_tree_code_name, add_objc_tree_codes): Delete.
19571 (objc_init): Don't call add_objc_tree_codes.
19572 * objc/objc-lang.c (tree_code_type, tree_code_length,
19573 tree_code_name): Define.
19574 * toplev.c (lang_independent_init): Don't set
19575 tree_code_length[IDENTIFIER_NODE].
19576 * tree.c (tree_code_type, tree_code_length, tree_code_name):
19577 Delete definitions, moved to language front-ends.
19578 * tree.def (IDENTIFIER_NODE): Hardwire the length.
19579 * tree.h (tree_code_type, tree_code_length, tree_code_name):
19580 Const-ify.
19581 (tree_code_length): Change type to unsigned char.
19582
36ad2436
RH
195832002-03-12 Richard Henderson <rth@redhat.com>
19584
19585 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
19586 internal visibility change.
19587
0ae02efa
BW
195882002-03-12 Bob Wilson <bob.wilson@acm.org>
19589
19590 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
19591 validize_mem() instead of change_address to avoid clobbering
19592 memory attributes.
19593
35bb2bee
NB
195942002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
19595
19596 * c-lex.h (position_after_whitespace): Remove.
19597
62ae2529
JJ
195982002-03-12 Jakub Jelinek <jakub@redhat.com>
19599
19600 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
19601 (lex_string): Use unsigned char pointers.
19602
6a45951f
UW
196032002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
19604
19605 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
19606 is not a valid memory_operand.
19607
e2fb85da
BW
196082002-03-12 Bob Wilson <bob.wilson@acm.org>
19609
19610 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
19611 * config/xtensa/lib1funcs.asm: Fix copyright to include
19612 special case for libgcc files.
19613 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
19614 (__divsi3): Likewise.
19615 (__umodsi3): Likewise.
19616 (__modsi3): Likewise.
19617 * config/xtensa/lib2funcs.S: Fix copyright to include
19618 special case for libgcc files.
19619
5b8619f8
TR
196202002-03-12 Tom Rix <trix@redhat.com>
19621
19622 * collect2.c (resolve_lib_name): Move outside of
f0cce04a 19623 OBJECT_FORMAT_COFF ifdef.
5b8619f8
TR
19624 (ignore_library): Same.
19625
089c8f97
BW
196262002-03-12 Bob Wilson <bob.wilson@acm.org>
19627
19628 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
19629
958c70ff
BW
196302002-03-12 Bob Wilson <bob.wilson@acm.org>
19631
19632 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
19633 to function_section before writing out the constant pool.
19634
a65c591c
DE
196352002-03-12 David Edelsohn <edelsohn@gnu.org>
19636
19637 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
19638 zero_constant.
19639 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
19640
196412002-03-12 Alan Modra <amodra@bigpond.net.au>
19642
19643 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
19644 (adddi3): Likewise.
19645 (movdf): Likewise.
19646 (movdi): Likewise.
19647 (cmpsi splitter): Likewise.
19648 (modsi3): Fail if <= 0.
19649 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
19650 redundant test when HOST_BITS_PER_WIDE_INT != 32.
19651 (reg_or_sub_cint64_operand): Likewise.
19652 (num_insns_constant_wide): Optimize sign extension.
19653 (rs6000_legitimize_address): Likewise.
19654
17720332
AM
196552002-03-12 Andrew MacLeod <amacleod@redhat.com>
19656
19657 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
19658 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
19659
cd49f073
AM
196602002-03-12 Andrew MacLeod <amacleod@redhat.com>
19661
19662 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
19663 address calculation.
19664
6a4e49c1
UW
196652002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
19666
19667 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
19668 scratch register to DImode / TImode.
19669 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
19670 register used does not overlap the target.
19671
54b6670a
KG
196722002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19673
19674 * Makefile.in (debug.o): Depend on debug.h.
19675 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
19676 * debug.c (do_nothing_debug_hooks): Likewise.
19677 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
19678 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
19679 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
19680 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
19681 * dwarfout.c (dwarf_debug_hooks): Likewise.
19682 * integrate.c (output_inline_function): Likewise.
19683 * objc/objc-act.c (synth_module_prologue): Likewise.
19684 * sdbout.c (sdb_debug_hooks): Likewise.
19685 * toplev.c (debug_hooks): Likewise.
19686 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19687
2465bf76
KG
196882002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19689
19690 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
19691 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
19692 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
19693 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
19694 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
19695 * defaults.h (POINTER_SIZE): Define.
19696 * doc/tm.texi (POINTER_SIZE): Document default.
19697
53f3e9ca
KG
196982002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19699
19700 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
19701
44d3eb5b
RH
197022002-03-11 Richard Henderson <rth@redhat.com>
19703
19704 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
19705 if rebuild_label_notes_after_reload.
19706
4a085d2e
HPN
197072002-03-12 Hans-Peter Nilsson <hp@axis.com>
19708
19709 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
19710 emit pic register load if "internal" visibility.
19711 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
19712 (cris_expand_builtin_va_arg): Do all computations on trees.
19713
bc204393
RH
197142002-03-11 Richard Henderson <rth@redhat.com>
19715
19716 * rtlanal.c: Include recog.h.
19717 (keep_with_call_p): Fix thinko.
19718 * Makefile.in (rtlanal.o): Update dependencies.
19719
6b8b9d7b
CM
197202002-03-11 Chris Meyer <cmeyer@gatan.com>
19721
19722 * genflags.c (gen_insn): Use IS_VSPACE.
19723 * genoutput.c (output_insn_data): Likewise.
19724 (process_template): Likewise.
19725
6c40858f
RH
197262002-03-11 Richard Henderson <rth@redhat.com>
19727
19728 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
19729
40adaa27
NB
197302002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
19731
19732 * Makefile.in: Update.
6c40858f 19733 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
40adaa27 19734 Update documentation.
6c40858f
RH
19735 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
19736 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
40adaa27 19737
049b03f4
ZW
197382002-03-11 Zack Weinberg <zack@codesourcery.com>
19739
19740 * Makefile.in: Give texi2pod its input file as a command line
19741 argument, not on stdin.
19742
61eece67
DN
197432002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
19744 Daniel Berlin <dan@dberlin.org>
19745
19746 C++ alias analysis improvement.
f0cce04a 19747 * alias.c (record_component_aliases): Record aliases for base
61eece67
DN
19748 classes too.
19749
a65c591c
DE
197502002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
19751
ff080aba
UW
19752 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
19753
1682dbb1
DR
197542002-03-11 Douglas B Rupp <rupp@gnat.com>
19755
fa2d765a
DR
19756 * toplev.c (vms_fopen): Remove, not needed.
19757
6f1fd286
DR
19758 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
19759
b230e057
DR
19760 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
19761
cb9a8e97
DR
19762 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
19763 for FP, already done later.
19764
1682dbb1
DR
19765 * toplev.c (debug_args): Add entry for VMS_DEBUG.
19766 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
19767
3fcaac1d
RS
197682002-03-11 Richard Sandiford <rsandifo@redhat.com>
19769
19770 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
19771 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
19772 LARGEST_EXPONENT_IS_NORMAL for the given mode.
19773 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
19774 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
19775 (ediv, emul, eldexp, esqrt): Likewise.
19776 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
19777 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
19778 (saturate): New function.
19779 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
19780 (make_nan): Use a saturation value instead of a NaN if
19781 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
19782 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
19783 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
19784 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
19785 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
19786 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
19787 !ROUND_TOWARDS_ZERO.
19788 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
19789 (ROUND_TOWARDS_ZERO): Document.
19790
d25558be
AJ
197912002-03-11 Andreas Jaeger <aj@suse.de>
19792
19793 * cfg.c (dump_flow_info): Remove unused variable.
19794
c71f9ae7
HPN
197952002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
19796
19797 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
19798 computations on trees.
19799
561c9153
RH
198002002-03-10 Richard Henderson <rth@redhat.com>
19801
932b4e3e 19802 PR 5693:
561c9153
RH
19803 * reload.c (copy_replacements_1): New.
19804 (copy_replacements): Use it to recurse through the rtx.
19805
26b738be
RH
198062002-03-10 Richard Henderson <rth@redhat.com>
19807
19808 * loop.c (strength_reduce): Compute number of iterations as
19809 unsigned HOST_WIDE_INT.
19810
8d8a083e
RH
198112002-03-10 Richard Henderson <rth@redhat.com>
19812
19813 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
19814 to move away from the end of the block.
19815
32810ba3
NB
198162002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
19817
19818 PR preprocessor/5899
19819 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
d25558be 19820
2b03d201
KG
198212002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19822
f90c544c
KG
19823 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
19824
2b03d201
KG
19825 * attribs.c (decl_attributes): Fix signed/unsigned warning.
19826
3ec1b4cb
HPN
198272002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
19828
19829 * config/mmix/mmix.c: Improve comments.
19830 (mmix_target_asm_function_prologue): Drop variable
19831 empty_stack_frame. Don't allocate unused slot above fp.
19832 (mmix_target_asm_function_epilogue): Mirror prologue changes.
19833 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
19834 brace in first column.
19835 (enum reg_class): Ditto.
19836 (FIRST_PARM_OFFSET): Now 0.
19837 (USER_LABEL_PREFIX): Remove #if 0:d definition.
19838
27e486c5
KG
198392002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19840
19841 * combine.c (make_extraction): Fix error in last change.
19842
0139adca
KG
198432002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19844
19845 * c4x.c (c4x_fp_reglist): Const-ify.
19846 * cris.c (cris_print_operand): Likewise.
19847 * i386.c (ix86_va_arg): Likewise.
19848 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
19849 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
19850 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
19851 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
19852 * mcore.h (regno_reg_class): Likewise.
19853 * mips.c (gen_int_relational): Likewise.
19854 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
19855 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
a4334c36 19856 * pdp11.c (move_costs): Likewise.
0139adca
KG
19857 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
19858 * s390.c (s390_branch_condition_mnemonic, regclass_map):
19859 Likewise.
19860 * s390.h (regclass_map): Likewise.
19861 * sh.c (shift_amounts): Likewise.
a4334c36 19862 * sh.md (rotlsi3): Likewise.
0139adca 19863
889b90a1
GK
198642002-03-09 Geoffrey Keating <geoffk@redhat.com>
19865
19866 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
19867 (ne0+5): Use new clobber to generate proper shift pattern.
19868 Patch by Michael Matz <matz@kde.org>.
19869
2877e0ae
AS
198702002-03-09 Andreas Schwab <schwab@suse.de>
19871
19872 * gcc.c (validate_all_switches): Also handle `%W{...}'.
19873
79b51cd7
GK
198742002-03-09 Geoffrey Keating <geoffk@redhat.com>
19875
19876 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
19877
e0f1be5c
JJ
198782002-03-09 Jakub Jelinek <jakub@redhat.com>
19879
19880 PR middle-end/5877
19881 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
19882 even for non-representable constants.
19883
0a7ec763
RK
19884Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19885
93fe8e92
RK
19886 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
19887 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
19888 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
19889 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
19890 (pop_function_context): Compute MAY_SHARE parameter for
19891 fixup_var_refs.
19892 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
19893 (gen_mem_addressof): Call fixup_var_refs with new parm.
19894
0a7ec763
RK
19895 * combine.c (make_extraction): Don't make extension of CONST_INT.
19896
a85cd407
AO
198972002-03-09 Alexandre Oliva <aoliva@redhat.com>
19898
9445b814
AO
19899 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
19900 in o32 and o64 ABIs.
19901 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
19902 but getting fixed-size structs passed in registers regardless of
19903 padding in o32 and o64 ABIs.
19904
a85cd407
AO
19905 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
19906 offset before loading address of argument passed by transparent
19907 reference.
19908
c51fbe40
JDA
199092002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
19910
19911 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
19912
918e70dd
AO
199132002-03-09 Alexandre Oliva <aoliva@redhat.com>
19914
19915 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
19916 marker such that registers after it are saved.
19917
3070dd00
KG
199182002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19919
19920 * sparc.c (arith_4096_operand): Fix error in last change.
19921
e25d11b0
AO
199222002-03-08 Alexandre Oliva <aoliva@redhat.com>
19923
19924 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
19925 defaults for MEABI.
19926
41daaf0e
AH
199272002-03-08 Aldy Hernandez <aldyh@redhat.com>
19928
5b43fed1
RH
19929 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
19930 vectors.
41daaf0e 19931
fa139b00
AH
199322002-03-08 Aldy Hernandez <aldyh@redhat.com>
19933
5b43fed1 19934 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
fa139b00 19935
c51d95ec
JH
19936Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
19937
19938 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
19939 removed; fix return value.
19940 * combine.c (combine_instructions): Dirtify blocks where we failed to
19941 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
19942 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
19943
3b25fbfe
KG
199442002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19945
19946 * gcse.c (insert_insn_end_bb): Fix typo in last change.
19947
189ae0f4
JH
19948Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
19949
19950 * recog.c (peephole2_optimize): Re-distribute EH edges.
19951
24965e7a
NB
199522002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
19953
19954 * expr.c (expand_expr): Use unsave lang hook.
19955 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
19956 (LANG_HOOKS_INITIALIZER): Update.
19957 * langhooks.h (struct lang_hooks): New hook unsave.
19958 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
19959 (unsave_expr_1): Remove unused lang_unsave_expr_now.
19960 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
19961 (unsave_expr_now): Remove.
19962 * tree.h (unsave_expr_now, lang_unsave,
19963 lang_unsave_expr_now): Remove.
19964 (lhd_unsave): New.
19965
1e4e95d6
AJ
199662002-03-08 Andreas Jaeger <aj@suse.de>
19967
19968 * flow.c (propagate_block_delete_insn): Remove unused variable.
19969
054ef905
KH
199702002-03-08 Kazu Hirata <kazu@hxi.com>
19971
19972 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
19973 insn length for memory load/store.
19974
5304400d 199752002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1e4e95d6 19976
5304400d
CR
19977 * doc/install.texi (--with-libiconv-prefix): Document.
19978
81034129
MB
199792002-03-08 Michael Y. Brukman <myb2@cornell.edu>
19980
19981 * doc/sourcebuild.texi: Fix typo.
19982
71db7d03
JJ
199832002-03-08 Jakub Jelinek <jakub@redhat.com>
19984
19985 PR c/3711
19986 * builtins.c (std_expand_builtin_va_arg): Do all computations on
19987 trees.
19988
127c1ba5
RK
19989Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19990
19991 * rtl.c (copy_most_rtx): Move from here ...
19992 * emit-rtl.c (copy_most_rtx): ... to here.
19993
8a13c092
AO
199942002-03-08 Alexandre Oliva <aoliva@redhat.com>
19995
5faae4f7
AO
19996 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
19997 SUBTARGET_CPP_SIZE_SPEC.
19998 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
19999
8a13c092
AO
20000 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
20001
4ec59de2
MH
200022002-03-07 Matt Hiller <hiller@redhat.com>
20003
20004 * gensupport.c (first_dir_md_include): Renamed from include;
20005 change all references.
20006 (last_dir_md_include): Renamed from last_include; change all
20007 references.
20008 (init_md_reader): Unconditionally initialize base_dir whether or
20009 not filename is a relative path.
20010
12f61e77
AO
200112002-03-07 Alexandre Oliva <aoliva@redhat.com>
20012
95356058
AO
20013 * config/fp-bit.c (_unord_f2): Compile it in even if
20014 US_SOFTWARE_GOFAST is enabled.
20015
12f61e77
AO
20016 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
20017 NULL_RTX. Set all HFmode operations as NULL_RTX.
20018 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
20019 NULL_RTX, try reversing the comparison and the operands.
20020
6d7a1c4c
UW
200212002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
20022
20023 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
20024 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
20025 and MATCH_OP_DUP.
20026
66d54344
JH
20027Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
20028
20029 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
20030
068473ec
JH
20031Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
20032
20033 * basic-block.h (fixup_abnormal_edges): Declare.
20034 * reload1.c (fixup_abnormal_edges): New function.
20035 * reg-stack.c (convert_regs): Use it.
20036
20037 * gcse.c (insert_insn_end_bb): Handle trapping insns.
20038
20039 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
20040
71925bc0
RS
200412002-03-07 Richard Sandiford <rsandifo@redhat.com>
20042
20043 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
20044 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
20045 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
20046 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
20047 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
20048 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
20049 unless x and y could be infinite.
20050 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
20051 Check that the common type of both arguments is a real, even for
20052 targets without unordered comparisons. Allow an integer argument
20053 to be compared against a real.
20054 (expand_tree_builtin): Use expand_unordered_cmp.
20055 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
20056 * cse.c (fold_rtx): Likewise. Fix indentation.
20057 * fold-const.c (fold_real_zero_addition_p): New.
20058 (fold): Use it, and the new HONOR_... macros.
20059 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
20060 * jump.c (reversed_comparison_code_parts): After searching for
20061 the true comparison mode, use HONOR_NANS to decide whether it
20062 can be safely reversed.
20063 (reverse_condition_maybe_unordered): Remove IEEE check.
20064 * simplify-rtx.c (simplify_binary_operation): Use the new macros
20065 to decide which simplifications are valid. Allow the following
20066 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
20067 and (a - -b) to (a + b).
20068 (simplify_relational_operation): Use HONOR_NANS.
20069 * doc/tm.texi: Document the MODE_HAS_... macros.
20070
145d3bf2
RE
200712002-03-07 Richard Earnshaw <rearnsha@arm.com>
20072
20073 * combine.c (simplify_comparison): If simplifying a logical shift
20074 right and compare with constant, force the comparison to unsigned.
20075
76a773f3
AH
200762002-03-07 Aldy Hernandez <aldyh@redhat.com>
20077
5b43fed1 20078 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
76a773f3 20079
5b43fed1
RH
20080 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
20081 -mabi=no-altivec
20082 (alt_reg_names): Remove % for vrsave.
76a773f3 20083
ab55f58c
RH
200842002-03-06 Richard Henderson <rth@redhat.com>
20085
5ddec02e 20086 PR optimization/5844
ab55f58c
RH
20087 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
20088 if used indicates we've already emitted one copy of an operand.
20089 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
20090 (gen_split): Supply a non-null used.
20091
e16e3291
UW
200922002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
20093
5b43fed1 20094 * reload1.c (reload): Unshare all rtl after reload is done.
e16e3291 20095
1e4e95d6 20096 * simplify-rtx.c (simplify_plus_minus): Do not abort,
e16e3291
UW
20097 but simply fail if the expression is too complex to simplify.
20098 (simplify_gen_binary): Handle simplify_plus_minus failures.
20099
2ca6672b
JH
20100Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
20101
20102 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
20103 consistently call delete_trivially_dead_insns after CSE and GCSE;
20104 fix DFI_life dumping; do jump threading after liveness; do crossjumping
20105 after liveness2; update comment in last crossjumping.
20106 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
20107
31d0dd4f
JL
20108Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
20109
d094b0b3
JL
20110 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
20111 after completing fast dead code elimination.
20112
31d0dd4f
JL
20113 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
20114 COMPARE operator.
1e4e95d6 20115
f2b958b1
PE
201162002-03-06 Phil Edwards <pme@gcc.gnu.org>
20117
20118 * version.c: Fix misplaced leading blanks on first line.
20119
a2877a09
JH
20120Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
20121
20122 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
20123
fe477d8b
JH
20124Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
20125
20126 * cfgcleanup.c (mentions_nonequal_regs): New function.
20127 (thread_jump): Use it.
20128 * toplev.c (rest_of_compilation): Run jump threading after
20129 liveness.
20130
2041cde4
JJ
201312002-03-06 Jakub Jelinek <jakub@redhat.com>
20132
20133 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
20134 patch.
20135
82d68d46
JH
20136Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
20137
20138 * predict.c (estimate_bb_frequencies): Do not reload the
20139 frequencies from notes.
20140
3dec4024
JH
20141Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
20142
20143 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
20144 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
20145
20146 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
20147 delete_noop_moves): Return indeger.
20148 * flow.c (ndead): New variable.
20149 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
20150 BB argument; update callers.
20151 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
20152 (life_analysis): Do not call purge_all_dead_edges.
20153 (update_life_info): Return number of deleted insns; print statistics.
20154 (update_life_info_in_dirty_blocks): likewise.
20155 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
20156 return number of insns deleted.
20157
20158 * cse.c: Include timevar.h
20159 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
20160 iterate until stabilizes; print statistics; return number of killed
20161 insns.
20162 * Makefile.in: (cse.o): Add timevar.h dependency
20163 * rtl.h (delete_trivially_dead_insns): New.
20164 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
20165 * toplev.c (rest_of_compilation): Update callers.
20166
20167 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
20168 (try_optimize_cfg): Do not update liveness.
20169 (cleanup-cfg): Loop until try_optimize_cfg and dead code
20170 removal stabilizes; use delete_trivially_dead_insns.
20171
20172 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
20173
c7544dd8
ZW
201742002-03-05 Zack Weinberg <zack@codesourcery.com>
20175
20176 * cppmain.c (setup_callbacks): Disable #pragma and #ident
20177 callbacks when processing assembly language.
20178
50b424a9
JDA
201792002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
20180
20181 * pa.h (ASM_FILE_END): Define.
20182 * som.h (ASM_FILE_END): Delete.
20183
20184 * pa.c (function_arg): Don't pass floats in general registers in
20185 indirect calls if TARGET_ELF32.
20186
6185f217
RH
201872002-03-05 Richard Henderson <rth@redhat.com>
20188
20189 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
20190
3020a4b2
DS
201912002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
20192
20193 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
20194
65649daa
JJ
201952002-03-05 Jakub Jelinek <jakub@redhat.com>
20196
20197 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
20198 -r command line. Don't hide any symbols if not building
20199 shared libgcc.
20200
5a1a3e5e
JH
20201Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
20202
20203 * cfg.c (dump_flow_info): Warn about profile mismatches.
20204 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
20205 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
20206
170c56da
JJ
202072002-03-05 Jakub Jelinek <jakub@redhat.com>
20208
20209 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
20210 wide volatile memory by parts.
20211
6d051694
JJ
202122002-03-05 Jakub Jelinek <jakub@redhat.com>
20213
20214 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
20215 is NULL.
20216
28bcfd4d
RH
202172002-03-05 Richard Henderson <rth@redhat.com>
20218
5b43fed1 20219 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
28bcfd4d 20220
75227a33
GK
202212002-03-04 Geoffrey Keating <geoffk@redhat.com>
20222
20223 * toplev.c (documented_lang_options): Document more
20224 language-specific options.
20225 * doc/invoke.texi (Warning Options): Correct documentation for
20226 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
20227 * c-decl.c (c_decode_option): Use a table to handle warning options.
20228
4f1aac42
HPN
202292002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
20230
20231 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
20232 parameter to mmix_encode_section_info.
20233 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
20234 relocatably. Always produce ELF, not mmo if linking relocatably.
20235 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
20236 first is non-zero, don't add symbol prefix.
20237 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
20238 prototype accordingly.
20239
12345543
KW
202402002-03-04 Krister Walfridsson <cato@df.lth.se>
20241
20242 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
20243
8e97db8f
JM
202442002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
20245
20246 * configure.in: Increase required makeinfo version to 4.1.
20247 * configure: Regenerate.
20248
06487868
GK
202492002-03-04 Geoffrey Keating <geoffk@redhat.com>
20250
20251 * .cvsignore: Remove *.info* and genrtl*; these files are generated
20252 elsewhere now.
20253
cff42170
JM
202542002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
20255
20256 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
20257 * doc/invoke.texi: Fix @math uses.
20258
974a7f56
JH
20259Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
20260
20261 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
20262 removal
20263
3b7d0e98
AH
202642002-03-03 Aldy Hernandez <aldyh@redhat.com>
20265
5b43fed1
RH
20266 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
20267 (powerpc-*-eabisimaltivec*): Same.
3b7d0e98 20268
5b43fed1 20269 * config/rs6000/t-ppcendian: New.
3b7d0e98 20270
65f2f288
HB
202712002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20272
20273 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
20274 nonimmediate_src_operand and nonimmediate_lsrc_operand to
20275 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
20276
8ce0a8a5
RH
202772002-03-03 Richard Henderson <rth@redhat.com>
20278
20279 * toplev.c (rest_of_decl_compilation): Revert last two changes.
20280
ba31d94e
ZW
202812002-03-03 Zack Weinberg <zack@codesourcery.com>
20282
20283 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
20284 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
20285 tree.c, config/m68k/m68k.c:
20286 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
20287 REAL_ARITHMETIC blocks unconditional. Delete some further
20288 #ifdef blocks predicated on REAL_ARITHMETIC.
20289 * flags.h, toplev.c: Delete remaining references to
20290 flag_pretend_float.
20291
20292 * doc/invoke.texi: Remove documentation of -fpretend-float.
20293 * doc/tm.texi: Describe the various REAL_* macros as provided by
20294 real.h, not by the target configuration files.
20295
20296 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
20297 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
20298 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
20299 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
20300 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
20301 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
20302 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
20303 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
20304 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
20305 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
20306 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
20307 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
20308 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
20309 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
20310 config/xtensa/xtensa.h:
20311 Do not define, undefine, or mention in comments any of
20312 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
20313 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
20314 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
20315 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
20316 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
20317 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
20318 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
20319 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
20320 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
20321
9a571cfd
KG
203222002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20323
e81dd381
KG
20324 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
20325 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
20326 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
20327 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
20328 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
20329 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
20330 Delete.
20331 * defaults.h (BITS_PER_WORD): Define.
ba31d94e 20332 * doc/tm.texi (BITS_PER_WORD): Document default value.
e81dd381 20333
9a571cfd
KG
20334 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
20335 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
20336 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
20337
ca7558fc
KG
203382002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20339
20340 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
20341 lieu of explicit sizeof/sizeof.
20342 * i386.c (override_options, ix86_init_mmx_sse_builtins,
20343 ix86_expand_builtin): Likewise.
20344 * mips.c (mips_add_gc_roots): Likewise.
20345 * mmix.c (mmix_output_condition): Likewise.
20346 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
20347 altivec_init_builtins): Likewise.
20348 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
20349 * cppexp.c (Nsuff, parse_number): Likewise.
20350 * cppinit.c (builtin_array_end): Likewise.
20351 * gcc.c (n_default_compilers, process_command): Likewise.
20352 * genpreds.c (output_predicate_decls): Likewise.
20353 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
20354 * lcm.c (N_ENTITIES): Likewise.
20355 * stor-layout.c (set_sizetype): Likewise.
ba31d94e 20356
41c78c88
RH
203572002-03-03 Richard Henderson <rth@redhat.com>
20358
20359 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
20360 for types or labels.
20361
9e9b71e6
RH
203622002-03-03 Richard Henderson <rth@redhat.com>
20363
20364 * c-decl.c (start_decl): Initialized variables are not common.
20365
c26a6db8
PB
203662002-03-02 Per Bothner <per@bothner.com>
20367
20368 * gcc.c (option_map): Suport new --bootclasspath option.
20369 --CLASSPATH is now just an alias for --classpath.
20370
9e8aab55
RH
203712002-03-02 Richard Henderson <rth@redhat.com>
20372
20373 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
20374 load if "internal" visibility.
20375 * doc/extend.texi: Document visibility meanings.
20376
b3bbd220
RH
203772002-03-02 Richard Henderson <rth@redhat.com>
20378
20379 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
20380 to functions as well.
20381
b14707c3
RH
203822002-03-02 Richard Henderson <rth@redhat.com>
20383
20384 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
20385 (handle_visibility_attribute): Don't call assemble_visibility.
20386 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
20387 without asmspec. Invoke assemble_alias when needed.
20388 * varasm.c (maybe_assemble_visibility): New.
20389 (assemble_start_function, assemble_variable, assemble_alias): Use it.
20390
b2003250
RH
203912002-03-02 Richard Henderson <rth@redhat.com>
20392
20393 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
20394 invoke ENCODE_SECTION_INFO with first call flag.
20395
20396 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
20397 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
ba31d94e 20398 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
b2003250
RH
20399 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
20400 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
20401 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
20402 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
20403 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
20404 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
20405 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
20406 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
20407 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
ba31d94e
ZW
20408 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
20409 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
b2003250
RH
20410 config/mcore/mcore-protos.h, config/mcore/mcore.c,
20411 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
20412 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
ba31d94e 20413 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
b2003250
RH
20414 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
20415 config/sh/sh.h, config/sparc/sparc.h,
20416 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
20417 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
20418 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
20419 FIRST argument. As needed, examine it and do nothing.
20420
ba31d94e 20421 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
b2003250
RH
20422 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
20423 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
20424
20425 * config/arm/t-pe (pe.o): Add dependencies.
20426
5c60f03d
KG
204272002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20428
20429 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
20430 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
20431 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
20432 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
20433 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
20434 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
20435 * defaults.h (BITS_PER_UNIT): Define.
20436 * doc/tm.texi (BITS_PER_UNIT): Document default value.
20437
86855e8c
KH
204382002-03-02 Kazu Hirata <kazu@hxi.com>
20439
20440 * config/h8300/h8300-protos.h: Add a prototype for
20441 compute_a_shift_length.
20442 * config/h8300/h8300.c (h8300_asm_insn_count): New.
20443 (compute_a_shift_length): Likewise.
20444 (h8300_adjust_insn_length): Do not adjust insn length of shift
20445 insns.
20446 * config/h8300/h8300.md (anonymous shift patterns): Use
20447 compute_a_shift_length.
20448
f6041ed8
RK
20449Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20450
35aa3c1c
RK
20451 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
20452 trunc_int_for_mode.
20453
f6041ed8
RK
20454 * emit-rtl.c (offset_address): Call update_temp_slot_address.
20455
27b41650
KG
204562002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20457
20458 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
20459 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
20460 * flags.h (flag_zero_initialized_in_bss): Declare.
20461 * toplev.c (flag_zero_initialized_in_bss): New flag.
20462 (lang_independent_options): Add flag_zero_initialized_in_bss.
20463 * tree.c (initializer_zerop): New function.
20464 * tree.h (initializer_zerop): Declare.
20465 * varasm.c (assemble_variable): If we can emit bss, put zero
20466 initializers in the bss section.
20467
ca734b39
AM
204682002-03-02 Alan Modra <amodra@bigpond.net.au>
20469
20470 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
20471 like more than one symbol per .weak directive.
20472
49b72306
RH
204732002-03-01 Richard Henderson <rth@redhat.com>
20474
20475 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
20476 adjust argument_pointer by pretend_args_size.
20477 (ia64_va_start): Adjust va_start address by -pretend_args_size.
20478
fbf0fe41
KH
204792002-03-01 Kazu Hirata <kazu@hxi.com>
20480
20481 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
20482
0010687d
JH
20483Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
20484
20485 * toplev.c (rest_of_compilation): Delete dead jumptables before
20486 loop.
20487 * flow.c (delete_dead_jumptables): Make global.
20488 * rtl.h (delete_dead_jumptables): Declare.
20489
9429c84c
DE
204902002-03-01 David Edelsohn <edelsohn@gnu.org>
20491
20492 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
20493 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
0c2fdcdf 20494 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9429c84c 20495
f0b6f9a6
KH
204962002-03-01 Kazu Hirata <kazu@hxi.com>
20497
20498 * config/h8300/h8300-protos.h: Fix formatting.
20499 * config/h8300/h8300.c: Likewise.
20500 * config/h8300/h8300.h: Likewise.
20501
bc8db8a1
KH
205022002-03-01 Kazu Hirata <kazu@hxi.com>
20503
20504 * config/h8300/h8300.c (print_operand): Support 16-bit
20505 constant addresses.
20506 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
20507
32b069d3
RH
205082002-02-28 Richard Henderson <rth@redhat.com>
20509
20510 * expmed.c (store_bit_field): Prevent generation of CONCATs;
20511 pun complex values as integers; use gen_lowpart instead of
20512 gen_rtx_SUBREG.
20513 (extract_bit_field): Likewise.
20514
79c4e63f
AM
205152002-03-01 Alan Modra <amodra@bigpond.net.au>
20516 David Edelsohn <edelsohn@gnu.org>
20517
20518 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
20519 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
20520 (SUPPORTS_WEAK): Likewise.
20521 * output.h (add_weak): Add tree param.
20522 * varasm.c (add_weak): Likewise. Save decl.
20523 (struct weak_syms): Add decl field.
20524 (mark_weak_decls): New function.
20525 (init_varasm_once): ggc_add_root mark_weak_decls.
20526 (assemble_start_function): Use ASM_WEAKEN_DECL.
20527 (assemble_variable): Likewise.
20528 (assemble_alias): Likewise.
20529 (declare_weak): Pass decl to add_weak.
20530 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
20531 (remove_from_pending_weak_list): Declare and define for
20532 ASM_WEAKEN_DECL.
20533 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
20534 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
20535 * defaults.h (SUPPORTS_WEAK): Likewise.
20536 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
20537 .weak for code sym. Do emit .size for descriptor sym.
20538 (ASM_DECLARE_FUNCTION_SIZE): Define.
20539 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
20540 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
20541 .lglobl unless TARGET_XCOFF. Formatting fixes.
20542 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
20543 .weak for code sym.
20544 (HANDLE_PRAGMA_WEAK): Remove.
20545 (ASM_WEAKEN_LABEL): Remove.
20546 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
20547
6f30f1f1
JM
205482002-03-01 Jason Merrill <jason@redhat.com>
20549
20550 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
20551 (TARGET_EXPR_CLEANUP): New macro.
20552
7879b81e
SE
205532002-02-28 Steve Ellcey <sje@cup.hp.com>
20554
20555 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
20556 to take ptr_extend into account as third type of extension.
20557 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
20558 fields used by SUBREG_PROMOTED_UNSIGNED_P.
20559 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
20560 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
20561 * calls.c (precompute_arguments): Use new macro.
20562 (expand_call): Ditto.
20563 * combine.c (nonzero_bits): Ditto.
20564 (record_promoted_value): Ditto.
20565 * expr.c (store_expr): Ditto.
20566 (expand_expr): Ditto.
20567 * function.c (assign_parms): Ditto.
20568
42d579d8
AO
205692002-02-28 Alexandre Oliva <aoliva@redhat.com>
20570
20571 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
20572 override -shared and -shared-libgcc.
20573
e0054185
DB
205742002-02-28 David O'Brien <obrien@FreeBSD.org>
20575
20576 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
20577 of "ultrasparc".
20578 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
20579 to be broken.
20580
abda4f1c
RH
205812002-02-28 Richard Henderson <rth@redhat.com>
20582
20583 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
20584 4 cycle latency from MM producers.
20585 (ia64_internal_sched_reorder): Likewise with pipeline flush.
20586
c0f08649
JJ
205872002-02-28 Jakub Jelinek <jakub@redhat.com>
20588
20589 * mklibgcc.in: Don't use GNU make extension.
20590
f79f2651
NB
205912002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
20592
20593 * c-parse.in (STATIC): New terminal.
20594 (scspec): New non-terminal. Update productions accordingly.
20595 (program): Remove bogus ifc / end ifc.
20596 (array_declarator): Simplify production using STATIC.
20597
001e3fee
JM
205982002-02-28 Jim Meyering <meyering@lucent.com>
20599
20600 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
20601 \a still means TARGET_BELL.
20602
89076bb3
RH
206032002-02-28 Richard Henderson <rth@redhat.com>
20604
20605 * haifa-sched.c (sched_emit_insn): New.
20606 (schedule_block): Use last_scheduled_insn to track last insn.
20607 * sched-int.h (sched_emit_insn): Prototype.
20608 * config/ia64/ia64.c (last_issued): Remove.
20609 (ia64_variable_issue): Don't set it.
20610 (nop_cycles_until): Use sched_emit_insn.
20611
e3aaacf4
AM
206122002-02-28 Andrew MacLeod <amacleod@redhat.com>
20613
20614 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
20615 extended constants.
20616
7f473594
KH
206172002-02-28 Kazu Hirata <kazu@hxi.com>
20618
20619 * config/h8300/h8300.c: Fix formatting.
20620 * config/h8300/h8300.h: Likewise.
20621
b96c434c
MM
206222002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
20623
20624 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
20625 which may overwrite the high byte of the frame pointer.
20626
9b420a6a
BT
206272002-02-28 Bo Thorsen <bo@suse.de>
20628
20629 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
20630 (STARTFILE_SPEC): Add 64 bit files.
20631 (ENDFILE_SPEC): Likewise.
20632
6f30f1f1 206332002-02-28 Jason Merrill <jason@redhat.com>
46cfb101
JM
20634
20635 * c-decl.c (finish_function): Only warn about missing return
20636 statement with -Wreturn-type.
20637
70da1d03
JH
20638Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
20639
20640 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
20641
20642 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
20643 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
20644
38c1593d
JH
20645Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
20646
20647 * basic-block.h (BB_REACHABLE): Renumber.
20648 (BB_DIRTY, BB_NEW): New flags.
20649 (clear_bb_flags): Declare.
20650 (update_life_info_in_dirty_blocks): Declare.
20651 * cfg.c (clear_bb_flags): New function.
20652 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
20653 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
20654 reorder_insns, emit_insn_after): Mark block as dirty.
20655 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
20656 (update_life_info_in_dirty_blocks): New function.
20657 * recog.c (apply_change_group): Dirtify block.
20658
20659 * cse.c (cse_insn): Reorder emitting of jump insn to keep
20660 cfg consistent.
20661 * gcse.c (delete_null_pointer_checks): Likewise.
20662
20663 * toplev.c (dump_file_index): Move cse2 after bp,
20664 add DFI_null
20665 (dump_file_info): Similary.
20666 (rest_of_compilation): Avoid most of CFG rebuilds;
20667 do first if converision after null pointer checks, do cse2
20668 after branch prediction; avoid full liveness rebuild after
20669 initializing subregs.
20670 * invoke.texi (-d options): Document -du, renumber.
20671
20672 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
20673 (notice_new_block): Do not set BB_UPDATE_LIFE.
20674 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
20675 merge_blocks_move_successor_nojumps, merge_blocks,
20676 try_crossjump_to_edge): Likewise.
20677 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
20678 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
20679 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
20680 (merge_of_block): Do not use life_data_ok.
20681 (find_if_case_1): Do not use SET_UPDATE_LIFE.
20682 (if_convert): Use BB_DIRTY mechanizm to update life.
20683 * lcm.c (optimize_mode_switching): Update
20684 update_life_info_in_dirty_blocks
20685
63e1b1c4
NB
206862002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
20687
20688 * Makefile.in (integrate.o): Update.
20689 * c-decl.c (copy_lang_decl): Rename.
20690 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
20691 * integrate.c: Include langhooks.h.
20692 (copy_decl_for_inlining): Update to use langhook.
20693 * langhooks-def.h (lhd_do_nothing_t,
20694 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
20695 (LANG_HOOKS_INITIALIZER): Update.
20696 * langhooks.c (lhd_do_nothing_t): New.
20697 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
20698 * tree.h (copy_lang_decl): Remove.
20699objc:
20700 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
20701
f472fa29
AM
207022002-02-27 Andrew MacLeod <amacleod@redhat.com>
20703
ba31d94e 20704 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
f472fa29
AM
20705 POST_DEC, and POST_MODIFY.
20706
273cf2e4
ZW
207072002-02-27 Zack Weinberg <zack@codesourcery.com>
20708
20709 * c-typeck.c (digest_init): Remove unused parameter; all
20710 callers changed.
20711
4e07d762
GK
207122002-02-27 Geoffrey Keating <geoffk@redhat.com>
20713
20714 * expmed.c (expand_shift): Correctly test for low part of a
20715 subreg.
20716
6bc627b3
UW
207172002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20718
20719 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
20720 insn UIDs with insn addresses.
20721
f458d1d5
ZW
207222002-02-27 Zack Weinberg <zack@codesourcery.com>
20723
20724 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
20725 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
20726 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
20727 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
20728 gcc.c, toplev.c: Delete code implementing -traditional mode.
20729
20730 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
20731 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
20732 Document removal of -traditional mode for compilation, and
20733 remove documentation only relevant to that mode.
20734
20735 * config/nextstep.h, config/ptx4.h, config/svr4.h,
20736 config/convex/convex.h, config/d30v/d30v.h,
20737 config/i386/dgux.h, config/i386/osf1elf.h,
20738 config/i386/osfelf.h, config/i386/osfrose.h,
20739 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
20740 config/m68k/hp310.h, config/m88k/dgux.h,
20741 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
20742 config/m88k/m88k.h, config/m88k/openbsd.h,
20743 config/mips/abi64.h, config/mips/osfrose.h,
20744 config/mips/svr4-5.h, config/mips/svr4-t.h,
20745 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
20746 config/stormy16/stormy16.h: Remove all references to
20747 -traditional from target specs. Delete all mention of the
20748 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
20749 delete a couple of commented-out definitions of
20750 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
20751 to -traditional.
20752
20753 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
20754 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
20755
e0b3a8ff
ZW
207562002-02-27 Zack Weinberg <zack@codesourcery.com>
20757
20758 * mklibgcc.in: Don't use \n in a line subject to
20759 interpretation by echo.
20760
5c6a85b7
GS
207612002-02-27 Graham Stott <grahams@redhat.com>
20762
72b05af1
GS
20763 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
20764 Constify NAME.
20765
7d104885
GS
20766 * loop.c (prescan_loop): Handle PARALLEL.
20767
8ed805d2
GS
20768 * unroll.c (loop_iterations): Return 0 if the add_val for
20769 a BIV is REG.
20770
fd478a0a
GS
20771 * final.c (output_operand_lossage): Constify PFX_STR.
20772
5c6a85b7
GS
20773 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
20774
cd98ad03
JH
20775Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
20776
20777 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
20778 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
20779
639ae55b
JH
20780Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
20781
20782 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
20783
e808ec9c
NB
207842002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
20785
20786 * cpplex.c (_cpp_lex_token): Handle directives in macro
20787 arguments.
20788 * cpplib.c (_cpp_handle_directive): Save and restore state
20789 if parsing macro args when entering a directive.
20790 * cppmacro.c (collect_args): No need to handle directives
20791 in macro arguments.
20792 (enter_macro_context, replace_args): Use the original macro
20793 definition in case it was redefined whilst collecting arguments.
20794doc:
20795 * cpp.texi: Update.
20796
f585a356
DE
207972002-02-26 David Edelsohn <edelsohn@gnu.org>
20798
20799 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
20800 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
20801 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
20802 method on AIX.
20803 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
20804 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
20805 (load_toc_v4_PIC_2): Same.
20806
208072002-02-26 Alan Modra <amodra@bigpond.net.au>
20808
20809 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
20810
d699058e
RH
208112002-02-26 Richard Henderson <rth@redhat.com>
20812
20813 * config/alpha/alpha.md (ashldi_se): Re-enable.
20814
eadccfbb
RH
208152002-02-26 Richard Henderson <rth@redhat.com>
20816
20817 * config/alpha/alpha.c (alpha_encode_section_info): Examine
20818 MODULE_LOCAL_P; improve commentary.
20819
7080ada1
ZW
208202002-02-26 Zack Weinberg <zack@codesourcery.com>
20821
20822 * doc/cpp.texi: Clarify documentation of relationship between
20823 #line and #include.
20824
b42cff6b
KH
208252002-02-26 Kazu Hirata <kazu@hxi.com>
20826
20827 * config/h8300/h8300-protos.h: Update the prototype for
20828 compute_logical_op_length. Add the prototype for
20829 compute_logical_op_cc.
20830 * config/h8300/h8300.c (compute_logical_op_length): Figure out
20831 code from operands.
20832 (compute_logical_op_cc): New.
20833 * config/h8300/h8300.md: Combine all the logical op patterns
20834 in HImode and SImode. Use compute_logical_op_cc.
20835
831c4e87
KC
208362002-02-26 Kelley Cook <kelleycook@comcast.net>
20837
20838 * config/i386/i386.c (print_operand): Don't append ATT-style
20839 length suffixs to x87 opcodes when in Intel mode.
20840
ff88fe10
RS
208412002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
20842
20843 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
20844 (init_emit_once): Update calls.
20845 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
20846 (init_syntax_once): Prototype.
20847
d4108589
JDA
208482002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
20849
20850 * pa-linux.h (LIB_SPEC): Update definition.
20851 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
20852
e013f3c7
RH
208532002-02-26 Richard Henderson <rth@redhat.com>
20854
20855 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
20856 if we emitted a stop bit.
20857
9e944a16
JJ
208582002-02-26 Jakub Jelinek <jakub@redhat.com>
20859
20860 * configure.in (libgcc_visibility): Substitute.
20861 * configure: Rebuilt.
20862 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
20863 defined symbols .hidden.
20864
47bd70b5
JJ
208652002-02-26 Jakub Jelinek <jakub@redhat.com>
20866
20867 * attribs.c (c_common_attribute_table): Add visibility.
20868 (handle_visibility_attribute): New function.
20869 * varasm.c (assemble_visibility): New function.
20870 * output.h (assemble_visibility): Add prototype.
20871 * tree.h (MODULE_LOCAL_P): Define.
20872 * crtstuff.c (__dso_handle): Use visibility attribute.
20873 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
20874 for MODULE_LOCAL_P symbols too.
20875 * config/ia64/ia64.c (ia64_encode_section_info): Handle
20876 MODULE_LOCAL_P symbols the same way as local symbols.
20877 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
20878 into .sdata/.sbss by the user.
20879 * doc/extend.texi (Function Attributes): Document visibility
20880 attribute.
20881
6d73371a
JJ
208822002-02-26 Jakub Jelinek <jakub@redhat.com>
20883
20884 PR debug/5770
20885 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
20886 STRING_CST initializer spanning the whole variable without
20887 embedded zeros.
20888 If expand_expr returned MEM, don't use it.
20889
06e224f7
AO
208902002-02-26 Alexandre Oliva <aoliva@redhat.com>
20891
20892 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
20893 generate a die for the lexical block.
20894
40367e2d
KH
208952002-02-26 Kazu Hirata <kazu@hxi.com>
20896
20897 * config/h8300/h8300-protos.h: Add a prototype for
20898 compute_logical_op_length.
20899 * config/h8300/h8300.c (compute_logical_op_length): New.
20900 * config/h8300/h8300.md (anonymous logical patterns): Use
20901 compute_logical_op_length for length.
20902
0e98f924
AH
209032002-02-26 Aldy Hernandez <aldyh@redhat.com>
20904
831c4e87
KC
20905 * dwarf2out.c (modified_type_die): Do not call type_main_variant
20906 for vectors.
20907 (gen_type_die): Same.
0e98f924 20908
831c4e87 20909 * attribs.c (handle_vector_size_attribute): Set debug information.
0e98f924 20910
a50cfd52
DE
209112002-02-26 Daniel Egger <degger@fhm.edu>
20912
831c4e87
KC
20913 * config/rs6000/rs6000.md: Swap define_insn attributes to
20914 fix incorrect generation of merge high instructions instead
20915 of merge low.
a50cfd52 20916
b7997284
AH
209172002-02-26 Aldy Hernandez <aldyh@redhat.com>
20918
831c4e87
KC
20919 * c-typeck.c (really_start_incremental_init): Use
20920 bitsize_zero_node for vectors.
b7997284 20921
376aec5d
AH
209222002-02-26 Aldy Hernandez <aldyh@redhat.com>
20923
831c4e87
KC
20924 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
20925 ("*set_vrsave_internal"): Same.
376aec5d 20926
3b40e71b
RH
209272002-02-25 Richard Henderson <rth@redhat.com>
20928
20929 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
20930 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
20931
232b8f52
JJ
209322002-02-25 Jakub Jelinek <jakub@redhat.com>
20933
20934 PR target/5755
20935 * config/i386/i386.c (ix86_return_pops_args): Only pop
20936 fake structure return argument if it was passed on the stack.
20937
67282790
JM
209382002-02-25 Jason Merrill <jason@redhat.com>
20939
20940 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
20941 RESULT_DECL.
20942
5c181756
AO
209432002-02-25 Alexandre Oliva <aoliva@redhat.com>
20944
20945 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
20946 link with shared_name only.
20947 * doc/invoke.texi (Link Options): Document new behavior.
20948
6786d201
AH
209492002-02-25 Aldy Hernandez <aldyh@redhat.com>
20950
831c4e87 20951 * c-typeck.c (push_init_level): Handle vectors.
6786d201 20952
7d6040e8
AO
209532002-02-25 Alexandre Oliva <aoliva@redhat.com>
20954
20955 * config/sparc/sparc.c (const64_high_operand): Zero-extend
20956 operands of SPARC_SETHI_P.
20957 (input_operand): Likewise.
20958 (sparc_emit_set_const32): Likewise.
20959 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
20960 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
20961 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
20962 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
20963 (movdi_insn_sp64_vis): Likewise.
20964 (movdi split, movdf split): Use SETHI32.
20965 * doc/md.texi: Document SPARC constraints L, M and N.
20966
b188f760
AH
209672002-02-25 Aldy Hernandez <aldyh@redhat.com>
20968
831c4e87
KC
20969 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
20970 ("*set_vrsave_internal"): use mfspr for Darwin.
b188f760 20971
831c4e87
KC
20972 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
20973 gen_get_vrsave_internal.
b188f760 20974
8041889f
RK
20975Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20976
20977 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
20978
a47ed310
NB
209792002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
20980
20981 * cpplex.c (cpp_interpret_charconst): Get signedness or
20982 otherwise of wide character constants correct.
20983 * cppexp.c (lex): Get signedness of wide charconsts correct.
20984
cb8f73be
RK
20985Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20986
20987 * optabs.c (widen_operand): Only call convert_modes for
20988 promoted SUBREG if signedness matches.
20989 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
20990
2450e0b8
NB
209912002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
20992
20993 * cpplib.c (glue_header_name): Use local buffer to build up
20994 header name.
20995
70b6aaed
NB
209962002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
20997
20998 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
20999
6be580c7
KH
210002002-02-23 Kazu Hirata <kazu@hxi.com>
21001
21002 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
21003 H8/300[HS] separately.
21004 * config/h8300/h8300.md: Remove the early clobber constraint
21005 from bit field patterns.
21006
35dad9f1
KH
210072002-02-23 Kazu Hirata <kazu@hxi.com>
21008
21009 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
21010 register_operand.
21011 (mulhisi3): Likewise.
21012 (umulqisi3): Likewise.
21013 (umulhisi3): Likewise.
21014
ab8e2228
NB
210152002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
21016
21017 * cppinit.c (output_deps): Correct test for stdout output.
21018 (init_dependency_output): Cure warning.
21019
ac6f8a15
RK
21020Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21021
21022 * expr.c (store_expr): When converting expression to promoted
21023 equivalent type, allow using SUBREG_REG of TARGET as the target
21024 of the expansion of EXP.
21025 * loop.c (basic_induction_var, case SUBREG): Always look inside.
21026 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
21027 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
21028 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
21029 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
21030
f282ffb3
JM
210312002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
21032
21033 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
21034 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
21035 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
21036
44c5edc0
JJ
210372002-02-23 Jakub Jelinek <jakub@redhat.com>
21038
21039 PR optimization/5747
21040 * loop.c (scan_loop): Update reg info if move_movables created new
21041 pseudos.
21042
f98e43c0
DE
210432002-02-23 David Edelsohn <edelsohn@gnu.org>
21044
21045 * gcc.c (init_gcc_spec): Revert last change.
21046
e72247f4
DE
210472002-02-23 David Edelsohn <edelsohn@gnu.org>
21048
21049 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
21050 gpc_reg_operand constraint.
21051
210522002-02-23 Alan Modra <amodra@bigpond.net.au>
21053
21054 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
21055 Simplify comparison of `low'.
21056 (add_operand): Fix formatting.
21057 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
57deb3a1 21058 (mask_operand): Disallow mask to wrap in 64-bit mode.
e72247f4
DE
21059 (rs6000_stack_info): Remove redundant test setting push_p.
21060 (output_toc): Fix formatting.
21061 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
21062 cc_reg_not_cr0_operand constraint.
21063 (booldi3, boolcdi3 splitters): Same.
21064
a5c30531
AH
210652002-02-23 Aldy Hernandez <aldyh@redhat.com>
21066
831c4e87 21067 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
a5c30531 21068
43710f9f
DE
210692002-02-22 David Edelsohn <edelsohn@gnu.org>
21070
21071 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
21072 gcc invoked with -shared-libgcc.
21073
3256b817
JJ
210742002-02-22 Jakub Jelinek <jakub@redhat.com>
21075
21076 PR c++/5748
21077 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
21078 decl if any of elements was TREE_USED.
21079
9e0625a3
AO
210802002-02-22 Alexandre Oliva <aoliva@redhat.com>
21081
21082 * config/sparc/sol2.h: Don't include sys/mman.h.
21083 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
21084 (arith_4096_operand): Don't throw high bits away.
21085 (const64_operand): Take sign extension of CONST_INTs into account.
21086 (const64_high_operand, sparc_emit_set_const32): Likewise.
21087 (GEN_HIGHINT64): Likewise.
21088 (sparc_emit_set_const64_quick1): Likewise.
21089 (const64_is_2insns): Likewise.
21090 (print_operand): Use trunc_int_for_mode for sign extension.
21091 * config/sparc/sparc.h (SMALL_INT32): Likewise.
21092 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
21093 chars. Assume CONST_INT is already properly sign-extended.
21094 (movdi split): Sign-extend each SImode part.
21095 (andsi3 split): Don't mask high bits off, so that result
21096 remains properly sign-extend.
21097 (iorsi3 split): Likewise.
21098 (xorsi3 split): Likewise.
21099
54fec3d5
RS
211002002-02-22 Richard Sandiford <rsandifo@redhat.com>
21101
21102 * fold-const.c (fold): Fix typo in comments.
21103
667ada9b
DN
211042002-02-21 Diego Novillo <dnovillo@redhat.com>
21105
21106 * Makefile.in (langhooks.o): Update dependencies.
21107
29ac78d5
DN
211082002-02-21 Diego Novillo <dnovillo@redhat.com>
21109
21110 * langhooks.c: Include flags.h.
21111
6aa77e6c
AH
211122002-02-21 Aldy Hernandez <aldyh@redhat.com>
21113
21114 * testsuite/gcc.dg/attr-alwaysinline.c: New.
21115
21116 * c-common.c (c_common_post_options): Set inline trees by
21117 default.
21118
21119 * doc/extend.texi (Function Attributes): Document always_inline
21120 attribute.
21121 Update documentation about inlining when not optimizing.
21122
21123 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
21124
21125 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
21126 unless DECL_ALWAYS_INLINE.
21127
21128 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
21129 unless DECL_ALWAYS_INLINE.
21130 (c_disregard_inline_limits): Disregard if always_inline set.
21131
21132 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
21133 Disregard if always_inline set.
21134 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
21135 unless DECL_ALWAYS_INLINE.
21136
21137 * attribs.c (handle_always_inline_attribute): New.
21138 (c_common_attribute_table): Add always_inline.
21139
21140 * config/rs6000/altivec.h: Add prototypes for builtins
21141 requiring the always_inline attribute.
21142
c410d49e
EC
211432002-02-21 Eric Christopher <echristo@redhat.com>
21144
21145 * expmed.c (store_bit_field): Try to simplify the subreg
21146 before generating a new one when when the mode size of
21147 value is less than maxmode.
21148
e3c8ea67
RH
211492002-02-21 Richard Henderson <rth@redhat.com>
21150
21151 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
21152 than gen_rtx_PLUS to form the sum.
21153 * explow.c (force_reg): Rearrange to not allocate new pseudo
21154 when force_operand returns a register.
21155 * expr.c (expand_assignment): Allow offset_rtx expansion to
21156 return a sum. Do not force addresses into registers.
21157 (expand_expr): Likewise.
21158 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
21159 to canonicalize arithmetic that didn't simpify.
21160 (simplify_plus_minus): New argument force; update
21161 all callers. Don't split CONST unless we can do something with it,
21162 and wouldn't lose the constness of the operands.
21163
21164 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
21165 that we generated earlier.
21166
c1a046e5
TT
211672002-02-21 Tom Tromey <tromey@redhat.com>
21168
21169 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
21170 (output_line_info): Use constant `1', with a long explanatory
21171 comment.
21172 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
21173
31fbaad4
R
21174Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
21175
21176 * jump.c (redirect_jump): If old label has no UID, don't try to
21177 delete it.
21178
a7f52356
R
21179Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
21180
21181 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
21182 If input is constant, do shifts at compile time.
21183
924fcc4e
JM
211842002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
21185
21186 * doc/extend.texi: Fix some more overfull hboxes.
21187
e5a20888
JJ
211882002-02-21 Jakub Jelinek <jakub@redhat.com>
21189
21190 PR optimization/4994
21191 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
21192 register moves.
21193
211942002-02-21 Jakub Jelinek <jakub@redhat.com>
22273300
JJ
21195
21196 PR c++/4574
21197 * expr.h (expand_and): Add mode argument.
21198 * expmed.c (expand_and): Add mode argument.
21199 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
21200 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
21201 * except.c (expand_builtin_extract_return_addr): Likewise.
21202 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
21203 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
21204 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
21205 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
21206 * config/c4x/c4x.md: Use GEN_INT (x) instead of
21207 gen_rtx (CONST_INT, VOIDmode, x).
21208
7133e992
JJ
212092002-02-21 Jakub Jelinek <jakub@redhat.com>
21210
21211 PR c/4697:
21212 * stmt.c (warn_if_unused_value): Move side effects test once more.
21213
e2ec05a6
TG
212142002-02-20 Torbjorn Granlund <tege@swox.com>
21215
21216 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
831c4e87 21217 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
e2ec05a6 21218
9dd791c8
AO
21219Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
21220
21221 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
21222 SUBREG or ZERO_EXTEND.
21223
7ab56274
R
21224Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
21225
21226 * sh.h (current_function_anonymous_args): Remove.
21227 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
21228 of current_function_varargs and current_function_stdarg is set.
21229 * sh.c (sh_expand_prologue): Check current_function_varargs /
21230 current_function_stdarg / TARGET_SH5 instead of
21231 current_function_anonymous_args.
21232
21233 * sh64.h (TARGET_VERSION): Define.
21234
b1765bde
DE
212352002-02-20 David Edelsohn <edelsohn@gnu.org>
21236
21237 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
21238 VRSAVE_REGNO on TARGET_ALTIVEC.
21239
212402002-02-20 Alan Modra <amodra@bigpond.net.au>
21241
21242 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
21243 bits of SImode const_int.
21244 (includes_rshift_p): Likewise.
21245 (print_operand): Call mask_operand and mask64_operand with correct
c410d49e 21246 mode.
b1765bde
DE
21247 (rs6000_output_function_epilogue): Pad traceback table to word.
21248 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
21249 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
21250 mask64_operand with correct mode.
b1765bde
DE
21251 (FUNCTION_ARG_REGNO_P): Correct parentheses.
21252
149d6f9e
JJ
212532002-02-20 Jakub Jelinek <jakub@redhat.com>
21254
21255 PR debug/4461
21256 * varasm.c (get_pool_constant_mark): New.
21257 * rtl.h (get_pool_constant_mark): Add prototype.
21258 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
21259 be represented if it has not been output.
21260
4161da12
AO
212612002-02-20 Alexandre Oliva <aoliva@redhat.com>
21262
21263 * combine.c (do_SUBST): Sanity check substitutions of
21264 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
21265 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
21266 CONST_INT into its operand.
21267 (known_cond): Likewise, for ZERO_EXTEND.
21268 * simplify-rtx.c (simplify_unary_operation): Fix condition to
21269 allow for simplification of wide modes. Reject CONST_INTs in
21270 ZERO_EXTEND when their actual mode is not given.
21271
3704ef74
AO
212722002-02-20 Alexandre Oliva <aoliva@redhat.com>
21273
21274 * c-decl.c (pushdecl): If no global declaration is found for an
21275 extern declaration in block scope, try a limbo one.
21276
7552da58
JJ
212772002-02-20 Jakub Jelinek <jakub@redhat.com>
21278
21279 PR c++/4401
21280 * c-common.c (pointer_int_sum): Moved from...
21281 * c-typeck.c (pointer_int_sum): ...here.
21282 * c-common.h (pointer_int_sum): Add prototype.
21283
00fae85d
JJ
212842002-02-20 Jakub Jelinek <jakub@redhat.com>
21285
21286 PR c++/5713
21287 * c-decl.c (duplicate_decls): Return 0 if issued error about
21288 redeclaration.
21289
4636c87e
JJ
212902002-02-20 Roger Sayle <roger@eyesopen.com>
21291 Jakub Jelinek <jakub@redhat.com>
21292
21293 PR c/4389
21294 * tree.c (host_integerp): Ensure that the constant integer is
21295 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
21296 when pos is zero or non-zero respectively. Clarify comment.
21297 * c-format.c (check_format_info_recurse): Fix host_integerp
21298 usage; the pos argument should be zero when assigning to a
21299 signed HOST_WIDE_INT.
21300
59bef189
RH
213012002-02-20 Richard Henderson <rth@redhat.com>
21302
21303 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
21304 of the operand, rather than assuming TImode.
21305 (ix86_expand_binop_builtin): Cope with commutative patterns
21306 using nonimmediate_operand for both operands.
21307 (ix86_expand_timode_binop_builtin): Likewise.
21308 (ix86_expand_store_builtin): Validate operand 1.
21309 (ix86_expand_unop1_builtin): Likewise.
21310
9338ffe6 213112002-02-20 Philip Blundell <philb@gnu.org>
c410d49e 21312
9338ffe6
PB
21313 PR 5705
21314 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
21315
f322b423
RH
213162002-02-20 Richard Henderson <rth@redhat.com>
21317
21318 PR c/5615
21319 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
21320
d94084f7
TT
213212002-02-20 Tom Tromey <tromey@redhat.com>
21322
21323 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
21324 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
21325 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
21326 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
21327 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
21328 unconditionally.
21329
37fa124a
AM
21330Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
21331
21332 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
21333 for (const_int 0) in X not just INTVAL.
21334
6e5bb5ad
JM
213352002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
21336
21337 * doc/extend.texi: Avoid or reduce overfull hboxes.
21338
420e7dfa
DN
213392002-02-20 Diego Novillo <dnovillo@redhat.com>
21340
21341 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
21342 operations if the field does not start at a mode boundary.
21343
1b7a2af6
JS
213442001-02-20 Joel Sherrill <joel@OARcorp.com>
21345
21346 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
21347 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
21348 Also done for -Acpu and -Amachine.
21349
56cd5b95
NB
213502002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
21351
21352 * cppinit.c (init_dependency_output): Take deps output file
21353 from -o if none given with -MF. Suppress normal output.
c410d49e 21354 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
56cd5b95
NB
21355 * doc/cpp.texi, doc/invoke.texi: Update.
21356
042cdf71
ZW
213572002-02-19 Zack Weinberg <zack@codesourcery.com>
21358
21359 * toplev.c (output_quoted_string): Write unprintable
21360 characters with octal escapes.
21361
c1f11548
DE
213622002-02-19 David Edelsohn <edelsohn@gnu.org>
21363
21364 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
21365 really_call_used[VRSAVE_REGNO] if not Altivec.
21366
213672002-02-19 Alan Modra <amodra@bigpond.net.au>
c410d49e 21368
c1f11548
DE
21369 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
21370 MODE_MASK.
21371 (constant_pool_expr_1): Fix formatting.
21372 (rs6000_legitimize_reload_address): Likewise.
21373
c964d90e
RK
21374Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21375
21376 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
21377 now that we have one.
21378
ae34ac46
ZW
213792002-02-19 Zack Weinberg <zack@codesourcery.com>
21380
21381 * tree.h (struct tree_common): Remove aux. Add unused_0 at
21382 end of first block of bitfields (which was only seven bits);
21383 rename dummy to unused_1; remove comment which is no longer true.
21384
293c28ee
GS
213852002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
21386
21387 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
21388
7b8781c8
PB
213892002-02-19 Philip Blundell <pb@nexus.co.uk>
21390
0cb6c58d 21391 PR 5399
7b8781c8
PB
21392 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
21393 if generating PIC.
21394
21395 PR 5054
21396 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
21397 arm_is_longcall_p rather than inspecting call-type cookie
21398 directly.
21399 (call_value_insn) [TARGET_THUMB]: Likewise.
21400
5c464583
GS
214012002-02-19 Graham Stott <grahams@redhat.com>
21402
21403 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
21404
71c061e6
DE
214052002-02-19 David Edelsohn <edelsohn@gnu.org>
21406
21407 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
21408 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6d1def5c 21409 (FP_SAVE_INLINE): Delete.
71c061e6
DE
21410
21411 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
21412 * config/rs6000/eabi.asm: Remove ABI save restore routines.
21413 * config/rs6000/t-ppccomm: Build crtsavres.o.
21414 * config/rs6000/crtsavres.asm: New file.
21415
3a7731fd
PB
214162002-02-19 Philip Blundell <philb@gnu.org>
21417
21418 * config/arm/arm.c (use_return_insn): Don't reject interrupt
21419 functions.
21420 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
21421 (output_return_instruction): Allow interrupt functions to return with
21422 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
21423 (arm_expand_prologue): Subtract 4 before stacking LR in an
21424 interrupt function.
21425
14f583b8
PB
214262002-02-19 Philip Blundell <pb@nexus.co.uk>
21427
21428 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
21429 decl, not just FUNCTION_DECL.
21430 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
21431 (arm_assemble_integer): Likewise.
21432 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
21433 marked local.
c410d49e 21434
4cb7482c
MG
214352002-02-19 matthew green <mrg@eterna.com.au>
21436
21437 * config.gcc (sparc-*-netbsdelf*): Enable target.
21438 (sparc64-*-netbsd*): New target.
21439 * config/sparc/netbsd-elf.h: New file.
21440 * config/sparc/t-netbsd64: New file.
21441
2df3a718
GS
214422002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
21443
21444 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
21445
77f6c1eb
RS
214462002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
21447
21448 * doc/invoke.texi: explicitly list the style guidelines that
21449 -Weffc++ checks for.
21450
fd973d56
JH
21451Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
21452
21453 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
21454
30518e45
NB
214552002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
21456
21457 PR other/5718
21458 * gcc.c (cpp_unique_options): Treat -o as indicating object file
21459 only if not -E. If -E, pass -o through to the preprocessor.
21460
39ea5704
KH
214612002-02-19 Kazu Hirata <kazu@hxi.com>
21462
21463 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
21464 register number with an appropriate macro.
21465
7355dba7
BM
214662002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
21467
21468 * doc/rtl.texi (Constants): Close @code tag.
21469
91c8aa9e
AH
214702002-02-19 Aldy Hernandez <aldyh@redhat.com>
21471
21472 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
21473 ("mmx_uavgv4hi3"): Same.
21474 ("pmulhrwv4hi3"): Same.
21475
21476 * tree-inline.c (walk_tree): Handle vectors.
21477
21478 * c-common.c (constant_expression_warning): Handle vectors.
21479 (overflow_warning): Same.
21480
21481 * sched-deps.c (sched_analyze_2): Handle vectors.
21482
21483 * rtlanal.c (rtx_unstable_p): Handle vectors.
21484 (rtx_varies_p): Same.
21485 (count_occurrences): Same.
21486 (regs_set_between_p): Same.
21487 (modified_between_p): Same.
21488 (modified_in_p): Same.
21489 (volatile_insn_p): Same.
21490 (volatile_refs_p): Same.
21491 (side_effects_p): Same.
21492 (may_trap_p): Same.
21493 (inequality_comparisons_p): Same.
21494 (replace_regs): Same.
21495 (computed_jump_p_1): Same.
21496
21497 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
21498 argument.
21499 (inner_mode_array): New.
21500 (copy_rtx): Handle vectors.
21501 (copy_most_rtx): Same.
21502 (rtx_equal_p): Same.
21503 (get_mode_alignment): Adjust for vectors.
21504
21505 * resource.c (mark_referenced_resources): Handle vectors.
21506 (mark_set_resources): Same.
21507
21508 * reload1.c (eliminate_regs): Handle vectors.
21509 (elimination_effects): Same.
21510 (scan_paradoxical_subregs): Same.
21511
21512 * reload.c (subst_reg_equivs): Handle vectors.
21513
21514 * regrename.c (scan_rtx): Handle vectors.
21515
21516 * regclass.c (reg_scan_mark_refs): Handle vectors.
21517
21518 * recog.c (find_single_use_1): Handle vectors.
21519
21520 * local-alloc.c (equiv_init_varies_p): Handle vectors.
21521 (contains_replace_regs): Same.
21522 (memref_referenced_p): Same.
21523
21524 * integrate.c (copy_rtx_and_substitute): Handle vectors.
21525 (subst_constants): Same.
21526
21527 * genattrtab.c (attr_copy_rtx): Handle vectors.
21528 (encode_units_mask): Same.
21529 (clear_struct_flag): Same.
21530 (count_sub_rtxs): Same.
21531
21532 * gcse.c (want_to_gcse_p): Handle vectors.
21533 (oprs_unchanged_p): Same.
21534 (hash_expr_1): Same.
21535 (oprs_not_set_p): Same.
21536 (expr_killed_p): Same.
21537 (compute_transp): Same.
21538 (store_ops_ok): Same.
21539
21540 * function.c (purge_addressof_1): Do not allow paradoxical subregs
21541 of vectors.
21542 (fixup_var_refs_1): Same.
21543 (instantiate_virtual_regs_1): Same.
21544
21545 * fold-const.c (operand_equal_p): Handle vectors.
21546 (fold): Same.
21547 (rtl_expr_nonnegative_p): Same.
21548
21549 * flow.c (mark_used_regs): Handle vectors.
21550
21551 * df.c (df_uses_record): Handle vectors.
21552
21553 * cselib.c (cselib_subst_to_values): Handle vectors.
21554 (cselib_mem_conflict_p): Same.
21555 (hash_rtx): Same.
21556
21557 * cse.c (canon_reg): Handle vectors.
21558 (fold_rt): Same.
21559 (cse_process_notes): Same.
21560 (count_reg_usage): Same.
21561 (canon_hash): Same.
21562
21563 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
21564
21565 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
21566
21567 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
21568 (gen_rtx): Handle CONST_VECTOR.
21569 (gen_const_vector_0): New.
21570 (copy_rtx_if_shared): CONST_VECTORs can be shared.
21571 (reset_used_flags): Same.
21572 (copy_insn_1): Same.
21573 (initializer_constant_valid_p): Handle VECTOR_CST.
21574
21575 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
21576
21577 * doc/rtl.texi (Constants): Document const_vector.
21578 (CONST0_RTX): Update for vectors.
21579 (RTL sharing): Same.
21580
21581 * print-tree.c (print_node): Add case for VECTOR_CST.
21582
21583 * tree.h (TREE_VECTOR_CST_ELTS): New.
21584 (struct tree_vector): New.
21585 (union tree_node): Add vector node.
21586 (build_vector): Add prototype.
21587
21588 * tree.def (VECTOR_CST): New.
21589
21590 * tree.c (build_vector): New.
21591
21592 * expmed.c (make_tree): Handle CONST_VECTOR.
21593
21594 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
21595 (CONST_VECTOR_ELT): New.
21596 (CONST_VECTOR_NUNITS): New.
21597
21598 * machmode.h (GET_MODE_INNER): New.
21599 (DEF_MACHMODE): Accept 8th arg.
21600
21601 * machmode.def: Add 8th argument for vector inner mode.
21602 Add inner vector modes for vectors.
21603
21604 * rtl.def (VEC_CONST): Remove.
21605 (CONST_VECTOR): New.
21606
21607 * expr.c (clear_storage): Allow vectors.
21608 (is_zeros_p): Handle VECTOR_CST.
21609
21610 * varasm.c (output_constant_pool): Handle vectors.
21611 (rtx_const): Add veclo and vechi fields.
21612 (kind): Add RTX_VECTOR.
21613 (decode_rtx_const): Add case for vector.
21614
21615 * config/rs6000/rs6000-protos.h: Add zero_constant.
c410d49e 21616
91c8aa9e
AH
21617 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
21618 constants. Force easy vector constants into memory.
21619 (easy_vector_constant): New.
21620 (emit_easy_vector_constant): New.
21621 (rs6000_legitimize_reload_address): Do not generate bad reloads on
21622 darwin.
21623
21624 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
21625 instruction does.
21626 ("altivec_lvxl"): Same.
21627 (altivec_lvebx): Same.
21628 (altivec_lvehx): Same.
21629 (altivec_lvewx): Same.
21630 ("*movv4si_const0"): New.
21631 ("*movv4sf_const0"): New.
21632 ("*movv8hi_const0"): New.
21633 ("*movv16qi_const0"): New.
21634
d4d6d0ce
KH
216352002-02-18 Kazu Hirata <kazu@hxi.com>
21636
21637 * config/h8300/h8300.c (notice_update_cc): Use
21638 cc_status.value2.
21639
4915d3aa
KH
216402002-02-18 Kazu Hirata <kazu@hxi.com>
21641
21642 * config/h8300/h8300.md (divmod patterns): Change the
21643 constraints for operands[1] to register_operand.
21644
82be00ee
KH
216452002-02-18 Kazu Hirata <kazu@hxi.com>
21646
21647 * config/h8300/h8300-protos.h: Remove the prototype for
21648 p_operand.
21649 * config/h8300/h8300.c (p_operand): Remove.
21650 * config/h8300/h8300.md: Replace p_operand with
21651 const_int_operand.
21652
1768c26f
PB
216532002-02-18 Philip Blundell <pb@nexus.co.uk>
21654
21655 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
21656 comment.
21657 (output_return_instruction): Allow use of LDR to unstack
21658 return addresss even for interrupt handlers or when
21659 interworking. If compiling for ARMv5, use interworking-safe
21660 return instructions by default. Remove duplicated code and
21661 lengthy "strcat" sequences.
21662
ccd84f51
FS
216632002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21664
21665 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
21666 (LINK_EH_SPEC): Define.
21667 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
21668
2c153108
UW
216692002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
21670
21671 * config/s390/s390.c (s390_emit_prologue): Do not set the
21672 frame_related flag for call-clobbered registers.
21673
e95d6b23
JH
21674Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
21675
21676 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
21677 (construct_container): Fix handling of SSE operands.
21678 (ix86_expand_builtin): Fix handling of 64bit pointers.
21679 (mmx_maskmovq_rex): New pattern.
21680
c43a12b5
JH
21681Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
21682
21683 * regrename.c (kill_set_value): Handle subregs properly.
21684
aeb85a15
DB
216852002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
21686
21687 * objc/objc-act.c (handle_impent): Remove leading '*'
c410d49e 21688 from objc_class_name.
aeb85a15 21689
a615ca3e
RH
216902002-02-17 Richard Henderson <rth@redhat.com>
21691
21692 * config/alpha/alpha.c (some_small_symbolic_operand,
21693 some_small_symbolic_operand_1, split_small_symbolic_operand,
21694 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
21695 Handle small SYMBOL_REFs anywhere, not just inside memories.
21696 * config/alpha/alpha-protos.h: Update.
21697 * config/alpha/alpha.h (PREDICATE_CODES): Update.
21698 * config/alpha/alpha.md (small symbolic operand splitter): Update.
21699
ddb28441
RM
217002002-02-17 Roland McGrath <roland@frob.com>
21701
21702 * config.gcc (powerpc-*-gnu-gnualtivec*,
21703 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
21704 * config/rs6000/gnu.h: New file.
21705 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
21706 Grok "gnu" in rs6000_abi_name.
21707 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
21708 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
21709 Grok -mcall-gnu analogous to -mcall-linux et al.
21710 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
21711 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
21712 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
21713
f6f8ada3
JJ
217142002-02-17 Jakub Jelinek <jakub@redhat.com>
21715
21716 PR c/3444:
21717 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
21718 shortening.
21719
e16b32fc
PT
217202002-02-17 Philipp Thomas <pthomas@suse.de>
21721
21722 * config/cris/cris.h: Undefine STARTFILE_SPEC and
21723 ENDFILE_SPEC before (re)defining them.
21724
f9477efd
KH
217252002-02-17 Kazu Hirata <kazu@hxi.com>
21726
21727 * config/h8300/h8300.c: Fix formatting.
21728 * config/h8300/h8300.h: Likewise.
21729
404ae494
PT
217302002-02-17 Philipp Thomas <pthomas@suse.de>
21731
21732 * doc/tm.texi: Explain why empty strings should not be
21733 marked for translation.
21734
a52453cc
PT
217352002-02-17 Philipp Thomas <pthomas@suse.de>
21736
21737 * final.c (output_operand_lossage): Changed to accept
21738 printf style arguments. Change calls where necessary.
21739 * output.h (output_operand_lossage): Change declaration
21740 accordingly. Update copyright.
21741 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
21742 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
21743 Update copyright date where necessary.
c410d49e 21744
a52453cc
PT
21745 * config/i386/i386.c (print_operand): Likewise. Remove use of
21746 sprintf.
21747
21748 * config/cris/cris.c (cris_operand_lossage): Likewise.
21749 Rename parameter so that exgettext recognizes it as
21750 translatable message.
21751 (LOSE_AND_RETURN): Rename parameter to msgid.
21752
1c11abc4
KH
217532002-02-17 Kazu Hirata <kazu@hxi.com>
21754
21755 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
21756 hard coded register number with an appropriate macro.
21757 (HARD_REGNO_MODE_OK): Likewise.
21758 (ARG_POINTER_REGNUM): Likewise.
21759 (STATIC_CHAIN_REGNUM): Likewise.
21760 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
21761 * config/h8300/h8300.md (define_constants): Define more
21762 register numbers.
21763
a5d17ff3
PT
217642002-02-17 Philipp Thomas <pthomas@suse.de>
21765
21766 * config/i386/i386.h: Don't mark empty strings for translation.
21767
1a7289c4
L
217682002-02-16 H.J. Lu <hjl@gnu.org>
21769
21770 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
21771
afb58288
ZW
217722002-02-16 Zack Weinberg <zack@codesourcery.com>
21773
21774 * cppinit.c (merge_include_chains): Check for brack being
21775 NULL before attempting to merge it with qtail.
21776
d2af4dbd
AC
217772002-02-16 Andrew Cagney <ac131313@redhat.com>
21778
21779 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
21780 DBX_DEBUG.
21781
2e1ed1e3
JDA
217822002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
21783
21784 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
21785
604c75b2
JDA
217862002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
21787
21788 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
21789 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
21790 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
21791
1a42b072
RK
21792Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21793
7303604f 21794 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1a42b072
RK
21795 now only if !TARGET_FIX.
21796 (*movsi_nt_vms_fix): New pattern.
21797
c2ea1ac6
DR
217982002-02-16 Douglas B Rupp <rupp@gnat.com>
21799
21800 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
21801 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
21802 (alpha_sa_mask, alpha_sa_size): Reflect above change.
21803 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
21804 (alpha_start_function, alpha_expand_epilogue): Likewise.
21805 (unicosmk_gen_dsib): Likewise.
21806
725e58b1
RK
21807Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21808
21809 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
21810
13e58269
UW
218112002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
21812
c410d49e 21813 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
13e58269
UW
21814 check_and_change_labels, s390_final_chunkify): Delete.
21815 (s390_split_branches, s390_chunkify_pool): New functions.
21816 (s390_function_prologue): Call them.
c410d49e 21817
13e58269
UW
21818 * config/s390/s390.h (S390_REL_MAX): Delete.
21819 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
21820
c410d49e 21821 * config/s390/s390.md (cjump, icjump, jump): Fix length
13e58269
UW
21822 attribute calculation.
21823
21824
34d1b01d
DE
218252002-02-15 David Edelsohn <edelsohn@gnu.org>
21826
21827 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
21828 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
21829
be5cc51a
JDA
218302002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
21831
21832 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
21833 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
21834 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
21835
ee96ce90
RS
218362002-02-15 Richard Sandiford <rsandifo@redhat.com>
21837
21838 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
21839
05fa709d
RS
218402002-02-15 Richard Sandiford <rsandifo@redhat.com>
21841
21842 * reload.c (find_dummy_reload): Check that an output register
21843 is valid for its mode.
21844
4606272b
AO
218452002-02-14 Alexandre Oliva <aoliva@redhat.com>
21846
9a360704
AO
21847 * combine.c (known_cond): After replacing the REG of a SUBREG, try
21848 to simplify it.
21849
4606272b
AO
21850 * function.c (assign_parms): Demote promoted argument passed by
21851 transparent reference.
21852
e62d89a1
JS
218532001-02-14 Joel Sherrill <joel@OARcorp.com>
21854
21855 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
21856 -Acpu() and -Amachine() to eliminate warnings.
21857
6c4cf695
UW
218582002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
21859
21860 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
21861
037f11ef
KH
218622002-02-14 Kazu Hirata <kazu@hxi.com>
21863
21864 * config/h8300/h8300-protos.h: Update the prototype for
21865 const_costs.
21866 * config/h8300/h8300.c (const_costs): Treat SET as a little
21867 more expensive operation.
21868 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
21869 reference to const_costs.
21870
fdc76b09
HPN
218712002-02-14 Hans-Peter Nilsson <hp@axis.com>
21872
21873 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
21874
d76e6800
JJ
218752002-02-14 Jakub Jelinek <jakub@redhat.com>
21876
21877 PR c/5503:
21878 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
21879 use arguments from newtype.
21880
5ae590d7
EC
218812002-02-13 Eric Christopher <echristo@redhat.com>
21882
21883 * config/mips/mips.c (override_options): Add check for march/mipsX
21884 on the same command line. Fix error message in cpu processing.
21885 Remove architecture and ISA checks.
21886
b8513691
AH
218872002-02-14 Aldy Hernandez <aldyh@redhat.com>
21888
831c4e87 21889 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
b8513691 21890
831c4e87 21891 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
b8513691 21892
78c875e8
AH
218932002-02-14 Aldy Hernandez <aldyh@redhat.com>
21894
831c4e87
KC
21895 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
21896 alternatives.
21897 ("*movv8hi_internal1"): Same.
21898 ("*movv16qi_internal1"): Same.
21899 ("*movv4sf_internal1"): Same.
78c875e8 21900
831c4e87
KC
21901 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
21902 not push_reload for altivec modes.
78c875e8 21903
d76e6800 219042002-02-13 Joel Sherrill <joel@OARcorp.com>
f22b4bc4
JS
21905
21906 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
21907 all RTEMS targets including removal of #includes from config/*/rtems*.h
21908 file and adding them to tm_file setting. Added xm_defines=POSIX to
21909 many targets.
21910 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
21911 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
21912 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
21913 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
21914 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
21915 config/m68k/rtemself.h: Ditto.
21916 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
21917 config/mips/rtems64.h: Ditto.
21918 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
21919 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
21920 Ditto.
21921 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
21922 config/sparc/rtemself.h: Ditto.
21923 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
21924 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
21925 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
21926 more like arm-elf.
21927 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
21928 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
21929 target made more similar to i386-elf.
21930 * config/i386/t-rtems-i386: Added soft float support and multilibs.
21931 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
21932 be similar to config/m68k/t-m68kelf.
21933 * gthr-rtems.h: Encapsulate with extern "C" for C++.
21934
8686336f
JH
21935Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
21936
21937 * regmove.c (kill_value): Handle subregs.
21938
558740bf
JH
21939Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
21940
21941 * i386.md (mul patterns): Allow memory operand to be first;
21942 add expanders where needed; fix constraints.
21943 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
21944 Allow memory operand to be the first.
21945
21946 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
21947 operands.
21948
21117a17
JJ
219492002-02-13 Jakub Jelinek <jakub@redhat.com>
21950
21951 PR c/5681:
21952 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
21953 GET_MODE (x).
21954
ec65b2e3
JJ
219552002-02-13 Jakub Jelinek <jakub@redhat.com>
21956
21957 PR optimization/5547:
21958 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
21959 all valid IA-32 address modes involving non-scaled %ebx and
21960 GOT/GOTOFF as displacement.
21961
ce50cae8
UW
219622002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
21963
21964 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
21965 after emitting ltorg insns.
21966
21967 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
21968 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
21969 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
21970 *abssf2): Fix "op_type" attribute.
21971
09eb789b
DR
219722002-02-13 Douglas B Rupp <rupp@gnat.com>
21973
2dbe67bb
DR
21974 * mkconfig.sh: Avoid using a subshell redirect.
21975 ($output.T): Change to $(output)T.
21976 (ENABLE_NLS): Remove unneeded undef.
21977
ea5b9a1f
DR
21978 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
21979 * config/alpha/x-vms (libsubdir): Define.
21980
3deb00ce
DR
21981 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
21982 register frame procedures. Optimize retrieving context.
21983
09eb789b
DR
21984 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
21985 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
21986 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
21987
1abade85
RK
21988Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21989
21990 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
21991 Make same change as for find_base_value.
21992
c283e63f
KH
219932002-02-13 Kazu Hirata <kazu@hxi.com>
21994
21995 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
21996 of QImode and SImode.
21997
86039100
KH
219982002-02-13 Kazu Hirata <kazu@hxi.com>
21999
22000 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
22001 length computation of movsi.
22002 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
22003
e1429da0
KH
220042002-02-13 Kazu Hirata <kazu@hxi.com>
22005
22006 * config/h8300/h8300.md (subqi3): Tighten the predicate for
22007 operands[2] to register_operand.
22008
aebfea10
JH
22009Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
22010
22011 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
22012
0ec4e2a8
AH
220132002-02-12 Aldy Hernandez <aldyh@redhat.com>
22014
831c4e87
KC
22015 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
22016 for altivec_lvx* and altivec_stvx*.
22017 ("*movv4si_internal"): Add constraint for loading from GPRs.
22018 ("*movv8hi_internal1"): Same.
22019 ("*movv16qi_internal1"): Same.
22020 ("*movv4sf_internal1"): Same.
0ec4e2a8 22021
831c4e87 22022 * config/rs6000/rs6000.c (altivec_register_operand): New.
0ec4e2a8 22023
831c4e87
KC
22024 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
22025 altivec_register_operand.
0ec4e2a8 22026
b007569d
HPN
220272002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
22028
22029 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
22030 handle SYMBOL_REF.
22031
e6834654
SS
220322002-02-13 Stan Shebs <shebs@apple.com>
22033
831c4e87
KC
22034 * c-typeck.c (digest_init): Handle vectors.
22035 (really_start_incremental_init): Same.
22036 (pop_init_level): Same.
22037 (process_init_element): Same.
e6834654 22038
831c4e87 22039 * varasm.c (output_constant): Same.
e6834654 22040
831c4e87
KC
22041 * expr.c (clear_storage): Same.
22042 (store_constructor): Same.
e6834654 22043
d9b3eb63
EC
220442002-02-12 Eric Christopher <echristo@redhat.com>
22045
22046 * explow.c (hard_function_value): Add comment explaining
22047 signed/unsigned comparison.
22048
56d44285
JJ
220492002-02-12 Jakub Jelinek <jakub@redhat.com>
22050
22051 * jump.c (never_reached_warning): Add finish argument.
22052 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
22053 real insn after end.
22054 * rtl.h (never_reached_warning): Adjust prototype.
22055 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
22056 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
22057 never_reached_warning.
22058
fc209487
GS
220592002-02-12 Graham Stott <grahams@redhat.com>
22060
22061 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
22062
1e41e866
KH
220632002-02-12 Kazu Hirata <kazu@hxi.com>
22064
22065 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
22066 logical shifts on H8/300.
22067 (shift_alg_si): Improve several shifts on H8/300.
22068 (get_shift_alg): Likewise.
22069
a36a47ad
GS
220702002-02-12 Graham Stott <grahams@redhat.com>
22071
22072 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
22073
0aacc8ed
RK
22074Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22075
22076 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
22077 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
22078
a02ac966
HPN
220792002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
22080
22081 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
22082 non-CONST_INT through default_assemble_integer.
22083 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
22084 <case 8>: Abort for CONST_DOUBLE.
22085
d6e06ddc
JDA
220862002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
22087
22088 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
22089 is specified.
22090 * config/pa/pa-linux.h (LIB_SPEC): Delete.
22091 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
22092
515342a8
AH
220932002-02-11 Andrew Haley <aph@cambridge.redhat.com>
22094
22095 * config/stormy16/stormy16.md (zero_extendqihi2): New.
22096
cddd8b72
AO
220972002-02-11 Alexandre Oliva <aoliva@redhat.com>
22098
66df7a98
AO
22099 * regrename.c (regrename_optimize): Don't accept a
22100 part-clobbered register if the replaced register is not part
22101 clobbered.
22102
841404cd
AO
22103 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
22104 take padding into account when computing the argument value.
22105
1d1ade42
AO
22106 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
22107
cddd8b72
AO
22108 * combine.c (try_combine): Apply substitutions in
22109 CALL_INSN_FUNCTION_USAGE too.
22110
5c665b88
AH
221112002-02-11 Aldy Hernandez <aldyh@redhat.com>
22112
77f6c1eb
RS
22113 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
22114 __builtin_altivec_abs*.
22115 (bdesc_abs): New.
5c665b88 22116
77f6c1eb
RS
22117 * config/rs6000/rs6000.h (rs6000_builtins): Add
22118 ALTIVEC_BUILTIN_ABS*.
5c665b88 22119
77f6c1eb
RS
22120 * config/rs6000/altivec.h: Use const char for builtins expecting
22121 literals.
22122 (vec_abs): New versions for C and C++.
22123 (vec_abss): Same.
5c665b88 22124
3494f1b4
KH
221252002-02-10 Kazu Hirata <kazu@hxi.com>
22126
22127 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
22128 using Pmode.
22129
72431aef
KH
221302002-02-10 Kazu Hirata <kazu@hxi.com>
22131
22132 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
22133 constant definition from h8300.md.
22134 (FRAME_POINTER_REGNUM): Likewise.
22135 * config/h8300/h8300.md (define_constants): Add FP_REG.
22136
87e4ee91
KH
221372002-02-10 Kazu Hirata <kazu@hxi.com>
22138
22139 * config/h8300/h8300.c (print_operand): Remove redundant code.
22140
9c188705
KH
221412002-02-10 Kazu Hirata <kazu@hxi.com>
22142
22143 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
22144 * config/h8300/h8300.c (byte_reg): Make it static.
22145
fba78abb
RH
221462002-02-10 Richard Henderson <rth@redhat.com>
22147
22148 PR c/5623
22149 * c-typeck.c (incomplete_type_error): Handle flexible array members.
22150
65739e62
RH
221512002-02-10 Richard Henderson <rth@redhat.com>
22152
22153 PR c++/5624
22154 * tree.c (append_random_chars): Don't abort if main_input_filename
22155 does not exist.
22156
247cb9df
HPN
221572002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
22158
22159 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
22160
232bd029
KH
221612002-02-10 Kazu Hirata <kazu@hxi.com>
22162
65739e62 22163 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
232bd029
KH
22164 (pushhi1): Likewise.
22165
276ef573
JDA
221662002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
22167
22168 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
22169 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
22170
617e9ee5
DB
221712002-02-09 David O'Brien <obrien@FreeBSD.org>
22172
22173 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
22174 remove MASK_VIS.
22175 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
22176
6dfa4005
KH
221772002-02-09 Kazu Hirata <kazu@hxi.com>
22178
22179 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
22180 a half of an SImode register on H8/300.
22181
749e7b80
JH
22182Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
22183
22184 * i386.md (movdi_2): Add missing '!'.
22185
ca77d87c
KH
221862002-02-09 Kazu Hirata <kazu@hxi.com>
22187
22188 * config/h8300/h8300.h: Fix formatting. Remove commented-out
22189 definitions.
22190
16c96304
KH
221912002-02-09 Kazu Hirata <kazu@hxi.com>
22192
22193 * config/h8300/h8300.md (length): Correct the distance valid
22194 for the short branch.
22195
a364bc90
KH
221962002-02-09 Kazu Hirata <kazu@hxi.com>
22197
22198 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
22199
e4ec2cac
AO
222002002-02-09 Alexandre Oliva <aoliva@redhat.com>
22201
a138247b
AO
22202 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
22203 registers in SImode.
22204 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
22205 part-clobbered.
22206
2b1fd83f
AO
22207 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
22208 patch.
d9b3eb63 22209
fa5322fa
AO
22210 Contribute sh64-elf.
22211 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
22212 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
22213 (sh_cannot_modify_jumps_p): New function.
22214 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
22215 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
22216 (sh_ms_bitfield_layout_p): New function.
22217 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
22218 Zack Weinberg <zack@codesourcery.com>
22219 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
22220 expand_simple_binop instead of expand_binop.
22221 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
22222 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
22223 use of .quad and .uaquad.
22224 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
22225 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
22226 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
22227 * config/sh/sh.md (movdi_const, movdi_const_32bit,
22228 movdi_const_16bit): Make sure all CONSTs have modes.
22229 (sym2PIC): Ditto, but by adjusting all callers.
22230 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
22231 if the prologue calls the SHmedia argument decoder or register
22232 saver.
22233 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
22234 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
22235 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
22236 (sh_expand_epilogue): Don't emit USE of return target register.
22237 (prepare_move_operands): Legitimize DImode PIC addresses.
22238 (sh_media_register_for_return): Skip tr0, used to initialize the
22239 PIC register.
22240 (sh_expand_prologue): Remove explicit USE of return register.
22241 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
22242 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
22243 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
22244 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
22245 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
22246 EXTRA_CONSTRAINT_T.
22247 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
22248 (MOVI_SHORI_BASE_OPERAND_P): New.
22249 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
22250 (EXTRA_CONSTRAINT_T): Define in terms of them.
22251 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
22252 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
22253 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
22254 alternatives supporting TARGET_REGS.
22255 (UNSPEC_GOTPLT): New constant.
22256 (movdi split): Move incrementing of LABEL_NUSES...
22257 (movdi_const, movdi_const_32bit): Here. Use
22258 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
22259 (movdi_const_16bit): New.
22260 (call, call_value) [flag_pic]: Use GOTPLT.
22261 (call_pop, call_value_pop): New expands.
22262 (call_pop_compact, call_pop_rettramp): New insns.
22263 (call_value_pop_compact, call_value_pop_rettramp): New insns.
22264 (sibcall) [flag_pic]: Use GOT.
22265 (builtint_setjmp_receiver): Remove bogus, unused expand.
22266 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
22267 (*pt, *ptb, ptrel): New insns.
22268 (sym2GOT): Handle DImode GOT.
22269 (sym2GOTPLT, symGOTPLT2reg): New expands.
22270 (sym2PIC): New expand.
22271 (shcompact_return_tramp): Use GOTPLT to return trampoline.
22272 (shcompact_return_tramp_i): Use return register explicitly.
22273 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
22274 disable flag_reorder_blocks.
22275 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
22276 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
22277 clobbers, for clarity.
22278 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
22279 restoring of r0 in macl as MAYBE_DEAD.
22280 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
22281 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
22282 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
22283 alter_subreg all over.
22284 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
22285 reload, instead of emitting instructions that would require
22286 reloading.
22287 (casesi_load_media): Add missing modes.
22288 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
22289 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
22290 as used if the argument decoder is called.
22291 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
22292 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
22293 Pmode, then extend it to DImode if necessary.
22294 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
22295 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
22296 constants in FPU-enabled SHmedia, let them be loaded from memory.
22297 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
22298 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
22299 Adjust whitespace in assembly output templates.
22300 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
22301 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
22302 mode of if_then_else.
22303 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
22304 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
22305 sh.h.
22306 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
22307 Joern Rennecke <amylaar@redhat.com>
22308 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
22309 (SUBTARGET_CPP_PTR_SPEC): New.
22310 (SUBTARGET_CPP_SPEC): Remove.
22311 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
22312 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
22313 Fix typo in previous checkin.
22314 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
22315 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
22316 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
22317 Alexandre Oliva <aoliva@redhat.com>
22318 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
22319 what single FP register can hold for SHmedia target.
22320 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
22321 Alexandre Oliva <aoliva@redhat.com>
22322 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
22323 Do not split into SUBREG.
22324 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
22325 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
22326 and added new functions as specified in SH5 ABI r9.
22327 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
22328 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
22329 8-byte boundary.
22330 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
22331 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
22332 gen_consttable_4 and gen_consttable_8. Emit multiple labels
22333 and consttable_window_ends.
22334 2001-06-03 Graham Stott <grahams@redhat,com>
22335 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
22336 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
22337 * config/sh/sh.c (print_operand): Handle floating-point pair,
22338 vector and matrix registers.
22339 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
22340 vector modes into account.
22341 * config/sh/sh.md (movv2sf): Split move between registers into
22342 movdf.
22343 (movv4sf, movv16sf): Introduce insns that get split only after
22344 reload.
22345 * config/sh/shmedia.h: Fix Copyright dates.
22346 * config/sh/ushmedia.h: Likewise. Move loop counter
22347 declarations into conditionals that uses them.
22348 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
22349 loop boundary.
22350 * config/sh/sshmedia.h: Fix Copyright dates.
22351 (sh_media_PUTCFG): Fix constraints.
22352 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
22353 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
22354 ptrmemfunc_vbit_in_delta for SH5.
22355 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
22356 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
22357 * invoke.texi: Likewise.
22358 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
22359 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
22360 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
22361 GCC_pop_shmedia_regs_nofpu): New global symbols.
22362 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
22363 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
22364 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
22365 compact function with nonlocal labels.
22366 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
22367 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
22368 (initial_elimination_offset): Account for their stack space.
22369 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
22370 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
22371 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
22372 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
22373 least one of the operands to be a register.
22374 (movv2sf): Likewise. Renamed to movv2sf_i.
22375 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
22376 prepare_move_operands() before emitting SHmedia insns.
22377 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
22378 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
22379 Don't save nor initialize r12. Don't mis-align the stack.
22380 Pad the code with a nop.
22381 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
22382 stack.
22383 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
22384 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
22385 [__SHMEDIA__]: Implement.
22386 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
22387 * config/sh/sh.md: Set latency of `pt' closer to reality.
22388 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
22389 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
22390 Set move, load and store type attributes.
22391 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
22392 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
22393 profiling.
22394 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
22395 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
22396 * config/sh/sh.c (sh_media_register_for_return): New function.
22397 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
22398 branch-target register.
22399 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
22400 * config/sh/sh.md (return_media_i): Use any call-clobbered
22401 branch-target register.
22402 (return_media): If r18 wasn't copied in the prologue, copy it
22403 here.
22404 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
22405 Clear class FP0_REGS.
22406 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
22407 from elf.h.
22408 2001-03-08 DJ Delorie <dj@redhat.com>
22409 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
22410 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
22411 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
22412 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
22413 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
22414 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
22415 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
22416 return value correctly for call_cookie.
22417 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
22418 * config/sh/crt1.asm (start): Modified so as to call
22419 ___setup_argv_and_call_main.
22420 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
22421 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
22422 SHmedia mode.
22423 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
22424 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
22425 (STRIP_NAME_ENCODING): Use it.
22426 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
22427 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
22428 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
22429 prepare_scc_operands().
22430 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
22431 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
22432 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
22433 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
22434 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
22435 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
22436 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
22437 used in shcompact_incoming_args.
22438 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
22439 change.
22440 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
22441 mode.
22442 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
22443 Adjust accordingly.
22444 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
22445 Simplify. Adjust. Add sanity check.
22446 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
22447 FPU_SINGLE_BIT.
22448 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
22449 TARGET_SHCOMPACT.
22450 (udivsi3, divsi3): Use them.
22451 (force_mode_for_call): New insn.
22452 (call, call_value, sibcall_value): Emit it before SHcompact
22453 calls.
22454 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
22455 * config/sh/sh.md (call, call_value, sibcall): Make sure the
22456 call cookie is non-NULL before taking its value.
22457 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
22458 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
22459 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
22460 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
22461 block.
22462 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
22463 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
22464 temporary for stack adjusts. Use MACL and MACH to pass
22465 arguments to shcompact_incoming_args.
22466 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
22467 clobber r1.
22468 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
22469 (nested_trampoline): Load static chain address into r1.
22470 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
22471 2001-01-07 Alexandre Oliva <aoliva@redhat.com
22472 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
22473 fp_arith_reg_operand().
22474 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
22475 * config/sh/sh.md (casesi): Sign-extend the first two operands,
22476 and use signed compares for them.
22477 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
22478 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
22479 ones properly aligned.
22480 (find_barrier): Account for extra alignment needed for 8-byte wide
22481 constants.
22482 (machine_dependent_reorg): Require a label for the second 4-byte
22483 constant after an 8-byte one.
22484 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
22485 change.
22486 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
22487 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
22488 last_float when switching float modes.
22489 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
22490 auto-increment for general-purpose registers.
22491 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
22492 result.
22493 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
22494 for stack adjust.
22495 * config/sh/sh.c (sh_builtin_saveregs): Support using all
22496 registers for varargs.
22497 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
22498 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
22499 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
22500 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
22501 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
22502 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
22503 call_cookie accordingly.
22504 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
22505 (SHCOMPACT_BYREF): Likewise.
22506 (SHCOMPACT_FORCE_ON_STACK): New macro.
22507 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
22508 (sh_builtin_saveregs): Likewise.
22509 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
22510 shcompact_incoming_args): Use new shift values. Support
22511 sequences of consecutive and non-consecutive pushes/pops.
22512 * config/sh/sh.md (return): Don't explicitly use PR_REG.
22513 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
22514 * config/sh/sh.h (TEXT_SECTION): Define.
22515 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
22516 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
22517 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
22518 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
22519 return values on FPU-enabled SHmedia.
22520 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
22521 FPU-enabled SHmedia.
22522 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
22523 value is returned in a non-FP reg and is not returned by
22524 reference.
22525 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
22526 jump_ind.
22527 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
22528 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
22529 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
22530 quad-aligned to be passed by callee-copy reference.
22531 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
22532 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
22533 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
22534 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
22535 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
22536 copying low-numbered FP regs to r7 and r8.
22537 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
22538 FP regs to general-purpose regs only if the copy was passed on the
22539 stack.
22540 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
22541 copying FP reg to r9.
22542 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
22543 copy FP regs to general-purpose regs only in outgoing calls.
22544 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1e4e95d6 22545 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
fa5322fa
AO
22546 HOST_WIDE_INT.
22547 * config/sh/sh.h (struct sh_args): Document all fields.
22548 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
22549 passed partially on the stack should not consider making
22550 sibcalls.
22551 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
22552 stack_regs only for incoming calls. When passing FP args,
22553 make sure there are FP regs available before modifying
22554 call_cookie.
22555 (SHCOMPACT_BYREF): Pass double args in general-purpose
22556 registers by reference.
22557 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
22558 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
22559 attempt to generate sibcalls if the caller got any arguments
22560 by reference.
22561 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
22562 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
22563 to 8-byte boundaries.
22564 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
22565 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
22566 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
22567 stored in the stack.
22568 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
22569 for the offsets to have the ISA bit set.
22570 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
22571 invocation. Use beq instead of bgt to mark end of sequence of
22572 loads.
22573 (shcompact_incoming_args): Fix store of r2. Use beq instead of
22574 bgt to mark end of sequence of stores.
22575 * config/sh/sh.c (arith_operand): Don't check whether
22576 CONST_OK_FOR_J for now.
22577 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
22578 instead of long for conversion.
22579 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
22580 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
22581 before passing it to fprintf.
22582 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
22583 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
22584 Call set_fpscr before reading/writing SR.
22585 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
22586 Call set_fpscr.
22587 * config/sh/lib1funcs.asm: Add `.align 2' directives before
22588 SHmedia code.
22589 (FMOVD_WORKS): Define on SH5 with FPU.
22590 (set_fpscr): Define on SH5. Remove separate _fpscr_values
22591 setting.
22592 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
22593 _fpscr_values.
22594 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
22595 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
22596 address.
22597 (ia_main_table): Ditto.
22598 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
22599 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
22600 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
22601 the definitions from sh.h.
22602 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
22603 TARGET_SH5.
22604 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
22605 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
22606 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
22607 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
22608 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
22609 Increment LABEL_NUSES.
d9b3eb63 22610
fa5322fa
AO
22611 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
22612 TARGET_SH5.
22613 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
22614 defined.
22615 * config/sh/elf.h (SIZE_TYPE): Likewise.
22616 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
22617 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
22618 shcompact_incoming_args): Load switch table addresses using
22619 datalabel.
22620 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
22621 (NO_BUILTIN_SIZE_TYPE): Define.
22622 (SIZE_TYPE): Don't define.
22623 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
22624 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
22625 definition of __SH5__=32 for -m5-compact-nofpu.
22626 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
22627 ADDR_DIFF_VEC.
22628 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
22629 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
22630 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
22631 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
22632 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
22633 (INSN_LENGTH_ALIGNMENT): Likewise.
22634 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
22635 * config/sh/sh.md (call, call_value, sibcall): Simplify
22636 copying of non-branch-target register.
22637 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1e4e95d6 22638 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
fa5322fa
AO
22639 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
22640 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
22641 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
22642 floating-point values as structs.
22643 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
22644 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
22645 general-purpose register.
22646 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
22647 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
22648 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
22649 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
22650 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
22651 (ENCODE_SECTION_INFO): Enclose variables and constants in
22652 DATALABEL unspecs.
22653 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
22654 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
22655 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
22656 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
22657 only for LABEL_REFs. For SYMBOL_REFs, prepend
22658 SH_DATALABEL_ENCODING to the symbol name.
22659 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
22660 convert_mode().
22661 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
22662 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
22663 UNSPEC_DATALABEL.
22664 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
22665 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
22666 (DATALABEL_REF_P): Don't require CONST.
22667 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
22668 REL label.
22669 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
22670 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
22671 right.
22672 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
22673 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
22674 Use shallow_copy_rtx and PUT_MODE to change the mode of
22675 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
22676 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
22677 on SHmedia using GENERAL_REGs.
22678 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
22679 bltu_media_i): Fix reversion of conditions.
22680 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
22681 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
22682 * config/sh/sh.c (output_far_jump): Save r13 in macl.
22683 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
22684 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
22685 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
22686 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
22687 (GCC_nested_trampoline): Likewise.
22688 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
22689 * config/sh/sh.c (gen_datalabel_ref): Define.
22690 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
22691 (INITIALIZE_TRAMPOLINE): Likewise.
22692 (TRAMPOLINE_ADJUST_ADDRESS): Define.
22693 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
22694 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
22695 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
22696 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
22697 (ic_invalidate): Adjust for SH5.
22698 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
22699 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
22700 _nested_trampoline.
22701 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
22702 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
22703 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
22704 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
22705 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
22706 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
22707 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
22708 * config/sh/sh.c (target_reg_operand): Match only target-branch
22709 registers and pseudos that aren't virtual registers.
22710 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
22711 Copy operands that don't match target_reg_operand to pseudos.
22712 (call_media, call_value_media, sibcall_media): Use
22713 target_reg_operand instead of target_operand.
22714 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
d9b3eb63 22715 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
fa5322fa
AO
22716 * config/sh/sh.c (target_reg_operand): Match hardware registers
22717 other than branch-target registers.
22718 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
22719 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
22720 (fpscr_values) [SH5 == 32]: Define.
22721 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
22722 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
22723 Handle function addresses coming in SUBREGs.
22724 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
22725 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
22726 shcompact_return_trampoline): Use datalabel where appropriate.
22727 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
22728 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
22729 general-purpose register to copy one branch-target register to
22730 another.
22731 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
22732 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
22733 SYMBOL_REFs with VOIDmode.
22734 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
22735 bltu_media_i): New insns.
22736 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
22737 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
22738 (INIT_CUMULATIVE_ARGS): Likewise.
22739 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
22740 * machmode.def (V16SFmode): New mode.
22741 * c-common.c (type_for_mode): Support V2SF and V16SF.
22742 * tree.c (build_common_tree_nodes_2): Likewise.
22743 * tree.h (tree_index): Likewise.
22744 * calls.c (emit_call_1): Take args_so_far. Adjust all
22745 callers. Introduce CALL_POPS_ARGS.
22746 * tm.texi (CALL_POPS_ARGS): Document.
22747 * config/sh/crt1.asm: Implement in SHmedia mode.
22748 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
22749 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
22750 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
22751 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
22752 Implement divsi and udivsi in SHmedia mode. Introduce
22753 SHcompact trampolines.
22754 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
22755 only in SHmedia64.
22756 (regno_reg_class): Rewrite.
22757 (fp_reg_names): Remove.
22758 (sh_register_names, sh_additional_register_names): New.
22759 (print_operand): Added `u'. Support SUBREGs in addresses.
22760 Add parentheses around shifted CONSTs.
22761 (output_file_start): Output .mode and .abi directives.
22762 (shiftcosts, addsubcosts, multcosts): Adjust.
22763 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
22764 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
22765 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
22766 bytes, not registers. Take into account the need for the
22767 SHcompact incoming args trampoline. Adjust all callers.
22768 (sh_expand_prologue): Take stack_regs into account. Call
22769 incoming args trampoline. Keep stack aligned as per SH5 ABI.
22770 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
22771 stack aligned as per SH5 ABI.
22772 (sh_builtin_saveregs): Support SH5 ABI.
22773 (sh_build_va_list, sh_va_start): Likewise.
22774 (initial_elimination_offset): Take alignment into account.
22775 Compute location of PR according to the SH5 stack frame.
22776 (arith_reg_operand): Reject branch-target registers.
22777 (shmedia_6bit_operand): New.
22778 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
22779 (target_reg_operand): Match DImode only. Accept SUBREGs.
22780 (target_operand): New.
22781 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
22782 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
22783 SIBCALL_REGS for SHmedia.
22784 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
22785 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
22786 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
22787 (TARGET_SWITCHES): New SH5 flags.
22788 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
22789 VALID_REGISTER_P to disable unsupported registers.
22790 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
22791 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
22792 (FUNCTION_ARG_PADDING): Define.
22793 (FASTEST_ALIGNMENT): Adjust.
22794 (SH_REGISTER_NAMES_INITIALIZER): New.
22795 (sh_register_names): Declare.
22796 (DEBUG_REGISTER_NAMES): Define.
22797 (REGISTER_NAMES): Define based on sh_register_names.
22798 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
22799 (sh_additional_register_names): Declare.
22800 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
22801 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
22802 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
22803 (REGISTER_NATURAL_MODE): Define.
22804 (FIRST_PSEUDO_REGISTER): Adjust.
22805 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
22806 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
22807 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
22808 (VECTOR_MODE_SUPPORTED_P): Define.
22809 (REG_CLASS_CONTENTS): Adjust.
22810 (SMALL_REGISTER_CLASSES): Adjust.
22811 (REG_ALLOC_ORDER): Adjust.
22812 (INDEX_REG_CLASS): Adjust.
22813 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
22814 (CONST_OK_FOR_LETTER_P): Adjust.
22815 (PREFERRED_RELOAD_CLASS): Adjust.
22816 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
22817 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
22818 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
22819 (FIRST_FP_PARM_REG): Adjust.
22820 (CALL_POPS_ARGS): Define.
22821 (FUNCTION_ARG_REGNO_P): Adjust.
22822 (struct sh_args): New fields.
22823 (GET_SH_ARG_CLASS): Adjust.
22824 (INIT_CUMULATIVE_ARGS): Adjust.
22825 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
22826 (FUNCTION_ARG_ADVANCE): Adjust.
22827 (FUNCTION_ARG): Adjust.
22828 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
22829 (FUNCTION_ARG_CALLEE_COPIES): Define.
22830 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
22831 (STRICT_ARGUMENT_NAMING): Define.
22832 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
22833 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
22834 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
22835 (SETUP_INCOMING_VARARGS): Adjust.
22836 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
22837 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
22838 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
22839 (SUBREG_OK_FOR_INDEX_P): Adjust.
22840 (EXTRA_CONSTRAINT_S): Update.
22841 (EXTRA_CONSTRAINT_T): New.
22842 (EXTRA_CONSTRAINT): Adjust.
22843 (GO_IF_LEGITIMATE_INDEX): Adjust.
22844 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
22845 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
22846 (MOVE_MAX): Adjust.
22847 (MAX_MOVE_MAX): Define.
22848 (Pmode): Adjust.
22849 (CONST_COSTS): Adjust.
22850 (REGISTER_MOVE_COST): Adjust.
22851 (BRANCH_COST): Adjust.
22852 (TEXT_SECTION_ASM_OP): Adjust.
22853 (DBX_REGISTER_NUMBER): Adjust.
22854 (ASM_OUTPUT_DOUBLE_INT): New.
22855 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
22856 (PREDICATE_CODES): Adjust.
22857 (PROMOTE_MODE): Adjust.
22858 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
22859 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
22860 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
22861 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
22862 (DR0_REG, DR2_REG, DR4_REG): Renumber.
22863 (TR0_REG, TR1_REG, TR2_REG): New.
22864 (XD0_REG): Renumber.
22865 (UNSPEC_COMPACT_ARGS): New.
22866 (type): Added pt and ptabs.
22867 (length): Default to 4 on SHmedia. Default pt length to 12
1e4e95d6 22868 and 20 on SHmedia32 and SHmedia64, respectively.
fa5322fa
AO
22869 (pt): New function unit.
22870 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
22871 Add whitespace between operands of SHmedia instructions.
22872 (movdicc): Fix.
22873 (adddi3_media, addsi3_media): Adjust constraints.
22874 (subsi3) [SHmedia]: Force operand 1 into a register.
22875 (udivsi3_i1_media, udivsi3_i4_media): New.
22876 (udivsi3): Support SHmedia.
22877 (divsi3_i1_media, divsi3_i4_media): New.
22878 (divsi3): Support SHmedia.
22879 (anddi3, iordi3, xordi3): Adjust constraints.
22880 (zero_extendhidi2, zero_extendqidi2): New.
22881 (extendsidi2, extendhidi2, extendqidi2): New.
22882 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
22883 (pop_e, pop_fpul, pop_4): Likewise.
22884 (movsi_media): Support FP and BT registers.
22885 (movsi_media_nofpu): New. Adjust splits to DImode.
22886 (lduw, ldub): Renamed to zero_extend* above.
22887 (movqi_media): Fix typo.
22888 (movdi_media): Support FP and BT registers.
22889 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
22890 (movdi_const_32bit): New.
22891 (shori_media): Require immediate operand. Use `u' for output.
22892 (movdf_media, movsf_media): Simplified.
22893 (movdf_media_nofpu, movsf_media_nofpu): New.
22894 (movdf, movsf): Adjust
22895 (movv2sf, movv2sf, movv16sf): New.
22896 (beq_media, beq_media_i): Adjust constraints. Don't use
22897 scratch BT register.
22898 (bne_media, bne_media_i): Likewise.
22899 (bgt_media, bgt_media_i): Likewise.
22900 (bge_media, bge_media_i): Likewise.
22901 (bgtu_media, bgtu_media_i): Likewise.
22902 (bgeu_media, bgeu_media_i): Likewise.
22903 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
22904 bunordered): Emit jump insn. Force operands to registers when
22905 needed.
22906 (jump_media, jump): Simplify.
22907 (call_compact, call_compact_rettramp): New.
22908 (call_value_compact, call_value_compact_rettramp): New.
22909 (call_media, call_value_media): Simplify.
22910 (sibcall_compact, sibcall_media): New.
22911 (call, call_value): Adjust for SHmedia and SHcompact.
22912 (sibcall, sibcall_value, untyped_call): Likewise.
22913 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
22914 (indirect_jump): Adjust for SHmedia.
22915 (casesi_jump_media): New.
22916 (nop): Re-enable for SHmedia.
22917 (call_site): Restrict to SH1.
22918 (casesi): Adjust for SHmedia.
22919 (casesi_shift_media, casesi_load_media): New.
22920 (return): Explicitly use PR register. Call return trampoline
22921 on SHcompact.
22922 (return_i): Explicitly use PR register.
22923 (shcompact_return_tramp, shcompact_return_tramp_i): New.
22924 (return_media): Adjust.
22925 (shcompact_incoming_args): New.
22926 (epilogue): Adjust.
22927 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
22928 (movstrsi): Disable on SH5.
22929 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
22930 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
22931 (subsf3, subsf3_media): Likewise.
22932 (mulsf3, mulsf3_media, mac_media): Likewise.
22933 (divsf3, divsf3_media): Likewise.
22934 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
22935 (floatsisf2, fux_truncsfsi2): Likewise.
22936 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
22937 constraints.
22938 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
22939 (cmpunsf_media, cmpsf): Likewise.
22940 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
22941 (abssf2, abssf2_media): Likewise.
22942 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
22943 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
22944 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
22945 (floatsidf2, fix_truncdfsi2): Likewise.
22946 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
22947 constraints.
22948 (cmpeqdf_media, cmpgtdf_media): Likewise.
22949 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
22950 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
22951 (absdf2, absdf2_media): Likewise.
22952 (extendsfdf2, extendsfdf2_media): Likewise.
22953 (truncsfdf2, truncsfdf2_media): Likewise.
22954 * config/sh/sh64.h: New file.
22955 * config/sh/t-sh64: New file.
22956 * config/sh/shmedia.h: New file.
22957 * config/sh/ushmedia.h: New file.
22958 * config/sh/sshmedia.h: New file.
22959 * configure.in: Added sh64-*-elf.
22960 * configure: Rebuilt.
22961 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
22962 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
22963 (reg_class_from_letter): Use `b' for TARGET_REGS.
22964 (print_operand): Support `%M', `%m', `AND' and
22965 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
22966 (andcosts): Adjust for SHmedia.
22967 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
22968 Likewise.
22969 (target_reg_operand): New function.
22970 * config/sh/sh-protos.h (target_reg_operand): Declare.
22971 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
22972 FP registers on SH5.
22973 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
22974 on SH4.
22975 (TARGET_REGISTER_P): New macro.
22976 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
22977 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
22978 (EXTRA_CONSTRAINT_S): New macro.
22979 (EXTRA_CONSTRAINT): Adjust.
22980 (FLOAT_TYPE_SIZE): Define to 32.
22981 (Pmode): DImode on SHmedia.
22982 (CONST_COSTS): Adjust for SHmedia literals.
22983 (PREDICATE_CODES): Added target_reg_operand.
22984 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
22985 * config/sh/sh.md: Remove all attrs from SHmedia insns.
22986 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
22987 (cmpdi): Accept SHmedia.
22988 (movdicc_false, movdicc_true): New insns.
22989 (movdicc): New expand.
22990 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
22991 no_new_pseudos.
22992 (addsi3_media): Match `S' constraint.
22993 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
22994 (negdi2): Expand for SHmedia.
22995 (one_cmpldi2): New expand.
22996 (zero_extendsidi2): Change from expand to insn.
22997 (extendsidi2): Add constraints.
22998 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
22999 LD/ST address. Fix SI immediate loading split.
23000 (movhi_media, movqi_media, lduw, ldub): New insns.
23001 (movhi, movqi): Accept SHmedia.
23002 (shori_media, movdi_media): Relax input constraints. Split
23003 symbolic constants.
23004 (movdf_media, movsf_media): New insn. New split to movdi.
23005 (movdf, movsf): Match on SHmedia.
23006 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
23007 bgeu_media): New insns and splits. New insns with `_i' suffix.
23008 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
23009 (bunordered): New expand.
23010 (jump_compact): Renamed from `jump'.
23011 (jump_media): New insn.
23012 (jump): New expand.
23013 (call_media, call_value_media): New insns.
23014 (call, call_value): Adjust.
23015 (indirect_jump_compact): Renamed from `indirect_jump'.
23016 (indirect_jump_media): New insn.
23017 (indirect_jump): New expand.
23018 (untyped_call, return): Accept SHmedia.
23019 (return_media): New insn.
23020 (prologue, epilogue, blockage): Accept SHmedia.
23021 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
23022 (sunordered): New expand.
23023 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
23024 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
23025 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
23026 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
23027 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
23028 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
23029 abssf2_media): New insns.
23030 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
23031 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
23032 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
23033 floatdidf2, floatsidf2_media, fix_truncdfdi2,
23034 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
23035 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
23036 absdf2_media): New insns.
23037 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
23038 (extendsfdf2_media, truncdfsf2_media): New insns.
23039 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
23040 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
23041 * config/sh/sh.h (CONST_OK_FOR_J): Document.
23042 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
23043 * config/sh/sh.md (adddi3): New expand.
23044 (adddi3_media, adddi3z_media): New insns.
23045 (adddi3_compact): Renamed from adddi3.
23046 (addsi3_media): Use add.l r63 to add constant zero.
23047 (subdi3): New expand.
23048 (subdi3_media): New insn.
23049 (subdi3_compact): Renamed from subdi3.
23050 (mulsidi3): New expand.
23051 (mulsidi3_media): New insn.
23052 (mulsidi3_compact): Renamed from mulsidi3.
23053 (umulsidi3): New expand.
23054 (umulsidi3_media): New insn.
23055 (umulsidi3_compact): Renamed from umulsidi3.
23056 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
23057 (ashlsi3, ashrsi3, lshrsi3): Use them.
23058 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
23059 (ashldi3, ashrdi3, lshrdi3): Use them.
23060 (zero_extendsidi2): New expand.
23061 (extendsidi2): New insn.
23062 (movsi_media): New insn. Split to movdi to load constants.
23063 (movsi): Enable for shmedia.
23064 (movdi_media): New insn. Use shori_media to load wide constants.
23065 (short_media): New insn.
23066 (movdi): Enable for shmedia.
23067 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
23068 * config/sh/sh.h (CPP_SPEC): Added `m5'.
23069 (SUBTARGET_CPP_SPEC): Added `!m5'.
23070 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
23071 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
23072 to all other SH variants.
23073 (TARGET_DEFAULT): Set to SH1_BIT.
23074 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
23075 (BITS_PER_WORD): Raise to 64 on shmedia.
23076 (MAX_BITS_PER_WORD): Change to 64.
23077 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
23078 (INT_TYPE_SIZE): Keep as 32.
23079 (UNITS_PER_WORD): Raise to 8 on shmedia.
23080 (MIN_UNITS_PER_WORD): Keep as 4.
23081 (POINTER_SIZE): Raise to 64 on shmedia.
23082 (CONST_OK_FOR_J): New macro.
23083 (CONST_OK_FOR_LETTER_P): Use it.
23084 (processor_type): Add PROCESSOR_SH5.
23085 * config/sh/sh.md: Conditionalize all expands, insns and
23086 splits to TARGET_SH1.
23087 (cpu): Added sh5.
23088 (addsi3_compact): Renamed from...
23089 (addsi3): Now an expand.
23090 (addsi3_media, subsi3_media): New insns.
23091 (subsi3): Don't negate constants with SHmedia.
23092
e4ec2cac
AO
23093 * hooks.c: New file.
23094 * hooks.h: New file.
23095 * Makefile.in (HOOKS_H): New.
23096 (TARGET_DEF_H): Added $(HOOKS_H).
23097 (OBJS): Added hooks.o.
23098 (cfgcleanup.o, bb-reorder.o): Added target.h.
23099 (hooks.o): Added dependencies.
23100 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
23101 (TARGET_INITIALIZER): this.
23102 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
23103 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
23104 * bb-reorder.c: Include target.h.
23105 (reorder_basic_blocks): Skip if cannot modify jumps.
23106 * cfgcleanup.c: Include target.h.
23107 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
23108
246a46e0
CD
231092002-02-08 Chris Demetriou <cgd@broadcom.com>
23110
831c4e87
KC
23111 * config/mips/mips.md (casesi_internal, casesi_internal_di):
23112 Protect jump delay slot instructions with .set noreorder and
23113 .set nomacro.
246a46e0
CD
23114
231152002-02-08 Chris Demetriou <cgd@broadcom.com>
6a5ea3f4
CD
23116
23117 * config/mips/mips.md (casesi_internal_di): Calculate
23118 the index into the target offset table correctly.
23119
fdf473ae
RH
231202002-02-08 Richard Henderson <rth@redhat.com>
23121
23122 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
23123 * final.c (output_addr_const): Accept and discard SUBREG.
23124 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
23125 mark them unknown instead.
23126 (simplify_subtraction): Handle RTX_UNKNOWN.
23127 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
23128
c50503ac
DE
231292002-02-08 David Edelsohn <edelsohn@gnu.org>
23130
23131 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
23132
3660d217
RH
231332002-02-08 Richard Henderson <rth@redhat.com>
23134
23135 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
23136
56547299
AJ
231372002-02-08 Andreas Jaeger <aj@suse.de>
23138
23139 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
23140 * config/i386/t-linux64: New file.
23141
1cf537c5
JJ
231422002-02-08 Jakub Jelinek <jakub@redhat.com>
23143
23144 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
23145 * c-parse.in (compstmt): Clear last_expr_type.
23146
5c7f5a5f
RH
231472002-02-07 Richard Henderson <rth@redhat.com>
23148
23149 * loop.c (strength_reduce): Sink final_value when not
23150 eliminating a biv.
23151
b1138bf3
DB
231522002-02-07 David O'Brien <obrien@FreeBSD.org>
23153
23154 * config/sparc/freebsd.h: Fix mismatched spec {.
23155
b6878a45
RH
231562002-02-07 Richard Henderson <rth@redhat.com>
23157
23158 * cfgrtl.c: Include recog.h and insn-config.h.
23159 (keep_with_call_p): Fix general_operand invocation.
23160 * Makefile.in (cfgrtl.o): Update dependencies.
23161
ae19f5ef
KH
231622002-02-07 Kazu Hirata <kazu@hxi.com>
23163
23164 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
23165 comment. Accept HImode only if TARGET_H8300.
23166
b137f9fc
EC
231672002-02-07 Eric Christopher <echristo@redhat.com>
23168
23169 * config/mips/crtn.asm: Cleanup #ifdefs.
23170
231712002-02-07 Eric Christopher <echristo@redhat.com>
23172
23173 * config/mips/crti.asm: Add changes for mips16. mips16 uses
23174 register 7 as RA instead of $31.
23175 * config/mips/crtn.asm: Ditto.
23176 * config/mips/mips.c (mips_move_2words): Add case for
23177 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
23178 (compute_frame_size): Fix typo.
23179 (save_restore_insns): Ditto. Make documentation about using
23180 register $7 as return register more precise.
23181 (mips_expand_epilogue): Fix comment. Add code to work around not
23182 being able to add to the stack pointer directly.
23183 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
23184 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
23185 epilogue.
23186
768070a0
TR
231872002-02-07 Tom Rix <trix@redhat.com>
23188
b137f9fc 23189 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
768070a0
TR
23190 immediates in ldu and stdu DS opcode field.
23191 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
23192 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
23193 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
23194
225909c3
JS
231952002-02-07 Jeff Sturm <jsturm@one-point.com>
23196
23197 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
23198 offset for stack bias.
23199
15fae023
L
232002002-02-07 H.J. Lu <hjl@gnu.org>
23201
23202 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
23203
fde5badd
UW
232042002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
23205
23206 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
23207
162f023b
JH
23208Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
23209
23210 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
23211 * i386.c (x86_order_regs_for_local_alloc): New global function.
23212 * i386.h (REG_ALLOC_ORDER): CLeanup.
23213 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
23214
9b462c42
RH
232152002-02-07 Richard Henderson <rth@redhat.com>
23216
85aa876c 23217 PR optimization/2463
9b462c42
RH
23218 * alias.c (find_base_value): Recall base values for fixed hard regs.
23219 * loop.c (loop_regs_update): Don't use single_set on non-insns.
23220
06e455a9
AO
232212002-02-07 Alexandre Oliva <aoliva@redhat.com>
23222
23223 * config/mips/mips.md (define_delay) [mips16]: Adjust required
23224 length.
23225
edd1967d
RH
232262002-02-06 Richard Henderson <rth@redhat.com>
23227
23228 PR c/5609
23229 * stmt.c (resolve_operand_name_1): Take more care with mixed
23230 named and unnamed operands.
23231
a2cd028f
JJ
232322002-02-06 Janis Johnson <janis187@us.ibm.com>
23233 Jan Hubicka <jh@suse.cz>
23234
23235 * loop.c (remove_constant_addition): Avoid clobbering a shared
23236 CONST expression.
23237
e8487c04
UW
232382002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
23239
23240 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
23241 * config/s390/t-linux64: New file.
23242 * config/s390/libgcc-glibc.ver: New file.
23243
58d10f89
UW
232442002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
23245
23246 * config/s390/linux64.h: Delete file.
23247 * config/s390/s390x.h: New file.
23248 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
23249 as target header file.
23250 * config/s390/linux.h (TARGET_VERSION): Define depending on
23251 DEFAULT_TARGET_64BIT.
23252 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
23253 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
23254 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
23255 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
23256 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
23257 (EXTRA_SPEC): New define.
23258 * config/s390/s390.h (TARGET_VERSION): Define depending on
23259 DEFAULT_TARGET_64BIT.
23260 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
23261
5ce89b2e
JM
232622002-02-06 Jason Merrill <jason@redhat.com>
23263
23264 * c-decl.c (finish_function): Warn about a non-void function with
23265 no return statement and no abnormal exit.
23266 (current_function_returns_abnormally): New variable.
23267 (start_function): Clear it.
23268 (struct c_language_function): Add returns_abnormally.
23269 (push_c_function_context): Save it.
23270 (pop_c_function_context): Restore it.
23271 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
23272 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
23273 an explicit return type.
23274 * c-tree.h: Declare current_function_returns_abnormally.
23275 (C_FUNCTION_IMPLICIT_INT): New macro.
23276 * c-typeck.c (build_function_call): Set it.
23277 (c_expand_return): Set current_function_returns_value even if the
23278 value is erroneous.
23279
caaf2272
JJ
232802002-02-06 Jakub Jelinek <jakub@redhat.com>
23281
23282 PR c/5420:
23283 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
23284 unsafe for reevaluation.
23285
d5129288
JJ
232862002-02-06 Jakub Jelinek <jakub@redhat.com>
23287
23288 PR c/5482:
23289 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
23290 EXPR_STMT, but COMPOUND_STMT, recurse into it.
23291
7fb75099
RH
232922002-02-06 Richard Henderson <rth@redhat.com>
23293
23294 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
23295 be a general_operand. Dest for function value must be a pseudo.
23296
d3a8b6a6
NC
232972002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
23298
23299 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
23300 as SYMBOL_REFs from the constant pool.
23301
3c1299c5
AO
233022002-02-06 Alexandre Oliva <aoliva@redhat.com>
23303
23304 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
23305 passed by invisible reference.
23306
c2c9f6c9
RH
233072002-02-05 Richard Henderson <rth@redhat.com>
23308
23309 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
23310
a824924d
HPN
233112002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
23312
23313 Implement using "base addresses" in insn operands as default.
23314 * config/mmix/mmix.c (mmix_conditional_register_usage): if
23315 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
23316 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
23317 used to read the rtx value.
23318 (mmix_target_asm_function_epilogue): Fix spacing.
23319 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
23320 (mmix_legitimate_address): Ditto.
23321 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
23322 should be loaded with a GETA insn. Don't allocate needless extra
23323 char for nul termination and fix misleading comment.
23324 (mmix_print_operand_address): Handle constants if
23325 TARGET_BASE_ADDRESSES.
23326 (mmix_output_register_setting): Use base addressing if
23327 TARGET_BASE_ADDRESSES and the number of insns is 3.
23328 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
23329 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
23330 to use R as constraint, add LDA to match s.
23331 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
23332 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
23333 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
23334 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
23335 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
23336 order with other fixed registers.
23337 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
23338 other parameter/call-clobbered registers.
23339 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
23340 -mbase-addresses, -mno-base-addresses.
23341 (MMIX Options): Ditto.
23342
73c342b9
JDA
233432002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
23344
23345 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
23346
ef238c58
AH
233472002-02-06 Aldy Hernandez <aldyh@redhat.com>
23348
831c4e87 23349 * config/rs6000/altivec.h: Change elem to _S_elem.
ef238c58 23350
ad08e60e
JT
233512002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
23352
23353 * config/netbsd.h (WCHAR_TYPE): Define.
23354 (WCHAR_TYPE_SIZE): Ditto.
23355 (WINT_TYPE): Ditto.
23356 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
23357 (WCHAR_UNSIGNED): Ditto.
23358 (WCHAR_TYPE_SIZE): Ditto.
23359 (WINT_TYPE): Ditto.
23360 * config/arm/netbsd.h: Likewise.
23361 * config/i386/netbsd-elf.h: Likewise.
23362 * config/i386/netbsd.h: Likewise.
23363 * config/m68k/netbsd-elf.h: Likewise.
23364 * config/m68k/netbsd.h: Likewise.
23365 * config/ns32k/netbsd.h: Likewise.
23366 * config/sparc/netbsd.h: Likewise.
23367 * config/vax/netbsd.: Likewise.
23368
f913c102
AO
233692002-02-05 Alexandre Oliva <aoliva@redhat.com>
23370
23371 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
23372 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
23373 (TARGET_INITIALIZER): this.
23374 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
23375 (BITFIELD_NBYTES_LIMITED): Markup fix.
23376 * tree.h (default_ms_bitfield_layout_p): Declare.
23377 (record_layout_info): Added prev_field.
23378 * tree.c (default_ms_bitfield_layout_p): New fn.
23379 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
23380 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
23381 * stor-layout.c: Include target.h.
23382 (start_record_layout): Initialize prev_field.
23383 (place_field): Handle MS bit-field layout, and disregard
23384 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
23385 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
23386 * Makefile.in (stor-layout.o): Adjust dependencies.
23387
c13db5d1
JM
233882002-02-05 Jason Merrill <jason@redhat.com>
23389
c13db5d1
JM
23390 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
23391
4505024e
AJ
233922002-02-05 Andreas Jaeger <aj@suse.de>
23393
23394 * crtstuff.c: Fix comments.
23395
794ad79d
RH
233962002-02-05 Richard Henderson <rth@redhat.com>
23397
2e279a9b
RH
23398 PR fortran/3393
23399 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
23400 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
23401
794ad79d
RH
23402 PR fortran/3392
23403 * config/mips/mips.c (function_arg): Handle TImode.
23404 (function_arg_advance): Likewise.
23405
8f909017
AH
234062002-02-05 Aldy Hernandez <aldyh@redhat.com>
23407
c13db5d1
JM
23408 * config/rs6000/altivec.h (vec_step_help): Rename to
23409 __vec_step_help.
8f909017 23410
66daa9e3
AH
234112002-02-05 Aldy Hernandez <aldyh@redhat.com>
23412
c13db5d1 23413 * config/rs6000/altivec.h: Fix typos.
66daa9e3 23414
2696e97b
JT
234152002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
23416
23417 * config/arm/netbsd.h: Correct a comment.
23418
3deb2758
AH
234192002-02-05 Aldy Hernandez <aldyh@redhat.com>
23420
c13db5d1
JM
23421 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
23422 building void typed builtins.
3deb2758 23423
c13db5d1
JM
23424 * config/rs6000/altivec.h (vec_ld*): Fix typos.
23425 (vec_step): Implement for C++.
3deb2758 23426
c13db5d1 23427Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2c79137a
RK
23428
23429 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
23430
ebbb0a63
RH
234312002-02-04 Richard Henderson <rth@redhat.com>
23432
23433 * combine.c (nonzero_bits): Re-introduce special case for
23434 sp/fp/ap wrt REGNO_POINTER_ALIGN.
23435
ae4b4a02
AH
234362002-02-05 Aldy Hernandez <aldyh@redhat.com>
23437
c13db5d1
JM
23438 * doc/extend.texi: Warn about unsupported usage of altivec
23439 builtins.
ae4b4a02 23440
c13db5d1
JM
23441 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
23442 (altivec_predicate_*): New.
ae4b4a02 23443
c13db5d1
JM
23444 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
23445 Add C++ version of vec_*() functions.
ae4b4a02 23446
c13db5d1
JM
23447 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
23448 (bdesc_2arg): Remove altivec predicates.
23449 (altivec_expand_builtin): Handle predicates.
23450 (altivec_init_builtins): Handle predicates.
23451 (altivec_expand_predicate_builtin): New.
ae4b4a02 23452
f6bcf44c
JDA
234532002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
23454
23455 * pa.c (DO_FRAME_NOTES): Move forward.
23456 (store_reg): Revise handling of frame notes.
23457 (load_reg): Likewise.
23458 (set_reg_plus_d): Likewise.
23459 (hppa_expand_prologue): Likewise.
23460 (hppa_expand_epilogue): Likewise.
b137f9fc 23461
703b0080
JDA
234622002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
23463
23464 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
23465
6f9fdf4d
JJ
234662002-02-04 Jakub Jelinek <jakub@redhat.com>
23467
23468 PR c/4475, c++/3780:
23469 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
23470 * c-common.h (SWITCH_TYPE): Define.
23471 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
23472 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
23473 Rename spareness variable to sparseness.
23474 (expand_end_case_type): Renamed from expand_end_case, use orig_type
23475 if non-NULL instead of TREE_TYPE (orig_index).
23476 * tree.h (expand_end_case_type): Renamed from expand_end_case.
23477 (expand_end_case): Define using expand_end_case_type.
23478 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
23479 to expand_end_case_type.
23480 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
23481
79109502
JDA
234822002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
23483
23484 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
23485 (BIGGEST_ALIGNMENT): Change to 128.
23486
e62a5987
JDA
234872002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
23488
23489 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
23490
219f24a4
JDA
234912002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
23492
23493 * pa.md (call_internal_reg_64bit): Remove unused variable.
23494
3cb66fd7
NC
234952002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
23496
23497 * config/arm/arm.h (machine_function): Add uses_anonymous_args
23498 field.
831c4e87 23499 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3cb66fd7 23500 * config/arm/arm.c (current_function_anonymous_args): Delete,
831c4e87
KC
23501 replace uses with cfun->machine->uses_anonymous_args.
23502 (arm_reorg): Do not reset uses_anonymous_args.
3cb66fd7
NC
23503
23504 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
23505 any geenral register.
b137f9fc 23506
5d5603e2 235072001-02-04 Bernd Schmidt <bernds@redhat.com>s
24c545ff
BS
23508
23509 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
23510 the entry block.
23511
563c12b0
RH
235122002-02-04 Richard Henderson <rth@redhat.com>
23513
23514 * combine.c (force_to_mode): Remove STACK_BIAS code.
23515 (nonzero_bits): Likewise. Replace sp/fp special case with
23516 REGNO_POINTER_ALIGN.
23517
23518 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
23519 (HARD_FRAME_POINTER_REGNUM): New.
23520 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
23521 (FIXED_REGS, CALL_USED_REGS): Update.
23522 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
23523 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
23524 (HARD_REGNO_NREGS): Update for SFP.
23525 (STACK_POINTER_OFFSET): Include bias here ...
23526 (FIRST_PARM_OFFSET): ... not here.
23527 (STACK_BIAS): Remove.
23528 (INIT_EXPANDERS): New.
23529 (STARTING_FRAME_OFFSET): Do not include bias.
23530 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
23531 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
23532 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
23533 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
23534 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
23535 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
23536 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
23537 (MUST_SAVE_REGISTER): Likewise.
23538 (sparc_flat_function_prologue): Likewise.
23539 (sparc_flat_function_epilogue): Likewise.
23540 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
23541 (sparc_init_modes): SFP is GENERAL_REGS.
23542 (sparc_builtin_saveregs): SFP does not have bias applied.
23543
14691f8d
RH
235442002-02-04 Richard Henderson <rth@redhat.com>
23545
23546 * config/alpha/alpha.c (current_function_is_thunk): Don't check
23547 current_function_is_thunk.
23548 (alpha_sa_mask): Distinguish between current_function_is_thunk
23549 called from ASM_OUTPUT_MI_THUNK and not.
23550 (alpha_does_function_need_gp): Thunks always need gp.
23551 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
23552 (alpha_output_mi_thunk_osf): New.
23553 * config/alpha/alpha-protos.h: Update.
23554 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
23555
af702de8
RS
235562002-02-04 Richard Sandiford <rsandifo@redhat.com>
23557
23558 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
23559 function types, not when they're taken away.
23560
5b1cacd8
JL
23561Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
23562
23563 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
23564 CODE_LABEL and jump table when replacing a table jump with a
23565 simple jump.
23566
f3e9edff
UW
235672002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
23568
23569 * config/s390/s390-protos.h (legitimize_la_operand,
23570 s390_secondary_input_reload_class, s390_plus_operand,
23571 s390_expand_plus_operand): Add prototypes.
23572
23573 config/s390/s390.c (s390_secondary_input_reload_class,
23574 s390_plus_operand, s390_expand_plus_operand): New functions.
23575
23576 (struct s390_address): New member 'pointer'.
23577 (s390_decompose_address): Compute it.
23578 (legitimate_la_operand_p): Use it.
23579 (legitimize_la_operand): New function.
23580 (movti, movdi, movdf splitters): Call it.
23581
23582 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
23583 (PREDICATE_CODES): Add s390_plus_operand.
23584
23585 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
23586 (la_ccclobber): Allow GENERAL_REGS as output operand.
23587
23588 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
23589 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
23590 (*la_64, *la_31, reload_indi, reload_insi): ... these.
23591
3c9a08ec
UW
235922002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
23593
23594 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
23595 register names for regular asm () construct.
23596
ac300a45
JJ
235972002-02-04 Jakub Jelinek <jakub@redhat.com>
23598
23599 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
23600 registers.
23601
fa852403
JJ
236022002-02-04 Jakub Jelinek <jakub@redhat.com>
23603
23604 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
23605 pat for recog.
23606
fecaac37
HP
236072002-02-04 Hartmut Penner <hpenner@de.ibm.com>
23608
831c4e87
KC
23609 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
23610 constant pool to be identical by string address and index.
fecaac37 23611
10c45943
AG
236122002-02-04 Anthony Green <green@redhat.com>
23613
23614 * output.h (SECTION_OVERRIDE): Define.
23615 * varasm.c (named_section): Obey SECTION_OVERRIDE.
23616
69474c3c
JT
236172002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
23618
23619 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
23620 by existing arm*-*-netbsd* (a.out) target.
23621 (ns32k-*-netbsdelf*): Likewise.
23622 (sparc-*-netbsdelf*): Likewise.
23623 (vax-*-netbsdelf*): Likewise.
23624
939a46f6 236252002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
3b56934f
CF
23626
23627 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
23628 headers and libobjc headers.
23629
236302002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
23631
23632 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
23633 (_mingw.h): Remove duplicate include.
23634
2fd95d71
JT
236352002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
23636
23637 * config.gcc: Set cpu_type to m68k for 68010, as well.
23638 (m68010-*-netbsdelf*): New...
23639 (m68k*-*-netbsdelf*): ...targets.
23640 * config/m68k/netbsd-elf.h: New file.
23641
0ea6f6a0
KH
236422002-02-02 Kazu Hirata <kazu@hxi.com>
23643
23644 * config/h8300/h8300.c (hand_list): Move inside function_arg.
23645
cbf1b2da
KH
236462002-02-02 Kazu Hirata <kazu@hxi.com>
23647
23648 * config/h8300/h8300.c (h8_push_ops): Move inside
23649 h8300_init_once.
23650 (h8_pop_ops): Likewise.
23651 (h8_move_ops): Likewise.
23652
0869f126
KH
236532002-02-02 Kazu Hirata <kazu@hxi.com>
23654
23655 * config/h8300/h8300.c (os_task): Make it static.
23656 (monitor): Likewise.
23657 (pragma_saveall): Likewise.
23658
90e65b70
AO
236592002-02-02 Alexandre Oliva <aoliva@redhat.com>
23660
23661 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
23662 constant is a valid sign-extension for Pmode.
23663
9cbcd983
KH
236642002-02-02 Kazu Hirata <kazu@hxi.com>
23665
23666 * config/h8300/h8300.c: Fix formatting.
23667
7a27efc4
KH
236682002-02-02 Kazu Hirata <kazu@hxi.com>
23669
23670 * config/h8300/h8300.md: Fix formatting.
23671
54175a44
KH
236722002-02-02 Kazu Hirata <kazu@hxi.com>
23673
23674 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
23675 predicates of operands[1]. Split the patterns for each
23676 processor variant.
23677
eceb1755
KH
236782002-02-02 Kazu Hirata <kazu@hxi.com>
23679
23680 * config/h8300/h8300.md (xor patterns): Tighten the predicates
23681 of operands[1] to register_operand.
23682
0fef3fd0
NB
236832002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
23684
23685 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
23686 * cpphash.c (_cpp_init_hashtable): Similarly.
23687 * cppinit.c (cpp_create_reader): Default the signed_char flag.
23688 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
23689 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
23690 (cpp_handle_option): Handle the new options.
23691 * cpplex.c (cpp_interpret_charconst): Use new flag.
23692 * cpplib.h (struct cpp_options): New member signed_char.
23693 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
23694 (cpp_options): Handle -fsigned-char and -funsigned-char.
23695 (static_specs): Remove signed_char_spec.
23696 (do_spec1): Don't handle %c.
23697 * system.h: Poison SIGNED_CHAR_SPEC.
23698 * tradcif.y (yylex): Use flag_signed_char.
23699 * tradcpp.h (flag_signed_char): New.
23700 * tradcpp.c (flag_signed_char): New.
23701 (main): Handle new command-line options.
23702 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
23703config:
23704 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
23705 * avr/avr.h: Remove old comments.
23706 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
23707 (CC1_SPEC): Pass -fsigned-char if -mic*.
23708 (SIGNED_CHAR_SPEC): Remove.
23709doc:
23710 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
23711
0617ed52
EC
237122002-02-01 Eric Christopher <echristo@redhat.com>
23713
23714 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
23715 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
23716 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
23717 (ASM_OUTPUT_REG_POP): Ditto.
23718
dfd48d76
NB
237192002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
23720
23721 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
23722 patch.
23723
4a23409e
JJ
237242002-02-02 Jakub Jelinek <jakub@redhat.com>
23725
23726 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
23727
d3c52658
JJ
237282002-02-02 Jakub Jelinek <jakub@redhat.com>
23729
23730 PR c/5304:
23731 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
23732 unconditionally.
23733
02c5a3bd
JJ
237342002-02-01 Janis Johnson <janis187@us.ibm.com>
23735
23736 * cfganal.c: Include tm_p.h.
23737 (keep_with_call_p): Fix the test that determines if a register holds
23738 the return value of a call.
23739
3968de80
DD
237402002-02-01 DJ Delorie <dj@redhat.com>
23741
23742 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
23743 we are given conflicting registers, switch to the other one we
23744 had allocated for us.
23745 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
23746 as TImode so we know when the "other" register is available.
23747
1338ea6c
DB
237482002-02-01 David O'Brien <obrien@FreeBSD.org>
23749
23750 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
23751 sparc/sparc_bi.h.
23752
f015be23
JJ
237532002-02-01 Janis Johnson <janis187@us.ibm.com>
23754
23755 * cfganal.c (keep_with_call_p): New function.
23756 (flow_call_edges_add): Prevent splitting a block between a call and
23757 a single-set instruction that should be kept in the same block.
23758
63708ffc
CR
237592002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
23760
23761 * doc/install.texi (avr): Update outdated URL.
23762
5ee4950e
AH
237632002-01-30 Andrew Haley <aph@cambridge.redhat.com>
23764
831c4e87
KC
23765 * config/stormy16/stormy16.md (pushqi): New.
23766 (popqi): New.
23767 (pushhi): New.
23768 (pophi): New.
23769 (movhi): Remove stack operands.
23770 (movqi): Likewise.
23771 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
23772 nonimmediate_nonstack_operand.
23773 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
23774 New.
23775 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
23776 New.
5ee4950e 23777
b88c0704
JM
237782002-01-31 Jason Merrill <jason@redhat.com>
23779
23780 * Makefile.in (c-parse.c): Handle .output file.
23781 * objc/Make-lang.in (objc-parse.c): Likewise.
23782
ac282977
AO
237832002-02-01 Alexandre Oliva <aoliva@redhat.com>
23784
23785 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
23786 the -me[lb] option is given. Don't output the default flag
23787 twice.
23788
bebc7e8b
ZW
237892002-01-31 Zack Weinberg <zack@codesourcery.com>
23790
23791 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
23792 the primary source file; this has not been done yet.
23793 * c-decl.c (c_expand_body): Reset input_filename from
23794 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
23795
5809eb5f
KH
237962002-01-31 Kazu Hirata <kazu@hxi.com>
23797
23798 * rtlanal.c (subreg_regno_offset): Do not use
23799 SUBREG_REGNO_OFFSET.
23800 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
23801 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
23802
8512bbd7
JM
238032002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
23804
23805 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
23806 version rather than GNATS version in --version output.
23807
74cb3cc8
RS
238082002-01-31 Richard Sandiford <rsandifo@redhat.com>
23809
23810 * ifcvt.c (noce_process_if_block): Make a copy of the destination
23811 when copying back from a temporary.
23812
874b5b14
RH
238132002-01-30 Richard Henderson <rth@redhat.com>
23814
23815 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
23816 and new_dest are the same.
23817
e803a64b
RH
238182002-01-30 Richard Henderson <rth@redhat.com>
23819
89cf7be5 23820 PR opt/5076
e803a64b
RH
23821 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
23822 * rtl.c (note_insn_name): Update.
23823 * emit-rtl.c (remove_unnecessary_notes): Kill it.
23824 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
23825 to perform loop rotation.
23826 (expand_exit_loop_top_cond): New.
23827 * tree.h (expand_exit_loop_top_cond): Declare it.
23828 * c-semantics.c (genrtl_while_stmt): Use it.
23829 (genrtl_for_stmt): Likewise.
23830
0b51254d
AO
238312002-01-30 Alexandre Oliva <aoliva@redhat.com>
23832
23833 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
23834 arguments to 64-bit boundaries on 64-bit ABIs.
23835
71cef493
SE
238362002-01-30 Steve Ellcey <sje@cup.hp.com>
23837
23838 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
23839
6169e5fd
JM
238402002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
23841
23842 * c-decl.c (grokdeclarator): Handle type being a typedef for an
23843 invalid type.
23844
86f808dc
DB
238452002-01-30 David O'Brien <obrien@FreeBSD.org>
23846
23847 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
23848 * config/sparc/sparc_bi.h: Remove file.
23849 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
23850
5748ebeb
RH
238512002-01-30 Richard Henderson <rth@redhat.com>
23852
23853 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
23854
20d32cc2
ZW
238552002-01-30 Zack Weinberg <zack@codesourcery.com>
23856
23857 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
23858
b88c0704 238592002-01-30 Jason Merrill <jason@redhat.com>
6bb28965
JM
23860
23861 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
23862 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
23863 (reg_save): Use DW_CFA_offset_extended_sf instead.
23864
23865 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
23866
37060e78
JJ
238672002-01-29 Jakub Jelinek <jakub@redhat.com>
23868
23869 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
23870 in cselib_lookup.
23871
d18dba68
AH
238722002-01-29 Aldy Hernandez <aldyh@redhat.com>
23873
bebc7e8b
ZW
23874 * rs6000.md ("*call_value_local32"): Remove constraints.
23875 ("*call_value_local64"): Same.
23876 ("*call_value_indirect_nonlocal_aix32"): Same.
23877 ("*call_value_nonlocal_aix32"): Same.
23878 ("*call_value_indirect_nonlocal_aix64"): Same.
23879 ("*call_value_nonlocal_aix64"): Same.
23880 ("*call_value_nonlocal_sysv"): Same.
d18dba68 23881
80a8aac6
RH
238822002-01-29 Richard Henderson <rth@redhat.com>
23883
23884 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
23885
12beba6f
RH
238862002-01-29 Richard Henderson <rth@redhat.com>
23887
23888 * expr.c (force_operand): Ignore flag_pic for detecting pic
23889 address loads.
23890 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
23891 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
23892 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
23893 instead of open-coded loop.
23894 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
23895 be fixed when in use.
23896
2583081e
RH
238972002-01-29 Richard Henderson <rth@redhat.com>
23898
23899 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
23900 * sched-rgn.c (propagate_deps): Update them.
23901 * sched-deps.c (sched_analyze_insn): Update them. Flush the
23902 clobbers list when either gets too long.
23903
3b8d200e
JJ
239042002-01-29 Jakub Jelinek <jakub@redhat.com>
23905
23906 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
23907 and INDEX_REGS the same as GENERAL_REGS.
23908 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
23909
2d3115eb
NB
239102002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
23911
bebc7e8b 23912 * tree.c (build_nonstandard_integer_type): Correct prototype.
2d3115eb 23913
ecbe845e
UW
239142002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
23915
bebc7e8b 23916 * config/s390/s390.md (movstrsico, movstrdix_64,
ecbe845e 23917 movstrsix_31): Remove, replace by ...
bebc7e8b 23918 (movstrdi_short, movstrsi_short, movstrdi_long,
ecbe845e
UW
23919 movstrsi_long): ... these. New.
23920 (movstrdi, movstrsi): Adapt.
23921
23922 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
bebc7e8b 23923 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
ecbe845e
UW
23924 Remove unnecessary CC clobber.
23925 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
23926 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
23927
23928 (divmoddi4): Don't partially initialize TImode register.
23929
0b32fca5
GK
239302002-01-29 Geoffrey Keating <geoffk@redhat.com>
23931
23932 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
23933
08ef5437
RH
239342002-01-29 Richard Henderson <rth@redhat.com>
23935
23936 * flow.c (print_rtl_and_abort): Remove.
23937 (print_rtl_and_abort_fcn): Remove.
23938 (verify_local_live_at_start): Use dump_bb instead.
23939 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
23940 (verify_wide_reg_1): Return 2 on mode test failure.
23941
8469e54e
NB
239422002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
23943
23944 PR c/3325, c/3326, c/2511, c/3347
23945 * c-decl.c (enum_decl_context): Remove BITFIELD.
23946 (grokdeclarator): Take bitfield width as an input.
23947 Ensure bitfields are given the correct type. Perform
23948 bitfield width validation with build_bitfield_integer_type
23949 rather than waiting for finish_struct.
23950 (grok_typename, grok_typename_in_parm_context, start_decl,
23951 push_parmdecl, grokfield, start_function): Update calls to
23952 grokdeclarator.
23953 (build_bitfield_integer_type): New function.
23954 (finish_struct): Move bitfield validation to grokdeclarator
bebc7e8b 23955 and build_bitfield_integer_type.
8469e54e
NB
23956 * tree.c (build_nonstandard_integer_type): New function.
23957 * tree.h (build_nonstandard_integer_type): New prototype.
23958objc:
23959 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
23960
ffdeea47
JJ
239612002-01-29 Jakub Jelinek <jakub@redhat.com>
23962
23963 PR other/1502:
23964 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
23965 don't ignore unrecognized -W* options.
23966 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
23967 * cpplib.h (cpp_handle_option): Adjust prototype.
23968 * c-decl.c (c_decode_options): Pass 0 as last argument to
23969 cpp_handle_option.
23970
23971 PR c/2896:
23972 * gcc.c (cpp_unique_options): Split from cpp_options.
23973 (cpp_options): Source cpp_unique_options.
23974 (default_compilers): Use cpp_unique_options instead of cpp_options
23975 when used together with cc1_options.
23976 (static_specs): Add cpp_unique_options.
23977 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
23978 when used together with cc1_options.
23979
1a275226
KH
239802002-01-29 Kazu Hirata <kazu@hxi.com>
23981
23982 * config/h8300/h8300-protos.h: Update the prototype of
23983 output_a_shift.
23984 * config/h8300/h8300.c (output_a_shift): Remove an unused
23985 argument 'insn'. Remove redundant code.
23986 * config/h8300/h8300.md: Adust to the new prototype of
23987 output_a_shift.
23988
a11d9dfc
KH
239892002-01-29 Kazu Hirata <kazu@hxi.com>
23990
23991 * config/h8300/h8300-protos.h: Update the prototypes of
23992 emit_a_rotate and expand_a_rotate.
23993 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
23994 first argument to 'enum rtx_code'.
23995 (expand_a_rotate): Likewise.
23996
871f73e3
KH
239972002-01-28 Kazu Hirata <kazu@hxi.com>
23998
23999 * config/h8300/h8300-protos.h: Update the prototype of
24000 output_simode_bld.
24001 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
24002 'log2'.
24003 * config/h8300/h8300.md: Adjust to the new prototype.
24004
5fc4b751
KH
240052002-01-28 Kazu Hirata <kazu@hxi.com>
24006
24007 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
24008 redundant code.
24009
2d67bd7b
JDA
240102002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
24011
24012 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
24013 is a fixed register before returning pic_offset_table_rtx.
24014 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
24015 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
24016
5a852b3e
JM
240172002-01-28 Jason Merrill <jason@redhat.com>
24018
6bb28965 24019 * dwarf2.h: Sync with src version.
5a852b3e 24020
3bca17dd
PK
240212002-01-28 Paul Koning <pkoning@equallogic.com>
24022
24023 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
24024 BT_FN_VOID_PTR_VAR.
24025 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
24026 * doc/extend.texi (__builtin_prefetch): Update documentation:
24027 first argument is now const void ptr.
24028
7dc3f8c0
KH
240292002-01-28 Kazu Hirata <kazu@hxi.com>
24030
24031 * config/h8300/h8300-protos.h: Remove an unused prototype.
24032
e83cb5f0
RZ
240332002-01-28 Roman Zippel <zippel@linux-m68k.org>
24034
24035 * toplev.c (lang_independent_init): Round up identifier size.
24036
5721cd84
RE
240372002-01-28 Richard Earnshaw <rearnsha@arm.com>
24038
24039 * config.gcc: Revert previous change.
24040
d534119e
AP
240412002-01-28 Andris Pavenis <pavenis@latnet.lv>
24042
24043 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
24044
5a721dab
RE
240452002-01-28 Richard Earnshaw <rearnsha@arm.com>
24046
24047 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
24048 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
24049 other non-elf netbsd config frags.
24050 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
24051 collect2 will does that.
24052 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
24053 shared-lib frobbing will work.
24054
da1775d6
KH
240552002-01-28 Kazu Hirata <kazu@hxi.com>
24056
24057 * config/h8300/h8300.h: Fix formatting.
24058 * config/h8300/h8300.md: Likewise.
24059
8f2e963b
LR
240602002-01-28 Loren J. Rittle <ljrittle@acm.org>
24061
24062 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
24063 the old, removed AAA_standards fix.
24064 * fixinc/fixincl.x: Rebuilt.
24065
fdae5767
HPN
240662002-01-28 Hans-Peter Nilsson <hp@axis.com>
24067
24068 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
24069 atexit call in crtbegin, hooked in after call to frame_dummy;
24070 register EH before registering __fini__start.
24071
2a2ecb63
AH
240722002-01-28 Aldy Hernandez <aldyh@redhat.com>
24073
24074 * config/rs6000/altivec.h: Remove spurious semicolons.
24075
8ed43adf
KH
240762002-01-27 Kazu Hirata <kazu@hxi.com>
24077
24078 * config/h8300/h8300.md: Replace dead bit extraction patterns
24079 with ones that work.
24080
917afb0c
RK
24081Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24082
24083 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
24084 if not STRICT_ALIGNMENT.
24085 * rtl.h (MEM_ALIGN): Likewise.
24086
f70a54cb
CR
240872002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
24088
24089 * doc/invoke.texi (-fdump-translation-unit): Revert this
24090 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
24091
d8fd4914
KH
240922002-01-27 Kazu Hirata <kazu@hxi.com>
24093
24094 * config/h8300/h8300.md (define_constants): New.
24095 (anonymous patterns) Use defined constants appropriately.
24096
15e0e275
KH
240972002-01-27 Kazu Hirata <kazu@hxi.com>
24098
24099 * config/h8300/h8300.c (function_arg): Remove redundant code.
24100
37a0f8a5
RH
241012002-01-26 Richard Henderson <rth@redhat.com>
24102
24103 * sched-deps.c (reg_pending_uses_head): New.
24104 (reg_pending_barrier): Rename from reg_pending_sets_all.
24105 (find_insn_list): Don't mark inline.
24106 (find_insn_mem_list): Remove.
24107 (add_dependence_list, add_dependence_list_and_free): New.
24108 (flush_pending_lists): Replace only_write param with separate
24109 for_read and for_write parameters. Update all callers. Use
24110 add_dependence_list_and_free.
24111 (sched_analyze_1): Do not add reg dependencies here; just set
24112 the pending bits. Use add_dependence_list.
24113 (sched_analyze_2): Likewise.
24114 (sched_analyze_insn): Replace schedule_barrier_found with
24115 reg_pending_barrier. Add all dependencies for pending reg
24116 uses, sets, and clobbers.
24117 (sched_analyze): Don't add reg dependencies for calls, just
24118 set pending bits. Use regs_invalidated_by_call. Treat
24119 sched_before_next_call as a normal list, not a fake insn.
24120 (init_deps): No funny init for sched_before_next_call.
24121 (free_deps): Free pending mems lists. Don't zero reg_last.
24122 (init_deps_global): Init reg_pending_uses.
24123 (finish_deps_global): Free it.
24124 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
24125 (find_insn_mem_list): Remove.
24126 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
24127 (propagate_deps): Use them. Zero temp mem lists.
24128
cea3bd3e
RH
241292002-01-26 Richard Henderson <rth@redhat.com>
24130
24131 * Makefile.in (CRTSTUFF_CFLAGS): New.
24132 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
24133 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
24134 crtstuff.c instead of alpha assembly version.
24135 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
24136 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
24137 not FORCE_{INIT,FINI}_SECTION_ALIGN.
24138 (__do_global_dtors_aux): Mark used.
24139 (frame_dummy, __do_global_ctors_aux): Mark used.
24140 (fini_dummy, init_dummy): Remove.
24141
24142 * config/alpha/crtbegin.asm: Remove file.
24143 * config/alpha/crtend.asm: Remove file.
24144 * config/alpha/t-crtbe: Remove file.
24145 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
24146 (LINK_EH_SPEC): New.
24147
24148 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
24149 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
24150 calling constructors.
24151 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
24152
24153 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
24154 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
24155 CRT_END_INIT_DUMMY hack.
24156 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
24157 FORCE_{INIT,FINI}_SECTION_ALIGN.
24158
24159 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
24160 FORCE_{INIT,FINI}_SECTION_ALIGN.
24161
24162 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
24163 invocation sequence.
24164 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
24165
24166 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
24167 (FORCE_CODE_SECTION_ALIGN): New.
24168
60ffa0e5
RH
241692002-01-26 Richard Henderson <rth@redhat.com>
24170
24171 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
24172
61334ebe
RH
241732002-01-26 Richard Henderson <rth@redhat.com>
24174
24175 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
24176 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
24177
1d788fb6
KH
241782002-01-26 Kazu Hirata <kazu@hxi.com>
24179
24180 * config/h8300/h8300.md: Remove bit extraction patterns that
24181 cannot be triggered.
24182 Restrict each bit extraction pattern to a variant on which the
24183 pattern is tested.
24184
87611f88
JM
241852002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
24186
24187 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
24188
cd74ec59
KH
241892002-01-26 Kazu Hirata <kazu@hxi.com>
24190
24191 * config/h8300/h8300.md: Remove bit test patterns that cannot
24192 be triggered.
24193 Restrict each bit test pattern to a variant on which the
24194 pattern is tested.
24195
93051e0f
KG
241962002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24197
24198 * builtins.c (expand_builtin_strncat): Remove redundant check for
24199 INTEGER_CST.
24200
216c995f
DB
242012002-01-25 David O'Brien <obrien@FreeBSD.org>
24202
24203 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
24204 default setting.
24205 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
24206 existing setting.
24207
33c7f925
GK
242082002-01-25 Geoffrey Keating <geoffk@redhat.com>
24209
24210 * dbxout.c (dbxout_init): Use assemble_name rather than just
24211 stripping off the first character.
24212 (dbxout_source_file): Likewise.
24213
6cd444b4
DD
242142002-01-25 DJ Delorie <dj@redhat.com>
24215
24216 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
24217 using rtx_equal_p, not by comparing pointers.
24218
751551d5
SE
242192002-01-25 Steve Ellcey <sje@cup.hp.com>
24220
24221 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
24222 for PIC_OFFSET_TABLE_REGNUM.
24223 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
24224
e564e618
DB
242252002-01-25 David O'Brien <obrien@FreeBSD.org>
24226
24227 * config.gcc (x86_64-*-freebsd*): New target.
24228 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
24229 value.
24230 (i[34567]86-*-freebsd*): Don't include svr4.h.
24231 * config/i386/freebsd64.h: New file.
24232
ff3aaf17
DR
242332002-01-25 Douglas B Rupp <rupp@gnat.com>
24234
4857d29d
DR
24235 * config/alpha/x-vms (version): Make static.
24236
24237 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
24238 in previous checkin.
24239
ff3aaf17
DR
24240 * Makefile.in (install-headers-cp): New target.
24241 * config.gcc (alpha-dec-*vms*): Install headers with
24242 install-headers-cp
24243
48d79c43
JH
24244Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
24245
24246 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
24247 avoid it's copies.
24248
995b5904
RK
24249Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24250
24251 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
24252 of compare_tree_int.
24253 (expand_builtin_strncat): Likewise.
24254 * c-decl.c (finish_struct): Use tree_low_cst.
24255 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
24256 * tree.c (compare_tree_int): Likewise.
24257
75eefe3f
UW
242582002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
24259
24260 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
24261 adjustments even if they are implemented by more than two insns.
24262
5a133afd
JH
24263Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
24264
995b5904 24265 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
5a133afd
JH
24266 * df.h (struct ref): Kill B.
24267 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
24268
24269 * basic-block.h (PROP_EQUAL_NOTES): New flag.
24270 * flow.c (propagate_one_insn): Use it.
24271 (mark_used_regs): Handle NIL.
24272
ead39bdf 242732002-01-25 Geoffrey Keating <geoffk@redhat.com>
3d8dd3c0
GK
24274
24275 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
24276 to help folding.
24277
01a2ccd0
DE
242782002-01-25 David Edelsohn <edelsohn@gnu.org>
24279
24280 * rs6000.md (prefetch): Make address V4SI mode so that the address
24281 is restricted to legitimate form for instruction.
24282
fd29f6ea
BW
242832002-01-25 Bob Wilson <bob.wilson@acm.org>
24284
24285 * doc/install.texi (xtensa-*-elf): New target.
24286 (xtensa-*-linux*): New target.
24287 * doc/contrib.texi: Add myself.
24288
55492b32
NC
242892002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
24290
24291 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
24292 purpose register to hold an SImode (or smaller) value.
24293
72c7c913
JJ
242942002-01-25 Jakub Jelinek <jakub@redhat.com>
24295
24296 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
24297 registry only.
24298 * crtstuff.c: Likewise.
24299
c4df4ceb
KH
243002002-01-25 Kazu Hirata <kazu@hxi.com>
24301
24302 * config/h8300/h8300.md (negation patterns): Tighten
24303 predicates to register_operand.
24304
70e531f5
AH
243052002-01-24 Aldy Hernandez <aldyh@redhat.com>
24306
3bca17dd
PK
24307 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
24308 mode, not Pmode.
70e531f5 24309
3bca17dd 24310 * builtins.c (expand_builtin_prefetch): Same.
70e531f5 24311
a4f76ef9
AO
243122002-01-24 Alexandre Oliva <aoliva@redhat.com>
24313
24314 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
24315 modes.
24316
9bf25b09
KH
243172002-01-24 Kazu Hirata <kazu@hxi.com>
24318
24319 * config/h8300/h8300.c (print_operand): Remove support for
24320 operand character 'A'.
24321 * config/h8300/h8300.md (three anonymous patterns): Replace
24322 operand character 'A' with either 'T' or 'S'.
24323
974af6a5
KH
243242002-01-24 Kazu Hirata <kazu@hxi.com>
24325
24326 * config/h8300/h8300.c (print_operand): Remove support for
24327 operand character 'U'.
24328
7a5bb7b8
AP
243292002-01-24 Andris Pavenis <pavenis@latnet.lv>
24330
3bca17dd 24331 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7a5bb7b8 24332
92a4639e
NC
243332002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
24334
24335 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
24336 values to be assigned to the stack pointer.
24337
467cb2da
HP
243382002-01-14 Hartmut Penner <hpenner@de.ibm.com>
24339
bebc7e8b 24340 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
467cb2da
HP
24341 to const_double needs to be done right for big-endian systems.
24342
3b6cb920
JM
243432002-01-24 Jason Merrill <jason@redhat.com>
24344
b08dd119 24345 PR c++/2432
3b6cb920
JM
24346 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
24347 to can_throw_internal.
24348
f3077311
RH
243492002-01-23 Richard Henderson <rth@redhat.com>
24350
24351 * fold-const.c (fold): Change UINT_MAX test to check vs precision
24352 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
24353
e1d71275
AO
243542002-01-24 Alexandre Oliva <aoliva@redhat.com>
24355
24356 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
24357 (symGOT2reg): Use them, then set as GOT value as unchanging.
24358 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
24359 as a temporary, if possible.
24360 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
24361 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
24362
dc271dbe
KH
243632002-01-23 Kazu Hirata <kazu@hxi.com>
24364
24365 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
24366 accept to accept 0x80 as operands[2].
24367
1a9017f9
AO
243682002-01-24 Alexandre Oliva <aoliva@redhat.com>
24369
24370 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
24371
6932f033
RH
243722002-01-23 Richard Henderson <rth@redhat.com>
24373
24374 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
24375
709619d9
AH
243762002-01-23 Aldy Hernandez <aldyh@redhat.com>
24377
3bca17dd
PK
24378 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
24379 (parmlist_or_identifiers_1): Verify that only a parmlist follows
24380 an attribute.
709619d9 24381
3d709fd3
RH
243822002-01-23 Richard Henderson <rth@redhat.com>
24383
24384 * expr.c (move_by_pieces_1): Extend size before negation.
24385
88a446c0
RH
24386 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
24387 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
24388 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
24389 * config/m68k/t-m68kelf: Likewise.
24390
03984308
BW
243912002-01-23 Bob Wilson <bob.wilson@acm.org>
24392
24393 * config/xtensa/elf.h: New file.
24394 * config/xtensa/lib1funcs.asm: New file.
24395 * config/xtensa/lib2funcs.S: New file.
24396 * config/xtensa/linux.h: New file.
24397 * config/xtensa/t-xtensa: New file.
24398 * config/xtensa/xtensa-config.h: New file.
24399 * config/xtensa/xtensa-protos.h: New file.
24400 * config/xtensa/xtensa.c: New file.
24401 * config/xtensa/xtensa.h: New file.
24402 * config/xtensa/xtensa.md: New file.
24403 * config.gcc (xtensa-*-elf*): New target.
24404 (xtensa-*-linux*): New target.
24405 * cse.c (canon_hash): Compare rtx pointers instead of register
24406 numbers. This is required for the Xtensa port.
24407 * integrate.c (copy_insn_list): Handle case where the static
24408 chain is in memory and the memory address has to be copied to
24409 a register.
24410 * doc/invoke.texi (Option Summary): Add Xtensa options.
24411 (Xtensa Options): New node.
24412 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
24413
c3d5c3fa
ZW
244142002-01-23 Zack Weinberg <zack@codesourcery.com>
24415
a63bea75
ZW
24416 * diagnostic.c (internal_error): Do ICE suppression only
24417 when ENABLE_CHECKING is not defined.
24418
c3d5c3fa
ZW
24419 * c-typeck.c (require_complete_type): Return error_mark_node
24420 if type is error_mark_node.
24421
1398974c
JJ
244222002-01-23 Janis Johnson <janis187@us.ibm.com>
24423
24424 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
24425 -Os and issue a warning.
24426
807633e5
ZW
244272002-01-23 Zack Weinberg <zack@codesourcery.com>
24428
24429 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
24430 current (lack of) need for host configuration by hand.
24431
24432 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
24433 references. Documentation of some target macros moved from
24434 hostconfig.texi to tm.texi.
24435
cf8002d0
WC
244362002-01-23 Will Cohen <wcohen@redhat.com>
24437
24438 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
24439 defined.
24440
d1e76310
KH
244412002-01-23 Kazu Hirata <kazu@hxi.com>
24442
24443 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
24444 operand[3].
24445
b2115575
JM
244462002-01-23 Jason Merrill <jason@redhat.com>
24447
f893c16e
JM
24448 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
24449
b2115575
JM
24450 * function.c (assign_parms): Don't put args of inline functions
24451 into registers when not optimizing.
24452
6bacc7b0
NC
244532002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
24454
24455 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
24456 (prologue_use): New pattern.
24457 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
24458 preference to gen_rtx_USE.
24459 (thumb_expand_prologue): Use gen_prologue_use in preference to
24460 gen_rtx_USE.
24461 (thumb_expand_epilogue): Use gen_prologue_use in preference to
24462 gen_rtx_USE.
24463
a415f7bc
HPN
244642002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
24465
24466 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
24467
5372b3fb
NB
244682002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
24469
24470 PR c/3504
24471 * doc/extend.texi: Correct documentation of __alignof__.
24472
bd571ffc
ZW
244732002-01-22 Zack Weinberg <zack@codesourcery.com>
24474
24475 * params.h: Rename arguments of DEFPARAM so that it will be
24476 recognized as a translation keyword.
24477
333c8841
AH
244782002-01-22 Aldy Hernandez <aldyh@redhat.com>
24479
bd571ffc
ZW
24480 * extend.texi: Document altivec functions.
24481 Fix N-bit adjectives in X86 builtin documentation.
333c8841 24482
38979c65
AO
244832002-01-22 Alexandre Oliva <aoliva@redhat.com>
24484
24485 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
24486 auto_inc_dec values.
24487
7458a9f0
RE
244882002-01-22 Richard Earnshaw <rearnsha@arm.com>
24489
24490 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
24491 after backslash.
24492 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
24493
129bd0c4
AO
244942002-01-22 Alexandre Oliva <aoliva@redhat.com>
24495
24496 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
24497
8b9b74a9
RH
244982002-01-22 Richard Henderson <rth@redhat.com>
24499
24500 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
24501 copy_insn not copy_rtx.
24502
d0c9db30
AM
245032002-01-23 Alan Modra <amodra@bigpond.net.au>
24504
24505 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
24506 "nonzero" as that might add "1" bits. Ensure "constop" is
24507 properly sign extened.
24508 (force_to_mode): Tweak for sign extended constop.
24509
1e7e480e
RH
245102002-01-22 Richard Henderson <rth@redhat.com>
24511
24512 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
24513 for_each_rtx instead of assuming we're already looking at the MEM.
24514 (split_small_symbolic_mem_operand): Likewise.
24515 * config/alpha/alpha.h (PREDICATE_CODES): Update.
24516 * config/alpha/alpha.md (small symbolic memory splitters): Update.
24517
245182002-01-22 Richard Henderson <rth@redhat.com>
2e271932
RH
24519
24520 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
24521 sequence number for the literal.
24522 (divmoddi_internal_er): Likewise.
24523
b7f2fb96
CR
245242002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
24525
24526 PR java/4972
24527 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
24528 in LIBICONV variable.
24529 * configure: Regenerated.
24530
f66a0046
KW
245312002-01-22 Krister Walfridsson <cato@df.lth.se>
24532
24533 * dependence.c (build_def_use): Remove array_idx.
24534
e3b0efd1
KW
24535 * dwarfout.c (last_filename): Remove.
24536 (output_compile_unit_die): Remove last_filename.
24537
d8086cbb
RS
245382002-01-22 Roger Sayle <roger@eyesopen.com>
24539 Richard Henderson <rth@redhat.com>
24540
24541 PR opt/3640
24542 * fold-const.c (fold): Optimize unsigned comparisons against
24543 UINT_MAX (and similar unsigned constants).
24544
e8d52ba0
JJ
245452002-01-22 Janis Johnson <janis187@us.ibm.com>
24546
d8086cbb 24547 * Makefile.in (loop.o): Depend on OPTABS_H.
1398974c 24548 * loop.c (emit_prefetch_instructions): Check the prefetch operand
d8086cbb 24549 against the predicate.
11303d15 24550
e8d52ba0
JJ
24551 PR target/5379
24552 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
24553 for the address operand.
24554
cc7b420e
RH
245552002-01-22 Richard Henderson <rth@redhat.com>
24556
24557 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
24558
816e265a
CR
245592002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
24560
24561 PR other/5450
cc7b420e
RH
24562 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
24563 preprocessor flags.
816e265a 24564
7c884404
JT
245652002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
24566
24567 * config.gcc (x86_64-*-netbsd*): New target.
24568 * config/i386/netbsd64.h: New file.
24569
2b672c08
AH
245702002-01-22 Aldy Hernandez <aldyh@redhat.com>
24571
d8086cbb 24572 * regrename.c (kill_value): Fix typo.
2b672c08
AH
24573
245742002-01-22 Aldy Hernandez <aldyh@redhat.com>
24575
d8086cbb 24576 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
2b672c08 24577
d8086cbb 24578 * config/rs6000/rs6000.h: Same.
2b672c08 24579
d8086cbb
RS
24580 * function.c (instantiate_virtual_regs): Remove
24581 STARTING_FRAME_PHASE.
24582 (assign_stack_local_1): Same.
24583 Calculate frame phase.
2b672c08 24584
4b02997f
NC
245852002-01-22 Nick Clifton <nickc@redhat.com>
24586
24587 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
24588 variable declaration to outer scope in order to simplify
24589 future extensions.
24590 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
24591 arm_hard_regno_mode_ok.
24592 * config/arm/arm-protos.h: Add a prototype for
24593 arm_hard_regno_mode_ok.
24594 * config/arm/arm.c (soft_df_operand): Remove now redundant
24595 check for DImode values using IP_REGNUM.
24596 (nonimmediate_soft_df_operand): Remove now redundant check for
24597 DImode values using IP_REGNUM.
24598 (arm_hard_regno_mode_ok): New function. New check: make sure
24599 that DImode values are not stored in IP_REGNUM.
c14a3a45
NC
24600
24601 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
24602 note with a USE.
24603 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
24604
8a827ab2
JM
246052002-01-22 Jason Merrill <jason@redhat.com>
24606
24607 * c-semantics.c (genrtl_compound_stmt): Only check nesting
24608 consistency if this COMPOUND_STMT is scoped.
24609
cf403648
KH
246102002-01-22 Kazu Hirata <kazu@hxi.com>
24611
24612 * predict.c: Fix formatting.
24613 * print-tree.c: Likewise.
24614 * protoize.c: Likewise.
24615 * real.h: Likewise.
24616 * rtl.h: Likewise.
24617 * sbitmap.h: Likewise.
24618 * scan.c: Likewise.
24619 * sched-deps.c: Likewise.
24620 * sched-vis.c: Likewise.
24621 * sdbout.c: Likewise.
24622 * sibcall.c: Likewise.
24623 * ssa.c: Likewise.
24624 * ssa-ccp.c: Likewise.
24625 * ssa-dce.c: Likewise.
24626 * stmt.c: Likewise.
24627 * stor-layout.c: Likewise.
24628 * system.h: Likewise.
24629
aea9695c
RK
24630Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24631
a8765ae7
RK
24632 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
24633 if fits in bounds of base type.
24634
aea9695c
RK
24635 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
24636 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
24637 (add_bound_info, default): If can't find a context, make a
24638 SAVE_EXPR.
24639 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
24640
58bf601b
HPN
246412002-01-22 Hans-Peter Nilsson <hp@axis.com>
24642
24643 * c-typeck.c (parser_build_binary_op): If result from
24644 build_binary_op is ERROR_MARK just return error_mark_node without
24645 further processing.
24646
f982f805
JT
246472002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
24648
24649 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
24650 Split a.out-specific bits into...
24651 * config/netbsd-aout.h: ...this.
24652 * config/netbsd-elf.h: New file.
24653 * config/alpha/netbsd-elf.h: Remove.
24654 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
24655 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
bd571ffc 24656 (STARTFILE_SPEC): Remove redundant definition.
f982f805
JT
24657 (ENDFILE_SPEC): Likewise.
24658 (LINK_SPEC): Likewise.
24659 (CPP_SPEC): Likewise.
24660 (ASM_SPEC): Likewise.
24661 (LIB_SPEC): Likewise.
24662 (SWITCH_TAKES_ARG): Likewise.
24663 (TARGET_MEM_FUNCTIONS): Likewise.
24664 (CPP_PREDEFINES): Redefine.
24665 (ASM_FINAL_SPEC): Remove redefinition.
24666 (ASM_COMMENT_START): Redefine.
24667 (FUNCTION_PROFILER): Define.
24668 (TARGET_VERSION): Redefine.
24669 Comment and formatting cleanup.
24670 * config/i386/netbsd.h: Include <netbsd-aout.h>.
24671 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
24672 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
24673 big- or little-endian.
24674 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
24675 * config.gcc (*-*-netbsd*): Add definitions common to all
24676 NetBSD configs.
24677 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
24678 gnu_ld definitions. Add netbsd-elf.h to and remove
24679 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
24680 tmake_file, and don't lose previous tmake_file contents.
24681 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
24682 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
24683 gnu_ld definitions. Add netbsd-elf.h to tm_file.
24684 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
24685 (mipsel-*-netbsd*): Rename this to...
24686 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
24687 mips/little.h to tm_file for mips*el-*.
24688 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
24689 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
24690 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
24691
2e396476
JDA
246922002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
24693
24694 * pa-protos.h (reg_before_reload_operand): New function prototype.
24695 * pa.c (reg_before_reload_operand): New function implementation.
24696 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
24697 contraints to "*m".
24698
3b5708e7
FS
246992002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24700
24701 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
24702
85e79f96
JDA
247032002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
24704
24705 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
24706 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
24707 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
24708 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
24709 (ENDFILE_SPEC): Undefine.
24710 (STARTFILE_SPEC): Redefine for PA.
24711
38abadee
FS
247122002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24713
24714 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
24715
94f1d97c
DJ
247162002-01-21 Daniel Jacobowitz <drow@mvista.com>
24717
24718 * config.gcc: Add entries to supported PowerPC --with-cpu
24719 types.
24720
0333394e
JJ
247212002-01-21 Jakub Jelinek <jakub@redhat.com>
24722
24723 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
24724 true for 64-bit mode only SSE registers in 32-bit mode.
24725
e9d1b155
KH
247262002-01-21 Kazu Hirata <kazu@hxi.com>
24727
24728 * unwind-dw2.c: Fix formatting.
24729 * unwind-dw2-fde.c: Likewise.
24730 * unwind-dw2-fde.h: Likewise.
24731 * unwind-pe.h: Likewise.
24732 * varasm.c: Likewise.
24733 * varray.h: Likewise.
24734
07338cf8
HPN
247352002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
24736
24737 Remove workaround for register stack overwrite bug in mmix.
24738 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
24739 support for TARGET_REG_STACK_FILL_BUG.
24740 * config/mmix/mmix.h: Remove member has_call_without_parameters.
24741 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
24742 Delete.
24743 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
24744 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
24745 -mno-reg-stack-fill-bug-workaround.
24746 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
24747 machine member has_call_without_parameters.
24748 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
24749 -mreg-stack-fill-bug-workaround and
24750 -mno-reg-stack-fill-bug-workaround.
24751 (MMIX Options): Ditto.
24752
7192cbf1
KH
247532002-01-21 Kazu Hirata <kazu@hxi.com>
24754
24755 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
24756 as appropriate.
24757 Remove redundant code.
24758
d1552d7b
JM
247592002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
24760
24761 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
24762 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
24763 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
24764 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
24765 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
24766 out target macro definitions and non-target-specific comments
24767 mostly taken from old versions of the manual.
24768
ed168e45
KH
247692002-01-20 Kazu Hirata <kazu@hxi.com>
24770
24771 * config/h8300/h8300.h: Fix comment formatting.
24772 * config/ia64/aix.h: Likewise.
24773 * config/ia64/ia64-protos.h: Likewise.
24774 * config/ia64/ia64.c: Likewise.
24775 * config/ia64/ia64.h: Likewise.
24776 * config/ia64/ia64intrin.h: Likewise.
24777 * config/ia64/linux.h: Likewise.
24778 * config/ia64/unwind-aix.c: Likewise.
24779 * config/ia64/unwind-ia64.c: Likewise.
24780
005e3e05
KH
247812002-01-20 Kazu Hirata <kazu@hxi.com>
24782
24783 * config/h8300/h8300.c: Revise comments about shift code.
24784
64bead4c
KH
247852002-01-20 Kazu Hirata <kazu@hxi.com>
24786
24787 * config/h8300/h8300.c (function_arg): Update a comment.
24788
ed863595
KH
247892002-01-20 Kazu Hirata <kazu@hxi.com>
24790
24791 * config/h8300/h8300.md: Update the comments at the beginning
24792 of the file.
24793
5904dc87
KH
247942002-01-20 Kazu Hirata <kazu@hxi.com>
24795
24796 * config/i370/i370.c: Fix comment formatting.
24797 * config/i370/i370.h: Likewise.
24798 * config/i370/i370.md: Likewise.
24799 * config/i370/linux.h: Likewise.
24800
9702143f
RK
24801Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24802
cbafacd1
RK
24803 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
24804
9702143f
RK
24805 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
24806 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
24807 in incomplete case.
24808
6b6996b8
GS
248092002-01-20 Graham Stott <grahams@redhat.com>
24810
24811 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
24812
eab854f6
JDA
248132002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
24814
24815 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
24816
5b029315
TR
248172002-01-19 Tom Rix <trix@redhat.com>
24818
24819 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
24820
1d690052
AH
248212002-01-18 Aldy Hernandez <aldyh@redhat.com>
24822
d8086cbb 24823 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
1d690052 24824
d8086cbb
RS
24825 * function.c (assign_stack_local_1): Adjust x_frame_offset with
24826 STARTING_FRAME_PHASE.
24827 (STARTING_FRAME_PHASE): New.
24828 (instantiate_virtual_regs): Check saneness of
24829 STARTING_FRAME_PHASE.
1d690052 24830
d8086cbb 24831 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
1d690052 24832
4dd8c093
AO
248332002-01-19 Alexandre Oliva <aoliva@redhat.com>
24834
24835 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
24836
6f2a28d7
CR
248372002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
24838
24839 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
24840 be used for bootstrapping GCC 3.0.
24841
8763a465
KH
248422002-01-18 Kazu Hirata <kazu@hxi.com>
24843
24844 * config/h8300/h8300.md: Fix an insn length.
24845
3ef42a0c
KH
248462002-01-18 Kazu Hirata <kazu@hxi.com>
24847
24848 * bitmap.h: Fix comment formatting.
24849 * combine.c: Likewise.
24850 * cppfiles.c: Likewise.
24851 * c-pragma.h: Likewise.
24852 * c-typeck.c: Likewise.
24853 * df.c: Likewise.
24854 * dwarf2out.c: Likewise.
24855 * function.c: Likewise.
24856 * gcc.c: Likewise.
24857 * genattrtab.c: Likewise.
24858 * gthr-win32.h: Likewise.
24859 * haifa-sched.c: Likewise.
24860 * predict.c: Likewise.
24861 * rtlanal.c: Likewise.
24862 * rtl.h: Likewise.
24863 * unwind-dw2-fde.h: Likewise.
24864 * unwind-pe.h: Likewise.
24865 * vmsdbgout.c: Likewise.
24866
dd4dc3cd
RK
24867Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24868
24869 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
24870 if type_required and passed decl.
24871
5fb4cf24
AH
248722002-01-17 Aldy Hernandez <aldyh@redhat.com>
24873
d8086cbb
RS
24874 * config.gcc (cpu_type): Include altivec.h in powerpc
24875 extra_headers.
24876 Same for darwin.
5fb4cf24 24877
d8086cbb 24878 * config/rs6000/altivec.h: New.
5fb4cf24 24879
2705baf5
DE
248802002-01-17 David Edelsohn <edelsohn@gnu.org>
24881
24882 * doc/install.texi (*-ibm-aix*): Update assembler and exception
24883 handling information.
24884 * doc/trouble.texi (Interoperation): Add libstdc++ information
24885 for AIX.
24886 (Misunderstandings): Add template instantiation and static template
24887 member information for AIX.
24888
dbd680e1
JM
248892002-01-17 Jason Merrill <jason@redhat.com>
24890
821adc5e
JM
24891 * dbxout.c (dbxout_type): Support const and volatile.
24892
dbd680e1
JM
24893 * except.c (add_partial_entry): Remove backwards compatibility code.
24894 (end_protect_partials): Likewise.
24895
d0e82870
JJ
248962002-01-17 Jakub Jelinek <jakub@redhat.com>
24897
24898 * config/ia64/ia64.md (prologue_use): New.
24899 * config/ia64/ia64.c (ia64_expand_prologue): Use
24900 gen_prologue_use instead of gen_rtx_USE.
24901 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
24902 as CODE_FOR_pred_rel_mutex.
24903 (ia64_sched_reorder2): Likewise.
24904
f9f45c65
EC
249052002-01-16 Eric Christopher <echristo@redhat.com>
24906
24907 * config/mips/r3900.h: Reformat.
24908 (SUBTARGET_CPP_SIZE_SPEC): Remove.
24909 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
24910 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
24911 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
24912 * config/mips/t-elf: Remove mips3 multilib.
24913
c66c8b0e
L
249142002-01-16 H.J. Lu <hjl@gnu.org>
24915
24916 * config/mips/linux.h: Include "mips/abi64.h".
24917
5f083b72
L
249182002-01-16 H.J. Lu <hjl@gnu.org>
24919
24920 * config/mips/t-linux: New.
24921
24922 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
24923
24924 * config/mips/linux.h: Don't include "gofast.h".
24925 (INIT_SUBTARGET_OPTABS): Removed.
24926
af3c90a6
KH
249272002-01-16 Kazu Hirata <kazu@hxi.com>
24928
24929 * config/h8300/h8300-protos.h: Replace emit_a_shift with
24930 output_a_shift.
24931 * config/h8300/h8300.c: Likewise.
24932 * config/h8300/h8300.md: Likewise.
24933
a1bf0a16
KH
249342002-01-16 Kazu Hirata <kazu@hxi.com>
24935
24936 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
24937 spaces after an opcode name.
24938 (pushqi1_h8300hs): Likewise.
24939 (pushhi1_h8300hs): Likewise.
24940
88ab0d1c
KH
249412002-01-16 Kazu Hirata <kazu@hxi.com>
24942
24943 * doc/extend.texi: Replace "option" with "attribute"
24944 appropriately.
24945
51c561e3
JJ
249462002-01-16 Jakub Jelinek <jakub@redhat.com>
24947
24948 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
24949 (and:DI () (const_int -8)).
24950 (split_small_symbolic_mem_operand): Split
24951 (mem (and:DI () (const_int -8)).
24952
b8c1a6b8
JJ
249532002-01-16 Jakub Jelinek <jakub@redhat.com>
24954
24955 PR target/5309:
d8086cbb 24956 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
b8c1a6b8
JJ
24957 same way as TYPE_IMUL.
24958 (ultrasparc_sched_reorder): Likewise.
24959 * config/sparc/sparc.md (type): Add comment to update
24960 ultrasparc_sched_reorder when making changes.
24961
1e4e4df2
KH
249622002-01-16 Kazu Hirata <kazu@hxi.com>
24963
24964 * doc/invoke.texi: Change the dump file name of block
24965 reordering pass from 28.bbro to 29.bbro.
24966 Mention -dk option.
24967
14d920c0
JH
24968Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
24969
24970 * i386.md (minsf splitter): Fix pasto.
24971
2e99323f
NC
249722002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
24973
24974 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
24975 to frame pointer initialisation instruction.
24976 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
24977 initialisation instruction.
ab8081c1
NC
24978 (soft_df_operand): Do not accept the IP register.
24979 (nonimmediate_soft_df_operand): Do not accept the IP register.
2e99323f 24980
c4031a04
JJ
249812002-01-16 Jakub Jelinek <jakub@redhat.com>
24982
24983 PR target/5357:
24984 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
24985 MASK_V8 being both set.
24986
44b8152b
UW
249872002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
24988
24989 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
24990 insn for GOT register; add REG_MAYBE_DEAD notes instead.
24991 config/s390/s390.md (call, call_value): Add GOT register to
24992 CALL_INSN_FUNCTION_USAGE where needed.
24993 (call_exp, call_value_exp): New.
24994
1d6e90ac
NC
249952002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
24996
24997 * config/arm/arm.c: General formatting tidy up.
24998
249992002-01-16 Graham Stott <grahams@redhat.com>
60e8b9f0
GS
25000
25001 * calls.c (try_to_integrate): Use "(size_t)" intermediate
25002 cast and when casting an integer literal to "rtx" pointer.
25003 (expand_call): Likewise.
25004 * flow.c (try_pre_increment): Likewise.
25005 (find_use_as_address): Likewise.
25006 * integrate.c (expand_iline_function): Likewise.
25007 * regmove.c (try_auto_increment): Likewise.
25008
1d6e90ac 250092002-01-16 Graham Stott <grahams@redhat.com>
7b25b076
GS
25010
25011 * sched-rgn.c (passed): Use sbitmap_free.
25012 (header): Likewise.
25013 (inner): Likewise.
25014 (in_queue): Likewise.
25015 (in_stack): Likewise.
25016
31fce3c4
EC
250172002-01-15 Eric Christopher <echristo@redhat.com>
25018
25019 * flow.c (propagate_one_insn): Change to use fatal_insn.
25020
c99d986a
KH
250212002-01-15 Kazu Hirata <kazu@hxi.com>
25022
25023 * expmed.c (extract_fixed_bit_field): Remove unused code.
25024 * system.h: Poison SLOW_ZERO_EXTEND.
25025 * doc/tm.texi: Remove.
25026 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
25027 * config/arm/arm.h: Likewise.
25028 * config/avr/avr.h: Likewise.
25029 * config/clipper/clipper.h: Likewise.
25030 * config/convex/convex.h: Likewise.
25031 * config/d30v/d30v.h: Likewise.
25032 * config/dsp16xx/dsp16xx.h: Likewise.
25033 * config/elxsi/elxsi.h: Likewise.
25034 * config/fr30/fr30.h: Likewise.
25035 * config/h8300/h8300.h: Likewise.
25036 * config/i370/i370.h: Likewise.
25037 * config/i386/i386.h: Likewise.
25038 * config/m68k/m68k.h: Likewise.
25039 * config/mips/mips.h: Likewise.
25040 * config/ns32k/ns32k.h: Likewise.
25041 * config/pdp11/pdp11.h: Likewise.
25042 * config/pj/pj.h: Likewise.
25043 * config/s390/s390.h: Likewise.
25044 * config/sh/sh.h: Likewise.
25045 * config/stormy16/stormy16.h: Likewise.
25046 * config/v850/v850.h: Likewise.
25047 * config/vax/vax.h: Likewise.
25048 * config/we32k/we32k.h: Likewise.
25049
acfab996
AH
250502002-01-15 Aldy Hernandez <aldyh@redhat.com>
25051
d8086cbb
RS
25052 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
25053 (altivec_lvsl): Change constraint to b.
25054 (altivec_lvsr): Same.
25055 (altivec_lvebx): Same.
25056 (altivec_lvehx): Same.
25057 (altivec_lvewx): Same.
25058 (altivec_lvxl): Same.
25059 (altivec_lvx): Same.
25060 (altivec_stvx): Add parallel.
25061 (altivec_stvxl): Same.
25062 (altivec_stvehx): Same.
25063 (altivec_stvebx): Same.
25064 (altivec_stvebx): Same.
acfab996 25065
5e505bc9
AH
250662002-01-15 Aldy Hernandez <aldyh@redhat.com>
25067
d8086cbb 25068 * config.gcc: Change altivec.h to altivec-defs.h.
5e505bc9 25069
d8086cbb 25070 * config/rs6000/altivec.h: Delete.
5e505bc9 25071
d8086cbb 25072 * config/rs6000/altivec-defs.h: Add.
5e505bc9 25073
5c41fdfb
JDA
250742002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
25075
25076 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
25077 and UMOD modes.
25078
25079 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
25080 less than or equal to eight bytes.
25081
25082 * vax.md (andsi3): Remove constraints and change SET destination
25083 operand type to nonimmediate_operand.
25084 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
25085 when it is a CONST_INT.
25086
de097a2d
JM
250872002-01-15 Jason Merrill <jason@redhat.com>
25088
25089 * c-common.def (FILE_STMT): New code.
25090 * c-common.c (statement_code_p): It's a statement.
25091 * c-common.h (stmt_tree_s): Add x_last_filename.
25092 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
25093 (last_expr_filename): New macro.
25094 * c-semantics.c (begin_stmt_tree): Initialize it.
25095 (add_stmt): If the filename changed, also insert a
25096 FILE_STMT.
25097 (expand_stmt): Handle seeing one.
25098
4a913dd6
EC
250992002-01-15 Eric Christopher <echristo@redhat.com>
25100
25101 * flow.c (propagate_one_insn): Add error message and print out
25102 insn for debugging.
25103
006946e4
JM
251042002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
25105
25106 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
25107 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
25108 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
25109 TRAMPOLINE_ALIGNMENT.
25110 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
25111 to be in bits.
25112 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
25113 PCC_BITFIELD_TYPE_MATTERS.
25114 * config/interix.h (STDC_VALUE): Remove. Use
25115 STDC_0_IN_SYSTEM_HEADERS.
25116 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
25117 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
25118 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
25119
751a1458
CR
251202002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
25121
25122 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
25123 not work on this platform currently.
25124
57771fe8
JM
251252002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
25126
25127 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
25128 readonly_warning in _().
25129
0e83ceb1 251302002-01-15 Douglas B Rupp <rupp@gnat.com>
9a52433e 25131
0e83ceb1 25132 * gcc.c (delete_if_ordinary): Backout previous change.
9a52433e 25133
8e2e89f7
KH
251342002-01-15 Kazu Hirata <kazu@hxi.com>
25135
0e83ceb1
DR
25136 * config/h8300/h8300.c (print_operand): Remove support for
25137 unused operand characters.
25138
8e2e89f7
KH
25139 * read-rtl.c: Fix formatting.
25140 * real.c: Likewise.
25141 * recog.c: Likewise.
25142 * regclass.c: Likewise.
25143 * regmove.c: Likewise.
25144 * reg-stack.c: Likewise.
25145 * reload1.c: Likewise.
25146 * rtlanal.c: Likewise.
25147
b531087a
KH
251482002-01-15 Kazu Hirata <kazu@hxi.com>
25149
25150 * config/i386/i386.c: Fix formatting.
25151
7c94ce7f
JJ
251522002-01-15 Jakub Jelinek <jakub@redhat.com>
25153
25154 * c-typeck.c (process_init_element): Don't save_expr
25155 COMPOUND_LITERAL_EXPR if just its initializer will be used.
25156
6041bf2f
DE
251572002-01-15 David Edelsohn <edelsohn@gnu.org>
25158
25159 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
25160 emit optional traceback table if optimize_size or TARGET_ELF.
25161 * config/rs6000/rs6000.md (prefetch): New.
25162
8559c8c0
AJ
251632002-01-15 Andreas Jaeger <aj@suse.de>
25164
25165 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
25166
70f122f2
KH
251672002-01-15 Kazu Hirata <kazu@hxi.com>
25168
25169 * mips-tfile.c: Fix formatting.
25170
6a7b4ca6
JH
25171Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
25172
25173 * unroll.c (final_reg_note_copy): Fix previous commit.
25174
e7afe229
KH
251752002-01-14 Kazu Hirata <kazu@hxi.com>
25176
25177 * config/h8300/h8300-protos.h: Remove the prototype for
25178 eq_operator.
25179 * config/h8300/h8300.c (eq_operator): Remove.
25180
7d378549
RH
251812002-01-14 Richard Henderson <rth@redhat.com>
25182
25183 * config/i386/i386.md (prefetch): Tidy.
25184 (prefetch_3dnow): Fix locality operand.
25185
ab093b81
RH
251862002-01-14 Richard Henderson <rth@redhat.com>
25187
25188 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
25189 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
25190
d300f51f
HPN
251912002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
25192
25193 * reload1.c (reload_combine): Pass reg_sum replacement through
25194 copy_rtx in loop performing multiple changes.
25195
655dd289
JJ
251962002-01-14 Jakub Jelinek <jakub@redhat.com>
25197
25198 * except.c (remove_unreachable_regions): New.
25199 (free_eh_status): Clear exception_handler_labels.
25200 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
25201 (find_exception_handler_labels): Don't add the same label more than
25202 once.
25203 (remove_exception_handler_label): Don't die if
25204 find_exception_handler_labels hasn't been called for the current
25205 function yet.
25206
1fba46a7
JH
25207Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
25208
25209 * toplev.c (rest_of_compilation): Rebuild jump labels after
25210 gcse.
25211
0975678f
JM
252122002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
25213
25214 * doc/extend.texi: Move documentation of X86 built-in functions
25215 here.
25216 * doc/invoke.texi: From here.
25217 * doc/sourcebuild.texi: Document location of documentation for
25218 machine built-in functions.
25219
969815c7
CF
252202002-01-13 Christopher Faylor <cgf@redhat.com>
25221
25222 * cppfiles.c (TEST_THRESHOLD): New macro.
25223 (SHOULD_MMAP): Ditto.
25224 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
25225 be used.
25226
494c950b
JH
25227Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
25228
25229 * unroll.c (final_reg_note_copy): Properly handle
25230 REG_LABEL
25231 (unroll_loops): Fix LOOP_CONDITION heuristics.
25232
69a0611f
GK
252332002-01-14 Geoffrey Keating <geoffk@redhat.com>
25234
25235 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
25236 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
25237
b90e45ae
JH
25238Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
25239
25240 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
25241 threaded loop.
25242
8377288b
TR
252432002-01-14 Tom Rix <trix@redhat.com>
25244
25245 * config/rs6000/rs6000.md: Fix typo with sradi.
25246
9f37ccb1
UW
252472002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
25248
25249 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
25250 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
25251 (clrstrdi, clrstrsi): Adapt callers.
25252
25253 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
25254
8559c8c0 25255 (movti splitter): Never use register 0 as base register.
9f37ccb1 25256
6c2d03d0
HP
252572002-01-14 Hartmut Penner <hpenner@de.ibm.com>
25258
8559c8c0
AJ
25259 * combine.c (simplify_shift_const): Always generate new rtx
25260 for shift expression instead of reusing given expression.
6c2d03d0 25261
d3e98208
RK
25262Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25263
25264 * config/alpha/alpha.c (alpha_expand_mov): Don't call
25265 alpha_legitimize_address unless mode is Pmode.
25266
9f339dde
GK
252672002-01-13 Geoffrey Keating <geoffk@redhat.com>
25268
25269 * doc/md.texi (Modifiers): Document the '*' constraint for the
25270 user.
25271
25272 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
25273 * doc/extend.texi (Function Attributes): 'interrupt' is valid
25274 for xstormy16 too.
25275
02a10130
RH
252762002-01-13 Richard Henderson <rth@redhat.com>
25277
25278 * reload.c (find_reloads): Use a hard reg destination as reload reg
25279 for an input reload of the source.
25280
61d47787
GP
252812002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
25282
25283 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
25284 more generic.
25285
f0df8029
DR
25286Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
25287
25288 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
25289 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
25290
d2a37256
DR
25291 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
25292
a9e8a5ee
RK
25293Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25294
25295 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
25296
bc06712d
TR
252972002-01-12 Tom Rix <trix@redhat.com>
25298
8559c8c0 25299 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
bc06712d
TR
25300 TARGET_POWERPC64.
25301
7cbe9bb7
RH
253022002-01-12 Richard Henderson <rth@redhat.com>
25303
38b29e64
RH
25304 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
25305
58605ba0
RH
25306 * doc/invoke.texi: Update Alpha options.
25307
7cbe9bb7
RH
25308 * doc/invoke.texi: Update i386 built-in function lists.
25309
9d560860
JH
25310Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
25311
25312 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
25313 referencing outside.
25314
bb93b973
RK
25315Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25316
25317 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
25318 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
25319 offsets, and change line folding.
25320 * optabs.c (expand_binop): Remove warnings.
25321 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8559c8c0 25322
f9f6b7df
GS
253232002-01-12 Graham Stott <grahams@redhat.com>
25324
25325 * attribs.c (handle_deprecated_attribute): constify WHAT.
25326 * diagnostic.c (warn_deprecated_use): Add braces, fixes
25327 dangling else warning and constify WHAT.
25328 * except.h (struct function, struct inline_remap): Move
25329 struct tag forward defs before all prototypes.
25330 (duplicate_eh_regions): Whitespace.
25331
4a692617
NC
253322002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
25333
25334 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
25335 MODE_BASE_REG_CLASS.
25336 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
25337
e37af218
RH
253382002-01-12 Richard Henderson <rth@redhat.com>
25339
25340 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
25341 (ix86_expand_vector_move): New.
25342 (bdesc_2arg): Remove andps, andnps, orps, xorps.
25343 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
25344 Remove old prefetch builtins. Special case the logicals removed above.
25345 (ix86_expand_builtin): Likewise.
25346 (safe_vector_operand): Use V4SFmode, not TImode.
25347 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
25348 (ix86_expand_timode_binop_builtin): New.
25349 * config/i386/i386-protos.h: Update.
25350 * config/i386/i386.h (enum ix86_builtins): Update.
25351 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
25352 Use ix86_expand_vector_move in vector move expanders.
25353 (movti_internal, movti_rex64): Add xorps alternative.
25354 (sse_clrv4sf): Rename and adjust from sse_clrti.
25355 (prefetch): Don't work so hard.
25356 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
25357 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
25358 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
25359
6f1a6c5b
RH
253602002-01-11 Richard Henderson <rth@redhat.com>
25361
25362 * config/i386/mmintrin.h: New file.
25363 * config/i386/xmmintrin.h: New file.
25364 * config.gcc (i?86-*-*): Add extra_headers.
25365 * simplify-rtx.c (simplify_unary_operation): Handle saturating
25366 truncation codes.
25367 (simplify_binary_operation): Handle saturating arithmetic codes.
25368 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
25369 not the lowpart subreg.
25370 (ix86_expand_builtin): Return a TImode dummy register instead of 0
25371 on error.
25372 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
25373
cdb574d3
MH
253742002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
25375
25376 * conflict.c (conflict_graph_compute): Free regsets when finished.
25377 * ssa.c (compute_coalesced_reg_partition): Likewise.
8559c8c0 25378
cf11ac55
HB
253792002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
25380
25381 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
25382 every where we allocate a register.
25383
76ac938b
MH
253842002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
25385
25386 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
25387 * lcm.c (compute_earliest, compute_farthest): Likewise.
25388
a84b4898
JJ
253892002-01-11 Janis Johnson <janis187@us.ibm.com>
25390
25391 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
25392
aaef1c12
JJ
253932002-01-11 Janis Johnson <janis187@us.ibm.com>
25394
25395 * doc/rtl.texi (Insns): Fix 2 typos.
25396
5d22c1a5
JM
253972002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
25398
25399 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
25400 options. Use @table @gcctabopt for MMIX options. Add index
25401 entries for MMIX options. Start new paragraph with first
25402 heading of the machine-dependent options.
25403
3e92902c
CR
254042002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
25405
25406 PR other/5299
25407 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
25408 * combine.c (force_to_mode): Same.
25409 * reload1.c (clear_reload_reg_in_use): Same.
25410
96ae8197
NC
254112002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
25412
25413 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
25414 and 'subtargets'.
25415
9b780582
AJ
254162002-01-11 Andreas Jaeger <aj@suse.de>,
25417 Brad Lucier <lucier@math.purdue.edu>
25418
25419 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
25420 mcpu.
25421
12300dad
DR
25422Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
25423
25424 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
25425 Protect with IN_LIBGCC.
25426 (LINK_EH_SPEC): Add required trailing space.
25427
27511a9a
NP
25428Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
25429
9b780582 25430 * c-tree.h: Move function declarations so that they are listed
27511a9a
NP
25431 under the filename which contains them.
25432 (check_identifier, finish_decl_top_level,
25433 lookup_name_current_level_global, shadow_record_fields): Remove.
25434
4daeab16
AJ
254352002-01-11 Andreas Jaeger <aj@suse.de>
25436
25437 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
25438 march.
25439
40571d67
RH
254402002-01-10 Richard Henderson <rth@redhat.com>
25441
25442 * config/alpha/alpha.c (print_operand): Add 'J'.
25443 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
25444 new operand with the sequence number for the lituse. When splitting
25445 the insns, use gen_movdi_er_high_g and generate a sequence number.
25446 (gen_movdi_er_high_g): Print the sequence number if non-zero.
25447
6525c0e7
AH
254482002-01-10 Aldy Hernandez <aldyh@redhat.com>
25449
d8086cbb
RS
25450 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
25451 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
25452 stvxl.
25453 (altivec_expand_builtin): Same.
25454 (altivec_expand_stv_builtin): New.
25455
25456 * config/rs6000/rs6000.h (rs6000_builtins): Same.
25457
25458 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
25459 ("altivec_lvehx"): New.
25460 ("altivec_lvewx"): New.
25461 ("altivec_lvxl"): New.
25462 ("altivec_lvx"): New.
25463 ("altivec_stvx"): New.
25464 ("altivec_stvebx"): New.
25465 ("altivec_stvehx"): New.
25466 ("altivec_stvewx"): New.
25467 ("altivec_stvxl"): New.
6525c0e7 25468
cda94cbb
RH
254692002-01-10 Richard Henderson <rth@redhat.com>
25470
25471 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
25472 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
25473 care not to delete instructions twice.
25474
df2c9a44
ZW
254752002-01-10 Zack Weinberg <zack@codesourcery.com>
25476
25477 * toplev.c: Don't declare environ (it's not used anywhere).
25478 * configure.in: Don't check for declaration of environ.
25479 * config/i386/xm-mingw32.h: Don't #define environ.
25480 * config.in, configure: Regenerate.
25481
5dd8a9b1
ZW
254822002-01-10 Zack Weinberg <zack@codesourcery.com>
25483
25484 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
25485 * configure: Regenerate.
25486
25487 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
25488 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
25489 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
25490 alpha/xm-vms.h.
25491 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
25492 LIMITS_H_TEST here, not in m68k/x-next.
25493 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
25494 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
25495
25496 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
25497 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
25498 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
25499
25500 * config/i386/x-djgpp: Renamed i386/t-djgpp.
25501 * config/m88k/x-dolph: Renamed m88k/t-dolph.
25502 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
25503 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
25504 replacement of quadlib.asm with quadlib.c.
25505
25506 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
25507 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
25508 config/rs6000/xm-beos.h: Delete file.
25509
25510 * config.gcc: Update to match above changes.
25511
d10dd44c
KH
255122002-01-10 Kazu Hirata <kazu@hxi.com>
25513
25514 * config/h8300/h8300.h: Fix comment typos.
25515 * config/h8300/h8300.md: Likewise.
25516 * config/h8300/lib1funcs.asm: Likewise.
25517
04894c5a
DJ
255182002-01-10 Dale Johannesen <dalej@apple.com>
25519
25520 PR optimization/5269
25521 * unroll.c (precondition_loop_p): Make *increment be the correct
25522 sign when n_iterations known, to avoid confusing caller.
25523
adc9fe67
KH
255242002-01-10 Kazu Hirata <kazu@hxi.com>
25525
25526 * doc/extend.texi (deprecated): Fix a typo.
25527
b446e5a2
JH
25528Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
25529
25530 * basic-block.h (update_br_prob_note): Declare.
25531 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
25532 (try_forward_edges): Care negative frequencies and update note.
25533 (outgoing_edges_match): Tweek conditional merging heuristics.
25534 (try_crossjump_to_edge): use update_br_prob_note.
25535 * cfglayout.c (fixup_reorder_chain): Likewise.
25536 * cfrtl.c (update_br_prob_note): New.
25537 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
25538
25539 * i386.c (ix86_decompose_address): Return -1 if address contains
25540 shift.
25541 (legitimate_address_p): Require ix86_decompose_address to return 1.
25542
25543 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
25544 (cprop_insn): Likewise.
25545
a01da83b
KH
255462002-01-10 Kazu Hirata <kazu@hxi.com>
25547
25548 * toplev.c: Fix formatting.
25549 * tree.c: Likewise.
25550 * tree-dump.c: Likewise.
25551 * unroll.c: Likewise.
25552 * unwind-dw2.c: Likewise.
25553 * unwind-dw2-fde.c: Likewise.
25554 * unwind-dw2-fde-glibc.c: Likewise.
25555 * unwind-sjlj.c: Likewise.
25556
9f85bca7
JM
255572002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
25558
25559 * doc/invoke.texi: Document PDP-11 options.
25560
f48f56b1
KH
255612002-01-10 Kazu Hirata <kazu@hxi.com>
25562
25563 * config/h8300/h8300.h: Fix formatting.
25564
ead39bdf 255652002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
25566
25567 Add __attribute__ ((deprecated)).
25568 * extend.texi: Document __attribute__ ((deprecated)).
25569 * invoke.texi: Document -Wno-deprecated-declarations.
25570 * testsuite/g++.dg/other/deprecated.C: New C++ test.
25571 * testsuite/gcc.dg/deprecated.c: New C test.
25572 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
25573 (c_common_attribute_table): Add "deprecated" entry.
25574 (handle_deprecated_attribute): New function.
25575 * c-decl.c (deprecated_states): New enum.
25576 deprecated_state: State of "deprecated" handling.
25577 (start_decl): Set deprecated_state based on attributes.
25578 (grokdeclarator): Test for deprecated uses, propagate attribute.
25579 * c-typeck.c (build_component_ref): Test for deprecated fields.
25580 (build_external_ref): Test for deprecated primaries.
25581 * diagnostic.c (warn_deprecated_use) New function to issue
25582 warnings about __attribute__ ((depricated)) references.
25583 * flags.h (warn_deprecated_decl): Extern declared for
25584 -W[no-]deprecated-declarations option.
25585 * print-tree.c (print_node): Show deprecated flag status.
25586 * toplev.c (warn_deprecated_decl): Defined.
25587 (W_options): Added "deprecated-declaration".
25588 * toplev.h (warn_deprecated_use): Extern declared.
25589 * tree.h (struct tree_common): Define deprecated_flag.
25590 (TREE_DEPRECATED): New macro to access flag.
25591 * cp/call.c (build_call): Test for deprecated calls.
25592 * cp/class.c (add_implicitly_declared_members): Set global
25593 flag to tell grokdeclarator to not issue deprecated warnings.
25594 * cp/cp-tree.h: Add extern for adding_implicit_members.
25595 * cp/decl.c (deprecated_states): New enum.
25596 (start_decl): Set deprecated_state based on attributes.
25597 (grokdeclarator): Test for deprecated uses, propagate attribute.
25598 * cp/lex.c (do_identifier): Test for deprecated primaries.
25599 * cp/typeck.c (build_component_ref): Test for deprecated fields.
25600
ead39bdf 256012002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
25602
25603 Fix to assign attributes to inline member functions.
25604 * cp/decl.c (start_method): Handle attrlist.
25605
47073a38
KH
256062002-01-10 Kazu Hirata <kazu@hxi.com>
25607
25608 * combine.c (expand_field_assignment): Use subreg_lsb().
25609
d288e53d
DE
256102002-01-10 David Edelsohn <edelsohn@gnu.org>
25611
25612 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
25613 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
25614 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
25615 Recurse for any operand of AND as long as constant is non-zero.
25616
08a02ffa
KH
256172002-01-10 Kazu Hirata <kazu@hxi.com>
25618
25619 * config/h8300/h8300.md: Remove constraints from expanders.
25620
c203e7fe
KH
256212002-01-10 Kazu Hirata <kazu@hxi.com>
25622
25623 * varasm.c: Fix formatting.
25624 * varray.c: Likewise.
25625 * vmsdbgout.c: Likewise.
25626 * xcoffout.c: Likewise.
25627
bcb3bc6d
JH
25628Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
25629
25630 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
cda94cbb 25631 update edge probabilities to match.
bcb3bc6d 25632
0a553c7e
JM
256332002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
25634
25635 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
25636 dependencies.
25637 * doc/languages.texi, doc/sourcebuild.texi: New files.
25638 * doc/configfiles.texi: Make a subsubsection. Update.
25639 * doc/configterms.texi: Add @node. Remove warning that this isn't
25640 instructions for building GCC.
25641 * doc/makefile.texi: Make a subsection.
25642 * doc/gccint.texi: Update.
25643
adc7fcb8
JH
25644Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
25645
25646 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
25647
5a4dd0b3
NP
25648Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
25649
25650 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
25651
3987b9db
JH
25652Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
25653
25654 * optabs.c (expand_fix): Look for wider integer modes first.
25655
25656 * i386.md (mov?f): Avoid the fake const double trick for medium
25657 memory model.
25658 (min?f*/max?f*): Prohibit memory operands for i387 variant.
25659 (fop_df_4): Disable for SSE compilation.
25660
ceb15948 256612002-01-10 Graham Stott <grahams@redhat.com>
117f9d28
GS
25662
25663 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
cda94cbb 25664 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
117f9d28 25665
e1623399
RH
256662002-01-10 Richard Henderson <rth@redhat.com>
25667
25668 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
25669
c4abb293
RH
256702002-01-10 Richard Henderson <rth@redhat.com>
25671
25672 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
25673 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
25674
d2604ae9
KH
256752002-01-10 Kazu Hirata <kazu@hxi.com>
25676
25677 * combine.c (can_combine_p): Fix a comment typo.
25678
766c7ad1
ZW
256792002-01-09 Zack Weinberg <zack@codesourcery.com>
25680
25681 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
25682 empty list correctly. Change loop index $t to $f for
25683 consistency with rest of Makefile.
25684
95385cbb
AH
256852002-01-08 Aldy Hernandez <aldyh@redhat.com>
25686
25687 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
25688 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
25689
25690 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
25691 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
25692 (altivec_init_builtins): Same.
25693 (altivec_expand_unop_builtin): Return NULL_RTX on error.
25694 (altivec_expand_binop_builtin): Same.
25695 (altivec_expand_ternop_builtin): Same.
25696 (bdesc_dst): New.
25697
25698 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
25699 ("altivec_vctuxs"): Fix typo.
25700 ("altivec_vnmsubfp"): Same.
25701 ("altivec_dssall"): New.
25702 ("altivec_mfvscr"): New.
25703 ("altivec_dss"): New.
25704 ("altivec_lvsl"): New.
25705 ("altivec_lvsr"): New.
25706 ("altivec_dstt"): New.
25707 ("altivec_dstst"): New.
25708 ("altivec_dststt"): New.
25709 ("altivec_dst"): New.
25710
25711 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
25712 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
25713
e4ac76b4
RH
257142002-01-09 Richard Henderson <rth@redhat.com>
25715
25716 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
25717
c893e4a4
HPN
257182002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
25719
25720 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
25721 function.
25722 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
25723 prototype.
7387c700 25724 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
c893e4a4 25725
f4f4d0f8
KH
257262002-01-09 Kazu Hirata <kazu@hxi.com>
25727
25728 * read-rtl.c: Fix formatting.
25729 * real.c: Likewise.
25730 * regclass.c: Likewise.
25731 * regrename.c: Likewise.
25732 * reg-stack.c: Likewise.
25733 * reload1.c: Likewise.
25734 * reload.c: Likewise.
25735 * rtl.c: Likewise.
25736
cc863bea
KH
257372002-01-09 Kazu Hirata <kazu@hxi.com>
25738
25739 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
25740 to extract items in the expr_list chain.
25741
7b4dfe3d
RH
257422002-01-09 Richard Henderson <rth@redhat.com>
25743
25744 * config/vax/vax.c (vax_rtx_cost): Never abort.
25745
1d969638
RH
25746 * config/vax/vax.h (REAL_ARITHMETIC): Define.
25747
7d5ab30e
JH
257482002-01-09 Jan Hubicka <jh@suse.cz>
25749
25750 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
25751
9503f3d1
RH
257522002-01-09 Richard Henderson <rth@redhat.com>
25753
25754 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
25755 Unify code from various alternatives.
25756
42bd17b7
RH
257572002-01-09 Richard Henderson <rth@redhat.com>
25758
25759 * regrename.c (copy_value): Ignore the copy if the source register
25760 is present in the value chain with a narrower mode.
25761
bdca3c33
HB
257622002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
25763
cda94cbb
RH
25764 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
25765 for the c4x target. Also improve layout.
bdca3c33 25766
c73a5e94
RH
257672002-01-09 Richard Henderson <rth@redhat.com>
25768
25769 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
25770 * config/m32r/m32r.md (and ior xor splitters): Swap operands
25771 to match insn patterns.
25772
dd0a18c0
RH
257732002-01-09 Richard Henderson <rth@redhat.com>
25774
25775 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
25776 (copyprop_hardreg_forward_1): Likewise.
25777
1fd9ac1e
JDA
257782002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
25779
25780 * pa.md (decrement_and_branch_until_zero): Change predicate for
25781 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
25782
5cb265ec
BM
257832002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
25784
25785 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
25786 gets undefined. For Darwin.
25787
fcd8fa8b
HB
257882002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
25789
25790 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
25791
bd3ab23a
MH
257922002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
25793
25794 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
25795
21e16bd6
RH
257962002-01-08 Richard Henderson <rth@redhat.com>
25797
25798 * regrename.c (copy_value): Ignore overlapping copies.
25799
a5376276
RH
258002002-01-08 Richard Henderson <rth@redhat.com>
25801
25802 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
25803 as needed to avoid shared structure.
25804
18cf8dda
KH
258052002-01-08 Kazu Hirata <kazu@hxi.com>
25806
25807 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
25808 H8/300H and H8/S.
25809
16c484c7
JM
258102002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
25811
25812 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
25813 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
25814 documentation of obsolete macros.
25815 * system.h: Poison these macros.
25816 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
25817 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
25818 config/c4x/c4x.h, config/clipper/clipper.h,
25819 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
25820 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
25821 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
25822 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
25823 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
25824 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
25825 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
25826 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
25827 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
25828 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
25829 config/sparc/sparc.h, config/stormy16/stormy16.h,
25830 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
25831 definitions and commented out definitions of obsolete macros.
25832 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
25833 of MAX_INT_TYPE_SIZE.
25834
14b3e8ef
UW
258352002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
25836
25837 * config/s390/s390.c (s390_preferred_reload_class): Never
25838 return ADDR_REGS if it isn't a subset of the given class.
25839 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
25840 FP_REGS, but all superclasses as well.
25841
25842 * config/s390/s390.c (s390_function_profiler): Fix thinko.
25843
25844 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
25845 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
25846 must not be a const_int.
25847
a693284d
RH
258482002-01-08 Richard Henderson <rth@redhat.com>
25849
25850 * Makefile.in (toplev.o): Depend on options.h.
25851 (gcc.o): Depend on specs.h.
25852
b3ca30df
JJ
258532002-01-08 Jakub Jelinek <jakub@redhat.com>
25854
25855 * expr.c (store_expr): Convert VOIDmode constants back to target's
25856 mode.
25857
24dbb440
GP
258582002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
25859
25860 * doc/invoke.texi: Markup gcc as @command. Refer to
25861 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
25862 of http://gcc.gnu.org/thanks.html.
25863
234e114c
DJ
258642002-01-08 Dale Johannesen <dalej@apple.com>
25865
25866 * config/rs6000/rs6000.md: Add missing int register
25867 target case to movdf_low.
25868
0d24f4d1
ZW
258692002-01-08 Zack Weinberg <zack@codesourcery.com>
25870
25871 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
25872 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
25873 (cppinit.o): Depend on except.h.
25874 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
25875 s-specs): New rules.
25876
25877 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
25878 Don't create specs.h/options.h/gencheck.h here. Remove
25879 unnecessary variable settings from last argument of AC_OUTPUT.
25880 * config.in, configure: Regenerate.
25881 * intl.c: Hardcode package name as "gcc".
25882
25883 * cppinit.c: Include except.h.
25884 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
25885 appropriate.
25886 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
25887 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
25888 (!)USING_SJLJ_EXCEPTIONS.
25889 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
25890
ed722f66
JM
258912002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
25892
25893 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
25894 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
25895 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
25896 documentation of obsolete macros.
25897 * system.h: Poison these macros.
25898 * config/d30v/d30v.h, config/ns32k/encore.h,
25899 config/stormy16/stormy16.h: Remove definitions and commented out
25900 definitions of obsolete macros.
25901
31e5e29a
NP
25902Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
25903
25904 * objc/objc-act.c (handle_class_ref): Mark the declaration of
25905 %sobjc_class_ref_%s as used - to prevent unwanted compiler
25906 warnings.
25907
bc1fa59c
UW
259082002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
25909
25910 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
25911 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
25912 to insn adjusting stack/frame pointer.
0d24f4d1 25913 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
bc1fa59c
UW
25914 accept operands that cause the insn to be non-splittable.
25915
a8086abf
GS
259162002-01-08 Graham Stott <grahams@redhat.com>
25917
25918 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
25919 (C_TYPE_FIELDS_VOLATILE): Likewise.
25920 (C_TYPE_BEING_DEFINED): Likewise.
25921 (C_IS_RESERVED_WORD): Likewise.
25922 (C_TYPE_VARIABLE_SIZE): Likewise.
25923 (C_DECL_VARIABLE_SIZE): Likewise.
25924 (C_MISSING_PROTOTYPE_WARNED): Likewise.
25925 (C_SET_EXP_ORIGINAL_CODE): Likewise.
25926 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
25927 parenthesis.
25928 (C_DECL_ANTICIPATED): Likewise.
25929 (c_build_type_variant): Add parenthesis.
25930
3f595aa1
JM
259312002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
25932
25933 * gcc.c (option_map): Remove --version.
25934 (process_command): Handle -fversion following the GNU Coding
25935 Standards. Partially addresses PR other/704.
25936
5bc5a8f9
GS
259372002-01-08 Graham Stott <grahams@redhat.com>
25938
25939 * combine.c (combine_instructions): Fix typo.
25940
16ec4ebf
GS
259412002-01-08 Graham Stott <grahams@redhat.com>
25942
25943 * debug.h: Use "tree" and "rtx" throughout.
25944
25945 * debug.c: Likewise.
25946
4b69f385
NC
259472002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
25948
25949 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
25950 constant pool, use the pool's version of the symbol instead.
25951
57d1019b
RH
259522002-01-07 Richard Henderson <rth@redhat.com>
25953
25954 * regrename.c (find_oldest_value_reg): Ignore the value chain if
25955 the original register was copied in a mode with a fewer number of
25956 hard registers than the desired mode.
25957 (copyprop_hardreg_forward_1): Likewise.
25958 (debug_value_data): Fix loop test.
25959 * toplev.c (parse_options_and_default_flags): Reenable
25960 -fcprop-registers at -O1.
25961
259622002-01-07 Aldy Hernandez <aldyh@redhat.com>
fa066a23 25963
0d24f4d1
ZW
25964 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
25965 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
fa066a23 25966
0d24f4d1
ZW
25967 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
25968 predicates.
fa066a23 25969
0d24f4d1 25970 * config/rs6000/rs6000.md: Add altivec predicate patterns.
fa066a23 25971
8f949e7e
JDA
259722002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
25973
25974 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
25975 (pa_output_function_prologue): Output local label at the beginning of
25976 the prologue when profiling.
25977 (hppa_profile_hook): Use the local label rather than the function label.
25978 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
25979
c62f2db5
AH
259802002-01-07 Aldy Hernandez <aldyh@redhat.com>
25981
0d24f4d1
ZW
25982 * config/rs6000/rs6000.c (print_operand): Remove extra space.
25983 (altivec_expand_unop_builtin): Fix thinko.
25984 (altivec_expand_binop_builtin): Same.
25985 (altivec_expand_ternop_builtin): Same.
25986 (altivec_expand_builtin): Same.
c62f2db5 25987
b5235ba7
RH
259882002-01-07 Richard Henderson <rth@redhat.com>
25989
25990 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
25991
7d8ac293
JM
259922002-01-07 Jason Merrill <jason@redhat.com>
25993
25994 * unwind-dw2.c (execute_cfa_program): Use < again.
25995
571a03b8
JJ
259962002-01-07 Jakub Jelinek <jakub@redhat.com>
25997
25998 * predict.c (combine_predictions_for_insn): Avoid division by zero.
25999
2e951384
JJ
260002002-01-07 Jakub Jelinek <jakub@redhat.com>
26001
26002 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
26003 Don't allow -1 - x -> ~x simplifications in the first pass.
26004
20e26713
AH
260052002-01-07 Aldy Hernandez <aldyh@redhat.com>
26006
0d24f4d1
ZW
26007 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
26008 arguments.
26009 (altivec_expand_binop_builtin): Same.
26010 (altivec_expand_unop_builtin): Same.
26011 (print_operand): Fix typo.
26012 (bdesc_1arg): Add vupk* variants.
20e26713 26013
0d24f4d1 26014 * rs6000.h (rs6000_builtins): Add vupk* enums.
20e26713 26015
0d24f4d1 26016 * rs6000.md: Add altivec_vupk* variants.
20e26713 26017
4dd57c18
JM
260182002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
26019
26020 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
26021 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
26022 and last update dates.
26023
0341c5d2
JJ
260242002-01-07 Janis Johnson <janis187@us.ibm.com>
26025
26026 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
26027
c7f3e0b0
MM
260282002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
26029
26030 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
26031 * config/avr/avr.h (CPP_SPEC): Likewise.
26032 (LINK_SPEC): Likewise.
26033 (CRT_BINUTILS_SPECS): Likewise.
26034 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
26035 * doc/invoke.texi (AVR Options): Document them.
26036
6ba4d630
JH
26037Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
26038
26039 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
26040 LABEL_NUSES.
26041
6253d571
GS
260422002-01-07 Graham Stott <grahams@redhat.com>
26043
0d24f4d1
ZW
26044 * config/i386/i386.h: Update copyright date.
26045 (HALF_PIC_PTR): Add parenthesis.
26046 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
26047 (CONSTANT_ALIGNMENT): Add parenthesis.
26048 (DATA_ALIGNMENT): Likewise.
26049 (LOCAL_ALIGNMENT): Likewise.
26050 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
26051 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
26052 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
26053 (HARD_REGNO_NREGS): Add paranethesis.
26054 (VALID_SSE_REG_MODE): Whitespace.
26055 (VALID_MMX_REG_MODE): Whitespace.
26056 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
26057 (ix86_hard_regno_mode_ok): Add parenthesis.
26058 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
26059 (RETURN_IN_MEMORY): Whitespace.
26060 (N_REG_CLASSES): Add parenthesis.
26061 (INTEGER_CLASS_P): Add parenthesis and wrap.
26062 (FLOAT_CLASS_P): Likewise.
26063 (SSE_CLASS_P): Likewise.
26064 (MMX_CLASS_P): Likewise.
26065 (MAYBE_INTEGER_CLASS_P): Likewise.
26066 (MAYBE_FLOAT_CLASS_P): Likewise.
26067 (MAYBE_SSE_CLASS_P): Likewise.
26068 (MAYBE_MMX_CLASS_P): Likewise.
26069 (Q_CLASS_P): Likewise.
26070 (GENERAL_REGNO_P): Uppercase macro parameter.
26071 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
26072 (FP_REGNO_P): Likewise.
26073 (ANY_FP_REGNO_P): Uppercase macro parameter.
26074 (SSE_REGNO_P): Likewise.
26075 (SSE_REGNO): Likewise.
26076 (SSE_REG_P): Likewise.
26077 (SSE_FLOAT_MODE_P): Likewise.
26078 (MMX_REGNO_P): Likewise.
26079 (MMX_REG_P):Likewise.
26080 (STACK_REG_P): Likewise.
26081 (NON_STACK_REG_P): Likewise.
26082 (STACK_TOP_P): Likewise.
26083 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
26084 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
26085 (SECONDARY_MEMORY_NEEDED): Likewise.
26086 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
26087 (MD_ASM_CLOBBERS): Whitespace and wrap.
26088 (MUST_PASS_IN_STACK): Whitespace and wrap.
26089 (RETURN_POPS_ARGS): Add parenthesis.
26090 (INIT_CUMULATIVE_ARGS): Likewise.
26091 (FUNCTION_ARG): Likewise.
26092 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
26093 (SETUP_INCOMING_VARARGS): Likewise.
26094 (BUILD_VA_LIST_TYPE): Add parenthesis.
26095 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
26096 parenthsis.
26097 (EXPAND_BUILTIN_VA_ARG): Likewise.
26098 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
26099 (INITIALIZE_TRAMPOLINE): Add parenthesis.
26100 (INITIAL_ELIMINATION_OFFSET): Likewise.
26101 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
26102 (REGNO_OK_FOR_BASE_P): Likewise.
26103 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
26104 (REGNO_OK_FOR_DIREG_P): Likewise.
26105 (REG_OK_FOR_INDEX_P): Whitespace.
26106 (REG_OK_FOR_BASE_P): Whitespace.
26107 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
26108 parenthesis.
26109 (FIND_BASE_TERM): Fix typo.
26110 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
26111 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
26112 (SYMBOLIC_CONST; Whitespace.
26113 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
26114 (ENCODE_SECTION_INFO): Whitespace.
26115 (FINALIZE_PIC): Remove do { ... } while (0).
26116 (PROMOTE_MODE): Wrap in do { ... } while (0).
26117 (CONST_COSTS): Whitespace.
26118 (RTX_COSTS): Add paramethesis, whitespace and wrap.
26119 (REGISTER_MOVE_COST): Add parenthesis.
26120 (MEMORY_MOVE_COST): Likewise.
26121 (EXTRA_CC_MODES): Whitespace.
26122 (SELECT_CC_MODE): Add parenthesis and whitespace.
26123 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
26124 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
26125 (ASM_OUTPUT_LABEL): Add paramethesis.
26126 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
26127 (ASM_OUTPUT_REG_POP): Likewise.
26128 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
26129 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
d9a5f180 26130
07933f72
GS
26131 * config/i386/i386.c: Update copyright.
26132 (CHECK_STACK_LIMIT): Add parenthesis.
26133 (AT_BP): Uppercase macro parameter.
26134 (x86_64_int_parameter_registers): Constify.
26135 (x86_64_int_return_registers): Likewise.
26136 (ix86_compare_op0): Use rtx.
26137 (construct_container): Constify INTREG parameter.
26138 (function_arg): Use rtx.
26139
0b4d32c9
GS
26140 * diagnostic.h: Update copyright date.
26141 (output_buffer_state): Add parenthesis.
26142 (output_buffer_format_args): Likewise.
26143
6253d571
GS
26144 * combine.c (combine_instructions): Replace XEXP (links, 0)
26145 with link.
26146
68f3f6f1
L
261472002-01-06 H.J. Lu <hjl@gnu.org>
26148
26149 * cfgcleanup.c (thread_jump): Fix 2 typos.
26150
261512002-01-06 Aldy Hernandez <aldyh@redhat.com>
480f7f3a 26152
0d24f4d1 26153 * config.gcc: Add support for --enable-altivec.
480f7f3a 26154
13b8c631
CR
261552002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
26156
26157 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
26158
58ad89b1
JJ
261592002-01-06 Jakub Jelinek <jakub@redhat.com>
26160
26161 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
26162 __objc_class_name_*.
26163
e403b4bc
CR
261642002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
26165
26166 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
26167
e41c7831
RH
261682002-01-06 Richard Henderson <rth@redhat.com>
26169
26170 * reorg.c (emit_delay_sequence): Remove death notes, not merely
26171 nop them out. Increment label reference count for REG_LABEL.
26172 (fill_slots_from_thread): Frob label reference count around
26173 delete_related_insns.
26174
3b3b1e32
RH
261752002-01-05 Richard Henderson <rth@redhat.com>
26176
26177 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
26178 jump threading.
26179
c28abdf0
RH
261802002-01-05 Richard Henderson <rth@redhat.com>
26181
26182 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
26183 * integrate.c (output_inline_function): Likewise.
26184 * toplev.c (rest_of_compilation): Do it here instead. Move call
26185 to remove_unnecessary_notes after emitting abstract instance.
26186 Force an emitted nested function to have its parent emited as well.
26187 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
26188 for null.
26189 (rtl_for_decl_location): Do not look at reload data structures
26190 before reload has run.
26191
c4f2c499
KH
261922002-01-05 Kazu Hirata <kazu@hxi.com>
26193
26194 * cse.c: Fix formatting.
26195 * dwarf2asm.c: Likewise.
26196 * dwarf2out.c: Likewise.
26197 * explow.c: Likewise.
26198 * expmed.c: Likewise.
26199 * function.c: Likewise.
26200 * gcov.c: Likewise.
26201 * gencheck.c: Likewise.
26202 * genrecog.c: Likewise.
26203 * ggc-common.c: Likewise.
26204 * ggc-page.c: Likewise.
26205 * global.c: Likewise.
26206
cf0d9408
KH
262072002-01-05 Kazu Hirata <kazu@hxi.com>
26208
26209 * combine.c: Fix formatting.
26210
bedca03a
CR
262112002-01-05 Craig Rodrigues <crodrigu@bbn.com>
26212
26213 PR middle-end/1557
26214 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
26215
0134bf2d
DE
262162002-01-05 David Edelsohn <edelsohn@gnu.org>
26217
26218 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
26219 as 1 for __powerpc64__ as well.
26220
26221 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
26222
26223 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
26224 return it.
26225
9ca88d5a
DB
262262002-01-05 Daniel Berlin <dan@dberlin.org>
26227
26228 * lcm.c: Revert change, due to performance regression it causes on
26229 SPEC because it's slightly more conservative (sigh, I hate
26230 edge-based LCM).
0d24f4d1 26231
1c570418
JH
26232Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
26233
26234 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
26235
d83bb9f7
NB
262362002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
26237
26238 * doc/cppinternals.texi: Update.
26239
3e0f61ac
HPN
262402002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
26241
26242 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
26243 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
26244 negatives.
26245 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
26246 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
26247 kludge for pre-october-14th mmix versions to handle new-found bug
26248 with PUSHJ/PUSHGO and the register stack.
26249 * config/mmix/mmix.h (struct machine_function): Rename member
26250 has_call_value_without_parameters to has_call_without_parameters.
26251 All referers changed.
26252 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
26253 TARGET_MASK_BRANCH_PREDICT): New macros.
26254 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
26255 -mno-reg-stack-fill-bug-workaround.
26256 * config/mmix/mmix.md ("call"): Set struct machine member
26257 has_call_without_parameters.
26258
4deaa2f8
JH
26259Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
26260
26261 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
26262
9f16e871
JH
26263Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
26264
26265 * cfgcleanup.c: Include tm_p.h
26266 (mark_effect): Fix handling of hard register; fix handling of SET
26267
96eb1157
KH
262682002-01-04 Kazu Hirata <kazu@hxi.com>
26269
26270 * config/h8300/h8300.md (anonymous patterns): Check that
26271 operands are registers before using REGNO on them.
26272
48180d68
RM
262732002-01-03 Roland McGrath <roland@frob.com>
26274
26275 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
26276
b0832fe1
JJ
262772002-01-04 Jakub Jelinek <jakub@redhat.com>
26278
26279 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
26280 * c-common.h (genrtl_expr_stmt_value): Likewise.
26281 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
26282 (expand_expr_stmt_value): Add maybe_last argument.
26283 Don't warn about statement with no effect if it is the last statement
26284 in expression statement.
26285 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
26286 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
26287 expand_expr_stmt_value.
26288 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
26289 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
26290 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
26291 as maybe_last to expand_expr_stmt_value.
26292
c1e14513
JL
26293Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
26294
0d24f4d1
ZW
26295 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
26296 be passed in, do not build it.
26297 (c_begin_if_stmt): New function.
26298 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
26299 * c-common.h (c_expand_start_cond): Update prototype.
26300 (c_begin_if_stmt): Prototype new function.
26301 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
26302 * c-parse.in (if_prefix): Use c_begin_if_stmt,
26303 c_begin_while_stmt and c_finish_while_stmt_cond.
c1e14513 26304
b6ec437a
WC
263052002-01-04 William Cohen <wcohen@redhat.com>
26306
26307 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
26308 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
26309 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
26310 * config/pa/som.h (ASM_FILE_START): Likewise.
26311
ead39bdf 263122002-01-04 Daniel Berlin <dan@cgsoftware.com>
517b711f
DB
26313
26314 * lcm.c: Include df.h.
26315 Add available_transfer_function prototype.
26316 (compute_available): Rework to use iterative dataflow framework.
26317 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
26318 with bb_info in df.h
26319 (available_transfer_function): New function.
26320
26321 * Makefile.in (lcm.o): add df.h to dependencies.
26322
551cc6fd
RH
263232002-01-04 Richard Henderson <rth@redhat.com>
26324
26325 * config/alpha/alpha.c (some_operand): Accept HIGH.
26326 (input_operand): Likewise; accept simple references to globals.
26327 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
26328 (alpha_const_double_ok_for_letter_p): Likewise.
26329 (alpha_extra_constraint): Likewise.
26330 (alpha_preferred_reload_class): Likewise. Do not force
26331 symbolic constants to memory.
26332 (alpha_legitimate_address_p): Accept simple references
26333 to small_symbolic_operand.
26334 (alpha_legitimize_address): New arg scratch. Be prepared to be
26335 called when no_new_pseudos. Emit simple symbolic references.
26336 Split integers into low, high, and rest.
26337 (alpha_expand_mov): Use alpha_legitimize_address.
26338 (some_small_symbolic_mem_operand): New.
26339 (split_small_symbolic_mem_operand): New.
26340 * config/alpha/alpha-protos.h: Update.
26341 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
26342 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
26343 (EXTRA_CONSTRAINT): Likewise.
26344 (PREFERRED_RELOAD_CLASS): Likewise.
26345 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
26346 (PREDICATE_CODES): Update.
26347 * config/alpha/alpha.md: New post-reload splitters to convert
26348 simplfied symbolic operands to the form that references $29.
26349 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
26350 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
26351
1eaea054
RH
263522002-01-03 Richard Henderson <rth@redhat.com>
26353
26354 * local-alloc.c (function_invariant_p): Update commentary.
26355
c4cc12b7
L
263562002-01-04 H.J. Lu <hjl@gnu.org>
26357
26358 * toplev.c (rest_of_compilation): Fix a typo when calling
26359 cleanup_cfg.
26360
173bf5be
KH
263612002-01-03 Kazu Hirata <kazu@hxi.com>
26362
26363 * c-common.c: Fix formatting.
26364 * diagnostic.c: Likewise.
26365 * doloop.c: Likewise.
26366 * dwarf2out.c: Likewise.
26367
187462ac
KH
263682002-01-03 Kazu Hirata <kazu@hxi.com>
26369
26370 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
26371 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
26372
5d8ebbd8
NB
263732002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
26374
26375 * cpperror.c: Update comments and copyright.
26376 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
26377 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
26378
518c1311
JDA
263792002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
26380
26381 * collect2.c (main): Use strcmp when testing for "-shared".
26382
d15a58c0
NB
263832002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
26384
26385 * cppmacro.c: Don't include intl.h. Update comments.
26386 (new_number_token): Allocate enough buffer for 64-bit unsigned
26387 integers; update prototype.
26388 * cppmain.c: Update comments.
26389
70f4f91c
WC
263902002-01-03 William Cohen <wcohen@redhat.com>
26391
26392 * function.h (struct function): Add profile.
26393 (current_function_profile): New.
26394 doc/extend.texi: Update documentation.
26395 * final.c (final_start_function): Use current_function_profile
26396 instead of profile_flag.
26397 (profile_after_prologue): Likewise.
26398 * function.c (expand_function_start): Likewise.
26399 (expand_function_start): Likewise.
c4cc12b7 26400 * config/alpha/alpha.c (direct_call_operand):
70f4f91c
WC
26401 (alpha_does_function_need_gp): Likewise.
26402 (alpha_expand_prologue): Likewise.
26403 * config/arm/arm.c (arm_expand_prologue): Likewise.
26404 thumb_expand_prologue: Likewise.
26405 * config/d30v/d30v.c (d30v_stack_info): Likewise.
26406 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
26407 (fr30_expand_prologue): Likewise.
26408 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
26409 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
26410 * config/i386/i386.h (FINALIZE_PIC): Likewise.
26411 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
26412 * config/i960/i960.c (i960_output_function_prologue): Likewise.
26413 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
26414 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
26415 (m32r_expand_prologue): Likewise.
26416 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
26417 (m88k_expand_prologue): Likewise.
26418 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
26419 * config/mips/mips.c (compute_frame_size): Likewise.
26420 (mips_expand_prologue): Likewise.
26421 (mips_can_use_return_insn): Likewise.
26422 * config/pa/elf.h (ASM_FILE_START): Likewise.
26423 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
26424 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
26425 * config/pa/som.h (ASM_FILE_START): Likewise.
26426 * config/romp/romp.c (romp_using_r14): Likewise.
26427 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
26428 (rs6000_stack_info): Likewise.
26429 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2fd17409 26430 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
70f4f91c
WC
26431 * config/v850/v850.c (compute_register_save_size): Likewise.
26432
cb1ac742
JJ
264332002-01-03 Jakub Jelinek <jakub@redhat.com>
26434
26435 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
26436 gen_lowpart_common fails, use gen_lowpart_SUBREG.
26437
61d951df 264382002-01-03 Turly O'Connor <turly@apple.com>
cb1ac742 26439
61d951df
TC
26440 * darwin.c (machopic_output_possible_stub_label): Don't generate
26441 stub routines for pseudo-stubs which we've just defined.
26442
505ddab6
KH
264432002-01-03 Kazu Hirata <kazu@hxi.com>
26444
26445 * builtins.c: Fix formatting.
26446 * c-typeck.c: Likewise.
26447 * combine.c: Likewise.
26448 * expr.c: Likewise.
26449 * loop.c: Likewise.
26450
b7e30d8a
AS
264512002-01-03 Andreas Schwab <schwab@suse.de>
26452
26453 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
26454 and return true if _cpp_push_next_buffer pushed a new include
26455 file.
26456 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
26457 _cpp_pop_file_buffer did not push a new file.
26458 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
26459
ff81832f
EC
264602002-01-02 Eric Christopher <echristo@redhat.com>
26461
26462 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
26463 FIND_REG_INC_NOTE call. Update copyright.
26464 * loop.c (canonicalize_condition): Ditto.
26465 * reorg.c (delete_scheduled_jump): Ditto.
26466
8e42ace1
KH
264672002-01-03 Kazu Hirata <kazu@hxi.com>
26468
26469 * gcse.c: Fix formatting.
26470
fb2bf631
GS
264712002-01-03 Graham Stott <grahams@redhat.com>
26472
26473 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
26474 forward defs for struct tags rtx_def, union_tree, rtvec_def
6253d571 26475 also output corresponding typedefs for rtx, tree, and rtvec.
fb2bf631
GS
26476
26477 * system.h: Move forward defs for struct tags rtx_def, union_tree,
26478 rtvec_def along with corresponding typedefs for rtx, tree, and
6253d571 26479 rtvec to config.h, hconfig.h, tconfig.h.
fb2bf631
GS
26480
264812002-01-03 Graham Stott <grahams@redhat.com>
b9daac31
GS
26482
26483 * tree.h: Update copyright date.
26484 (IS_EXPR_CODE_CLASS): Add parenthesis.
26485 (TREE_SET_CODE): Add whitespace.
26486 (TREE_CHECK): Add parenthesis.
26487 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
26488 (CST_OR_CONSTRUCTOR_CHECK):
26489 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
26490 (TREE_SYMBOL_REFERENCED): Whitespace.
26491 (INT_CST_LT): Likewise.
26492 (INT_CST_LT_UNSIGNED): Likewise.
26493 (tree_real_cst): Unwrap comment.
26494 (tree_string): Likewise.
26495 (tree_complex): Likewise.
26496 (IDENTIFIER_POINTER): correct cast.
26497 (SAVE_EXPR_CONTEXT): Whitespace.
26498 (EXPR_WFL_FILENAME_NODE): Likewise.
26499 (EXPR_WFL_FILENAME): Remove parenthesis.
26500 (DECL_ORIGIN): Add parenthesis.
26501 (DECL_FROM_INLINE): Use NULL_TREE.
26502 (build_int_2): Whitespace.
26503 (build_type_variant): Add parenthesis.
26504
26505 * gcc/jcf-parse.c: Update copyright date.
26506 (yyparse): Constify resource_filename.
26507
f52eda29
GS
265082002-01-03 Graham Stott <grahams@redhat.com>
26509
26510 * rtl.h: Update copyright date.
26511 (RTL_CHECK1): Wrap long line.
26512 (RTL_CHECK2): Likewise.
26513 (RTL_CHECKC1): Wrap long line and whitespace.
26514 (RTL_CHECKC2): Likewise.
26515 (XWINT): Whitespace.
26516 (XINT): Likewise.
26517 (XSTR): Likewise.
26518 (XEXP): Likewise.
26519 (XVEC): Likewise.
26520 (XMODE): Likewise.
26521 (XBITMAP): Likewise.
26522 (XTREE): Likewise.
26523 (XBBDEF): Likewise.
26524 (XTMPL): Likewise.
26525 (X0WINT): Likewise.
26526 (X0INT):Likewise.
26527 (X0UINT): Likewise.
26528 (X0STR): Likewise.
26529 (X0EXP): Likewise.
26530 (X0VEC): Likewise.
26531 (X0MODE): Likewise.
26532 (X0BITMAP): Likewise.
26533 (X0TREE): Likewise.
26534 (X0BBDEF): Likewise.
26535 (X0ADVFLAGS): Likewise.
26536 (X0CSELIB): Likewise.
26537 (X0MEMATTR): Likewise.
26538 (XCWINT): Likewise.
26539 (XCINT): Likewise.
26540 (XCUINT): Likewise.
26541 (XCSTR): Likewise.
26542 (XCEXP): Likewise.
26543 (XCVEC): Likewise.
26544 (XCMODE): Likewise.
26545 (XCBITMAP): Likewise.
26546 (XCTREE): Likewise.
26547 (XCBBDEF): Likewise.
26548 (XCADVFLAGS): Likewise.
26549 (XCCSELIB): Likewise.
26550 (XC2EXP): Likewise.
26551 (INSN_UID): Likewise.
26552 (PREV_INSN): Likewise.
26553 (PATTERN): Likewise.
26554 (INSN_CODE): Likewise.
26555 (PUT_REG_NOTE_KIND): Likewise.
26556 (CODE_LABEL_NUMBER): Likewise.
26557 (NOTE_SOURCE_FILE): Likewise.
26558 (NOTE_BLOCK): Likewise.
26559 (NOTE_EH_HANDLER): Likewise.
26560 (NOTE_RANGE_INFO): Likewise.
26561 (NOTE_LIVE_INFO): Likewise.
26562 (NOTE_BASIC_BLOCK): Likewise.
26563 (NOTE_EXPECTED_VALUE): Likewise.
26564 (NOTE_LINE_NUMBER): Likewise.
26565 (LABEL_NAME): Likewise.
26566 (LABEL_NUSES): Likewise.
26567 (LABEL_ALTERNATE_NAME): Likewise.
26568 (ADDRESSOF_DECL): Likewise.
26569 (JUMP_LABEL): Likewise.
26570 (LABEL_NEXTREF): Likewise.
26571 (REGNO): Likewise.
26572 (ORIGINAL_REGNO: Likewise.
26573 (HARD_REGISTER_NUM_P): Add parenthesis.
26574 (SUBREG_REG): Whitespace.
26575 (SUBREG_BYTE): Likewise.
26576 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
26577 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
26578 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
26579 (ASM_OPERANDS_INPUT_VEC): Likewise.
26580 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
26581 (ASM_OPERANDS_INPUT): Likewise.
26582 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
26583 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
26584 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
26585 (ASM_OPERANDS_INPUT_MODE): Likewise.
26586 (ASM_OPERANDS_SOURCE_FILE): Likewise.
26587 (ASM_OPERANDS_SOURCE_LINE): Likewise.
26588 (MEM_SET_IN_STRUCT_P): Minor reformat.
26589 (TRAP_CONDITION): Whitespace.
26590 (TRAP_CODE): Likewise.
26591 (COND_EXEC_TEST): Likewise.
26592 (COND_EXEC_CODE): Likewise.
26593 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
26594 (PHI_NODE_P): Add parenthesis.
26595 (plus_constant): Whitespace and add parenthesis.
26596
e03f5d43
KH
265972002-01-03 Kazu Hirata <kazu@hxi.com>
26598
26599 * config/avr/avr.c: Fix comment typos.
26600 * config/c4x/c4x.md: Likewise.
26601 * config/dsp16xx/dsp16xx.h: Likewise.
26602 * config/dsp16xx/dsp16xx.md: Likewise.
26603 * config/i386/i386.md: Likewise.
26604 * config/ia64/ia64.c: Likewise.
26605 * config/m32r/m32r.h: Likewise.
26606 * config/m68hc11/m68hc11.md: Likewise.
26607 * config/mmix/mmix.c: Likewise.
26608 * config/mn10200/mn10200.c: Likewise.
26609 * config/romp/romp.c: Likewise.
26610 * config/sh/sh.c: Likewise.
26611 * config/stormy16/stormy16.c: Likewise.
26612 * config/stormy16/stormy16.h: Likewise.
26613 * config/stormy16/stormy16.md: Likewise.
26614
97e300e9
GS
266152002-01-03 Graham Stott <grahams@redhat.com>
26616
26617 * loop.h: Update copyright date.
0d24f4d1
ZW
26618 (LOOP_MOVABLES): Fix typo.
26619 (LOOP_REGS): Likewise.
26620 (LOOP_IVS): Likewise.
ff81832f 26621
745b26b3
GS
266222002-01-03 Graham Stott <grahams@redhat.com>
26623
26624 * cppinit.c: Update copyright date.
26625 Don't include output.h
26626 * Makefile.in: Update copyright date.
26627 Update dependency.
26628
0a379b7a
CR
266292002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
26630
26631 PR c/5226
26632 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
26633 (-pthread) Add to RS/6000 options.
26634
a8154559
KH
266352002-01-02 Kazu Hirata <kazu@hxi.com>
26636
26637 * except.c: Fix comment typos.
26638 * loop.c: Likewise.
26639 * varasm.c: Likewise.
26640 * doc/tm.texi: Fix a typo.
26641
e6ecc89b
JJ
266422002-01-02 Jakub Jelinek <jakub@redhat.com>
26643
26644 * c-typeck.c (output_init_element): Allow initializing static storage
26645 duration objects with compound literals.
26646
d1094b40
RH
266472002-01-02 Richard Henderson <rth@redhat.com>
26648
26649 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
26650 after abusing it.
26651
0c5d8c82
KG
266522002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26653
5e65297b
KG
26654 * gcc.c (default_compilers): Const-ify.
26655 * mips-tdump.c (stab_names): Likewise.
26656 * mips-tfile.c (map_coff_types, map_coff_storage,
26657 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
26658 pseudo_ops_t, pseudo_ops): Likewise.
26659 * protoize.c (default_include): Likewise
26660
0c5d8c82
KG
26661 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
26662 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
26663 Add array size in declaration.
26664 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
26665 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
26666 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
26667 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
26668 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
26669 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
26670 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
26671 emtens, make_nan): Const-ify.
26672 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
26673 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
26674
817e13c4
JM
266752002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
26676
26677 * config.gcc (ia64-*-*): Set extra_headers.
26678 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
26679 * config/alpha/t-osf: Remove.
26680 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
26681
98095e2b
DE
266822002-01-02 David Edelsohn <edelsohn@gnu.org>
26683
26684 * config/rs6000/t-aix43: Revert previous change.
26685
a4200657
JM
266862002-01-02 Jason Merrill <jason@redhat.com>
26687
26688 * c-decl.c (c_expand_body): Call outlining_inline_function when
26689 emitting an inline function out of line.
26690
54ba1f0d
RH
266912002-01-02 Richard Henderson <rth@redhat.com>
26692
26693 * dwarf2out.c (limbo_die_node): Add created_for member.
26694 (new_die): New argument created_for. Update all callers.
26695 (mark_limbo_die_list): New.
26696 (dwarf2out_init): Register limbo_die_list as a root.
26697 (dwarf2out_finish): Force insert limbo dies into their function
26698 context.
26699
323728aa
NS
267002002-01-02 Nathan Sidwell <nathan@codesourcery.com>
26701
26702 PR c++/5089
26703 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
26704
aefc5826
KH
267052002-01-02 Kazu Hirata <kazu@hxi.com>
26706
26707 * config/h8300/fixunssfsi.c: Update copyright.
26708 Fix comment typos.
26709 Fix formatting.
26710 * config/h8300/h8300.c: Update copyright.
26711 Eliminate warnings.
26712
b1c9bc51
KH
267132002-01-02 Kazu Hirata <kazu@hxi.com>
26714
26715 * config/romp/romp.c: Fix comment formatting.
26716 * config/romp/romp.h: Likewise.
26717 * config/romp/romp.md: Likewise.
26718 * config/s390/s390.c: Likewise.
26719 * config/stormy16/stormy16.c: Likewise.
26720 * config/stormy16/stormy16.h: Likewise.
26721
1574ef13
AO
267222002-01-02 Alexandre Oliva <aoliva@redhat.com>
26723
26724 * c-common.h (genrtl_expr_stmt_value): Declare.
26725 * c-semantics.c (genrtl_goto_stmt): Redirect to...
26726 (genrtl_goto_stmt_value): ... this new function. Pass new
26727 argument down to expand_expr_stmt_value, taking
26728 TREE_ADDRESSABLE into account.
26729 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
26730 STMT_EXPR as addressable, i.e., one whose result we want.
26731 * expr.c (expand_expr): Don't save expression statement value
26732 of labeled_blocks or loop_exprs.
26733 * stmt.c (expand_expr_stmt): Redirect to...
26734 (expand_expr_stmt_value): ... this new function. Use new
26735 argument to tell whether to save expression value.
26736 (expand_end_stmt_expr): Reset last_expr_type and
26737 last_expr_value if we don't have either.
26738 * tree-inline.c (declare_return_variable): Mark its use
26739 statement as addressable.
26740 * tree.h: Document new use of TREE_ADDRESSABLE.
26741 (expand_expr_stmt_value): Declare.
26742
252b88f7
TR
267432002-01-01 Tom Rix <trix@redhat.com>
26744
26745 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
26746 rs6000_emit_allocate_stack.
26747
29f7a208
JM
267482002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
26749
26750 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
26751 ${srcdir}/ginclude/ to every entry in extra_headers.
26752 * configure: Regenerate.
26753 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
26754 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
26755 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
26756 * ginclude/proto.h: Rename to config/convex/proto.h.
26757
2cc2d4bb
RK
26758Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26759
26760 * attribs.c (handle_vector_size_attribute): Use host_integerp
26761 and tree_int_cst; remove warnings.
26762 * caller-save.c (insert_restore): Add cast to get rid of warning.
26763 (insert_save): Likewise.
26764 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
26765 * regmove.c (find_matches): Add temporary var to kill a warning.
26766
f01c9bcd
DR
267672002-01-01 Douglas B Rupp <rupp@gnat.com>
26768
16b61764
DR
26769 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
26770 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
26771 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
26772 (vms-dwarf2eh.o): Add Makefile rule.
26773 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
26774 * config/alpha/vms-dwarf2eh.asm: New file.
26775
f01c9bcd
DR
26776 * gcc.c (delete_if_ordinary): Delete all versions.
26777
91312b81
HPN
267782002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
26779
26780 * config/mmix/mmix.md: Update FIXME to not mention
26781 define_constants.
26782 (MMIX_rJ_REGNUM): New define_constants constant.
26783 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
26784 "*movdicc_real"): Adjust contraints formatting.
26785 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
26786 for branch prediction.
26787 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
26788 output template.
26789 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
26790 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
26791 number. Delete related FIXMEs.
26792 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
26793 from number to MMIX_rJ_REGNUM.
26794 (TARGET_MASK_BRANCH_PREDICT): New.
26795 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
26796 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
26797 value. Add -mbranch-predict and -mno-branch-predict.
26798 (TARGET_VERSION): Drop date.
26799 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
26800 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
26801 for finding out global symbols.
26802 (mmix_asm_output_labelref): Revert condition for global symbol.
26803 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
26804 (mmix_print_operand_punct_valid_p): A '+' is valid.
26805
619acae7 26806See ChangeLog.6 for earlier changes.
This page took 3.505133 seconds and 5 git commands to generate.