OSDN Git Service

2002-08-30 Janis Johnson <janis187@us.ibm.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-08-30  Janis Johnson  <janis187@us.ibm.com>
2
3         * doc/install.texi (Configuration, Building): Fix a typo and
4         some formatting directives.
5
6 2002-08-30  Paul Koning <pkoning@equallogic.com>
7
8         * doc/c-tree.texi (RDIV_EXPR): Fix typo.
9         * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
10         implemented" note.
11         * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
12         for alphabetic order.
13         * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
14         VAX_FLOAT_FORMAT.  Remove reference to HOST_FLOAT_FORMAT.
15         (VAX_HALFWORD_ORDER): Document.
16         (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
17         IEEE float format.
18         (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
19         (ASM_OUTPUT_LABEL_REF): Fix font.
20         (CASE_VECTOR_SHORTEN_MODE): Ditto.
21
22 2002-08-30  Denis Chertykov  <denisc@overta.ru>
23
24         * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
25         stuff.
26         (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
27         CONST_DOUBLE constants.
28         
29 2002-08-30  Jason Thorpe  <thorpej@wasabisystems.com>
30
31         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
32         related defines to...
33         (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
34         * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
35         as a no-op.
36
37 2002-08-30  Krister Walfridsson  <cato@df.lth.se>
38
39         * config/arm/arm.c (arm_asm_output_labelref): New function.
40         * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
41         * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
42
43 2002-08-29  Rodney Brown  <rbrown64@csc.com.au>
44
45         * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
46         memory exhausted" workarounds.
47
48 2002-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
49
50         * diagnostic.c (fancy_abort): Don't repeat "internal error".
51         * toplev.c (crash_signal): Likewise.
52
53 Fri Aug 30 00:33:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
54
55         * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
56         * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
57         Extended, updated documentation.
58         (-Wundeclared-selector): Documented.
59
60 2002-08-29  Jason Thorpe  <thorpej@wasabisystems.com>
61
62         * config/chorus.h: Consistently define *_DEBUGGING_INFO with
63         the value 1.  Do not undef before defining.
64         * config/darwin.h: Likewise.
65         * config/dbx.h: Likewise.
66         * config/dbxcoff.h: Likewise.
67         * config/dbxelf.h: Likewise.
68         * config/elfos.h: Likewise.
69         * config/interix.h: Likewise.
70         * config/lynx-ng.h: Likewise.
71         * config/lynx.h: Likewise.
72         * config/netware.h: Likewise.
73         * config/psos.h: Likewise.
74         * config/svr3.h: Likewise.
75         * config/alpha/alpha.h: Likewise.
76         * config/alpha/elf.h: Likewise.
77         * config/alpha/vms.h: Likewise.
78         * config/arc/arc.h: Likewise.
79         * config/arm/aout.h: Likewise.
80         * config/arm/coff.h: Likewise.
81         * config/c4x/c4x.h: Likewise.
82         * config/h8300/h8300.h: Likewise.
83         * config/i386/cygwin.h: Likewise.
84         * config/i386/djgpp.h: Likewise.
85         * config/i386/gas.h: Likewise.
86         * config/i386/gstabs.h: Likewise.
87         * config/i386/i386-coff.h: Likewise.
88         * config/i386/i386-interix.h: Likewise.
89         * config/i386/sco5.h: Likewise.
90         * config/i386/svr3dbx.h: Likewise.
91         * config/i386/sysv3.h: Likewise.
92         * config/i386/win32.h: Likewise.
93         * config/i386/x86-64.h: Likewise.
94         * config/i960/i960.h: Likewise.
95         * config/ia64/ia64.h: Likewise.
96         * config/ip2k/ip2k.h: Likewise.
97         * config/m32r/m32r.h: Likewise.
98         * config/m68k/3b1.h: Likewise.
99         * config/m68k/3b1g.h: Likewise.
100         * config/m68k/ccur-GAS.h: Likewise.
101         * config/m68k/coff.h: Likewise.
102         * config/m68k/hp2bsd.h: Likewise.
103         * config/m68k/hp310g.h: Likewise.
104         * config/m68k/hp320g.h: Likewise.
105         * config/m68k/hp3bsd.h: Likewise.
106         * config/m68k/hp3bsd44.h: Likewise.
107         * config/m68k/linux-aout.h: Likewise.
108         * config/m68k/m68k-aout.h: Likewise.
109         * config/m68k/mot3300.h: Likewise.
110         * config/m68k/netbsd.h: Likewise.
111         * config/m68k/openbsd.h: Likewise.
112         * config/m68k/pbb.h: Likewise.
113         * config/m68k/plexus.h: Likewise.
114         * config/m68k/sun2.h: Likewise.
115         * config/m68k/sun3.h: Likewise.
116         * config/m68k/tower-as.h: Likewise.
117         * config/m68k/vxm68k.h: Likewise.
118         * config/m88k/aout-dbx.h: Likewise.
119         * config/m88k/m88k-aout.h: Likewise.
120         * config/mcore/mcore-elf.h: Likewise.
121         * config/mcore/mcore-pe.h: Likewise.
122         * config/mips/elf.h: Likewise.
123         * config/mips/elf64.h: Likewise.
124         * config/mips/iris5gas.h: Likewise.
125         * config/mips/iris6.h: Likewise.
126         * config/mips/mips.h: Likewise.
127         * config/mips/sni-gas.h: Likewise.
128         * config/mmix/mmix.h: Likewise.
129         * config/ns32k/netbsd.h: Likewise.
130         * config/pa/pa64-hpux.h: Likewise.
131         * config/romp/romp.h: Likewise.
132         * config/rs6000/sysv4.h: Likewise.
133         * config/rs6000/xcoff.h: Likewise.
134         * config/sh/coff.h: Likewise.
135         * config/sh/elf.h: Likewise.
136         * config/sparc/linux64.h: Likewise.
137         * config/sparc/liteelf.h: Likewise.
138         * config/sparc/netbsd.h: Likewise.
139         * config/sparc/openbsd.h: Likewise.
140         * config/sparc/pbd.h: Likewise.
141         * config/sparc/sp64-elf.h: Likewise.
142         * config/sparc/sp86x-elf.h: Likewise.
143         * config/sparc/sparc.h: Likewise.
144         * config/vax/vax.h: Likewise.
145         * config/vax/vaxv.h: Likewise.
146
147 2002-08-29  "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
148
149         * h8300.c (shift_alg_hi): Various tweaks to improve performance
150         of HImode shifts.
151         (get_shift_alg): Corresponding changes.
152
153 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
154
155         * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
156
157 2002-08-29  Richard Henderson  <rth@redhat.com>
158
159         * expr.h (enum block_op_methods): New.
160         (emit_block_move): Update prototype.
161         * expr.c (block_move_libcall_safe_for_call_parm): New.
162         (emit_block_move_via_loop): New.
163         (emit_block_move): Use them.  New argument METHOD.
164         (emit_push_insn): Always respect the given alignment.
165         (expand_assignment): Update call to emit_block_move.
166         (store_expr, store_field, expand_expr): Likewise.
167         * builtins.c (expand_builtin_apply): Likewise.
168         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
169         * function.c (expand_function_end): Likewise.
170         * config/sh/sh.c (sh_initialize_trampoline): Likewise.
171         * config/sparc/sparc.c (sparc_va_arg): Likewise.
172         * calls.c (expand_call, emit_library_call_value_1): Likewise.
173         (save_fixed_argument_area): Use emit_block_move with
174         BLOCK_OP_CALL_PARM instead of move_by_pieces.
175         (restore_fixed_argument_area): Likewise.
176         (store_one_arg): Fix alignment parameter to emit_push_insn.
177
178 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
179
180         * install.texi (hppa64-hp-hpux11*): Document installation procedure.
181
182 2002-08-29  Catherine Moore  <clm@redhat.com>
183
184         * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
185         NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
186         (PREDICATE_CODES): Include new predicates.
187         (RTX_COSTS): Handle UMOD and UDIV.  Tune MULT for v850e.
188         (TARGET_SWITCHES):  Add strict-align.
189         (TARGET_STRICT_ALIGN): New.
190         (MASK_DEFAULT, STRICT_ALIGNMENT):  Redefine.    
191         * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
192         Define.
193         (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
194         v850_muldi3.
195         * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
196         L_callt_save_r2_r31, L_return_r2_r31,
197         L_save_all_interrupt): Change addi to add.
198         (L_save_interrupt, L_return_interrupt): Rework.
199         (__return_r31):  Correct .size directive.
200         (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
201         (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
202         New routines.
203         * config/v850/v850.c (expand_prologue): Call
204         gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
205         gen_callt_return_interrupt and gen_callt_save_all_interrupt.
206         (reg_or_int9_operand): New predicate.
207         (reg_or_const_operand): New routine.
208         * config/v850/v850.md (return_interrupt): Changed from
209         restore_interrupt.
210         (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
211         (callt_save_interrupt): Change save sequence.
212         (callt_return_interrupt): New.
213         (save_interrupt): Don't use runtime function for LONG_CALLS
214         and TARGET_PROLOG_FUNCTION.
215         (save_all_interrupt): Likewise.
216         (mulsi3): Use new predicate.
217         (moviscc): Disallow some combination of constants.
218         Fix define_split for sasf insns, so that it will not generate bad
219         code if operand0 and operand5 are the same.
220         * config/v850/v850-protos.h: Prototype new predicates.
221
222 2002-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
223
224         * c-common.c (builtin_define_type_precision): New function.
225         (cb_register_builtins): Use it.  Define __WCHAR_UNSIGNED__ is
226         wchar_t is unsigned in C++.
227         * doc/cpp.texi (Common Predefined Macros): Document
228         __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
229         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
230         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
231
232 2002-08-28  Sylvain Pion <pion@cs.nyu.edu>
233
234         * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
235         section.  Mention that it is enabled by -Wall.
236         (-Wall): Mention that there can be language-specific warnings as well.
237         (-Wctor-dtor-privacy): Mention that it is enabled by default.
238         (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
239
240 Wed Aug 28 15:35:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
241
242         * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
243         if it is ever live.
244
245         * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
246         attribute for SHCOMPACT.
247
248         * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
249         appropriately.
250         (FUNCTION_BOUNDARY): Specify only the minimum alignment required
251         by the ABI.
252
253         * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
254
255 2002-08-28  Jason Thorpe  <thorpej@wasabisystems.com>
256
257         * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
258         "MASK_GAS|MASK_ABICALLS".
259         * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
260         (TARGET_DEFAULT): Remove.
261         (MACHINE_TYPE): Undefine before defining.
262         (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
263
264 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
265
266         * c-common.c (warn_abi): New variable.
267         * c-common.h (warn_abi): Likewise.
268         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
269         (c_common_decode_option): Handle it.
270         * doc/invoke.texi: Document -Wabi.
271         
272 Tue Aug 27 23:03:52 2002  Nicola Pero  <n.pero@mi.flashnet.it>
273
274         * c-common.c (warn_undeclared_selector): New variable.
275         * c-common.h (warn_undeclared_selector): Idem.
276         * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
277         to on when -Wundeclared-selector is found.
278         (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
279         * objc/objc-act.c (build_selector_expr): If
280         warn_undeclared_selector is set, check that the selector has
281         already been defined, and emit a warning if not.
282
283 2002-08-27  Nick Clifton  <nickc@redhat.com>
284             Catherine Moore  <clm@redhat.com>
285             Jim Wilson  <wilson@cygnus.com>
286
287         * config.gcc: Add v850e-*-* target.
288         Add --with-cpu= support for v850.
289         * config/v850/lib1funcs.asm: Add v850e callt functions.
290         * config/v850/v850.h: Add support for v850e target.
291         * config/v850/v850.c: Add functions to support v850e target.
292         * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
293         * config/v850/v850.md: Add patterns for v850e instructions.
294         * doc/invoke.texi: Document new v850e command line switches.
295
296 Tue Aug 27 18:30:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
297                           Aldy Hernandez <aldyh at redhat dot com>
298
299         * doc/tm.texi: Applied numerous fixes to the automaton based
300         scheduler descrition.
301
302 Tue Aug 27 19:51:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
303
304         * i386.c (classify_argument): Handle variable sized objects.
305
306 Tue Aug 27 19:18:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
307
308         * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
309
310 Tue Aug 27 18:01:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
311
312         * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
313
314 Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
315
316         * i386.c (classify_argument): Properly compute word size of the analyzed object.
317
318 Tue Aug 27 14:39:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
319
320         * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
321         mac_gp ftrc_s and cwb.  Add / Adjust definitions in individual insn
322         accordingly.
323         (attribute insn_class): Provide default definitions based on type.
324         Remove all insn-specific settings.
325         (various function units): Remove old SH4 scheduling.
326         (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
327         New attributes.  Set them where appropriate.
328         (cpu unit FS): Don't define / use.
329         (F3, load_store): New cpu units.
330         (F01): New reservation.
331         (all insn_reservations): Make dependent on sh4 pipeline model.
332         Fix latencies.
333         (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
334         (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
335         (mt insn_reservation): Use type mt_group.
336         (insn_reservation load_store): Split into sh4_load, sh4_load_si,
337         sh4_fload and sh4_store.
338         (insn_reservation branch_zero and branch): Replace with sh4_branch.
339         (insn_reservation branch_far): Replace with sh4_return.
340         (insn_reservation return_from_exp): Rename to:
341         (sh4_return_from_exp).  Change to be just d_lock*5.
342         (insn_reservation lds_to_pr): Rename to:
343         (sh4_lds_to_pr).  Change to be just d_lock*2.
344         (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
345         d_lock*2.
346         (insn_reservation prload_mem): Rename to:
347         (sh4_prstore_mem).  Change to d_lock*2,nothing,memory.
348         (insn_reservation fpscr_store): Rename to:
349         (fpscr_load).  Change to d_lock,nothing,F1*3.
350         (insn_reservation fpscr_store_mem): Rename to:
351         (fpscr_load_mem).  Change to d_lock,nothing,(F1+memory),F1*2.
352         (insn_reservation multi): Change to
353         d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
354         (insn_reservation fp_arith): Change to issue,F01,F2.
355         (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
356         (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
357         (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
358         (insn_reservation fp_double_cmp): Change to
359         d_lock,(d_lock+F01),F1+F2,F2.
360         (insn_reservation dp_div): Change to
361         issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
362         * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
363         (sh_adjust_cost, SHcompact): Differentiate between different
364         kinds of dependencies.  Drop factor of ten for superscalar.
365         Use new instruction types.  Add new exception rules.
366
367         * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
368
369         * sh.md (mperm_w): Add DONE.
370
371 2002-08-27  David Edelsohn  <edelsohn@gnu.org>
372
373         * longlong.h: Import current PowerPC defintion from GMP-4.1.
374
375         * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
376
377         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
378
379 Tue Aug 27 13:53:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
380
381         * sh.h (MAX_FIXED_MODE_SIZE): Define.
382
383 2002-08-27  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
384
385         * doc/cpp.texi (Common Predefined Macros): Don't mess with table
386         delimiter. 
387
388 2002-08-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
389
390         * c-common.c (cpp_define_data_format): New function.
391         (cb_register_builtins): Call it.
392
393         * doc/cpp.texi (Common Predefined Macros): Document
394         __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
395         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
396         __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
397         __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
398         __TARGET_USES_VAX_H_FLOAT__.
399
400 2002-08-26  Ziemowit Laski <zlaski@apple.com>
401
402         * objc/objc-act.c (get_super_receiver): If inside a class method
403         of a category, cast the receiver to 'id' before accessing the 'isa'
404         field so that <objc/objc-class.h> is not needed.  For NeXT runtime.
405
406 2002-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
407
408         * config/s390/s390-protos.h (s390_function_prologue, 
409         s390_function_epilogue): Remove.
410         config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
411         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
412
413         config/s390/s390.c (s390_machine_dependent_recorg): New function.
414         config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
415         config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
416         config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
417         to being called from MACHINE_DEPENDENT_REORG.  Update regs_ever_live.
418
419         config/s390/s390.c (s390_frame_info): Inline save_fprs_p.  Always 
420         assume BASE_REGISTER and RETURN_REGNUM need to be saved.
421         (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
422         function is not a leaf function.  Use save_gprs and restore_gprs.
423         (s390_emit_epilogue): Likewise.
424         (save_gprs, restore_gprs): New functions.
425         (struct s390_frame): Remove return_reg_saved_p member.
426         (save_fprs_p): Remove.
427         (s390_optimize_prolog): New function.
428         (s390_legitimate_reload_constant): Remove now unnecessary check.
429
430         (s390_function_count): Remove.
431         (s390_output_symbolic_const): Replace s390_function_count by
432         current_function_funcdef_no.
433         (s390_output_constant_pool): Likewise.
434
435         (legitimize_pic_address): Use regs_ever_live to track PIC register
436         instead of current_function_uses_pic_offset_table.
437         (s390_emit_prologue): Likewise.
438         config/s390/s390.md ("call", "call_value"): Likewise.
439
440 2002-08-26  Neil Booth  <neil@daikokuya.co.uk>
441
442         * c-opts.c (find_opt): Don't complain about wrong languages
443         here.  Return exact matches even for wrong language.
444         (c_common_decode_option): Complain about wrong languages
445         here.
446
447 2002-08-24  Stuart Hastings  <stuart@apple.com>
448
449         * function.h (struct function): Add flag
450         all_throwers_are_sibcalls.
451         * except.c (set_nothrow_function_flags): Replaces
452         nothrow_function_p. Set new flag.
453         * except.h (set_nothrow_function_flags): Replaces
454         nothrow_function_p.
455         * dwarf2out.c (struct dw_fde_struct): Add flag
456         all_throwers_are_sibcalls.
457         (output_call_frame_info): Test it.
458         (dwarf2out_begin_prologue) Propagate it from cfun to
459         dw_fde_struct.
460         * toplev.c (rest_of_compilation): Update calls to
461         nothrow_function_p.
462
463 2002-08-23  Zack Weinberg  <zack@codesourcery.com>
464
465         * ggc-page.c (compute_inverse): Short circuit calculation for
466         object sizes larger than half a page.
467
468 2002-08-23  David Edelsohn  <edelsohn@gnu.org>
469
470         * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
471         DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
472         default.
473         (rs6000_elf_unique_section): Likewise.
474
475 2002-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
476
477         * ns32k.c (ns32k_globalize_label): Delete.
478         * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
479
480 2002-08-23  Alan Modra  <amodra@bigpond.net.au>
481
482         * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
483         for loading delta with num_insns_constant_wide.  Calculate
484         delta_low, delta_high without using a conditional.
485
486 2002-08-22  Jason Merrill  <jason@redhat.com>
487
488         * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
489         * c-common.def: Adjust.
490         * c-dump.c (c_dump_tree): Adjust.
491         * c-semantics.c (genrtl_return_stmt): Adjust.
492         * c-pretty-print.c (pp_c_statement): Adjust.
493         * tree-inline.c (copy_body_r): Adjust.
494
495 2002-08-22  Zack Weinberg  <zack@codesourcery.com>
496
497         * ggc-page.c: Avoid division in ggc_set_mark.
498         (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
499         compute_inverse): New.
500         (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
501         (init_ggc): Initialize inverse_table.
502
503 2002-08-22  Tom Tromey  <tromey@redhat.com>
504
505         * doc/install.texi (Configuration): Document --datadir.
506
507 2002-08-22  Alexandre Oliva  <aoliva@redhat.com>
508
509         * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
510
511 2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
512
513         * gengtype-lex.l (ID): Allow underscore as first character.
514
515 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
516
517         * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
518         function.
519         (rs6000_xcoff_asm_named_section): Rename.
520         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
521
522 2002-08-21  Tom Tromey  <tromey@redhat.com>
523
524         For PR java/6005 and PR java/7611:
525         * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
526         (fold): Likewise.
527         * langhooks.c (lhd_can_use_bit_fields_p): New function.
528         * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
529         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
530         (LANG_HOOKS_INITIALIZER): Use it.
531         * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
532         field.
533
534 2002-08-21  Stan Shebs  <shebs@apple.com>
535
536         * tree.c (finish_vector_type): Fix a typo in a comment.
537         * Makefile.in: Fix "the the" stutters in comments.
538         * genautomata.c: Ditto.
539         * ifcvt.c: Ditto.
540         * regrename.c: Ditto.
541         * config/alpha/alpha.c: Ditto.
542         * config/alpha/vms-crt0-64.c: Ditto.
543         * config/alpha/vms-crt0.c: Ditto.
544         * config/alpha/vms-psxcrt0-64.c: Ditto.
545         * config/alpha/vms-psxcrt0.c: Ditto.
546         * config/d30v/d30v.h: Ditto.
547         * config/fr30/fr30.h: Ditto.
548         * config/rs6000/rs6000.c: Ditto.
549         * config/stormy16/stormy16.h: Ditto.
550         * doc/md.texi: Ditto.
551
552 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
553
554         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
555
556 2002-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
557
558         * c-decl.c (grokdeclarator): Make invalid combinations with long,
559         short, signed or unsigned into hard errors.  Fixes PR c/4319.
560         Also make duplicate modifiers such as "short short" into hard
561         errors.
562
563 2002-08-21  Andrew Pinski <pinskia@physics.uc.edu>
564             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
565
566         * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
567         to the actual end.  Add '@end table' and '@table @code'.
568
569 2002-08-20  Geoffrey Keating  <geoffk@redhat.com>
570
571         * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
572
573         * unroll.c (biv_total_increment): Don't try to compute the total
574         increment for FP BIVs.
575
576 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
577
578         * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
579         * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
580         ASM_OUTPUT_ALIGNED_BSS): Use target hook.
581         * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
582         * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
583         * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
584         (GLOBAL_ASM_OP): Define.
585         * arm.c (aof_globalize_label): New function.
586         (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
587         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
588         * c4x.c (c4x_globalize_label): New function.
589         (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
590         * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
591         (GLOBAL_ASM_OP): Define.
592         * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
593         * darwin-protos.h (darwin_globalize_label): Declare.
594         * darwin.c (darwin_globalize_label): New function.
595         * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
596         (ASM_GLOBALIZE_LABEL): Delete.
597         (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
598         * dsp16xx.c (asm_output_common): Use target hook.
599         * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
600         * frv.h (ASM_GLOBALIZE_LABEL): Delete.
601         (GLOBAL_ASM_OP): Define.
602         * i370.c (i370_globalize_label): New function.
603         (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
604         * i370.h (ASM_GLOBALIZE_LABEL): Delete.
605         * i386.c (ix86_asm_file_end): Use target hook.
606         * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
607         (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
608         * ia64.c (ia64_asm_output_external): Likewise.
609         * ia64/sysv4.h: Update comment.
610         * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
611         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
612         * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
613         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
614         * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
615         * mmix-protos.h (mmix_asm_globalize_label): Delete.
616         * mmix.c (mmix_asm_globalize_label): Likewise.
617         * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
618         (GLOBAL_ASM_OP): Define.
619         * ns32k.c (ns32k_globalize_label): New function.
620         * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
621         (ASM_GLOBALIZE_LABEL): Delete.
622         * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
623         (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
624         * pa.c (pa_globalize_label): New function.
625         * pa.h (ASM_GLOBALIZE_LABEL): Delete.
626         (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
627         * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
628         (GLOBAL_ASM_OP): Define.
629         (TARGET_ASM_GLOBALIZE_LABEL): Undef.
630         * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
631         * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
632         (GLOBAL_ASM_OP): Define.
633         * v850.c (v850_output_aligned_bss): Use target hook.
634         * vax.c (vms_globalize_label): New function.
635         (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
636         * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
637         (GLOBAL_ASM_OP): Define.
638         * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
639         * doc/tm.texi: Update docs.
640         * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
641         target hook.
642         * final.c (output_alternate_entry_point): Likewise.
643         * hooks.c (hook_FILEptr_constcharptr_void): New function.
644         * hooks.h (hook_FILEptr_constcharptr_void): Declare.
645         * output.h (assemble_global): Delete.
646         (default_globalize_label): Declare.
647         * system.h (ASM_GLOBALIZE_LABEL): Poison.
648         * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
649         (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
650         * target.h (gcc_target): Add globalize_label member.
651         * varasm.c (asm_output_bss, asm_output_aligned_bss,
652         globalize_decl): Use target hook.
653         (assemble_global): Delete.
654         (default_globalize_label): New function.
655
656 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
657
658         * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
659
660 2002-08-20  Devang Patel  <dpatel@apple.com>
661         * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
662
663 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
664
665         * arc.c (output_shift): Use stdio instead of asm_fprintf.
666         * arm.c (thumb_output_function_prologue): Likewise.
667         * avr.c (print_operand): Likewise.
668         * c4x.c (c4x_print_operand): Likewise.
669         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
670         ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
671         * cris.c (cris_target_asm_function_prologue,
672         cris_asm_output_mi_thunk): Likewise.
673         * h8300.c (print_operand): Likewise.
674         * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
675         * ip2k.c (print_operand): Likewise.  Fix format specifier.
676         * m68hc11.c (asm_print_register, print_operand,
677         print_operand_address): Use stdio instead of asm_fprintf.
678         (print_operand_address): Fix format specifier.
679         * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
680         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
681         asm_fprintf.
682         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
683         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
684         * m68k.c (m68k_output_function_prologue,
685         m68k_output_function_epilogue, print_operand): Likewise.
686         * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
687         Likewise.  Fix format specifier.
688         * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
689         * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
690         * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
691
692 2002-08-15  Eric Christopher  <echristo@redhat.com>
693             Jeff Knaggs  <jknaggs@redhat.com>
694
695         * config.gcc (mipsisa64sr71k-elf): New target.
696         * config/mips/sr71k.md: New file.
697         * config/mips/mips.md: Use it.
698         (rot*): Add sr71k specifics.
699         * config/mips/t-sr71k: New file.
700         * config/mips/mips.h (sr71k): New cpu.
701         (TARGET_SR71K): Use it.
702         (TUNE_SR71K): Ditto.
703         (GENERATE_BRANCHLIKELY): Ditto.
704         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
705         ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
706         * config/mips/mips.c (sr71k): New cpu.
707         (mips_use_dfa_pipeline_interface): Use.
708
709 2002-08-15  Eric Christopher  <echristo@redhat.com>
710             Richard Sandiford <rsandifo@redhat.com>
711             Aldy Hernandez  <aldyh@redhat.com>
712             Graham Stott    <grahams@redhat.com>
713             Michael Meissner  <meissner@redhat.com>
714             Gavin Romig-Koch  <gavin@redhat.com>
715             Ken Raeburn  <raeburn@cygnus.com>
716             Alexandre Oliva <aoliva@redhat.com>
717
718         * config.gcc (mips64vr-elf): New target.
719         * config/mips/5400.md: New file.
720         * config/mips/5500.md: Ditto.
721         * config/mips/mips.md: Use them.
722         (frsqrt): New.
723         * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
724         cpus.
725         (mips_issue_rate): Use them.
726         (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
727         (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
728         * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
729         cpus.
730         (TARGET_MIPSx): Use them.
731         (TUNE_MIPSx): Ditto.
732         (GETNATE_MULT3_SI): Ditto.
733         (ISA_HAS_BRANCHLIKELY): Ditto.
734         (ISA_HAS_CONDMOVE): Ditto.
735         (ISA_HAS_NMADD_NMSUB): Ditto.
736         (ISA_HAS_MULHI): New. Ditto.
737         (ISA_HAS_MULS): Ditto.
738         (ISA_HAS_MSAC): Ditto.
739         (ISA_HAS_MACC): Ditto.
740         (ISA_HAS_ROTR_SI): Ditto.
741         (ISA_HAS_ROTR_DI): Ditto.
742         (RTX_COSTS): Use.
743
744 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
745
746         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
747         at head.
748         (remove_dup_nonsys_dirs): New function.
749         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
750         (merge_include_chains): Remove non-system include directories from
751         quote and bracket include chains when they duplicate equivalent system
752         directories.
753         * doc/cpp.texi (-I): Update.
754         * doc/cppopts.texi (-I): Update.
755         * doc/install.texi (--with-local-prefix): Further document usage of
756         this option.
757         * doc/invoke.texi (-I): Update.
758
759 2002-08-20  Richard Henderson  <rth@redhat.com>
760
761         * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
762         (emit_block_move): Split out subroutines.
763         (emit_block_move_via_movstr): New.
764         (emit_block_move_via_libcall): New.  Emit bcopy via normal call also.
765         (emit_block_move_libcall_fn): New.  Construct function prototype for
766         bcopy as well.
767         (clear_storage): Split out subroutines.
768         (clear_storage_via_clrstr): New.
769         (clear_storage_via_libcall): New. Emit bzero as a normal call also.
770         (clear_storage_libcall_fn): New.  Construct function prototype for
771         bzero as well.
772         (emit_push_insn): Use emit_block_move.
773         (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
774         (store_constructor): Likewise.
775
776 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
777
778         * objc/objc-act.c (building_objc_message_expr): Rename to
779         current_objc_message_selector.
780
781 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
782
783         * objc/objc-act.c (build_ivar_chain): Remove.
784         (objc_copy_list): Likewise.
785         (get_class_ivars): Inline call to removed build_ivar_chain
786         function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
787         slot; use that slot (rather than CLASS_IVARS) when accessing
788         ivars for base classes.  Call copy_list and chainon instead of
789         objc_copy_list.
790         (build_private_template): Call get_class_ivars instead of
791         build_ivar_chain.
792         (start_class): Allocate room for the CLASS_OWN_IVARS slot.
793         (continue_class): Call get_class_ivars instead of
794         build_ivar_chain.
795         (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
796         of DECL_BIT_FIELD (which may have been cleared).
797         * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
798
799 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
800
801         * genautomata.c (output_translate_vect, output_state_ainsn_table,
802         output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
803         in output file.
804         (output_internal_min_issue_delay_func): Initialize variable in
805         output file.
806
807 2002-08-19  Alexandre Oliva  <aoliva@redhat.com>
808
809         * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
810         (stage2_build, stage3_build, stage4_build): Likewise, to CC.
811
812 2002-08-19  Geoffrey Keating  <geoffk@redhat.com>
813             Steve Ellcey  <sje@cup.hp.com>
814
815         * machmode.h (SCALAR_INT_MODE_P): New macro to test for
816         scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
817         * explow.c (trunc_int_for_mode): Abort when the mode is not
818         a scaler integer mode.
819         * combine.c (expand_compound_operation): Don't expand Vector
820         or Complex modes into shifts.
821         (expand_field_assignment): Don't do bitwise arithmatic and
822         shifts on Vector or Complex modes.
823         (simplify_comparison): Don't call trunc_int_for_mode
824         for VOIDmode.
825         * recog.c (general_operand): Likewise.
826         (immediate_operand): Likewise.
827         (nonmemory_operand): Likewise.
828
829 2002-08-19  David Edelsohn  <edelsohn@gnu.org>
830
831         * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
832         multi-instruction SImode constant.  Add REG_EQUAL note.
833         * config/rs6000/rs6000.md (movsi splitter): Use
834         rs6000_emit_set_const.
835
836 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
837
838         * tree-inline.c (initialize_inlined_parameters): Wrap variable in
839         the macro test controlling its use.
840
841 2002-08-18  H.J. Lu  (hjl@gnu.org)
842
843         * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
844         crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
845         gnu_ld=yes.
846         (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
847         i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
848         s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
849         xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
850         here.
851         (cris-*-linux*): Remove setting thread_file here.
852
853 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
854
855         PR preprocessor/7602
856         * cppinit.c (path_include): Treat the system environment
857         variables as being cxx_aware.
858
859 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
860
861         * c-decl.c (flexible_array_type_p): New function.
862         (grokdeclarator, finish_struct): Use it.
863         * doc/extend.texi: Document constraints on use of structures with
864         flexible array members.
865
866 2002-08-17  Richard Sandiford  <rsandifo@redhat.com>
867
868         * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
869         config/mips/t-r3900 (MULTILIB_MATCHES): Define.
870         * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
871
872 2002-08-16  Stan Shebs  <shebs@apple.com>
873
874         * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
875         for ObjC with -fnext-runtime.
876         * doc/cpp.texi: Document it.
877
878 2002-08-16  Janis Johnson  <janis187@us.ibm.com>
879
880         * doc/install.texi (Final installation): Replace links to individual
881         build status pages with a link to a common page that lists them all.
882
883 2002-08-16  Sylvain Pion <pion@cs.nyu.edu>
884
885         * doc/invoke.texi: Fix typo.
886
887 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
888
889         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
890
891 2002-08-16  Andrew Haley  <aph@redhat.com>
892
893         * tree-inline.c: Add includes for Java inliner.
894         (remap_decl): Don't handle anonymous types for Java.
895         (remap_block): Add handling for Java trees.
896         (copy_scope_stmt): Conditionalize for non-Java use only.
897         (copy_body_r): Handle Java trees.  Add handling for
898         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
899         (initialize_inlined_parameters):  Handle Java trees.
900         (declare_return_variable): Likewise.
901         (expand_call_inline): Handle Java trees.
902         (walk_tree): Likewise.
903         (copy_tree_r): Don't handle SCOPE_STMTs for Java.
904         (add_stmt_to_compound): New function.
905
906 2002-08-15  Richard Henderson  <rth@redhat.com>
907
908         * Makefile.in (LOOSE_WARN): Remove -fno-common.
909         (NOCOMMON_FLAG): New substitution point.
910         (GCC_WARN_CFLAGS): Include it.
911         * configure.in (ac_checking): Set nocommon_flag.
912         (nocommon_flag): New substitution point.
913
914 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
915
916         * c-tree.h (skip_evaluation): Move declaration...
917         * c-common.h: ... here.
918         * c-typeck.c (build_external_ref): Don't assemble_external nor
919         mark a tree as used if skip_evaluation is set.
920         * c-parse.in (typeof): New non-terminal to set skip_evaluation
921         around TYPEOF.
922         (typespec_nonreserved_nonattr): Use it.
923
924 2002-08-15  Douglas B Rupp  <rupp@gnat.com>
925
926         * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
927         (xcoff_debug_hooks): Update end_prologue.
928         * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
929         * debug.h (end_prologue): Add file arg.
930         (end_epilogue): Add line and file args.
931         (dwarf2out_end_epilogue): Add line and file args.
932         (vmsdbgout_after_prologue): Remove.
933         * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
934         (dwarf2_debug_hooks): Update end_prologue.
935         * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
936         (dwarfout_end_prologue): Add file arg.
937         * final.c (vmsdbgout_after_prologue): Remove
938         (final_end_function): Update end_epilogue call.
939         (final_scan_insn): Update end_prologue call.
940         * sdbout.c (sdbout_end_epilogue): Add line and file args.
941         (sdbout_end_prologue): Add file arg.
942         (sdb_debug_hooks): Update end_prologue.
943         (sdb_begin_prologue): Update sdbout_end_prologue call.
944         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
945         vmsdbgout_end_function.
946         (vmsdbgout_end_prologue): New function renamed from
947         vmsdbgout_after_prologue. Call vmsdbgout_source_line.
948         (vmsdbgout_end_function): New function.
949         (vmsdbgout_end_epilogue): Add line and file args. Call
950         vmsdbgout_source_line.
951         (write_pclines): Write only valid line numbers.
952         (write_srccorr): Don't write source correlation records if 0 lines.
953         * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
954
955 2002-08-15  Steve Ellcey  <sje@cup.hp.com>
956
957         * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
958         (_Unwind_Internal_Ptr): 32 bit version for use in
959         read_encoded_value_with_base.
960         * gcc/unwind-pe.h (read_encoded_value_with_base): Use
961         _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
962         right size.
963
964 2002-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
965
966         * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
967         signed/unsigned warnings.
968
969         * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
970         record_reg_classes): Likewise.
971
972         * reload.c (reload_inner_reg_of_subreg, push_reload,
973         find_reloads_address_1): Likewise.
974
975 2002-08-15  David Edelsohn  <edelsohn@gnu.org>
976
977         * rs6000.c (output_mi_thunk): Return to function section on
978         TARGET_ELF.
979
980         * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
981
982 2002-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
983
984         * config/s390/s390.c (legitimize_address): Optimize loading
985         of large displacements.
986
987 2002-08-14  Douglas B Rupp  <rupp@gnat.com>
988
989         * config/alpha/alpha-protos.h: Update.
990
991         * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
992         (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
993         (alpha_linkage_symbol_p): New static function.
994         (print_operand_address): Print linkage operand.
995
996         (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
997         variables.
998         (reloc_kind): New enum.
999         (struct alpha_funcs): New struct.
1000         (struct alpha_links): Add reloc_kind field. Rename links_kind field.
1001
1002         (alpha_need_linkage): Rewrite.
1003         (alpha_use_linkage): New global function.
1004         (alpha_write_linkage): Rewrite and make static.
1005         (alpha_write_one_linkage): Rewrite
1006
1007         (alpha_start_function): Remove procedure descriptor output.
1008         (alpha_end_function): Write linkages at end of each function.
1009
1010         * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
1011         (call_vms_1, call_value_vms_1): Rewrite.
1012
1013         * config/alpha/vms.h (ASM_FILE_END): Remove.
1014
1015 2002-08-14  Richard Henderson  <rth@redhat.com>
1016
1017         * ggc-page.c (RTL_SIZE): New.
1018         (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
1019         * rtl.def (BARRIER, NOTE): Pad to 9 slots.
1020
1021 2002-08-14  Richard Henderson  <rth@redhat.com>
1022
1023         * calls.c: Include target.h.
1024         * Makefile.in (calls.o): Update.
1025
1026         * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
1027         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
1028
1029 2002-08-14  Richard Henderson  <rth@redhat.com>
1030
1031         * Makefile.in (LOOSE_WARN): Add -fno-common.
1032         * c-common.h (constant_string_class_name): Add missing extern.
1033
1034 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
1035
1036         PR preprocessor/7358
1037         * c-opts.c (check_deps_environment_vars): Ignore main file
1038         for SUNPRO_DEPENDENCIES.
1039         * cppfiles.c (stack_include_file): Ignore main file if
1040         appropriate.
1041         * cpplib.h (struct cpp_options): New member in deps.
1042         * doc/cppenv.texi: Update.
1043
1044 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
1045
1046         PR preprocessor/7526
1047         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
1048
1049 2002-08-14  Nathan Sidwell  <nathan@codesourcery.com>
1050
1051         * doc/invoke.texi (-a): Remove documentation.
1052         (-fprofile-arcs): Remove reference to -a, -ax options.
1053         * doc/gcov.texi (Gcov Data Files): Data might be merged.
1054
1055 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
1056
1057         Fix PR/7566
1058         * c-semantics.c (genrtl_case_label): Don't (mis)use
1059         warning_with_decl.
1060
1061 2002-08-14  Dale Johannesen  <dalej@apple.com>
1062
1063         * explow.c (emit_stack_restore):  Emit memory clobbers
1064         preceding the stack pop, to prevent the scheduler from
1065         moving refs to variable arrays below this pop.
1066         * reload1.c (reload):  Preserve these clobbers for sched2.
1067         * doc/rtl.texi:  Document clobber (mem:BLK (scratch)).
1068
1069 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
1070
1071         * c-opts.c (c_common_post_options): Correct test.
1072
1073 2002-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1074
1075         * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
1076         order in call to fprintf.
1077
1078 2002-08-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1079
1080         * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
1081
1082 2002-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
1083
1084         * reload.c (find_reloads): Handle constraint letters marked by
1085         EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
1086         (alternative_allows_memconst): Likewise.
1087         * reload1.c (maybe_fix_stack_asms): Likewise.
1088         * recog.c (asm_operand_ok, preprocess_constraints,
1089         constrain_operands): Likewise.
1090         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
1091         * local-alloc.c (block_alloc, requires_inout): Likewise.
1092         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
1093
1094         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
1095         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
1096         * doc/tm.texi: Document these two new target macros.
1097
1098         * config/s390/s390.c (s390_expand_plus_operand): Accept already
1099         valid operands.
1100         (q_constraint): New function.
1101         config/s390/s390-protos.h (q_constraint): Declare it.
1102         config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
1103         (EXTRA_MEMORY_CONSTRAINT): New macro.
1104
1105         * config/s390/s390.md: Throughout the machine description,
1106         replace all instances of the constraint combinations 'Qo'
1107         or 'oQ' with simply 'Q'.
1108
1109 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
1110
1111         * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
1112         * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
1113         (LIBGCC2_CFLAGS): Compile with -mrelax.
1114
1115 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
1116
1117         * doc/invoke.texi: Document -minmax for 68HC12.
1118
1119         * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
1120         ("uminqi3"): Likewise.
1121         ("uminhi3", "umaxhi3"): Likewise.
1122
1123         * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
1124         (TARGET_MIN_MAX): Define.
1125         (TARGET_SWITCHES): New option -minmax/-mnominmax.
1126
1127 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
1128
1129         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
1130         (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
1131
1132         * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
1133         (ret, declare, farsym): New gas macros.
1134         (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
1135         ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
1136         and declare the symbol far when compiled with -mlong-calls.
1137         (__far_trampoline): New for 68HC12 trampoline code to invoke a
1138         far handler using jsr/bsr.
1139
1140         * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
1141         (jsr): New macro to transform a 'jsr' into a 'call'.
1142
1143 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
1144
1145         * doc/invoke.texi: Document -mlong-calls for 68HC12.
1146
1147         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
1148         -mlong-calls is specified.
1149         (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
1150         assembler directives.
1151         (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
1152         (TARGET_SWITCHES): Add -mlong-calls options.
1153         (current_function_far): Declare.
1154
1155         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
1156         into account the page register saved on the stack.
1157         (m68hc11_override_options): Take into account -mlong-calls option.
1158         (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
1159
1160         * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
1161         if the function is going to be in 68HC12 banked memory (-mlong-calls).
1162         ("*return_16bit"): Likewise.
1163         ("*return_void"): Likewise.
1164         ("call", "call_value"): Use call for a far function call.
1165
1166 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
1167
1168         * toplev.c (parse_options_and_default_flags): Don't call
1169         post_options here.
1170         (general_init): Initialize GC, pools and tree hash here,
1171         instead of lang_independent_init.
1172         (lang_independent_init): Rename backend_init.
1173         (do_compile): Call post_options hook; exit early if there
1174         have been errors after switch processing.
1175         (toplev_main): Update.
1176
1177 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
1178
1179         * c-pretty-print.h: Guard against multiple inclusion.
1180         Robustify macros.
1181         (pp_c_attributes): Declare.
1182         * c-pretty-print.c (pp_c_attributes): New function.
1183
1184 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1185
1186         * m68k.c (m68k_output_function_prologue,
1187         m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
1188         and NEWS/MOTOROLA.
1189         * genattrtab.c: Remove dpx2 comment.
1190         * libgcc2.c (__enable_execute_stack): Delete versions for
1191         NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
1192         sony_news/SYSTYPE_BSD.
1193         * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
1194         __gmicro__, __i860__, __NeXT__ and __pyr__.
1195         * rtl.h: Remove convex comment.
1196         * varasm.c: Likewise.
1197
1198 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1199
1200         * c-opts.c (lang_flags): Const-ify.
1201         * ra-build.c (undef_table): Likewise.
1202         * ra.c (eliminables): Likewise.
1203
1204 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
1205
1206         * tree.h: Guard against multiple inclusion.
1207
1208 2002-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
1209
1210         * reload1.c (reload_cse_simplify): Before checking
1211         REG_FUNCTION_VALUE_P, check REG_P.
1212
1213 2002-08-13  Geoffrey Keating  <geoffk@redhat.com>
1214
1215         * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
1216
1217 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
1218
1219         * c-opts.c (c_common_init_options): Extra braces needed.
1220
1221 Tue Aug 13 17:40:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
1222
1223         * sh.c (sh_init_builtins): Add PARAMS to declaration.
1224         (sh_media_init_builtins, sh_expand_builtin): Likewise.
1225         (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
1226         (sh_expand_binop_v2sf): Likewise.
1227         * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
1228         (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
1229         (sh_initialize_trampoline): Likewise.
1230
1231 2002-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
1232
1233         * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
1234         new condition code modes.
1235         s390.c (s390_match_ccmode_set): Handle those new CC modes.
1236         (s390_select_ccmode): Likewise.
1237         (s390_branch_condition_mask): Likewise.
1238
1239         * s390-protos.h (s390_tm_ccmode): Declare.
1240         s390.c (s390_tm_ccmode): New function.
1241         (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
1242
1243         * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
1244         ("*cmpsi_tm2"): Rename to "*tmsi_ext".
1245         ("*cmpqi_tm2"): Rename to "*tmqi_ext".
1246
1247         ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
1248         "*cmphi_tm_sub","*cmphi_cct_0",  "*cmpqi_tm", "*cmpqi_tm_sub",
1249         "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
1250         ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
1251         "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
1252
1253         ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
1254         "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
1255         "*cmpqi_ccs_0"): Remove, replace by ...
1256         ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
1257         "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
1258         "*tstqi", "*tstqi_cconly"): ... these new patterns.
1259
1260         ("*cmpsidi_ccs"): Remove, replace by ...
1261         ("*cmpsi_ccs_sign"): ... this new pattern.
1262         ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
1263
1264         ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
1265         ("*cli"): ... this new pattern.
1266
1267         ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
1268         "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
1269         New patterns.
1270         ("adddi3_64"): Rename to "*adddi3_64".
1271         ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
1272         ("adddi3"): Adapt expander.
1273
1274         ("*addsi3_cc"): Allow "general_operand" for operand 2.
1275         ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
1276         "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
1277
1278         ("addhi3", "addqi3"): Remove, replace by ...
1279         ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
1280
1281         ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
1282         "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
1283         ("subdi3"): Replace by insn and splitter "*subdi3_31".
1284         ("subdi3"): New expander.
1285
1286         ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
1287
1288         ("subhi3", "subqi3"): Remove, replace by ...
1289         ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
1290
1291         ("*muldi3_sign"): New pattern.
1292         ("muldi3"): Do not clobber CC.
1293         ("mulsi3"): Likewise.
1294         ("mulsi_6432"): Likewise.
1295
1296 2002-08-13  Denis Chertykov  <denisc@overta.ru>
1297
1298         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
1299         which can change CC0.
1300
1301 Tue Aug 13 14:49:20 2002  J"orn Rennecke <joern.rennecke@superh.com>
1302
1303         * gcse.c (adjust_libcall_notes): New function.
1304         (do_local_cprop): Use it.  Add fourth parameter.  Changed caller.
1305
1306 2002-08-13  Nathan Sidwell  <nathan@codesourcery.com>
1307
1308         * libgcc2.c (L_bb): Remove unneeded #includes.
1309         (__global_counters, __gthreads_active): Remove unused globals.
1310         (__bb_exit_func): Merge counts into files rather than appending.
1311         * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
1312         (ALL_CFLAGS): ... to here.
1313
1314 2002-08-13  Denis Chertykov  <denisc@overta.ru>
1315
1316         * config/ip2k/ip2k.c (commands_in_file): Variable removed.
1317         (function_epilogue): Don't calculate function size.
1318         (ip2k_set_compare): Don't use lookup_const_double.
1319         (asm_file_start): Initialization of commands_in_file removed.
1320         (asm_file_end): Output of commands_in_file removed.
1321
1322         * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
1323         __INT_MAX__.
1324
1325 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
1326
1327         * c-opts.c (c_common_init_options): Check option array is
1328         sorted if checking enabled.
1329
1330 2002-08-13  Gabriel Dos Reis  <gdr@nerim.net>
1331
1332         * c-pretty-print.c: #include "c-tree.h".
1333         (pp_c_simple_type_specifier): Tweak.
1334         (pp_c_storage_class_specifier): New.
1335         (pp_c_function_specifier): Likewise.
1336         (pp_c_declaration_specifiers): Likewise.
1337         (pp_c_init_declarator): Likewise.
1338         (pp_c_declaration): Likewise.
1339         (pp_c_direct_declarator): Stub.
1340         (pp_c_declarator): Likewise.
1341         (pp_c_parameter_declaration): Likewise.
1342
1343 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
1344
1345         * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
1346         handle_deferred_opts, sanitize_cpp_opts, defer_opt,
1347         struct deferred_opt): New.
1348         (COMMAND_LINE_OPTIONS): Add -M*.
1349         (missing_arg): Update.
1350         (c_common_decode_option): Handle -M*.
1351         (c_common_post_options): Handle -M*.  Use sanitize_cpp_opts;
1352         don't call cpp_post_options.
1353         (c_common_finish, check_deps_environment_vars): Update.
1354         * cppfiles.c (stack_include_file, handle_missing_header): Update.
1355         * cpphash.h (CPP_PRINT_DEPS): Remove.
1356         * cppinit.c: Don't include version.h.
1357         (cpp_create_reader): Don't call deps_init.  Initialize
1358         warn_long_long.
1359         (cpp_read_main_file): Init deps if necessary.
1360         (cpp_destroy): Conditionally free deps.
1361         (cpp_finish): Update.
1362         (no_tgt): Remove.
1363         (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
1364         (cpp_post_options): Rename post_options.
1365         * cpplib.h (struct cpp_options): Remove some dependency options;
1366         move others to a new structure.
1367         (cpp_post_options): Remove.
1368         (cpp_finish): Comment.
1369         * fix-header.c (read_scan_file): Don't call cpp_post_options.
1370
1371 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
1372
1373         * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
1374         ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
1375         MMIX_rR_REGNUM as clobbered.
1376         * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
1377
1378 2002-08-12  Gabriel Dos Reis  <gdr@nerim.net>
1379
1380         * diagnostic.h (output_formatted_scalar): Rename from
1381         output_formatted_integer.
1382         * diagnostic.def: Add DK_DEBUG.
1383         * diagnostic.c (output_decimal): Adjust.
1384         (output_long_decimal): Likewise.
1385         (output_unsigned_decimal): Likewise.
1386         (output_octal): Likewise.
1387         (output_long_octal): Likewise.
1388         (output_hexadecimal): Likewise.
1389         (output_long_hexadecimal): Likewise.
1390         * c-pretty-print.c (pp_c_type_specifier): New function.
1391         (pp_c_specifier_qualifier_list): Likewise.
1392         (pp_c_abstract_declarator): Likewise.
1393         (pp_c_char): Replace pp_format_integer with pp_format_scalar.
1394
1395 2002-08-12  David Edelsohn  <edelsohn@gnu.org>
1396
1397         * doc/trouble.texi (Disappointments): Add static constructor and
1398         destructor dependency information for AIX.
1399
1400 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
1401
1402         * cpphash.h (struct printer): New from cppmain.c.
1403         (cpp_reader): New member.
1404         * cppmain.c (struct printer): Move to cpphash.h.
1405         (options, print): Remove.
1406         (account_for_newlines, print_line, maybe_print_line,
1407         cpp_preprocess_file, setup_callbacks, scan_translation_unit,
1408         scan_translation_unit_trad, cb_line_change, cb_ident,
1409         cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
1410         cb_def_pragma): Make reentrant.
1411
1412 2002-08-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1413
1414         * real.c (ieee_64): Always define.
1415         (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
1416         (dec_h): Not used yet, hide it.
1417         (emdnorm): Mark parameter in ATTRIBUTE_UNUSED.  Guard label with
1418         macro controlling use.
1419         (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
1420
1421 Mon Aug 12 12:48:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
1422
1423         * i386.md (tablejump): Sign extend the operand.
1424         * i386.c (classify_argument): Fix missed case from previous patch.
1425
1426 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
1427
1428         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
1429         to c-copts.c.
1430         (warn_multichar): Die.
1431         (cb_register_builtins): Export.
1432         * c-common.h (warn_multichar, preprocess_file): Remove.
1433         (cb_register_builtins): New.
1434         * c-lang.c (c_init): Remove.
1435         (LANG_HOOKS_INIT): Use c_objc_common_init.
1436         * c-lex.c (init_c_lex): Don't canonicalize filename.
1437         * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
1438         (preprocess_file): Make static.  Update for cpplib.
1439         (c_common_decode_option): Remove warn_multichar.  Use in_fname.
1440         (c_common_post_options): Set some cpp options here.
1441         (c_common_init): Move from c-common.c.
1442         * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
1443         * cpplib.h (struct cpp_options): Remove in_fname.
1444         (cpp_preprocess_file): Update.
1445         * cppmain.c (cpp_preprocess_file): Update for new prototypes.
1446
1447 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1448
1449         * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
1450
1451 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1452
1453         * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
1454         backslash in comment preceeding macro definition.
1455         * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
1456         * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
1457         * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
1458
1459 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
1460
1461         * expr.c (store_expr): In condition for checking if value is
1462         generated in TARGET, move call to expr_size last.
1463
1464 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
1465
1466         * c-common.c (c_common_init): Call preprocess_file instead.
1467         (c_common_finish): Move to c-opts.c.
1468         * c-common.h (preprocess_file): new.
1469         * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
1470         check_deps_environment_vars, c_common_finish): New.
1471         (c_common_decode_option): Update for out_fname and dependencies.
1472         * cppinit.c (init_dependency_output, output_deps): Remove.
1473         (cpp_destroy): Update prototype.
1474         (cpp_add_dependency_target): New.
1475         (cpp_read_main_file): Don't overlay a buffer.
1476         (cpp_finish): Take a deps output stream and write deps to it.
1477         Return the error count.
1478         (cpp_post_options): Don't canonicalize out_fname, or do anything
1479         with dependencies.
1480         * cpplib.h (struct cpp_options): Remove out_fname and
1481         preprocess_only.
1482         (cpp_add_dependency_target): New.
1483         (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
1484         * cppmain.c (cpp_preprocess_file): Update prototype.  Don't
1485         set preprocess_only.  Don't handle the output stream directly.
1486
1487 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1488
1489         * dsp16xx.c (print_operand): Fix format specifier.
1490         * dsp16xx.md: Avoid automatic aggregate initialization.
1491         * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
1492         * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
1493         integer constant modifier.
1494         * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
1495         * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
1496         guards.
1497         * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
1498         * v850.c (v850_select_section): Mark parameter with
1499         ATTRIBUTE_UNUSED.
1500         * global.c (global_alloc): Const-ify.
1501         * ra-colorize.c (hardregset_to_string): Fix format specifier.
1502
1503 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1504
1505         * darwin-c.c (darwin_pragma_options): Const-ify.
1506         * darwin.c (machopic_non_lazy_ptr_name,
1507         machopic_validate_stub_or_non_lazy_ptr): Likewise.
1508         (machopic_indirect_data_reference): Wrap variables in macros
1509         controlling their use.
1510         (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
1511         (machopic_select_section): Use parentheses around && within ||.
1512         * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
1513
1514 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1515
1516         * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
1517         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
1518         ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
1519         ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
1520         mdr_try_remove_redundant_insns, track_w_reload,
1521         mdr_try_wreg_elim): Make function static to match prototype.
1522         * mmix.c (mmix_target_asm_function_epilogue): Likewise.  Mark
1523         parameter with ATTRIBUTE_UNUSED.
1524
1525 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1526
1527         * arc.c (arc_init): Don't use ISO C style function definitions.
1528         * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
1529         arm_get_strip_length, arm_strip_name_encoding): Likewise.
1530         * avr.h (progmem_section): Likewise.
1531         * h8300.c h8300_asm_insn_count): Likewise.
1532         * m32r.c (init_idents): Likewise.
1533         * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
1534         * sh.c (sh_cfun_interrupt_handler_p): Likewise.
1535         * xtensa.c (xtensa_build_va_list): Likewise.
1536
1537 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
1538
1539         * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
1540         * c-opts.c (parse_option): Rename find_opt.
1541         (set_std_c99): New function.
1542         (COMMAND_LINE_OPTIONS): Handle -remap and -o.  Remove OPT_std_bad.
1543         (missing_arg): Remove OPT_std_bad.  Handle -o.
1544         (c_common_decode_option): Handle input and output file names,
1545         -o and -remap.  Clean up -std= handling.
1546         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
1547         (cpp_handle_option): Similarly.  Don't handle filenames.
1548
1549 Sun Aug 11 14:43:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
1550
1551         * i386.c (classify_argument): Fix computing of field's offsets.
1552
1553 2002-08-11  Andreas Jaeger  <aj@suse.de>
1554
1555         PR target/7531:
1556         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
1557
1558 2002-08-10  Ziemowit Laski  <zlaski@apple.com>
1559
1560         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
1561         reference to clk_objective_c with flag_objc.
1562         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
1563         Likewise.
1564         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1565
1566 2002-08-10  Neil Booth  <neil@daikokuya.co.uk>
1567
1568         * c-opts.c (set_std_cxx98, set_std_c89): New.
1569         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
1570         (c_common_decode_option): Handle new switches from cppinit.c.
1571         Add -std=gnu++98.
1572         * cppinit.c (set_lang): Rename cpp_set_lang.  Export.
1573         (no_arg, no_num): Remove.
1574         (COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
1575         switches apart from -lang-objc and lang-asm.
1576         (cpp_handle_option): Similarly.
1577         * cpplib.h (cpp_set_lang): New.
1578         * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
1579         -std=gnu++98.
1580         * objc/lang-specs.h: Remove -ansi.
1581
1582 Sat Aug 10 19:59:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
1583                                Graham Stott
1584
1585         * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
1586         errors.
1587
1588 2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1589
1590         * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
1591         emit_jump_insn): Fix uninitialized variable.
1592         * gcov.c (init_line_info): Likewise.
1593         * genautomata.c (transform_3): Add braces around ambiguous
1594         else.
1595         * ifcvt.c (cond_exec_process_insns): Mark parameter with
1596         ATTRIBUTE_UNUSED.
1597         * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
1598         * regrename.c (copyprop_hardreg_forward): Fix uninitialized
1599         variable.
1600
1601         * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
1602         warnings in output files.
1603
1604 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
1605
1606         * c-common.c (flag_objc): New.
1607         * c-common.h (c_language_kind): Get rid of clk_objective_c
1608         enum value.
1609         (flag_objc): New extern declaration.
1610         * c-decl.c (implicitly_declare): Call objc_check_decl
1611         instead of maybe_objc_check_decl.
1612         (finish_decl): Likewise.
1613         (grokfield): Likewise.
1614         (finish_struct): Likewise.
1615         * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
1616         (maybe_objc_comptypes): Rename to objc_comptypes.
1617         (maybe_building_objc_message_expr): Rename to
1618         objc_message_selector.
1619         * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
1620         replace with flag_objc as needed.
1621         * c-opts.c (c_common_init_options): Likewise.
1622         (c_common_decode_option): Likewise.
1623         * c-parse.in (init_reswords): Likewise.
1624         * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
1625         (maybe_objc_comptypes): Rename to objc_comptypes.
1626         (maybe_building_objc_message_expr): Rename to
1627         objc_message_selector.
1628         * c-typeck.c (comptypes): Call objc_comptypes instead of
1629         maybe_objc_comptypes, and/or objc_message_selector instead of
1630         maybe_building_objc_message_expr.
1631         (comp_target_types): Likewise.
1632         (convert_for_assignment): Likewise.
1633         (warn_for_assignment): Likewise.
1634         * cppinit.c (init_builtins): Set __OBJC__ manifest constant
1635         independently of those for other languages.
1636         * objc/objc-act.c (maybe_objc_comptypes): Delete.
1637         (maybe_objc_check_decl): Delete.
1638         (maybe_building_objc_message_expr): Rename to
1639         objc_message_selector.
1640         * objc/objc-lang.c (objc_init_options): Use clk_c instead of
1641         clk_objective_c; set flag_objc flag.
1642
1643 2002-08-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1644
1645         * ifcvt.c (find_if_case_2): Test correct basic block for size.
1646
1647 2002-08-09  Dale Johannesen  <dalej@apple.com>
1648
1649         * config/rs6000/rs6000.md: Add sibcall patterns.
1650         * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL):  Define.
1651         * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
1652         Rewritten to handle sibcalls.
1653         * config/rs6000/rs6000.c (function_ok_for_sibcall):  New.
1654         * config/rs6000/rs6000-protos.h (function_ok_for_sibcall):  New.
1655
1656 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
1657
1658         * profile.c (da_file_name): New static var.
1659         (init_branch_prob): Initialize it.
1660         (end_branch_prob): Remove da file.
1661
1662         * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
1663         * configure.in (coverage_flags): Default to nothing.
1664         * configure: Rebuilt.
1665
1666 2002-08-09  Neil Booth  <neil@daikokuya.co.uk>
1667
1668         * Makefile.in (c-opts.o): Update
1669         * c-opts.c: Include intl.h.
1670         (print_help): Move from cppinit.c.  Remove unused options.
1671         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
1672         (missing_arg): Complain for switches without an argument.
1673         (c_common_decode_option): Reject missing joined arguments.
1674         Handle new switches from cppinit.c.
1675         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
1676         (cpp_handle_option): Similarly.
1677         (print_help): Moved to c-opts.c.
1678         * cpplib.h (struct cpp_options): Remove help_only.
1679         * gcc.c (cpp_unique_options): Remove -$.
1680         * doc/cppopts.texi: Undocument -h.
1681
1682 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1683
1684         * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
1685         legitimate constant.
1686         (legitimate_pic_operand_p): Neither pic operand.
1687         (legitimate_address_p): But legitimate address.
1688         (get_thread_pointer): Generate MEM/u instead of CONST around
1689         UNSPEC_TP.
1690         (print_operand): Remove printing of UNSPEC_TP.
1691         (print_operand_address): And print it here.
1692
1693 2002-08-08  Devang Patel  <dpatel@apple.com>
1694
1695         * objc/objc-act.c (build_selector_translation_table): Issue warning,
1696         when  -Wselector is used,if method for which selector is being
1697         created does not exist.
1698
1699 2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
1700
1701         * config/sh/sh.c (prepare_move_operands): Only call
1702         target_reg_operand if TARGET_SHMEDIA.
1703
1704 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1705
1706         * config/rs6000/rs6000.h, config/rs6000/aix.h,
1707         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
1708         two patches.
1709         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
1710
1711 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
1712             Richard Henderson  <rth@redhat.com>
1713
1714         * emit-rtl.c (gen_rtx_REG): After reload, only return
1715         frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
1716
1717 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1718
1719         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
1720         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
1721         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
1722         macro.
1723
1724 2002-08-08  Adam Nemet  <anemet@lnxw.com>
1725
1726         * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
1727         register.
1728         (thumb_expand_prologue): Likewise.
1729         (thumb_output_function_prologue): Likewise.
1730         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
1731         the additional push of the PIC register.
1732
1733 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
1734
1735         * configure.in (enable_coverage): New enable switch.
1736         * configure: Rebuilt.
1737         * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
1738         (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
1739         (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
1740         (mostlyclean): Remove coverage files.
1741         * doc/install.texi: Document enable_coverage.
1742
1743         * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
1744         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
1745         * f/Make-lang.in (f.mostlyclean): Remove coverage files.
1746         * java/Make-lang.in (java.mostlyclean): Remove coverage files.
1747         * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
1748         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
1749         files.
1750
1751 2002-08-08  Neil Booth  <neil@daikokuya.co.uk>
1752
1753         * c-opts.c (cpp_opts): New.
1754         (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
1755         (c_common_decode_options): Handle cpplib switches.
1756         (c_common_init_options): Set cpp_opts.
1757         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
1758         (cpp_handle_option): Similarly.
1759
1760 2002-08-08  David Edelsohn  <edelsohn@gnu.org>
1761
1762         * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
1763         (TARGET_ALTIVEC_ABI): Same.
1764         (TARGET_ALTIVEC_VRSAVE): Same.
1765
1766         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
1767         icode not CODE_FOR_nothing.  Change switch to if.
1768
1769 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
1770
1771         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
1772
1773 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1774
1775         * stor-layout.c (place_union_field): For bitfields if
1776         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
1777         TYPE_USER_ALIGN.
1778
1779 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1780
1781         * pa.c (struct deferred_plabel): Constify name field.
1782
1783 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
1784
1785         * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
1786
1787 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1788
1789         * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
1790         local_prefix are the same.
1791         * configure: Rebuilt.
1792
1793 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
1794             Richard Henderson  <rth@redhat.com>
1795
1796         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
1797         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
1798         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
1799         (place_field): Likewise.
1800         * config/i386/i386.c (x86_field_alignment): Don't check
1801         DECL_USER_ALIGN here.
1802         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
1803         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
1804         prototype.
1805         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
1806         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
1807         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
1808         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
1809         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
1810         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
1811
1812 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
1813
1814         * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
1815         * c-common.c: Don't include tree-inline.h.
1816         (c_common_init_options, c_common_post_options): Move to c-opts.c.
1817         * c-common.h (c_common_decode_option): New.
1818         * c-decl.c (c_decode_option): Remove.
1819         * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
1820         * c-opts.c: New file.
1821         * c-tree.h (c_decode_option): Remove.
1822         * doc/passes.texi: Update.
1823         * objc/objc-act.c (objc_decode_option): Remove.
1824         * objc/objc-act.h (objc_decode_option): Remove.
1825         * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
1826         c_common_decode_option.
1827
1828 2002-08-07  Chris Demetriou  <cgd@broadcom.com>
1829
1830         * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
1831         dependency on TARGET_DOUBLE_FLOAT.
1832
1833 2002-08-07  Stephen Clarke <stephen.clarke@superh.com>
1834
1835         * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
1836         overwrite callee-save registers.  Fix comment.
1837
1838 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
1839
1840         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
1841         in target_flags based on ISA, if it was not set on the command
1842         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
1843         support Branch Likely instructions.
1844         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
1845         (TARGET_BRANCHLIKELY): Likewise.
1846         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
1847         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
1848         ISA_HAS_BRANCHLIKELY.
1849         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
1850         * doc/invoke.texi: Document new MIPS -mbranch-likely and
1851         -mno-branch-likely options.
1852
1853 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1854
1855         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
1856
1857         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
1858         $(GCONFIG_H).
1859
1860 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
1861
1862         * c-decl.c (duplicate_decls): Error out for incompatible TLS
1863         declarations.
1864
1865         * testsuite/gcc.dg/tls/diag-3.c: New.
1866
1867 2002-08-06  Jason Merrill  <jason@redhat.com>
1868
1869         * c-common.c (c_expand_expr) [STMT_EXPR]: If the last expression is
1870         a VAR_DECL with RTL that matches the target, just return that RTL.
1871
1872 2002-08-06  Dale Johannesen  <dalej@apple.com>
1873         * c-common.c (fname_decl): Use line number 0 for
1874         __func__, to avoid confusing debuggers.
1875
1876 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
1877
1878         * gcov.c: Tidy.
1879         (struct line_info, struct coverage): New structures.
1880         (gcov_file_name, gcov_file): Remove globals.
1881         (output_data): Take source file parameter. Fix memory leak. Break
1882         up into ...
1883         (init_line_info, output_line_info, make_gcov_file_name,
1884         accumulate_branch_counts): ... here.
1885         (calculate_branch_probs, function_summary): Adjust.
1886         (main): Adjust.
1887         (function_*): Remove global variables.
1888
1889 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
1890
1891         * dwarf2out.c: Remove unused macros.
1892
1893 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
1894
1895         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
1896
1897 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
1898
1899         * cppinit.c (struct lang_flags): Rename trigraphs std.
1900         (set_lang): Update.
1901         * cpplib.h (struct cpp_options): New member std.
1902         * cppmacro.c (_cpp_builtin_macro_text): Use std.
1903         (collect_args): Flag whether to swallow a possible future
1904         comma pasted with varargs.
1905         (replace_args): Use this flag.
1906         * doc/cpp.texi: Update varargs extension documentation.
1907
1908 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
1909
1910         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
1911
1912 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
1913
1914         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
1915         and MODE_CLASS_INT modes.
1916
1917 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
1918
1919         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
1920         --{enable,disable}-threads is given to configure.
1921         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
1922         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
1923         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
1924         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
1925         Remove thread_file setting here.
1926
1927 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
1928
1929         * doc/install.texi (Binaries): Update Bull Freeware URL.
1930
1931 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1932
1933         * doc/gcc.texi (Top): Rename Index to Keyword Index.
1934
1935 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
1936
1937         * gcov.c (output_data): Round to % to nearest, tweak formatting.
1938
1939 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
1940
1941         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
1942         of the operands into MINUS_EXPR if code is PLUS_EXPR.
1943
1944 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
1945
1946         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
1947         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
1948         drectve_section): Define.
1949         * config/i386/t-interix: Replace interix.o rule with winnt.o.
1950         * config/i386/interix.c: Remove.
1951
1952 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
1953
1954         * attribs.c: Don't include obstack.h.
1955         * builtins.c: Likewise.
1956         * cfganal.c: Likewise.
1957         * cfgbuild.c: Likewise.
1958         * cfgcleanup.c: Likewise.
1959         * emit-rtl.c: Likewise.
1960         * loop.c: Likewise.
1961         * stmt.c: Likewise.
1962
1963         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
1964
1965 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
1966
1967         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
1968
1969 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
1970
1971         * doc/invoke.texi: Remove duplicated paragraph describing
1972         TARGET_SWITCHES.
1973
1974 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
1975
1976         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
1977         * collect2.h (permanent_obstack): Delete declaration.
1978         * collect2.c (permanent_obstack): Delete definition.
1979         (main): Don't initialise permanent_obstack.  Use xstrdup instead.
1980         * expr.c: Don't include obstack.h.
1981         (permanent_obstack): Delete declaration.
1982         * function.c: Don't include obstack.h.
1983         (permanent_obstack): Delete declaration.
1984         * integrate.c: Don't include obstack.h.
1985         (function_maybepermanent_obstack): Delete declaration.
1986         * print-tree.c (debug_tree): Use x*alloc not permalloc.
1987         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
1988         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
1989         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
1990         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
1991         of permalloc, expralloc, perm_calloc.
1992         * tree.c (permanent_obstack): Delete definition.
1993         (init_ttree): Rename from init_obstacks.
1994         (permalloc): Delete.
1995         (perm_calloc): Delete.
1996         (dump_tree_statistics): Don't print information about
1997         permanent_obstack.
1998         * varasm.c (assemble_start_function): Use xstrdup instead of
1999         permalloc/strcpy.
2000         (assemble_variable): Likewise.
2001         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
2002         permalloc.
2003         (unicosmk_add_extern): Likewise.
2004         * config/c4x/c4x.c (c4x_external_ref): Likewise.
2005         (c4x_global_label): Likewise.
2006         * config/frv/frv.c (frv_encode_section_info): Likewise.
2007         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
2008         (i386_pe_record_exported_symbol): Likewise.
2009         * config/mips/mips.c (mips_output_external): Likewise.
2010         (mips_output_external_libcall): Likewise.
2011         * config/pa/pa.c: (permanent_obstack): Delete declaration.
2012         (output_call): Use ggc_strdup instead of allocating on
2013         permanent_obstack.
2014         * config/romp/romp.c: Include ggc.h.
2015         (get_symref): Don't declare permanent_obstack, use ggc_strdup
2016         intead of permanent_obstack.
2017         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
2018         instead of permalloc.
2019         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
2020         instead of permalloc
2021         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
2022         instead of permalloc.
2023         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
2024         permalloc.
2025
2026 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
2027
2028         Contribute a port developed primarily by Michael Meissner,
2029         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
2030         * config.gcc: Add frv-elf target.
2031         * config/frv/cmovd.c: New file.
2032         * config/frv/cmovh.c: New file.
2033         * config/frv/cmovw.c: New file.
2034         * config/frv/frv-abi.h: New file.
2035         * config/frv/frv-asm.h: New file.
2036         * config/frv/frv-modes.def: New file.
2037         * config/frv/frv-protos.h: New file.
2038         * config/frv/frv.c: New file.
2039         * config/frv/frv.h: New file.
2040         * config/frv/frv.md: New file.
2041         * config/frv/frvbegin.c: New file.
2042         * config/frv/frvend.c: New file.
2043         * config/frv/lib1funcs.asm: New file.
2044         * config/frv/media.h: New file.
2045         * config/frv/modi.c: New file.
2046         * config/frv/t-frv: New file.
2047         * config/frv/uitod.c: New file.
2048         * config/frv/uitof.c: New file.
2049         * config/frv/ulltod.c: New file.
2050         * config/frv/ulltof.c: New file.
2051         * config/frv/umodi.c: New file.
2052         * config/frv/xm-frv.h: New file.
2053
2054         * config/frv/media.h: Removed again.
2055
2056 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
2057
2058         * gcov.c (bb_file_time): New static variable.
2059         (object_directory): May also be object file.
2060         (preserve_paths): New static variable.
2061         (print_usage): Adjust.
2062         (options): Adjust.
2063         (process_args): Adjust.
2064         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
2065         file. Find modification date on bb file.
2066         (read_profile): Don't rewind a NULL file.
2067         (format_hwint): New static function.
2068         (function_summary): Use format_hwint.
2069         (output_data): SOURCE_FILE_NAME is never relative to
2070         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
2071         mangling. Adjust output format to make it more machine readable.
2072         * doc/gcov.texi: Document & clarify semantics.
2073
2074 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
2075
2076         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
2077
2078 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
2079
2080         * gcc.c (cc1_options): Pass output file as auxbase when
2081         appropriate.
2082         * profile.c (init_branch_prob): FILENAME has already had ending
2083         stripped.
2084         * final.c (end_final): Likewise.
2085         * toplev.c (aux_base_name): New global.
2086         (compile_file): Pass aux_base_name to init init_branch_prob and
2087         end_final.
2088         (independent_decode_option, case 'a'): New auxinfo options.
2089         (case 'd'): Protect against mising basename.
2090         (do_compile): Initialize aux_base_name.
2091         * toplev.h (aux_base_name): New global.
2092         * doc/invoke.texi: Adjust documentation.
2093
2094 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
2095
2096         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
2097         of TARGET_ALIGN_DOUBLE.
2098
2099 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
2100
2101         * diagnostic.c (inform): New function.
2102         * diagnostic.h (inform): Declare.
2103
2104 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
2105
2106         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
2107         (movhi_internal): Same.
2108         (movqi_internal): Same.
2109         (movdi_internal64): Same.
2110
2111         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
2112
2113         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
2114         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
2115         (COMMON_ASM_OP): Define.
2116         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
2117         Use ALIGN parameter.
2118         (LOCAL_COMMON_ASM_OP): Define.
2119         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
2120
2121 2002-08-03  Roger Sayle  <roger@eyesopen.com>
2122
2123         * builtins.def: Define new builtin functions exp, expf, expl,
2124         log, logf and logl (and their __builtin_* variants).
2125         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
2126         Define exp_optab and log_optab.
2127         * optabs.c (init_optans): Initialize exp_optab and log_optab.
2128         * genopinit.c (optabs): Implement exp_optab and log_optab
2129         using exp?f2 and log?f2 patterns.
2130         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
2131         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
2132         (expand_builtin): Ignore the new builtins (and all cos and
2133         sin variants) when not optimizing.  Expand new builtins via
2134         expand_builtin_mathfn when flag_unsafe_math_optimizations.
2135
2136         * doc/extend.texi: Document new exp and log builtins.
2137         * doc/md.texi: Document new exp?f2 and log?f2 patterns
2138         (and previously undocumented cos?f2 and sin?f2 patterns).
2139
2140 2002-08-03  Jason Merrill  <jason@redhat.com>
2141
2142         * explow.c (int_expr_size): New fn.
2143         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
2144         * expr.h: Declare it.
2145
2146 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
2147
2148         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
2149         gengtype-* dependencies.
2150
2151 2002-08-02  Eric Christopher  <echristo@redhat.com>
2152
2153         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
2154         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
2155         #ifndef to #undef.
2156         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
2157
2158 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
2159
2160         PR optimize/7067
2161         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
2162         small if optimizing for size.
2163
2164 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
2165
2166         * configure.in (FORBUILD): Use $build_alias.
2167         * configure: Regenerated.
2168
2169 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
2170
2171         * config.gcc: Don't include mips/abi64.h in $tm_file.
2172         * hard-reg-set.h (call_really_used_regs): Declare.
2173         * config/mips/abi64.h: Remove file.
2174         * config/mips/linux.h,
2175         * config/mips/iris6.h: Don't include it.
2176         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
2177         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
2178         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
2179         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
2180         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
2181         Bring across definitions from abi64.h.
2182         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
2183         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
2184         (struct mips_args): Use it.
2185         * config/mips/mips.c (mips_conditional_register_usage): Define.
2186
2187 2002-08-02  Jason Merrill  <jason@redhat.com>
2188
2189         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
2190         * langhooks.c (lhd_expr_size): Define default.
2191         * langhooks.h (struct lang_hooks): Add expr_size.
2192         * explow.c (expr_size): Call it.
2193         * expr.c (store_expr): Don't copy an expression of size zero.
2194         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
2195         to store.
2196         * Makefile.in (builtins.o): Depend on langhooks.h.
2197
2198 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2199
2200         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
2201         * ra-debug.c: Include "tm_p.h".
2202         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
2203
2204 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
2205
2206         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
2207         when not honoring signalling NaNs.
2208         (simplify_ternary_operation): a == b has a definite value
2209         when not honoring NaNs.
2210
2211 2002-08-02  Jason Merrill  <jason@redhat.com>
2212
2213         * gdbinit.in (pct): New macro.
2214
2215 2002-08-01  Stan Shebs  <shebs@apple.com>
2216             Andreas Tobler  <toa@pop.agri.ch>
2217
2218         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
2219         plays nice with Darwin headers.
2220         (_BSD_RUNE_T_DEFINED_): Likewise.
2221
2222 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
2223
2224         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
2225         * cppinit.c (cpp_post_options): Likewise.
2226
2227         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
2228         warning about 'LL' suffix (but not 'ULL' etc) when
2229         -Wno-long-long is in effect.
2230
2231         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
2232         Check for failing time()/localtime(), issue a warning, and
2233         make __TIME__ and __DATE__ expand to fallback strings.
2234
2235         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
2236         and __TIME__ when the date and time cannot be determined.
2237
2238 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
2239
2240         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
2241
2242 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
2243
2244         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
2245
2246 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
2247
2248         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
2249         (mipsisa64sb1el-*-elf*): Likewise.
2250         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
2251         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
2252         (TARGET_SB1, TUNE_SB1): New macros.
2253         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
2254         -mtune flags.
2255
2256 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
2257
2258         * varasm.c (asm_emit_uninitialized): Return false if global BSS
2259         and ASM_EMIT_BSS not supported by target.
2260         (assemble_variable): Do not duplicate uninitialized logic.
2261         Fall through if asm_emit_uninitialized failed.
2262
2263 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
2264
2265         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
2266
2267 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
2268
2269         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
2270         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
2271
2272         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
2273         HOST_BITS_PER_WIDE_INT == 64.
2274
2275 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2276
2277         * df.c (df_insn_table_realloc): Change parameter to unsigned.
2278         * optabs.c (expand_binop): Make variable unsigned.
2279         * simplify-rtx.c (simplify_subreg): Likewise.
2280         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
2281
2282 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2283
2284         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
2285
2286 2002-08-01  Richard Henderson  <rth@redhat.com>
2287
2288         * toplev.c (parse_options_and_default_flags): Don't set
2289         flag_reorder_blocks for -Os.
2290
2291         * config/avr/avr.c (avr_optimization_options): Remove.
2292         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
2293         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
2294         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
2295
2296 2002-08-01  H.J. Lu <hjl@gnu.org>
2297             Richard Henderson  <rth@redhat.com>
2298
2299         * output.h (DECL_READONLY_SECTION): Remove.
2300         (decl_readonly_section): Declare.
2301         * varasm.c (decl_readonly_section): New.
2302         (default_section_type_flags, default_select_section): Use it.
2303         * config/arm/pe.c (arm_pe_unique_section): Likewise.
2304         * config/i386/interix.c (i386_pe_unique_section): Likewise.
2305         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
2306         * config/mcore/mcore.c (mcore_unique_section): Likewise.
2307         * config/mips/mips.c (mips_unique_section): Likewise.
2308
2309 2002-08-01  Richard Henderson  <rth@redhat.com>
2310
2311         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
2312         refers to a subroutine parameter.
2313
2314 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
2315
2316         * varasm.c (assemble_visibility): Strip name encoding.
2317
2318 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
2319
2320         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
2321         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
2322         when there is no frame pointer.
2323         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
2324         registers properly.
2325         * config/ns32k/__unorddf2.c: New file.
2326         * config/ns32k/__unordsf2.c: New file.
2327         * config/ns32k/t-ns32k: New file.
2328         * config.gcc (ns32k-*-netbsd*): Use it.
2329
2330 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
2331
2332         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
2333
2334 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
2335
2336         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
2337
2338 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
2339
2340         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
2341
2342 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
2343
2344         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
2345
2346 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2347
2348         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
2349         n_sets): Removed.
2350         (expr_hash_table, set_hash_table): Type changed to ...
2351         (struct hash_table): New type.
2352         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
2353         insert_expr_in_table, insert_set_in_table, compute_hash_table,
2354         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
2355         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
2356         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
2357         (alloc_hash_table): New.
2358         (free_set_hash_table, free_expr_hash_table): Merged to ...
2359         (free_hash_table): New.
2360         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
2361         (compute_hash_table_work): New.
2362         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
2363         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
2364         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
2365         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
2366         hoist_code, one_code_hoisting_pass,
2367         trim_ld_motion_mems): Altered due to changed type of hash tables.
2368
2369 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
2370
2371         * final.c (output_alternate_entry_point):
2372         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
2373
2374 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2375
2376         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
2377         avoid ISO C style function definition.
2378
2379         * expr.c (expand_assignment): Delete unused variable.
2380
2381 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
2382
2383         * c-common.c (cb_register_builtins): Set
2384         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
2385         is given, and to 0 otherwise.
2386         * combine.c (simplify_if_then_else): HONOR_NANS
2387         implies FLOAT_MODE_P.
2388
2389 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
2390
2391         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
2392         (cpp_handle_option): Don't handle it.
2393         (print_help): Update.
2394         * doc/cppopts.texi: Update.
2395
2396 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
2397
2398         * c-common.c (cb_register_builtins): If C++, define
2399         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
2400         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
2401 cp:
2402         * lang-specs.h: Simplify in accordance with new code in
2403         c-common.c.
2404
2405 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
2406
2407         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
2408         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
2409         * c-decl.c: Move all warning and flag variables to c-common.c.
2410         * c-format.c: Move all warning variables to c-common.c.
2411         * c-tree.h: Move all warning and flag declarations to c-common.h.
2412         * objc/objc-act.c: Move all warning variables to c-common.c.
2413         (flag_warn_protocol): Rename warn_protocol.
2414
2415 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2416
2417         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
2418
2419 2002-07-31  Graham Stott  <grahams@btinternet.com>
2420
2421         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
2422         .section prefix.
2423
2424 2002-07-31  Stan Shebs  <shebs@apple.com>
2425
2426         * config.gcc (i[34567]86-*-darwin*): New configuration.
2427         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
2428         defining.
2429         (TARGET_ENCODE_SECTION_INFO): Ditto.
2430         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
2431         * config/darwin.c (machopic_indirect_data_reference): Remove
2432         setting of RTX_UNCHANGING_P.
2433         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
2434         not to be applied to sums.
2435         * config/i386/t-darwin: New file.
2436         * config/i386/darwin.h: New file.
2437         * config/i386/i386.h (TARGET_MACHO): Add default definition.
2438         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
2439         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
2440         label and not the GOT add.
2441         (constant_address_p): For Mach-O, seeing a CONST is enough.
2442         (legitimate_pic_address_disp_p): Add a Mach-O case.
2443         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
2444         (legitimize_pic_address): Use generic Mach-O code to legitimize.
2445         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
2446         if outputting a difference.
2447         (ix86_output_addr_diff_elt): Add Mach-O case.
2448         (ix86_expand_move): Similarly.
2449         (ix86_expand_call): Similarly.
2450         (current_machopic_label_num): New global.
2451         (machopic_output_stub): New function.
2452         (ix86_value_regno): New function.
2453         (ix86_function_value): Use it instead of VALUE_REGNO.
2454         (ix86_libcall_value): Ditto.
2455         * config/i386/unix.h (VALUE_REGNO): Remove.
2456
2457 2002-07-31  Graham Stott  <grahas@btinternet.com>
2458
2459         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
2460         hash for LABEL_REF's.
2461
2462 2002-07-31  Graham Stott  <grahams@btinternet.com>
2463
2464         * config/rs6000/rs6000.c (spe_init_builtins,
2465         altivec_init_builtins, rs6000_common_init_builtins):
2466         Replace ANSI with K&R function def.
2467
2468 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
2469
2470         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
2471         for CCFPmode.
2472
2473 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
2474
2475         * config/mips/crtn.asm: Don't use __mips16 to determine the
2476         return-address offset.  Define RA to a suitable temporary
2477         register for the return address.
2478
2479 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
2480
2481         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
2482         constraints to 'd'.
2483
2484 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
2485
2486         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
2487         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
2488         patch on 2002-07-29.)
2489         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
2490
2491 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2492
2493         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
2494         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
2495         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
2496         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
2497         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
2498         (ASM_GLOBALIZE_LABEL): Delete.
2499         (GLOBAL_ASM_OP): Define.
2500
2501         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
2502
2503         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
2504         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
2505
2506 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
2507
2508         * doc/extend.texi (Hints implementation): Document that GCC
2509         mostly ignores `register'.
2510
2511 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
2512
2513         * flags.h: Declare flag_finite_math_only.
2514         Use it in definition of HONOR_NANS and
2515         HONOR_INFINITIES.
2516         * c-common.c (cb_register_builtins): Emit
2517         __FINITE_MATH_ONLY__ when flag_finite_math_only
2518         is set.
2519         * combine.c (simplify_if_then_else): If
2520         flag_finite_math_only is set, a == b has a
2521         definite value.
2522         * toplev.c: Initialize flag_finite_math_only.
2523         (set_flags_fast_math): Set it on -ffast-math.
2524         (flag_fast_math_set_p): Test it.
2525         * doc/invoke.texi: Document -ffinite-math-only.
2526
2527 2002-07-30  Richard Henderson  <rth@redhat.com>
2528
2529         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
2530         (noce_process_if_block): Likewise.
2531
2532 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
2533
2534         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
2535         Bail out early if false_expr is NULL and we'd crash due to this.
2536         * genemit.c (gen_expand): Recognize return insns even if the return
2537         appears in a parallel.
2538         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
2539         * config/fp-bit.c: Likewise.
2540         * doc/tm.texi: Document it.
2541
2542 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
2543             Zack Weinberg  <zack@codesourcery.com>
2544
2545         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
2546         CODE_FOR_nothing.  Change switch to if.
2547         (rs6000_expand_binop_builtin): Same.
2548         (rs6000_expand_builtin): Expand builtin if target support enabled.
2549         (rs6000_init_builtins): Init builtin if target support enabled.
2550         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
2551
2552 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2553
2554         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
2555
2556 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
2557
2558         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
2559
2560 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
2561
2562         * sh.md (cond_delay_slot): New attribute.
2563         (cbranch delay): Use it for anulled-true case.
2564         (stuff_delay_slot): New pattern.
2565         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
2566         delay slot insn.
2567         (gen_far_branch): Emit stuff_delay_slot pattern.
2568
2569 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
2570
2571         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
2572
2573 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
2574
2575         * fold-const.c: Fix comment typos.
2576         * gcse.c: Likewise.
2577         * reload1.c: Likewise.
2578
2579 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
2580
2581         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
2582         for TARGET_SPE.
2583
2584 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
2585
2586         * c-pretty-print.h (pp_c_statement): Declare.
2587         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
2588         (pp_c_statement): Define.
2589
2590 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2591
2592         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
2593         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
2594         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
2595         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
2596         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
2597         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
2598
2599         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
2600         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
2601
2602 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
2603
2604         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
2605         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
2606         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
2607         (pp_c_expression): Update.
2608
2609 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2610
2611         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
2612         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
2613         * alpha/vms-ld.c (main): Likewise.
2614         * dsp16xx.c (double_reg_to_memory): Likewise.
2615         * mcore.c (mcore_expand_prolog): Likewise.
2616         * cppfiles.c (read_name_map): Likewise.
2617         * gensupport.c (process_rtx, identify_predicable_attribute,
2618         alter_test_for_insn): Likewise.
2619         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
2620
2621 2002-07-29  Roger Sayle  <roger@eyesopen.com>
2622
2623         * builtins.c (expand_builtin):  Change the default behavior to
2624         only issue an error if the builtin function doesn't have a
2625         fallback library call.  Remove several cases handled by the
2626         new default.
2627
2628 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
2629
2630         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
2631         floating point format of the target is IEEE.
2632         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
2633         format of the target is DEC.
2634
2635 2002-07-29  Richard Henderson  <rth@redhat.com>
2636
2637         * unroll.c (verify_addresses): Remove.
2638         (find_splittable_givs): Never split DEST_ADDR givs.
2639
2640 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
2641
2642         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
2643         is exhaustive.
2644         (Files): Improve documentation on generated source files.
2645
2646         * doc/extend.texi (Translation implementation): Document what
2647         diagnostics look like.
2648         (Identifiers implementation): Document that there's normally no
2649         limit on identifier names.
2650         (Integers implementation): Document two's complement.
2651         (Hints implementation): Document that GCC honours 'inline', mostly.
2652         (Preprocessing directives implementation): Document that GCC
2653         requires the current time.
2654
2655 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
2656
2657         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
2658         (pp_initializer): New macro.
2659         (pp_c_initializer): Declare.
2660         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
2661         (pp_c_initializer): Define.
2662         (pp_c_initializer_list): New function.
2663         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
2664         VECTOR_CST, CONSTRUCTOR.
2665         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
2666         IMAGPART_EXPR.
2667         (pp_c_cast_expression): Handle FLOAT_EXPR.
2668         (pp_c_assignment_expression): Handle INIT_EXPR.
2669         (pp_c_expression): Update.
2670
2671 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
2672
2673         * objc/objc-act.c (objc_init): Return immediately if filename
2674         is NULL.
2675
2676 2002-07-29  Eric Christopher  <echristo@redhat.com>
2677
2678         * config/mips/elf.h: Remove ecoff.h and gofast includes.
2679         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
2680         (SDB_DEBUGGING_INFO): Undefine.
2681         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
2682         (PUT_SDB_SIZE): Remove.
2683         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
2684         (STARTFILE_SPEC): Add isa3264 define.
2685         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
2686         * config/mips/ecoff.h: Remove. and here...
2687         * config/mips/iris3.h: and here...
2688         * config/mips/sni-svr4.h: and here...
2689         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
2690         Add assembler -mmdebug options for non-dwarf debugging.
2691         * config/mips/r3900.h: Remove debug info defines.
2692         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
2693         * config/mips/isa3264.h: Ditto.
2694         * config/mips/t-isa3264: Fix up for file removal and gofast configure
2695         change.
2696         * config/mips/t-elf: Ditto.
2697         * config/mips/t-ecoff: Ditto.
2698         * config/mips/t-r3900: Ditto.
2699         * config/mips/t-iris5-6: Ditto.
2700         * config/mips/t-isa3264: Ditto.
2701         * config/mips/t-linux: Remove.
2702         * config/mips/t-netbsd: Remove.
2703         * config/mips/t-mips: New file.
2704         * config/mips/t-gofast: Ditto.
2705         * config/mips/netbsd.h: Remove unnecessary undefines.
2706         * config/mips/linux.h: Remove #include of mips.h.
2707         * config.gcc: Add mips.h include for elf targets. Remove tm_file
2708         for ecoff. Add gofast configure option for mips.
2709
2710 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
2711
2712         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
2713         linker scripts use STARTUP directives consistently.
2714         * configure: Regenerate.
2715         * config.in: Regenerate.
2716         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
2717         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
2718         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
2719         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
2720         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
2721         will be the same.
2722
2723 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
2724
2725         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
2726
2727 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
2728
2729         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
2730
2731 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
2732
2733         * config/rs6000/rs6000.md: Move altivec patterns from here...
2734
2735         * config/rs6000/altivec.md: ...to here.
2736
2737 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
2738
2739         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
2740
2741 2002-07-29  Richard Henderson  <rth@redhat.com>
2742
2743         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
2744         set_mem_attributes and add BITPOS argument.  Subtract it from
2745         OFFSET when same is adjusted.
2746         (set_mem_attributes): New wrapper function.
2747         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
2748         remove offset adjustment hack.
2749         * expr.h (set_mem_attributes_minus_bitpos): Declare.
2750
2751 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
2752
2753         * Makefile.in (C_OBJS): Include c-pretty-print.o
2754         (c-pretty-print.o): Add depency rule.
2755         * pretty-print.h: Add more macros.
2756         * c-pretty-print.c: New file.
2757         * c-pretty-print.h: Likewise.
2758
2759 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
2760
2761         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
2762         constants to __ev64_s32__.
2763         (__internal_ev_mwhgsmian): Same.
2764         (__internal_ev_mwhgsmfan): Same.
2765         (__internal_ev_mwhgssfan): Same.
2766         (__internal_ev_mwhgumiaa): Same.
2767         (__internal_ev_mwhgsmiaa): Same.
2768         (__internal_ev_mwhgsmfaa): Same.
2769         (__internal_ev_mwhgssfaa): Same.
2770
2771 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
2772
2773         * varasm.c (assemble_variable): Narrow test for uninitialized
2774         without BSS target support.
2775
2776 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
2777
2778         * profile.c: Add file comment describing the overall algorithm and
2779         structures.
2780         (struct edge_info): Add comments.
2781         (struct bb_info): Add comments.
2782         * basic-block.h (EDGE_*): Add comments.
2783         * doc/gcov.texi (Gcov Data Files): Document bit flags.
2784
2785 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
2786
2787         * config/xtensa/elf.h, config/xtensa/linux.h
2788         (TARGET_OS_CPP_BUILTINS): Define.
2789         (CPP_PREDEFINES): Remove.
2790         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
2791         (CPP_SPEC): Remove.
2792
2793 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
2794
2795         * gensupport.c: Include hashtab.h.
2796         (insn_elision, condition_table, hash_c_test, cmp_c_test,
2797         maybe_eval_c_test): New routines and data structures to
2798         support insn elision.
2799         (init_md_reader): Read and initialize the condition_table.
2800         (read_md_rtx): Discard insn patterns whose C test is provably
2801         always false.
2802         * gensupport.h: Declare new functions and data structures.
2803
2804         * genconditions.c, dummy-conditions.c: New files.
2805         * Makefile.in: Build genconditions; run it to construct
2806         insn-conditions.c; build that and link it into most gen*
2807         programs.
2808         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
2809         (GEN): Delete, unused.
2810         (STAGESTUFF): Update.
2811
2812         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
2813         CODE_FOR_nothing for all elided patterns.
2814         (main): Tweaked to support this.
2815         * genflags.c (gen_proto): Emit a static inline generator
2816         function here for all elided patterns, which simply returns
2817         NULL_RTX.
2818         (gen_insn): Do not define HAVE_xxx for elided patterns.
2819         (main): Tweaked to support this.  No need to forward-declare
2820         struct rtx_def.
2821         * genrecog.c: Do not bother emitting the C test if it's known
2822         to be true at compile time.
2823
2824 2002-07-29  Mike Stump  <mrs@apple.com>
2825
2826         * config.gcc (target_gtfiles): Initialize, as otherwise cross
2827         compilers hosted on powerpc-apple-darwin6.0 won't even build.
2828
2829 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
2830
2831         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
2832         remove clobber of LR.
2833         (sibcall_insn, sibcall_value_insn): Update accordingly.
2834         (sibcall_epilogue): Remove debugging comment from assembler stream.
2835
2836 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
2837
2838         * pretty-print.h: Define more macros.
2839         * diagnostic.h (output_formatted_integer): Moved from...
2840         * diagnostic.c: ... here.
2841
2842 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2843
2844         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
2845
2846 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
2847
2848         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
2849         arguments.  Always use ".-symbol" as expression argument.
2850         * doc/tm.texi: Update to match.  Document requirement for
2851         ".size symbol, .-symbol" to be acceptable to assembler.
2852
2853         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
2854         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
2855         config/i386/freebsd-aout.h, config/i386/sco5.h,
2856         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
2857         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
2858
2859 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2860
2861         * Makefile.in (gengtype-lex.c): Fix error in last change.
2862
2863         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
2864         backslash.
2865
2866         * Makefile.in (vmsdbgout.o): Depend on function.h.
2867
2868         * vmsdbgout.c: Include function.h.
2869
2870 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
2871
2872         * prefix.c (update_path): Don't strip single `.' path components
2873         unless stripping a later `..' component.  Exit loop as soon as
2874         a valid path is found.
2875
2876 2002-07-27  Roger Sayle  <roger@eyesopen.com>
2877
2878         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
2879         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
2880         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
2881         floating point unordered comparisons (e.g. __builtin_isgreater)
2882         as const, and leave the remaining GCC_BUILTINs unchanged.
2883
2884         * c-decl.c (builtin_function): No need to explicitly mark
2885         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
2886
2887 2002-07-27  Roger Sayle  <roger@eyesopen.com>
2888
2889         * Makefile.in: rtlanal.o now depends upon real.h.
2890
2891         * flags.h [flag_signaling_nans]: New flag.
2892         [HONOR_SNANS]: New macro.
2893
2894         * toplev.c [flag_signaling_nans]: Initialize to false.
2895         (f_options): Add processing for "-fsignaling-nans".
2896         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
2897         (process_options): flag_signaling_nans implies flag_trapping_math.
2898
2899         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
2900         when -fsignaling-nans.  First step to implementing WG14's N965.
2901
2902         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
2903         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
2904         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
2905
2906         * simplify-rtx.c (simplify_relational_operation): Conditionalize
2907         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
2908
2909         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
2910         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
2911         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
2912         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
2913         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
2914
2915         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
2916
2917 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2918
2919         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
2920         * gengtype-lex.l (YY_USE_PROTOS): Undef.
2921         (YY_DECL): Define.
2922
2923 2002-07-27  Roger Sayle  <roger@eyesopen.com>
2924
2925         * doc/invoke.texi: Document that both -fno-builtin-foo and
2926         -fno-builtin are supported by the g++ front-end.
2927
2928 2002-07-27  Stan Shebs  <shebs@apple.com>
2929
2930         * configure.in: Rename config_gtfiles to target_gtfiles.
2931         * configure: Regenerate.
2932         * doc/gty.texi: Update reference.
2933         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
2934         instead of appending to it.
2935
2936 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
2937
2938         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
2939         vectors are split into two registers.
2940         (function_arg): Same.
2941
2942 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
2943
2944         * pa.md (extv): Check predicates before emitting extv_32.
2945
2946 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
2947
2948         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
2949         (rs6000_traceback): New var.
2950         (rs6000_override_options): Set rs6000_traceback.
2951         (rs6000_output_function_epilogue): Implement traceback options.
2952         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
2953         (rs6000_traceback_name): Declare.
2954
2955         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
2956         label reference when NO_PROFILE_COUNTERS.
2957
2958 2002-07-26  Jason Merrill  <jason@redhat.com>
2959
2960         * function.c (assign_parms): Handle frontend-directed pass by
2961         invisible reference.
2962
2963 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
2964
2965         * doc/cppopts.texi: Update.
2966
2967 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
2968
2969         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
2970         warnings on assertions.
2971
2972 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
2973
2974         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
2975         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
2976         RID_COMPL): Remove.
2977         * c-parse.in (rid_to_yy): Similarly.
2978
2979 2002-07-26  Jason Merrill  <jason@redhat.com>
2980
2981         * c-dump.c: Resurrect.
2982         * tree-dump.c: Move C-specific stuff to c-dump.c.
2983         * c-common.h: Declare c_dump_tree.
2984         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
2985         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
2986         (c-dump.o): New rule.
2987
2988 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
2989
2990         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
2991         PowerPC64.  Replace "T" and "S" constraints with "n" when the
2992         predicate will do.  Formatting fixes.
2993         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
2994         as for extzvsi_internal1.
2995
2996 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
2997
2998         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
2999         DERIV_END_LABEL_FMT): Remove.
3000         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
3001
3002 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
3003
3004         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
3005         Remove.
3006
3007 2002-07-25  Stan Shebs  <shebs@apple.com>
3008
3009         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
3010         local var dwarfp.
3011         (output_compiler_stub): Remove unused locals.
3012         (output_call): Always initialize line number.
3013
3014 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
3015
3016         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
3017         * sh.md (truncdiqi2, movqi_media): Likewise.
3018
3019 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
3020
3021         * gcse.c (obstack_chunk_alloc): Remove.
3022         (gcse_alloc): Fix to count allocated bytes.
3023         * collect2.c (SYMBOL__MAIN): Remove.
3024
3025 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
3026
3027         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
3028         HAVE_TARGET_EXECUTABLE_SUFFIX.
3029
3030 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
3031
3032         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
3033         SIZE, EXPR and OFFSET.
3034
3035 2002-07-25  Richard Henderson  <rth@redhat.com>
3036
3037         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
3038         in ARRAY_REF of DECL_P case.
3039
3040 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
3041
3042         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
3043         description.  Document -mips32, -mips64, and the associated -march
3044         values.  Describe the "mipsN" arguments to -march.  Say that the
3045         -mipsN options are equivalent to -march.  Reword the description
3046         of default type sizes.
3047         * toplev.h (target_flags_explicit): Declare.
3048         * toplev.c (target_flags_explicit): New var.
3049         (set_target_switch): Update target_flags_explicit.
3050         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
3051         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
3052         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
3053         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
3054         * config/mips/mips.h (mips_cpu_info): New struct.
3055         (mips_cpu_string, mips_explicit_type_size_string): Remove.
3056         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
3057         (MIPS_CPP_SET_PROCESSOR): New macro.
3058         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
3059         Define _MIPS_ARCH and _MIPS_TUNE.
3060         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
3061         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
3062         MIPS_ISA_DEFAULT were already defined.
3063         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
3064         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
3065         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
3066         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
3067         (ABI_GAS_ASM_SPEC): Remove.
3068         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
3069         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
3070         Invoke %(asm_abi_default_spec) if no ABI was specified.
3071         (CC1_SPEC): Remove ISA -> register-size rules.
3072         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
3073         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
3074         (mips_cpu_string, mips_explicit_type_size_string): Remove.
3075         (mips_cpu_info_table): New array.
3076         (mips_set_architecture, mips_set_tune): New fns.
3077         (override_options): Rework to make -mipsN equivalent to -march.
3078         Detect more erroneous cases, including those removed from CC1_SPEC.
3079         Don't change the ABI based on architecture, or vice versa.
3080         Unify logic with GAS.
3081         (mips_asm_file_start): Get architecture name from mips_arch_info.
3082         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3083         (mips_parse_cpu): Take the name of the option as argument.  Handle
3084         'from-abi'.  Raise an error if the option is wrong.
3085         (mips_cpu_info_from_isa): New fn.
3086
3087 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
3088
3089         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
3090         (tablejump_mips162): Likewise.
3091
3092 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
3093
3094         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
3095         int_mode_for_mode.
3096
3097 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
3098
3099         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
3100         complaining.
3101         * c-common.h (c_sizeof): Adjust definition.
3102         (c_alignof): Likewise.
3103         * c-tree.h (c_sizeof_nowarn): Now macro.
3104         * c-typeck.c (c_sizeof_nowarn): Remove definition.
3105
3106 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
3107
3108         * c-decl.c (c_decode_option): No need to handle switches
3109         cpplib handles.
3110
3111 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
3112
3113         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
3114         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
3115         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
3116         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
3117
3118         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
3119         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
3120         config/cris/aout.h, config/i386/freebsd-aout.h,
3121         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
3122         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
3123         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
3124         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
3125         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
3126         config/xtensa/elf.h, config/xtensa/linux.h:
3127         Use the new macros.
3128         Where possible, remove redundant definitions of SIZE_ASM_OP,
3129         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
3130
3131 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
3132
3133         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
3134         TARGET_ISEL, and TARGET_FPRS.
3135
3136         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3137         -mabi=spe, -mabi=no-spe, and -misel=.
3138
3139         * config/rs6000/rs6000-protos.h: Add output_isel.
3140         Move vrsave_operation prototype here.
3141
3142         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
3143         (smaxsi3): Same.
3144         (uminsi3): Same.
3145         (umaxsi3): Same.
3146         (abssi2_nopower): Disallow when TARGET_ISEL.
3147         (*ne0): Same.
3148         (negsf2): Change to expand and rename old pattern to *negsf2.
3149         (abssf2): Change to expand and rename old pattern to *abssf2.
3150
3151         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
3152         fixunssfsi2.
3153
3154         Change patterns that check for TARGET_HARD_FLOAT or
3155         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
3156
3157         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
3158         rs6000_isel, rs6000_fprs, rs6000_isel_string.
3159         (rs6000_override_options): Add 8540 case to
3160         processor_target_table.
3161         Set rs6000_isel for the 8540.
3162         Call rs6000_parse_isel_option.
3163         (enable_mask_for_builtins): New.
3164         (rs6000_parse_isel_option): New.
3165         (rs6000_parse_abi_options): Add spe and no-spe.
3166         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
3167         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
3168         for TARGET_HARD_FLOAT.
3169         Add case for SPE_VECTOR_MODE.
3170         (rs6000_legitimize_reload_address): Handle SPE vector modes.
3171         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
3172         vector modes.
3173         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
3174         (rs6000_emit_move): Check for TARGET_FPRS.
3175         Add cases for SPE vector modes.
3176         (function_arg_boundary): Return 64 for SPE vector modes.
3177         (function_arg_advance): Check for TARGET_FPRS and
3178         Handle SPE vectors.
3179         (function_arg): Same.
3180         (setup_incoming_varargs): Check for TARGET_FPRS.
3181         (rs6000_va_arg): Same.
3182         (struct builtin_description): Un-constify mask field.  Move up in
3183         file.
3184         (bdesc_2arg): Un-constify and add SPE builtins.
3185         (bdesc_1arg): Same.
3186         (bdesc_spe_predicates): New.
3187         (bdesc_spe_evsel): New.
3188         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
3189         (rs6000_expand_binop_builtin): Same.
3190         (bdesc_2arg_spe): New.
3191         (spe_expand_builtin): New.
3192         (spe_expand_predicate_builtin): New.
3193         (spe_expand_evsel_builtin): New.
3194         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
3195         (rs6000_init_builtins): Initialize SPE builtins.  Call
3196         rs6000_common_init_builtins.
3197         (altivec_init_builtins): Move all non-altivec builtin code to...
3198         (rs6000_common_init_builtins): ...here.  New function.
3199         (branch_positive_comparison_operator): Allow NE code for SPE.
3200         (ccr_bit): Return correct ccr bit for SPE fp.
3201         (print_operand): Emit crnor in 'D' case for SPE.
3202         New case 't'.
3203         Add SPE code for 'y' case.
3204         (rs6000_generate_compare): Generate rtl for SPE fp.
3205         (output_cbranch): Handle SPE hard floats.
3206         (rs6000_emit_cmove): Handle isel.
3207         (rs6000_emit_int_cmove): New.
3208         (output_isel): New.
3209         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
3210         64-bits for SPE.
3211         (debug_stack_info): Add SPE info.
3212         (gen_frame_mem_offset): New.
3213         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
3214         Change mode of frame pointer, when saving it, to Pmode.
3215         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
3216         Misc cleanups and use gen_frame_mem_offset when appropriate.
3217
3218         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
3219         (TARGET_SPE_ABI): New.
3220         (TARGET_SPE): New.
3221         (TARGET_ISEL): New.
3222         (TARGET_FPRS): New.
3223         (FIXED_SCRATCH): New.
3224         (RTX_COSTS): Add PROCESSOR_PPC8540.
3225         (ASM_CPU_SPEC): Add case for 8540.
3226         (TARGET_OPTIONS): Add isel= case.
3227         (rs6000_spe_abi): New.
3228         (rs6000_isel): New.
3229         (rs6000_fprs): New.
3230         (rs6000_isel_string): New.
3231         (UNITS_PER_SPE_WORD): New.
3232         (LOCAL_ALIGNMENT): Adjust for SPE.
3233         (HARD_REGNO_MODE_OK): Same.
3234         (DATA_ALIGNMENT): Same.
3235         (MEMBER_TYPE_FORCES_BLK): New.
3236         (FIRST_PSEUDO_REGISTER): Set to 113.
3237         (FIXED_REGISTERS): Add SPE registers.
3238         (reg_class): Same.
3239         (REG_CLASS_NAMES): Same.
3240         (REG_CLASS_CONTENTS): Same.
3241         (REGNO_REG_CLASS): Same.
3242         (REGISTER_NAMES): Same.
3243         (DEBUG_REGISTER_NAMES): Same.
3244         (ADDITIONAL_REGISTER_NAMES): Same.
3245         (CALL_USED_REGISTERS): Same.
3246         (CALL_REALLY_USED_REGISTERS): Same.
3247         (SPE_ACC_REGNO): New.
3248         (SPEFSCR_REGNO): New.
3249         (SPE_SIMD_REGNO_P): New.
3250         (HARD_REGNO_NREGS): Adjust for SPE.
3251         (VECTOR_MODE_SUPPORTED_P): Same.
3252         (REGNO_REG_CLASS): Same.
3253         (FUNCTION_VALUE): Same.
3254         (LIBCALL_VALUE): Same.
3255         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
3256         (SPE_VECTOR_MODE): New.
3257         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
3258         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
3259         (rs6000_stack): Add spe_gp_size, spe_padding_size,
3260         spe_gp_save_offset.
3261         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
3262         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
3263         (SPE_CONST_OFFSET_OK): New.
3264         (rs6000_builtins): Add SPE builtins.
3265
3266         * testsuite/gcc.dg/ppc-spe.c: New.
3267
3268         * config/rs6000/eabispe.h: New.
3269
3270         * config/rs6000/spe.h: New.
3271
3272         * config/rs600/spe.md: New.
3273
3274         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3275         __SIMD__ for TARGET_SPE.
3276
3277         * config.gcc: Add powerpc-*-eabispe* case.
3278         Add spe.h to user headers for powerpc.
3279
3280 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
3281
3282         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
3283         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
3284         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
3285
3286 2002-07-24  Richard Henderson  <rth@redhat.com>
3287
3288         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
3289         form when not optimizing.
3290
3291 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
3292
3293         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
3294         thread_pointer_rtx as unchanging.
3295
3296 2002-07-24  Michael Matz  <matz@suse.de>
3297
3298         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
3299         (free_reg): Use it.
3300
3301 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
3302
3303         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
3304         pattern.
3305         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
3306         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
3307
3308 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
3309
3310         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
3311         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
3312         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
3313
3314 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
3315
3316         * toplev.c (rest_of_compilation): Dump loops before clobbering
3317         the structure.
3318
3319 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
3320
3321         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
3322
3323 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
3324
3325         PR optimization/7291
3326         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
3327         problem on x86_64.
3328
3329 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
3330
3331         * pretty-print.h: Add macros from cp/error.c
3332
3333 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
3334
3335         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
3336         (mask64_2_operand): Declare.
3337         (build_mask64_2_operands): Declare.
3338         (and64_2_operand): Declare.
3339         (extract_MB): Declare.
3340         (extract_ME): Declare.
3341         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
3342         CONST_DOUBLE code.
3343         (mask_operand_wrap): New insn predicate.
3344         (mask64_2_operand): Likewise.
3345         (and64_2_operand): Likewise.
3346         (build_mask64_2_operands): New function.
3347         (extract_MB): New function.
3348         (extract_ME): New function.
3349         (print_operand <case m,M>): Use extract_MB and extract_ME.
3350         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
3351         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
3352         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
3353         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
3354         * config/rs6000/rs6000.md (andsi3_internal3): New
3355         (andsi3_internal3+1): Enable split for powerpc64.
3356         (andsi3_internal3+2): New split.
3357         (andsi3_internal4): Renamed old andsi3_internal3.
3358         (andsi3_internal5): New.
3359         (andsi3_internal5+1): Enable split for powerpc64.
3360         (andsi3_internal5+2): New split.
3361         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
3362         (anddi3): Handle 't' constraint.
3363         (anddi3+1): New split.
3364         (anddi3_internal2): Handle 't' constraint.
3365         (anddi3_internal2+1): New split.
3366         (anddi3_internal3): Handle 't' constraint.
3367         (anddi3_internal3+1): New split.
3368
3369 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
3370
3371         * config/rs6000/rs6000.md: Remove scratch reg on insns using
3372         addze and similar (plus (comparison r1 r2) r3) insns.  Add
3373         missing scratch reg in one case.  Formatting fixes.
3374
3375 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
3376
3377         * cppexp.c (parse_defined): Mark macro used.
3378         * cpphash.h (struct cpp_macro): New member "used".
3379         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
3380         (struct cpp_reader): New member.
3381         * cppinit.c (cpp_finish_options): Set first_unused_line.
3382         (cpp_finish): Warn of unused macros if requested.
3383         (OPT_TABLE): New switches.
3384         (cpp_handle_option): Handle them.
3385         * cpplib.c (do_undef): Warn if macro unused.
3386         (do_ifdef, do_ifndef): Mark macro used.
3387         * cpplib.h (struct cpp_options): New member.
3388         * cppmacro.c (_cpp_warn_if_unused_macro): New.
3389         (enter_macro_context): Mark macro used.
3390         (_cpp_create_definition): Mark macro unused; warn if unused
3391         when redefined.
3392         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
3393         Mark macros used.
3394         * doc/cppopts.texi: Update.
3395
3396 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
3397
3398         * dwarf2out.c (SECTION_ASM_OP,
3399         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
3400         * system.h (SECTION_ASM_OP): Poison.
3401         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
3402         * config/alpha/alpha-interix.h, config/mips/linux.h
3403         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
3404         * config/mmix/mmix-protos.h, config/mmix/mmix.c
3405         (mmix_asm_output_define_label_difference_symbol): Remove.
3406         * config/mmix/mmix.h
3407         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
3408         * doc/tm.texi: Remove documentation.
3409
3410 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3411
3412         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
3413         (constrain_operands): Likewise.
3414         * regclass.c (record_reg_classes): Likewise.
3415         * reload.c (find_reloads): Likewise.
3416         * doc/md.texi: Likewise.
3417
3418         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
3419         * simplify-rtx.c (simplify_subreg): When converting to a non-int
3420         mode, try to convert to an integer mode of matching size first.
3421
3422         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
3423         from individual subregs, check that each subreg has been generated
3424         sucessfully.
3425
3426 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
3427
3428         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
3429         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
3430         FOR_EACH_BB_IN_SBITMAP): Remove.
3431         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
3432         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
3433         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
3434         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
3435         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
3436         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
3437
3438 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
3439
3440         * pretty-print.h: New file.
3441
3442 2002-07-23      Paul Koning     <pkoning@equallogic.com>
3443
3444         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
3445         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
3446         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
3447         (TARGET_G_FLOAT): Default to 0 if not defined.
3448         (ieeetoe): New, common routine to convert target format floats
3449         to internal form.
3450         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
3451         vs. others.
3452         (e113toe): Change to use ieeetoe.
3453
3454 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3455
3456         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
3457         IBM.
3458         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
3459         (e64toe): Remove special cases for DEC and IBM. Remove support for
3460         ARM_EXTENDED_IEEE_FORMAT.
3461         (e24toe): Remove special cases for DEC.
3462         (significand_size): Simplify. Indent.
3463         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
3464         (etoieee, toieee): New.
3465         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
3466         etoieee and toieee for IEEE arithmetic.
3467
3468 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
3469
3470         * doc/extend.texi: Say ISO C90, not ISO C89.
3471         * doc/invoke.texi: Likewise.
3472         * doc/standards.texi: Likewise.
3473
3474 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
3475
3476         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
3477         Fix permutation of conversion and plus/mult.
3478         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
3479         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
3480         (expand_builtin_strncpy) Ditto.
3481         (expand_builtin_memset) Ditto.
3482
3483 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
3484
3485         Fix PR/7363:
3486         * c-common.c (c_sizeof_or_alignof_type): New function.
3487         (c_alignof): Remove definition.
3488         * c-common.h (c_sizeof, c_alignof): Define as macros.
3489         (c_sizeof_or_alignof_type): Declare.
3490         (my_friendly_assert): Moved from cp/cp-tree.h
3491         * c-typeck.c (c_sizeof): Remove definition.
3492
3493 2002-07-23  Jan Hubicka  <jh@suse.cz>
3494
3495         * gcse.c (try_replace_reg): Use num_changes_pending.
3496         * recog.c (num_changes_pending): New function.
3497         (validate_replace_src): Use validate_repalce_src_group.
3498         (validate_replace_src_group): New.
3499         * recog.h (validate_repalce_src_group): New.
3500         (num_changes_pending): Likewise.
3501
3502 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
3503
3504         * calls.c (emit_library_call_value_1): If
3505         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
3506         libcall, const call nor pure call.
3507
3508 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
3509
3510         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
3511
3512 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
3513
3514         * vmsdbgout.c (SECTION_ASM_OP): Remove.
3515
3516 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
3517
3518         * config/i386/i386.c (AT_BP): Remove.
3519
3520 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
3521
3522         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
3523         Default definition.
3524         * gcse.c: Don't define obstack_chunk_free.
3525         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
3526         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
3527         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
3528         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
3529         Don't define obstack macros.
3530
3531 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
3532
3533         PR target/6744
3534         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
3535         ASM_OPERANDS instructions.
3536
3537 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
3538
3539         PR target/7361
3540         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
3541         constant addresses only on 68HC12.
3542
3543 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
3544
3545         * cppfiles.c (stack_include_file): Correct test of whether
3546         a dependency should be output.
3547
3548 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
3549
3550         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
3551
3552 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
3553
3554         * arm.md (movqi): If optimizing and we can create pseudos, use
3555         a ZERO_EXTEND to load from memory, then copy the result into the
3556         target.
3557         (movhi): Likewise, but only for ARMv4.
3558
3559 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
3560
3561         * ssa-ccp.c (PHI_PARMS): Remove.
3562
3563 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
3564
3565         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
3566         on big-endian targets.
3567
3568 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3569
3570         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
3571         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
3572         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
3573         New formatting macros.
3574
3575         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
3576
3577 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
3578
3579         * rtlanal.c (subreg_regno_offset): Return correct offset for
3580         big endian paradoxical subregs.
3581
3582         * optabs.c (expand_vector_unop): Don't expand using sub_optab
3583         if we got the wrong mode.
3584
3585         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
3586         * genrecog.c (write_switch, write_cond): Use it.
3587         * genemit.c (gen_exp): Likewise.
3588
3589 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
3590
3591         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
3592
3593 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
3594
3595         * c-decl.c (build_compound_literal): Defer compound literal decls
3596         until until file end to emit them only if they are actually used.
3597
3598 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3599
3600         * ra-build.c (check_conflict_numbers): Hide unused function.
3601         (livethrough_conflicts_bb): Avoid automatic aggregate
3602         initialization.
3603         (parts_to_webs_1): Avoid `U' integer constant modifier.
3604         (conflicts_between_webs): Wrap a variable in the macro controlling
3605         its usage.
3606         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
3607         (dump_igraph, dump_graph_cost): Avoid string concatenation
3608         (dump_static_insn_cost): Avoid automatic aggregate
3609         initialization.
3610         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
3611         initialization.
3612         (dump_cost): Avoid string concatenation
3613
3614 2002-07-21  Richard Henderson  <rth@redhat.com>
3615
3616         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
3617         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
3618
3619 2002-07-21  Richard Henderson  <rth@redhat.com>
3620
3621         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
3622         that are not unrolled completely.
3623
3624 2002-07-21  Richard Henderson  <rth@redhat.com>
3625
3626         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
3627         * loop.c (strength_reduce): Update.
3628         * toplev.c (rest_of_compilation): Do unrolling in the first
3629         loop pass, not the second.
3630
3631 2002-07-21  Richard Henderson  <rth@redhat.com>
3632
3633         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
3634         when flag_argument_noalias == 2.
3635         * alias.c (nonoverlapping_memrefs_p): Handle that.
3636         * print-rtl.c (print_mem_expr): Likewise.
3637
3638 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
3639
3640         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
3641         instead of __negdi2 directly.
3642
3643 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
3644
3645         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
3646         * function.c (SYMBOL__MAIN): Remove definition.
3647         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
3648         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
3649         * profile.c (GCOV_INDEX_TO_BB): Remove.
3650         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
3651         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
3652
3653 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
3654
3655         * c-lex.c (GET_ENVIRONMENT): Remove.
3656         * collect2.c (GET_ENV_PATH_LIST): Remove.
3657         (prefix_from_env): Use GET_ENVIRONMENT.
3658         * cppinit.c (GET_ENV_PATH_LIST): Remove.
3659         (init_standard_includes): Use GET_ENVIRONMENT.
3660         * defaults.h (GET_ENVIRONMENT): Define here if not already.
3661         * gcc.c (GET_ENV_PATH_LIST): Remove.
3662         (make_relative_prefix, process_command): Update.
3663         * protoize.c (GET_ENV_PATH_LIST): Remove.
3664         (do_processing): Update.
3665
3666 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
3667
3668         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
3669         (grokdeclarator): Likewise.
3670         * c-format.c (C_STD_NAME): Likewise.
3671         * c-lex.c (interpret_integer): Likewise.
3672         * c-typeck.c (build_array_ref): Likewise.
3673         * cpplex.c (_cpp_lex_direct): Likewise.
3674         * toplev.c (documented_lang_options): Likewise.
3675
3676 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
3677
3678         * c-format.c (T99_I, T99_UI): Remove.
3679
3680 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
3681
3682         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
3683
3684 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
3685
3686         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
3687         do_local_cprop.
3688
3689 2002-07-21  Andreas Jaeger  <aj@suse.de>
3690
3691         * reload1.c (fixup_abnormal_edges): Remove unused variable.
3692
3693 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
3694
3695         Improvements for the ifcvt pass from Michael Meissner, with patches
3696         by Richard Sandiford <rsandifo@redhat.com>
3697         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
3698         * ifcvt.c (cond_exec_changed_p): New static variable.
3699         (last_active_insn): New function, renamed from last_active_insn_p
3700         and changed to return the last active insn in a basic block. All
3701         callers updated.
3702         (block_fallthru): New function.
3703         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
3704         IFCVT_MODIFY_INSN.  All callers updated.
3705         Return false if START or END are NULL.
3706         Handle case where we're processing an insn that is already
3707         conditional.
3708
3709         (noce_process_if_block): CE_INFO argument rather than
3710         multiple args containing the involved basic blocks.  All callers
3711         changed.
3712         (process_if_block, merge_if_block, find_if_block,
3713         cond_exec_process_if_block): Likewise.
3714
3715         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
3716         changed.
3717         Use new function last_active_insn to simplify some code.
3718         New code to handle multiple tests.
3719         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
3720         cond_exec_changed_p to TRUE.
3721
3722         (process_if_block): New code to handle multiple tests.
3723         (merge_if_block): Likewise.
3724         (find_if_header): New arg PASS.  Changed to return the currently
3725         processed basic block or NULL instead of true/false. All callers
3726         changed.
3727         Call IFCVT_INIT_EXTRA_FIELDS.
3728         (block_jumps_and_fallthru_p): New function.
3729         (find_if_block): Discover opportunities to convert multiple tests.
3730         Add additional debugging output.
3731         Update the ce_info structure before returning.
3732
3733         (if_convert): Run multiple passes of if-conversion.
3734         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
3735         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
3736         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
3737         these macros.
3738
3739 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
3740
3741         * gcse.c: Include cselib.h
3742         (constptop_register): Break out from ...
3743         (cprop_insn): ... here; kill basic_block argument.
3744         (do_local_cprop, local_cprop_pass): New functions.
3745         (one_cprop_pass): Call local_cprop_pass.
3746
3747 2002-07-20  Roger Sayle  <roger@eyesopen.com>
3748
3749         * simplify-rtx.c (simplify_relational_operation): Optimize
3750         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
3751
3752 2002-07-20  Michae Matz  <matz@suse.de>
3753
3754         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
3755
3756 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
3757
3758         * cppexp.c (struct op): Add token pointer.
3759         (check_promotion, CHECK_PROMOTION): New.
3760         (optab): Update.
3761         (_cpp_parse_expr): Update, use token pointer of struct op.
3762         (reduce): Warn about change of sign owing to promotion.
3763         * cppinit.c (cpp_handle_option): New warning if -Wall.
3764         * cpplib.h (struct cpp_options): New member.
3765
3766 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
3767
3768         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
3769         fpu list.  Separate Power4 compare and delayed_compare.  Correct
3770         Power4 fpcompare.
3771         (fix_truncdfsi2_internal): Restore FPR preference.
3772         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
3773         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
3774
3775 2002-07-19  Momchil Velikov <velco@fadata.bg>
3776
3777         * reload1.c (reload_as_needed): Duplicate oldpat.
3778
3779 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
3780
3781         PR optimization/7130
3782         * loop.h (struct loop_info): Add "preconditioned".
3783         * unroll.c (unroll_loop): Set it.
3784         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
3785
3786 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
3787
3788         * rtl.def (CODE_LABEL): Remove slot 8.
3789         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
3790         (LABEL_ALTERNATE_NAME): Delete.
3791         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
3792         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
3793
3794         * final.c (output_alternate_entry_point): New.
3795         (final_scan_insn): Use it instead of
3796         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
3797         of a case label being an alternate entry point.
3798
3799         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
3800         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
3801         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
3802         (field deleted).
3803         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
3804
3805         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
3806         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
3807         * doc/tm.texi: Delete documentation of
3808         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
3809
3810 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3811
3812         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
3813         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
3814         (LINK_SPEC): Define.
3815         (STARTFILE_SPEC): Define.
3816         (ENDFILE_SPEC): Define.
3817
3818         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
3819         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
3820
3821         * config/mips/iris6-o32-gas.h: New file.
3822         * config.gcc (mips-sgi-irix6*o32): Use it.
3823
3824         * config/mips/t-iris5-gas: New file.
3825         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
3826
3827 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
3828
3829         * cppexp.c (ALWAYS_EVAL): Remove.
3830         (optab, reduce): Always evaluate.
3831         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
3832         only if not skipping evaluation.
3833
3834 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3835
3836         * config/avr/avr.c (debug_hard_reg_set): Remove.
3837
3838 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
3839
3840         * gcc.c (cpp_options): Include "%1" (cc1_spec).
3841
3842 2002-07-19  Richard Henderson  <rth@redhat.com>
3843
3844         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
3845
3846 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
3847
3848         * prefix.c (update_path): Don't zap single `.' path components
3849         unless followed by another `.' and fix typo last patch.
3850
3851 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
3852
3853         * cppexp.c (cpp_num_mul): Remove unused parameter.
3854         (UNARY, BINARY, OTHER, binary_handler): Remove.
3855         (ALWAYS_EVAL): New.
3856         (optab): Update.
3857         (reduce): Refactor to a large switch, don't use a function
3858         pointer.
3859
3860 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
3861
3862         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
3863
3864 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
3865
3866         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
3867         (sh_expand_binop_v2sf): Likewise.
3868         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
3869         (int_gpr_dest, trunc_hi_operand): New functions.
3870         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
3871         trunc_hi_operand.
3872         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
3873         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
3874         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
3875         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
3876         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
3877         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
3878         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
3879         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
3880         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
3881         (movsf_ie+1): Likewise.
3882         (loaddi_trunc): Use int_gpr_dest predicate.
3883         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
3884         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
3885         (casesi_worker_0+[12], casesi_worker): Likewise.
3886         (shcompact_preserve_incoming_args): Likewise.
3887         (mov_nop): Use any_register_operand predicate.
3888         (mperm_w0): Use trunc_hi_operand predicate.
3889
3890 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3891
3892         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
3893         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
3894         numbering.
3895
3896 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3897
3898         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
3899
3900 2002-07-18  Richard Henderson  <rth@redhat.com>
3901
3902         PR optimization/7147
3903         * ifcvt.c (noce_get_condition): Make certain that the condition
3904         is valid at JUMP.
3905
3906 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
3907
3908         * sh.c (barrier_align, push): Shut up compiler warnings.
3909         (initial_elimination_offset,sh_media_init_builtins): Likewise.
3910         (reg_no_subreg_operand): Delete.
3911
3912 2002-07-17  Bo Thorsen  <bo@suse.de>
3913
3914         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
3915         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
3916         (STARTFILE_SPEC): Remove hardcoded library paths.
3917         (ENDFILE_SPEC): Likewise.
3918
3919 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
3920
3921         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
3922
3923         * gcse.c (try_replace_reg): Do not return false positives.
3924
3925 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
3926
3927         * prefix.c: (update_path): Strip ".." components when prior dir
3928         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
3929
3930         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
3931         (ASM_OUTPUT_REG_POP): Likewise.
3932
3933 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
3934
3935         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
3936         adjustments to first_reg for profiling case.
3937         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
3938         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
3939         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
3940         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
3941         (ASM_OUTPUT_REG_POP): Define.
3942         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
3943         (ASM_OUTPUT_REG_POP): Undef.
3944
3945 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
3946
3947         * cpplib.c (do_sccs): Handle #sccs on all systems.
3948         * system.h (SCCS_DIRECTIVE): Poison.
3949         * config/darwin.h, config/freebsd.h, config/netbsd.h,
3950         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
3951         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
3952         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
3953         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
3954         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
3955         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
3956         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
3957         Remove all references to SCCS_DIRECTIVE.
3958         * doc/cpp.texi, doc/tm.texi: Update.
3959
3960 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
3961
3962         * regrename.c (maybe_mode_change): New function.
3963         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
3964
3965 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
3966
3967         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
3968         suppress addition when either ct or cf are zero.
3969
3970 2002-06-17  Eric Botcazou <ebotcazou@multimania.com>
3971             Glen Nakamura <glen@imodulo.com>
3972
3973         PR optimization/6713
3974         * loop.c (loop_givs_rescan): Explicitly delete the insn that
3975         sets a non-replaceable giv after issuing the new one.
3976
3977 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
3978
3979         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
3980         eval_token): Clarify and correct use of "bool" variables.
3981         * cpplib.h (struct cpp_options): Similarly.
3982         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
3983         * cpptrad.c (recursive_macro): Similarly.
3984
3985 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
3986
3987         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
3988         SHmedia code.
3989
3990         * sh.md (cmpgtudi_media): Remove spurious @.
3991
3992         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
3993         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
3994
3995         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
3996         * sh-protos.h (sh_initialize_trampoline): Declare.
3997         * sh.c (sh_initialize_trampoline): New function.
3998         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
3999         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
4000         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
4001         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
4002         * sh.md (initialize_trampoline, double_shori): New patterns.
4003         (initialize_trampoline_compact): Likewise.
4004         (shmedia32_initialize_trampoline_big): Remove.
4005         (shmedia32_initialize_trampoline_little): Likewise.
4006
4007         * sh-protos.h (binary_float_operator): Remove declaration.
4008         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
4009         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
4010         (unary_float_operator, sh_expand_unop_v2sf): New functions.
4011         (sh_expand_binop_v2sf): Likewise.
4012         (zero_vec_operand): Delete.
4013         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
4014         all non-shared ones.
4015         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
4016         Enable nsb and byterev.
4017         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
4018         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
4019         in general regs.
4020         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
4021         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
4022         immediate operands.
4023         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
4024         Add DF_HI_REGS.
4025         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
4026         lowpart fp regs - only for big endian for now.
4027         (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
4028         when FPU is in use.
4029         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
4030         (LOAD_EXTEND_OP): NIL for SImode.
4031         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
4032         general and fp registers is 4.
4033         PREDICATE_CODES: Amend binary_float_operator entry.
4034         Remove zero_vec_operand.  Add unary_float_operator.
4035         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
4036         subreg SET_DEST.
4037         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
4038         (truncdiqi2): Do sign extension.
4039         (movsi_media, movdi_media): Allow to use r63 to an fp register.
4040         (movdf_media, movsf_media): Likewise.
4041         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
4042         Collapse to one define_insn_and_split.  Allow immediate sources.
4043         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
4044         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
4045         (movv4sf): Allow immediate sources.
4046         (movsf_media_nofpu+1): Don't split moves to FP registers.
4047         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
4048         (movv8qi_i+3): Check against CONST0_RTX.
4049         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
4050         for input and output operands.  Fix argument 3 to gen_mextr_rl.
4051         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
4052         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
4053         (mshf0_w, fipr, ftrv): Likewise.
4054         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
4055
4056 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
4057
4058         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
4059         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
4060         * arm.c: Similarly.
4061
4062 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
4063
4064         * config/mips/mips-protos.h (mips_sign_extend): Declare.
4065         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
4066         (TARGET_SWITCHES): Remove debugh.
4067         (ISA_HAS_TRUNC_W): New macro.
4068         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
4069         (PREDICATE_CODES): Remove se_nonimmediate_operand.
4070         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
4071         any SImode move_operand.
4072         (se_nonimmediate_operand): Remove.
4073         (mips_sign_extend): New.
4074         (mips_move_2words): Use it for sign-extended source operands.
4075         (override_options): Allow integers to be put into single FPRs.
4076         (mips_secondary_reload_class): Handle integers in float registers.
4077         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
4078         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
4079         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
4080         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
4081         (fix_truncdfdi2): Provide only a single alternative, in which the
4082         integer is in a float register.  Depend on TARGET_FLOAT64 rather
4083         than TARGET_64BIT.
4084         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
4085         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
4086         (movdi_internal2): Don't allow the source operand to be sign-extended.
4087         Add alternatives for float registers.
4088         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
4089         allows sign-extension.
4090         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
4091         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
4092         float registers.  Remove TARGET_DEBUG_H_MODE test.
4093         (movhi_internal1): Rename to movhi_internal.  Don't check
4094         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
4095         (movqi_internal1): Rename to movqi_internal and remove
4096         TARGET_DEBUG_H_MODE dependency.
4097         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
4098
4099 2002-07-16  Jim Wilson  <wilson@redhat.com>
4100
4101         * toplev.c (lang_dependent_init): Create function context for
4102         init_expr_once.
4103
4104 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
4105
4106         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
4107         --gc-sections if -r.
4108         * config/cris/cris.h: Ditto.
4109
4110 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
4111
4112         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
4113         the comparison directly gives a mask suppress addition when cf is
4114         zero by complementing the mask.
4115
4116 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4117
4118         * Makefile.in: Delete references to enquire.
4119         * enquire.c: Move to contrib.
4120
4121 2002-07-16  Stan Shebs  <shebs@apple.com>
4122
4123         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
4124         config/rs6000/darwin.h.
4125         (ASM_OUTPUT_SKIP): Ditto.
4126         (TEXT_SECTION_ASM_OP): Ditto.
4127         (DATA_SECTION_ASM_OP): Ditto.
4128         (ASM_APP_ON): Define.
4129         (ASM_APP_OFF): Define.
4130         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
4131         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
4132
4133         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
4134         (machopic_function_base_name): Declare result to be const.
4135         (machopic_non_lazy_ptr_name): Ditto.
4136         (machopic_stub_name): Ditto.
4137         * config/darwin-protos.h: Ditto for the prototypes.
4138
4139 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
4140
4141         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
4142
4143 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
4144
4145         * i386.md (prefetch): Fix for 64bit mode.
4146         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
4147
4148 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
4149
4150         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
4151         * i386.c (x86_machine_dependent_reorg): New function.
4152         * i386-protos.h (x86_machine_dependent_reorg): Declare.
4153
4154 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
4155
4156         * builtins.c (std_expand_builtin_va_start): Remove unused
4157         first argument.
4158         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
4159         std_expand_builtin_va_start with just two arguments.
4160         * expr.h: Update prototypes.
4161
4162         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
4163         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
4164         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
4165         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
4166         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
4167         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
4168         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
4169         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
4170         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
4171         argument from all implementations of EXPAND_BUILTIN_VA_START
4172         and all uses of std_expand_builtin_va_start.
4173
4174 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
4175
4176         * regrename.c (copy_value): Don't record high part copies.
4177
4178 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
4179
4180         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
4181         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
4182         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
4183
4184 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
4185
4186         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
4187
4188         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
4189         into addsi3 using register class "x" and "y".
4190
4191         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
4192         "earlyclobber" constraint modifier for some alternative.
4193
4194         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
4195         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
4196         unordered.
4197         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
4198
4199         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
4200         (TARGET_SWITCHES): Add -mieee-compare option.
4201         (OVERRIDE_OPTIONS): 32332 is a subset of
4202         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
4203         (TARGET_SWITCHES): Fix description of bitfield option.
4204         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
4205         -mieee-compare option. Remove 32332 flag.
4206
4207 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
4208
4209         * explow.c (convert_memory_address): Remove special handling
4210         when POINTERS_EXTEND_UNSIGNED < 0.
4211         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
4212         (movedi_symbolic): Fix typo.
4213         (load_fptr): Remove mode restriction so it works for SI and DI.
4214         (load_fptr_internal1): Ditto.
4215         (load_gprel): Ditto.
4216         (load_symptr_internal1): Ditto.
4217         (call_pic): Ditto.
4218         * config/ia64.c (call_operand): Modify mode check.
4219         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
4220         (ia64_expand_move): Ditto.
4221         (ia64_assemble_integer): Handle SImode function pointers.
4222         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
4223         (ia64_expand_op_and_fetch): Ditto.
4224         (ia64_expand_compare_and_swap): Ditto.
4225         (ia64_expand_lock_test_and_set): Ditto.
4226         (ia64_expand_lock_release): Ditto.
4227
4228 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4229
4230         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
4231
4232 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4233             Richard Earnshaw  <rearnsha@arm.com>
4234
4235         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
4236         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
4237
4238 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
4239
4240         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
4241         understands to be a memory clobber.
4242         * arm.c (arm_expand_prologue): Use it.
4243
4244 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
4245
4246         * ra-rewrite.c: #include reload.h, insn-config.h
4247         * ra-build.c: #include reload.h
4248         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
4249         depend on reload.h, insn-config.h.
4250
4251 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
4252
4253         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
4254         the same size as a word.
4255
4256         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
4257         BYTES_BIG_ENDIAN into account.
4258
4259 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
4260
4261         * i386.md (prefetch): Fix for 64bit mode.
4262         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
4263
4264         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
4265
4266 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4267
4268         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
4269
4270 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
4271
4272         * ginclude/varargs.h: Replace with stub which issues #error.
4273         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
4274         __builtin_va_start.
4275
4276         * builtins.def (BUILT_IN_VARARGS_START): Delete.
4277         (BUILT_IN_VA_START): New.
4278         * builtins.c (expand_builtin_va_start): Eliminate first
4279         argument and code to implement pre-ISO varargs.
4280         (std_expand_builtin_va_start): Ignore first argument; it is
4281         always 1.
4282         (expand_builtin): Handle BUILT_IN_VA_START and
4283         BUILT_IN_STDARG_START identically.  Delete
4284         BUILT_IN_VARARGS_START case.
4285
4286         * function.c (assign_parms): Delete hide_last_arg and all
4287         its uses.
4288         (mark_varargs): Delete function.
4289         * function.h (struct function): Delete 'varargs' bit.
4290         (current_function_varargs): Delete macro.
4291         * tree.h: Don't declare mark_varargs.
4292
4293         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
4294         (c_expand_body): Don't call mark_varargs.
4295         * c-objc-common.c: Handle BUILT_IN_VA_START and
4296         BUILT_IN_STDARG_START identically.  Delete
4297         BUILT_IN_VARARGS_START case.
4298         * c-tree.h: Don't declare c_mark_varargs.
4299         * c-parse.in: Remove grammar rules for '&...' (which has been
4300         commented out since before 2.7.2) and for '...' in K+R
4301         argument declarations.
4302
4303         * builtins.c, function.c, integrate.c, sibcall.c,
4304         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
4305         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
4306         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
4307         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
4308         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
4309         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
4310         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
4311         config/stormy16/stormy16.c: Delete all references to
4312         current_function_varargs, and code predicated on that flag.
4313
4314         * config/alpha/alpha.c (alpha_va_start),
4315         config/arc/arc.c (arc_va_start),
4316         config/i386/i386.c (ix86_va_start),
4317         config/mips/mips.c (mips_va_start),
4318         config/mn10300/mn10300.c (mn10300_va_start),
4319         config/rs6000/rs6000.c (rs6000_va_start),
4320         config/s390/s390.c (s390_va_start),
4321         config/sh/sh.c (sh_va_start),
4322         Ignore first argument; it is always 1.
4323
4324         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
4325         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
4326         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
4327         Delete m68hc11_va_start.
4328         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
4329         No need to define EXPAND_BUILTIN_VA_START.
4330
4331         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
4332         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
4333
4334 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
4335
4336         PR optimization/7153
4337         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
4338         dies in more than one insn.
4339
4340 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
4341
4342         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
4343
4344 2002-07-15  Michael Matz  <matz@suse.de>,
4345             Daniel Berlin  <dberlin@dberlin.org>,
4346             Denis Chertykov  <denisc@overta.ru>
4347
4348         Add a new register allocator.
4349
4350         * ra.c: New file.
4351         * ra.h: New file.
4352         * ra-build.c: New file.
4353         * ra-colorize.c: New file.
4354         * ra-debug.c: New file.
4355         * ra-rewrite.c: New file.
4356
4357         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
4358         (ra-rewrite.o): New .o files for libbackend.a.
4359         (GTFILES): Add basic-block.h.
4360
4361         * toplev.c (flag_new_regalloc): New.
4362         (f_options): New option "new-ra".
4363         (rest_of_compilation): Call initialize_uninitialized_subregs()
4364         only for the old allocator.  If flag_new_regalloc is set, call
4365         new allocator, instead of local_alloc(), global_alloc() and
4366         friends.
4367
4368         * doc/invoke.texi: Document -fnew-ra.
4369         * basic-block.h (FOR_ALL_BB): New.
4370         * config/rs6000/rs6000.c (print_operand): Write small constants
4371         as @l+80.
4372
4373         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
4374         (df_reg_table_realloc): Make size at least as large as max_reg_num().
4375         (df_insn_table_realloc): Size argument now is absolute, not relative.
4376         Changed all callers.
4377
4378         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
4379         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
4380
4381         2002-06-20  Michael Matz  <matz@suse.de>
4382
4383         * df.h (struct ref.id): Make unsigned.
4384         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
4385
4386         2002-06-13  Michael Matz  <matz@suse.de>
4387
4388         * df.h (DF_REF_MODE_CHANGE): New flag.
4389         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
4390         involving subregs with invalid mode changes, when
4391         CLASS_CANNOT_CHANGE_MODE is defined.
4392
4393         2002-05-07  Michael Matz  <matz@suse.de>
4394
4395         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
4396
4397         2002-05-03  Michael Matz  <matz@suse.de>
4398
4399         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
4400
4401         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
4402
4403         * regclass.c (regclass): Work with all regs which have sets or
4404         refs.
4405         (reg_scan_mark_refs): Count regs inside (clobber ...).
4406
4407         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
4408
4409         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
4410         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
4411         add new refs.
4412         (df_bb_refs_update): Don't clear insns_modified here, ...
4413         (df_analyse): ... but here.
4414
4415         * sbitmap.c (dump_sbitmap_file): New.
4416         (debug_sbitmap): Use it.
4417
4418         * sbitmap.h (dump_sbitmap_file): Add prototype.
4419
4420         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
4421
4422         * df.c (df_insn_modify): Grow the UID table if necessary, rather
4423         than assume all emits go through df_insns_modify.
4424
4425         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
4426
4427         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
4428         increase REG_N_REFS (like flow does), so that regclass doesn't
4429         think a reg is useless, and thus, not calculate a class, when it
4430         really should have.
4431
4432         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
4433
4434         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
4435         dataflow analysis.
4436
4437 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
4438
4439         PR middle-end/7245
4440         * config/i386/i386.c (const_int_1_31_operand): New.
4441         * config/i386/i386.h (PREDICATE_CODES): Add it.
4442         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
4443         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
4444         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
4445
4446 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
4447
4448         PR target/7282
4449         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
4450         (floatunssidf2): Likewise.
4451         (floatsidf_ppc64): New insn_and_split.
4452         (floatunssidf_ppc64): Likewise.
4453
4454 2002-07-14  Andreas Jaeger  <aj@suse.de>
4455
4456         * config.gcc (sh64): Remove unused
4457         target_requires_64bit_host_wide_int.
4458
4459 2002-07-12  Roger Sayle  <roger@eyesopen.com>
4460
4461         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
4462         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
4463         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
4464         whether clear_by_pieces should be used to clear storage.
4465         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
4466
4467         * doc/tm.texi: Document these two new target macros.
4468
4469 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
4470
4471         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
4472         the scratch register.
4473         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
4474         of it, forbid reload to use it.
4475
4476 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4477
4478         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
4479         usage on 64-bit hosts, return value was truncated to 32 bits.
4480
4481 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
4482
4483         * simplify-rtx.c (simplify_subreg): Handle floating point
4484         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
4485         the element mode is requested, compute a subreg with an
4486         integer mode of the same size as the element mode first.
4487
4488 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
4489
4490         * combine.c (try_combine): When converting a paradoxical subreg
4491         to an extension, take LOAD_EXTEND_OP into account.
4492
4493 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4494
4495         * config.gcc (mips-sgi-irix6*o32): New configuration.
4496
4497         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
4498         configurations.
4499         * configure: Regenerate.
4500
4501         * config/mips/iris6-o32-as.h: New file.
4502         * config/mips/iris6-o32.h: New file.
4503
4504         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
4505         (NM_FLAGS): Define.
4506         (HAVE_AS_SHF_MERGE): Undefine.
4507
4508         * config/mips/t-iris5-as: New file.
4509         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
4510
4511         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
4512         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
4513         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
4514         dp-bit.c, fp-bit.c): Move ...
4515         * config/mips/t-iris5-6: ... here.
4516         New file, shared by IRIX 5 and IRIX 6.
4517         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
4518         mips-sgi-irix5*): Use it.
4519
4520         * config/mips/iris6.h: Remove duplicate comment.
4521
4522         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
4523         !TARGET_IRIX6]: Define.
4524         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
4525
4526         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
4527
4528 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4529
4530         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
4531         and delete code to force constant to register.
4532         * pa-protos.h (adddi3_operand): Add prototype.
4533         * pa.c (adddi3_operand): New function.
4534
4535 2002-07-11  Roger Sayle  <roger@eyesopen.com>
4536
4537         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
4538         non-ANSI builtin functions.
4539
4540 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
4541
4542         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
4543         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
4544         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
4545         (gen_const_vector_0): Use it.
4546
4547 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4548
4549         * pa.md (adddi3): For 32-bit targets, force constants to a register
4550         if they don't fit in an 11-bit immediate.  Change insn predicate to
4551         arith11_operand.  Remove comment.
4552         * pa.c (cint_ok_for_move): Fix comment.
4553         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
4554         targets.
4555
4556 2002-07-11  Tim Josling  <tej@melbpc.org.au>
4557
4558         Remove front end hard coding from gengtype.c.
4559
4560         * Makefile.in
4561         (STAGESTUFF): add gtyp-gen.h
4562         (GTFILES): Remove front end specific files.
4563         (GTFILES_FILES_LANGS): New, from configure..
4564         (GTFILES_FILES_FILES): Likewise.
4565         (GTFILES_LANG_DIR_NAMES): Likewise.
4566         (GTFILES_SRCDIR): Likewise.
4567         (gtyp-gen.h): Build from configure information.
4568         (s-gtype): Remove command line parameters from gengtype.
4569         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
4570         (mostlyclean): Delete files generated by and for gengtype.
4571
4572         * c-config-lang.in: New file.
4573
4574         * configure.in (all_gtfiles_files_langs): New. Accumulate files
4575         for each language.
4576         (all_gtfiles_files_files): New. Accumulate language for each file
4577         accumulated.
4578         (gtfiles): Pick up value for C.
4579         (srcdir): AC-SUBST this variable.
4580         (all_gtfiles_files_langs): AC-SUBST this variable.
4581         (all_gtfiles_files_files): AC-SUBST this variable.
4582
4583         * configure: Regenerate.
4584
4585         * gengtype-lex.l (parse_file): Make parameter const.
4586
4587         * gengtype.c (toplevel): include gtyp-gen.h.
4588         (BASE_FILE_<language> unnamed enum): Delete.
4589         (lang_names): Delete (replaced by gtyp-gen.h)
4590         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
4591         all references.
4592         (NUM_GT_FILES): New.
4593         (NUM_LANG_FILES): New.
4594         (srcdir_len): New.
4595         (NUM_BASE_FILES): Change calculation.
4596         (open_base_files): Change prototype to avoid warning.
4597         (startswith): Delete.
4598         (get_file_basename): Iterate through generated language list not
4599         hard coded list.
4600         (get_base_file_bitmap): Use generated list of files and languages.
4601         (close_output_files): Add prototype to rmove warning.
4602         (main): Iterate through list of generated files from gtyp-gen.h
4603         rather than command line paramaters.  Ignore duplicated file
4604         names.
4605
4606         * gengtype.h (parse_file): Amend prototype for const parameter.
4607
4608         * doc/sourcebuild.texi: Document gtfiles variable.
4609
4610         * doc/gty.texi: Document changes to gtfiles variable for front
4611         ends.
4612
4613         * objc/config-lang.in (gtfiles): Add files needed for objc front
4614         end.
4615
4616 2002-07-10  Roger Sayle  <roger@eyesopen.com>
4617
4618         PR c/2454
4619         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
4620         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
4621
4622 2002-07-10  Roger Sayle  <roger@eyesopen.com>
4623             Zack Weinberg <zack@codesourcery.com>
4624
4625         * builtins.def: Make the argument types of abort and exit
4626         independent of the front-end.
4627
4628 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
4629
4630         * config/rs6000/linux64.h (ASM_SPEC): Define.
4631
4632 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
4633
4634         * config/rs6000/rs6000.c (emit_frame_save): New.
4635         (rs6000_frame_related): Replace reg2 before reg.
4636         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
4637         and eh_return registers.
4638
4639 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
4640
4641         Revert all patches for optimization of Complex .op. Real.
4642         * complex_part_zero_p: Remove
4643         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
4644         with x.
4645         * expand_cmplxdiv_wide: Ditto.
4646         * expand_binop: Ditto.
4647
4648 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4649
4650         * config/avr/avr.md: Fix two 0x80000000 constants to make them
4651         negative also on 64-bit hosts.
4652
4653         Default to -fno-reorder-blocks when optimizing for size.
4654         * config/avr/avr-protos.h (avr_optimization_options): Declare.
4655         * config/avr/avr.c (avr_optimization_options): New function.
4656         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
4657
4658         Optimize returning from simple functions.
4659         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
4660         * config/avr/avr.c (avr_simple_epilogue): New function.
4661         * config/avr/avr.md (return): New insn.
4662
4663 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
4664
4665         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
4666         HAS_INIT_SECTION to protection.
4667
4668 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
4669
4670         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
4671         deprecated.
4672
4673 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
4674
4675         * combine.c (gen_lowpart_for_combine): Handle vector modes.
4676         Supply non-VOID mode to simplify_gen_subreg.
4677
4678 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
4679
4680         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
4681
4682 2002-07-10  Jeffrey A Law  <law@redhat.com>
4683
4684         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
4685         as appropriate.
4686
4687         * mn10200.c (expand_epilogue): Fix test to determine which scratch
4688         register to use.
4689
4690 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
4691
4692         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
4693         Get mode from dest.
4694         If simplify_gen_subreg fails, try next equivalent.
4695
4696 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
4697
4698         * diagnostic.h: #include location.h
4699         (location_t): Move definition to..
4700         * location.h: ... here.  New file.
4701         * tree.h: #include location.h
4702         (DECL_SOURCE_LOCATION): New macro.
4703         (DECL_SOURCE_FILE): Use.
4704         (DECL_SOURCE_LINE): Likewise.
4705         (struct tree_decl): REplace filename and linenum with locus.
4706         * Makefile.in (TREE_H): add location.h
4707         (diagnostic.o): Depends on gt-location.h
4708         (gt-location.h): Depends on s-gtype
4709
4710 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
4711
4712         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
4713         TARGET_OS_CPP_BUILTINS.
4714         * config/rs6000/aix31.h: Likewise.
4715         * config/rs6000/aix41.h: Likewise.
4716         * config/rs6000/aix43.h: Likewise.
4717         * config/rs6000/aix51.h: Likewise.
4718         * config/rs6000/beos.h: Likewise.
4719         * config/rs6000/darwin.h: Likewise.
4720         * config/rs6000/eabi.h: Likewise.
4721         * config/rs6000/eabisim.h: Likewise.
4722         * config/rs6000/linux.h: Likewise.
4723         * config/rs6000/linux64.h: Likewise.
4724         * config/rs6000/lynx.h: Likewise.
4725         * config/rs6000/mach.h: Likewise.
4726         * config/rs6000/rtems.h: Likewise.
4727         * config/rs6000/sysv4.h: Likewise.
4728         * config/rs6000/vxppc.h: Likewise.
4729
4730 2002-07-09 Devang Patel <dpatel@apple.com>
4731         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
4732         Do not allow ObjC objects as a parameter type for Objective-C methods.
4733         My previous patch restricted  'struct' also.
4734
4735 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
4736
4737         * cpperror.c (cpp_error): Default to directive_line within
4738         directives here.
4739         * cppexp.c (cpp_interpret_integer): Only use traditional
4740         number semantics in directives.
4741         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
4742         (do_include_common): Similarly.
4743         * cpptrad.c (scan_out_logical_line): Implement accurate
4744         quoting of <> in #include.
4745         * doc/cpp.texi: Update.
4746
4747 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
4748                           J"orn Rennecke <joern.rennecke@superh.com>
4749
4750         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
4751         * sh.md (attribute issues): Replace with:
4752         (attribute pipe_model).  All users changed.
4753         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
4754         All users changed.
4755         (function units sh5issue, sh5fds): New.
4756         (attribute is_mac_media): New.
4757         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
4758         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
4759         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
4760         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
4761         (call_media, call_value_media, sibcall_media): Likewise.
4762         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
4763         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
4764         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
4765         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
4766         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
4767         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
4768         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
4769         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
4770         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
4771         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
4772         (truncdfsf2_media): Likewise.
4773         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
4774         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
4775
4776 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
4777
4778         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
4779         * sh.c (general_extend_operand, inqhi_operand): New functions.
4780         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
4781         alternatives using 'N' modifier.  Add type.
4782         (adddi3z_media): Likewise.  Enable generator function generation.
4783         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
4784         exact predicates / constraints.  Add type.
4785         (subsi3): Allow 0 for SHMEDIA.
4786         (udivsi3_i4_media): Use match_operand for input values
4787         rather than hard registers.
4788         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
4789         unnecessarily through hard registers.  Keep copies of pseudo
4790         registers outside of the libcall sequence.
4791         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
4792         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
4793         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
4794         (extendhidi2, extendqidi2): Likewise.
4795         (andsi3_compact): Name.
4796         (andcdi3): Enable generator function generation.
4797         (zero_extendhisi2, zero_extendqisi2): Rename to
4798         (zero_extendhisi2_compact, zero_extendqisi2_compact).
4799         (extendhisi2, extendqisi2): Rename to
4800         (extendhisi2_compact, extendqisi2_compact).
4801         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
4802         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
4803         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
4804         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
4805         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
4806         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
4807         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
4808         (shmedia32_initialize_trampoline_big): Likewise.
4809         (shmedia32_initialize_trampoline_little): Likewise.
4810         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
4811         (negdi2): Remove spurious T clobber.
4812         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
4813         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
4814         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
4815         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
4816         (ic_invalidate_line_media): Write back data cache before invalidating
4817         instruction cache.  Add type.
4818         (movsf_media): Sign-extend when the destination is a general
4819         purpose register.  Add type.
4820         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
4821         (casesi_worker_0+1): Only increment ref count for proper label.
4822         (casesi_worker_0+2): Likewise.
4823
4824 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
4825
4826         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
4827
4828 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
4829
4830         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
4831         from Pmode to ptr_mode.
4832         (get_exception_pointer): Ditto.
4833         (connect_post_landing_pads): Ditto.
4834         (dw2_build_landing_pads): Ditto.
4835
4836 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
4837         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
4838         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
4839         (handle_pragma_redefine_extname): Change to use new function.
4840
4841 2002-07-08  Roger Sayle  <roger@eyesopen.com>
4842
4843         * combine.c (combine_simplify_rtx): Add an explicit cast
4844         to avoid signed/unsigned comparison warning.
4845         (simplify_if_then_else): Likewise.
4846         (extended_count): Likewise.
4847         (simplify_shift_const): Likewise.
4848         (simplify_comparison): Likewise.
4849
4850 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
4851
4852         * config/mips/mips.md: Add imadd type.  Update scheduler description
4853         to use imadd as well as imul.
4854         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
4855         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
4856         (*mul_sub_si): Likewise for first alternative.  Change second
4857         alternative from imul to multi.
4858
4859 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
4860
4861         * c-common.c (c_common_post_options): Update prototype;
4862         don't init backends if preprocessing only.
4863         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
4864         * langhooks.h (struct lang_hooks): Update post_options to
4865         return a boolean.
4866         * toplev.c (parse_options_and_default_flags, do_compile,
4867         lang_independent_init): Update prototypes.  Allow the
4868         front end to specify that there is no need to initialize
4869         the back end.
4870         (general_init): Move call to hex_init here...
4871         (toplev_main): ...from here.  Pass flag for back end init
4872         suppression.
4873
4874 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
4875
4876         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
4877         (PREDICATE_CODES): Add entries for equality_comparison_operator,
4878         greater_comparison_operator and less_comparison_operator.
4879         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
4880         more operators.
4881         (equality_comparison_operator): New function.
4882         (greater_comparison_operator, less_comparison_operator): Likewise.
4883         * sh.md (beq_media_i): Disable generator function generation.
4884         Use match_operator to handle a whole class of comparisons.  Add
4885         modifier in output template to provide branch prediction.  Add type.
4886         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
4887         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
4888         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
4889         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
4890
4891 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
4892
4893         Emit MMIX function prologue and epilogue as rtl.
4894         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
4895         not unprototyped get_hard_reg_initial_val.
4896         ("call_value", "nonlocal_goto_receiver"): Ditto.
4897         ("return"): Make define_expand.  Move real insn to...
4898         ("*expanded_return"): New pattern.
4899         ("prologue", "epilogue"): New define_expands.
4900         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
4901         (struct machine_function): New member in_prologue.
4902         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
4903         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
4904         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
4905         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
4906         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
4907         (LOCAL_REGNO): Define.  Adjust comment.
4908         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
4909         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
4910         leaf_function_p.
4911         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
4912         the prologue.
4913         (mmix_target_asm_function_prologue): Make static.  Just mark that
4914         the prologue is being emitted.  Move guts to...
4915         (mmix_expand_prologue): New function.  Adjust for emitting
4916         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
4917         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
4918         \n.  Move guts to...
4919         (mmix_expand_epilogue): New function.  Adjust for emitting
4920         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
4921         (mmix_target_asm_function_end_prologue): Mark that the prologue
4922         has ended.
4923         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
4924         (mmix_conditional_register_usage): Improve comments.
4925         (mmix_local_regno): New function.
4926         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
4927         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
4928         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
4929         (mmix_get_hard_reg_initial_val): Ditto.
4930
4931 2002-07-06  Andreas Jaeger  <aj@suse.de>
4932
4933         * toplev.c (set_fast_math_flags): Don't use ISO C style function
4934         definitions.
4935         * gengtype.c (open_base_files): Likewise.
4936         (close_output_files): Likewise.
4937         * tracer.c (find_best_predecessor): Likewise.
4938         (find_best_successor): Likewise.
4939         (ignore_bb_p): Likewise.
4940
4941 2002-07-05  Roger Sayle  <roger@eyesopen.com>
4942
4943         PR c++/7099
4944         * builtin-attrs.def: Define new attribute lists for use in
4945         builtins.def.
4946         * builtins.def [DEF_BUILTIN]: Modify to take an additional
4947         ATTRS argument, an enumerated value defined in builtin-attrs.def
4948         that represents the attribute list for the builtins.  Modify
4949         all builtin functions to pass an appropriate attribute list.
4950         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
4951         their required noreturn attributes.
4952         * tree.h (enum_builtin_function): Ignore the additional parameter
4953         to DEF_BUILTIN.
4954         * builtins.c (built_in_names): Likewise.
4955         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
4956         argument with a tree representing the functions attribute list.
4957         Pass this "attrs" argument to builtin_function.  No longer handle
4958         the noreturn_p processing manually.
4959         (built_in_attributes): Move the definitions from builtin-attrs.def
4960         before c_common_nodes_and_builtins.
4961         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
4962         DEF_BUILTIN, passing it to both builtin_function and the changed
4963         builtin_function_2.
4964
4965         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
4966         __builtin__exit and __builtin__Exit.
4967
4968 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
4969
4970         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
4971         QI mode registers in soft registers.
4972         ("zero_extendqihi2"): Do not take into account soft registers
4973         for register allocation (use '*' constraint).
4974
4975 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
4976
4977         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
4978         it is dead.
4979         ("*ashrsi3"): Likewise.
4980         ("*lshrsi3"): Likewise.
4981
4982 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
4983
4984         * genautomata.c (output_max_insn_queue_index_def): Take latencies
4985         into account.
4986
4987 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
4988
4989         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
4990         address computation and memory moves.
4991
4992 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
4993
4994         PR c++/6706
4995         * dwarfout.c (output_reg_number): Fix warning message.
4996         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
4997         before using it.
4998
4999 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5000
5001         * gcc/gcc.c (asm_debug): Move initialization ...
5002         (init_spec): ... here.
5003
5004 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
5005
5006         * c-parse.in (extdef): Append ';'.
5007         (old_style_parm_decls): Append ';'.
5008
5009 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
5010
5011         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
5012         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
5013         to gcc_cv_as_gstabs_flag.
5014         * configure: Rebuilt.
5015
5016 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
5017
5018         * ggc.h (ggc_add_root): Document as obsolete.
5019
5020 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
5021
5022         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
5023         (mshflo_w): Likewise.
5024
5025 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
5026
5027         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
5028         vector mode subregs of constants to finding integer mode
5029         subregs of constants.
5030         * cse.c (cse_insn): Use simplify_gen_subreg.
5031         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
5032         From a vector mode expression of different size than the
5033         target mode.
5034
5035 2002-07-03  Eric Christopher  <echristo@redhat.com>
5036
5037         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
5038         * config/mips/mips.h: Remove deprecated -m<processor> options
5039         and cc1_cpu_spec associated.
5040         (CONSTANT_ADDRESS_P): Fix last patch.
5041         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
5042         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
5043         sunge_sf): Remove.
5044
5045 2002-07-03  Stan Shebs  <shebs@apple.com>
5046
5047         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
5048         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
5049         (CPP_SPEC): Remove insertion of APPLE_CC definition.
5050
5051 2002-07-03  Roger Sayle  <roger@eyesopen.com>
5052
5053         * combine.c (struct_undo): Change types of recorded substitutions
5054         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
5055         (do_SUBST_INT): Change types of the substitution from unsigned int
5056         to int, to avoid compilation warning from SUBST_INT's only caller.
5057
5058         (make_extraction): Add cast to avoid compilation warning.
5059         (force_to_mode): Remove cast to avoid compilation warning.
5060
5061 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
5062             Jeff Law  <law@redhat.com>
5063
5064         * i386.md (length_immediate attribute): Fix typo.
5065         (length_address attribute): Likewise.
5066         (modrm attribute): Set it to 0 for immediate call instructions.
5067         (jcc_1 pattern): Set modrm attribute to 0.
5068         (jcc_2 pattern ): Likewise.
5069         (jump pattern): Likewise.
5070         (doloop_end_internal pattern): Explicitly set length.
5071         (leave pattern): Fix typo.
5072         (leave_rex64 pattern): Likewise.
5073
5074 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
5075
5076         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
5077         in FPR as preference.
5078         (fctiwz): Same.
5079         (floatdidf2, fix_truncdfdi2): Same.
5080         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
5081         (floatditf2): Same.
5082         (floatsitf2, fix_trunctfsi2): SImode in GPR.
5083         (ctrdi): Remove FPR alternative and splitter.
5084
5085 2002-07-03  Will Cohen  <wcohen@redhat.com>
5086
5087         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
5088
5089 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
5090
5091         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
5092         than UNITS_PER_WORD, unless this is little endian and the first unit
5093         in this word.  Let extract_bit_field decide how to load an element.
5094         Force arguments to matching mode.
5095         (expand_vector_unop): Likewise.
5096
5097         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
5098         consist of word_mode elements.
5099         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
5100         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
5101         (build_unary_op): Allow vector types for BIT_NOT_EPR.
5102         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
5103         CONST_VECTOR.
5104         * optabs.c (expand_vector_binop): Try to perform operation in
5105         smaller vector modes with same inner size.  Add handling of AND, IOR
5106         and XOR.  Reject expansion to inner-mode sized scalars when using
5107         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
5108         (expand_vector_unop): Try to perform operation in smaller vector
5109         modes with same inner size.  Add handling of one's complement.
5110         When there is no vector negate operation, try a vector subtract
5111         operation.  Use simplify_gen_subreg on constants.
5112         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
5113         constants into smaller vectors with same inner mode, and to
5114         integer CONST_DOUBLEs.
5115
5116 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5117
5118         * c-parse.in (parsing_iso_function_signature): New variable.
5119         (extdef_1): New, copied from...
5120         (extdef): ... here.  Reset parsing_iso_function_signature.
5121         (old_style_parm_decls):  Reset parsing_iso_function_signature.
5122         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
5123         Warn about ISO C style function definitions.
5124         (nested_function, notype_nested_function): Reset
5125         parsing_iso_function_signature.
5126         (parmlist_2): Set parsing_iso_function_signature.
5127
5128         * doc/invoke.texi (-Wtraditional): Document new behavior.
5129
5130 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
5131
5132         * config.gcc (mips*el-*-*): Use tm_defines to set
5133         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
5134         * config/mips/little.h: Remove.
5135
5136 2002-07-02 Devang Patel <dpatel@apple.com>
5137
5138         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
5139         object as parameter. Prevent something like 'NSObject' to be
5140         used as the type for a method argument.
5141
5142 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
5143
5144         * cpptrad.c: Update comment.
5145
5146 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
5147
5148         * doc/cpp.texi: Update for traditional preprocessing changes.
5149         * goc/cppopts.texi: Similarly.
5150
5151 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
5152
5153         * c-parse.in (designator): Enable designated initializers if ObjC.
5154         (objcmessageexpr): Remove references to objc_receiver_context.
5155         * objc/objc-act.h (objc_receiver_context): Remove decl.
5156         * objc/objc-act.c (objc_receiver_context): Remove.
5157         (lookup_objc_ivar): Test objc_method_context instead of
5158         objc_receiver_context.
5159
5160 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
5161
5162         * sh.c (print_operand, case 'N'): Allow zero vector.
5163         (arith_reg_or_0_operand): Likewise.
5164         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
5165         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
5166         IOR, XOR, PLUS and SET and take their respective constant
5167         ranges into account.
5168         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
5169         * sh.md (subdi3, subdi3_media): Allow zero operand.
5170         (movv8qi_i+3): Only vector that is not split is the zero vector.
5171         Fix operand 3 to simplify_subreg.
5172         (movv2si_i): Split alternative 1.
5173         (mshfhi_l_di_rev+1): New splitter.
5174
5175 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
5176
5177         PR preprocessor/7029
5178         * cppinit.c (cpp_handle_option):  Suppress warnings with an
5179         implicit "-w" for "-M" and "-MM".
5180         * doc/cppopts.texi: Update.
5181
5182 2002-07-01  Roger Sayle  <roger@eyesopen.com>
5183
5184         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
5185         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
5186         builtin_function.
5187
5188 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
5189
5190         * README.Portability: Fix typos.
5191
5192 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
5193
5194         PR target/7177
5195         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
5196         of indirections for register inside sign-extended mem part.
5197
5198 2002-07-01  Roger Sayle  <roger@eyesopen.com>
5199
5200         * tree.h:  Modify builtin_function interface to take an extra
5201         argument ATTRS, which is a tree representing an attribute list.
5202
5203         * c-decl.c (builtin_function): Accept additional parameter.
5204         * objc/objc-act.c (builtin_function): Likewise.
5205         * f/com.c (builtin_function): Likewise.
5206         * java/decl.c (builtin_function): Likewise.
5207         * ada/utils.c (builtin_function): Likewise.
5208         * cp/decl.c (builtin_function): Likewise.
5209         (builtin_function_1): Likewise.
5210
5211         * c-common.c (c_common_nodes_and_builtins): Pass an additional
5212         NULL_TREE argument to builtin_function.  (builtin_function_2):
5213         Likewise.
5214         * cp/call.c (build_java_interface_fn_ref): Likewise.
5215         * objc/objc-act.c (synth_module_prologue): Likewise.
5216         * java/decl.c (java_init_decl_processing): Likewise.
5217         * f/com.c (ffe_com_init_0): Likewise.
5218
5219         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
5220         NULL_TREE argument to builtin_function.
5221         * config/arm/arm.c (def_builtin): Likewise.
5222         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
5223         * config/i386/i386.c (def_builtin): Likewise.
5224         * config/ia64/ia64.c (def_builtin): Likewise.
5225         * config/rs6000/rs6000.c (def_builtin): Likewise.
5226
5227 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
5228
5229         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
5230         * config/mips/t-isa3264: Likewise.
5231         * config/mmix/t-mmix: Likewise.
5232
5233 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5234
5235         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
5236
5237 2002-07-01  Roger Sayle  <roger@eyesopen.com>
5238
5239         PR opt/4046
5240         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
5241         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
5242         B are truth values.
5243
5244 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
5245
5246         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
5247
5248 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
5249
5250         * README.Portability (Function prototypes): Give an example of
5251         declaring and defining a function with no arguments.
5252
5253         * README.Portability (Function prototypes): Document new
5254         variable-argument function macros.
5255
5256 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
5257
5258         * sh.c (langhooks.h): Include.
5259         (sh_init_builtins, sh_media_init_builtins): New functions.
5260         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
5261         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
5262         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
5263         (builtin_description): New struct tag.
5264         (signature_args, bdesc): New arrays.
5265         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
5266         (print_operand): Add 'N' modifier.
5267         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
5268         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
5269         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
5270         (CONST_COSTS): Add special case for SHmedia AND.
5271         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
5272         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
5273         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
5274         target_operand can also be const or unspec.
5275         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
5276         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
5277         (attribute type): Add new types.
5278         (anddi3): Add splitter.
5279         (movdi_const_16bit+1): Add code to handle vector constants and
5280         bitmasks efficiently.
5281         (shori_media): Have generator function made.
5282         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
5283         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
5284         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
5285         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
5286         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
5287         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
5288         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
5289         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
5290         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
5291         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
5292         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
5293         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
5294         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
5295         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
5296         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
5297         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
5298         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
5299         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
5300         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
5301         (ftrv): Likewise.
5302
5303         (fpu_switch+1, fpu_switch+2): Remove constraint.
5304
5305 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
5306
5307         * tree.c (build_function_type_list): Update function comment.
5308         Rename first argument to return_type.
5309
5310 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
5311
5312         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
5313         tradcif.y and related files.
5314
5315 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
5316
5317         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
5318
5319 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5320
5321         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
5322
5323 2002-06-30  Devang Patel  <dpatel@apple.com>
5324
5325         * objc/objc-act.c (finish_file): Avoid finish_objc() if
5326         -fsyntax-only.
5327
5328 Fri Jun 28 17:22:37 2002  Denis Chertykov  <denisc@overta.ru>
5329                           Frank Ch. Eigler  <fche@redhat.com>
5330                           Matthew Green  <mrg@redhat.com>
5331                           Richard Henderson <rtl@redhat.com>
5332                           Dave Hudson  <dave.hudson@ubicom.com>
5333                           Jeff Johnston  <jjohnstn@redhat.com>
5334                           Alan Lehotsky <apl@alum.mit.edu>
5335                           Bernd Schmidt  <bernds@redhat.com>
5336                           Graham Stott  <grahams@redhat.com>
5337
5338         * doc/extend.texi: Add ip2k port to description of attribute
5339         naked.
5340         * doc/install.texi (Specific): Add ip2k description.
5341         * doc/install-old.texi (Configurations): Add ip2k to possible
5342         cpu types.
5343         * doc/md.texi: Document ip2k constraints.
5344         * config/ip2k/crt0.S: New file.
5345         * config/ip2k/ip2k-protos.h: New file.
5346         * config/ip2k/ip2k.c: New file.
5347         * config/ip2k/ip2k.h: New file.
5348         * config/ip2k/ip2k.md: New file.
5349         * config/ip2k/libgcc.S: New file.
5350         * config/ip2k/t-ip2k: New file.
5351
5352 2002-06-30  Hans-Peter Nilsson  <hp@bitrange.com>
5353
5354         * config/mmix/mmix.md ("return"): New pattern.
5355         * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
5356         (TARGET_USE_RETURN_INSN): New macros.
5357         (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
5358         (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
5359         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
5360         (MMIX_POP_ARGUMENT): New macro.
5361         (mmix_target_asm_function_prologue): When no epilogue is executed,
5362         just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
5363         (mmix_print_operand) <case '.'>: New case.
5364         (mmix_print_operand_punct_valid_p): Match '.'.
5365         (mmix_use_simple_return): New function.
5366         * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
5367         * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
5368         -msingle-exit, -mno-single-exit.
5369         (MMIX Options): Ditto.
5370
5371 2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
5372
5373         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
5374
5375 2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5376
5377         * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
5378
5379 2002-06-30  Alan Modra  <amodra@bigpond.net.au>
5380
5381         * unroll.c (loop_iterations): Handle EQ loops.
5382
5383 2002-06-29  David Edelsohn  <edelsohn@gnu.org>
5384
5385         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
5386         constraint in define_expand, not splitter.
5387         Formatting.
5388
5389 2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
5390
5391         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
5392         build_function_type_list instead of build_function_type.
5393
5394         * config/ia64/ia64.c (ia64_init_builtins): Same.
5395
5396         * config/alpha/alpha.c (alpha_init_builtins): Same.
5397
5398         * config/rs6000/rs6000.c (altivec_init_builtins): Same.
5399
5400         * config/arm/arm.c (arm_init_builtins): Same.
5401
5402         * tree.h: Add build_function_type_list prototype.
5403
5404         * tree.c (build_function_type_list): New.
5405
5406 2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5407
5408         * collect2.c (scan_prog_file): Fix typo in message.
5409
5410 2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
5411
5412         * fold-cont.c: Remove unused CHARMASK.
5413
5414 2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
5415
5416         PR preprocessor/7150
5417         * cppmain.c (scan_translation_unit_trad): Simplify.
5418         * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
5419
5420 2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5421
5422         * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
5423         Don't use CPP_PREDEFINES.
5424         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
5425         Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
5426         * config/i386/djgpp.h, config/i386/i386-coff.h,
5427         config/i386/i386-interix.h, config/i386/i386-interix3.h,
5428         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
5429         config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
5430         config/i386/uwin.h: Similarly.
5431
5432 2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5433
5434         * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
5435         flag_inline_trees to enable inlining.
5436
5437 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
5438
5439         * configure.in (gcc_gxx_include_dir):  Change to match versioned
5440         C++ headers if --enable-version-specific-runtime-libs is used.
5441         * configure:  Regenerate.
5442
5443 2002-06-28  Jan Hubicka  <jh@suse.cz>
5444
5445         * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
5446
5447 2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
5448
5449         * combine.c (combine_simplify_rtx): Pass the mode of the
5450         shift count, not the shift operation when trying to simplify
5451         a shift on a SHIFT_COUNT_TRUNCATED target.
5452
5453 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
5454
5455         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
5456         avoid the auto increment addressing modes.
5457         ("*subsi3"): Likewise.
5458         (split for add/sub on address): For 68HC12 push the value on
5459         the stack and do the operation with a pop.
5460
5461 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
5462
5463         * cpplib.c (_cpp_handle_directive): Move #define-specific
5464         code to the #define handler...
5465         (do_define): ...here.
5466         (lex_macro_node): No longer a need to check for comments here.
5467
5468 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
5469
5470         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
5471         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
5472         Declare.
5473         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
5474         do not reorder basic blocks at the end when optimizing for size.
5475
5476 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
5477
5478         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
5479         (m68hc11_make_autoinc_notes): New function.
5480         (m68hc11_split_move): Be very cautious when spliting a move with
5481         auto increment/decrement modes because this may result in incompatible
5482         directions; add REG_INC notes to the resulting insn for CSE reg.
5483
5484 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
5485
5486         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
5487         can be a valid address.
5488
5489 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
5490
5491         * config/rs6000/rs6000.c: Remove unusued variables from last
5492         patch.
5493
5494 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
5495
5496         Revert:
5497         * config/rs6000/rs6000.c (rs6000_override_options): Move
5498         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
5499
5500 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
5501
5502         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
5503         lvx/stv/dst builtins...
5504         (altivec_expand_ld_builtin): ...to here.
5505         (altivec_expand_st_builtin): ...here.
5506         (altivec_expand_dst_builtin): ...and here (respectively).
5507
5508 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
5509
5510         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
5511
5512 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
5513
5514         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
5515         subregs.
5516         * recog.c (general_operand, register_operand): Disallow them.
5517
5518 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
5519
5520         PR preprocessor/7138
5521         * cpplib.c (_cpp_handle_directive): Do traditional
5522         preparation after setting state.angled_headers.
5523         * cpptrad.c (scan_out_logical_line): Fix potential
5524         quote bug.
5525
5526 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
5527
5528         * config/rs6000/rs6000.c (rs6000_override_options): Move
5529         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
5530
5531 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
5532
5533         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
5534         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
5535         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
5536
5537 2002-06-27  Roger Sayle  <roger@eyesopen.com>
5538
5539         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
5540         * config/stormy16/stormy16.h: Likewise.
5541
5542         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
5543         with #define.
5544
5545 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5546
5547         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
5548         Hitachi entry.  Make punctuation more consistent.
5549
5550 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
5551
5552         * doc/install.texi: Change ` bit' to `-bit'.
5553         * doc/md.texi: Change `-bits' to `-bit'.
5554         * doc/tm.texi: Change `-bits' to ` bits'.
5555
5556 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
5557
5558         * gcse.c (hoist_code): Rewrite to only get list of dominated
5559         blocks once per BB. Also fix reversed test (by removing need for
5560         the test at all).
5561
5562 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
5563
5564         * cpphash.h (_cpp_set_trad_context): Remove.
5565         * cpplib.c (prepare_directive_trad): Do nothing for #define.
5566         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
5567         * cpptrad.c: Update comments.
5568         (_cpp_read_logical_line_trad): Let scan_logical_line handle
5569         updating the current context.
5570         (scan_logical_line): Update the current context.
5571         (_cpp_create_trad_definition): Similarly.
5572         (_cpp_set_trad_context): Remove.
5573
5574 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
5575
5576         PR preprocessor/7070
5577         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
5578
5579 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
5580
5581         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
5582         config/xtensa/xtensa.c (xtensa_return_addr): New function.
5583         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
5584         config/xtensa/xtensa.md (fix_return_addr): New pattern.
5585
5586 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5587
5588         * mips.c (coprocessor_operand, coprocessor2_operand,
5589         symbolic_operand): Move prototypes from here...
5590         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
5591         symbolic_operand): ...to here.
5592
5593 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
5594
5595         * config/sh/crt1.asm: remove _stack label definition
5596         and sentinel value.
5597
5598 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5599
5600         * varasm.c: Include real.h before output.h.
5601
5602 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
5603
5604         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
5605         check for TARGET_ALTIVEC.
5606
5607 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
5608
5609         * config.gcc (vax-*-vms*): Make obselete.
5610
5611 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5612
5613         * gcc.c (warn_std): Delete.
5614
5615 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
5616
5617         * doc/extend.texi: Fix formatting of last checkin.
5618
5619 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5620
5621         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
5622         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
5623
5624 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
5625
5626         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5627         discrepancies from motorola's documentation.
5628
5629 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
5630
5631         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
5632         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
5633
5634         * config/sh/lib1funcs.asm (udivdi3): Make first divide step
5635         produce a 32 bit result before normalization, then normalize with a
5636         left shift.  Compute approximative error of 2nd reciprocal
5637         approximation in 2's complement.  Fix mask generation from upper
5638         longword of second divide stage result.
5639         For large divisor, fix shift count used to truncate first stage
5640         divide result; make decision if to adjust upwards based on comparison
5641         of higher parts of normalized values.
5642         (udivdi): Likewise.  Undo normalization of result for large divisor
5643         case.
5644
5645 2002-06-25  David S. Miller  <davem@redhat.com>
5646
5647         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
5648
5649 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
5650
5651         * cpplib.c (do_include_common): Revert to correct line number
5652         if -traditional.
5653         * cpptrad.c (scan_out_logical_line): Treat null directive as
5654         white space.  Invlidate MI optimization for non-whitespace
5655         text outside a directive.
5656
5657 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5658
5659         * Makefile.in (SHELL): Set to @SHELL@.
5660         * fixinc/Makefile.in (SHELL): Likewise.
5661
5662         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
5663         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
5664         initialization.
5665
5666 2002-06-24  Jeff Law <law@redhat.com>
5667
5668         * flow.c (propagate_one_insn): When removing an insn
5669         with a REG_LIBCALL note but not the entire libcall sequence,
5670         delete the associated REG_RETVAL note.
5671
5672 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
5673
5674         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
5675         (udivsi3): Likewise.  Rewrite SH1 implementation.
5676         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
5677         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
5678         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
5679         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
5680         (_moddi3): Likewise.
5681
5682         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
5683
5684         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
5685         arguments into account for stack_regs.
5686
5687 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
5688
5689         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
5690         in examples.
5691
5692 2002-06-24  Art Haas  <ahaas@neosoft.com>
5693
5694         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
5695         * doc/tm.texi (Frame Layout): Likewise.
5696
5697 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
5698
5699         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
5700         Set float_format to i128.
5701
5702 2002-06-24  David S. Miller  <davem@redhat.com>
5703
5704         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
5705         32-bit ABI libfuncs to NULL.
5706
5707         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
5708         strings instead of quoted strings for code blocks.
5709
5710         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
5711         optabs if op1 is const0_rtx.
5712
5713         * Makefile.in (GTFILES): Add basic-block.h
5714         * basic-block.h (label_value_list, tail_recursion_label_list):
5715         Mark with GTY.
5716
5717 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
5718
5719         * cpptrad.c (scan_out_logical_line): Check recursing only when
5720         we know we have a macro invocation in the function-like case.
5721         Only call _cpp_handle_directive if we know we have a good
5722         directive, or we want to reject a bad directive.
5723
5724 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
5725
5726         * doloop.c (doloop_valid_p): Correct comment.
5727         (doloop_modify_runtime <abs_inc != 1>): Simplify.
5728         (doloop_modify_runtime <do-while>): Don't emit code when NE.
5729
5730 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
5731
5732         * config.gcc: Add support for ip2k.
5733
5734 2002-06-23  Jan Hubicka  <jh@suse.cz>
5735             Jeff Law <law@redhat.com>
5736
5737         * function.h (struct emit_status): Clarify potential contents
5738         of regno_reg_rtx array.
5739         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
5740         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
5741
5742         * reg-stack.c (convert_regs_exit): Push the registers to stack in
5743         proper order.
5744
5745 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
5746
5747         PR middle-end/6963
5748         * function.c (assign_stack_temp_for_type): Do not return
5749         the same MEM rtx for multiple uses of a stack slot.
5750
5751 2002-06-22  David S. Miller  <davem@redhat.com>
5752
5753         PR target/6841 target/6770 target/6719
5754         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
5755         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
5756         GENERAL_OR_EXTRA_FP_REGS.
5757
5758 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
5759
5760         * cpptrad.c (struct fun_macro): Add line number.
5761         (scan_out_logical_line): Set it, and use it to report unterminated
5762         macro invocations.
5763
5764 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5765
5766         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
5767         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
5768         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
5769         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
5770         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
5771         REGEXP_ONEOF, check_name): Const-ify.
5772
5773 2002-06-21  Matt Thomas  <matt@3am-software.com>
5774
5775         * config/vax/vax.c (vax_output_function_prologue): Use
5776         REGISTER_PREFIX.  Fix some indentation.
5777         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
5778         (VAX_ISTREAM_SYNC): Define.
5779         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
5780         i-stream sync to the end.
5781         (REGISTER_PREFIX): Define as "".
5782         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
5783
5784 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
5785
5786         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
5787         configurations.
5788
5789 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5790
5791         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
5792         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
5793
5794 2002-06-21  Matt Thomas  <matt@3am-software.com>
5795
5796         * config/vax/netbsd.h: Adjust a comment.
5797         (TARGET_DEFAULT): Redefine as 0.
5798
5799 2002-06-21  Richard Henderson  <rth@redhat.com>
5800
5801         * bb-reorder.c (make_reorder_chain_1): Search harder for the
5802         vax casesi fallthru edge.
5803         * cfglayout.c (cleanup_unconditional_jumps): Use
5804         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
5805         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
5806         block after ADDR_VEC.
5807
5808 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5809
5810         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
5811
5812 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
5813
5814         * cpperror.c (cpp_error): For traditional CPP, default to
5815         diagnostics on pfile->line.
5816         * cpplib.c (prepare_directive_trad): Set line number for
5817         diagnostics for #define too.
5818         * cpptrad.c (skip_whitespace): Skip comments properly.
5819         (_cpp_expansions_different_trad): Initialize quote2.
5820
5821 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
5822
5823         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
5824         * config/mmix/mmix.h: Ditto.
5825         * config/mmix/mmix-protos.h: Ditto.
5826         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
5827         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
5828         comment.  Comment extra CC modes.
5829
5830 2002-06-20 Jan Hubicka  <jh@suse.cz>
5831
5832         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
5833         (scope_to_insns_finalize): Do not call set_block_levels; handle
5834         sequences.
5835         (choose_inner_scope): New.
5836         * rtl.h (choose_inner_scope): Declare.
5837
5838 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5839
5840         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
5841         HOST_WIDE_INT.
5842         * pa.c (pa_asm_output_mi_thunk): Likewise.
5843         (n_deferred_plabels): Change type to size_t.
5844         (output_deferred_plabels, output_call): Use size_t instead of int.
5845
5846 2002-06-20  Richard Henderson  <rth@redhat.com>
5847
5848         PR target/4041
5849         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
5850         pattern and adjust constraints for coldfire.
5851
5852 2002-06-20  Richard Henderson  <rth@redhat.com>
5853
5854         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
5855
5856 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
5857
5858         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
5859
5860 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
5861
5862         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
5863
5864 2002-06-20  Stan Shebs  <shebs@apple.com>
5865
5866         * dominance.c: Include errors.h instead of error.h.
5867
5868 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
5869
5870         * cppexp.c (cpp_interpret_integer): Don't force traditional
5871         numbers to be unsigned.
5872         * cpplib.c (prepare_directive_trad): Set line number for
5873         diagnostics.
5874         * cpptrad.c (scan_out_logical_line): Continue scanning out
5875         at start of buffer.
5876         * gcc.c (trad_capable_cpp): Use cc1 always.
5877
5878 2002-06-20  Jeffrey Law  <law@redhat.com>
5879
5880         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
5881         elimination in leaf functions by default yet.
5882
5883 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
5884
5885         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
5886
5887 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5888
5889         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
5890         multilibs.
5891         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
5892         Fixes PR other/6836.
5893
5894 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
5895                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
5896
5897         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
5898
5899         * basic-block.h: Do not include et-forest.h
5900         (dominance_info): Declare as struct dominance-info.
5901         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
5902         deleting block.
5903         * dominance.c (struct dominance_info): Define.
5904         (BB_NODE, SET_BB_NODE): New macros.
5905         (bb_hash_func, bb_eq_func): Kill.
5906         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
5907         nearest_common_dominator, dominated_by_p, recount_dominator,
5908         add_to_dominance_info, delete_from_dominance_info): update for new
5909         representation.
5910         (get_dominated_by, redirect_immediate_dominators): Rewrite using
5911         enumerate_sons.
5912         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
5913         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
5914         structure.
5915
5916         * et-forest.h: Update copyright; revamp all function to operate on
5917         nodes
5918         (et_forest_value): Kill.
5919         (et_forest_enumerate_sons, et_forest_node_value): New.
5920         * et-forest.c: Update copyright.
5921         * et-forest.h: Update copyright; revamp all function to operate on
5922         nodes
5923         (et_forest_value): Kill.
5924         (et_forest_enumerate_sons, et_forest_node_value): New.
5925
5926         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
5927
5928         * basic-block.h: Inlude et-forest.h
5929         (basic_block_def): Kill dominator.
5930         (dominance_info): New type.
5931         (loops): Use dominace_info.
5932         (dominace handling functions): Take dominace_info as argument
5933         instead of bitmaps.
5934         (create_preheader): Likewise.
5935         * cfg.c (entry_exit_blocks): Kill dominator.
5936         (dump_flow_info): Do not dump dominators.
5937         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
5938         dominators.
5939         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
5940         (flow_loops_pre_header_scan, make_forwarder_block,
5941         canonicale_loop_headers, flow_loops_find): Likewise.
5942         * dominance.c: Include error.h
5943         (idoms_to_doms): Kill.
5944         (bb_hash_func, bb_eq_func): New static functions.
5945         (debug_dominace_info): New global function.
5946         (calculate_dominance_info): Use new et forest structure.
5947         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
5948         get_dominated_by, redirect_immediate_dominators,
5949         nearest_common_dominator, dominated_by_p, verify_dominators,
5950         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
5951         delete_from_dominance_info): New global functions.
5952         * gcse.c (domnators): CHange to dominance_info.
5953         (alloc_hoist_mem): Do not alloc dominators
5954         (free_code_hoist_mem): Use free_dominance_info.
5955         (compute_code_hoist_data): Use dominance_info.
5956         (hoist_code): Likewise.
5957         * ifcvt.c (post_dominators): Likewise.
5958         (find_if_case_2, if_convert): Likewise.
5959         * predict.c (process_note_predictions, process_note_prediction,
5960         estimate-probability): Likewise.
5961         * sched-rgn.c (find_rgns, init_regions): Likewise.
5962         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
5963         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
5964         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
5965         find_evaluations, convert_to_ssa): Likewise.
5966         * ssa.h (compute_dominance_frontiers): Likewise.
5967
5968         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
5969
5970         * Makefile.in (et-forest.c): Add.
5971         * et-forest.c: New file.
5972         * at-forest.h: New file.
5973
5974 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5975
5976         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
5977         array size calculation.
5978         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
5979         Likewise.
5980
5981         * diagnostic.c (diagnostic_kind_text): Const-ify.
5982         * gengtype.c (lang_names): Likewise.
5983
5984 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
5985
5986         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
5987
5988 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5989
5990         * config/sol2.h: New file.
5991         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
5992         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
5993         (sparc-*-chorusos*): Likewise.
5994         (sparc-*-elf*): Likewise.
5995         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
5996         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
5997         (sparc-hal-solaris2*): Likewise.
5998         (sparc-*-solaris2*): Likewise.
5999         (sparclite-*-elf*): Likewise.
6000         (sparc86x-*-elf*): Likewise.
6001         (sparc64-*-elf*): Likewise.
6002
6003         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
6004         config/sol2.h.
6005         (ASM_SPEC): Override config/sol2.h version for now.
6006         Removed obsolete GAS_REJECTS_MINUS_S variant.
6007         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
6008         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
6009         (TARGET_OS_CPP_BUILTINS): Likewise.
6010         Assert system=unix.
6011         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
6012         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
6013         config/sol2.h.
6014         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
6015         (ASM_CPU_SPEC): Define.
6016         (SUBTARGET_EXTRA_SPECS): Define.
6017
6018         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
6019         in config/sparc/sol2.h.
6020         (ASM_SPEC): Moved to config/sol2.h.
6021         (CPP_CPU_SPEC): Simplified.
6022         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
6023         consistency.
6024         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
6025         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
6026         STARTFILE_ARCH64_SPEC.
6027         (STARTFILE_SPEC): Moved to config/sol2.h
6028         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
6029         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
6030         (LINK_ARCH64_SPEC): Simplified.
6031         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
6032         (LINK_SPEC): Moved to config/sol2.h
6033
6034         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
6035         config/sol2.h.
6036         Use BITS_PER_WORD for size.
6037         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
6038         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
6039         (CPP_PREDEFINES): Removed OS-specific part handled by
6040         TARGET_OS_CPP_BUILTINS.
6041         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
6042         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
6043         (ASM_SPEC): Moved to config/sol2.h.
6044         (PREFERRED_DEBUGGING_TYPE): Likewise.
6045         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
6046         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
6047         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
6048         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
6049
6050         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
6051         * config/i386/sol2gas.h: Removed.
6052
6053 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
6054
6055         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
6056
6057 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
6058
6059         * gcc.c-torture/execute/simd-1.c: New.
6060
6061         * gcc.dg/simd-1.c: New.
6062
6063         * doc/extend.texi (Vector Extensions): Document that we can
6064         specify simd types not specifically supported by the hardware.
6065         Document that simd types can be used as function arguments.
6066         Document that signness does make a difference in SIMD types.
6067         Misc cleanups and revisions to the vector extensions section.
6068
6069         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
6070         constants.
6071
6072         * expr.c (vector_mode_valid_p): New.
6073
6074         * expr.h: Add vector_mode_valid_p.
6075
6076         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
6077
6078         * c-common.c (type_for_mode): Always build vector nodes regardless
6079         of VECTOR_MODE_SUPPORTED_P.
6080         (handle_mode_attribute): Error if we can't emulate a nonexisting
6081         vector mode.
6082         (handle_vector_size_attribute): Same.
6083
6084         * optabs.c (expand_binop): Open-code vector operations.
6085         (expand_unop): Open-code vector unops.
6086         (expand_vector_binop): New.
6087         (expand_vector_unop): New.
6088
6089         * c-typeck.c (build_binary_op): Allow vectors in binops.
6090         Allow vectors in conditional operatiors.
6091         (build_unary_op): Allow vectors in unary minus.
6092
6093         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
6094         TARGET_ALTIVEC.
6095
6096 2002-05-20  Richard Henderson  <rth@redhat.com>
6097
6098         * c-common.c (c_common_get_alias_set): Correctly handle characters.
6099         Rearrange order of expressions; don't handle vectors here.
6100         * alias.c (get_alias_set): Let vectors match their components.
6101
6102 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
6103
6104         * config/mips/mips.c (mips_emit_prefetch): Use hints which
6105         match desired locality.
6106
6107 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
6108
6109         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
6110         (h8300_insert_attributes): New.
6111
6112 2002-06-19  Akim Demaille  <akim@epita.fr>
6113
6114         * c-parse.in (initelt: identifier ':' initval): Add an empty
6115         action to fix a type clash.
6116         (aliasdecl, classdef): Add the missing closing `;'.
6117         Whitespace changes.
6118         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
6119         $$ = $1 type clashes.
6120
6121 2002-06-19  Eric Christopher  <echristo@redhat.com>
6122
6123         * config/mips/mips.c (symbol_operand): New function.
6124         (mips_emit_prefetch): Ditto.
6125         * config/mips/mips-protos.h: Define.
6126         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
6127         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
6128         (LEGITIMIZE_ADDRESS): Ditto.
6129         * config/mips/mips.md (prefetch, prefetch_si_address,
6130         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
6131
6132 2002-06-19  Eric Christopher  <echristo@redhat.com>
6133
6134         * config/fp-bit.h: Add unordered defines for gofast.
6135
6136 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
6137
6138         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
6139         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
6140         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
6141         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
6142         checking and without it.
6143         (decl_name, decl_mode_check_failed, regexp_name,
6144         regexp_mode_check_failed): New functions.
6145         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
6146         gen_presence_set, gen_absence_set, gen_automaton,
6147         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
6148         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
6149         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
6150         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
6151         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
6152         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
6153         (decl_hash, decl_eq_p): Use the macros.
6154         (find_decl): Ditto.  Set up mode of work_decl.
6155         (process_excls, process_presence_absence, process_decls,
6156         check_automaton_usage, process_regexp, process_regexp_decls,
6157         check_usage, loop_in_regexp, check_loops_in_regexps,
6158         process_regexp_cycles, add_advance_cycle_insn_decl,
6159         initiate_states, initiate_excl_sets,
6160         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
6161         transform_2): Use the macros.
6162         (transform_3): Ditto.  Check mode before making transformations of
6163         ALLOF.
6164         (regexp_transform_func, transform_insn_regexps,
6165         process_unit_to_form_the_same_automaton_unit_lists,
6166         form_the_same_automaton_unit_lists_from_regexp,
6167         form_the_same_automaton_unit_lists,
6168         process_seq_for_forming_states, process_alts_for_forming_states,
6169         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
6170         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
6171         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
6172         units_to_automata_heuristic_distr, create_ainsns,
6173         units_to_automata_distr, create_automata): Use the macros.
6174         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
6175         (longest_path_length, min_issue_delay_pass_states,
6176         output_dead_lock_vect, output_tables, output_insn_code_cases,
6177         output_internal_insn_latency_func, output_print_reservation_func,
6178         output_description, output_automaton_units, generate): Use the
6179         macros.
6180         (make_insn_alts_attr): Ditto.  Check case when there are not
6181         alternatives in the reservation.
6182         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
6183         make_bypass_attr, form_important_insn_automata_lists,
6184         expand_automata): Use the macros.
6185
6186 2002-06-20  Tim Josling  <tej@melbpc.org.au>
6187
6188         * Makefile.in: Clean up code to check for misspecified languages
6189         in enable-languages.
6190
6191 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
6192
6193         * cpptrad.c (_cpp_replacement_text_len): initialize len.
6194
6195 2002-06-19  Jason Merrill  <jason@redhat.com>
6196
6197         * Makefile.in (unstrap, restrap): New targets.
6198         (bootstrap): Mention restrap.
6199
6200 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
6201
6202         * except.c (ehl_free): Remove.
6203
6204         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
6205         builtin_define and builtin_define_std.
6206
6207 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
6208
6209         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
6210         (sCOND): Restrict operand class so that gcc knows how to reload them.
6211         (bitfield_set): Merge two unnamed insn's using alternatives.
6212         (call_value): Remove constraint on unused uperand.
6213         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
6214         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
6215
6216         * longlong.h (count_trailing_zeros): Escape newline and beautify.
6217
6218 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
6219
6220         * Makefile.in (QMTEST_DIR): Simplify definition.
6221
6222 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
6223
6224         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
6225         #define.
6226
6227 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
6228
6229         * cpphash.h (struct cpp_reader): Make date and time strings.
6230         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
6231         _cpp_replacement_text_len): New.
6232         * cppinit.c (cpp_create_reader): Update.
6233         (init_builtins): Register appropriate builtins for -traditional-cpp.
6234         * cppmacro.c (new_number_token): Remove.
6235         (_cpp_builtin_macro_text): New.
6236         (builtin_macro): Use it.
6237         (cpp_macro_definition): Update to handle traditional macros.
6238         * cppmain.c (cb_line_change): Don't do column positioning for
6239         traditional output.
6240         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
6241         state ls_fun_close.
6242         (skip_whitespace): Fix.
6243         (maybe_start_funlike): Don't set state.parsing_args.
6244         (scan_out_logical_line): Remove duplicate error.  Use lex_state
6245         rather than state.parsing_args.
6246         (push_replacement_text): Handle builtins.
6247         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
6248
6249 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
6250             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6251
6252         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
6253         attribute __always_inline__.
6254
6255 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
6256
6257         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
6258         when generating the call to _mcount.
6259         (NO_PROFILE_COUNTERS): Define.
6260
6261 2002-06-18  Richard Henderson  <rth@redhat.com>
6262
6263         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
6264         2002-06-02 change.
6265
6266 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
6267
6268         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
6269         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
6270         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
6271         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
6272
6273         * sh-protos.h (sh_pr_interrupt): Declare.
6274         * sh.c (sh_pr_interrupt): New function.
6275         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
6276         (sh_hard_regno_rename_ok): Likewise.
6277         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
6278
6279 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
6280
6281         * rtl.def (DEFINE_AUTOMATON): Add description of new options
6282         `time' and `v'.  Fix incorrect description of option `w'.
6283
6284         * doc/md.texi: Ditto.
6285
6286         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
6287         (gen_automata_option): Process the new options.
6288         (transform_2, transform_3): Initialize some variables.
6289         (initiate_automaton_gen): Use the new macros.
6290
6291 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
6292
6293         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
6294         (mips_set_return_address, mips_restore_gp): Declare.
6295         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
6296         (current_frame_info): Remove.
6297         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
6298         * config/mips/mips.c: Remove uses of current_frame_info.
6299         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
6300         (struct machine_function): Add 'frame' and 'insns_len'.
6301         (current_frame_info, zero_frame_info): Remove.
6302         (mips_restore_gp, mips_set_return_address): New.
6303         (mips_initial_elimination_offset): New.
6304         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
6305         (eh_return define_split): Use mips_set_return_address.
6306
6307 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6308
6309         * cpplib.c (dtable): Update.
6310         (end_directive): Decrement expansion prevention count.
6311         Clear state.in_expression.
6312         (prepare_directive_trad): Set state.in_expression.
6313         Increment expansion prevention count.
6314         * cpptrad.c (enum ls): New.
6315         (_cpp_overlay_buffer): Set overlaid_buffer.
6316         (_cpp_remove_overlay): Use overlaid_buffer.
6317         (_cpp_read_logcial_line_trad): Update buffer when it might
6318         have changed.
6319         (scan_out_logical_line): Handle state transitions for assertions
6320         and defined() in #if, and for funlike invocations including the
6321         directive case.  Handle '<' and '>' as a quote mechanism in
6322         #include.  Warn about unterminated macro invocations.
6323         * cpphash.h (struct lexer_state): New member in_expression.
6324         (struct cpp_reader): New member overlaid buffer.
6325
6326 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
6327
6328         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
6329         __always_inline__.
6330
6331 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
6332
6333         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
6334
6335         * doloop.c (doloop_optimize): Extract pattern from insn.
6336
6337 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
6338
6339         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
6340
6341 2002-06-17  Jeff Law <law@redhat.com>
6342
6343         * libgcc2.c: Do not include symcat.h or machmode.h.
6344
6345 2002-06-17  Richard Henderson  <rth@redhat.com>
6346
6347         PR target/6922
6348         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
6349
6350 2002-06-17  Tom Tromey  <tromey@redhat.com>
6351
6352         * dwarfout.c: Include function.h.
6353
6354 2002-06-17  Andreas Schwab  <schwab@suse.de>
6355
6356         * print-rtl.c (print_rtx): Print space before vector, not after.
6357         (debug_rtx): Clear sawclose before printing.
6358         (debug_rtx_list): Print newline after each list element.
6359         (debug_rtx_range): Likewise.
6360
6361 2002-06-17  Richard Henderson  <rth@redhat.com>
6362
6363         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
6364         (current_function_funcdef_no): Similarly.
6365         * function.c (funcdef_no): Similarly.
6366         (prepare_function_start): Set current_function_funcdef_no.
6367         (expand_function_start): Don't set current_function_profile_label_no.
6368         * dwarf2out.h (current_funcdef_number): Remove.
6369         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
6370         current_function_funcdef_no throughout.
6371         * dwarfout.c, vmsdbgout.c: Similarly.
6372         * except.c (sjlj_funcdef_number): Remove.
6373         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
6374         (output_function_exception_table): Likewise.
6375         * final.c (profile_function): Use current_function_funcdef_no
6376         instead of current_function_profile_label_no.
6377
6378 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
6379
6380         * sched-ebb.c (init_ready_list): Check INSN_P first.
6381
6382 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
6383
6384         * sh.md (divsi3): Update way how to find insns in a sequence.
6385
6386         * reload1.c (merge_assigned_reloads): Don't change reloads
6387         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
6388         to RELOAD_OTHER when there are conflicting input reloads.
6389
6390 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
6391
6392         * function.c (epilogue_done): Correctly build a sequence of insns for
6393         a sibcall epilogue.
6394
6395 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
6396
6397         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
6398         #define.
6399
6400         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
6401
6402 2002-06-16  Richard Henderson  <rth@redhat.com>
6403
6404         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
6405         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
6406
6407 2002-06-16  Richard Henderson  <rth@redhat.com>
6408
6409         PR opt/6722
6410         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
6411
6412 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
6413
6414         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
6415         * config/i386/i386-aout.h, config/i386/i386elf.h,
6416         config/i386/sysv4.h: Remove CPP_PREDEFINES.
6417         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
6418         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
6419         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
6420         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
6421         CPP_PREDEFINES and part of CPP_SPEC.
6422         * config/i386/sysv4-cpp.h: New.
6423
6424 2002-06-16  Richard Henderson  <rth@redhat.com>
6425
6426         PR c/7030
6427         * dwarf2out.c (modified_type_die): Don't assign the qualified die
6428         to the unqualified type.
6429
6430 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
6431
6432         * i386-protos.h (x86_field_alignment): Declare.
6433         * i386.c (x86_field_alignment): Define.
6434         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
6435         (BIGGEST_FIELD_ALIGNMENT): Kill.
6436
6437 2002-06-16  Richard Henderson  <rth@redhat.com>
6438
6439         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
6440
6441 2002-06-16  Richard Henderson  <rth@redhat.com>
6442
6443         * c-common.c (flag_ms_extensions): Move from c++ front end.
6444         * c-common.h (flag_ms_extensions): Declare.
6445         * c-decl.c (c_decode_option): Add -fms-extensions.
6446         (grokfield): Don't accept anonymous structures in ISO C mode;
6447         accept only unnamed anonymous structures in GNU C mode; accept
6448         Plan 9 extensions in MS mode.
6449         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
6450         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
6451         (extension): Clear flag_iso.
6452         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
6453
6454 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
6455
6456         PR target/7042
6457         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
6458         early if current_function_epilogue_delay_list is non-empty.
6459         * config/cris/cris.md ("return"): Add sanity check asserting that
6460         current_function_epilogue_delay_list is empty.
6461
6462 2002-06-16  Jeff Law <law@redhat.com>
6463
6464         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
6465         sharing of hard registers.
6466
6467         * toplev.c (rest_of_compilation): Remove redundant conditional.
6468
6469         * toplev.c (rest_of_compilation): Perform a simpler, less costly
6470         cleanup of the CFG when not optimizing.
6471
6472 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
6473
6474         * gcc.c (main): Correct startfile_prefix_spec check.
6475
6476 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
6477
6478         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
6479         include both darwin.o and rs6000-c.o.
6480
6481 2002-06-15  Roger Sayle  <roger@eyesopen.com>
6482
6483         * expr.c (compare_from_rtx): Call simplify_relational_operation
6484         on all comparisons, not just those between integer constants,
6485         with the correct (possibly unsigned) comparison code.
6486         (do_compare_rtx_and_jump): Likewise.
6487
6488 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6489
6490         * Makefile.in (tm_defines): New configuration variable.
6491         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
6492         Pass tm_defines in TM_DEFINES.
6493         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
6494         * config.gcc (tm_defines): New configuration variable.
6495         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
6496         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
6497         * configure.in: Substitute tm_defines.
6498         * configure: Rebuilt.
6499         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
6500         * doc/install.texi: Update.
6501         * pa/pa-700.h: Delete file.
6502         * pa/pa-7100.h: Delete file.
6503
6504 2002-06-15  Roger Sayle  <roger@eyesopen.com>
6505
6506         * fold-const.c (comparison_to_compcode): New function to convert
6507         an comparison TREE CODE into a bit-based representation.
6508         (compcode_to_comparison): New function to convert from this bit
6509         based representation back to a comparison TREE CODE.
6510         (fold_truthop): Simplify (x<y) && (x==y) and related composite
6511         comparisons.
6512
6513 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
6514
6515         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
6516
6517         * stor-layout.c (compute_record_mode): Remove check for
6518         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
6519         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
6520         MEMBER_TYPE_FORCES_BLK.
6521
6522         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
6523
6524         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
6525
6526 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
6527
6528         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
6529
6530 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
6531
6532         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
6533         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
6534         * configure, config.in: Regenerate.
6535
6536 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
6537
6538         * loop.c (check_final_value): Use v->always_executed
6539         instead of v->always_computable.
6540         * unroll.c (final_giv_value): Don't calculate the final
6541         value as a function of the biv if the giv is not computed
6542         for every loop iteration.
6543
6544 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
6545
6546         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
6547
6548 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
6549
6550         PR c/6677
6551         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
6552         the truncation down when the target type is signed.
6553         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
6554         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
6555         the conversion if the target type is a smaller type.
6556
6557 2002-06-14  Richard Henderson  <rth@redhat.com>
6558
6559         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
6560         earlier.  Re-factor comparisons vs extrema.
6561
6562 2002-06-14  Richard Henderson  <rth@redhat.com>
6563
6564         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
6565
6566 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6567
6568         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
6569         * sched-deps.c (add_dependence): Likewise.
6570         (group_leader): Likewise.
6571         * sched-rgn.c (init_ready_list): Likewise.
6572         * doc/rtl.texi: Adjust accordingly.
6573
6574 2002-06-13  Jeffrey Law  <law@redhat.com>
6575
6576         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
6577         null pointer checks were eliminated.  Update prototype.
6578         (delete_null_pointer_checks): Similarly.
6579         * rtl.h (delete_null_pointer_checks): Update prototype.
6580         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
6581         delete_null_pointer_checks deletes one or more null
6582         pointer checks.  Do not run cleanup_cfg before gcse, the
6583         CFG is accurate and optimized at that point..
6584
6585         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
6586         of hard registers.
6587
6588 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
6589
6590         * Makefile.in (libgcc.mk): Depend on specs.
6591
6592 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
6593
6594         * sh.md (mulsi3): Update way how to find insns in a sequence.
6595
6596 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
6597
6598         * sh.h: Define HARD_REGNO_RENAME_OK
6599         * sh.c: sh_hard_regno_rename_ok: New. If current function has
6600         interrupt_handler attribute, only registers saved on stack are OK.
6601         * sh-protos.h: Declare sh_hard_regno_rename_ok.
6602
6603 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
6604
6605         * config/sh/sh.md (jump): Emit jump insn.
6606         (call_pcrel): Get pattern of the result of gen_call_site.
6607         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
6608
6609 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6610
6611         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
6612         * cpptrad.c: Update comments.
6613         (skip_whitespace, copy_comment): Take a new parameter.
6614         (skip_escaped_newlines): Don't duplicate escaped newline test.
6615         (copy_comment): Different location for CUR, decide here how
6616         to copy / replace the comment.
6617         (skip_whitespace): Copy whitespace.
6618         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
6619         (scan_out_logical_line): Let copy comment handle keeping or
6620         replacing comments.
6621         (scan_parameters, _cpp_create_trad_definition): Update.
6622
6623 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
6624
6625         * reload.c (get_secondary_mem,find_reloads_address,
6626         find_reloads_address_1): Pass reference to MEM to find_reloads_address
6627         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
6628
6629 2002-06-13  Jessica Han  <jessica@cup.hp.com>
6630
6631         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
6632         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
6633         * doc/tm.texi: Document them.
6634         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
6635         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
6636         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
6637         (ASM_OUTPUT_FDESC): Likewise.
6638
6639 2002-06-13  Eric Christopher  <echristo@redhat.com>
6640
6641         * diagnostic.c (output_format): Fix thinko.
6642
6643 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
6644
6645         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
6646         (DWARF2_UNWIND_INFO): Define to 0.
6647
6648         * config/sh/sh.c (calc_live_regs): Don't use initial_value
6649         optimization for PR_MEDIA_REG.
6650
6651 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6652
6653         * cpphash.h (_cpp_lex_identifier_trad): Remove.
6654         * cpplib.c (end_directive): Don't skip, always remove overlay
6655         apart from #define.
6656         (prepare_directive_trad): Handle NULL pfile->directive.
6657         (_cpp_handle_directive): Always call prepare_directive_trad
6658         if traditional.
6659         * cppmain.c (check_multiline_token): Rename account_for_newlines,
6660         generalize inputs.
6661         (scan_translation_unit_trad): Use it.
6662         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
6663         output, get escaped newline in comment close correct.
6664         (check_output_buffer, skip_whitespace): Update.
6665         (_cpp_lex_identifier_trad): Remove.
6666         (scan_out_logical_line): Handle -C and comments in directives
6667         properly.
6668
6669 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
6670
6671         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
6672         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
6673         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
6674         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
6675         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
6676         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
6677         (SELECT_SH5_COMPACT_NOFPU): Likewise.
6678         (TARGET_SWITCHES): Use them.
6679         (TARGET_CPU_DEFAULT): Define if not already defined.
6680         (TARGET_DEFAULT): Use it.
6681         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
6682         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
6683         * config/sh/t-monolib: New file.
6684
6685 2002-06-13  Roger Sayle  <roger@eyesopen.com>
6686
6687         * toplev.c (rest_of_compilation): Simplify (and correct) the
6688         logic of the first delete-null-pointer-checks pass.
6689
6690 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
6691
6692         * i386.c (ix86_expand_movstr):  Fix pasto.
6693
6694 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
6695
6696         * reload.c (find_valid_class):  Fix thinko in my previous patch.
6697
6698 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
6699
6700         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
6701         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
6702         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
6703         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
6704
6705 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
6706
6707         * tree-inline.c (expand_call_inline): Don' mess with _DECL
6708         fields.
6709
6710 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
6711
6712         * diagnostic.c (output_format): Recognize "%H" as a format
6713         specifier for a location_t.
6714         (text_specifies_location): New function.
6715         (diagnostic_set_info): Use it.
6716
6717 2002-06-13  Jeffrey Law  <law@redhat.com>
6718
6719         * emit-rtl.c (static_regno_reg_rtx): Define.
6720         (init_emit_once): Initialize static_regno_reg_rtx.
6721         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
6722         of building new hard reg objects once per function.
6723         (gen_rtx_REG): Try to share hard regs.
6724         * regclass.c (init_fake_stack_mems): New function broken out from
6725         init_regs.
6726         * rtl.h (init_fake_stack_mems): Declare.
6727         * toplev.c (lang_independent_init): Call init_regs before
6728         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
6729
6730         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
6731
6732         * alias.c (argument_registers): Remove.
6733         (init_alias_once): Initialize static_reg_base_value here.  Remove
6734         initialization of argument_registers.
6735         (init_alias_once_per_function): Remove.
6736         (init_alias_analysis): Copy all the entries from static_reg_base_value
6737         into new_reg_base_value all at once.
6738         * rtl.h (init_alias_once_per_function): Remove declaration.
6739         * function.c (prepare_function_start): Do not call
6740         init_alias_once_per_function.
6741
6742         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
6743         starting a sequence and emitting an INSN.
6744
6745 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
6746
6747         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
6748
6749 2002-06-13  David S. Miller  <davem@redhat.com>
6750
6751         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
6752
6753 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6754
6755         * cpplib.c (end_directive): Handle line skipping.  Only remove
6756         the rest of the line if the directive was valid.
6757         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
6758         expanding a traditional macro.
6759         * cpptrad.c (recursive_macro): New.
6760         (read_logical_line_trad): Handle skipping.
6761         (scan_out_logical_line): Continue after a successful directive.
6762         Don't expand macros whilst skipping, or if recursing.
6763         (_cpp_create_trad_definition): scan_out_logical_line now sets
6764         the output current position.
6765
6766 2002-06-12  Eric Christopher  <echristo@redhat.com>
6767
6768         From Chris Demetriou  <cgd@broadcom.com>
6769         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
6770         comment.
6771         (ISA_HAS_MADD_MSUB): Ditto.
6772         (ISA_HAS_NMADD_NMSUB): Ditto.
6773
6774 2002-06-12  Eric Christopher  <echristo@redhat.com>
6775
6776         * config.gcc: Consolidate little endian handling and
6777         little/big endian targets.
6778         * config/mips/elfl.h: Remove file.
6779         * config/mips/elfl64.h: Ditto.
6780         * config/mips/ecoffl.h: Ditto.
6781         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
6782
6783 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
6784
6785         * gengtype.h (xvasprintf): New prototype.
6786         (xasprintf): New prototype.
6787         (struct outf): New.
6788         (get_output_file): Return an outf_p.
6789         (header_file): Is now an outf_p.
6790         (base_files): Now are outf_p.
6791         (oprintf): New.
6792         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
6793         rather than stdio operations.  Use xasprintf in a few places,
6794         when appropriate.
6795         (xvasprintf): New.
6796         (xasprintf): New.
6797         (struct filemap): Delete.
6798         (files): Delete.
6799         (output_files): New.
6800         (oprintf): New.
6801         (create_file): Create an outf_p.  Add parameter to indicate output
6802         file name, change all callers.
6803         (open_base_files): Create gtype-desc.c here.
6804         (get_output_file_with_visibility): Rewrite.
6805         (get_output_file_name): Just look at 'name' field in struct outf.
6806         (close_output_files): Rewrite.
6807
6808 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
6809
6810         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
6811         (MASK_G_FLOAT): Define.
6812         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
6813         (TARGET_SWITCHES): Likewise.
6814         (TARGET_DEFAULT): Likewise.
6815
6816 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
6817
6818         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
6819         * config/mips/mips.c (mips_output_filename): Don't print a
6820         ".file" directive if we are using DWARF-2.
6821         (mips_output_function_prologue): Do not emit source file
6822         name for TARGET_GAS.
6823
6824 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
6825
6826         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
6827         decide whether emit the short opcode.
6828         * i386.h (x86_shift1): Declare.
6829         (TARGET_SHIFT1): New macro.
6830         * i386.c (x86_shift1): New global variable.
6831
6832         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
6833         unconditionally; make loop to rebuild CFG; kill unnecesary
6834         find_basic_block calls; kill compute_bb_for_insn call.
6835         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
6836         * haifa-sched.c (sched_init): Likewise.
6837         * ssa-ccp.c (ssa_const_prop): Likewise.
6838         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
6839
6840 2002-06-11  David S. Miller  <davem@redhat.com>
6841
6842         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
6843         active_insn_p.
6844
6845 2002-06-11  Richard Henderson  <rth@redhat.com>
6846
6847         * c-common.c (builtin_define_type_max): New.
6848         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
6849         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
6850
6851         From Joseph S. Myers:
6852         * glimits.h: Rewrite to expect the double underscore definitions
6853         from the compiler.
6854
6855         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
6856         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
6857         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
6858         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6859         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
6860         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
6861         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
6862         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
6863
6864 2002-06-11  Richard Henderson  <rth@redhat.com>
6865
6866         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
6867         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
6868         (code_for_builtns): Update.
6869         (alpha_init_builtins): Add __builtin_thread_pointer and
6870         __builtin_set_thread_pointer.
6871         (alpha_expand_builtin): Handle void builtins.
6872         * doc/extend.texi (Alpha Built-in Functions): Update.
6873
6874 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
6875
6876         PR target/6997
6877         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
6878
6879 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
6880
6881         * config.gcc: Make the name of the extra-modes file adjustable
6882         by target stanzas.
6883         (s390x, strongarm, xscale stanzas): Use this facility.
6884         * configure.in: Update to match.
6885         * configure: Regenerate.
6886
6887 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
6888
6889         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
6890         max/mins as unsigned GE compares.
6891
6892 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
6893
6894         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
6895         * config/vax/bsd.h: New file.
6896         * config/vax/netbsd.h: Add missing notice.
6897         (CPP_PREDEFINES): Remove.
6898         (TARGET_OS_CPP_BUILTINS): Define.
6899         (CPP_SPEC): Use NETBSD_CPP_SPEC.
6900         * config/vax/openbsd.h: Update copyright years.
6901         (CPP_PREDEFINES): Remove.
6902         (TARGET_OS_CPP_BUILTINS): Define.
6903         * config/vax/ultrix.h: Likewise.
6904         * config/vax/vaxv.h: Likewise.
6905         * config/vax/vms.h: Likewise.
6906         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
6907         (CPP_PREDEFINES, CPP_SPEC): Remove.
6908
6909 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
6910
6911         * i386.md (addqi_1_slp, subqi_1_slp
6912         (andqi_ext0, testqi_ext0): Remove unnecesary check.
6913         (addhi*, addqi*): Simplify "dec" condition.
6914         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
6915         (and, or, xor to QImode splitters): New.
6916         (iorqi_ext*): New.
6917         (xorqi_ext_0): New.
6918         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
6919         (andqi_ext_1_rex64): New.
6920         (ashrqi*_slp): New.
6921         (ashlqi*_slp): New.
6922         (lshlqi*_slp): New.
6923         (rotrqi3*_slp): New.
6924         (rotlqi3*_slp): New.
6925
6926 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
6927
6928         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
6929         softfloat.h.
6930         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
6931         (CPP_ENDIAN_LITTLE_SPEC): Delete.
6932         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
6933         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
6934         __LONG_DOUBLE_128__ setting, _CALL_* setting.
6935         (CPP_DEFAULT_SPEC): Delete.
6936         (CPP_FLOAT_DEFAULT_SPEC): Delete.
6937         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
6938         (CPP_SYSV_DEFAULT_SPEC): Delete.
6939         (CPP_ENDIAN_BIG_SPEC): Delete.
6940         (CPP_ENDIAN_LITTLE_SPEC): Delete.
6941         (CPP_ENDIAN_SPEC): Delete.
6942         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
6943         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
6944         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
6945         cpp_longdouble_default.
6946         * config/rs6000/softfloat.h: Delete.
6947         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
6948         (EXTRA_SPECS): Delete cpp_cpu.
6949         (TARGET_CPU_CPP_BUILTINS): New.
6950         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
6951         prototype.
6952         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
6953         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
6954         (CPP_DEFAULT_SPEC): Delete.
6955         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
6956         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
6957         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
6958         (CPP_DEFAULT_SPEC): Delete.
6959         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
6960         (CPLUSPLUS_CPP_SPEC): Likewise.
6961         (CPP_CPU_SPEC): Delete.
6962         (CPP_DEFAULT_SPEC): Delete.
6963         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
6964         (CPLUSPLUS_CPP_SPEC): Likewise.
6965         (CPP_CPU_SPEC): Delete.
6966         (CPP_DEFAULT_SPEC): Delete.
6967         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
6968         (CPP_DEFAULT_SPEC): Delete.
6969         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
6970         (CPP_DEFAULT_SPEC): Delete.
6971
6972         * doc/gty.texi: Small updates.
6973
6974 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
6975
6976         * objc/objc-act.c (warn_with_ivar): Adjust calls to
6977         diagnostic_count_error.
6978         (warn_with_method): Likewise.
6979
6980         * diagnostic.h (warnings_are_errors_message): New field of
6981         diagnostic_context.
6982         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
6983         match semantics.
6984         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
6985         (diagnostic_count_diagnostic): Make aware of other kinds of
6986         diagnostics.
6987         (diagnostic_initialize): Initialize warnings_are_errors_message field.
6988
6989 2002-06-11  Tom Tromey  <tromey@redhat.com>
6990
6991         For PR java/6520:
6992         * fold-const.c (fold_convert): Don't modify existing tree's type.
6993
6994 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
6995
6996         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
6997
6998 2002-06-11  Richard Henderson  <rth@redhat.com>
6999
7000         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
7001
7002 2002-06-11  Richard Henderson  <rth@redhat.com>
7003
7004         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
7005         DWARF2_UNWIND_INFO is false.
7006
7007 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
7008
7009         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
7010
7011         * config/s390/s390.c (emit_prologue): gen_store_multiple
7012         returns an insn now, not a pattern.
7013
7014 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7015
7016         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
7017         $(TEXI2DVI) -o.
7018
7019 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
7020
7021         * i386.c (x86_promote_QImode): Set for Athlon
7022         (x86_fast_prefix): New global variable.
7023         (x86_arch_always_fancy_math_387): Fix formating.
7024         * i386.h (x86_fast_prefix): Declare
7025         (TARGET_FAST_PREFIX): define.
7026         * i386.md (and to strict_low_part, HI to SI
7027         promoting splitter): Use new macro.
7028
7029         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
7030
7031 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
7032
7033         * Makefile.in (distclean): Delete junk left in testsuite
7034         directory, too.
7035
7036 2002-06-11  Jeffrey Law <law@redhat.com>
7037
7038         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
7039         last insn created by the splitter.
7040
7041         * caller-save.c (init_caller_save): Move creation of SAVEINSN
7042         and RESTINSN into into the scope of the sequence.
7043
7044         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
7045         RETURN insns.
7046
7047         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
7048
7049         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
7050         not the pattern.  So extract the pattern from the insn.
7051
7052         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
7053
7054 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
7055
7056         * config/s390/s390.md (movsi): Only use floating point
7057         register alternatives when operands are already fprs.
7058         (movdi_31, movdi_64): Likewise.
7059
7060 2002-06-11  David S. Miller  <davem@redhat.com>
7061
7062         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
7063         Only run RTX equality checks on INSN_P rtl.
7064
7065 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
7066
7067         * config/s390/s390.md (reload_base, ltorg): Remove.
7068         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
7069         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
7070         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
7071         s390_asm_output_pool_prologue): Likewise.
7072         * s390.h (s390_pool_start_insn): Likewise.
7073
7074         * s390.c (s390_output_symbolic_const): Remove support for
7075         old-style pool chunks.
7076         (s390_function_epilogue): Likewise.
7077         (s390_output_constant_pool): Likewise.  Also, fix incorrect
7078         alignment for 64-bit literal pools.
7079         (print_operand_address): Remove 'y' and 'Y' format flags.
7080         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
7081         old-style pool chunks.
7082         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
7083         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
7084         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
7085
7086         * s390.c (consttable_operand): New function.
7087         * s390-protos.h (consttable_operand): Declare it.
7088         * s390.h (PREDICATE_CODES): Add consttable_operand.
7089         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
7090         consttable_sf, consttable_df, pool_start_31, pool_end_31,
7091         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
7092         * s390.c (struct constant, struct constant_pool): New data types.
7093         (constant_modes, gen_consttable): New variables.
7094         (s390_start_pool, s390_end_pool, s390_add_pool,
7095         s390_dump_pool, s390_free_pool): New functions.
7096         (s390_chunkify_pool): Completely reimplement literal pool
7097         overflow handling.
7098
7099         * s390.c (s390_pool_overflow): New variable.
7100         * s390.h (s390_pool_overflow): Declare it.
7101         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
7102         jumps in literal pool overflow situations.
7103
7104         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
7105         (s390_frame_info): Account for possible use of RETURN_REGNUM
7106         by new literal pool overflow code.
7107         (s390_emit_prologue): Likewise.
7108
7109 2002-06-05  David S. Miller  <davem@redhat.com>
7110
7111         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
7112         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
7113         emit_insns_before_scope, emit_insns_after,
7114         emit_insns_after_scope): Delete declaration.
7115         * ada/misc.c (insert_code_for): Use emit_insn* instead of
7116         emit_insns_foo.
7117         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
7118         (alpha_set_memflags): Fix comment.
7119         (set_frame_related_p): Use get_insns instead of gen_sequence.
7120         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
7121         emitting no insns.
7122         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
7123         gen_sequence.
7124         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
7125         * config/fr30/fr30.c (fr30_move_double): Likewise.
7126         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
7127         Likewise.
7128         * config/ia64/ia64.c (spill_restore_mem): Likewise.
7129         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
7130         no insns.
7131         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
7132         instead of gen_sequence.
7133         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
7134         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
7135         * config/sh/sh.c (sh_need_epilogue): Likewise.
7136         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
7137         attributes.
7138         (setjmp pattern and split): Use them to avoid splitter which emits
7139         no RTL.
7140         * genattrtab.c (main): Emit include of function.h
7141         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
7142         get_insns instead of gen_sequence.
7143         * config/cris/cris.c (cris_split_movdx): Likewise.
7144         * emit-rtl.c (emit_insns*): Kill.
7145         (try_split): Expect insn list instead of SEQUENCE.
7146         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
7147         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
7148         Make them abort if a SEQUENCE is given and RTL checking is
7149         enabled.
7150         (emit_*_scope): Don't forget to set scope on final insn.
7151         (gen_sequence): Move from here...
7152         * ssa.c (gen_sequence): To here as private function.
7153         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
7154         comments.
7155         (expand_builtin_return, expand_builtin_mathfn): Likewise.
7156         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
7157         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
7158         (expand_builtin_expect_jump): Use get_insns and fix comments.
7159         * calls.c (try_to_integrate): Use emit_insn_foo.
7160         (expand_call, emit_library_call_value_1): Likewise.
7161         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
7162         (emit_move_insn_1): Use get_insns instead of gen_sequence.
7163         (expand_expr): Use emit_insn_foo.
7164         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
7165         * except.c (build_post_landing_pads): Likewise.
7166         * flow.c (attempt_auto_inc): Likewise.
7167         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
7168         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
7169         * function.c (fixup_var_refs_insn): Use get_insns instead of
7170         gen_sequence.
7171         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
7172         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
7173         (fixup_stack_1, purge_addressof_1, expand_main_function,
7174         get_arg_pointer_save_area): Likewise.
7175         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
7176         expand_function_end): Use emit_insn_foo.
7177         (record_insns, keep_stack_depressed): Work with insn list instead
7178         of SEQUENCE, fix comments.
7179         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
7180         noce_try_store_flag_constants, noce_try_store_flag_inc,
7181         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
7182         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
7183         (noce_process_if_block): Use get_insns instead of gen_sequence.
7184         * optabs.c (add_equal_note): Work with insn list, fix comments.
7185         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
7186         (expand_unop, expand_complex_abs, expand_unop_insn,
7187         expand_no_conflict_block): Likewise.
7188         (gen_move_insn): Use get_insns instead of gen_sequence.
7189         (gen_cond_trap): Likewise.
7190         * integrate.c (copy_rtx_and_substitute): Likewise.
7191         (emit_initial_value_sets): Use emit_insn_foo.
7192         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
7193         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
7194         now that RTL generators give insn lists.
7195         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
7196         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
7197         instead of gen_sequence.
7198         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
7199         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
7200         instead of gen_sequence.
7201         * loop.c (move_movables, emit_prefetch_instructions,
7202         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
7203         Likewise.
7204         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
7205         (product_cheap_p): Likewise, and add commentary about RTL wastage
7206         here.
7207         * lcm.c (optimize_mode_switching): Use get_insns instead of
7208         gen_sequence.
7209         * profile.c (gen_edge_profiler): Likewise.
7210         * regmove.c (copy_src_to_dest): Likewise.
7211         * reg-stack.c (compensate_edge): Likewise and fix comment.
7212         * gcse.c (process_insert_insn): Likewise.
7213         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
7214         * jump.c (delete_prior_computation): Update comment.
7215         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
7216         of gen_sequence, update comments to match.
7217         * recog.c (peephole2_optimize): Work with insn lists instead of
7218         SEQUENCE rtl.
7219         * sched-vis.c (print_pattern): Abort on SEQUENCE.
7220         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
7221         Use get_insns instead of gen_sequence.
7222         (copy_loop_body): Likewise and don't emit dummy NOTE.
7223         * genrecog.c: Don't mention SEQUENCE rtl in comments.
7224         * combine.c (try_combine): Expect insn lists from split generator.
7225         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
7226         hand.
7227
7228 2002-06-11  Roger Sayle  <roger@eyesopen.com>
7229             Andreas Jaeger <aj@suse.de>
7230
7231         * cfgbuild.c: Update copyright years.
7232
7233 2002-06-11  Andreas Schwab  <schwab@suse.de>
7234
7235         * config/m68k/m68k.h (PREDICATE_CODES): Define.
7236
7237 2002-06-11  Eric Christopher  <echristo@redhat.com>
7238
7239         * doc/tm.texi (Run-time Target): Add comment about flag_iso
7240         and strict ANSI.
7241         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
7242         * config/mips/ecoffl.h: Ditto.
7243         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
7244         (CPP_PREDEFINES): Ditto.
7245         * config/mips/elfl64.h: Ditto.
7246         * config/mips/elfl.h: Ditto.
7247         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
7248         out until irix header consolidation.
7249         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
7250         with SUBTARGET_OS_CPP_BUILTINS.
7251         * config/mips/iris6.h: Ditto.
7252         (CPLUSPLUS_CPP_SPEC): Remove.
7253         * config/mips/linux.h: Ditto.
7254         * config/mips/netbsd.h: Ditto.
7255         * config/mips/openbsd.h: Ditto.
7256         * config/mips/rtems.h: Ditto.
7257         * config/mips/rtems64.h: Ditto.
7258         * config/mips/sni-svr4.h: Ditto.
7259         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
7260         ISA_MIPS32, ISA_MIPS64): New defines.
7261         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
7262         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
7263         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7264         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
7265         (TARGET_CPU_CPP_BUILTINS): Define.
7266         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
7267         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
7268         (movdicc): Remove check for ISA_MIPS32.
7269          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
7270         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
7271         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
7272         sunge_sf, sunle_df, sunle_sf): New patterns.
7273
7274 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7275
7276         * Makefile.in: Update cppmain.o.
7277         * cpphash.h (struct cpp_reader): Move some members to a
7278         nested structure.
7279         (trad_line): Rename saved_line.
7280         (_cpp_read_logical_line_trad): Update.
7281         (_cpp_remove_overlay): New.
7282         * cppinit.c (cpp_create_reader): No need to set saved_line.
7283         (cpp_destroy): Update.
7284         (cpp_read_main_file): Only overlay if compiling.
7285         * cpplex.c (continue_after_nul): Return false if in directive.
7286         * cpplib.c (EXPAND): New.
7287         (directive_table, SEEN_EOL): Update.
7288         (end_directive): Remove overlay if traditional; don't skip
7289         line in traditional #define.
7290         (prepare_directive_trad): New.
7291         (_cpp_handle_directive, run_directive): Update for traditional
7292         directives.
7293         (lex_macro_node): Simplify, don't use lex_identifier_trad.
7294         * cpplib.h (struct options): Add preprocess_only.
7295         * cppmain.c: Don't include intl.h.
7296         (cpp_preprocess_file): Set options->preprocess_only.
7297         (scan_translation_unit_trad): Fix, and print line numbers.
7298         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
7299         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
7300         save_replacement_text, _cpp_create_trad_definition): Update for
7301         variable renaming.
7302         (_cpp_overlay_buffer): Save line number.
7303         (_cpp_remove_overlay): Rename from restore_buff, restore line.
7304         (_cpp_read_logical_line_trad): Don't handle overlays here.
7305         (scan_out_logical_line): Process directives.
7306
7307 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
7308
7309         * gthr-win32.h: Wrap functions in extern "C".
7310         (__gthread_key_t): Typedef as unsigned long,
7311         not win32 DWORD.
7312         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
7313         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
7314         (__gthr_win32_once, __gthr_win32_key_create,
7315         __gthr_win32_key_delete, __gthr_win32_getspecific,
7316         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
7317         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
7318         __gthr_win32_mutex_unlock): Declare.
7319         (__gthread_once,__gthread_key_create,
7320         __gthread_key_delete, __gthread_getspecific,
7321         __gthread_setspecific, __gthread_mutex_init_function,
7322         __gthread_mutex_lock,__gthread_mutex_trylock,
7323         __gthread_mutex_unlock): Call corresponding
7324         __gthr_win32_* extern implementations if #defined
7325         __GTHREAD_HIDE_WIN32API.
7326         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
7327         $(srcdir)/config/i386/gthr-win32.c
7328         * config/i386/gthr-win32.c: New implementation file.
7329         (__gthr_win32_once, __gthr_win32_key_create,
7330         __gthr_win32_key_delete, __gthr_win32_getspecific,
7331         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
7332         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
7333         __gthr_win32_mutex_unlock): New functions, based on
7334         static inlines in gthr-win32.h.
7335
7336 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
7337
7338         * config/xtensa/xtensa.c (override_options): Don't warn about
7339         using -fpic or -fPIC when PIC is enabled by default.
7340
7341 2002-06-10  Roger Sayle  <roger@eyesopen.com>
7342
7343         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
7344
7345 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
7346
7347         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
7348         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
7349         exists, substitute its pathname as @extra_modes_file@, define
7350         EXTRA_MODES_FILE to be an appropriate string to #include it
7351         with, and define EXTRA_CC_MODES to 1.
7352
7353         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
7354         it's defined.  Get rid of redundancy in calling sequence for
7355         CC; don't use it to define CCmode, to avoid a warning.
7356         * libgcc2.c: Include symcat.h for the sake of machmode.def.
7357
7358         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
7359         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
7360         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
7361         New files.
7362         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
7363         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
7364
7365         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
7366         defining extra CC modes.
7367
7368 2002-06-10  Roger Sayle  <roger@eyesopen.com>
7369             Andreas Jaeger <aj@suse.de>
7370
7371         * cfgrtl.c (create_basic_block_structure):  Remove index argument
7372         and use last_basic_block++ instead.  (create_basic_block): Update.
7373         * cfgbuild.c (find_basic_blocks_1): Likewise.
7374
7375         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
7376         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
7377         * sched-ebb.c (schedule_ebbs): Likewise.
7378         * sched-rgn.c (schedule_insns): Likewise.
7379         * ssa-ccp.c (ssa_const_prop): Likewise.
7380         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
7381         * toplev.c (rest_of_compilation): Likewise.
7382         * config/ia64/ia64.c (ia64_reorg): Likewise.
7383
7384 2002-06-10  Roger Sayle  <roger@eyesopen.com>
7385
7386         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
7387         of matching registers.
7388
7389 2002-06-10  Roger Sayle  <roger@eyesopen.com>
7390
7391         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
7392         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
7393
7394 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
7395
7396         * config/mmix/mmix.h: Improve comments.
7397         (CPP_SPEC, CPP_PREDEFINES): Don't define.
7398         (TARGET_CPU_CPP_BUILTINS): Define.
7399         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
7400         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
7401         unused predicate.
7402         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
7403         compiler warning.
7404         (mmix_constant_address_p): Remove another
7405         redundant test before case.
7406         (mmix_canonicalize_comparison): Remove unused function.
7407         (mmix_print_operand_address): Don't test and adjust for operand in
7408         non-canonical format.
7409         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
7410         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
7411
7412 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
7413
7414         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
7415         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
7416         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
7417         (gen_compare): Use CCmode unconditionally.
7418
7419 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
7420
7421         PR optimization/6759
7422         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
7423         the REQ_EQUAL note.
7424
7425 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
7426
7427         PR c/6660
7428         * c-decl.c (grokfield): Allow user defined types if they declare
7429         structs or unions for unnamed fields.
7430
7431 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
7432
7433         PR c/6809
7434         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
7435
7436 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
7437
7438         PR optimization/6842
7439         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
7440         operand subreg cannot be simplified.
7441
7442 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
7443
7444         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
7445         (compare_constant): Likewise.
7446         (output_addressed_constants): Likewise.
7447
7448 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
7449
7450         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
7451         merge bb with itself.
7452
7453 2002-06-10  Richard Henderson  <rth@redhat.com>
7454
7455         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
7456         (builtin_zapnot): Likewise.
7457
7458         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
7459         reservation.
7460
7461 2002-06-10  Eric Christopher  <echristo@redhat.com>
7462
7463         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
7464         prototype and function.
7465         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
7466         (call_insn_operand): Remove half pic references.
7467         (legitimate_address_p): Ditto.
7468         * config/i386/i386.h: Remove half pic defines.
7469
7470 2002-06-10  Eric Christopher  <echristo@redhat.com>
7471
7472         * doc/extend.texi (Return Address): Add note explaining the side-
7473         effects of inlining on __builtin_return_address.
7474
7475 2002-06-10  Tom Tromey  <tromey@redhat.com>
7476
7477         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
7478         (c-common.o): Depend on langhooks.h.
7479
7480 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
7481
7482         * cpphash.h (_cpp_read_logical_line_trad,
7483         _cpp_expansions_different_trad): Update prototypes.
7484         * cpplex.c (continue_after_nul): New.
7485         * cppmain.c: Include cpphash.h.
7486         (scan_translation_unit_trad): New.
7487         (cpp_preprocess_file): Call it.
7488         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
7489         overlay.
7490         (_cpp_expansions_different_trad): Update prototype.
7491
7492 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
7493
7494         Fix cfi generation for SH[1-4]:
7495
7496         * sh.c (frame_insn): New function.
7497         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
7498         (push): Now returns rtx.  Use frame_insn.
7499         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
7500         of a DF register.
7501         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
7502
7503 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
7504
7505         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
7506         and gtype-desc.c.
7507         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
7508         (distclean): ... not here.  But do delete all testsuite/*.log,
7509         testsuite/*.sum files here.  Delete mkheaders.  Delete
7510         po/*.gmo and the testsuite directory in a split tree build.
7511
7512 2002-06-10  Jeffrey Law  <law@redhat.com>
7513
7514         * alias.c (static_reg_base_value): New to hold RTL for
7515         items allocated once per function for the aliasing code.
7516         (init_alias_once_per_function): Initialize static_reg_base_value.
7517         (init_alias_analysis): Avoid throw-away allocations of RTL by
7518         using pre-computed values in static_reg_base_value.
7519         * function.c (prepare_function_start): Call
7520         init_alias_once_per_function appropriately.
7521         * rtl.h (init_alias_once_per_function): Declare.
7522         * caller-save (init_caller_save): Restructure slightly to
7523         avoid lots of silly RTL generation.
7524         * expr.c (init_expr_once): Likewise.
7525         * reload1.c (reload_cse_regs_1): Allocate throw-away register
7526         RTL object here.  Pass it into children.
7527         (reload_cse_simplify_operands): Use passed-in register RTL
7528         object.
7529         (reload_cse_simplify): Pass through throw-away register
7530         RTL object.
7531
7532 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
7533
7534         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
7535
7536 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
7537
7538         * gcc.c (process_command): Avoid assignment to read-only location.
7539         Fix sizeof calculation.
7540
7541 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
7542
7543         * cpphash.h (struct cpp_macro): Put comments on their own lines.
7544         (_cpp_expansions_different_trad): New.
7545         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
7546         * cpptrad.c (canonicalize_text): New.
7547         (scan_out_logical_line): Handle no arguments correctly.
7548         (save_replacement_text): Commit memory when finished.
7549         (_cpp_expansions_different_trad): New.
7550
7551 2002-06-10  Tim Josling  <tej@melbpc.org.au>
7552
7553         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
7554         TREELANG and COBOL.
7555         (lang_names): Add treelang and cobol.
7556         (get_file_basename): Add code to support treelang and cobol as
7557         4th and 5th users of c-common.c.
7558
7559 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
7560
7561         * Makefile.in (install-driver): Install driver as
7562         $(target_alias)-gcc-$(version).
7563         * gcc.c (spec_version): Make const.
7564         (process_command): Handle -V and -b by using exec.
7565         * doc/invoke.texi (Target Options): Restore -V option,
7566         update docs for -b option.
7567
7568 2002-06-10  Tim Josling  <tej@melbpc.org.au>
7569
7570         * configure.in (remaining_languages_check):
7571         Added check that all languages specified were found.
7572         Exit if not found. Previous behaviour was silent failure.
7573         * configure: Regenerated.
7574
7575 2002-06-10  Tim Josling  <tej@melbpc.org.au>
7576
7577          First steps to making treelang documentation compliant, based on
7578          instructions in sourcebuild.texi. Also add to gcc.c list of
7579          default languages.
7580
7581         * doc/contrib.texi: Add self as contributor of treelang.
7582
7583         * doc/frontends.texi: Add mention of treelang.
7584
7585         * doc/invoke.texi (Overall Options): Add mention of treelang.
7586
7587         * doc/standards.texi:  Add mention of treelang.
7588
7589 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
7590
7591         * config/cris/cris.c: Include ggc.h
7592
7593 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7594
7595         * cpphash.h (_cpp_push_text_context): Update.
7596         (_cpp_arguments_ok): New.
7597         * cppmacro.c (_cpp_arguments_ok): New, split out from...
7598         (collect_args): ...here.
7599         (_cpp_push_text_context): Change inputs.
7600         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
7601         replace_args_and_push): New.
7602         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
7603         Don't use IS macros directly.
7604         (scan_out_logical_line): Handle function-like macro argument
7605         collection.
7606         (push_replacement_text): Update.
7607         (replacement_length): Remove.
7608         (_cpp_create_trad_definition): Don't skip whitespace before
7609         checking for '('.
7610
7611 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7612
7613         * config/avr/avr.c (avr_mcu_types): Update for new devices.
7614         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
7615         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
7616         * config/avr/avr.md ("type" and "length" attributes): New type
7617         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
7618         output a single "call" or "rcall" insn depending on device size.
7619         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
7620
7621 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
7622
7623         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
7624         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
7625         assembler option.
7626         (CPP_CPU_SPEC): Add power3 and power4.
7627         (PROCESSOR_DEFAULT): Change to 604e.
7628         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
7629         (CPP_CPU_SPEC): Similar additions.
7630         (enum process_type): Add POWER4.
7631         (RTX_COSTS): Add POWER4.
7632         (CPP_CPU_SPEC): Similar additions.
7633         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
7634         (PROCESSOR_DEFAULT64): Define.
7635         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
7636         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
7637         branch adjustment.
7638         (rs6000_issue_rate): Add Power4.
7639         * config/rs6000/rs6000.md (cpu attr): Add power4.
7640         (iu compare): Remove 604, 604e, 620, 630.
7641         Add basic Power4 scheduling information.
7642         (mfcr/mtcrf): Change type attribute to cr_logical.
7643
7644 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7645
7646         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
7647         ATTRIBUTE_PRINTF_2.
7648         * gengtype-lex.l: Fix format specifier warning.
7649
7650         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
7651         not isspace.
7652         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
7653         lieu of isspace/IDchar.
7654         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
7655         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
7656         ISSPACE.
7657
7658 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
7659
7660         * Makefile.in (LIBCPP_OBJS): Take out version.o.
7661         * cpphash.h (cpp_reader): Take out print_version member.
7662         * cppinit.c: (cpp_handle_option): Don't do anything with
7663         -version.  Just set help_only for --version, --target-help.
7664         Just set verbose option for -v.
7665         (cpp_post_options): Don't print a version string.
7666
7667 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7668
7669         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
7670         (avr_section_type_flags): New, handle .noinit* sections.
7671
7672 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7673
7674         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
7675         and include netbsd_entry_point.
7676         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
7677         (NETBSD_ENTRY_POINT): Define.
7678
7679 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7680
7681         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
7682         if not already defined.
7683         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
7684
7685 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7686
7687         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
7688         in a noreturn function.
7689         (avr_output_function_prologue, avr_output_function_epilogue):
7690         Correct function size calculation.  Do not crash on empty function.
7691         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
7692
7693 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7694
7695         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
7696         netbsd_link_spec and netbsd_entry_point.
7697         (LINK_SPEC): Use %(netbsd_link_spec).
7698         (NETBSD_ENTRY_POINT): Define.
7699
7700 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7701
7702         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
7703         linker emulation.
7704         (LINK_ARCH64_SPEC): Likewise.
7705         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
7706         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
7707
7708 2002-06-08  Marc Espie  <espie@openbsd.org>
7709
7710         * lists.c (free_list):  Fix typo in comment.
7711
7712 2002-06-08  Andreas Jaeger  <aj@suse.de>
7713
7714         * lcm.c (optimize_mode_switching): Add unused attribute for
7715         variable.
7716
7717         * sched-deps.c (sched_analyze): Remove unused variable.
7718
7719 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
7720
7721         * diagnostic.def: Don't capitalize diagnostict descriptors.
7722
7723 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7724
7725         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
7726         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
7727         (NETBSD_ENTRY_POINT): Define.
7728
7729 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7730
7731         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
7732         NETBSD_LINK_SPEC_ELF.
7733         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
7734         (NETBSD_ENTRY_POINT): Define.
7735         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
7736         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
7737         netbsd_entry_point.
7738         (NETBSD_ENTRY_POINT): Define.
7739
7740 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7741
7742         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
7743         netbsd_link_spec and netbsd_entry_point.
7744         (LINK_SPEC): Use %(netbsd_link_spec).
7745         (NETBSD_ENTRY_POINT): Define.
7746
7747 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7748
7749         * config/netbsd-elf.h (LINK_SPEC): Rename to...
7750         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
7751         to specify program entry point.
7752
7753 2002-06-07  Jeff Law <law@redhat.com
7754
7755         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
7756         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
7757         than creating a new register.
7758         (distribute_notes): Likewise.
7759         * df.c (df_reg_use_gen): Likewise.
7760         (df_reg_clobber_gen): Likewise.
7761         (df_ref_record): Likewise.
7762         * expr.c (use_regs): Likewise.
7763         * flow.c (propagate_one_insn): Likewise.
7764         (mark_set_1): Likewise.
7765         (mark_used_reg): Likewise.
7766         * reload.c (emit_reload_insns): Likewise.
7767
7768 2002-06-07  Roger Sayle  <roger@eyesopen.com>
7769
7770         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
7771         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
7772         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
7773         comparison code comp can be reversed.
7774
7775 2002-06-07  Roger Sayle  <roger@eyesopen.com>
7776
7777         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
7778         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
7779         equivalent x > -1.0 when -ffast-math.
7780
7781 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
7782
7783         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
7784         * config/mips/t-netbsd: New file.
7785
7786 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
7787
7788         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
7789         options their own entries.
7790         (parse_option): Clarify comment.
7791         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
7792         special case.  Replace if/strcmp chain for -W options with
7793         use of new OPT_* entries for them.
7794         (cpp_handle_options): Update to match.
7795         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
7796         * c-decl.c: Update call to cpp_handle_option.
7797
7798 2002-06-07  Akim Demaille  <akim@epita.fr>
7799
7800         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
7801         Whitespace changes.
7802
7803 2002-06-07  Jeffrey Law  <law@redhat.com>
7804
7805         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
7806         on empty lists.
7807
7808 2002-06-07  H.J. Lu  (hjl@gnu.org)
7809
7810         * configure.in: Add --enable-__cxa_atexit.
7811         * configure: Regenerated.
7812         * config.in: Likewise.
7813
7814         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
7815         not defined.
7816
7817 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
7818
7819         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
7820
7821 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
7822
7823         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
7824
7825 2002-06-07  Jason Merrill  <jason@redhat.com>
7826
7827         * cppexp.c (num_equality_op): Use a temporary variable to work
7828         around gcc 3.0.4 bug.
7829
7830 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
7831
7832         * diagnostic.c (diagnostic_build_prefix): Tidy.
7833
7834 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
7835
7836         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
7837         scan_parameters, save_replacement_text, replacement_length): New.
7838         (scan_out_logical_line): Take a macro and save parameters if
7839         non-NULL.
7840         (_cpp_logical_line_trad): Update.
7841         (_cpp_create_trad_definition): Update to handle function-like
7842         macros.
7843         * cpplex.c (new_buff): Update.
7844         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
7845         * cpphash.h: ...here.
7846         (CPP_ALIGN2, _cpp_save_parameter): New.
7847         * cppmacro.c (save_parameter): Rename, export.
7848         (parse_params): Update.
7849
7850 2002-06-07  Andreas Jaeger  <aj@suse.de>
7851
7852         * config/mmix/mmix.c: Remove extra broken prototype for
7853         mmix_init_machine_status.
7854
7855 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
7856
7857         * gengtype.c: Add comments before all the routines.
7858
7859 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
7860
7861         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
7862         from and add t-sh64 to ${tmake_file}.
7863         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
7864         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
7865         * config/sh/t-netbsd-sh5-32: Remove.
7866         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
7867         MULTILIB_ENDIAN.
7868         (MULTILIB_DIRNAMES): Define.
7869
7870 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
7871
7872         * i386.md (and promoting splitters): Disable QI to SImode promoting
7873         when doing so changes immediate to be 32bit.
7874
7875         * rtl.h (emit_*_scope): Declare.
7876         * emit-rtl.c (emit_*_scope): New global functions.
7877         (try_split): Copy scope.
7878         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
7879         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
7880         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
7881         noce_process_if_block, find_cond_trap): Copy scopes.
7882         * recog.c (peephole2_optimize): likewise.
7883
7884 2002-06-06  Jeffrey Law  <law@redhat.com>
7885
7886         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
7887
7888 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
7889
7890         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
7891
7892 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7893
7894         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
7895         ($(docdir)/gccinstall.info): New target.
7896         (info): Depend on it.
7897         (gccinstall.dvi): New target.
7898         (dvi): Depend on it.
7899         * doc/.cvsignore: Ignore new info files.
7900         * doc/install.texi (@setfilename): Reflect new info filename.
7901
7902 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
7903
7904         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
7905         on an UNSPEC.
7906
7907 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
7908
7909         PR objc/6834
7910         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
7911         c_common_get_alias_set.
7912         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
7913
7914 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7915
7916         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
7917         functions.
7918         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
7919         * avr/avr.c (avr_output_function_epilogue): Use above to determine
7920         function size.
7921         * pa/pa.c (pa_output_function_prologue): Likewise.
7922
7923 2002-06-05  David S. Miller  <davem@redhat.com>
7924
7925         * integrate.c (subst_constants): Handle 'B' RTL format.
7926
7927 2002-06-05  Eric Christopher  <echristo@redhat.com>
7928
7929         * varasm.c (make_decl_rtl): Fix comment for removed
7930         halfpic.c.
7931
7932 2002-06-05  Eric Christopher  <echristo@redhat.com>
7933
7934         * Makefile.in: Remove missed halfpic bits.
7935
7936 2002-06-05  Eric Christopher  <echristo@redhat.com>
7937
7938         * toplev.c: Remove half-pic.
7939         * config/mips/mips.c: Ditto.
7940         * config/mips/mips.h: Ditto. Remove unused defines.
7941         * config/mips/openbsd.h: Update comment to reflect above.
7942         * config/mips/mips.md: Remove half-pic constraints.
7943         * halfpic.h: Delete.
7944         * halfpic.c: Ditto.
7945
7946 2002-06-05  Jeffrey Law  <law@redhat.com>
7947
7948         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
7949         rejects (mem (lo_sum (reg) (unspec))), but will allow
7950         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
7951
7952 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7953
7954         * cpphash.h (_cpp_create_definition): Update prototype.
7955         (_cpp_push_text_context, _cpp_create_trad_definition): New.
7956         ( cpp_lex_identifier_trad): New.
7957         (_cpp_set_trad_context): New.
7958         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
7959         * cpplib.c (SEEN_EOL): Update.
7960         (lex_macro_node): Update for -traditional.
7961         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
7962         * cppmacro.c (_cpp_create_definition): Split into
7963         create_iso_definition() and _cpp_create_trad_definition().
7964         (warn_of_redefinition): Update prototype; handle traditional
7965         macros.
7966         (_cpp_push_text_context): New.
7967         * cpptrad.c (skip_whitespace, push_replacement_text): New.
7968         (lex_identifier): Call ht_lookup with correct start.
7969         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
7970         _cpp_set_trad_context): New.
7971         (scan_out_logical_line): Update to handle changing contexts.
7972
7973 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
7974
7975         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
7976         (shl*-*-elf*): Add.
7977         * config/sh/t-be (MULTILIB_ENDIAN): Set.
7978         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
7979         * t-sh (MULTILIB_ENDIAN): Set.
7980         (MULTILIB_OPTIONS): Use it.
7981         * t-sh64 (MULTILIB_OPTIONS): Likewise.
7982         (MULTILIB_DIRNAMES): Likewise.
7983
7984 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
7985
7986         * toplev.h (report_error_function): Remove.
7987
7988         * diagnostic.h (location_t): New datatype.
7989         (text_info): Likewise.
7990         (diagnostic_info): Likewise.
7991         (output_prefix): New macro.
7992         (diagnostic_last_function_changed): Likewise.
7993         (diagnostic_set_last_function): Likewise.
7994         (diagnostic_last_module_changed): Likewise.
7995         (diagnostic_set_last_module): Likewise.
7996         (report_diagnostic): Now macro.
7997         (diagnostic_set_info): Declare.
7998
7999         * diagnostic.c (report_problematic_module): Rename to
8000         diagnostic_repor_current_module.
8001         (set_diagnostic_context): Remove.
8002         (count_error): Rename to diagnostic_error_count.
8003         (error_function_changed): Remove.
8004         (record_last_error_function): Likewise.
8005         (error_module_changed): Likewise.
8006         (record_last_error_module): Likewise.
8007         (context_as_prefix): Rename to diagnostic_build_prefix.
8008         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
8009         (diagnostic_set_info): New function.
8010
8011         * objc/objc-act.c: #include diagnostic.h
8012         (error_with_ivar): Adjust call to count_error.
8013         (warn_with_method): Likewise.
8014         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
8015
8016 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
8017
8018         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
8019         lang_hooks.types.make_type instead of make_node; set up
8020         __va_list_tag type decl.
8021         (xtensa_builtin_saveregs): Remove broken use of
8022         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
8023         for saved registers; add varargs alias set.
8024
8025 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
8026
8027 config:
8028         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
8029         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
8030         CPP_PREDEFINES and part of CPP_SPEC.
8031         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
8032         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
8033
8034 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
8035
8036         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
8037
8038 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
8039
8040         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
8041
8042 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
8043
8044         * gengtype-yacc.y: Make sure all rules end with a semicolon.
8045
8046 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
8047
8048         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
8049         typo in function prototype and include "ggc.h" header.
8050
8051 2002-06-04  Richard Henderson  <rth@redhat.com>
8052
8053         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
8054         (print_operand) ['U']: Likewise.
8055         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
8056         (alpha_expand_unaligned_store_words): Likewise.
8057         (alpha_expand_builtin_vector_binop): Fix typo.
8058         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
8059         umulh, and cix insns.
8060         (one_arg_builtins): Add cix builtins.
8061         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
8062         (alpha_expand_builtin): Fix typo in arity.
8063         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
8064         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
8065         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
8066         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
8067         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
8068         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
8069         builtin_ctlz, builtin_ctpop): New.
8070         * doc/extend.texi (Alpha Built-in Functions): Update.
8071
8072 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
8073
8074         * gengtype.c (write_gc_root): Don't unnecessarily prevent
8075         global variable-length arrays being roots.
8076
8077         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
8078         * configure.in (config_gtfiles): New variable.
8079         (all_gtfiles): Initialise from config_gtfiles.
8080         * configure: Regenerate.
8081
8082 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8083
8084 config/i386:
8085         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
8086         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
8087         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
8088         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
8089         win32.h (CPP_SPEC): Remove cpp_cpu.
8090         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
8091         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
8092
8093 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
8094
8095         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
8096
8097 2002-06-04  Jeff Law <law@redhat.com.
8098             David Edelsohn <edelsohn@gnu.org>
8099             Michael Matz <matz@kde.org>
8100
8101         * sched-int.h (struct deps): New field libcall_block_tail_insn.
8102         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
8103         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
8104         is set, then mark the current insn as being part of a libcall
8105         scheduling group.
8106         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
8107
8108         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
8109         insns against the issue rate.
8110
8111 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
8112
8113         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
8114         * final.c (final_scan_insn): Likewise.
8115         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
8116         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
8117         * haifa-sched.c (unlink_other_notes): Likeewise.
8118         (reemit_notes): Likewise.
8119         * print-rtl.c (print_rtx): Likewise.
8120         * sched-deps (sched-analyze): Likewise.
8121         * rtl.c (note_insn_name): Likewise.
8122         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
8123         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
8124         (RANGE_*): Kill.
8125
8126 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
8127
8128         * varasm.c (mark_constants): Handle RTX format 'B'.
8129
8130 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8131
8132         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
8133         (struct cpp_context): Add traditional fields.
8134         * cppmacro.c (paste_all_tokens, push_ptoken_context,
8135         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
8136         * cpptrad.c (skip_comment, lex_identifier,
8137         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
8138
8139 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
8140
8141         * gbl-ctors.h: Fix formatting.
8142         * gcc.c: Likewise.
8143         * gccspec.c: Likewise.
8144         * gcov.c: Likewise.
8145         * gcov-io.h: Likewise.
8146         * gcse.c: Likewise.
8147         * ggc-common.c: Likewise.
8148         * ggc.h: Likewise.
8149         * ggc-page.c: Likewise.
8150         * ggc-simple.c: Likewise.
8151         * global.c: Likewise.
8152         * graph.h: Likewise.
8153         * gthr-dce.h: Likewise.
8154         * gthr.h: Likewise.
8155         * gthr-posix.h: Likewise.
8156         * gthr-rtems.h: Likewise.
8157         * gthr-solaris.h: Likewise.
8158         * gthr-win32.h: Likewise.
8159
8160 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
8161
8162         Merge from pch-branch:
8163
8164         * gengtype.h (UNION_OR_STRUCT_P): New macro.
8165         * gengtype.c (write_gc_structure_fields): Use it.
8166         (write_gc_root): Use it here too.
8167
8168         * gengtype.c (write_gc_structure_fields): Assume that lengths
8169         of typenames fit into an 'int'; don't pass a size_t to "%d" in
8170         printf.
8171         (write_gc_marker_routine_for_structure): Likewise.
8172         (write_gc_types): Likewise.
8173         (write_gc_root): Likewise.
8174
8175         * varray.h (VARRAY_CLEAR): New.
8176         (varray_clear): Prototype.
8177         * varray.c (varray_clear): New.
8178         * cselib.c (reg_values_old): New.
8179         (used_regs_old): New.
8180         (cselib_init): Use cached varrays if available to avoid
8181         generating large amounts of garbage.
8182         (cselib_finish): Don't throw away old varrays.
8183
8184         * final.c (insn_addresses_): Move out of ifdef.
8185
8186         * varray.c (uses_ggc): Make more varray kinds GCable.
8187         * varray.h (union varray_data_tag): Let gengtype see
8188         fields 'generic' and 'te'.
8189         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
8190         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
8191         (reg_to_stack): Don't call VARRAY_FREE.
8192         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
8193         (insn_addresses_): Use gengtype to mark.
8194         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
8195         pointers; handle generic pointers in unused union fields.
8196         (get_output_file_with_visibility): Include cselib.h,
8197         insn-addr.h in gtype-desc.c.
8198         * function.c (prologue): Use gengtype to mark.
8199         (epilogue): Likewise.
8200         (sibcall_epilogue): Likewise.
8201         * dependence.c: Include gt-dependence.h, ggc.h.
8202         (struct def_use): Use gengtype to mark.
8203         (struct loop): Likewise.
8204         (struct induction): Likewise.
8205         (struct dependence): Likewise.
8206         (def_use_chain): Likewise.
8207         (dep_chain): Likewise.
8208         (loop_chain): Likewise.
8209         (induction_chain): Likewise.
8210         (init_dependence_analysis): Don't free anything, just clear pointers.
8211         (build_def_use): Use GGC to allocate def_use.
8212         (add_loop): Use GGC to allocate loop.
8213         (find_induction_variable): Use GGC to allocate induction.
8214         (check_node_dependence): Use GGC to allocate induction, dependence.
8215         (dump_node_dependence): Don't free varrays.
8216         (end_dependence_analysis): Likewise.
8217         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
8218         (struct elt_loc_list): Likewise.
8219         (struct elt_list): Likewise.
8220         * cselib.c: Don't include obstack.h.
8221         (hash_table): Use gengtype to mark.
8222         (reg_values): Use gengtype to mark.
8223         (used_regs): Use gengtype to mark.
8224         (cselib_obstack): Delete.
8225         (cselib_startobj): Delete.
8226         (empty_vals): Mark as deletable.
8227         (empty_elt_lists): Mark as deletable.
8228         (empty_elt_loc_lists): Mark as deletable.
8229         (new_elt_list): Use GGC to allocate struct elt_list.
8230         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
8231         (clear_table): Don't delete obstack; don't unnecessarily clear
8232         deletable variables.
8233         (new_cselib_val): Use GGC to allocate struct cselib_val.
8234         (cselib_init): Don't set up obstacks.  Use GGC to allocate
8235         hash table.
8236         (cselib_finish): Just clear variables, don't free anything.
8237         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
8238         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
8239         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
8240         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
8241         (gt-reg-stack.h): New rule.
8242         (gt-dependence.h): New rule.
8243         (gtype-desc.o): Add cselib.h, insn-addr.h.
8244
8245         * varray.c: Use only necessary headers.
8246         (element_size): New.
8247         (uses_ggc): New.
8248         (varray_init): Take type, not size.  Use GGC if appropriate.
8249         (varray_grow): Update for change to struct varray_head_tag.
8250         Use GGC if appropriate.
8251         * varray.h (struct const_equiv_data): Use gengtype.
8252         (enum varray_data_enum): New.
8253         (union varray_data_tag): Use gengtype.
8254         (struct varray_head_tag): Use gengtype.  Replace size field with
8255         enum varray_data_enum.
8256         (varray_init): Update prototype.
8257         (VARRAY_SCHED_INIT): Delete.
8258         (VARRAY_*_INIT): Update for change to varray_init.
8259         (VARRAY_SCHED): Delete.
8260         (VARRAY_PUSH_SCHED): Delete.
8261         (VARRAY_TOP_SCHED): Delete.
8262         * tree.h: Update for change to length specifier.
8263         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
8264         (clone_body): Likewise.
8265         * ssa.h (ssa_definition): Use gengtype to mark.
8266         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
8267         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
8268         * rtl.h (struct rtvec_def): Update for change to length specifier.
8269         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
8270         (struct initial_value_struct): Update for change to length specifier.
8271         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
8272         (ggc_add_tree_varray_root): Delete prototype.
8273         (ggc_mark_rtx_varray): Delete prototype.
8274         (ggc_mark_tree_varray): Delete prototype.
8275         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
8276         (ggc_add_tree_varray_root): Delete.
8277         (ggc_mark_rtx_varray): Delete.
8278         (ggc_mark_tree_varray): Delete.
8279         (ggc_mark_rtx_varray_ptr): Delete.
8280         (ggc_mark_tree_varray_ptr): Delete.
8281         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
8282         (create_varray): Delete prototype.
8283         * gengtype.c (varrays): Delete.
8284         (create_varray): Delete.
8285         (adjust_field_type): Detect array of string pointers.
8286         (process_gc_options): Remove code to handle varray_type option.
8287         (set_gc_used_type): Remove TYPE_VARRAY case.
8288         (output_escaped_param): New.
8289         (write_gc_structure_fields): Use output_escaped_param on all
8290         parameters.  Handle 'skip' with 'use_param' option.  Handle
8291         arrays of strings.  Remove TYPE_VARRAY handling.
8292         (write_gc_roots): Use boolean to detect 'length' option.
8293         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
8294         (struct_fields): Call adjust_field_type on array fields.
8295         (type): Remove VARRAY_TYPE case.
8296         (type_option): Likewise.
8297         * gengtype-lex.l: Don't consider varray_type a keyword.
8298         * function.h: Update for change to length specifier.
8299         (free_eh_status): Delete prototype.
8300         * function.c (free_after_compilation): Don't call free_eh_status.
8301         (reorder_blocks): Don't use VARRAY_FREE.
8302         * except.c (struct eh_status): Update for change to length specifier.
8303         remove varray_type specifier.
8304         (free_eh_status): Delete.
8305         * dwarf2out.c: Include gt-dwarf2out.h.
8306         (used_rtx_varray): Use gengtype to mark, move
8307         outside ifdefs.
8308         (incomplete_types): Likewise.
8309         (decl_scope_table): Likewise.
8310         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
8311         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
8312         * c-tree.h (struct lang_type): Update for change to length specifier.
8313         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
8314         * c-objc-common.c: Include gt-c-objc-common.h.
8315         (deferred_fns): Mark for gengtype.
8316         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
8317         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
8318         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
8319         (gtype-desc.o): Update dependencies.
8320         (dwarf2out.o): Add gt-dwarf2out.h.
8321         (varray.o): Update dependencies.
8322         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
8323         (gt-c-objc-common.h): New rule.
8324         (gt-dwarf2out.h): New rule.
8325         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
8326
8327         * doc/gty.texi (GTY Options): Correct spelling.
8328         (GGC Roots): Likewise.
8329         * Makefile.in (TEXI_CPP_FILES): New.
8330         (TEXI_GCC_FILES): New.
8331         (TEXI_GCCINT_FILES): New.
8332         (TEXI_CPPINT_FILES): New.
8333         ($(docdir)/cpp.info): Use new macros.
8334         ($(docdir)/gcc.info): Likewise.
8335         ($(docdir)/gccint.info): Likewise.
8336         ($(docdir)/cppinternals.info): Likewise.
8337         (cpp.dvi): Likewise.
8338         (gcc.dvi): Likewise.
8339         (gccint.dvi): Likewise.
8340         (cppinternals.dvi): Likewise.
8341
8342         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
8343         * doc/gccint.texi (Top): Include gty.texi.
8344         * doc/gty.texi: New file.
8345
8346         * bitmap.c: Include ggc.h, gt-bitmap.h.
8347         (bitmap_ggc_free): New.
8348         (bitmap_elem_to_freelist): New.
8349         (bitmap_element_free): Use bitmap_elem_to_freelist.
8350         (bitmap_element_allocate): Allow use of GGC.
8351         (bitmap_clear): Use bitmap_elem_to_freelist.
8352         (bitmap_copy): Update for change to bitmap_element_allocate.
8353         (bitmap_set_bit): Likewise.
8354         (bitmap_operation): Update for changes elsewhere.
8355         (bitmap_initialize): Allow to create bitmaps that will use GGC.
8356         * bitmap.h (struct bitmap_element_def): Use gengtype.
8357         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
8358         (bitmap_initialize): Add extra parameter.
8359         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
8360         (BITMAP_ALLOCA): Delete.
8361         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
8362         (BITMAP_GGC_ALLOC): New.
8363         * Makefile.in (gtype-desc.o): Add bitmap.h.
8364         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
8365         (GTFILES): Add bitmap.c.
8366         (gt-bitmap.h): New rule.
8367         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
8368         * basic-block.h: Update for changes to bitmap_initialize.
8369         * except.c (exception_handler_label_map): Move into...
8370         (struct eh_status): Here.
8371         (struct eh_region): Make 'aka' GCable.
8372         (free_eh_status): Don't need to specially handle
8373         exception_handler_label_map.
8374         (add_ehl_entry): Update for changes to exception_handler_label_map.
8375         (find_exception_handler_labels): Likewise.
8376         (remove_exception_handler_label): Likewise.
8377         (maybe_remove_eh_handler): Likewise.
8378         (for_each_eh_label): Likewise.
8379         (remove_eh_handler): Allocate 'aka' using GGC.
8380         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
8381         to list of includes.
8382
8383         * gengtype.c (write_gc_marker_routine_for_structure): Name
8384         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
8385         (write_gc_types): Arrange for the tests with NULL to be inlined.
8386         (write_gc_roots): Update uses of procedure pointers.
8387         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
8388
8389         * Makefile.in (explow.o): Add dependency on gt-explow.h.
8390         (sdbout.o): Add dependency on gt-sdbout.h.
8391
8392         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
8393         (mem_attrs_htab): Likewise.
8394         (init_emit_once): Don't call ggc_add_deletable_htab.
8395         * fold-const.c (size_htab): Use gengtype to clear unused entries.
8396         (size_int_type_wide): Don't call ggc_add_deletable_htab.
8397         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
8398         parameters, use them, change callers.
8399         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
8400         (write_gc_roots): Handle 'if_marked' option.
8401         (main): Don't need to call set_gc_used_type any more.
8402         * ggc.h (ggc_htab_marked_p): Delete.
8403         (ggc_htab_mark): Delete.
8404         (struct ggc_cache_tab): New.
8405         (gt_ggc_cache_rtab): New declaration.
8406         * ggc-common.c (struct d_htab_root): Delete.
8407         (d_htab_roots): Delete.
8408         (ggc_add_deletable_htab): Delete.
8409         (ggc_htab_delete): Handle new htab-deleting mechanism.
8410         (ggc_mark_roots): Use new htab-deleting mechanism.
8411         * tree.c (type_hash_table): Use gengtype to clear unused entries.
8412         Make static.
8413         (init_obstacks): Don't call ggc_add_deletable_htab.
8414
8415         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
8416         (struct hashed_entry): Likewise.
8417         (nst_method_hash_list): Likewise.
8418         (cls_method_hash_list): Likewise.
8419         (HASH_ALLOC_LIST_SIZE): Delete.
8420         (ATTR_ALLOC_LIST_SIZE): Delete.
8421         * objc/objc-act.c (hash_init): Use ggc to allocate
8422         nst_method_hash_list, cls_method_hash_list.
8423         (hash_enter): Use ggc to allocate; allocate one entry at a time.
8424         (hash_add_attr): Likewise.
8425         (ggc_mark_hash_table): Delete.
8426         (objc_act_parse_init): Delete.
8427         (objc_init): Delete reference to objc_act_parse_init.
8428         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
8429         obstack.h.  Replace references to 'struct hash_table' with htab_t.
8430         (struct symbol_hash_entry): Replace hash header with key field.
8431         (struct file_hash_entry): Replace hash header with key field.
8432         (struct demangled_hash_entry): Replace hash header with key field.
8433         (hash_string_eq): New.
8434         (hash_string_hash): New.
8435         (symbol_hash_newfunc): Delete.
8436         (symbol_hash_lookup): Modify to use htab_t.
8437         (file_hash_newfunc): Delete.
8438         (file_hash_lookup): Modify to use htab_t.
8439         (demangled_hash_newfunc): Delete.
8440         (demangled_hash_lookup): Modify to use htab_t.
8441         (tlink_init): Modify to use htab_t.
8442         * hash.h: Delete.
8443         * hash.c: Delete.
8444         * ggc.h: Delete forward structure declarations.
8445         Delete prototypes for deleted functions.
8446         * ggc-common.c: Don't include hash.h.
8447         (ggc_add_tree_hash_table_root): Delete.
8448         (ggc_mark_tree_hash_table_entry): Delete.
8449         (ggc_mark_tree_hash_table): Delete.
8450         (ggc_mark_tree_hash_table_ptr): Delete.
8451         * gengtype.c (write_gc_structure_fields): Allow param_is option.
8452         (write_gc_marker_routine_for_structure): Use visibility of
8453         the parameter if there is one.
8454         * function.c: Replace hash.h with hashtab.h.  Replace references
8455         to 'struct hash_table *' with htab_t.
8456         (struct insns_for_mem_entry): Include a plain key.
8457         (fixup_var_refs_insns_with_hash): Update to use htab_t.
8458         (insns_for_mem_newfunc): Delete.
8459         (insns_for_mem_hash): Update to use htab_t.
8460         (insns_for_mem_comp): Likewise.
8461         (insns_for_mem_walk): Likewise.
8462         * c-lang.c: Include ggc.h.
8463         * Makefile.in (OBJS): Remove hash.o.
8464         (c-lang.o): Add GGC_H.
8465         (COLLECT2_OBJS): Remove hash.o.
8466         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
8467         (ggc-common.o): Remove hash.h.
8468         (function.o): Remove hash.h, add HASHTAB_H.
8469         (genautomata.o): Remove hash.h, add HASHTAB_H.
8470
8471         * varasm.c (mark_const_str_htab_1): Delete.
8472         (mark_const_str_htab): Delete.
8473         (const_str_htab_del): Delete.
8474         (const_str_htab): Use gengtype to mark.
8475         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
8476         allocate them.
8477         * tree.c (mark_tree_hashtable_entry): Delete.
8478         (mark_tree_hashtable): Delete.
8479         * tree.h (mark_tree_hashtable): Delete prototype.
8480         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
8481         (ggc_mark): Likewise.
8482         (ggc_calloc): New.
8483         (htab_create_ggc): New.
8484         * ggc-common.c (ggc_calloc): New.
8485         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
8486         (struct type): Add param_struct structure.
8487         * gengtype.c (param_structs): New.
8488         (adjust_field_type): Handle param_is option.
8489         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
8490         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
8491         (write_gc_structure_fields): Add new PARAM parameter.  Update
8492         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
8493         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
8494         Use it to generate function name.  Update callers.
8495         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
8496         Process them.
8497         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
8498         option.
8499         (main): Define PTR as pointer-to-scalar.  Don't specially
8500         mark deferred_string or ehl_map_entry.
8501         * gengtype-yacc.y (PARAM_IS): Add new token.
8502         (externstatic): Use adjust_field_type.
8503         (type_option): Add PARAM_IS.
8504         * gengtype-lex.l: Add rule for typedef of function pointers.
8505         Add rule for PARAM_IS.
8506         (IWORD): Add size_t.
8507         * except.c (exception_handler_label_map): Use gengtype to mark.
8508         (type_to_runtime_map): Likewise.
8509         (mark_ehl_map_entry): Delete.
8510         (mark_ehl_map): Delete.
8511         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
8512         (t2r_mark_1): Delete.
8513         (t2r_mark): Delete.
8514         * Makefile.in (gtype-desc.o): Correct dependencies.
8515         (GTFILES): Add hashtab.h.
8516         (genautomata.o): Actually uses hashtab.h.
8517
8518         * Makefile.in (stringpool.o): Add $(GGC_H).
8519         (dwarf2asm.o): Likewise.
8520         (GTFILES): Add hashtable.h.
8521         * c-common.h (struct c_common_identifier): Use gengtype.
8522         * c-decl.h (c_mark_tree): Delete.
8523         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
8524         * c-tree.h (struct lang_identifier): Use gengtype.
8525         (union lang_tree_node): New.
8526         (c_mark_tree): Delete prototype.
8527         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
8528         dwarf2_debug_hooks.
8529         * gengtype-lex.l (IWORD): Allow 'bool'.
8530         (ptr_alias): Match.
8531         * gengtype-yacc.y (ALIAS): New token.
8532         (type_option): New rule.
8533         (option): Use type_option.
8534         * gengtype.c (process_gc_options): New.
8535         (set_gc_used_type): Use it.
8536         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
8537         Add new variable 't' to hold the type of the field being processed.
8538         Add more error checking.  Use UNION_P when looking at 'desc' option.
8539         Handle language-specific structures containing other
8540         language-specific structures.
8541         (write_gc_types): Handle 'ptr_alias' option.
8542         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
8543         * ggc-common.c (ggc_pending_trees): Delete.
8544         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
8545         (ggc_mark_trees): Delete.
8546         (gt_ggc_m_tree_node): Delete.
8547         * ggc.h (ggc_pending_trees): Delete.
8548         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
8549         * hashtable.h (ht_identifier): Use gengtype.
8550         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
8551         * langhooks.h (struct lang_hooks): Delete mark_tree.
8552         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
8553         anyway.
8554         * system.h: Poison LANG_HOOKS_MARK_TREE.
8555         * tree.c (tree_node_structure): New.
8556         * tree.h (struct tree_common): Use gengtype.
8557         (struct tree_int_cst): Likewise.
8558         (struct tree_real_cst): Likewise.
8559         (struct tree_string): Likewise.
8560         (struct tree_complex): Likewise.
8561         (struct tree_vector): Likewise.
8562         (struct tree_identifier): Likewise.
8563         (struct tree_list): Likewise.
8564         (struct tree_vec): Likewise.
8565         (struct tree_exp): Likewise.
8566         (struct tree_block): Likewise.
8567         (struct tree_type): Likewise.
8568         (struct tree_decl): Likewise.
8569         (enum tree_structure_enum): New.
8570         (union tree_node): Use gengtype, with an alias.
8571         (tree_node_structure): Prototype.
8572         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
8573
8574         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
8575         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
8576         to LANG_HOOKS_FUNCTION_FINAL.
8577         * Makefile.in (GTFILES): Add bitmap.h.
8578         * except.c (struct eh_region): Mark field 'aka' to be skipped.
8579
8580         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
8581         (alpha_init_machine_status): Give proper type.
8582         * Makefile.in (c-lang.o): Depend on gtype-c.h.
8583         (optabs.o): Depend on gt-optabs.h.
8584         (GTFILES): Add optabs.o.
8585         (gt-optabs.h): Add rule.
8586         * optabs.c: Include gt-optabs.h.
8587
8588         * gengtype.c (set_gc_used_type): Correct some errors in last change.
8589         (write_gc_structure_fields): If a field which should be NULL is
8590         not, abort.
8591         * c-pragma.c: Move struct align_stack and variable alignment_stack
8592         out from the ifdef.
8593
8594         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
8595         * config/xtensa/xtensa.c: Include gt-cris.h.
8596         (struct machine_function): Use gengtype to mark.
8597         * config/mmix/mmix.h (struct machine_function): Use gengtype
8598         to mark.
8599         * config/cris/t-cris: Add dependencies for gt-cris.h.
8600         * config/cris/cris.c: Include gt-cris.h.
8601         (struct machine_function): Use gengtype to mark.
8602         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
8603         to mark.
8604         * doc/tm.texi (Per-Function Data): Delete references to
8605         mark_machine_status.
8606         * config/ia64/ia64.c (ia64_override_options): Don't set
8607         mark_machine_status.
8608         * config/i386/i386.c (override_options): Likewise.
8609         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
8610         * config/arm/arm.c (arm_init_expanders): Likewise.
8611         * config/alpha/alpha.c (override_options): Likewise.
8612         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
8613         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
8614         (write_gc_structure_fields): Don't handle 'really' option.
8615         Handle 'maybe_null' option.
8616         (write_gc_types): Handle 'maybe_null' option.
8617         * function.h (struct function): Don't use "really".
8618         (mark_machine_status): Delete declaration.
8619         (mark_lang_status): Delete declaration.
8620         (gt_ggc_mr_machine_function): Delete prototype.
8621         (gt_ggc_mr_language_function): Delete prototype.
8622         * function.c (mark_machine_status): Delete.
8623         (mark_lang_status): Delete.
8624         (gt_ggc_mr_machine_function): Delete.
8625         (gt_ggc_mr_language_function): Delete.
8626         * c-tree.h (mark_c_function_context): Delete prototype.
8627         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
8628         * c-decl.c (struct language_function): Rename from struct
8629         c_language_function.  Update uses.  Use gengtype to mark.
8630         (mark_c_function_context): Delete.
8631         * c-common.h (struct c_language_function): Rename from struct
8632         language_function.
8633         (mark_stmt_tree): Delete prototype.
8634         (c_mark_lang_decl): Delete prototype.
8635         (mark_c_language_function): Delete prototype.
8636         * c-common.c (mark_stmt_tree): Delete.
8637         (c_mark_lang_decl): Delete.
8638         (mark_c_language_function): Delete.
8639
8640         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
8641         (lang_bitmap): New typedef.  Use where appropriate.
8642         (struct type): Add gc_used field, lang_struct field.
8643         (UNION_P): New macro.
8644         (new_structure): New prototype.
8645         (find_structure): Remove 'pos' parameter.  Change all callers.
8646         * gengtype-lex.l: Update for changes to find_structure.
8647         * gengtype-yacc.y (typedef_struct): Use new_structure.
8648         (yacc_ids): Suppress warning.
8649         (type): Use new_structure.
8650         * gengtype.c (string_type): Update for changes to struct type.
8651         (find_structure): Just find a structure, don't worry about
8652         creating one.
8653         (new_structure): New.
8654         (note_yacc_type): Use new_structure.
8655         (set_gc_used_type): New.
8656         (set_gc_used): New.
8657         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
8658         (write_gc_types): Handle TYPE_LANG_STRUCT.
8659         (write_gc_marker_routine_for_structure): New.
8660         (main): Call set_gc_used.  Add some calls to set_gc_used_type
8661         for places where GCC doesn't use gengtype properly yet.
8662         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
8663         (gt_ggc_m_tree_node): Likewise.
8664
8665         * varasm.c (copy_constant): Call expand_constant if we hit
8666         something we can't recognise.
8667
8668         * ggc-common.c (ggc_mark_rtvec_children): Delete.
8669         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
8670         (lang_mark_false_label_stack): Delete.
8671         * rtl.h (struct rtvec_def): Use gengtype to mark.
8672         * ggc.h (ggc_mark_rtvec): Delete.
8673         (gt_ggc_m_rtvec_def): Delete.
8674         (ggc_mark_nonnull_tree): Delete.
8675         (ggc_mark_rtvec_children): Delete prototype.
8676         (lang_mark_false_label_stack): Delete declaration.
8677
8678         * gengtype.h (note_yacc_type): Add prototype.
8679         * gengtype.c (note_yacc_type): New function.
8680         * gengtype-lex.l: Add lexer support for yacc files.
8681         * gengtype-yacc.y (start): Extract union from yacc files.
8682         (yacc_union): New rule.
8683         (yacc_typematch): New rule.
8684         (yacc_ids): New rule.
8685         (enum_items): Tweak for efficiency.
8686         (optionseq): Likewise.
8687
8688         * c-common.h (struct language_function): Use gengtype.
8689         (struct c_lang_decl): Likewise.
8690         * c-tree.h (struct lang_decl): Likewise.
8691         (struct lang_type): Likewise.
8692         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
8693         tree language substructures.
8694
8695         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
8696         ggc_mark_tree.
8697         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
8698
8699         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
8700
8701         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
8702         mark. Remove 'data.block.cleanup_ptr' field.
8703         (struct stmt_status): Use usual technique to mark struct nesting.
8704         (gt_ggc_mr_nesting_cond): Delete.
8705         (gt_ggc_mr_nesting_loop): Delete.
8706         (gt_ggc_mr_nesting_block): Delete.
8707         (gt_ggc_mr_nesting_case_stmt): Delete.
8708         (expand_start_cond): Set discriminator.
8709         (expand_start_loop): Likewise.
8710         (expand_start_null_loop): Likewise.
8711         (expand_start_bindings_and_block): Set discriminator.  Don't set
8712         deleted fields.
8713         (expand_decl_cleanup): Replace 'cleanup_ptr' with
8714         &thisblock->data.block.cleanups.
8715         (expand_start_case): Set discriminator.
8716         (expand_start_case_dummy): Set discriminator.
8717
8718         * ggc-callbacks.c: Remove.
8719
8720         * gengtype.h (struct type): Add 'u.s.bitmap' field.
8721         (find_structure): Add 'pos' parameter.
8722         * gengtype-lex.l: Update callers to find_structure.
8723         * gengtype-yacc.y: Likewise.
8724         * gengtype.c (find_structure): Allow for structures to be defined
8725         in multiple language backends.
8726         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
8727         (counter): Rename to gc_counter.
8728         (write_gc_structure_fields): Fail when writing out fields for
8729         an incomplete structure.  Ignore arrays of scalars.  Handle
8730         'tree_vec' special.
8731         (write_gc_types): Reset counter for each procedure written.
8732
8733         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
8734         (free_case_nodes): Delete.
8735         (expand_end_case_type): Delete call to free_case_nodes.
8736
8737         * Makefile.in (cselib.o): Include gt-<filename>.h.
8738         (gcse.o): Likewise.
8739         (profile.o): Likewise.
8740         (alias.o): Likewise.
8741         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
8742         alphabetize backend files.
8743         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
8744         * alias.c: Use gengtype for roots.
8745         * c-common.h (struct stmt_tree_s): Use gengtype.
8746         * c-decl.c: Use gengtype for roots.
8747         * cselib.c: Use gengtype for roots.
8748         * expr.c: Use gengtype for roots.
8749         * fold-const.c: Use gengtype for roots.
8750         * gcse.c: Use gengtype for roots.
8751         * gengtype-lex.l: Handle typedefs of function types.
8752         Allow for empty array bounds.
8753         Allow processing to stop on initialisers.
8754         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
8755         (semiequal): New rule.
8756         * gengtype.c (create_file): Tidy output files.
8757         (get_output_file_with_visibility): Fix paren warning.  Fix bug
8758         involving multiple input files mapping to one output file.
8759         (write_gc_structure_fields): Skip arrays of scalars.
8760         (write_gc_types): Tidy output files.
8761         (write_gc_root): New function.
8762         (write_gc_roots): Fix bugs, add support for roots that are
8763         structures.
8764         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
8765         (ggc_mark_tree_ptr): Delete.
8766         (ggc_add_rtx_root): Delete.
8767         (ggc_add_tree_root): Delete.
8768         (ggc_del_root): Delete.
8769         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
8770         allocate struct initial_value_struct.
8771         * profile.c: Use gengtype for roots.
8772         * sdbout.c: Use gengtype for roots.
8773         * varasm.c (mark_weak_decls): Delete unused prototype.
8774         (mark_const_hash_entry): Delete unused function.
8775         * config/darwin-protos.h: Use gengtype for roots.
8776         (machopic_add_gc_roots): Delete.
8777         * config/arm/arm.c: Use gengtype for roots.
8778         * config/arm/arm.h: Use gengtype for roots.
8779         * config/c4x/c4x-protos.h: Use gengtype for roots.
8780         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
8781         * config/d30v/d30v-protos.h: Use gengtype for roots.
8782         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
8783         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
8784         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
8785         * config/ia64/ia64-protos.h: Use gengtype for roots.
8786         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
8787         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
8788         * config/m68hc11/m68hc11.c (z_reg): Make global.
8789         (z_reg_qi): Make global.
8790         (m68hc11_add_gc_roots): Delete.
8791         * config/mcore/mcore-protos.h: Use gengtype for roots.
8792         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
8793         * config/mips/mips.c (mips_add_gc_roots): Delete.
8794         * config/mips/mips.h: Use gengtype for roots.
8795         * config/mmix/mmix.c (override_options): Use gengtype for roots.
8796         * config/mmix/mmix.h: Use gengtype for roots.
8797         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
8798         * config/mn10200/mn10200.h: Use gengtype for roots.
8799         * config/pa/pa.c: Use gengtype for roots, marking.
8800         (struct deferred_plabel): Use GGC, gengtype.
8801         (pa_add_gc_roots): Delete.
8802         (mark_deferred_plabels): Delete.
8803         * config/pj/pj-protos.h: Use gengtype for roots.
8804         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
8805         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
8806         machopic_add_gc_roots.
8807         * config/rs6000/rs6000.h: Use gengtype for roots.
8808         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
8809         (gt-darwin.h): Add rule.
8810         * config/sh/sh.c: Use gengtype for roots.
8811         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
8812         (gt-sh.h): Add rule.
8813         * config/sparc/sparc.c: Use gengtype for roots.
8814         (sparc_add_gc_roots): Delete.
8815         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
8816         (mark_ultrasparc_pipeline_state): Delete.
8817         * config/sparc/sparc.h: Use gengtype for roots.
8818
8819         * Makefile.in (c-parse.o): Update dependencies.
8820         (c-common.o): Likewise.
8821         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
8822         Add dependencies for the files they generate.
8823         * c-common.c: Replace ggc_add_* uses with GTY annotations.
8824         * c-common.h: Likewise.
8825         * c-decl.c: Likewise.
8826         (gt_ggc_mp_binding_level): Delete.
8827         * c-lang.c: Include gtype-c.h.
8828         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
8829         gt-c-parse.h.
8830         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
8831         (gt_ggc_mp_align_stack): Delete.
8832         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
8833         * function.c: Replace ggc_add_* uses with GTY annotations.
8834         (gt_ggc_mp_function): Delete.
8835         * function.h: Replace ggc_add_* uses with GTY annotations.
8836         * gengtype.c (lang_names): New.
8837         (NUM_BASE_FILES): New.
8838         (open_base_files): Create language base files.
8839         (startswith): New.
8840         (get_file_basename): New.
8841         (get_base_file_bitmap): New.
8842         (get_output_file_with_visibility): Rename from get_output_file.
8843         Add more mappings for various C/Objc filenames.
8844         (finish_root_table): New.
8845         (write_gc_roots): Handle dependencies and scoping properly.
8846         * gengtype.h: Add prototypes for new functions.
8847         * ggc-common.c (struct deletable_root): Delete.
8848         (deletables): Delete.
8849         (ggc_add_deletable_root): Delete.
8850         (ggc_mark_roots): No need to deal with deleted functionality.
8851         * ggc.h (ggc_add_deletable_root): Delete prototype.
8852         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
8853         (gtype-objc.h): Add rule to create.
8854         * objc/config-lang.in (gtfiles): New.
8855         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
8856         ggc_add_* with GTY markers.  Include gtype-objc.h.
8857         (ggc_mark_imp_list): Delete.
8858         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
8859         * objc/objc-lang.c: Random Whitespace Change.
8860
8861         * except.h (exception_handler_labels): Delete.
8862         (get_exception_handler_labels): New.
8863         * except.c (exception_handler_labels): Delete.
8864         (struct eh_status): Add exception_handler_labels field.
8865         (doing_eh): Don't add exception_handler_labels as root.
8866         (free_eh_status): Don't need to free exception_handler_labels.
8867         (get_exception_handler_labels): New.
8868         (find_exception_handler_labels): Update for move of
8869         exception_handler_labels.
8870         (remove_exception_handler_label): Likewise.
8871         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
8872         * jump.c (rebuild_jump_labels): Likewise.
8873         * loop.c (find_and_verify_loops): Likewise.
8874         * sched-rgn.c (is_cfg_nonregular): Likewise.
8875
8876         * gengtype.c (write_gc_structure_fields): Handle variable-length
8877         TYPE_ARRAYs.
8878
8879         * varasm.c (struct weak_syms): Use GGC, gengtype.
8880         (mark_weak_decls): Delete.
8881         (weak_decls): Likewise.
8882         (add_weak): Likewise.
8883         (remove_from_pending_weak_list): Likewise.
8884         (init_varasm_once): Likewise.
8885
8886         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
8887         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
8888         stor-layout.c, regclass.c, and lists.c.
8889         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
8890         gt-regclass.h and gt-lists.h on s-gtype.
8891         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
8892         * except.c: Use gengtype for roots.
8893         * explow.c: Use gengtype for roots.  Include gt-explow.h.
8894         * expr.h (init_stor_layout_once): Delete prototype.
8895         * function.c: Use gengtype for roots.
8896         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
8897         * gengtype-yacc.y (start): Can also be an externstatic.
8898         (externstatic): New production.
8899         (struct_fields): Correct array bounds inversion for 2-d arrays.
8900         * gengtype.c (variables): New variable.
8901         (note_variable): New function.
8902         (get_output_file): Include libfuncs.h into gtype-desc.c.
8903         (get_output_file_name): New function.
8904         (write_gc_structure_fields): Suppress warnings.
8905         (write_gc_types): Make static.
8906         (put_mangled_filename): New function.
8907         (write_gc_roots): New function.
8908         (main): Call write_gc_roots.
8909         * gengtype.h (note_variable): Prototype.
8910         (get_output_file_name): Prototype.
8911         (write_gc_types): Delete prototype.
8912         * ggc.h: Clean up unnecessary structure predefinitions.
8913         (struct ggc_root_tab): Define.
8914         (gt_ggc_m_rtx_def): Make function, not macro.
8915         (gt_ggc_m_tree_node): Likewise.
8916         * libfuncs.h: Use gengtype for roots.
8917         * lists.c: Use gengtype for roots.  Include gt-lists.h.
8918         (init_EXPR_INSN_LIST_cache): Delete.
8919         * optabs.c: Use gengtype for roots.
8920         (gt_ggc_mp_optab): Delete.
8921         * optabs.h: Use gengtype for roots.
8922         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
8923         * rtl.h: Use gengtype for roots.
8924         (init_EXPR_INSN_LIST_cache): Delete prototype.
8925         * stor-layout.c: Use gengtype for roots.
8926         Include gt-stor-layout.h.
8927         (init_stor_layout_once): Delete.
8928         * toplev.c: Use gengtype for roots.  Delete calls to deleted
8929         routines.
8930         * tree.c: Use gengtype for roots.
8931         * tree.h: Use gengtype for roots.
8932         * varasm.c: Use gengtype for roots.
8933
8934         * Makefile.in (GTFILES): Add @all_gtfiles@.
8935         * configure: Regenerate.
8936         * configure.in: Construct all_gtfiles from the gtfiles definitions
8937         in config-lang.in.
8938         * gengtype-yacc.y (type): Warn about duplicate structure names.
8939         * gengtype.c (get_output_file): Handle .c files in language
8940         subdirectories.
8941
8942         * Makefile.in (GTFILES): Run gengtype on all the config files
8943         and on the target .c file.
8944         * except.c (mark_eh_region): Delete.
8945         (init_eh_for_function): Use GGC on struct eh_status.
8946         (mark_eh_status): Delete.
8947         (free_eh_status): Use GGC.
8948         (expand_eh_region_start): Use GGC to
8949         (collect_eh_region_array): Allocate last_region_number using GGC.
8950         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
8951         (remove_eh_handler): Let GGC free struct eh_region.
8952         (add_call_site): Use GGC to reallocate call_site_record array.
8953         * function.c (init_machine_status): Update calling sequence.
8954         (mark_machine_status): Likewise.
8955         (mark_lang_status): Likewise.
8956         (prepare_function_start): Update init_machine_status call.
8957         (mark_function_status): Delete.
8958         (maybe_mark_struct_function): Delete.
8959         (ggc_mark_struct_function): Delete.
8960         (gt_ggc_mp_function): New.
8961         (gt_ggc_mr_machine_function): New.
8962         (gt_ggc_mr_language_function): New.
8963         (init_function_once): Use canonical names.
8964         * function.h (struct function): Use gengtype.
8965         (init_machine_status): Return the structure.
8966         (mark_machine_status): Take a 'void *'.
8967         (mark_lang_status): Likewise.
8968         * ggc-common.c (ggc_mark_trees): Use canonical name for
8969         ggc_mark_struct_function.
8970         * tree.h (ggc_mark_struct_function): Delete prototype.
8971         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
8972         (alpha_init_machine_status): Likewise.
8973         (override_options): Use canonical name for alpha_mark_machine_status.
8974         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
8975         * config/arm/arm.h (struct machine_function): Use gengtype.
8976         * config/arm/arm.c (arm_mark_machine_status): Delete.
8977         (arm_init_machine_status): Update calling sequence.
8978         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
8979         * config/cris/cris.c (cris_init_machine_status): Update
8980         calling sequence.
8981         * config/d30v/d30v.h (struct machine_function): Use gengtype.
8982         * config/d30v/d30v.c (d30v_init_machine_status): Update
8983         calling sequence.
8984         (d30v_mark_machine_status): Delete.
8985         * config/i386/i386.c: Include gt-i386.h.
8986         (struct machine_function): Use gengtype.
8987         (ix86_init_machine_status): Update calling sequence.
8988         (ix86_mark_machine_status): Delete.
8989         (override_options): Use canonical namke for ix86_mark_machine_status.
8990         * config/ia64/ia64.h (struct machine_function): Use gengtype.
8991         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
8992         sequence.
8993         (ia64_mark_machine_status): Delete.
8994         (ia64_override_options): Use canonical name for
8995         ia64_mark_machine_status.
8996         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
8997         sequence.
8998         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
8999         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
9000         * gengtype.c (get_output_file): Fix warning.
9001         (main): Add prototype to suppress warning.
9002         * tree.c: Remove tree_hash_mark prototype.
9003
9004         * tree.h (init_stmt): Delete prototype.
9005         * toplev.c (lang_independent_init): Don't call init_stmt.
9006         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
9007         (stmt_obstack): Delete.
9008         (POPSTACK): No need to free 'struct nesting'.
9009         (gt_ggc_mr_nesting_cond): Use canonical names.
9010         (gt_ggc_mr_nesting_loop): Use canonical names.
9011         (gt_ggc_mr_nesting_block): Use canonical names.
9012         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
9013         (mark_stmt_status): Delete.
9014         (init_stmt): Delete.
9015         (clear_last_expr): Clear both last_expr_type and last_expr_value.
9016         Use it everywhere that last_expr_type was cleared.
9017         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
9018         (zap_lists): Delete.
9019         * ggc.h (ggc_add_deletable_root): Prototype.
9020         (mark_stmt_status): Remove prototype.
9021         * ggc-common.c (ggc_add_deletable_root): New.
9022         (ggc_mark_roots): Handle deletable roots.
9023         * function.c (ggc_mark_struct_function): Use canonical name
9024         for mark_stmt_status.
9025         * emit-rtl.c (free_sequence_stack): New.
9026         (start_sequence): Use a freelist for sequences.
9027         (end_sequence): Likewise.
9028         (init_emit_once): Add free_sequence_stack as a deleteable root.
9029         * c-pragma.c Include gt-c-pragma.h.
9030         (struct align_stack): Use gengtype.
9031         (push_alignment): Use GGC for struct align_stack.
9032         (mark_align_stack): Delete.
9033         (gt_ggc_mp_align_stack): New.
9034         (init_pragma): Use canonical name for mark_align_stack.
9035         * c-decl.c: Include gt-c-decl.h.
9036         (struct binding_level): Use gengtype.
9037         (make_binding_level): Use GGC; handle the freelist here.
9038         (pop_binding_level): New.
9039         (pushlevel): Move code into make_binding_level.
9040         (push_label_level): Likewise.
9041         (poplevel): Move code into pop_binding_level.
9042         (pop_label_level): Likewise.
9043         (mark_binding_level): Delete.
9044         (gt_ggc_mp_binding_level): New.
9045         (c_init_decl_processing): Use canonical name for mark_binding_level.
9046         Add free_binding_level as deletable root.
9047         (mark_c_function_context): Use canonical name for mark_binding_level.
9048         * Makefile.in (c-decl.o): Add gt-c-decl.h.
9049         (c-pragma.o): Add gt-c-pragma.h.
9050         (GTFILES): Add c-decl.c and c-pragma.c.
9051         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
9052
9053         * tree.c (struct type_hash): Use gengtype.
9054         (init_obstacks): Use canonical name for type_hash_mark.
9055         (type_hash_mark): Delete.
9056         Include gt-tree.h.
9057         * rtl.h (struct mem_attrs): Use gengtype.
9058         * optabs.h (struct optab): Use gengtype.
9059         * optabs.c (expand_binop): Squish signed/unsigned warning.
9060         (mark_optab): Make local, use canonical name, use autogenerated
9061         marker procedure.
9062         (init_optabs): Use canonical name for mark_optab.
9063         (new_optab): Use GGC to allocate optabs.
9064         * ggc.h: Delete mark_optab prototype.
9065         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
9066         mem_attrs marker procedure.
9067         * gengtype.c (get_output_file): Include headers in gtype-desc.c
9068         explicitly rather than deducing them from file names.
9069         (write_gc_structure_fields): Handle arrays of structures.
9070         (main): Return non-zero exit code if errors occur during output.
9071         * emit-rtl.c (mem_attrs_mark): Delete.
9072         (init_emit_once): Use canonical name for mem_attrs marker procedure.
9073         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
9074         (tree.o): Depend on gt-tree.h.
9075         (GTFILES): Add rtl.h, optabs.h, tree.c.
9076         (gt-tree.h): Add it to s-gtype rule.
9077
9078         * .cvsignore: Ignore gengtype flex/bison generated files.
9079         * Makefile.in (GGC_H): Add gtype-desc.h.
9080         (OBJS): Add gtype-desc.o.
9081         (GEN): Add gengtype.
9082         (STAGESTUFF): Add gengtype.
9083         (varasm.o): Add gt-varasm.h.
9084         (stmt.o): Add gt-stmt.h.
9085         (except.o): Add gt-except.h.
9086         (integrate.o): Add gt-integrate.h.
9087         (GTFILES): New.
9088         Add new rules for new files.
9089         * configure: Regenerate.
9090         * configure.in: Correct defaults.h paths.
9091         * emit-rtl.c (mark_sequence_stack): Delete.
9092         (mark_emit_status): Delete.
9093         (start_sequence): Allocate sequence structures using GGC.
9094         (end_sequence): Allocate sequence structures using GGC.
9095         * except.c: Use gengtype for various structures.  Include
9096         gt-except.h.
9097         * expr.c (mark_expr_status): Delete.
9098         * function.c: Use gengtype for various structures.  Include
9099         gt-function.h.
9100         (mark_function_status): Use standard gt_ggc names for marker functions.
9101         (ggc_mark_struct_function): Likewise.
9102         * function.h: Use gengtype for various structures.
9103         * gengtype-lex.l: New file.
9104         * gengtype-yacc.y: New file.
9105         * gengtype.c: New file.
9106         * gengtype.h: New file.
9107         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
9108         the standard names.  Remove some now-unnecessary prototypes.
9109         * integrate.c: Use gengtype for various structures.  Include
9110         gt-integrate.h.
9111         (mark_hard_reg_initial_vals): Delete.
9112         * integrate.h (mark_hard_reg_initial_vals): Delete.
9113         * stmt.c: Use gengtype for various structures.  Include
9114         gt-stmt.h.
9115         (mark_case_node): Delete.
9116         (mark_goto_fixup): Delete.
9117         (mark_stmt_status): Use standard gt_ggc names for marker functions.
9118         * system.h: Define GTY to empty.   In flex/bison files,
9119         don't poison malloc or realloc, instead just define them to
9120         xmalloc and xrealloc.
9121         * varasm.c: Use gengtype for various structures.  Include
9122         gt-varasm.h.  Use standard gt_ggc names for marker functions.
9123         (mark_pool_constant): Delete.
9124         (mark_varasm_status): Delete.
9125         (decode_rtx_const): #if 0 out non-typesafe hack.
9126
9127         * function.h (free_lang_status): Mark as obsolete.
9128         * function.c (free_lang_status): Mark as obsolete.
9129         * c-decl.c (push_c_function_context): Use GC to allocate and free
9130         struct language_function.
9131         (pop_c_function_context): Likewise.
9132         * c-common.c (mark_c_language_function): Mark struct
9133         language_function.
9134
9135         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
9136         Document that the machine_function structures must be allocated
9137         using GC.  Update mark_machine_status documentation.
9138         * function.h: Don't declare free_machine_status.
9139         * function.c (free_machine_status): Don't define.
9140         (free_after_compilation): Don't call free_machine_status.
9141         (ggc_mark_struct_function): Mark f->machine.  Call
9142         mark_machine_status only on non-NULL pointers.
9143         * system.h: Poison free_machine_status.
9144         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
9145         struct machine_function.
9146         (xtensa_free_machine_status): Delete.
9147         (override_options): Don't set free_machine_status.
9148         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
9149         free_machine_status.
9150         (rs6000_init_machine_status): Use GC on struct machine_function.
9151         (rs6000_free_machine_status): Delete.
9152         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
9153         machine_function.
9154         (ia64_mark_machine_status): Likewise.
9155         (ia64_free_machine_status): Delete.
9156         (ia64_override_options): Don't set free_machine_status.
9157         * config/i386/i386.c (override_options): Don't set
9158         free_machine_status.
9159         (ix86_init_machine_status): Use GC on struct machine_function.
9160         (ix86_mark_machine_status): Likewise.
9161         (ix86_free_machine_status): Delete.
9162         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
9163         machine_function.
9164         (d30v_mark_machine_status): Likewise.
9165         (d30v_free_machine_status): Delete.
9166         (d30v_init_expanders): Don't set free_machine_status.
9167         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
9168         machine_function.
9169         (arm_init_machine_status): Likewise.
9170         (arm_free_machine_status): Delete.
9171         (arm_init_expanders): Don't set free_machine_status.
9172         * config/alpha/alpha.c (override_options): Don't set
9173         free_machine_status.
9174         (alpha_init_machine_status): Use GC on struct machine_function.
9175         (alpha_mark_machine_status): Likewise.
9176         (alpha_free_machine_status): Delete.
9177
9178         * varasm.c (compare_constant): Fix typo.
9179
9180         * varasm.c: Don't include obstack.h.
9181         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
9182         (struct rtx_const): Give substructures names, improve formatting.
9183         (struct constant_descriptor): Delete.
9184         (struct constant_descriptor_tree): New, based on constant_descriptor.
9185         (const_hash_table): Is a hash table of trees.
9186         (mark_const_hash_entry): Is used for hashes of trees.  Mark
9187         constant_descriptor_tree structure.
9188         (mark_const_str_htab_1): Mark deferred_string structure.
9189         (compare_constant): Rewrite to compare trees.
9190         (compare_constant_1): Delete.
9191         (record_constant): Delete.
9192         (record_constant_1): Delete.
9193         (output_constant_def): Use struct constant_descriptor_tree.
9194         Don't duplicate trees twice.
9195         (struct constant_descriptor_rtx): New.
9196         (struct pool_constant): Used for rtx constants.
9197         (init_varasm_status): Update for change to struct varasm_status.
9198         (mark_varasm_status): Likewise.
9199         (free_varasm_status): Delete.
9200         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
9201         (record_constant_rtx): Likewise.
9202         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
9203         (force_const_mem): Likewise.
9204         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
9205         * function.c (free_after_compilation): Don't use free_varasm_status.
9206         * function.h: Don't prototype free_varasm_status.
9207
9208         * ggc-common.c (ggc_realloc): Handle X being NULL.
9209
9210         * ggc-common.c (ggc_realloc): New function.
9211         * ggc.h: Prototype it.
9212         * emit-rtl.c (free_emit_status): Delete.
9213         (init_emit): Allocate emit subarrays using GC.
9214         (gen_reg_rtx): Reallocate subarrays using GC.
9215         (init_emit): Use GC to allocate 'struct emit_status' and its
9216         subarrays.
9217         (mark_emit_status): Mark structure and its subarrays.
9218         * stmt.c (free_stmt_status): Delete.
9219         * expr.c (free_expr_status): Delete.
9220         * function.h: Remove prototypes for deleted functions.
9221         * function.c (free_after_compilation): Don't use deleted functions.
9222         Don't call free() on x_parm_reg_stack_loc.
9223         (free_after_parsing): Don't use free_stmt_status.
9224         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
9225         (mark_function_status): Mark x_parm_reg_stack_loc.
9226
9227         * varasm.c (init_varasm_status): Use GC to allocate
9228         'struct varasm_status' and its fields x_const_rtx_hash_table
9229         and x_const_rtx_sym_hash_table.
9230         (mark_varasm_status): Mark them.
9231         (free_varasm_status): Use GC to free them.
9232         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
9233         (mark_expr_status): Mark the structure itself.
9234         (free_expr_status): Use GC to free the structure.
9235         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
9236         (mark_stmt_status): Mark the 'struct stmt_status' itself.
9237         (init_stmt_for_function): Allocate the structure for GC.
9238
9239         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
9240         (equate_type_number_to_die): Likewise.
9241         * tree.h (TYPE_SYMTAB_DIE): New macro.
9242         (struct die_struct): Predeclare.
9243         (struct tree_type): Add field symtab.die.   Add a tag
9244         to the union type of field symtab.
9245
9246         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
9247         'struct rtvec_def *', not 'struct rtvec_def'.
9248
9249         * function.h (original_arg_vector): Make a real rtvec.
9250         * function.c (ggc_mark_struct_function): Adjust.
9251         * integrate.c (expand_inline_function): Adjust.
9252
9253 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
9254
9255         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
9256         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
9257         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
9258         (TARGET_VERSION_CPU): Define according to the
9259         default target.
9260         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
9261         TARGET_VERSION_CPU.
9262         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
9263         if TARGET_SHMEDIA64.
9264         (LINK_DEFAULT_CPU_EMUL): Define according to the
9265         default target.
9266         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
9267         (SUBTARGET_LINK_SPEC): Define.
9268         (LINK_SPEC): Use SH_LINK_SPEC.
9269         (ASM_SPEC): Remove.
9270         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
9271         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
9272         and TARGET_SHMEDIA64 which abort, for now.
9273         * config/sh/t-netbsd-sh5: New file.
9274         * config/sh/t-netbsd-sh5-32: New file.
9275         * config/sh/t-netbsd-sh5-64: New file.
9276
9277 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
9278             Richard Henderson  <rth@redhat.com>
9279
9280         * config/alpha/alpha.c (reg_or_const_int_operand): New.
9281         (some_operand, input_operand): Accept CONST_VECTOR.
9282         (alpha_extra_constraint): Add 'W'.
9283         (alpha_expand_zap_mask): New.
9284         (alpha_expand_builtin_vector_binop): New.
9285         (enum alpha_builtin): New.
9286         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
9287         (alpha_init_builtins, alpha_expand_builtin): New.
9288         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
9289         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
9290         (PREDICATE_CODES): Update.
9291         * config/alpha/alpha-protos.h: Update.
9292         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
9293         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
9294         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
9295         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
9296         (movv2si, movv2si_fix, movv2si_nofix): New.
9297         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
9298         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
9299         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
9300         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
9301         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
9302         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
9303         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
9304         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
9305         builtin_unpkbw, unpkbw): New.
9306         * doc/extend.texi (Alpha Built-in Functions): New.
9307
9308 2002-06-03  Richard Henderson  <rth@redhat.com>
9309
9310         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
9311         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
9312
9313 2002-06-03  Richard Henderson  <rth@redhat.com>
9314
9315         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
9316
9317         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
9318         (const0_operand): New.
9319         (reg_or_fp0_operand, fp0_operand): Remove.
9320         * config/alpha/alpha.h (PREDICATE_CODES): Update.
9321         * config/alpha/alpha-protos.h: Update.
9322         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
9323         and fp0_operand with reg_or_0_operand and const0_operand.
9324
9325 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
9326
9327         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
9328
9329 2002-06-03  Roger Sayle  <roger@eyesopen.com>
9330
9331         * gcse.c (cprop_jump): Use single_set to get the pattern
9332         from the setcc argument.
9333
9334 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
9335
9336         * diagnostic.h (diagnostic_count): Move from output_buffer to
9337         diagnostic_context.
9338         (diagnostic_kind_count): Adjust definition.
9339
9340 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
9341
9342         * except.c (except.c): Do not rebuild CFG.
9343         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
9344         optimization.
9345
9346 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
9347
9348         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
9349         * toplev.c: Include cfglahout.h
9350         * Makefile.in (toplev.c): Add dependnecy.
9351
9352 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
9353
9354         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
9355         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
9356         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
9357
9358 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
9359
9360         * config/ns32k/netbsd.h: Update copyright years.
9361         (TARGET_OS_CPP_BUILTINS): Define.
9362         (CPP_PREDEFINES): Remove.
9363         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
9364         (TARGET_CPU_CPP_BUILTINS): Define.
9365
9366 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
9367
9368         * emit-rtl.c: Fix formatting.
9369         * errors.h: Likewise.
9370         * except.c: Likewise.
9371         * explow.c: Likewise.
9372         * expmed.c: Likewise.
9373         * expr.c: Likewise.
9374         * expr.h: Likewise.
9375
9376 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
9377
9378         * config/h8300/elf.h: Fix formatting.
9379         * config/h8300/rtems.h: Likewise.
9380
9381 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
9382
9383         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
9384
9385 2002-06-02  Tom Tromey  <tromey@redhat.com>
9386
9387         * fixinc/fixincl.x: Rebuilt.
9388         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
9389
9390 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9391
9392 config/i370:
9393         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
9394         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
9395         * mvs.h: Similarly.
9396         * oe.h: Similarly.
9397
9398 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
9399
9400         * final.c (final):  Allow notes to not have computed addresses;
9401         kill no longer needed STACK_REGS ifdef.
9402
9403 2002-06-02  Richard Henderson  <rth@redhat.com>
9404
9405         * gcse.c (bypass_conditional_jumps): Fix typo last change.
9406
9407 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
9408
9409         * loop.c (emit_prefetch_instructions): Properly place the address
9410         computation.
9411
9412 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
9413
9414         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
9415         (set_block_for_insn): Turn into macro.
9416         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
9417         * cfglayout.c (insn_scopes): Kill.
9418         (scope_to_insns_initialize): Do not use insn_scopes.
9419         (scope_to_insns_finalize): Likewise.
9420         (duplicate_insn_chain): Likewise.
9421         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
9422         * cfgrtl.c (basic_block_for_insn): Kill.
9423         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
9424         (create_basic_block_structure): Use reorder_insns.
9425         (compute_bb_for_insn): Do not use basic_block_for_insn.
9426         (merge_blocks_nomove): Likewise.
9427         (update_bb_for_insn): Likewise.
9428         (verify_flow_info): Likewise.
9429         (set_block_for_insn): Kill.
9430         * combine.c (try_combine): Update gen_rtx_INSN call.
9431         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
9432         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
9433         scopes and BBs.
9434         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
9435         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
9436         Clear BB.
9437         (emit_insns_after): Simplify.
9438         (emit_copy_of_insn_after): Copy scope.
9439         * final.c (final_start_function): Lower scopes.
9440         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
9441         * integrate.c (copy_insn_list): Cope scopes.
9442         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
9443         * loop.c (loop_optimize): Do not care block notes.
9444         * print-rtl.c (print_rtx): Print BB.
9445         * recog.c (apply_change_group): Simplify.
9446         * rtl.c (copy_rtx): Handle 'B'.
9447         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
9448         * rtl.h (Field accessors): Update indexes.
9449         * sched-ebb.c (schedule_ebbs): Do not lower notes.
9450         * sched-rgn.c (schedule_insns): Likewise.
9451         * toplev.c (rest_of_compilation): Lower notes.
9452         * unroll.c (unroll_loop): Do not care scoping notes.
9453         (copy_loop_body): Copy scopes.
9454
9455 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9456
9457 config/h8300:
9458         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
9459         SUBTARGET_SPEC.
9460         * rtems.h: Similarly.
9461         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
9462         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
9463         (TARGET_CPU_CPP_BUILTINS): Use.
9464
9465 2002-06-02  Richard Henderson  <rth@redhat.com>
9466
9467         * alias.c: Include target.h.
9468         (mark_constant_function): Use targetm.binds_local_p instead
9469         of checking TREE_PUBLIC ourselves.
9470         * Makefile.in (alias.o): Add TARGET_H.
9471
9472 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9473
9474         * c-lex.c: Update copyright and file description.
9475
9476 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9477
9478         * config/fr30/fr30.h: Update to new CPP macros.
9479
9480 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9481
9482         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
9483
9484 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9485             Zack Weinberg <zack@codesourcery.com>
9486
9487         * c-common.c (c_common_init): Override cpplib's default
9488         warn_long_long setting.
9489         * c-lex.c (lex_number): Replace with interpret_integer,
9490         interpret_float, narrowest_unsigned_type and
9491         narrowest_signed_type, taking advantage of the new
9492         cpplib functionality.
9493         * cpperror.c (_cpp_begin_message): If a warning is turned
9494         into an error, avoid printing "warning:".
9495         * cppexp.c (cpp_num_sign_extend): New.
9496         * cppinit.c: Update comment.
9497         * cpplib.h (cpp_num_sign_extend): New.
9498         * tree.h: Update comment.
9499
9500 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
9501
9502         * diagnostic.h (struct diagnostic_context):  Add new member
9503         internal_error.
9504         (internal_error_function): Remove declaration.
9505         * diagnostic.c (internal_error_function): Remove definition..
9506         (internal_error): Adjust use.
9507
9508 2002-06-02  Richard Henderson  <rth@redhat.com>
9509
9510         * rtl.h (CC0_P): New.
9511         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
9512         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
9513         (bypass_block): Save old dest block for dump text.
9514         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
9515         Allow only true SET insns, not single_set.
9516
9517 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
9518
9519         * diagnostic.c (diagnostic_finish): Rename to output_flush.
9520         (clear_disgnostic_info): Rename to output_clear_data.  Use false
9521         instead of 0 for boolean value.
9522         Adjust function call throughout.
9523
9524 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
9525
9526         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
9527         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
9528
9529 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9530
9531         * d30v.h (CPP_PREDEFINES): Replace with
9532         (TARGET_CPU_CPP_BUILTINS): New.
9533
9534 2002-06-02  Roger Sayle  <roger@eyesopen.com>
9535
9536         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
9537
9538 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
9539
9540         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
9541
9542 2002-06-02  Richard Henderson  <rth@redhat.com>
9543
9544         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
9545
9546 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9547
9548         Support for C++ constructors/destructors.
9549         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
9550         instead of looping if main() returns.
9551         (asm_file_start): Output global symbols that cause .data and .bss
9552         initialization code to be linked in, unconditionally for now.
9553         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
9554         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
9555         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
9556         (LIBSTDCXX): New.
9557         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
9558         (__tablejump__): New.
9559         (__do_copy_data, __do_clear_bss): New.
9560         (__do_global_ctors, __do_global_dtors): New.
9561         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
9562         _ctors, _dtors.
9563
9564 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9565
9566         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
9567         (CPP_SPEC, CPP_PREDEFINES): Kill.
9568         * c4x/rtems.h (CPP_PREDEFINES): Kill.
9569         (TARGET_OS_CPP_BUILTINS): New.
9570
9571 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
9572
9573         * Makefile.in (tracer.o): New.
9574         * params.def (TRACER_*): New options.
9575         * rtl.h (tracer): Declare.
9576         * timevar.def (TV_TRACER): New.
9577         * toplev.c (dump_file_index): Add DFI_tracer.
9578         (dump_file_info): Add tracer.
9579         (flag_tracer): New.
9580         (lang_indepdenent_options): Add tracer.
9581         (rest_of_compilation): Call tracer.
9582         * tracer.c: New file.
9583         * invoke.texi (-ftracer): Document.
9584         (--param tracer-*): Document.
9585
9586 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
9587
9588         * tree-inline.c (expand_call_inline): Make the statement
9589         expression we generate have a COMPOUND_STMT.
9590
9591 2002-06-01  Roger Sayle  <roger@eyesopen.com>
9592
9593         * gcse.c (cprop_cc0_jump): Function deleted.
9594         (cprop_jump): Take an additional argument which is the possibly
9595         NULL cc setting insn immediately before the conditional jump.
9596         When a MODE_CC set is present, substitute it into the JUMP_INSN
9597         before attempting the constant propagation.
9598         (cprop_insn):  Recognize cc setters followed by conditional jumps
9599         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
9600         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
9601         (find_bypass_set): New function based upon find_avail_set used by
9602         cprop, but finds constant expressions available at the end of
9603         basic blocks.
9604         (bypass_block): New function.  Given a basic block that begins
9605         with a conditional jump and multiple incoming edges, perform
9606         the jump bypass optimization.
9607         (bypass_conditional_jumps): New function.  Call bypass_block with
9608         each suitable basic block in the CFG using a simple single pass.
9609
9610 2002-06-01  Roger Sayle  <roger@eyesopen.com>
9611
9612         * tree.c (real_minus_onep): New function to test for -1.0.
9613         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
9614
9615 2002-06-01  Roger Sayle  <roger@eyesopen.com>
9616
9617         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
9618         and "!p && !q" into "(p|q) == 0" under suitable conditions.
9619
9620 2002-06-01  Andreas Jaeger  <aj@suse.de>
9621
9622         * cppexp.c (cpp_classify_number): Cast precission to int for
9623         correct printf format.
9624
9625 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9626
9627         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
9628         expected, but don't really exist: atmega83, atmega85, attiny10.
9629         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
9630         emulations for all devices.
9631         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
9632         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
9633
9634 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
9635
9636         * config/h8300/h8300-protos.h: Add a prototype for
9637         h8300_shift_needs_scratch_p.
9638         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
9639         * config/h8300/h8300.h (OK_FOR_R): New.
9640         (OK_FOR_S): Likewise.
9641         (OK_FOR_T): Likewise.
9642         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
9643         * config/h8300/h8300.md (anonymous shift patterns): Use
9644         constraints R, S, and T.
9645
9646 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9647
9648         * basic-block.h (struct basic_block_def): New field loop_father.
9649         (BB_VISITED): New flag.
9650         (struct loop): New field pred, removed field shared.
9651         (struct loops): New field parray.
9652         (LOOP_EXITS_DOMS): Removed.
9653         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
9654         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
9655         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
9656         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
9657         verify_loop_structure): Declare.
9658         * cfg.c (entry_exit_blocks): Initialize loop_father field.
9659         * cfganal.c (dfs_enumerate_from): New function.
9660         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
9661         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
9662         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
9663         flow_loop_dump, flow_loops_dump, flow_loops_free,
9664         flow_loop_tree_node_add, flow_loop_level_compute,
9665         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
9666         flow_loop_outside_edge_p): Modified for new infrastructure.
9667         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
9668         redirect_edge_with_latch_update, flow_loop_free): New static functions.
9669         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
9670         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
9671         find_common_loop, verify_loop_structure, loop_latch_edge,
9672         loop_preheader_edge): New functions.
9673         (flow_loops_cfg_dump): Do not show dominators, as this information
9674         does not remain up to date long.
9675         (flow_loops_find): Store results in new format.
9676         * predict.c (propagate_freq, estimate_probability,
9677         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
9678         infrastructure.
9679
9680 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
9681
9682         * except.c (nothrow_function_p): Walk epilogue delay list
9683         checking the insn, not the chain for potential throws.
9684
9685 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
9686
9687         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
9688         (install): Refer to install-cpp directly.
9689         (uninstall-cpp): Folded into uninstall rule.
9690         * configure.in: Delete all code relating to --disable-cpp.
9691         * configure: Regenerate.
9692         * config/t-install-cpp: Delete.
9693
9694 2002-05-31  Richard Henderson  <rth@redhat.com>
9695
9696         * configure.in (HAVE_AS_TLS): Add alpha tests.
9697         * configure: Rebuild.
9698         * config/alpha/alpha.c (TARGET_AS_TLS): New.
9699         (alpha_tls_size, alpha_tls_size_string): New.
9700         (overide_options): Set it.  Always install machine_status hooks.
9701         (input_operand): Accept got tls predicates.
9702         (local_symbol_p): Merge into ...
9703         (local_symbolic_operand): ... here.  Reject tls symbols.
9704         (global_symbolic_operand): Likewise.
9705         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
9706         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
9707         (tp16_symbolic_operand, tp32_symbolic_operand): New.
9708         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
9709         (alpha_encode_section_info): Handle TLS symbols.
9710         (alpha_strip_name_encoding): Likewise.
9711         (alpha_legitimate_address_p): Likewise.
9712         (alpha_legitimize_address): Likewise.
9713         (alpha_expand_mov): Early exit to avoid nop moves.
9714         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
9715         (alpha_init_machine_status, alpha_mark_machine_status,
9716         alpha_free_machine_status): Always define.
9717         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
9718         (print_operand, print_operand_address): Add TLS relocs.
9719         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
9720         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
9721         (TARGET_SWITCHES): Add -mtls-kernel.
9722         (alpha_tls_size, alpha_tls_size_string): New.
9723         (TARGET_OPTIONS): Add -mtls-size=.
9724         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
9725         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
9726         (ASM_OUTPUT_LABELREF): Skip %.
9727         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
9728         (PREDICATE_CODES): Update.
9729         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
9730         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
9731         UNSPEC_TP, UNSPECV_SET_TP): New.
9732         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
9733         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
9734         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
9735         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
9736         (call_value_osf_2_er): Accept anything as op4.
9737         * config/alpha/alpha-protos.h: Update.
9738         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
9739
9740 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
9741
9742         * cppinit.c (append_include_chain): Always pay attention to
9743         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
9744         marker on argument.
9745
9746 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
9747
9748         * target.h: Fix formatting.
9749         * timevar.h: Likewise.
9750         * tlink.c: Likewise.
9751         * toplev.c: Likewise.
9752         * toplev.h: Likewise.
9753         * tree.c: Likewise.
9754         * tree-dump.h: Likewise.
9755         * tree.h: Likewise.
9756         * tree-inline.h: Likewise.
9757         * unroll.c: Likewise.
9758         * unwind-dw2.c: Likewise.
9759         * unwind-dw2-fde.c: Likewise.
9760         * unwind-dw2-fde-glibc.c: Likewise.
9761         * unwind-dw2-fde.h: Likewise.
9762         * unwind.h: Likewise.
9763         * unwind-sjlj.c: Likewise.
9764         * varasm.c: Likewise.
9765         * varray.h: Likewise.
9766         * vmsdbg.h: Likewise.
9767         * vmsdbgout.c: Likewise.
9768         * xcoffout.h: Likewise.
9769
9770 2002-05-31  Igor Shevlyakov <igor@microunity.com>
9771
9772         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
9773         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
9774
9775 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
9776
9777         * gcc.c (cpp_unique_options): Remove "-d" options.
9778         (cpp_debug_options): New spec string.
9779         (default_compilers): Use it.
9780         * objc/lang-specs.h: Likewise.
9781
9782 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
9783
9784         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
9785         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
9786         * gcc/mklibgcc.in: Likewise.
9787         * gcc/config/arc/t-arc: Likewise.
9788         * gcc/configure.in: Likewise.
9789         * gcc/configure: Regenerate.
9790
9791 2002-05-31  Stan Shebs  <shebs@apple.com>
9792             Turly O'Connor  <turly@apple.com>
9793
9794         * c-decl.c (struct binding_level): Change int field n_incomplete
9795         to tree list incomplete_list.
9796         (clear_binding_level): Init field with NULL.
9797         (pushdecl): Add incomplete type to list.
9798         (mark_binding_level): Mark the incomplete list.
9799         (finish_struct): Scan the incomplete list for types instead
9800         of all decls in the current binding level.
9801
9802 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9803
9804         * pa.c (output_millicode_call): Add missing '%' characters.
9805         (output_call): Likewise.
9806
9807 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
9808
9809         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
9810         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
9811
9812 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
9813
9814         * varasm.c (mark_constant_pool): Walk epilogue delay list
9815         checking the insn, not the chain for potential constants.
9816
9817 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
9818
9819         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
9820
9821 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
9822
9823         * i386.c (classify_argument): Properly handle base types.
9824
9825         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
9826         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
9827         registers.
9828
9829 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
9830
9831         * gcse.c (gcse_emit_move_after): New.
9832         (pre_delete, hoist_store): Use it.
9833
9834         * reload1.c (emit_input_reload_insns): Use constrain_operands
9835         instead of constraint_accepts_reg_p to verify optimization.
9836         (constraint_accepts_reg_p): Kill
9837
9838         * reload1.c (reload_cse_delete_noop_set): Kill.
9839         (reload_cse_simplify): use delte_insn_and_edges.
9840
9841 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9842
9843         * cfgloop.c (flow_loops_find): Initialize first and last fields
9844         correctly.
9845
9846 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
9847
9848         * c-common.c (builtin_define_std): Correct logic.
9849
9850 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9851
9852         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
9853         (output_call): Likewise.
9854
9855 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9856
9857         * pa.c: Move output.h include after tree.h include.
9858         (pa_asm_output_mi_thunk): Constify identifier lab.
9859
9860 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
9861
9862         * config/ns32k/ns32k.h: Define named constants for the
9863         bits in target_flags and use them.
9864         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
9865
9866 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9867
9868         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
9869         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
9870         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
9871         default scheduling model.
9872         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
9873         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
9874         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
9875         * doc/install.texi (hppa*-*-*): Document default scheduling.
9876
9877 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9878
9879         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
9880
9881 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
9882
9883         * config.gcc (ns32k-*-netbsd*): Set tm_file to
9884         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
9885         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
9886         netbsd.h, or netbsd-aout.h.
9887
9888 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
9889
9890         * longlong.h (count_trailing_zeros): Add missing \, and clean up
9891         whitespace in __ns32000__ case.
9892
9893 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
9894
9895         * expr.c (expand_expr): Output partially zeroed out vectors with
9896         output_constant_def.
9897
9898 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9899
9900         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
9901         (sh-*-netbsdelf*)
9902         (shl*-*-netbsdelf*): New targets.
9903         * config/sh/netbsd-elf.h: New file.
9904         * config/sh/t-netbsd: New file.
9905
9906 2002-05-30  Richard Henderson  <rth@redhat.com>
9907             Eric Botcazou  <ebotcazou@multimania.com>
9908
9909         PR optimization/6822
9910         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
9911         to unsigned int for op1 comparisons.  Use gen_int_mode.
9912
9913 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
9914
9915         * expmed.c (const_mult_add_overflow_p): New.
9916         * expr.h: Declare it.
9917         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
9918         Don't eliminate the biv if the giv has a constant multiplier and
9919         the rhs argument of the comparison does satisfy the predicate.
9920         Use expand_mult_add to compute the replacement constant.
9921
9922 2002-05-30  Osku Salerma  <osku@iki.fi>
9923
9924         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
9925         (c_common_get_alias_set): Handle it.
9926         * doc/extend.texi: Document it.
9927
9928 2002-05-30  Richard Henderson  <rth@redhat.com>
9929
9930         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
9931         * toplev.c (process_options): Don't check it.
9932         * doc/tm.texi: Don't document it.
9933         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
9934         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
9935         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
9936         frame pointer optimization if current_function_profile.
9937
9938 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
9939
9940         * langhooks.c: Fix formatting.
9941         * langhooks.h: Likewise.
9942         * lcm.c: Likewise.
9943         * libgcc2.c: Likewise.
9944         * lists.c: Likewise.
9945         * local-alloc.c: Likewise.
9946         * loop.c: Likewise.
9947         * loop.h: Likewise.
9948
9949 2002-05-30  Marc Espie <espie@openbsd.org>
9950
9951         * config.gcc (sparc64-*-openbsd*): New.
9952         * config/sparc/openbsd1-64.h: New.
9953         * config/sparc/openbsd64.h: New.
9954
9955 2002-05-30  Jeff Law <law@redhat.com>
9956
9957         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
9958         a dead insn with a REG_RETVAL note when the entire libcall is not
9959         dead and remove the associated REG_LIBCALL note at the same time.
9960
9961 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
9962
9963         * lcm.c (output.h): #include.
9964         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
9965         as an ordinary block.
9966         (optimize_mode_switching): Don't pretend that the exit block is
9967         an ordinary block, or handle sucessors of entry block specially.
9968         Instead, split edges from entry block and to exit block, and
9969         put a computing definition on the thus gained post-entry-block,
9970         and a need on the pre-exit-block.
9971
9972 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
9973
9974         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
9975         * rtl.texi: Document 'B'
9976
9977 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9978
9979         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
9980         at run-time.
9981         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
9982
9983 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
9984
9985         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
9986         const0_rtx instead of NULL_RTX when in error.
9987         (altivec_expand_abs_builtin): Same.
9988         (rs6000_expand_binop_builtin): Same.
9989         (altivec_expand_predicate_builtin): Same.
9990         (altivec_expand_stv_builtin): Same.
9991         (rs6000_expand_ternop_builtin): Same.
9992         (altivec_expand_builtin): Same.
9993
9994 2002-05-29  David S. Miller  <davem@redhat.com>
9995
9996         * rtl.h (clear_emit_caches): Delete.
9997         * integrate.c (output_inline_function): Don't call it.
9998         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
9999         (clear_emit_caches): Delete definition.
10000         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
10001
10002 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
10003
10004         * config/mmix/mmix.c: Include real.h.
10005         (mmix_constant_address_p): Remove redundant test before switch.
10006
10007 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
10008
10009         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
10010         only if not already defined.
10011
10012 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
10013
10014         * config/h8300/h8300-protos.h: Remove prototypes for
10015         ok_for_bclr and small_power_of_two.
10016         * config/h8300/h8300.c (small_power_of_two): Remove.
10017         (ok_for_blcr): Likewise.
10018         (fix_bit_operand): Make WHAT deal with an integer instead of a
10019         constraint character.
10020         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
10021         (CONST_OK_FOR_P): Likewise.
10022         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
10023         CONST_OK_FOR_P any more.
10024         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
10025         of fix_bit_operand.
10026         (iorqi3): Likewise.
10027         (xorqi3): Likewise.
10028
10029 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
10030
10031         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
10032         (CPP_PREDEFINES): Make sure this is undefined.
10033         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
10034         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
10035         or -U__MIPSEB__ before defining one or the other.  Instead,
10036         use %(subtarget_endian_default) if neither -EB nor -EL are
10037         specified.
10038         (SUBTARGET_EXTRA_SPECS): Define.
10039         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
10040         %(netbsd_cpp_spec).
10041
10042 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
10043
10044         * doc/md.texi (Patterns): Note pattern condition pitfall
10045         for unnamed insn.
10046
10047 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
10048
10049         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
10050         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
10051         ternary operations from here...
10052         (rs6000_expand_builtin): ...to here.
10053         New argument expandedp.
10054         Change all instances of altivec_expand_binop_builtin to
10055         rs6000_expand_binop_builtin.
10056         (altivec_expand_unop_builtin): Rename to
10057         rs6000_expand_unop_builtin.
10058         (altivec_expand_binop_builtin): Rename to
10059         rs6000_expand_binop_builtin.
10060         (altivec_expand_ternop_builtin): Rename to
10061         rs6000_expand_ternop_builtin.
10062
10063 2002-05-29  Richard Henderson  <rth@redhat.com>
10064
10065         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
10066         (TARGET_BI_ARCH): Likewise.
10067         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
10068         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
10069         (TARGET_64BIT_DEFAULT): Default to 0.
10070         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
10071
10072 2002-05-29  Richard Henderson  <rth@redhat.com>
10073
10074         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
10075         (get_pc_thunk_name): New.
10076         (output_set_got): Use it.
10077         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
10078         into linkonce sections.
10079
10080 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
10081
10082         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
10083         (CPP_PREDEFINES): Make sure this is undefined.
10084         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
10085         (CPP_SUBTARGET_SPEC): Don't provide different versions for
10086         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
10087         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
10088         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
10089         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
10090         (CPP_PREDEFINES): Make sure this is undefined.
10091         (SUBTARGET_EXTRA_SPECS): Define.
10092         (CPP_SPEC): Use %(netbsd_cpp_spec).
10093
10094 2002-05-29  Jeff Law <law@redhat.com>
10095
10096         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
10097
10098         * flow.c (propagate_one_insn): Do not remove a dead insn if it
10099         contains a REG_RETVAL note.
10100
10101         * haifa-sched (sched_analyze): Remove another useless clearing
10102         of SCHED_GROUP_P I missed yesterday.
10103
10104         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
10105         * pa.c (pa_asm_output_mi_thunk): New function.
10106         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
10107
10108 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10109             Marek Michalkiewicz  <marekm@amelek.gda.pl>
10110
10111         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
10112         (avr_asm_only_p): Make non-static.
10113         (enum avr_arch): Remove.
10114         (avr_arch_types): New.
10115         (avr_mcu_types): Update.
10116         (avr_override_options): Use avr_arch_types table instead of switch.
10117         * avr.h (CPP_PREDEFINES): Die.
10118         (avr_base_arch_macro, avr_extra_arch_macro): New.
10119         (TARGET_CPU_CPP_BUILTINS): New.
10120         (CPP_SPEC, EXTRA_SPECS): Simplify.
10121         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
10122         CPP_AVR5_SPEC): Die.
10123
10124 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
10125
10126         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
10127         NETBSD_OS_CPP_BUILTINS_AOUT.
10128         (SUBTARGET_EXTRA_SPECS): Define.
10129         (CPP_SPEC): Use %(netbsd_cpp_spec).
10130
10131 2002-05-29  Richard Henderson  <rth@redhat.com>
10132
10133         * config/i386/i386.c (ix86_output_function_epilogue): New.
10134         (TARGET_ASM_FUNCTION_EPILOGUE): New.
10135         (pic_label_name): Remove.
10136         (pic_labels_used): New.
10137         (ix86_asm_file_end): Emit one pc load stub for each register used.
10138         (output_set_got): Generate deep pc load to any register.
10139         (ix86_select_alt_pic_regnum): New.
10140         (ix86_save_reg): Don't save pic register if we can find a valid
10141         call-clobbered replacement.
10142         (ix86_expand_prologue): If we found a valid replacement, renumber
10143         pic_offset_table_rtx.
10144         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
10145         pic_offset_table_rtx after reload.
10146         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
10147         * config/i386/i386.md (set_got): Make insn, not expander.
10148         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
10149
10150 2002-05-29  Richard Henderson  <rth@redhat.com>
10151
10152         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
10153         alignment for alloca.
10154
10155 2002-05-29  Richard Henderson  <rth@redhat.com>
10156
10157         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
10158         (print_operand_address): Only add rip for symbolic addresses
10159         for which we do not have another relocation type.
10160
10161 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
10162
10163         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
10164         (EXTRA_SPECS): Add netbsd_cpp_spec.
10165         (CPP_SPEC): Use %(netbsd_cpp_spec).
10166         (CPP_PREDEFINES): Remove.
10167         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
10168         (EXTRA_SPECS): Define.
10169         (CPP_SPEC): Use %(netbsd_cpp_spec).
10170         (CPP_PREDEFINES): Remove.
10171
10172 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10173
10174         PR preprocessor/6844
10175         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
10176         NUL.
10177
10178 2002-05-29  Eric Christopher  <echristo@redhat.com>
10179
10180         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
10181         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
10182
10183 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
10184
10185         * config/fr30/fr30.md: Remove previous restriction on splits.
10186         Enforce conformance through gen_lowpart and cont_int_operand.
10187         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
10188         as the assembler does not support ".bss".
10189
10190 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
10191
10192         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
10193         (CPP_PREDEFINES): Remove.
10194         (SUBTARGET_EXTRA_SPECS): Define.
10195         (CPP_SPEC): Use %(netbsd_cpp_spec).
10196         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
10197         (CPP_PREDEFINES): Remove.
10198         (SUBTARGET_EXTRA_SPECS): Define.
10199         (CPP_SPEC): Use %(netbsd_cpp_spec).
10200         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
10201         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
10202         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
10203         Add netbsd_cpp_spec.
10204         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
10205
10206 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10207             Zack Weinberg <zack@codesourcery.com>
10208
10209         * cppexp.c (cpp_num): Move to cpplib.h.
10210         (CPP_ERROR): Remove.
10211         (interpret_float_suffix, interpret_int_suffix): New.
10212         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
10213         (cpp_classify_number, cpp_interpret_integer): New.
10214         (interpret_number): Remove.
10215         (eval_token): Update to use new routines.
10216         * cpphash.h (cpp_num_part): Move to cpplib.h.
10217         * cppinit.c (cpp_post_options): Set warn_long_long.
10218         * cpplib.h (struct cpp_options): Add warn_long_long.
10219         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
10220         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
10221         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
10222         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
10223         cpp_interpret_integer): New.
10224
10225 2002-05-29  Joel Sherrill <joel@OARcorp.com>
10226
10227         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
10228
10229 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
10230
10231         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
10232         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
10233         (CPP_SUBTARGET_SPEC): Define.
10234         (SUBTARGET_EXTRA_SPECS): Define.
10235         (CPP_SPEC): Remove.
10236
10237 2002-05-29  Chris Lattner  <sabre@nondot.org>
10238
10239         * ssa.c (rename_insn_1): Rename uses of undefined registers to
10240         prevent confusion if/when the register is defined.
10241
10242 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
10243
10244         PR target/6838
10245         * config/cris/cris.md: Fix typos and thinkos in comments.
10246         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
10247         second alternative.
10248         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
10249         ("*mov_sideqi_mem"): Similar, but for operand 3.
10250         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
10251         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
10252         Remove spurious mode specifier on operand 2.
10253
10254 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
10255
10256         * config/h8300/h8300-protos.h: Remove the prototype for
10257         o_operand.
10258         Add prototypes for single_one_operand and single_zero_operand.
10259         * config/h8300/h8300.c (o_operand): Remove.
10260         (single_one_operand): New.
10261         (single_zero_operand): Likewise.
10262         (print_operand): For 'V' operand, and the operand with 0xff.
10263         For 'V' and 'W' operands, do not and the bit position with 7.
10264         * config/h8300/h8300.md (various anonymous patterns): Replace
10265         use of exact_log2 with single_one_operand/single_zero_operand.
10266
10267 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
10268
10269         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
10270
10271 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
10272
10273         * config/s390/s390.c (legitimate_pic_operand_p): Do not
10274         accept symbolic LARL operands.
10275         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
10276         epilogue insns.
10277
10278 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
10279
10280         * config/s390/s390.md (cmpstr_64/31): Mark whole
10281         input registers as used.
10282
10283 2002-05-28  Richard Henderson  <rth@redhat.com>
10284
10285         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
10286         not current_function_uses_pic_offset_table and
10287         current_function_uses_const_pool; examine current_function_profile.
10288         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
10289         input to blockage if needed.
10290         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
10291         (legitimize_pic_address): Likewise.  Set regs_ever_live for
10292         pic_offset_table_rtx when invoked during reload.
10293         * config/i386/i386.h (FINALIZE_PIC): Remove.
10294         * config/i386/i386.md (tablejump): Reformat.  Do not set
10295         current_function_uses_pic_offset_table.
10296         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
10297         (blockage): Accept anything as operand 0.
10298
10299 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
10300
10301         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
10302         common CPP built-ins for all NetBSD a.out targets.
10303         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
10304         common CPP built-ins for all NetBSD ELF targets.
10305         * config/netbsd.h: Add missing notice.
10306         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
10307         for all NetBSD targets.
10308         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
10309         for all NetBSD targets using an LP64 code model.
10310         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
10311         NetBSD targets.
10312
10313 2002-05-28  Richard Henderson  <rth@redhat.com>
10314
10315         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
10316         update if UPDATE_LIFE_LOCAL.
10317
10318 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10319
10320         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
10321
10322 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
10323                           Jason R. Thorpe <thorpej@wasabisystems.com>
10324
10325         config/sh reorganization to factor out endianness and coff:
10326
10327         * config/sh/little.h: New file.
10328         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
10329         defined, define to 0 to select big-endian.
10330         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
10331         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
10332         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
10333         * config/sh/t-be: New file.
10334         * config/sh/t-le: New file.
10335
10336         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
10337         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
10338         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
10339         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
10340         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
10341         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
10342         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
10343         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
10344         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
10345         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
10346         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
10347         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
10348         (LINK_SPEC): Define to SH_LINK_SPEC.
10349         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
10350         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
10351         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
10352         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
10353         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
10354         * config/sh/coff.h: New file.
10355         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
10356         (TARGET_OBJFMT_CPP_BUILTINS): Define.
10357         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
10358         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
10359         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
10360         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
10361         (PTRDIFF_TYPE): Likewise.
10362         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
10363         (CPP_PREDEFINES): Don't define.
10364         (TARGET_OBJFMT_CPP_BUILTINS): Define.
10365         (LINK_SPEC): Define to SH_LINK_SPEC.
10366         (LINK_EMUL_PREFIX): Redefine.
10367         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
10368         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
10369         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
10370         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
10371         (TARGET_OS_CPP_BUILTINS): Define.
10372         (TARGET_DEFAULT): Redefine.
10373         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
10374         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
10375         (LINK_SPEC): Don't redefine.
10376         (LINK_DEFAULT_CPU_EMUL): Redefine.
10377         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
10378         * sh.c (sh_asm_named_section): Don't declare / define.
10379         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
10380         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
10381         (sh64-*-elf* tm_file): Likewise.
10382         (sh-*-rtemself* tm_file): Likewise.
10383         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
10384         (sh-*-linux* tmake_file): Add sh/t-le.
10385         (sh-*-rtems* tm_file): Add sh/coff.h
10386         (sh-*-* tm_file): Likewise.
10387
10388 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
10389
10390         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
10391         CONSTANT_POOL_ADDRESS_P.
10392
10393         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
10394
10395 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
10396             Jeff Law <law@redhat.com>
10397
10398         * optabs.c (expand_binop): Fix nwords sign warnings.
10399         generate pseudo for add_optab.
10400
10401         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
10402         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
10403
10404 2002-05-28      Marc Espie <espie@openbsd.org>
10405
10406         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
10407         inherited from gas.h.
10408         (ASM_QUAD):  Undef.  OpenBSD does not support it.
10409
10410 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
10411
10412         * doc/install.texi (binaries): Change mingw binaries
10413         link to www.mingw.org.
10414
10415 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10416
10417         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
10418
10419 2002-05-28  Richard Henderson  <rth@redhat.com>
10420
10421         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
10422         bottom alignment for leaf functions.
10423
10424 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
10425
10426         * config/pa/milli32.S, config/pa/lib1funcs.asm,
10427         config/sparc/sol2-g1.asm: Delete unused files.
10428
10429 2002-05-28  Richard Henderson  <rth@redhat.com>
10430
10431         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
10432
10433         * flow.c (calculate_global_regs_live): Rename call_used to
10434         invalidated_by_call.  Initialize from regs_invalidated_by_call
10435         instead of call_used_regs.
10436
10437         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
10438         DECL_EXTERNAL.
10439
10440 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
10441
10442         * tree.h: Don't include real.h.
10443         Forward-declare struct realvaluetype.
10444         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
10445         contain it.
10446         (TREE_REAL_CST_PTR): New accessor.
10447         (TREE_REAL_CST): Update.
10448         * real.h: Include machmode.h.
10449         (realvaluetype): Make it struct realvaluetype, not a typedef.
10450         (build_real): Prototype here.
10451
10452         * tree.c: Include real.h.
10453         (build_real): Allocate the REAL_VALUE_TYPE as a separate
10454         object in GC memory, set TREE_REAL_CST_PTR to point to it.
10455         (build_real_from_int_cst): Use build_real.
10456         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
10457         REAL_CST.
10458
10459         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
10460         fold-const.c, print-tree.c, real.c: Include real.h.
10461         * Makefile.in: Update dependency lists.
10462
10463 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10464
10465         * basic-block.h (last_basic_block): Declare.
10466         (expunge_block_nocompact): Declaration removed.
10467         (compact_blocks): Declare.
10468         * cfg.c (last_basic_block): New variable.
10469         (expunge_block_nocompact): Removed.
10470         (expunge_block): Do not compact basic blocks.
10471         (compact_blocks): New.
10472         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
10473         longer change.
10474         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
10475         last_basic_block.
10476         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
10477         real positions of blocks.
10478         (delete_unreachable_blocks): Simplified -- quadratic behavior now
10479         cannot occur.
10480         (cleanup_cfg): Compact blocks.
10481         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
10482         basic_block_info varray.
10483         (flow_delete_block): Comment update.
10484         (back_edge_of_syntactic_loop_p): Modify position check code.
10485         (verify_flow_info): Update checking.
10486         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
10487         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
10488         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
10489         indices no longer change.
10490         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
10491         last_basic_block.
10492         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
10493         * profile.c (branch_prob): Compact blocks.
10494         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
10495         last_basic_block.
10496
10497 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
10498
10499         * config/h8300/h8300.md (two anonymous patterns): New.
10500
10501 2002-05-28  David S. Miller  <davem@redhat.com>
10502
10503         * config/sparc/sparc.md (cpu): Tidy.
10504         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
10505         'trap'.
10506         (in_call_delay): Delete reference to 'return' type.
10507         (eligible_for_return_delay, in_return_delay, define_delay
10508         referencing those): Delete.
10509         (rest of file): Use new type attributes as appropriate.
10510         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
10511         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
10512         * config/sparc/ultra1_2.md (us1_single): New reservation.
10513         (us1_ialuX): Likewise.
10514         * config/sparc/ultra3.md (us3_single): Likewise.
10515         (us3_ialuX): Likewise.
10516         (us3_imul, us3_idiv): Tweak.
10517
10518 2002-05-28  Richard Henderson  <rth@redhat.com>
10519
10520         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
10521         STRING_CST.
10522
10523 2002-05-28  Richard Henderson  <rth@redhat.com>
10524
10525         * config.gcc: Obsolete mn10200.
10526
10527 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10528
10529         * cppexp.c (interpret_number): Optimize for single-digit
10530         and less-than-half-precision cases.
10531         (num_trim, num_positive, num_div_op): Cast constants.
10532
10533 2002-05-27  Bo Thorsen  <bo@suse.de>
10534
10535         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
10536         3.1 branch. The file was made by Jakub Jelinek.
10537         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
10538         support so multilib doesn't break. And don't define this at all
10539         when -Dinhibit_libc is used.
10540         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
10541         * config/i386/t-linux64: Implement full multilib support. Patch
10542         originally done by Andreas Jaeger and Jakub Jelinek.
10543
10544 2002-05-27  Roger Sayle  <roger@eyesopen.com>
10545
10546         * c-common.c: Add support for __attribute__((nothrow)) to specify
10547         that a function cannot throw an exception (using TREE_NOTHROW).
10548         (handle_nothrow_attribute): New function to process this attribute.
10549
10550         * doc/extend.texi: Document the new nothrow function attribute.
10551
10552 2002-05-27  H.J. Lu  (hjl@gnu.org)
10553
10554         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
10555         (num_positive): Likewise.
10556         (num_div_op): Likewise.
10557
10558 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10559
10560         * c-common.c (c_common_init): Always use intmax_t.
10561
10562 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10563
10564         * c-common.c (c_common_init): Use intmax_t for now.
10565
10566 2002-05-24  Andrew Haley  <aph@redhat.com>
10567
10568         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
10569         if T is a boolean type.
10570
10571 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10572
10573         * basic-block.h (last_basic_block): Defined as synonym for
10574         n_basic_blocks.
10575         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
10576         flow_depth_first_order_compute, flow_preorder_transversal_compute,
10577         flow_dfs_compute_reverse_init): Replaced relevant occurences of
10578         n_basic_blocks with last_basic_block.
10579         * cfgbuild.c (make_edges): Likewise.
10580         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
10581         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
10582         * combine.c (combine_instructions): Likewise.
10583         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
10584         iterative_dataflow_bitmap): Likewise.
10585         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
10586         calc_idoms, idoms_to_doms): Likewise.
10587         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
10588         Likewise.
10589         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
10590         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
10591         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
10592         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
10593         delete_null_pointer_checks, compute_code_hoist_vbeinout,
10594         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
10595         compute_store_table, build_store_vectors): Likewise.
10596         * haifa-sched.c (sched_init): Likewise.
10597         * ifcvt.c (if_convert): Likewise.
10598         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
10599         pre_edge_lcm, compute_available, compute_nearerout,
10600         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
10601         Likewise.
10602         * predict.c (estimate_probability, process_note_prediction,
10603         note_prediction_to_br_prob): Likewise.
10604         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
10605         * recog.c (split_all_insns, peephole2_optimize): Likewise.
10606         * regrename.c (copyprop_hardreg_forward): Likewise.
10607         * resource.c (init_resource_info): Likewise.
10608         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
10609         init_regions, schedule_insns): Likewise.
10610         * ssa-ccp.c (ssa_const_prop): Likewise.
10611         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
10612         * ssa.c (compute_dominance_frontiers,
10613         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
10614
10615         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
10616         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
10617         sizes consistently.
10618
10619 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
10620
10621         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
10622         new.
10623         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
10624         hoist_insn_after, hoist_insn_to_edge): New.
10625
10626 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
10627
10628         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
10629         (PROP_FINAL): Include.
10630         * flow.c (life_analysis, update_life_info,
10631         init_propagate_block_info, mark_set_1, mark_used_rgs):
10632         Support SCAN_DEAD_STORE.
10633
10634 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10635
10636         * c-common.c (c_common_init): Set CPP arithmetic precision.
10637         * cppexp.c (cpp_num_part): Move typedef ...
10638         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
10639         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
10640         (sanity_checks): Update.
10641
10642 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
10643
10644         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
10645         (mkheaders): New rule.
10646         (install-mkheaders): New rule.
10647         * configure.in (all_outputs): Add mkheaders.
10648         * configure: Regenerate.
10649         * mkheaders.in: New file.
10650
10651 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
10652
10653         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
10654
10655 2002-05-26  Andreas Jaeger  <aj@suse.de>
10656
10657         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
10658
10659 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
10660
10661         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
10662         right_shift): Remove.
10663         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
10664         HIGH_PART): New.
10665         (struct op): Use cpp_num.
10666         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
10667         num_part_mul, num_unary_op, num_binary_op, num_negate,
10668         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
10669         num_div_op, num_lshift, num_rshift, append_digit): New.
10670         (interpret_number, parse_defined, eval_token, reduce): Update
10671         for two-integer arithmetic.
10672         (binary_handler): New typedef.
10673         (optab): Update.
10674         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
10675         (_cpp_parse_expr, reduce): Update to handle two-integers.
10676         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
10677
10678 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10679
10680         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
10681         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
10682         branch insn into account, do not assume 1.
10683         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
10684         over single word insn.  Handle upper half of I/O space too.
10685         * config/avr/avr.md (*sbrx_branch): Use it.
10686         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
10687         (*sbix_branch, *sbix_branch_bit7): Likewise.
10688         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
10689         Use RTL peepholes to optimize register operand sign tests.
10690
10691 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10692
10693         * config/avr/avr.c (avr_asm_only_p): New variable.
10694         (avr_override_options): Set it here if AVR1.
10695         (asm_file_start): Test it here, report an error if set.
10696
10697 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
10698
10699         * alias.c: Fix formatting.
10700         * attribs.c: Likewise.
10701         * bb-reorder.c: Likewise.
10702         * bitmap.c: Likewise.
10703         * bitmap.h: Likewise.
10704         * builtins.c: Likewise.
10705
10706 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
10707
10708         * reload.c (find_valid_class): Accept new argument DEST,
10709         choose class accordingly.
10710         (push_reload): Update callers.
10711
10712 2002-05-26  Andreas Jaeger  <aj@suse.de>
10713
10714         * combine.c (combine_instructions): Do not indent #if for
10715         traditional C.
10716
10717 2002-05-25  Richard Henderson  <rth@redhat.com>
10718
10719         * c-pragma.c (apply_pragma_weak): Convert value identifier to
10720         string for decl_attributes.
10721         (handle_pragma_weak): Call assemble_alias if we're modifying
10722         an existing decl.
10723
10724 2002-05-25  Richard Henderson  <rth@redhat.com>
10725
10726         PR target/6788
10727         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
10728         using rtl instead of fprintf.
10729         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
10730         * config/sparc/sparc-protos.h: Update.
10731
10732 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10733
10734         * Makefile.in (C_COMMON_H): Fix.
10735         Update other targets.
10736         * c-common.c: Don't include c-lex.h.
10737         (builtin_define_with_value): Make static and prototype.
10738         (builtin_define_std): Move from c-lex.h.
10739         * c-common.h (init_c_lex): Move from c-lex.h.
10740         * c-decl.c: Don't include c-lex.h.
10741         (make_pointer_declarator): Move from c-parse.in.
10742         * c-lex.c: Don't include c-lex.h.
10743         * c-lex.h: Remove.
10744         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
10745         (make_pointer_declarator): Move to c-decl.c.
10746         * c-pragma.c: Don't include c-lex.h.
10747         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
10748         * c-tree.h (make_pointer_declarator): New.
10749 doc:
10750         * passes.texi, tm.texi: Update.
10751 objc:
10752         * Make-lang.in: Update and correct.
10753         * objc-act.c: Don't include c-lex.h or cpplib.h.
10754 treelang:
10755         * treetree.c: Don't include c-lex.h.
10756 config:
10757         * darwin-c.c: Don't include c-lex.h.
10758         * c4x/c4x-c.c: Don't include c-lex.h.
10759         * c4x/t-c4x: Update.
10760         * i370/i370-c.c: Don't include c-lex.h.
10761         * i370/t-i370: Update.
10762         * i960/i960-c.c: Don't include c-lex.h.
10763         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
10764         * i960/t-960bare: Update.
10765         * i960/t-vxworks: Update.
10766         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
10767         * rs6000/t-darwin: Update.
10768         * rs6000/t-rs6000-c-rule: Update.
10769         * v850/v850-c.c: Don't include c-lex.h.
10770         * v850/v850.c: Don't include c-lex.h or cpplib.h.
10771
10772
10773 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
10774
10775         * tree.def: Fix typos.
10776         * doc/install.texi: Likewise.
10777
10778 2002-05-25  Richard Henderson  <rth@redhat.com>
10779
10780         * configure.in (HAVE_AS_TLS): Add ia64 test.
10781         * configure: Rebuild.
10782         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
10783         (override_options): Set it.
10784         (TARGET_HAVE_TLS): New.
10785         (sdata_symbolic_operand): Look for 's'.
10786         (tls_symbolic_operand): New.
10787         (ia64_expand_load_address): Abort for tls symbols.
10788         (gen_tls_get_addr): New.
10789         (gen_thread_pointer): New.
10790         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
10791         (rtx_needs_barrier): Add new unspecs.
10792         (ia64_encode_section_info): Handle tls symbols.
10793         (ia64_strip_name_encoding): Strip two encoding chars.
10794         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
10795         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
10796         (TARGET_OPTIONS): Add tls-size.
10797         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
10798         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
10799         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
10800         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
10801         (movsf, movdf): Likewise.
10802         (movdi_symbolic): Use match_scratch.  Don't split if we won't
10803         have a scratch availiable.
10804         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
10805         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
10806         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
10807         * config/ia64/ia64-protos.h: Update.
10808         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
10809         sdata_symbolic_operand.
10810         (ASM_OUTPUT_LABELREF): Strip two characters.
10811
10812 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
10813
10814         * combine.c (simplify_set): Remove an unnecessary subreg.
10815
10816 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10817
10818         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
10819
10820         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
10821
10822 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
10823
10824         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
10825
10826 2002-05-25  Roger Sayle  <roger@eyesopen.com>
10827
10828         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
10829         (cond (compare x y) 0) into the equivalent (cond x y).
10830
10831 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
10832
10833         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
10834
10835 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
10836
10837         * config.gcc: Remove all stanzas for previously obsoleted
10838         systems.  Where necessary, add explicit error stanzas to
10839         prevent removed systems from being misidentified as something
10840         else.  Begin a fresh obsoletions list, with the systems that
10841         were reprieved last round.
10842         * doc/install.texi: Remove all mention of dead targets.
10843         * fixinc/mkfixinc.sh: Likewise.
10844
10845         * config/arm/arm.h: Bit 31 of target_flags is no longer
10846         reserved.
10847
10848         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
10849         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
10850         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
10851         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
10852         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
10853         config/alpha/osf12.h, config/alpha/osf2or3.h,
10854         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
10855         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
10856         config/clipper/clipper-protos.h, config/clipper/clipper.c,
10857         config/clipper/clipper.h, config/clipper/clipper.md,
10858         config/clipper/clix.h, config/convex/convex-protos.h,
10859         config/convex/convex.c, config/convex/convex.h,
10860         config/convex/convex.md, config/convex/fixinc.convex,
10861         config/convex/proto.h, config/elxsi/elxsi-protos.h,
10862         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
10863         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
10864         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
10865         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
10866         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
10867         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
10868         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
10869         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
10870         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
10871         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
10872         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
10873         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
10874         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
10875         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
10876         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
10877         config/m68k/altos3068.h, config/m68k/apollo68.h,
10878         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
10879         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
10880         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
10881         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
10882         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
10883         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
10884         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
10885         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
10886         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
10887         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
10888         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
10889         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
10890         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
10891         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
10892         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
10893         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
10894         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
10895         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
10896         config/mips/dec-osf1.h, config/mips/elflorion.h,
10897         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
10898         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
10899         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
10900         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
10901         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
10902         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
10903         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
10904         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
10905         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
10906         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
10907         config/ns32k/sequent.h, config/ns32k/tek6000.h,
10908         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
10909         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
10910         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
10911         config/sparc/rtems.h, config/we32k/we32k-protos.h,
10912         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
10913         Delete file.
10914
10915 2002-05-24  Richard Henderson  <rth@redhat.com>
10916
10917         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
10918         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
10919         * config/i386/i386.c (tls_model_chars): Add leading space.
10920         (tls_symbolic_operand): Don't bias by 1.
10921         (legitimize_address): Don't unbias by 1.
10922
10923 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10924
10925         * lcm.c (optimize_mode_switching): Change bb used as indices
10926         to bb->index.
10927
10928 2002-05-24  Richard Henderson  <rth@redhat.com>
10929
10930         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
10931         of update_life_info_in_dirty_blocks.
10932
10933 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
10934
10935         PR other/6782
10936         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
10937
10938 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10939
10940         PR preprocessor/6780
10941         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
10942
10943 2002-05-24  Jim Blandy  <jimb@redhat.com>
10944
10945         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
10946         entry with a type code of zero, marking the end of the compilation
10947         unit's macro info.
10948
10949 2002-05-24  Richard Henderson  <rth@redhat.com>
10950
10951         * varasm.c (asm_output_bss): Always output one byte.
10952         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
10953
10954 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
10955
10956         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
10957         namespace.
10958
10959 2002-05-24  Andreas Jaeger  <aj@suse.de>
10960
10961         * ggc-page.c (alloc_page): Cast variables of type size_t to
10962         unsigned long, adjust printf format string.
10963         (ggc_alloc): Likewise.
10964         (ggc_print_statistics): Likewise.
10965         (ggc_print_statistics): Correct printf format string for SCALE to
10966         use unsigned long.
10967
10968 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
10969
10970         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
10971
10972 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
10973             Zack Weinberg     <zack@codesourcery.com>
10974
10975         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
10976         quoted strings.
10977         * dwarf2out.c (lookup_filename): Properly quote filename in .file
10978         directive in assembly file.
10979         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
10980         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
10981         * config/pj/pj.h (ASM_FILE_START): Likewise.
10982         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10983         * config/avr/avr.c (asm_file_end): Likewise.
10984         * toplev.c (output_quoted_string): Handle possibly signed plain
10985         char.
10986         * toplev.h (output_clean_symbol_name): Declare
10987         * toplev.c (output_clean_symbol_name): Define.
10988         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
10989         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
10990
10991 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
10992
10993         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
10994
10995 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
10996
10997         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
10998         of size of unsigned.
10999
11000 2002-05-23  Richard Henderson  <rth@redhat.com>
11001
11002         * configure.in (HAVE_AS_TLS): New test.
11003         * config.in, configure: Rebuild.
11004         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
11005         (ix86_tls_dialect_string, ix86_tls_dialect): New.
11006         (override_options): Set it.
11007         (tls_model_chars, tls_symbolic_operand): New.
11008         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
11009         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
11010         (local_exec_symbolic_operand): New.
11011         (get_pic_label_name): Merge into output_set_got.
11012         (ix86_asm_file_end): Emit pic_label_name if defined.
11013         (legitimate_constant_p, constant_address_p): New.
11014         (legitimate_pic_operand_p): New.
11015         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
11016         (legitimate_address_p): Likewise.
11017         (ix86_encode_section_info): Rename from i386_; handle tls decls.
11018         (ix86_strip_name_encoding): New.
11019         (get_thread_pointer): New.
11020         (legitimize_address): Handle tls symbols.
11021         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
11022         Remove UNSPEC_PLT.
11023         (struct machine_function): Add some_ld_name.
11024         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
11025         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
11026         (output_addr_const_extra): New.
11027         (maybe_get_pool_constant): New.
11028         (ix86_split_to_parts): Use it.
11029         (ix86_expand_move): Handle tls symbols.
11030         (ix86_tls_get_addr): New.
11031         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
11032         (TARGET_OPTIONS): Add tls-dialect.
11033         (CONSTANT_ADDRESS_P): Use new out-of-line function.
11034         (LEGITIMATE_CONSTANT_P): Likewise.
11035         (LEGITIMATE_PIC_OPERAND_P): Likewise.
11036         (TARGET_STRIP_NAME_ENCODING): New.
11037         (ASM_OUTPUT_LABELREF): New.
11038         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
11039         (OUTPUT_ADDR_CONST_EXTRA): New.
11040         (PREDICATE_CODES): Update.
11041         (ix86_tls_dialect, ix86_tls_dialect_string): New.
11042         * config/i386/i386.md: Regroup and renumber unspec constants.
11043         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
11044         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
11045         (tls_global_dynamic, tls_local_dynamic_base): New.
11046         (tls_local_dynamic_once): New.
11047         * config/i386/i386-protos.h: Update.
11048
11049 2002-05-23  Richard Henderson  <rth@redhat.com>
11050
11051         * genemit.c (gen_insn): Print file:lineno comment before function.
11052         (main): likewise.
11053         * gensupport.c (struct queue_elem): Add filename member.
11054         (queue_pattern): Initialize it; update all callers.
11055         (process_include): Don't free filename.
11056         (read_md_rtx): Set read_rtx_filename.
11057
11058 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
11059
11060         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
11061
11062 2002-05-23  Richard Henderson  <rth@redhat.com>
11063
11064         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
11065
11066 2002-05-23  Richard Henderson  <rth@redhat.com>
11067
11068         * doc/extend.texi (C++98 Thread-Local Edits): Update with
11069         commentary from Mark.
11070
11071 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11072
11073         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
11074         Use FOR_EACH_BB macros to iterate over basic block chain.
11075         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
11076         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
11077         Likewise.
11078         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
11079         find_unreachable_blocks, create_edge_list, verify_edge_list,
11080         remove_fake_edges, add_noreturn_fake_exit_edges,
11081         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
11082         Likewise.
11083         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
11084         find_sub_basic_blocks): Likewise.
11085         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
11086         Likewise.
11087         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
11088         Likewise.
11089         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
11090         Likewise.
11091         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
11092         commit_edge_insertions, commit_edge_insertions_watch_calls,
11093         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
11094         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
11095         * conflict.c (conflict_graph_compute): Likewise.
11096         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
11097         df_modified_p, df_refs_unlink, df_dump): Likewise.
11098         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
11099         * final.c (compute_alignments): Likewise.
11100         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
11101         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
11102         count_or_remove_death_notes): Likewise.
11103         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
11104         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
11105         classic_gcse, compute_transp, cprop, compute_pre_data,
11106         compute_transpout, invalidate_nonnull_info,
11107         delete_null_pointer_checks_1, delete_null_pointer_checks,
11108         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
11109         compute_store_table, build_store_vectors, store_motion): Likewise.
11110         * global.c (global_conflicts, mark_elimination): Likewise.
11111         * graph.c (print_rtl_graph_with_bb): Likewise.
11112         * haifa-sched.c (sched_init): Likewise.
11113         * ifcvt.c (if_convert): Likewise.
11114         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
11115         compute_available, compute_nearerout, compute_rev_insert_delete,
11116         optimize_mode_switching): Likewise.
11117         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
11118         * predict.c (estimate_probability, note_prediction_to_br_prob,
11119         propagate_freq, counts_to_freqs, expensive_function_p,
11120         estimate_bb_frequencies): Likewise.
11121         * profile.c (instrument_edges, get_exec_counts,
11122         compute_branch_probabilities, compute_checksum, branch_prob,
11123         find_spanning_tree): Likewise.
11124         * recog.c (split_all_insns, peephole2_optimize): Likewise.
11125         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
11126         Likewise.
11127         * regclass.c (scan_one_insn, regclass): Likewise.
11128         * regmove.c (mark_flags_life_zones, regmove_optimize,
11129         record_stack_memrefs): Likewise.
11130         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
11131         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
11132         * resource.c (find_basic_block): Likewise.
11133         * sched-ebb.c (schedule_ebbs): Likewise.
11134         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
11135         find_single_block_region, find_rgns, schedule_insns)
11136         * sibcall.c (optimize_sibling_and_tail_recursive_call)
11137         * ssa-ccp.c (optimize_unexecutable_edges,
11138         ssa_ccp_df_delete_unreachable_insns): Likewise.
11139         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
11140         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
11141         rename_block, convert_to_ssa, compute_conservative_reg_partition,
11142         compute_coalesced_reg_partition, rename_equivalent_regs,
11143         convert_from_ssa): Likewise.
11144         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
11145         process_for_unwind_directive): Likewise.
11146
11147         * df.c (FOR_ALL_BBS): Removed.
11148         * gcse.c (struct null_pointer_info): Type of current_block field
11149         changed.
11150         (struct reg_avail_info): Type of last_bb field changed.
11151         * config/ia64/ia64.c (block_num): Removed.
11152         (need_copy_state): Type changed.
11153         (last_block): New.
11154
11155 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11156
11157         * cppinit.c (mark_named_operators): Split out from init_builtins.
11158         (cpp_finish_options): Call it from here instead.
11159
11160 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
11161
11162         * builtin-attrs.def: Update copyright years.
11163         (ATTR_NONNULL): New attribute identifier.
11164         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
11165         attribute tree lists.
11166         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
11167         format operand.
11168         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
11169         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
11170         attribute lists.  Chain the appropriate nonnull attribute.
11171         * c-format.c (check_format_arg): Remove null format string
11172         warning.
11173         * testsuite/gcc.dg/format/null-1.c: New test.
11174
11175 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11176
11177         * Makefile.in (ADAC): Define.
11178         (SYSLIBS): Define.
11179         (.SUFFIXES): Move before language makefile fragments.
11180         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
11181
11182 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
11183
11184         * varasm.c (make_decl_rtl): Don't allow weak variables to be
11185         placed in common.
11186
11187 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
11188
11189         * cfg.c (dump_flow_info): Print results of
11190         maybe_hot/probably_never_executed predicates.
11191         * toplev.c (open_dump_file): Print function frequency.
11192
11193 2002-05-23  David S. Miller  <davem@redhat.com>
11194
11195         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
11196         regsets.
11197
11198 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
11199
11200         * c-common.c (warn_nonnull): Declare.
11201         (c_common_attribute_table): Add "nonnull" attribute.
11202         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
11203         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
11204         check_function_arguments_recurse): New functions.
11205         * c-common.h (warn_nonnull): Declare extern.
11206         (check_function_arguments, check_function_arguments_recurse): New
11207         prototypes.
11208         * c-decl.c (c_decode_option): Add -Wnonnull option.
11209         * c-format.c (set_Wformat): Set warn_nonnull if enabling
11210         format checking.
11211         (format_check_context): New structure.
11212         (check_format_info_recurse): Remove recursion and rename to...
11213         (check_format_arg): ...this.  Update comment.
11214         (check_format_info): Use check_function_arguments_recurse.
11215         * c-typeck.c (build_function_call): Call check_function_arguments
11216         instead of check_function_format.
11217         * doc/extend.texi: Document "nonnull" attribute.
11218         * doc/invoke.texi: Docuemnt -Wnonnull option.
11219         * testsuite/gcc.dg/nonnull-1.c: New test.
11220         * testsuite/gcc.dg/nonnull-2.c: New test.
11221
11222 2002-05-23  David S. Miller  <davem@redhat.com>
11223
11224         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
11225         * cfgcleanup.c (cleanup_cfg): If it is set do not
11226         attempt to delete trivially dead insns.
11227         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
11228         * toplev.c (rest_of_compilation): Document non-trivial aspect
11229         the RTL before optimize_save_area_alloca is run.
11230
11231 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11232
11233         * c-lex.c (indent_level): Remove.
11234         (cb_file_change, c_lex): Remove indent level handling.
11235         * c-lex.h (indent_level): Remove.
11236         * input.h (struct file_stack): Remove indent_level.
11237         * toplev.c (push_srcloc): Remove indent_level handling.
11238
11239 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
11240
11241         PR target/6753
11242         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
11243         of x in constraints for clarity.
11244         (sse_mov?fcc split): abort if op2 == op3.
11245         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
11246         sse_movsfcc_const0_4): Add earlyclobber.
11247         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
11248         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
11249         Use Y instead of x in constraints.
11250
11251 2002-05-23  Richard Henderson  <rth@redhat.com>
11252
11253         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
11254         (C++98 Thread-Local Edits): New subsection.
11255
11256         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
11257         (ix86_arch): Set type to enum processor_type.
11258
11259         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
11260         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
11261
11262 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
11263
11264         * configure.in: Fix as version test for binutils 2.12.1 releases
11265         (without dates).
11266         * configure: Rebuilt.
11267
11268 2002-05-23  Richard Henderson  <rth@redhat.com>
11269
11270         * config/i386/i386.c (get_pic_label_name): New.
11271         (load_pic_register): Remove.
11272         (output_set_got): New.
11273         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
11274         * config/i386/i386.md (UNSPEC_SET_GOT): New.
11275         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
11276         (prologue_set_got, prologue_get_pc): Remove.
11277         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
11278         (builtin_setjmp_receiver): Use gen_set_got.
11279         * config/i386/i386-protos.h: Update.
11280
11281 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
11282
11283         * gcse.c (hash_expr): Do not use alias set for hashing.
11284
11285 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
11286
11287         * dbxout.c (dbxout_class_name_qualifiers): New function.
11288         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
11289
11290 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11291
11292         * cpperror.c (_cpp_begin_message): No special casing
11293         of CPP_FATAL_LIMIT.
11294         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
11295         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
11296         * cpplib.c (do_include_common): Use DL_ERROR.
11297         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
11298         (DL_ICE): Renumber.
11299         * fix-header.c (read_scan_file): Update.
11300
11301 2002-05-22  Richard Henderson  <rth@redhat.com>
11302
11303         * config/i386/i386.c (ix86_expand_call): New function, extracted
11304         from md call patterns.  Add pic_offset_table_rtx to
11305         CALL_INSN_FUNCTION_USAGE when needed.
11306         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
11307         (call_value_pop, call_value, untyped_call): Likewise.
11308         (call_exp, call_value_exp): Remove.
11309         * config/i386/i386-protos.h: Update.
11310
11311 2002-05-22  Richard Henderson  <rth@redhat.com>
11312
11313         * varasm.c (default_section_type_flags): Check for VAR_DECL
11314         before using DECL_THREAD_LOCAL.
11315
11316 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
11317
11318         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
11319         (STARTFILE_SPEC): Delete PE crt0.o.
11320         * config/rs6000/aix51.h: Same.
11321         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
11322         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
11323         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
11324         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
11325         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
11326
11327 2002-05-22  Richard Henderson  <rth@redhat.com>
11328
11329         * varasm.c (default_section_type_flags): Handle tls data and
11330         default sections.
11331         (default_unique_section): Handle tls sections.
11332
11333 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
11334
11335         * configure.in (CROSS): Define NATIVE_CROSS.
11336         * configure: Regenerate.
11337         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
11338         (startfile_prefix_spec): New var.
11339         (static_specs): Add startfile_prefix_spec.
11340         (do_spec_2): Split out from..
11341         (do_spec): ..here.
11342         (main): Process startfile_prefix_spec.
11343         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
11344         dynamic linker.
11345         (STARTFILE_PREFIX_SPEC): Define.
11346         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
11347         absolute paths.
11348
11349 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
11350
11351         * cpperror.c: Fix formatting.
11352         * cppexp.c: Likewise.
11353         * cppfiles.c: Likewise.
11354         * cpphash.c: Likewise.
11355         * cpphash.h: Likewise.
11356         * cppinit.c: Likewise.
11357         * cpplex.c: Likewise.
11358         * cpplib.c: Likewise.
11359         * cppmacro.c: Likewise.
11360         * cppmain.c: Likewise.
11361         * cppspec.c: Likewise.
11362
11363 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
11364
11365         * combine.c (force_to_mode): Use gen_int_mode.
11366         Don't clear CONST_INT bits outside of mode.
11367
11368 2002-05-22  Richard Henderson  <rth@redhat.com>
11369
11370         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
11371         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
11372
11373 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
11374
11375         PR c/6643
11376         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
11377         if DECL_SIZE_UNIT is INTEGER_CST.
11378
11379 2002-05-22  Richard Henderson  <rth@redhat.com>
11380
11381         * flow.c (life_analysis): Delete broken reg_label check.
11382
11383 2002-05-22  Richard Henderson  <rth@redhat.com>
11384
11385         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
11386         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
11387
11388 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
11389
11390         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
11391         (embed-bb.c): New rule.
11392         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
11393         * config/sh/embed_bb.c: Delete.
11394
11395 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
11396
11397         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
11398
11399 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
11400
11401         * config/h8300/h8300.md (*andorqi3): New.
11402
11403 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
11404
11405         PR preprocessor/6517
11406         * Makefile.in: Update.
11407         * c-common.c (c_common_post_options): Add preprocessor
11408         errors to the error count.
11409         * c-lang.c (c_post_options): Kill.
11410         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
11411         * hooks.h: Add header guards.
11412         * langhooks-def.h: Include hooks.h.
11413         (LANG_HOOKS_POST_OPTIONS): Update.
11414         * langhooks.h (struct lang_hooks): Update post_options.
11415         * toplev.c (parse_options_and_default_flags): Update.
11416 objc:
11417         * objc-lang.c (objc_post_options): Kill.
11418         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
11419
11420 2002-05-21  Bruce Korb  <bkorb@gnu.org>
11421
11422         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
11423         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
11424         * fixinc/fixincl.x: regen.
11425
11426 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
11427
11428         * cfgbuild.c: Fix formatting.
11429         * cfg.c: Likewise.
11430         * cfgcleanup.c: Likewise.
11431         * cfglayout.c: Likewise.
11432         * cfgloop.c: Likewise.
11433         * cfgrtl.c: Likewise.
11434
11435 2002-05-21  Richard Henderson  <rth@redhat.com>
11436
11437         * c-common.h (enum rid): Add RID_THREAD.
11438         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
11439         (grokdeclarator): Grok __thread.
11440         * c-parse.in (reswords): Add __thread.
11441         (rid_to_yy): Add RID_THREAD.
11442
11443         * tree.h (DECL_THREAD_LOCAL): New.
11444         (struct tree_decl): Add thread_local_flag.
11445         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
11446         * tree.c (staticp): TLS variables are not static.
11447
11448         * target-def.h (TARGET_HAVE_TLS): New.
11449         * target.h (have_tls): New.
11450         * output.h (SECTION_TLS): New.
11451         * varasm.c (assemble_variable): TLS variables can't be common for now.
11452         (default_section_type_flags): Handle .tdata and .tbss.
11453         (default_elf_asm_named_section): Handle SECTION_TLS.
11454         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
11455
11456         * flags.h (flag_tls_default): Declare.
11457         * toplev.c (flag_tls_default): Define.
11458         (display_help): Display help for it.
11459         (decode_f_option): Set it.
11460
11461         * doc/extend.texi (Thread-Local): New node describing language-level
11462         thread-local storage.
11463         * doc/invoke.texi (-ftls-model): Document.
11464
11465         * fixinc/inclhack.def (thread_keyword): New.
11466         * fixinc/fixincl.x: Rebuild.
11467
11468 2002-05-21  Jeffrey A Law  <law@redhat.com>
11469
11470         * optabs.c (expand_binop): For double-word integer multiplies,
11471         do not compute intermediate results into something that is
11472         not a register (such as a SUBREG or MEM).
11473
11474         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
11475         (ix86_sched_reorder): Make sure to initialize scheduling
11476         data even when there's only one insn in the ready queue.
11477
11478 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
11479
11480         * genautomata.c (reserv_sets_hash_value): Fix a typo.
11481
11482 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
11483
11484         * genautomata.c (reserv_sets_hash_value): Define hash_value as
11485         set_el_t.  Transform the hash value into unsigned.
11486         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
11487         (transform_3): Add code to process `(A,B)+(D,E)'.
11488
11489 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
11490
11491         * reload1.c (do_output_reload): Run delete_output_reload
11492         only if optimizing.
11493
11494 2002-05-21  Roger Sayle  <roger@eyesopen.com>
11495
11496         PR middle-end/6600
11497         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
11498         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
11499         (can_store_by_pieces): ... and here to limit the largest mode used.
11500         Add a comment to document this function.
11501
11502 2002-05-21  Richard Henderson  <rth@redhat.com>
11503
11504         * flow.c (life_analysis): Fix test for deleted label.
11505
11506 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
11507
11508         * doc/tm.texi: Fix typo.
11509
11510 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
11511
11512         * c-common.c (c_common_init): Set options->unsigned_char from
11513         flag_signed_char.
11514         (cb_register_builtins): Define __STRICT_ANSI__ and
11515         __CHAR_UNSIGNED__ here...
11516         * cppinit.c (init_builtins): Not here.
11517         (cpp_create_reader): unsigned_char option defaults to 0, not
11518         !DEFAULT_SIGNED_CHAR.
11519         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
11520         and -funsigned-char.
11521
11522         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
11523         * cpphash.c (_cpp_init_hashtable): Don't set it.
11524         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
11525         directly.  Clarify comment.
11526
11527 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11528
11529         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
11530         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
11531         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
11532         BASIC_BLOCK (n_basic_blocks - 1).
11533         * cfganal.c (can_fallthru, flow_call_edges_add,
11534         flow_preorder_transversal_compute): Too.
11535         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
11536         find_sub_basic_blocks): Too.
11537         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
11538         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
11539         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
11540         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
11541         * combine.c (this_basic_block): Type changed to basic_block.
11542         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
11543         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
11544         get_last_value, distribute_notes, distribute_links): Too.
11545         * final.c (compute_alignments): Too.
11546         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
11547         * function.c (thread_prologue_and_epilogue_insns): Too.
11548         * gcse.c (compute_code_hoist_vbeinout): Too.
11549         * global.c (build_insn_chain): Too.
11550         * ifcvt.c (find_if_block, find_cond_trap): Too.
11551         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
11552         * regmove.c (regmove_optimize): Too.
11553         * resource.c (find_basic_block): Too.
11554         * sched-ebb.c (schedule_ebbs): Too.
11555         * ssa-dce.c (find_control_dependence, find_pdom): Too.
11556
11557 2002-05-21  Andreas Jaeger  <aj@suse.de>
11558
11559         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
11560
11561 2002-05-21  Richard Henderson  <rth@redhat.com>
11562
11563         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
11564         unspec names, not numbers.
11565
11566 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11567
11568         * doc/sourcebuild.texi: Mention snapshot-README and
11569         snapshot-index.html as needing updating for new front ends.
11570
11571 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11572
11573         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
11574         disabling checking, and avoid multiple evaluation of RTX.
11575
11576 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
11577
11578         * bitmap.c (bitmap_find_bit): Return early if we have the correct
11579         element cached.
11580
11581 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
11582
11583         * profile.c (gen_edge_profiler):  Set alias set before the memory is
11584         used.
11585
11586 2002-05-20  David S. Miller  <davem@redhat.com>
11587
11588         * cselib.c (max_value_regs): New.
11589         (cselib_lookup, cselib_invalidate_regno): Initialize it when
11590         adding new entries to the REG_VALUES table and we are dealing with
11591         a hard register.
11592         (clear_table): Initialize it.
11593         (cselib_invalidate_regno): Use it to determine which hard
11594         registers to scan when mode is not VOIDmode.
11595
11596 2002-05-20  Duraid Madina   <duraid@fl.net.au>
11597
11598         * tradcpp.c (fixup_newlines): Use old-style function header.
11599
11600 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
11601
11602         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
11603
11604 2002-05-20  H.J. Lu  (hjl@gnu.org)
11605
11606         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
11607
11608         * config/mips/mips.h (DFMODE_NAN): Defined.
11609         (SFMODE_NAN): Likewise.
11610
11611 2002-05-20  Dale Johannesen  <dalej@apple.com>
11612
11613         * combine.c (cant_combine_insn_p):  Back out my
11614         previous patch.
11615
11616 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
11617
11618         * params.c: Fix formatting.
11619         * params.h: Likewise.
11620         * predict.c: Likewise.
11621         * prefix.c: Likewise.
11622         * print-rtl.c: Likewise.
11623         * print-tree.c: Likewise.
11624         * profile.c: Likewise.
11625
11626 2002-05-20  H.J. Lu  (hjl@gnu.org)
11627
11628         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
11629
11630 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
11631
11632         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
11633         switches straight on to the assembler, do not abbreviate them.
11634         * config/arm/elf.h (ASM_SPEC): As above.
11635         * config/arm/semi.h (ASM_SPEC): As above.
11636         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
11637         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
11638         -mcpu=xscale on to the assembler by default.
11639         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
11640
11641 2002-05-20  Richard Henderson  <rth@redhat.com>
11642
11643         * cse.c (canon_hash): Reorder do_not_record test.  Always
11644         allow pic_offset_table_rtx.
11645
11646 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
11647
11648         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
11649         (expand_binop): Ditto (3 times).
11650
11651 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
11652
11653         * Makefile.in (distclean): Remove QMTest stuff.
11654         (QMTEST_PATH): New variable.
11655         (QMTESTFLAGS): Likewise.
11656         (QMTESTRUNFLAGS): Likewise.
11657         (QMTEST): Likewise.
11658         (QMTEST_GPP_TESTS): Likewise.
11659         (QMTEST_DIR): Likewise.
11660         (QMTEST_DIR/context): New target.
11661         (qmtest-g++): Likeise.
11662         (qmtest-gui): Likewise.
11663         (QMTEST_DIR/gpp-expected.qmr): Likewise.
11664
11665 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
11666
11667         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
11668         an altivec register if TARGET_ALTIVEC.
11669
11670         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
11671         to ALTIVEC_VECTOR_MODE.
11672         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
11673         (rs6000_va_arg): Vectors may go in registers if they are not
11674         altivec vectors.
11675
11676 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
11677
11678         * protoize.c: Fix formatting.
11679
11680 2002-05-19  Richard Henderson  <rth@redhat.com>
11681
11682         * gensupport.c (init_include_reader): Merge into ...
11683         (process_include): ... here.  Simplify composite path creation.
11684         Plug memory leaks.  Fix file/line number tracking.  Do not
11685         process_define_cond_exec.  Return void.
11686         (process_rtx): Don't check process_include return value.
11687
11688 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11689
11690         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
11691         fields.
11692         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
11693         traversing basic block chain.
11694         (create_basic_block_structure, create_basic_block): Declaration changed.
11695         (link_block, unlink_block): Declare.
11696         * cfg.c (entry_exit_blocks): Initialize new fields.
11697         (link_block, unlink_block): New.
11698         (expunge_block_nocompact): Unlink basic block.
11699         (dump_flow_info): Print prev_bb/next_bb fields.
11700         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
11701         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
11702         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
11703         * cfgrtl.c (create_basic_block_structure, create_basic_block,
11704         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
11705         (verify_flow_info): Check that list agrees with numbering.
11706
11707 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11708
11709         * c-common.c (preprocessing_asm): New macro.
11710         * c-lex.h (builtin_define, builtin_assert): Use pfile.
11711 doc:
11712         * tm.texi: Update.
11713 config/alpha:
11714         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
11715         (CPP_SPEC): Simplify.
11716         (TARGET_CPU_CPP_BUILTINS): Update.
11717         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
11718         (CPP_SPEC): Simplify.
11719         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
11720         (TARGET_OS_CPP_BUILTINS): Update.
11721         * osf.h (CPP_XFLOAT_SPEC): Kill.
11722         (TARGET_OS_CPP_BUILTINS): Update.
11723         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
11724         * osf5.h (CPP_XFLOAT_SPEC): Kill.
11725         * vms.h (CPP_SUBTARGET_SPEC): Kill.
11726         (TARGET_OS_CPP_BUILTINS): Update.
11727
11728 2002-05-19  Richard Henderson  <rth@redhat.com>
11729
11730         * varasm.c (default_binds_local_p): Fix typo.
11731
11732 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11733
11734         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
11735         CONST_INT operand to the correct mode after adding 1 to it.
11736
11737 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
11738
11739         * config.gcc (powerpc-wrs-windiss*): New target.
11740
11741 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11742
11743         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
11744         (ashrdi3): Use it.
11745
11746 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
11747
11748         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
11749         alphasort.
11750         * config.in: Regenerated.
11751         * configure: Regenerated.
11752
11753 2002-05-19  Richard Henderson  <rth@redhat.com>
11754
11755         * target-def.h (TARGET_BINDS_LOCAL_P): New.
11756         * target.h (struct gcc_target): Move boolean fields to the end.
11757         Add binds_local_p.
11758         * varasm.c (default_binds_local_p): New.
11759         * output.h: Declare it.
11760
11761         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
11762         * config/cris/cris.c (cris_encode_section_info): Likewise.
11763         * config/i386/i386.c (i386_encode_section_info): Likewise.
11764         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
11765         * config/sh/sh.c (sh_encode_section_info): Likewise.
11766
11767         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
11768         (TARGET_BINDS_LOCAL_P): New.
11769
11770 2002-05-19  Richard Henderson  <rth@redhat.com>
11771
11772         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
11773         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
11774         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
11775
11776         * toplev.c (display_help): Kill -a -ax help.
11777
11778         * config/1750a/1750a.h, config/alpha/alpha.h,
11779         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
11780         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
11781         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
11782         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
11783
11784         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
11785         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
11786
11787         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
11788         (ix86_output_function_block_profiler): Kill.
11789         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
11790         (m68hc11_function_block_profiler): Kill.
11791         * config/m68hc11/m68hc11-protos.h: Update.
11792         * config/m88k/m88k.c (output_block_profiler): Kill.
11793         (output_function_block_profiler): Kill.
11794         * config/m88k/m88k-protos.h: Update.
11795
11796 2002-05-19  Richard Henderson  <rth@redhat.com>
11797
11798         * system.h (STRIP_NAME_ENCODING): Poison it.
11799         * output.h (STRIP_NAME_ENCODING): Remove.
11800         (default_strip_name_encoding): Declare.
11801         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
11802         * target.h (strip_name_encoding): New.
11803         * varasm.c (default_strip_name_encoding): New.
11804
11805         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
11806         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
11807         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
11808         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
11809         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
11810         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
11811         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
11812         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
11813         config/v850/v850.h: Use the hook, not the macro.
11814
11815         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
11816         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
11817         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
11818         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
11819         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
11820         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
11821         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
11822         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
11823         config/v850/v850.c, config/v850/v850.h:
11824         Move STRIP_NAME_ENCODING to out-of-line function and add
11825         TARGET_STRIP_NAME_ENCODING.
11826
11827         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
11828         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
11829         with TARGET_STRIP_NAME_ENCODING referencing existing function;
11830         make function static.
11831
11832         * xcoffout.c: Include target.h
11833         * Makefile.in (xcoffout.o): Update.
11834
11835         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
11836         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
11837         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
11838         reloc argument unused.
11839         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
11840
11841         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
11842         STRIP_NAME_ENCODING docs.
11843
11844 2002-05-19  Andreas Jaeger  <aj@suse.de>
11845
11846         * gengenrtl.c: Add prototype for excluded_rtx.
11847
11848         * real.h: Add prototype for exact_real_truncate.
11849
11850 2002-05-18  Richard Henderson  <rth@redhat.com>
11851
11852         * system.h (ENCODE_SECTION_INFO): Poison it.
11853         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
11854         * target.h (encode_section_info): New.
11855         * varasm.c (make_decl_rtl, output_constant_def): Use it.
11856         * hooks.c (hook_tree_int_void): New.
11857         * hooks.h: Declare it.
11858
11859         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
11860         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
11861         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
11862         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
11863         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
11864         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
11865         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
11866         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
11867         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
11868         config/mcore/mcore-protos.h, config/mcore/mcore.c,
11869         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
11870         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
11871         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
11872         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
11873         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
11874         referencing existing function.  Make function static.
11875
11876         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
11877         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
11878         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
11879         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
11880         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
11881         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
11882         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
11883         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
11884         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
11885         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
11886         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
11887         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
11888         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
11889         Move ENCODE_SECTION_INFO to out-of-line function and add
11890         TARGET_ENCODE_SECTION_INFO.
11891
11892         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
11893         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11894
11895         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
11896         from SUBTARGET_*
11897         (switch_to_section): Replace in_rdata case with in_readonly_data.
11898
11899         * config/h8300/h8300.c (h8300_encode_label): Make static.
11900         * config/h8300/h8300-protos.h: Update.
11901
11902         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
11903         from rs6000_encode_section_info; make static.
11904         (rs6000_xcoff_encode_section_info): New.
11905
11906         * config/v850/v850.c (v850_encode_data_area): Make static.
11907         * config/v850/v850-protos.h: Update.
11908
11909         * config/vax/vax.c: Include flags.h.
11910         (vms_select_section): Fix typo.
11911
11912         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
11913         ENCODE_SECTION_INFO docs.
11914
11915 2002-05-18  Richard Henderson  <rth@redhat.com>
11916
11917         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
11918         REGISTER_TARGET_PRAGMAS.
11919         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
11920
11921         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
11922
11923 2002-05-18  Richard Henderson  <rth@redhat.com>
11924
11925         * system.h (SELECT_RTX_SECTION): Poison.
11926         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
11927         * target.h (select_rtx_section): New.
11928         * varasm.c (output_constant_pool): Use it.
11929         (default_select_rtx_section, default_elf_select_rtx_section): New.
11930         * output.h: Declare them.
11931
11932         * config/darwin.h (SELECT_RTX_SECTION): Move ...
11933         * config/darwin.c (machopic_select_rtx_section): ... here.
11934         * config/darwin-protos.h: Update.
11935
11936         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
11937         * config/nextstep.c (machopic_select_rtx_section): ... here.
11938         (nextstep_select_section): Rename variable to avoid macro clash.
11939         * config/nextstep-protos.h: Update.
11940
11941         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
11942         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
11943         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
11944         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
11945         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
11946         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
11947         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
11948         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
11949         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
11950         (SELECT_RTX_SECTION): Remove.
11951
11952         * config/darwin.h, config/elfos.h, config/nextstep.h,
11953         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
11954         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
11955         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
11956         config/sparc/lynx.h, config/xtensa/xtensa.c
11957         (TARGET_ASM_SELECT_RTX_SECTION): New.
11958
11959         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
11960         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
11961         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
11962         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
11963         (ia64_aix_select_rtx_section): New.
11964         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
11965         redefining.
11966         * config/mips/mips.c (mips_select_rtx_section): Make static.
11967         Support ELF SHF_MERGE features.
11968         * config/mips/mips-protos.h: Update.
11969         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
11970         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
11971         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
11972         make static, fall back to default_elf_select_rtx_section.
11973         * config/rs6000/rs6000-protos.h: Update.
11974         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
11975         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
11976         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
11977         * config/romp/romp.c (romp_select_rtx_section): New.
11978         * config/s390/s390.c (s390_select_rtx_section): New.
11979         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
11980         declarations before target macro definition.
11981         (xtensa_emit_call): Use static buffer.
11982         (xtensa_select_rtx_section): New.
11983         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
11984         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
11985         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
11986
11987         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
11988         SELECT_RTX_SECTION docs.
11989
11990 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
11991
11992         * i386.md (movsi/movdi): Fix template.
11993         (sse2 patterns): Set attributes consistently.
11994
11995         * i386.md (pushqi2, ashrqi_*): Fix constraint.
11996
11997 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
11998
11999         * optabs.c (complex_part_zero_p): New.
12000         * (expand_cmplxdiv_straight): Use it.
12001         * (expand_cmplxdiv_wide): Ditto.
12002         * (expand_binop): Ditto.
12003
12004 2002-05-18  Richard Henderson  <rth@redhat.com>
12005
12006         * final.c (HAVE_READONLY_DATA_SECTION): New.
12007         (shorten_branches): Use it instead of ifdefs.
12008         * varasm.c (enum in_section): Add in_readonly_data.
12009         (text_section, data_section): Tidy.
12010         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
12011
12012         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
12013         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
12014         (READONLY_DATA_SECTION): Don't undef.
12015
12016         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
12017         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
12018         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
12019
12020         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
12021         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
12022         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
12023         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
12024
12025         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
12026         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
12027         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
12028         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
12029         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
12030         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
12031         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
12032         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
12033         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
12034
12035         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
12036         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
12037         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
12038         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
12039         config/pa/pa64-hpux.h, config/sparc/litecoff.h
12040         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
12041
12042         * config/elfos.h, config/netware.h, config/svr3.h,
12043         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
12044         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
12045         config/h8300/h8300.h, config/i386/i386-interix.h,
12046         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
12047         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
12048
12049         * config/elfos.h, config/netware.h, config/svr3.h,
12050         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
12051         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
12052         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
12053         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
12054
12055         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
12056         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
12057         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
12058         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
12059         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
12060         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
12061         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
12062         config/rs6000/sysv4.h, config/v850/v850.h
12063         (EXTRA_SECTIONS): Remove in_const/in_rdata.
12064         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
12065
12066         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
12067         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
12068         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
12069         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
12070         * config/alpha/alpha.c (alpha_start_function): Likewise.
12071         (alpha_write_linkage): Likewise.
12072         * config/m32r/m32r.c (m32r_select_section): Likewise.
12073         * config/m88k/m88k.c (m88k_select_section): Likewise.
12074         * config/mips/mips.c (mips_select_rtx_section): Likewise.
12075         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
12076         (rs6000_elf_select_section): Likewise.
12077         * config/v850/v850.c (v850_select_section): Likewise.
12078
12079         * config/1750a/1750a.h, config/i860/sysv3.h
12080         (READONLY_DATA_SECTION_ASM_OP): New.
12081         READONLY_DATA_SECTION_ASM_OP.
12082         * config/i386/interix.c, config/i386/winnt.c
12083         (i386_pe_unique_section): Always use .rdata prefix.
12084         * config/pa/som.h (readonly_data): Always switch to read-only section.
12085         (READONLY_DATA_SECTION): Predicate on flag_pic.
12086         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
12087         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
12088         (READONLY_DATA_SECTION): Update.
12089
12090 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
12091
12092         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
12093         is used without -Wformat.
12094         * c-common.h (warn_format_zero_length): Declare extern.
12095         * c-decl.c (warn_options): Add "format-zero-length".
12096         * c-format.c (warn_format_zero_length): Declare.
12097         (set_Wformat): Set warn_format_zero_length for -Wformat.
12098         (check_format_info): Only warn about zero-length formats if
12099         warn_format_zero_length is true.  Include the format type
12100         name in the warning message.
12101         * doc/invoke.texi: Document -Wformat-zero-length.
12102         * testsuite/gcc.dg/format/zero-length-1.c: New test.
12103
12104 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
12105
12106         * timevar.c: Fix formatting.
12107         * tlink.c: Likewise.
12108         * toplev.c: Likewise.
12109         * tree-dump.c: Likewise.
12110         * tree-inline.c: Likewise.
12111
12112 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
12113
12114         * cppinit.c (cpp_post_options): If preprocessed, turn off
12115         traditional.  If traditional, turn off column numbers.
12116         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
12117         * cpptrad.c (handle_newline): Update line_base.
12118         (skip_comment): Handle -Wcomment.
12119
12120 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
12121
12122         * cppinit.c (struct builtin): Remove unused fields.
12123         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
12124         (operator_array): New - was second half of builtin_array.
12125         (init_builtins): Simplify loop over builtin_array/operator_array.
12126
12127 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
12128
12129         * defaults.h (UNIQUE_SECTION): Remove.
12130         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
12131
12132 2002-05-17  Richard Henderson  <rth@redhat.com>
12133
12134         * expr.c (init_expr_once): Don't use start/end_sequence.
12135         Use rtx_alloc instead of emit_insn.
12136         * toplev.c (lang_dependent_init): Run init_expr_once here ...
12137         (lang_independent_init): ... not here.
12138
12139 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
12140
12141         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
12142
12143 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12144
12145         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
12146         for fixed registers, possibly used for global register variables.
12147         (initial_elimination_offset, avr_output_function_prologue,
12148         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
12149
12150 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
12151
12152         * Makefile.in: Update for cpptrad.c.
12153         * cpphash.h (struct cpp_buffer): New members for buffer
12154         overlays.
12155         (struct cpp_reader): New members for traditional output.
12156         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
12157         * cppinit.c (cpp_create_reader): Set trad_line.
12158         (cpp_destroy): Free trad_out_base if used.
12159         (cpp_read_main_file): Overlay an empty buffer if traditional.
12160         (cpp_finish_options): Don't do builtins.
12161         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
12162         (cpp_handle_option): Handle it.
12163         * cpplex.c (continue_after_nul): New.
12164         (_cpp_lex_direct): Use handle_nul.
12165         * cpplib.h (struct cpp_options): New traditional option.
12166         * cpptrad.c: New file.
12167
12168 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
12169
12170         * c-common.c (c_common_init_options): Use C89 for Objective-C,
12171         and set the options flag.
12172         * cppinit.c (lang_flags): Remove objc.
12173         (lang_defaults): Remove OBJC and OBJCXX.
12174         (set_lang): Update.
12175         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
12176         (cpp_handle_option): Remove -+ and -lang-objc++.
12177         For ObjC, just set a flag.
12178         (print_help): Update.
12179         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
12180
12181 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12182
12183         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
12184         bootstrap with -mips3.
12185
12186 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
12187
12188         * final.c: Fix formatting.
12189         * fix-header.c: Likewise.
12190         * flow.c: Likewise.
12191         * fold-const.c: Likewise.
12192         * function.c: Likewise.
12193
12194 2002-05-17  David S. Miller  <davem@redhat.com>
12195
12196         PR c/6689, PR optimization/6615
12197         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
12198         and make it a pointer to rtx.  Update comments.
12199         (update_equiv_regs): When scanning for equivalences, record
12200         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
12201         it while making the equiv replacements.
12202
12203 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12204
12205         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
12206
12207 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12208
12209         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
12210         when encoding visibility into SYMBOL_REF_FLAG.
12211
12212 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
12213
12214         * expr.c (force_operand): Fix reversed move.
12215
12216 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
12217
12218         * doc/install.texi (Testing): Mention two common DejaGnu warnings
12219         that can be ignored.
12220
12221 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12222
12223         * doc/install.texi (Final install): Recommend to install into a
12224         "clean" target directory.
12225
12226 2002-05-17  Richard Henderson  <rth@redhat.com>
12227
12228         * config/ia64/ia64.md: Use braced strings instead of quoted strings
12229         for code blocks.  Tidy whitespace.
12230
12231 2002-05-17  Richard Henderson  <rth@redhat.com>
12232
12233         * hooks.c (hook_tree_bool_false): New.
12234         * hooks.h: Declare it.
12235         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
12236         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
12237         * target.h (select_section, unique_section): New.
12238         (in_small_data_p): New.
12239         * varasm.c (resolve_unique_section): Use hooks instead of macros.
12240         (variable_section, output_constant_def_contents): Likewise.
12241         (default_select_section, default_unique_section): New.
12242         (categorize_decl_for_section, default_elf_select_section): New.
12243         * output.h: Declare them.
12244
12245         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
12246         (TARGET_ASM_SELECT_SECTION): New.
12247         (SELECT_SECTION): Move ...
12248         * config/darwin.c (machopic_select_section): ... here.
12249         * config/darwin-protos.h: Update.
12250
12251         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
12252         (SELECT_SECTION): Move ...
12253         * config/nextstep.c (nextstep_select_section): ... here.
12254         * config/nextstep-protos.h: Update.
12255
12256         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
12257         (TARGET_ASM_SELECT_SECTION): New.
12258         * config/svr3.h (SELECT_SECTION): Remove.
12259
12260         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
12261         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
12262         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
12263         (alpha_encode_section_info): Use it.
12264         * config/alpha/alpha-protos.h: Update.
12265         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
12266         (SELECT_SECTION, UNIQUE_SECTION): Remove.
12267         (TARGET_ASM_SELECT_SECTION): New.
12268         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
12269
12270         * config/arm/pe.h (UNIQUE_SECTION): Remove.
12271         (TARGET_ASM_UNIQUE_SECTION): New.
12272
12273         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
12274         (avr_unique_section): Rename from unique_section; make static.
12275         * config/avr/avr-protos.h: Update.
12276         * config/avr/avr.h (UNIQUE_SECTION): Remove.
12277
12278         * config/c4x/c4x.h (SELECT_SECTION): Remove.
12279
12280         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
12281         (TARGET_ASM_UNIQUE_SECTION): New.
12282         * config/i386/i386-interix.h: Likewise.
12283         * config/i386/win32.h: Likewise.
12284         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
12285         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
12286         * config/i386/sco5.h (SELECT_SECTION): Remove.
12287         (TARGET_ASM_SELECT_SECTION): New.
12288         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
12289
12290         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
12291         instead of SELECT_SECTION.
12292         * config/m68k/dpx2.h: Likewise.
12293         * config/rs6000/lynx.h: Likewise.
12294
12295         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
12296         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
12297         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
12298         (ia64_in_small_data_p): New.
12299         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
12300         (ia64_aix_select_section, ia64_aix_unique_section): New.
12301         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
12302         (SELECT_SECTION, UNIQUE_SECTION): Remove.
12303
12304         * config/m32r/m32r.h (SELECT_SECTION): Remove.
12305         (TARGET_ASM_SELECT_SECTION): New.
12306         * config/m32r/m32r.c (m32r_select_section): Take align argument.
12307         * config/m32r/m32r-protos.h: Update.
12308
12309         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
12310         (SELECT_SECTION): Move ...
12311         * config/m88k/m88k.c (m88k_select_section): ... here.
12312
12313         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
12314         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
12315         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
12316         (mcore_unique_section): Make static.
12317         * config/mcore/mcore-protos.h: Update.
12318
12319         * config/mips/elf.h (UNIQUE_SECTION): Remove.
12320         (TARGET_ASM_UNIQUE_SECTION): New.
12321         * config/mips/elf64.h: Likewise.
12322         * config/mips/iris6gld.h: Likewise.
12323         * config/mips/linux.h: Likewise.
12324         * config/mips/mips-protos.h: Update.
12325         * config/mips/mips.c (mips_select_section): Add align argument.
12326         * config/mips/mips.h (SELECT_SECTION): Remove.
12327         (TARGET_ASM_SELECT_SECTION): New.
12328
12329         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
12330         * config/mmix/mmix.c (mmix_select_section): Remove.
12331         (mmix_unique_section): Remove.
12332         * config/mmix/mmix-protos.h: Update.
12333
12334         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
12335         (SELECT_SECTION): Move ...
12336         * config/pa/pa.c (pa_select_section): ... here.
12337         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
12338
12339         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
12340         from rs6000_select_section and make static.
12341         (rs6000_elf_unique_section): Similarly.
12342         (rs6000_xcoff_select_section): From xcoff.h.
12343         (rs6000_xcoff_unique_section): Likewise.
12344         * config/rs6000/rs6000-protos.h: Update.
12345         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
12346         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
12347         * config/rs6000/xcoff.h: Likewise.
12348
12349         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
12350         (SELECT_SECTION): Move ...
12351         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
12352
12353         * config/v850/v850.h (SELECT_SECTION): Move ...
12354         * config/v850/v850.c (v850_select_section): ... here.
12355         (TARGET_ASM_SELECT_SECTION): New.
12356
12357         * config/vax/vms.h (SELECT_SECTION): Move ...
12358         * config/vax/vax.c (vms_select_section): ... here.
12359         (TARGET_ASM_SELECT_SECTION): New.
12360
12361         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
12362         for the target hooks.
12363
12364 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
12365
12366         * config/arm/arm.c (emit_multi_reg_push): Do not set
12367         RTX_FRAME_RELATED_P on the SEQUENCE.
12368
12369 2002-05-16  Richard Henderson  <rth@redhat.com>
12370
12371         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
12372         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
12373
12374 2002-05-16  Richard Henderson  <rth@redhat.com>
12375
12376         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
12377
12378         * config/ia64/ia64.c (saveable_obstack): Do not declare.
12379
12380 2002-05-16  Richard Henderson  <rth@redhat.com>
12381
12382         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
12383         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
12384         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
12385         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
12386         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
12387         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
12388         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
12389         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
12390         Revert "Basic block renumbering removal", and two followup patches.
12391
12392 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
12393
12394         * lcm.c (optimize_mode_switching): Revert previous change.
12395
12396 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12397
12398         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
12399         with only extant block numbers.
12400
12401 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
12402
12403         * lcm.c (optimize_mode_switching): Fix typo.
12404
12405 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12406
12407         * flow.c (calculate_global_regs_live): Queue blocks in program order.
12408
12409 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12410
12411         * doc/install.texi (Configuration): Document PWDCMD.
12412
12413 2002-05-16  Dale Johannesen  <dalej@apple.com>
12414
12415         * combine.c (cant_combine_insn_p):  Reenable combinations
12416         involving hard regs unless CLASS_LIKELY_SPILLED_P.
12417
12418 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
12419
12420         * c-common.c (cb_register_builtins): Handle more built-ins
12421         here rather than in gcc.c specs.
12422         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
12423         (cpp_options): Pass -O flags even when only preprocessing.
12424         * toplev.c (set_fast_math_flags): New prototype.
12425         (fast_math_flags_set_p): New.
12426         (set_no_fast_math_flags): Remove.
12427         (decode_f_option): Update.
12428         * toplev.h (set_fast_math_flags): Update.
12429         (fast_math_flags_set_p): New.
12430         (set_no_fast_math_flags): Remove.
12431 config:
12432         * c4x/c4x.c (c4x_override_options): Update.
12433
12434 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
12435
12436         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
12437         Default-define here.
12438         (builtin_define_with_value): Can now wrap the expansion in
12439         quotation marks if such is wanted.
12440         (cb_register_builtins): Update calls to builtin_define_with_value.
12441         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
12442         here.
12443         (c_common_init): Set options->stdc_0_in_system_headers.
12444         * c-lex.h: Update prototype of builtin_define_with_value.
12445         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
12446         and REGISTER_PREFIX.
12447
12448         * cppinit.c (VERS, ULP, C, X): Kill.
12449         (builtin_array): Remove entries for __VERSION__,
12450         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
12451         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
12452         a constant.
12453         (init_builtins): Kill off a bunch of now-dead code.
12454         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
12455         -fno-leading-underscore.
12456         (cpp_handle_option): Remove code to set user_label_prefix.
12457         (cpp_post_options): Likewise.
12458
12459         * cpplib.h (struct cpp_options): Remove user_label_prefix.
12460         (stdc_0_in_system_headers): New.
12461         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
12462         stdc_0_in_system_headers) too to decide the value of __STDC__.
12463
12464         * tradcpp.c (user_label_prefix): Kill.
12465         (main): Remove code handling -f(no-)leading-underscore.
12466         (initialize_builtins): Don't define __REGISTER_PREFIX__
12467         or __USER_LABEL_PREFIX__.
12468         (install_value): Wrap compound statement in dummy loop so the
12469         macro works properly in an if statement.
12470
12471
12472 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
12473
12474         * loop.h (struct loop_info): Add member has_prefetch.
12475         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
12476         (prescan_loop): Initialize has_prefetch.
12477         (struct prefetch_info): Change prefetch_in_loop and
12478         prefetch_before_loop from bit fields to ints.
12479         (emit_prefetch_instructions): Several small fixes.
12480         (check_dbra_loop): Don't reverse loop that uses prefetch.
12481
12482 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12483
12484         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
12485         * configure.in: Likewise.
12486         * fixinc/check.tpl: Likewise.
12487         * fixinc/fixinc.dgux: Likewise.
12488         * fixinc/fixinc.svr4: Likewise.
12489         * fixinc/fixinc.winnt: Likewise.
12490         * fixinc/fixincl.sh: Likewise.
12491         * fixproto: Likewise.
12492         * configure: Regenerate.
12493
12494 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12495
12496         Basic block renumbering removal:
12497         * basic_block.h (struct basic_block_def): Renamed index to sindex,
12498         added prev_bb and next_bb fields.
12499         (n_basic_blocks): Renamed to num_basic_blocks.
12500         (last_basic_block): New, index of last basic block.
12501         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
12502         traversing basic block chain.
12503         (BLOCK_NUM): index -> sindex.
12504         (create_basic_block_structure, create_basic_block): Declaration changed.
12505         (debug_num2bb): Declare.
12506         (expunge_block_nocompact): Declaration removed.
12507         (link_block, unlink_block, compact_blocks): Declare.
12508         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
12509         * cfg.c (entry_exit_blocks): Initialize new fields.
12510         (clear_edges, alloc_block, expunge_block, cached_make_edge,
12511         redirect_edge_pred, dump_flow_info, dump_edge_info,
12512         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
12513         free_aux_for_edges): Modified.
12514         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
12515         (expunge_block_nocompact): Removed.
12516         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
12517         find_unreachable_blocks, create_edge_list, print_edge_list,
12518         verify_edge_list, flow_edge_list_print, remove_fake_successors,
12519         remove_fake_edges, flow_reverse_top_sort_order_compute,
12520         flow_depth_first_order_compute, flow_preorder_transversal_compute,
12521         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
12522         flow_dfs_compute_reverse_execute): Modified.
12523         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
12524         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
12525         Modified.
12526         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
12527         merge_blocks_move_predecessor_nojumps,
12528         merge_blocks_move_successor_nojumps, merge_blocks,
12529         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
12530         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
12531         * cfglayout.c (skip_insns_after_block, label_for_bb,
12532         record_effective_endpoints, scope_to_insns_finalize,
12533         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
12534         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
12535         cfg_layout_duplicate_bb): Modified.
12536         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
12537         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
12538         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
12539         flow_loops_find, flow_loop_outside_edge_p): Modified.
12540         * cfgrtl.c (create_basic_block_structure, create_basic_block,
12541         flow_delete_block, compute_bb_for_insn, split_block,
12542         try_redirect_by_replacing_jump, redirect_edge_and_branch,
12543         force_nonfallthru_and_redirect, tidy_fallthru_edge,
12544         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
12545         commit_edge_insertions, commit_edge_insertions_watch_calls,
12546         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
12547         purge_all_dead_edges): Modified.
12548         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
12549         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
12550         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
12551         Modified.
12552         * conflict.c (conflict_graph_compute): Modified.
12553         * df.c (FOR_ALL_BBS): Removed.
12554         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
12555         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
12556         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
12557         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
12558         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
12559         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
12560         * final.c (compute_alignments, final_scan_insn): Modified.
12561         * flow.c (verify_local_live_at_start, update_life_info,
12562         update_life_info_in_dirty_blocks, free_basic_block_vars,
12563         delete_noop_moves, calculate_global_regs_live,
12564         initialize_uninitialized_subregs, allocate_bb_life_data,
12565         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
12566         mark_used_reg, count_or_remove_death_notes): Modified.
12567         * function.c (thread_prologue_and_epilogue_insns): Modified.
12568         * gcse.c (struct null_pointer_info): Change typo of current_block
12569         to basic_block.
12570         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
12571         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
12572         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
12573         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
12574         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
12575         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
12576         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
12577         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
12578         pre_delete, one_pre_gcse_pass, compute_transpout,
12579         invalidate_nonnull_info, delete_null_pointer_checks_1,
12580         free_code_hoist_mem, compute_code_hoist_vbeinout,
12581         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
12582         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
12583         compute_store_table, build_store_vectors, insert_insn_start_bb,
12584         insert_store, replace_store_insn, free_store_memory, store_motion):
12585         Modified.
12586         * global.c (global_alloc, global_conflicts, mark_elimination,
12587         build_insn_chain): Modified.
12588         * graph.c (print_rtl_graph_with_bb): Modified.
12589         * haifa-sched.c (sched_init): Modified.
12590         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
12591         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
12592         if_convert): Modified.
12593         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
12594         compute_insert_delete, pre_edge_lcm, compute_available,
12595         compute_farthest, compute_nearerout, compute_rev_insert_delete,
12596         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
12597         Modified.
12598         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
12599         * loop.c (loop_dump_aux): Modified.
12600         * predict.c (combine_predictions_for_insn, estimate_probability,
12601         last_basic_block_p, process_note_prediction, process_note_predictions,
12602         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
12603         expensive_function_p, estimate_bb_frequencies,
12604         compute_function_frequency): Modified.
12605         * print-rtl.c (print_rtx): Modified.
12606         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
12607         get_exec_counts, compute_branch_probabilities, compute_checksum,
12608         branch_prob, find_spanning_tree): Modified.
12609         * recog.c (split_all_insns, peephole2_optimize): Modified.
12610         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
12611         convert_regs_1, convert_regs_2, convert_regs): Modified.
12612         * regclass.c (scan_one_insn, regclass): Modified.
12613         * regmove.c (mark_flags_life_zones, regmove_optimize,
12614         combine_stack_adjustments): Modified.
12615         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
12616         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
12617         * reorg.c (dbr_schedule): Modified.
12618         * resource.c (find_basic_block, init_resource_info): Modified.
12619         * sbitmap.c (sbitmap_intersection_of_succs,
12620         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
12621         sbitmap_union_of_preds): Modified.
12622         * sched-deps.c (init_dependency_caches): Modified.
12623         * sched-ebb.c (schedule_ebbs): Modified.
12624         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
12625         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
12626         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
12627         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
12628         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
12629         ssa_const_prop): Modified.
12630         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
12631         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
12632         * ssa.c (remove_phi_alternative, find_evaluations,
12633         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
12634         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
12635         make_regs_equivalent_over_bad_edges,
12636         make_equivalent_phi_alternatives_equival,
12637         compute_conservative_reg_partition,
12638         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
12639         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
12640         Modified.
12641
12642 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
12643
12644         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
12645
12646 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
12647
12648         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
12649         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
12650         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
12651         calling CONSTANT_POOL_ADDRESS_P.
12652         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
12653         to decide whether to define __arm__ or __thumb.
12654         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
12655         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
12656
12657 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
12658
12659         * config/arc/arc.h (CPP_PREDEFINES): Remove.
12660         (CPP_SPEC): Update.
12661         (TARGET_CPU_CPP_BUILTINS): New.
12662
12663 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
12664
12665         * cpphash.h (cpp_macro): Move here, and make expansion a union.
12666         * cppmacro.c (cpp_macro): Remove.
12667         (enter_macro_context, replace_args, warn_of_redefinition,
12668         _cpp_create_definition, cpp_macro_definition): Update.
12669
12670 2002-05-16  Jason Merrill  <jason@redhat.com>
12671
12672         * config/mips/mips.c (mips_output_external): Don't do sdata
12673         optimization for a variable with DECL_COMDAT set.
12674
12675 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
12676
12677         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
12678         Cleanups for accepting modifiers on pointers.
12679         Fix predicate typos.
12680         Allow long pointers as well as int pointers.
12681
12682 2002-05-15  Richard Henderson  <rth@redhat.com>
12683
12684         * varasm.c (merge_weak): Remove special case for extern and common.
12685
12686 2002-05-15  Matt Hiller  <hiller@redhat.com>
12687
12688         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
12689         XFAILing.
12690         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
12691         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
12692         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
12693         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
12694         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
12695         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
12696
12697 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
12698
12699         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
12700
12701 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
12702
12703         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
12704         ("altivec_mfvscr"): Read from VSCR.
12705
12706         Add vscr sets for the following insns: altivec_vctuxs,
12707         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
12708         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
12709         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
12710         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
12711         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
12712         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
12713         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
12714         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
12715         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
12716         altivec_vsum2sws, altivec_vsumsws.
12717
12718         * config/rs6000/rs6000.h: Add VSCR fixed register.
12719         (CALL_REALLY_USED_REGISTERS): Add vscr.
12720         (CALL_USED_REGISTERS): Same.
12721         (FIXED_REGISTERS): Same.
12722         (REG_ALLOC_ORDER): Same.
12723         (reg_class): Add VSCR_REGS.
12724         (REG_CLASS_NAMES): Same.
12725         (REG_CLASS_CONTENTS): Same.
12726         (VSCR_REGNO): New.
12727         (REGISTER_NAMES): Add vscr.
12728         (DEBUG_REGISTER_NAMES): Same.
12729         (ADDITIONAL_REGISTER_NAMES): Same.
12730         (FIRST_PSEUDO_REGISTER): Increment.
12731         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
12732
12733 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
12734
12735         * fold-const.c (fold): Fix a typo.
12736
12737 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
12738
12739         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
12740         comparison against the highest or lowest integer value before
12741         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
12742         transformation and that of an unsigned comparison against 0
12743         right after.
12744
12745 2002-05-15  Richard Henderson  <rth@redhat.com>
12746
12747         * varasm.c (merge_weak): Error for any weakening after definition.
12748         Adjust weakening after use warning to catch more cases.
12749         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
12750         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
12751
12752 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
12753
12754         * invoke.texi (-malign-double): Re-add lost warning.
12755
12756         * i386-protos.h (x86_output_mi_thunk): Declare.
12757         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
12758         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
12759
12760         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
12761         when flag_asynchronous_unwind_tables is set.
12762
12763         * flags.h (flag_reorder_functions): Declare.
12764         * function.c (prepare_function_start): Initialize frequnecy.
12765         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
12766         * Makefile.in (predict.o): Add dependency on target.h and params.h
12767         * defaults.h (HOT_TEXT_SECTION_NAME,
12768         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
12769         * predict.c (choose_function_section): New function.
12770         (estimate_bb_frequencies): Use it.
12771         * toplev.c (flag_reorder_functions): New global variable.
12772         (lang_independent_options): New.
12773         (parse_options_and_default_flags): Set.
12774         * varasm.c (assemble_start_function): Bypass functdion alignment
12775         for never executed functions.
12776         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
12777         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
12778         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
12779         Document.
12780
12781         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
12782
12783         * predict.c: Inlude profile.h
12784         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
12785         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
12786         Use the information about maximal counter in the program.
12787
12788         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
12789
12790         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
12791         probably_never_executed_bb_p): New functions.
12792         * cfgcleanup.c (outgoing_edges_match): Use them.
12793         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
12794         (maybe_hot_bb_p, probably_cold_bb_p,
12795         probably_never_executed_bb_p): New functions.
12796
12797         * function.h (function): Add new field function_frequency.
12798         * predict.c (compute_function_frequency): New function.
12799         (estimate_probability): Call it.
12800
12801 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
12802
12803         PR optimization/5172, optimization/5200
12804         * gcse.c (gcse_main): Disable store_motion.
12805
12806 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
12807
12808         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
12809         (c_common_nodes_and_builtins): Use it.
12810         (builtin_define_with_value): New function.
12811         (cb_register_builtins): Define __SIZE_TYPE__,
12812         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
12813         using builtin_define_with_value.  Use consistent notation when
12814         defining __GXX_WEAK__.
12815         (WCHAR_TYPE_SIZE): Don't redefine.
12816         (combine_strings): Don't use WCHAR_TYPE_SIZE.
12817
12818         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
12819         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
12820         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
12821         * tradcpp.c (initialize_builtins): Likewise.
12822         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
12823
12824         * c-lex.h (builtin_define_with_value): Prototype.
12825         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
12826         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
12827         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
12828
12829         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
12830         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
12831         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
12832         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
12833         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
12834         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
12835         config/sparc/sol2-bi.h, config/sparc/sparc.h:
12836         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
12837         to __SIZE_TYPE__ etc from all spec strings. When this makes
12838         extra specs empty, delete them.
12839
12840 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12841
12842         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
12843         for PA8000 or generating dwarf2 call frame information.
12844         (output_call): Remove DO_FRAME_NOTES check from return pointer
12845         optimization.
12846         (following_call): Return 0 when scheduling for PA8000 or generating
12847         dwarf2 call frame information.  Revise comment.
12848
12849 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
12850
12851 config/alpha:
12852         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
12853         and __IEEE_FP_INEXACT as appropriate.
12854         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
12855         (CPP_SPEC): Remove ieee defines.
12856         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
12857
12858 2002-05-14  Richard Henderson  <rth@redhat.com>
12859
12860         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
12861         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
12862
12863 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
12864
12865         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
12866         (CPP_SPEC): Update.
12867         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
12868         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
12869         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
12870         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
12871         (EXTRA_SPECS): Update.
12872         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
12873         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
12874         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
12875         define TARGET_OS_CPP_BUILTINS if necessary.
12876
12877 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
12878
12879         * gcc.c (cpp_options): Must pass -m* and -f* options
12880         to the front end even when only preprocessing.
12881         (cc1_options): Remove redundant -lang-c.
12882         * tradcpp.c (main): Ignore -m options.
12883 objc:
12884         * lang-specs.h: Similarly.
12885
12886 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
12887
12888         * genautomata.c (transform_3): Add code for transformation
12889         `(A,B,...)+C -> A+C,B,...'.
12890
12891 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
12892
12893         * final.c (end_final): Do not output profile_arcs constructor, when
12894         no functions are instrumented.
12895
12896 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
12897
12898         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
12899
12900 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12901
12902         * doc/install.texi: Remove special markup originally required for
12903         HTML generation with texi2html.
12904
12905 2002-05-14  Andreas Schwab  <schwab@suse.de>
12906
12907         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
12908         SELECT_SECTION.
12909         (UNIQUE_SECTION): Define to get small data correctly.
12910
12911         * varasm.c (resolve_unique_section): Add third parameter
12912         flag_function_or_data_sections and use it instead of
12913         flag_function_sections.
12914         (assemble_start_function): Pass flag_function_sections.
12915         (asm_emit_uninitialised): Pass flag_data_sections.
12916         (assemble_variable): Likewise.
12917
12918 2002-05-14  Richard Henderson  <rth@redhat.com>
12919
12920         * config/i386/i386.md: Use define_constants for unspec numbers.
12921         * config/i386/i386.c: Likewise.
12922
12923 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
12924
12925         * doc/contrib.texi: Update my entry.
12926
12927 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
12928
12929         * fixinc/inclhack.def (winidss_valist): Limit applicability.
12930         * fixinc/fixincl.x: Regenerated.
12931         * fixinc/tests/base/math.h: Update.
12932         * fixinc/tests/base/testing.h: Likewise.
12933
12934 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
12935
12936         * genattr.c (gen_attr): Don't emit a comma after the last
12937         enumerator.
12938
12939 2002-05-13  Richard Henderson  <rth@redhat.com>
12940
12941         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
12942         by non-local gotos.
12943         * recog.c (peephole2_optimize): Likewise.
12944
12945 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
12946
12947         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
12948         input to O_BINARY.
12949
12950 2002-05-13  Jeffrey A Law  (law@redhat.com)
12951
12952         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
12953         Update prototype and callers.
12954         (propagate_one_insn): Stack pointer adjustments kill MEMs on
12955         the mem_set_list which reference the stack pointer, as do
12956         calls to constant functions as they may clobber outgoing
12957         argument space.
12958
12959         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
12960
12961         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
12962         (ia32_multipass_dfa_lookahead): New function.
12963
12964 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
12965
12966         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
12967         (translate_options): Remove 'V'.
12968         (process_command): Similarly.
12969 doc:
12970         * invoke.texi: Remove documentation of 'V'.
12971
12972 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
12973
12974         * config/s390/linux.h: Revert 2002-04-22 changes.
12975
12976 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
12977
12978         * config/fr30/fr30.md: Only allow splits of immediate loads
12979         if the destination is a register.
12980
12981 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
12982
12983         * Makefile.in (c-common.o, cppinit.o): Update.
12984         * c-common.c: Include except.h.
12985         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
12986         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
12987         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
12988         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
12989         CPP_PREDEFINES): Handle here.
12990 config:
12991         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
12992         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
12993         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
12994         TARGET_OS_CPP_BUILTINS.
12995         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
12996         (CPP_SPEC, EXTRA_SPECS): Update.
12997         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
12998         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
12999         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
13000         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
13001         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
13002 doc:
13003         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
13004         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
13005
13006 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
13007
13008         * emit-rtl.c (global_rtl): Update comment.
13009         (const_double_htab, const_double_htab_hash,
13010         const_double_htab_hash, lookup_const_double): New.
13011         (const_int_htab_hash, const_int_htab_eq): Remove const
13012         qualifiers, which cause tons of warnings with RTL checking on.
13013         (gen_rtx_CONST_DOUBLE): Deleted.
13014         (const_double_from_real_value): New function - bears some
13015         resemblance to the former immed_real_const_1.
13016         (immed_double_const): Moved here from varasm.c and
13017         simplified.
13018         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
13019         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
13020         (gen_rtx): Use immed_double_const.
13021         (init_emit_once): Initialize the const_double_htab.  Use
13022         REAL_VALUE_FROM_INT where possible.  Can now use
13023         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
13024         * varasm.c (struct varasm_status): Remove x_const_double_chain.
13025         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
13026         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
13027         (init_varasm_status, mark_varasm_status): Don't touch
13028         x_const_double_chain.
13029
13030         * output.h: Delete prototype for clear_const_double_mem.
13031         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
13032         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
13033         const_double_from_real_value, not immed_real_const_1, and use
13034         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
13035         CONST_DOUBLE_ATOF.
13036         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
13037         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
13038         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
13039         (gen_rtx_REG): Second arg is unsigned.
13040
13041         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
13042         (excluded_rtx): New, return true for CONST_DOUBLE.
13043         (genmacro): Write nothing for excluded codes.
13044         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
13045         * expr.c (expand_expr): Likewise.
13046         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
13047         CONST_DOUBLE_CHAIN.
13048         * toplev.c (rest_of_compilation): Don't call
13049         clear_const_double_mem.
13050
13051         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
13052         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
13053         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
13054         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
13055         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
13056         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
13057         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
13058         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
13059
13060 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13061
13062         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
13063
13064 2002-05-12  Tom Tromey  <tromey@redhat.com>
13065
13066         * tree.h (copy_node): Don't mention TREE_PERMANENT.
13067
13068 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
13069
13070         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
13071         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
13072         * gensupport.h: Prototype new routines.
13073         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
13074         use of printf.
13075         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
13076         (next_comma_elt): Use scan_comma_elt.
13077
13078         * config/i386/i386.md: Use new attribute notation to break up
13079         long lines in define_attr forms.
13080
13081 2002-05-12  Richard Henderson  <rth@redhat.com>
13082
13083         * expr.c (compress_float_constant): New.
13084         (emit_move_insn): Use it.
13085         (float_extend_from_mem): New.
13086         (init_expr_once): Initialize it.
13087         * real.c (exact_real_truncate): New.
13088
13089         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
13090         dropped into memory; penalize for size.
13091         (RTX_COSTS): FLOAT_EXTEND is free.
13092         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
13093         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
13094
13095 2002-05-12  Richard Henderson  <rth@redhat.com>
13096
13097         * profile.h (profile_info): Add missing extern to declaration.
13098         * profile.c (profile_info): Define it.
13099
13100 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13101
13102         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
13103         used for DImode and TImode.
13104
13105 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
13106
13107         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
13108         fake a newline.
13109
13110 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
13111
13112         * config/rs6000/rs6000.c (rs6000_default_long_calls,
13113         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
13114         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
13115         (rs6000_override_options): Handle -m(no-)longcall.
13116         (init_cumulative_args, output_mi_thunk): Check for both
13117         longcall and shortcall attributes on the function.
13118         (rs6000_attribute_table): Add "shortcall".
13119         (rs6000_handle_longcall_attribute): Update comment.
13120         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
13121         altivec_expand_ternop_builtin): Add default clauses to switches
13122         to silence warnings.
13123
13124         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
13125         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
13126         (TARGET_OPTIONS): Add longcall and no-longcall.
13127
13128         * config/rs6000/rs6000.md (call_nonlocal_sysv,
13129         call_value_nonlocal_sysv): Split by alternatives.  One pair
13130         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
13131         the call cookie.  The other pair accepts only LR/CTR and has
13132         no restriction.
13133
13134         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
13135         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
13136         tmake_file.
13137         * config/rs6000/rs6000-c.c: New file.
13138         * config/rs6000/t-rs6000-c-rule: New file.
13139         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
13140         Prototype rs6000_pragma_longcall.
13141
13142         * doc/extend.texi: Document shortcall attribute.
13143         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
13144
13145 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13146
13147         * reorg.c (dbr_schedule): Remove unnecessary test.
13148
13149 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
13150
13151         * i386.md (testsi to testqi spliters): New.
13152
13153         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
13154
13155         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
13156
13157         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
13158
13159         * basic-block.h: New flag EDGE_CAN_FALLTHRU
13160         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
13161         that can be made fallthru.
13162
13163         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
13164
13165         * cfglayout.c (cleanup_unconditional_jumps): New static function.
13166         (cfg_layout_initialize): Use it.
13167
13168 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
13169
13170         * config/avr/avr.c (avr_mcu_types): Update supported devices.
13171         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
13172         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13173
13174 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
13175
13176         * dbxout.c: Fix formatting.
13177         * dependence.c: Likewise.
13178         * df.c: Likewise.
13179         * diagnostic.c: Likewise.
13180         * doloop.c: Likewise.
13181         * dominance.c: Likewise.
13182         * doschk.c: Likewise.
13183         * dwarf2asm.c: Likewise.
13184         * dwarf2out.c: Likewise.
13185         * dwarfout.c: Likewise.
13186
13187 2002-05-10  Richard Henderson  <rth@redhat.com>
13188
13189         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
13190         Convert integers constants as needed.  Replace "nwords" field with
13191         "sizeof_bb".
13192         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
13193         * function.h: Fix typo in comment.
13194         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
13195
13196 2002-05-10  Roger Sayle  <roger@eyesopen.com>
13197
13198         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
13199         into the equivalent (signed char)c > 0.
13200
13201 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
13202
13203         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
13204         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
13205         (struct prefetch_info): Fix spelling of member bytes_accessed.
13206         (emit_prefetch_instructions): Make dump messages more regular;
13207         restructure code to add more dump messages; use new macros for
13208         heuristics. (There are no code generation changes in any of this).
13209
13210 2002-05-10  David S. Miller  <davem@redhat.com>
13211
13212         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
13213         (struct rtx_def): Update unchanging flag comment.
13214         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
13215         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
13216         to be handled to INSN too.
13217         (dbr_schedule): Likewise.
13218         * resource.c (next_insn_no_annul): Likewise.
13219
13220         * cse.c (rtx_cost): Remove multiplication by power of 2 special
13221         casing.
13222
13223 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13224
13225         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
13226         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
13227         (possibly) work around broken /bin/sh.
13228
13229 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13230
13231         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
13232         . as N64/N32 libgcc_s.so subdirs.
13233
13234 2002-05-10  David S. Miller  <davem@redhat.com>
13235
13236         * config/sparc/sparc.md: Use define_constants for unspec numbers.
13237
13238         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
13239         more accurately.
13240         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
13241         comment.
13242         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
13243         * doc/rtl.texi: Document these macros more accurately.
13244         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
13245         JUMP_INSNs and CALL_INSNs.
13246         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
13247         or INSN_FROM_TARGET_P if the code is appropriate.
13248
13249 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
13250
13251         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
13252         before using SYMBOL_REF_FLAG (addr).
13253
13254         * config/avr/avr-protos.h (avr_io_address_p): Declare.
13255         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
13256         Make non-static.  Update all callers.
13257         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
13258         New insns to clear/set/test a single bit in I/O address space.
13259
13260 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13261
13262         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
13263
13264 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
13265
13266         * Makefile.in: Update.
13267         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
13268         builtin_define_std): New.
13269         (c_common_init): Register CPP builtins callback.
13270         * c-common.h (flag_iso, flag_undef): New.
13271         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
13272         * c-lex.c: Don't include target.h.
13273         (cb_register_builtins): Move to c-common.c.
13274         (init_c_lex): Don't register hook here.
13275         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
13276         (cpp_define, cpp_assert): Remove.
13277         * gcc.c (cc1_options): Pass -undef to front end.
13278         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
13279         (TARGET_INITIALIZER): Update.
13280         * target.h (struct cpp_reader): Don't predeclare.
13281         (struct gcc_target): Remove cpp builtin hook.
13282         * tree.c (default_register_cpp_builtins): Remove.
13283 doc:
13284         * tm.texi: Update.
13285
13286 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
13287
13288         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
13289
13290 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13291
13292         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
13293         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
13294
13295 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
13296
13297         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
13298         * config/sparc/libgcc-sparc-glibc.ver: New file.
13299         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
13300         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
13301
13302 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
13303
13304         PR target/6429
13305         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
13306         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
13307         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
13308         base multilibs.
13309         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
13310         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
13311         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
13312         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
13313
13314 2002-05-09  Richard Henderson  <rth@redhat.com>
13315
13316         * config/ia64/ia64.md: Use define_constants for unspec numbers.
13317         * config/ia64/ia64.c: Likewise.
13318
13319 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
13320
13321         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
13322         (save_restore_insns): Likewise.
13323         (mips_expand_prologue, mips_expand_epilogue): Update callers.
13324         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
13325
13326 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
13327
13328         * athlon.md, k6.md, pentium.md, ppro.md): New files.
13329         * i386.md: Move scheduling information into new files.
13330
13331         * i386.md (type attribute): Add "rotate" for rotate insns.
13332         (rotate insns): Set type to "rotate".
13333         (various attributes and function units): Treat rotate like shift.
13334         (pent_pair attribute): Only rotates by one bit position are
13335         pairable.
13336         (sbb insns): Explicitly set pent_pair attribute on a couple
13337         that were missing it.
13338
13339 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
13340
13341         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
13342         make sure that buffer starts on odd word address.
13343         (sh_va_arg): Skip odd fp registers when reading a double precision
13344         value.
13345
13346 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
13347
13348         * tree.h (preserve_data, object_permanent_p, type_precision):
13349         Remove.
13350
13351 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
13352
13353         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
13354         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
13355 doc:
13356         * cpp.texi: Update for removal of obsolete features.
13357
13358 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
13359                           Jeffrey A Law  (law@redhat.com)
13360
13361         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
13362         the DFA interface for Pentium processors.
13363         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
13364         (attr_pent_pair, ix86_pent_find_pair): Remove.
13365         (ix86_sched_reorder_pentium): Remove.
13366         (ix86_sched_reorder): Remove reordering for Pentium.
13367         * i386.md (Pentium scheduling): Rewrite using DFA description.
13368
13369 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
13370
13371         * cfganal.c (can_fallthru): Fix fast path.
13372         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
13373         with edges to the next block.
13374
13375 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
13376                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
13377
13378         * final.c (end_final): Use C trees to output data structures for profiling.
13379
13380         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
13381         (profile.o): New dependency profile.h
13382         (final.o): New dependency profile.h
13383         * profile.h: New file. New global structure profile_info.
13384         * final.h (count_edges_instrumented_now): Declare.
13385         (current_function_cfg_checksum): Declare.
13386         (function_list): New structure.
13387         (functions_head, functions_tail): New static variables.
13388         (end_final): Emits more data, removed some -ax stuff.
13389         (final): Stores function names and chcksums.
13390         * gcov-io.h (__write_gcov_string): New function.
13391         (__read_gcov_string): New function.
13392         * gcov.c (read_profile): New function.
13393         (create_program_flow_graph): Uses read_profile instead of reading
13394         da_file.
13395         (read_files): Removed da_file checking, it's done by read_profile now.
13396         * libgcc2.c (bb_function_info): New structure.
13397         (bb): New field in structure, removed some -ax stuff.
13398         (__bb_exit_func): Changed structure of da_file.
13399         * profile.c (count_edges_instrumented_now): New global variable.
13400         (current_function_cfg_checksum): New global variable.
13401         (max_counter_in_program): New global variable.
13402         (get_exec_counts): New function.
13403         (compute_checksum): New function.
13404         (instrument_edges): Sets count_edges_instrumented_now.
13405         (compute_branch_probabilities): Uses get_exec_counts instead of
13406         reading da_file.
13407         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
13408         (init_branch_prob): Removed da_file checking, done in get_exec_counts
13409         now.
13410         (end_branch_prob): Removed da_file checking, done in get_exec_counts
13411         now.
13412         * gcov.texi: Updated information about gcov file format.
13413
13414 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
13415
13416         * sbitmap.c: Fix formatting.
13417         * scan.c: Likewise.
13418         * scan-decls.c: Likewise.
13419         * sched-deps.c: Likewise.
13420         * sched-ebb.c: Likewise.
13421         * sched-rgn.c: Likewise.
13422         * sched-vis.c: Likewise.
13423         * sdbout.c: Likewise.
13424         * sibcall.c: Likewise.
13425         * simplify-rtx.c: Likewise.
13426         * ssa.c: Likewise.
13427         * ssa-ccp.c: Likewise.
13428         * ssa-dce.c: Likewise.
13429         * stmt.c: Likewise.
13430         * stor-layout.c: Likewise.
13431         * stringpool.c: Likewise.
13432
13433 2002-05-09  David S. Miller  <davem@redhat.com>
13434
13435         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
13436
13437 2002-05-07  David S. Miller  <davem@redhat.com>
13438
13439         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
13440         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
13441         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
13442         library implementation clobbers the output before the inputs
13443         are fully consumed, use stack temporary for the output.
13444
13445 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
13446
13447         * config/netbsd.h (CPP_SPEC): Remove.
13448         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
13449         * config/i386/netbsd.h (CPP_SPEC): Define.
13450         * config/ns32k/netbsd.h (CPP_SPEC): Define.
13451         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
13452         * config/sparc/netbsd.h (CPP_SPEC): Define.
13453         * config/vax/netbsd.h (CPP_SPEC): Define.
13454
13455 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
13456
13457         * read-rtl.c: Fix formatting.
13458         * real.c: Likewise.
13459         * recog.c: Likewise.
13460         * regclass.c: Likewise.
13461         * regmove.c: Likewise.
13462         * reg-stack.c: Likewise.
13463         * reload1.c: Likewise.
13464         * reload.c: Likewise.
13465         * resource.c: Likewise.
13466         * rtlanal.c: Likewise.
13467         * rtl.c: Likewise.
13468         * rtl-error.c: Likewise.
13469
13470 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13471
13472         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
13473         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
13474
13475 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
13476
13477         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
13478         use __SSE2__ macro instead.
13479         * config/i386/xmmintrin.h: Likewise.
13480
13481 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
13482
13483         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
13484         and use it in all invocations of these macros.  Clean up comments.
13485         * rtl.c (rtl_check_failed_flag): Add an argument for the name
13486         of the flag access macro whose check failed.
13487         * doc/rtl.texi (Flags): Document additional flag uses.
13488
13489 2002-05-08  Robert Spier <rspier@pobox.com>
13490             Neil Booth  <neil@daikokuya.demon.co.uk>
13491
13492         PR preprocessor/6521
13493         * cppfiles.c (handle_missing_header): Don't do anything
13494         different for <> includes.
13495 doc:
13496         * cppopts.texi: Update documentation for -MG.
13497
13498 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
13499
13500         * cpplex.c (cpp_interpret_charconst): Truncate as well as
13501         sign-extend.
13502 doc:
13503         * cpp.texi: Clarify multichar charconst valuation.
13504
13505 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
13506
13507         * doc/invoke.texi: Document -mwindiss option.
13508
13509 2002-05-08  Jason Merrill  <jason@redhat.com>
13510
13511         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
13512
13513         * dwarf2out.c (gen_type_die): Abort on broken recursion.
13514
13515         PR c++/6381
13516         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
13517         REAL_CST.
13518
13519 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
13520
13521         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
13522         little-endian multilibs to override arm/thumb multilibs.
13523         Do not build hardware floating point multilibs, nor apcs-26
13524         multilibs for the Thumb.
13525
13526 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
13527
13528         PR c/6569.
13529         * varasm.c (mark_weak): New function.
13530         (merge_weak): Use it.  Do not call declare_weak.
13531         (declare_weak): Use merge_weak.
13532
13533 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
13534
13535         * cse.c (dead_libcall_p): Update counts.
13536         (delete_trivially_dead_insns): Update call of dead_libcall_p.
13537
13538 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
13539
13540         * cfglayout.c (function_tail_eff_head): Rename to ...
13541         (function_footer): ... this one.
13542         (unlink_insn_chain): New functions.
13543         (label_for_bb): Only call block_label and emit debug message.
13544         (record_effective_endpoints): Actually unlink the headers and footers.
13545         (fixup_reorder_cahin): Re-insert the unlinked sequences.
13546         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
13547         * cfglayout.h (struct reorder_block_def): New fields footer/header;
13548         remove eff_head/eff_end.
13549         * rtl.h (set_first_insn): Declare.
13550         * emit-rtl.c (set_first_insn): New function.
13551
13552         * cfglayout.c (fixup_reorder_chain): Dump duplicated
13553         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
13554         cfg_layout_duplicate_bb): New global function.
13555         (duplicate_insn_chain): New static function.
13556         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
13557         cfg_layout_duplicate_bb): Declare.
13558         (struct reorder_block_def): Add "original" field.
13559         * emit-rtl.c (emit_copy_of_insn_after): New function.
13560         * rtl.h (emit_copy_of_insn_after): Declare.
13561
13562         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
13563         (fixup_reorder_chain): properly handle edges to exit block.
13564
13565 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13566                                Jan Hubicka  <jh@suse.cz>
13567
13568         * basic-block.h (note_prediction_to_br_prob): declare.
13569         * c-semantics.c: Inlucde predit.h
13570         (expand_stmt): predict GOTO_STMT as not taken.
13571         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
13572         (cleanup_cfg): Do not free tail_recursion_list.
13573         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
13574         (flow_delete_block): Kill predictions past end of basic block.
13575         * output.h (delete_unreachable_blocks): Declare.
13576         * predict.c (predicted_by_p, process_note_predictions,
13577         process_note_prediction, last_block_p): New function.
13578         (estimate_probability): Bypass loop on PRED_CONTINUE;
13579         do not handle noreturn heuristics; kill PRED_RETURN; add
13580         PRED_EARLY_RETURN.
13581         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
13582         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
13583         * predict.h (IS_TAKEN): New constant.
13584         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
13585         * rtl.c (NOTE_INSN_PREDICTION): New.
13586         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
13587         New macro.
13588         (insn_note): add NOTE_INSN_PREDICTION.
13589         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
13590         CFG; free tail_recursion_label_list.
13591         * stmt.c: Include predict.h;
13592         (return_prediction): New.
13593         (expand_value_return): Use it.
13594         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
13595
13596 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
13597
13598         * config/mips/mips.md: Name the unspecs with define_constant.
13599         (*HILO_delay): Rename to 'hilo_delay' (no star).
13600         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
13601         (reload_outdi, reload_outsi): Likewise.
13602
13603 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
13604
13605         * toplev.c: Fix formatting.
13606
13607 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
13608
13609         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
13610         * configure.in (ac_rtlflag_checking): New.
13611         * doc/install.texi (--enable-checking): Document RTL flag checking.
13612
13613 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
13614
13615         * c-common.c (c_common_init): Set options->unsigned_wchar.
13616         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
13617         group target dependencies.
13618         (init_builtins, cpp_handle_option): Update.
13619         * cpplex.c (cpp_interpret_charconst): Update.
13620         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
13621         signed_char to unsigned_char, group target dependencies.
13622         * defaults.h (WCHAR_UNSIGNED): Remove.
13623         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
13624 config:
13625         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
13626         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
13627         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
13628         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
13629         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
13630 doc:
13631         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
13632
13633 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
13634
13635         * fixinc/inclhack.def (windiss_math1): New fix.
13636         (windiss_math2): Likewise.
13637         (windiss_valist): Likewise.
13638         * fixinc/fixincl.x: Regenerated.
13639
13640 2002-05-07  Andreas Jaeger  <aj@suse.de>
13641
13642         * genautomata.c (output_internal_min_issue_delay_func): Add
13643         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
13644         (output_internal_trans_func): Likewise.
13645
13646 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
13647
13648         * pa.c (hppa_profile_hook): Use force_reg to get the address
13649         of the profile hook into an appropriate pseudo register.
13650
13651 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
13652
13653         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
13654         (LINK_START_SPEC): Handle it.
13655         (LINK_OS_SPEC): Likewise.
13656         (CPP_SPEC): Likewise.
13657         (STARTFILE_SPEC): Likewise.
13658         (LIB_SPEC): Likewise.
13659         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
13660         all platforms.
13661         (CRTSAVRES_DEFAULT_SPEC): New macro.
13662         (LIB_WINDISS_SPEC): New macro.
13663         (CPP_OS_WINDISS_SPEC): Likewise.
13664         (STARTFILE_WINDISS_SPEC): Likewise.
13665         (ENDFILE_WINDISS_SPEC): Likewise.
13666         (LINK_START_WINDISS_SPEC): Likewise.
13667         (LINK_OS_WINDISS_SPEC): Likewise.
13668         * config/rs6000/windiss.h: New file.
13669
13670 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
13671
13672         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
13673
13674 2002-05-06  David S. Miller  <davem@redhat.com>
13675
13676         * config/sparc/sparc.md (shift insns): Do not mask off
13677         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
13678         take care of it.
13679
13680 2002-05-06  Richard Henderson  <rth@redhat.com>
13681
13682         PR c++/6212
13683         * expr.c (highest_pow2_factor_for_type): New.
13684         (expand_assignment): Use it.
13685
13686 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
13687
13688         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
13689         unspec_volatile.
13690         ("altivec_mfvscr"): Same.
13691
13692 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
13693
13694         * rtl.h (struct rtx_def): Update comments.
13695         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
13696         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
13697         RTL_FLAG_CHECK macros with list of expected RTL codes.
13698         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
13699         (rtl_check_failed_flag): New.
13700         * reload1.c (reload): Use REG macro before changing rtx to MEM.
13701         (reload_cse_noop_set_p): Check rtx code before using access macro.
13702         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
13703         before using access macro.
13704
13705 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
13706
13707         * doc/rtl.texi (Flags): Update to reflect current usage.
13708
13709 2002-05-06  Roger Sayle  <roger@eyesopen.com>
13710
13711         PR opt/3995
13712         * fold-const.c (sign_bit_p): New function.
13713         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
13714         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
13715         Reapply fold when converting (A & C) == C into (A & C) != 0.
13716         (fold_binary_op_with_conditional_arg): Fix typo in comment.
13717
13718 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
13719
13720         * c-common.c (warn_multichar): New.
13721         (c_common_init): Set CPP's warn_multichar.
13722         * c-common.h (warn_multichar): New.
13723         * c-decl.c (warn_multichar): Remove.
13724         * c-lex.c (lex_charconst): Update.
13725         * c-tree.h (warn_multichar): Remove.
13726         * cppexp.c (eval_token): Sign-extend charconst value.
13727         * cppinit.c (cpp_create_reader): Set warn_multichar.
13728         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
13729         each character.  Update prototype.  Sign-extend the result.
13730         * cpplib.h: Fix conditions.
13731         (struct cpp_options): Add new warning flag.
13732         (cpp_interpret_charconst): Update prototype.
13733 doc:
13734         * cpp.texi: Update documentation.
13735
13736 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
13737
13738         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
13739         Fix typo in usage of allof instead of unit.
13740
13741 2002-05-06  Richard Henderson  <rth@redhat.com>
13742
13743         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
13744         and any jump or call for IN.
13745
13746 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
13747
13748         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
13749         -msse2.
13750         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
13751
13752 2002-05-06  Roger Sayle  <roger@eyesopen.com>
13753
13754         * fold-const.c (lshift-double): Cast the high word to an unsigned
13755         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
13756         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
13757         avoid compiler warning.  (fold): Remove redundant code from
13758         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
13759
13760 2002-05-06  Jeff Law  <law@redhat.com>
13761
13762         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
13763         * pa.c (pa_adjust_cost): Remove all true dependency cost
13764         adjustments.  Also remove support for non-DFA scheduling.
13765         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
13766         to adjust true dependency costs.  Update various comments.
13767         (7100lc, 7200, 7300 scheduling): Simplify by combining the
13768         FP ALU & MPY units into a single unit.
13769
13770 2002-05-06  Catherine Moore  <clm@redhat.com>
13771
13772         * config/v850/v850.c (compute_register_save_size): Make sure
13773         to count all of the registers that will be saved.
13774
13775 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
13776
13777         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
13778
13779 2002-05-06  David S. Miller  <davem@redhat.com>
13780
13781         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
13782         allow result to overlap input operands in memory.
13783
13784 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
13785
13786 doc:
13787         * cpp.texi: Update multichar charconst docs.
13788
13789 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
13790
13791         * cpplex.c (cpp_interpret_charconst): Sign-extend each
13792         character.  Don't ignore excess characters.  Treat
13793         multicharacter character constants as signed.
13794         (cpp_parse_escape): Clarify diagnostic.
13795
13796 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
13797
13798         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
13799         use add instead of shift.
13800         (ashldi3_sp64): Likewise.
13801         (ashlsi3_const1, ashldi3_const1): Remove.
13802         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
13803         * config/sparc/sparc.c (const1_operand): New.
13804
13805 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
13806
13807         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
13808
13809 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
13810
13811         PR target/6561
13812         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
13813
13814 2002-05-05  Richard Henderson  <rth@redhat.com>
13815
13816         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
13817         memory latency adjustments.
13818         (alpha_variable_issue): Remove.
13819         (alpha_use_dfa_pipeline_interface): New.
13820         (alpha_multipass_dfa_lookahead): New.
13821         * config/alpha/alpha.md: Remove define_function_unit scheduling;
13822         include new dfa scheduling.
13823         (attr type): Add none.
13824         (blockage): Use it.
13825         * config/alpha/ev4.md: New.
13826         * config/alpha/ev5.md: New.
13827         * config/alpha/ev6.md: New.
13828
13829 2002-05-05  David S. Miller  <davem@redhat.com>
13830
13831         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
13832
13833 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
13834
13835         * cse.c: Fix formatting.
13836         * emit-rtl.c: Likewise.
13837
13838 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
13839
13840         * genautomata.c (initiate_states): Add additional guard to
13841         initialize `units_array'.
13842
13843 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
13844
13845         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
13846         process_unit_to_form_the_same_automaton_unit_lists,
13847         form_the_same_automaton_unit_lists
13848         check_unit_distributions_to_automata): New prototypes and
13849         functions.
13850         (check_automata): Rename it into `check_automata_insn_issues'.
13851         (unit_decl): New fields `the_same_automaton_unit' and
13852         `the_same_automaton_message_reported_p'.
13853         (unit_decl_t): New typedef.
13854         (the_same_automaton_lists): New gloval variable.
13855         (unit_regexp, unit_set_el, units_array, units_cmp,
13856         output_get_cpu_unit_code_func): Use the typedef.
13857         (evaluate_max_reserv_cycles): Increment
13858         `description->max_insn_reserv_cycles'.
13859         (initiate_states): Don't increment `max_cycles_num'.
13860         (transform_insn_regexps): Move code around transformation of
13861         regexps from `generate'.
13862         (generate): Remove call of `transform_insn_regexps'.
13863         (expand_automata): Call `transform_insn_regexps' and
13864         `check_unit_distributions_to_automata'.  Check errors before
13865         `generate'.
13866
13867         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
13868         automaton `ultrasparc3_1'.
13869
13870 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
13871
13872         * c-common.c (c_common_init): Set up CPP arithmetic.
13873         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
13874         something reasonable for the host.
13875         (sanity_checks): Add checks.
13876         (cpp_read_main_file): Call sanity_checks() from here...
13877         (cpp_post_options): ... not here.
13878         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
13879         * cpplib.h (struct cpp_options): New member int_precision.
13880
13881 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13882
13883         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
13884
13885 2002-05-04  David S. Miller  <davem@redhat.com>
13886
13887         * config/sparc/linux.h, config/sparc/linux64.h
13888         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
13889
13890         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
13891         more RTX codes.
13892         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
13893
13894         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
13895         of SETs.
13896
13897 2002-05-05  Tim Josling  <tej@melbpc.org.au>
13898
13899         * treelang; New directory for new sample language treelang.
13900
13901 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
13902
13903         * Makefile.in (c-lex.o): Update.
13904         * c-lex.c: Include target.h.
13905         (cb_register_builtins): New.
13906         (init_c_lex): Set builtins callback.
13907         * c-lex.h (cpp_define, cpp_assert): New prototypes.
13908         * cppinit.c (init_builtins): Use callback, including for
13909         GXX_WEAK.
13910         * cpplib.h (struct cpp_callbacks): New member.
13911         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
13912         (TARGET_INITIALIZER): Update.
13913         * target.h (struct gcc_target): New hook.
13914         * tree.c (default_register_cpp_builtins): New.
13915         * tree.h (default_register_cpp_builtins): New.
13916 doc:
13917         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
13918
13919 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
13920
13921         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
13922         (cpp_post_options): Move sanity checks to...
13923         (sanity_checks): New.
13924         * cpplex.c (maybe_read_ucs): Fix prototype.
13925         (parse_string, cpp_parse_escape): Cast for %c format specifier.
13926         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
13927         if necessary.
13928
13929 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
13930
13931         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
13932         builtins.  Use V2DI patterns instead of TI for logical operations.
13933         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
13934         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
13935         (ix86_expand_builtins): Change the pattern used for movntdq.
13936         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
13937         sse2_nandv2di3): New patterns.
13938         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
13939         on operands.
13940         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
13941         (cvtdq2pd): Correct mode on operand 1.
13942         (sse2_umulsidi3): Describe without unspec.
13943         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
13944         machine modes.
13945         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
13946         (ashlv2di3): Likewise, from sse2_ashlv2di3.
13947         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
13948         ashlv4si3, ashlv2di3): Use SImode for shift count.
13949         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
13950         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
13951         New patterns.
13952         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
13953         New typedefs.
13954         (__m128i, __m128d): New macros.
13955         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
13956         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
13957         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
13958         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
13959         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
13960         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
13961         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
13962         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
13963         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
13964         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
13965         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
13966         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
13967         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
13968         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
13969         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
13970         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
13971         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
13972         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
13973         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
13974         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
13975         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
13976         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
13977         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
13978         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
13979         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
13980         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
13981         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
13982         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
13983         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
13984         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
13985         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
13986         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
13987         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
13988         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
13989         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
13990         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
13991         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
13992         functions.
13993         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
13994         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
13995
13996 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
13997
13998         * dwarf2out.c: Fix formatting.
13999         * varasm.c: Likewise.
14000
14001 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
14002
14003         PR c/6543
14004         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
14005         clobber and use result as temporary value.
14006
14007 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
14008
14009         * expr.c (force_operand): Use expand_simple_* to handle more
14010         cases.
14011
14012 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
14013
14014         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
14015         and sign-extension.
14016         (lex_charconst): Update for change in prototype of
14017         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
14018         appropriately.
14019         * cpphash.h (BITS_PER_CPPCHAR_T): New.
14020         * cppinit.c (cpp_create_reader): Initialize them for no
14021         change in semantics.
14022         (cpp_post_options): Add sanity checks.
14023         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
14024         and truncation issues.  Calculate in type cppchar_t.
14025         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
14026         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
14027         run-time dependent precision correctly.  Return whether the
14028         result is signed or not.
14029         * cpplib.c (dequote_string): Use cppchar_t; update.
14030         * cpplib.h (cppchar_signed_t): New.
14031         struct cpp_options): New precision members.
14032         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
14033         * cppexp.c (eval_token): Update.
14034
14035 2002-05-03  David S. Miller  <davem@redhat.com>
14036
14037         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
14038         * config/sparc/sparc.c (sparc_rtx_costs): New function
14039         implementing RTX_COSTS and CONST_COSTS.
14040         * config/sparc/sparc.h (CONST_COSTS): Delete.
14041         (RTX_COSTS_CASES): Define.
14042         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
14043         the work.
14044
14045         * config/sparc/sparc.md (DFA schedulers): Split out...
14046         * config/sparc/cypress.md, config/sparc/hypersparc.md,
14047         config/sparc/sparclet.md, config/sparc/supersparc.md,
14048         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
14049
14050         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
14051         checks on it, always defined for Sparc.
14052
14053         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
14054         Tweak, and add more detailed comments.
14055
14056 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
14057
14058         * Re-apply patch accidentally reverted with
14059         DFA scheduler merge: remove all rules and variables to slurp
14060         source files out of libiberty and rebuild them with HOST_CC.
14061         ($(HOST_PREFIX_1)varray.o): New rule.
14062         (genattrtab rule): Word wrap.
14063
14064 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
14065
14066         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
14067         (CPP_SUBTARGET_SPEC): Define.
14068         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
14069         cpp_subtarget specs.
14070         (CPP_SPEC): Redefine to include %(cpp_subtarget).
14071
14072 2002-05-03  David S. Miller  <davem@redhat.com>
14073
14074         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
14075         * target.h (struct gcc_target): Delete cycle_display member.
14076
14077         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
14078         (rtx_needs_barrier): Delete reference to cycle_display unspec.
14079         (ia64_sched_reorder2): Mention need for cycle display handling
14080         once such notes exist.
14081
14082 2002-05-03  Richard Henderson  <rth@redhat.com>
14083
14084         * real.c (etoasc): Strip most trailing zeros for clarity.
14085         * sched-vis.c: Include real.h.
14086         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
14087         * Makefile.in (sched-vis.o): Add real.h.
14088
14089 2002-05-03  David S. Miller  <davem@redhat.com>
14090
14091         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
14092         no longer needed.
14093
14094 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
14095
14096         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
14097         when we get an out of range literal.
14098         (altivec_expand_ternop_builtin): Same.
14099         (altivec_expand_unop_builtin): Same.
14100         (altivec_expand_builtin): Same, for dss.
14101         (altivec_expand_builtin): Use trees instead of rtl when
14102         determining literal argument validity.
14103
14104 2002-05-03  David S. Miller  <davem@redhat.com>
14105
14106         Delete cycle display scheduling hook.
14107         * config/ia64/ia64.c (ia64_cycle_display,
14108         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
14109         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
14110         and use emit_insn_before instead of ia64_emit_insn_before.
14111         * config/ia64/ia64.md (unspec usage): Delete cycle display.
14112         (cycle_display): Delete insn pattern.
14113         * config/sparc/sparc.md (unspec usage): Delete cycle display.
14114         (cycle_display): Delete insn pattern.
14115         * config/sparc/sparc.c (sparc_cycle_display,
14116         TARGET_SCHED_CYCLE_DISPLAY): Delete.
14117         * doc/md.texi (cycle_display): Don't mention.
14118         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
14119
14120 2002-05-03  Richard Henderson  <rth@redhat.com>
14121
14122         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
14123         * recog.h: Declare them.
14124
14125         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
14126         * config/sparc/sparc.md: Use store_data_bypass_p instead.
14127         * config/sparc/sparc-protos.h: Update.
14128
14129 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
14130
14131         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
14132         -D__arch64__.  Add -D_LP64.
14133         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
14134         from sparc.h.
14135         (CPP_ARCH64_SPEC): Likewise.
14136         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
14137         (NO_BUILTIN_SIZE_TYPE): Undef.
14138
14139 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
14140
14141         * genautomata.c (min_issue_delay_pass_states): Change return type
14142         in the prototype.
14143         (min_issue_delay_pass_states): Change the algorithm.
14144         (min_issue_delay): Set up min_insn_issue_delay for the state.
14145         (output_min_issue_delay_table): Interchange the nested loops and
14146         and initiate min_insn_issue_delay for states.
14147
14148 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
14149
14150         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
14151         jump is simplejump.
14152
14153 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
14154
14155         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
14156         sequence.
14157
14158 2002-05-03  Richard Henderson  <rth@redhat.com>
14159
14160         PR opt/6534
14161         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
14162         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
14163         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
14164         code before JUMP, not EARLIEST.
14165
14166 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
14167
14168         * c-format.c (check_format_info_main): Don't check for presence of
14169         parameter for * width until after operand number has been read,
14170         and only check for it if format parameters are available.
14171         Fixes PR c/6547.
14172
14173 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
14174
14175         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
14176         (LINK_SPEC): Undef before defining.
14177
14178 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
14179
14180         PR preprocessor/6489
14181         * tradcpp.c (fixup_newlines): New.
14182         (main, finclude): Use it.
14183
14184 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
14185
14186         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
14187         * config/mips/mips.c (mips_unique_section): Strip encoding from
14188         decl name.
14189
14190 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
14191
14192         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
14193         mode.
14194
14195 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14196
14197         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
14198         (Specific): Removed buildstats references.
14199         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
14200         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
14201         Accomodate Solaris versions beyond 8.
14202         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
14203         (Specific, *-*-solaris2.8): Removed, obsolete.
14204
14205 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
14206
14207         PR target/6542
14208         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
14209         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
14210         fill leaf_reg_remap with identity.
14211         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
14212
14213 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
14214
14215         * config/h8300/crti.asm: Remove trailing spaces.
14216         * config/h8300/h8300.c: Likewise.
14217         * config/h8300/lib1funcs.asm: Likewise.
14218
14219 2002-05-02  Jason Merrill  <jason@redhat.com>
14220
14221         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
14222         * c-decl.c (c_init_decl_processing): Use it.
14223         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
14224         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
14225         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
14226
14227 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
14228
14229         * regrename.c: Fix formatting.
14230         * tree.c: Likewise.
14231
14232 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
14233
14234         * i386.md (attribute memory): Handle compares properly.
14235
14236 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
14237
14238         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
14239         to none.
14240
14241 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
14242
14243         * function.c: Fix formatting.
14244
14245 2002-05-02  Jan Hubicka  <jh@suse.cz>
14246
14247         * haifa-sched.c (schedule_insn): Print table of instructions and
14248         reservations.
14249         (sched_block): Do not print ready list at verbosity level 1.
14250         * sched-vis.c (print_insn): Make global.
14251         * sched-ebb.c (ebb_print_insn): Rename from...
14252         (print_insn): ... this one.
14253         * sched-int.h (print_insn): Declare
14254
14255 2002-05-02  Richard Henderson  <rth@redhat.com>
14256
14257         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
14258         emitted by cycle_display.
14259
14260 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
14261
14262         * doc/install.texi (*-*-freebsd*): Update to latest status.
14263
14264 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
14265
14266         PR target/6540
14267         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
14268         * config/float-sparc.h: Assume 128-bit long double if
14269         __LONG_DOUBLE_128__ is defined.
14270
14271 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
14272
14273         * genattrtab.c (write_function_unit_info): Add a dummy element
14274         when num_units == 0.
14275
14276 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14277
14278         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
14279         TYPE_MODE (double_type_node) instead of DFmode.
14280
14281 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
14282
14283         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
14284         jumps post reload.
14285         * toplev.c (rest_of_compilation): Revert Richard's patch.
14286
14287 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14288
14289         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
14290
14291 2002-05-02  Catherine Moore  <clm@redhat.com>
14292
14293         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
14294
14295 2002-05-02  Kazu Hirata  <kazu@hxi.com>
14296
14297         * combine.c: Fix comment typos.
14298         * expr.c: Likewise.
14299         * genautomata.c: Likewise.
14300         * stmt.c: Likewise.
14301         * tree.h: Likewise.
14302
14303 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
14304
14305         * doc/install.texi: State GNAT version requirements.
14306
14307 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
14308
14309         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
14310         of the frame pointer or arg pointer register which strict register
14311         checking is not enabled.
14312
14313 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
14314
14315         * gcc.dg/altivec-8.c: New.
14316
14317         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
14318         PRE_INC and PRE_DEC for altivec modes.
14319
14320 2002-05-01  Bruce Korb  <bkorb@gnu.org>
14321
14322         * fixinc/check.tpl(set-writable): make sure the function exists first
14323         * fixinc/inclhack.def(alpha_assert): fix test_text
14324         * fixinc/tests/base/assert.h: add in missing result
14325
14326 2002-05-01  Jeff Law  <law@redhat.com>
14327
14328         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
14329         'T' constraint.
14330
14331 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
14332
14333         * dbxout.c (dbxout_type): Emit size information for range types,
14334         as well, but only when using GDB extensions.
14335
14336 2002-05-01  Richard Henderson  <rth@redhat.com>
14337
14338         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
14339         target-independent gnu binutils date test.
14340
14341 2002-05-01  Richard Henderson  <rth@redhat.com>
14342
14343         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
14344         info before expunging the block.
14345
14346 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
14347
14348         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
14349         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
14350         -M -or -MM is in effect.
14351
14352 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
14353
14354         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
14355         A29k configurations.
14356         * doc/install.texi: Update to match.
14357
14358 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14359
14360         PR bootstrap/6514
14361         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
14362         for duplicates. Always loop over whole list.
14363
14364 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14365
14366         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
14367
14368 2002-05-01      Joel Sherrill <joel@OARcorp.com>
14369
14370         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
14371         support routines.
14372
14373 2002-05-01      Joel Sherrill <joel@OARcorp.com>
14374
14375         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
14376
14377 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
14378
14379         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
14380         (nabs_nopower): Same.
14381         (floatdisf2): New pattern.
14382         (absdi2): Convert to define_insn_and_split.
14383         (nabsdi2): Same.
14384         (trunctfsf2): Same.
14385         (floatditf2): Same.
14386         (floatsitf2): Same.
14387         (fix_trunctfdi2): Same.
14388         (fix_trunctfsi2): Same.
14389
14390 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
14391
14392         * doc/install.texi: Update Texinfo version requirement
14393         documentation.
14394
14395 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
14396
14397         PR target/6512, PR target/5628
14398         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
14399         when memory is not aligned.
14400         (movdf_insn_v9only_vis): Likewise.
14401         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
14402         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
14403         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
14404
14405 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
14406
14407         * gcc.dg/altivec-7.c: New.
14408
14409         * config/rs6000/altivec.h: Cleanup.
14410
14411 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
14412
14413         * doc/invoke.texi (Option Summary): Add -mvrsave=.
14414         (RS/6000 and PowerPC Options): Document -mvrsave=.
14415
14416         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
14417         (rs6000_altivec_vrsave_string): Same.
14418         (rs6000_override_options): Call rs6000_parse_vrsave_option.
14419         (rs6000_parse_vrsave_option): New.
14420         (rs6000_stack_info): Only generate vrsave instructions when
14421         TARGET_ALTIVEC_VRSAVE.
14422
14423         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
14424         (rs6000_altivec_vrsave_string): Define extern.
14425         (rs6000_altivec_vrsave): Same.
14426         (TARGET_ALTIVEC_VRSAVE): New.
14427
14428 2002-04-30  Richard Henderson  <rth@redhat.com>
14429
14430         PR opt/6516
14431         * toplev.c (rest_of_compilation): Don't run cross-jump before
14432         bb-reorder.
14433
14434 2002-04-30  Tom Rix  <trix@redhat.com>
14435
14436         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
14437         check which_alternative.
14438
14439 2002-04-30  Kazu Hirata  <kazu@hxi.com>
14440
14441         * cpplex.c: Fix comment formatting.
14442         * function.c: Likewise.
14443         * integrate.c: Likewise.
14444         * regrename.c: Likewise.
14445         * sibcall.c: Likewise.
14446         * simplify-rtx.c: Likewise.
14447         * tree-inline.c: Likewise.
14448
14449 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14450
14451         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
14452         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
14453         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
14454         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
14455         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
14456         * pa/x-ada: New file.  Define ADA_CFLAGS.
14457
14458 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
14459
14460         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
14461         from MMIX_LAST_REGISTER_FILE_REGNUM.
14462         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
14463         (struct machine_function): New member highest_saved_stack_register
14464         previously static variable in mmix.c.
14465         (MACHINE_DEPENDENT_REORG): Define.
14466         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
14467         (MMIX_OUTPUT_REGNO): New.
14468         (mmix_target_asm_function_prologue): Move calculation of last used
14469         saved-stack-register into...
14470         (mmix_machine_dependent_reorg): New function.  Update to also handle
14471         !TARGET_ABI_GNU.
14472         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
14473         register names, simplify somewhat by new variable regno.
14474         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
14475         register.
14476         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
14477         emitting register names.
14478         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
14479         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
14480         Remove fixed FIXME.
14481         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
14482         Declare.
14483
14484         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
14485
14486 2002-04-30  Richard Henderson  <rth@redhat.com>
14487
14488         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
14489         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
14490         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
14491         emit_tfmode_cvt): New.
14492         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
14493         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
14494         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
14495         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
14496         * config/sparc/sparc-protos.h: Update.
14497
14498 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
14499
14500         * install.texi (Final install): Add to the list of info to include
14501         in a report of a successful bootstrap, and add link to 3.1 list.
14502
14503 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
14504
14505         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
14506         (mode): Add vector modes
14507         (i387): Kill attribute.
14508         (unit): New attribute.
14509         (length_immediate): Grok new types.
14510         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
14511         (modrm): Use "unit".
14512         (memory): Handle MMX/SSE properly.
14513         (scheduling descriptions): Kill uses of fop1.
14514         (sse, mmx, fp patterns): Set type and mode properly.
14515
14516 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
14517
14518         * pa.c (override_options): Default to PA8000 scheduling.
14519         * doc/invoke.texi (HP-PA options): Mention newly added 7300
14520         scheduling parameter.
14521
14522         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
14523         handling of double precision multiplies.
14524
14525         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
14526         fpdiv and fpsqrt instructions.
14527         (7200 & 7300 scheduling): Fix typo in handling of
14528         store-load and store-store penalties.
14529
14530 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14531
14532         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
14533         mips.  Add two missing commas.
14534
14535 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
14536
14537         * doc/contrib.texi (Contributors): Update Paolo Carlini's
14538         and Benjamin Kosnik's entries.
14539
14540 2002-04-29  David S. Miller  <davem@redhat.com>
14541
14542         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
14543         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
14544         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
14545         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
14546
14547 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14548
14549         * combine.c (find_split_point): Use gen_int_mode.
14550
14551 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
14552
14553         Merging code from dfa-branch:
14554
14555         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
14556
14557         * genautomata.c (output_reserv_sets): Fix typo.
14558
14559         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
14560
14561         * genautomata.c (output_reserv_sets): Remove
14562         next_cycle_output_flag.
14563
14564         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
14565
14566         * sched-rgn.c (init_ready_list): Make the DFA code handle
14567         USE/CLOBBER insns in the same way as the traditional
14568         scheduler.
14569         (new_ready): Similarly..
14570
14571         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
14572
14573         * haifa-sched.c (schedule_block): Change the DFA state only after
14574         issuing insn.
14575
14576         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
14577
14578         * pa.c (hppa_use_dfa_pipeline_interface): New function.
14579         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
14580         (override_options): Add PA7300 scheduling support.
14581         (pa_adjust_cost): Update various comments.  Properly
14582         handle anti and output dependencies when using the
14583         DFA scheduler.
14584         (pa_issue_rate): Add PA7300 scheduling support.
14585         (pa_can_combine_p): Call extract_insn before calling
14586         constrain_operands (taken from mainline tree).
14587         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
14588         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
14589         descriptions using DFA descriptions.  Add PA7300
14590         scheduling support.
14591
14592         2002-03-30  David S. Miller  <davem@redhat.com>
14593
14594         Add UltraSPARC-III DFA scheduling support.
14595         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
14596         Update FP conditional move on register insn patterns to use it, as
14597         appropriate.
14598         (define_attr cpu): Add ultrasparc3.
14599         (define_attr us3load_type): New, update integer load patterns to
14600         set it, as appropriate.
14601         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
14602         (rest): Add UltraSPARC3 scheduling description.
14603         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
14604         (PROCESSOR_ULTRASPARC3): New.
14605         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
14606         ({ASM,CPP}_CPU_SPEC): Likewise.
14607         (REGISTER_MOVE_COST): Likewise.
14608         (RTX_COSTS): Likewise.
14609         * config/sparc/sparc.c (sparc_override_options,
14610         sparc_initialize_trampoline, sparc64_initialize_trampoline,
14611         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
14612         sparc_issue_rate): Likewise.
14613         * config/sparc/sol2.h: Likewise.
14614         * config/sparc/sol2-sld-64.h: Likewise.
14615         * config/sparc/linux64.h: Likewise.
14616
14617         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
14618
14619         * doc/md.texi: Add comments about usage the latency time for the
14620         different dependencies and about case when two or more conditions
14621         in different define_insn_reservations returns TRUE for an insn.
14622
14623         * doc/md.texi: Add reference for automaton based pipeline
14624         description.
14625
14626         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
14627
14628         * doc/passes.texi: Add missed information about genattrtab.
14629
14630         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
14631
14632         * genautomata.c (output_automata_list_transition_code): Check
14633         automata_list on NULL.
14634
14635         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
14636
14637         * genautomata.c (output_insn_code_cases,
14638         output_automata_list_min_issue_delay_code,
14639         output_automata_list_transition_code,
14640         output_automata_list_state_alts_code): Comment the functions.
14641
14642         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
14643
14644         * genautomata.c (automata_list_el_t): New typedef.
14645         (get_free_automata_list_el,free_automata_list_el,
14646         free_automata_list, automata_list_hash, automata_list_eq_p,
14647         initiate_automata_lists, automata_list_start, automata_list_add,
14648         automata_list_finish, finish_automata_lists,
14649         output_insn_code_cases, output_automata_list_min_issue_delay_code,
14650         output_automata_list_transition_code,
14651         output_automata_list_state_alts_code, add_automaton_state,
14652         form_important_insn_automata_lists): New functions and prototypes.
14653         (insn_reserv_decl): Add members important_automata_list and
14654         processed_p.
14655         (ainsn): Add members important_p.
14656         (automata_list_el): New structure.
14657         (first_free_automata_list_el, current_automata_list,
14658         automata_list_table): New global variables.
14659         (create_ainsns): Initiate member important_p.
14660         (output_internal_min_issue_delay_func): Generate the switch and
14661         call output_insn_code_cases.
14662         (output_internal_trans_func, output_internal_state_alts_func):
14663         Ditto.
14664         (generate): Call initiate_automata_lists.
14665         (automaton_states): New global variable.
14666         (expand_automata): Call form_important_insn_automata_lists.
14667         (write_automata): Call finish_automata_lists.
14668
14669         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
14670
14671         * genautomata.c (add_excls, add_presence_absence): Check that
14672         cpu units in the sets belong the same automaton.
14673
14674         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
14675         about that cpu units in the sets belong the same automaton.
14676
14677         * doc/md.texi: Ditto.
14678
14679         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
14680                     Nitin Gupta  <niting@noida.hcltech.com>
14681
14682         * config/sh/sh.c (sh_use_dfa_interface): New function.
14683
14684         (sh_issue_rate): New Function.
14685         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
14686         TARGET_SCHED_ISSUE_RATE: define.
14687
14688         * config/sh/sh.md: Add DFA based pipeline description for SH4.
14689
14690         (define_attr insn_class): New attribute used for DFA
14691          scheduling.
14692         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
14693         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
14694          cmpeqdi_t): Likewise.
14695
14696         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
14697          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
14698          ex_group.
14699         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
14700
14701         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
14702
14703         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
14704         break.
14705
14706         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
14707
14708         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
14709         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
14710         necessary.
14711         (output_dfa_start_func): Initiate new variable insn_codes_length,
14712         (write_automata): Output definition of the new variable.
14713
14714         2001-10-02  David S. Miller  <davem@redhat.com>
14715
14716         * haifa-sched.c (advance_one_cycle): New function.
14717         (schedule_block): Use it.
14718         (queue_to_ready): Use it, and also make sure to advance the DFA
14719         state on all stall cycles, not just those where insn_queue links
14720         are found.
14721
14722         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
14723
14724         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
14725         non-zero if the highest-priority instruction could be scheduled.
14726         (choose_ready): Remove last argument from max_issue call.
14727
14728         2001-09-28  David S. Miller  <davem@redhat.com>
14729
14730         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
14731         ultrasparc and 3 for other multi-issue sparcs.
14732
14733         2001-09-27  David S. Miller  <davem@redhat.com>
14734
14735         * config/sparc/sparc.md (cycle_display): New pattern.
14736         * config/sparc/sparc.c (sparc_cycle_display): New.
14737         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
14738
14739         2001-09-25  David S. Miller  <davem@redhat.com>
14740
14741         Convert all of Sparc scheduling to DFA
14742         * config/sparc/sparc.md: Kill all define_function_unit
14743         directives and replace with DFA equivalent.
14744         * config/sparc/sparc.c (ultrasparc_adjust_cost,
14745         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
14746         ultra_fpmode_conflict_exists, ultra_find_type,
14747         ultra_build_types_avail, ultra_flush_pipeline,
14748         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
14749         ultrasparc_variable_issue, ultrasparc_sched_init,
14750         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
14751         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
14752         ultra_cur_hist, ultra_cycles_elapsed): Kill.
14753         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
14754         ultrasparc_store_bypass_p): New.
14755         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
14756         Declare.
14757
14758         2001-09-24  David S. Miller  <davem@redhat.com>
14759
14760         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
14761         ready->vec[foo] not ready[foo].
14762
14763         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
14764
14765         * doc/md.texi: Correct examples for define_insn_reservations
14766         `mult' and `div'.
14767
14768         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
14769
14770         * genautomata.c (create_automata): Print message about creation of
14771         each automaton.
14772         (generate): Remove printing meease about creation of
14773         automata.
14774
14775         2001-09-05  David S. Miller  <davem@redhat.com>
14776
14777         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
14778         * config/sparc/linux64.h: Likewise.
14779
14780         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
14781
14782         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
14783         schedule_block, sched_init, sched_finish): Add missed calls of
14784         use_dfa_pipeline_interface.
14785
14786         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
14787         Ditto.
14788
14789         * sched-vis.c (get_visual_tbl_length): Ditto.
14790
14791         2001-08-27  Richard Henderson  <rth@redhat.com>
14792
14793         * genattr.c (main): Emit state_t even when not doing scheduling.
14794
14795         2001-08-27  Richard Henderson  <rth@redhat.com>
14796
14797         * genautomata.c (expand_automata): Always create a description.
14798
14799         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
14800
14801         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
14802         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
14803         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
14804         RTL constructions.
14805
14806         * genattr.c (main): New variable num_insn_reservations.  Increase
14807         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
14808         pipeline hazard recognizer interface.
14809
14810         * genattrtab.h: New file.
14811
14812         * genattrtab.c: Include genattrtab.h.
14813         (attr_printf, check_attr_test, make_internal_attr,
14814         make_numeric_value): Move protypes into genattrtab.h.  Define them
14815         as external.
14816         (num_dfa_decls): New global variable.
14817         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
14818         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
14819         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
14820         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
14821
14822         * genautomata.c: New file.
14823
14824         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
14825
14826         * sched-int.h: (curr_state): Add the external definition for
14827         automaton pipeline interface.
14828         (haifa_insn_data): Add comments for members blockage and units.
14829
14830         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
14831         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
14832         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
14833         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
14834         TARGET_SCHED_DFA_POST_CYCLE_INSN,
14835         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
14836         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
14837         macros.
14838         (TARGET_SCHED): Use the new macros.
14839
14840         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
14841         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
14842         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
14843         dfa_bubble): New members in gcc_target.sched.
14844
14845         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
14846         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
14847         (insn_queue): Redefine it as pointer to array.
14848         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
14849         INSN_QUEUE_SIZE.
14850         (max_insn_queue_index_macro_value): New variable.
14851         (curr_state, dfa_state_size, ready_try): New varaibles for
14852         automaton interface.
14853         (ready_element, ready_remove, max_issue): New function prototypes
14854         for automaton interface.
14855         (choose_ready): New function prototype.
14856         (insn_unit, blockage_range): Add comments.
14857         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
14858         FUNCTION_UNITS_SIZE == 0.
14859         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
14860         actual_hazard, potential_hazard): Add comments.
14861         (insn_cost): Use cost -1 as undefined value.  Remove
14862         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
14863         pipeline interface.
14864         (ready_element, ready_remove): New functions for automaton
14865         interface.
14866         (schedule_insn): Add new code for automaton pipeline interface.
14867         (queue_to_ready): Add new code for automaton pipeline interface.
14868         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
14869         (debug_ready_list): Print newline when the queue is empty.
14870         (max_issue): New function for automaton pipeline interface.
14871         (choose_ready): New function.
14872         (schedule_block): Add new code for automaton pipeline interface.
14873         Print ready list before scheduling each insn.
14874         (sched_init): Add new code for automaton pipeline interface.
14875         Initiate insn cost by -1.
14876         (sched_finish): Free the current automaton state and finalize
14877         automaton pipeline interface.
14878
14879         * sched-rgn.c: Include target.h.
14880         (init_ready_list, new_ready, debug_dependencies): Add new code for
14881         automaton pipeline interface.
14882
14883         * sched-vis.c: Include target.h.
14884         (get_visual_tbl_length): Add code for automaton interface.
14885         (target_units, print_block_visualization):  Add comments.
14886
14887         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
14888         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
14889         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
14890         (getruntime.o, genautomata.o): New entries.
14891         (genattrtab.o): Add new dependency file genattrtab.h.
14892         (genattrtab): Add new dependencies.  Link it with `libm.a'.
14893         (getruntime.o, hashtab.o): New entries for canadian cross.
14894
14895         * doc/md.texi: Description of automaton based model.
14896
14897         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
14898         Add comments.
14899         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
14900         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
14901         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
14902         TARGET_SCHED_DFA_POST_CYCLE_INSN,
14903         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
14904         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
14905         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
14906         hook descriptions.
14907         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
14908         MAX_DFA_ISSUE_RATE): New macro descriptions.
14909
14910         * doc/contrib.texi: Add dfa based scheduler contribution.
14911
14912         * doc/gcc.texi: Add more information about genattrtab.
14913
14914 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14915
14916         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
14917         adjust_address_nv call.
14918
14919 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
14920
14921         * doc/install.texi (Testing): Provide additional information, and
14922         a stronger encouragement, for running the testsuites.
14923
14924 2002-04-29  DJ Delorie  <dj@redhat.com>
14925
14926         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
14927         given in upper case.
14928
14929 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14930
14931         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
14932         Solaris 2 <widec.h> if missing.
14933         * fixinc/fixincl.x: Regenerate.
14934         * fixinc/tests/base/widec.h: New file.
14935
14936 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
14937
14938         * toplev.c (f_options): Add "profile" switch so that
14939         -fno-profile can be used to disable -p.
14940
14941 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
14942
14943         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
14944         UV2DImode.
14945         * tree.c (build_common_tree_nodes_2): Likewise.
14946         * tree.h (enum tree_index): Likewise.
14947         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
14948
14949         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
14950         entries.
14951         (init_mmx_sse_builtins): Initialize SSE2 builtins.
14952         (ix86_expand_builtin): Add support for SSE2 builtins.
14953         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
14954         (VALID_SSE_REG_MODE): Use it.
14955         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
14956         (enum ix86_builtins): Add SSE2 builtins.
14957         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
14958         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
14959         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
14960         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
14961         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
14962         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
14963         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
14964         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
14965         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
14966         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
14967         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
14968         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
14969         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
14970         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
14971         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
14972         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
14973         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
14974         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
14975         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
14976         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
14977         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
14978         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
14979         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
14980         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
14981         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
14982         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
14983         lfence_insn): New patterns.
14984         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
14985         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
14986
14987 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
14988
14989         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
14990
14991 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14992
14993         * doc/contrib.texi (Contributors): Add Paolo Carlini and
14994         Janis Johnson.
14995         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
14996         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
14997         and CPU instead of cpu.
14998
14999 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
15000
15001         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
15002         variables.
15003         (lang_independent_options): Add -fif-conversion, -fif-conversion2
15004         (rest_of_compilation): Do if conversion only when asked for.
15005         (parse_options_and_default_flags): Set new variables to 1 for -O1
15006         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
15007
15008 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
15009
15010         * i386.c (dbx64_register_map): Fix typo.
15011
15012 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
15013
15014         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
15015         real_one_half, real_bb_freq_max): New static variables.
15016         (debug_profile_bbauxs): Kill.
15017         (process_note_predictions): Kill unused variable.
15018         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
15019         volatile double.
15020         (propagate_freq): Use REAL_ARITHMETICS.
15021         (estimate_bb_frequencies): Likevise; init new static variables.
15022         * Makefile.in (predict.o): Add dependency on real.h
15023
15024 2002-04-28  David S. Miller  <davem@redhat.com>
15025
15026         PR target/6500
15027         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
15028         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
15029         several {reads,writes} instead.
15030         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
15031         Define.
15032
15033 2002-04-27  David S. Miller  <davem@redhat.com>
15034
15035         PR target/6494
15036         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
15037         of the stack bias.
15038
15039         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
15040         including signal.h and sys/ucontext.h, not needed.
15041
15042 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
15043
15044         * varasm.c (output_constant_def): Correct test for not calling
15045         ENCODE_SECTION_INFO for INTEGER_CST.
15046
15047 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
15048
15049         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
15050         keep most cases as function eval_token.
15051         (eval_token): New function.
15052         (_cpp_parse_expr): Read token here for improved diagnostics.
15053         Don't use op_as_text.  Detect bad ':' here.
15054         (reduce): Don't detect bad ':' here.
15055         (op_as_text): Remove.
15056         * cpphash.h (_cpp_test_assertion): Change prototype.
15057         * cpplib.c (_cpp_test_assertion): Change prototype.
15058
15059 2002-04-28  Richard Henderson  <rth@redhat.com>
15060
15061         PR c/5154
15062         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
15063         (ggc_mark_rtx_children): New.
15064
15065 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
15066
15067         PR target/6496
15068         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
15069         after call peepholes for UltraSPARC.
15070         (call + jump 64-bit peepholes): Remove.
15071
15072 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15073
15074         PR c/6497
15075         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
15076         result as temporary value.
15077
15078 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
15079
15080         PR c++/6396
15081         * toplev.c (rest_of_compilation): Only run regrename and copy
15082         propagation if optimizing.
15083
15084 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
15085
15086         PR optimization/6475
15087         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
15088         register of REGNO_DECL (i).
15089         * Makefile.in (reload1.o): Add $(TREE_H).
15090
15091 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
15092
15093         * cppexp.c (lex): Update to use state.skip_eval.
15094         (struct op): Remove prio and flags members.
15095         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
15096         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
15097         (LEFT_ASSOC): New macro.
15098         (optab): New table of operator priorities and flags.
15099         (SHIFT): Update.
15100         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
15101         malloc-ed parser stack.
15102         (reduce): New; reduce the operator stack.
15103         (_cpp_expand_op_stack): Expand the operator stack as necessary.
15104         * cpphash.h (struct op): Predeclare.
15105         (struct cpp_reader): New members op_stack, op_limit.
15106         (struct lexer_state): New member skip_eval.
15107         (_cpp_parse_expr): Update.
15108         (_cpp_expand_op_stack): New.
15109         * cpplib.c (do_if): Update.
15110         * cppinit.c (cpp_create_reader): Create op stack.
15111         (cpp_destroy): And destroy it.
15112         * cpplib.h (CPP_LAST_CPP_OP): Correct.
15113         (TTYPE_TABLE): Correct.
15114
15115 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15116
15117         PR c/6343
15118         * c-decl.c (duplicate_decls): Call merge_weak.
15119         * c-pragma.c (apply_pragma_weak): Warn about misuse.
15120         * output.h (merge_weak): Prototype merge_weak.
15121         * varasm.c (merge_weak): New function.
15122         (declare_weak): Make sure we don't give an error on VAR_DECLs.
15123         Mark RTL with SYMBOL_REF_WEAK.
15124
15125 2002-04-27  Kurt Garloff <garloff@suse.de>
15126
15127         * tree-inline.c (inlinable_function_p): Improve heuristics
15128         by using a smoother function to cut down allowable inlinable size.
15129         * param.def: Add parameters max-inline-insns-single,
15130         max-inline-slope, min-inline-insns that determine the exact
15131         shape of the above function.
15132         * param.h: Likewise.
15133
15134 2002-04-26  Richard Henderson  <rth@redhat.com>
15135
15136         * c-parse.in (malloced_yyss, malloced_yyvs): New.
15137         (yyoverflow): Re-add.  Set them.
15138         (free_parser_stacks): New.
15139         * c-common.h: Declare it.
15140         * c-lex.c (c_common_parse_file): Call it.
15141
15142 2002-04-26  Richard Henderson  <rth@redhat.com>
15143
15144         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
15145         for fallthru search.
15146
15147 2002-04-26  Eric Christopher  <echristo@redhat.com>
15148
15149         PR optimization/3700
15150         * config/mips/mips.c (mips_issue_rate): Define.  New function.
15151         (TARGET_SCHED_ISSUE_RATE): Use.
15152
15153 2002-04-25  David S. Miller  <davem@redhat.com>
15154
15155         PR target/6422
15156         * reorg.c (optimize_skip): Do not allow exception causing
15157         instructions to be considered for delay slots.
15158         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
15159         (relax_delay_slots): Do not try to consider exception causing
15160         instructions as redundant.
15161
15162 2002-04-26  Richard Henderson  <rth@redhat.com>
15163
15164         PR c/5225
15165         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
15166
15167 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
15168
15169         PR bootstrap/6445
15170         * config/i386/i386.md (untyped_call): Return the value in a float
15171         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
15172         TARGET_80387.
15173
15174 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
15175
15176         * tree.c (tree_int_cst_lt): Compare constants whose types differ
15177         in unsigned-ness correctly.
15178
15179 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15180
15181         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
15182         portable runtime model.
15183
15184 2002-04-26  Richard Henderson  <rth@redhat.com>
15185
15186         * c-parse.in (yyoverflow): Revert.
15187
15188 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
15189             Richard Henderson  <rth@redhat.com>
15190
15191         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
15192         result as temporary value.
15193
15194 2002-04-26  Richard Henderson  <rth@redhat.com>
15195
15196         PR c/3581
15197         * c-common.c (fix_string_type): Split out of ...
15198         (combine_strings): ... here.  Take a varray, not a tree list.
15199         (c_expand_builtin_printf): Use fix_string_type.
15200         * c-common.h: Update decls.
15201         * c-parse.in (string): Remove.  Update all uses to use STRING
15202         instead, and not call combine_strings.
15203         (yylexstring): New.
15204         (_yylex): Use it.
15205         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
15206         (build_asm_stmt): Likewise.
15207         * objc/objc-act.c (my_build_string): Use fix_string_type.
15208         (build_objc_string_object): Build varray for combine_strings.
15209
15210 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
15211
15212         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
15213         x86-64.
15214
15215 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
15216
15217         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
15218         (HAVE_NO_R_OPERAND): Remove.
15219         (HAVE_VALUE): Remove.
15220         (op_to_prio): Update.
15221         (UNARY): Don't alter flags.
15222         (_cpp_parse_expr): want_value used to indicate whether
15223         a number or unary operator is expected next.  Distinguish
15224         unary and binary +/-.
15225         (op_as_text): Update for unary operators.
15226
15227 2002-04-25  Richard Henderson  <rth@redhat.com>
15228
15229         PR c/2161
15230         * c-parse.in (yyoverflow): New.
15231
15232 2002-04-25  Richard Henderson  <rth@redhat.com>
15233
15234         PR c/2098
15235         * c-common.c (shorten_compare): Simplfy conditions leading to
15236         the generation of a warning.
15237
15238 2002-04-25  Richard Henderson  <rth@redhat.com>
15239
15240         PR c/2035
15241         * expmed.c (extract_bit_field): Fall through to generic code rather
15242         than aborting on subreg special case.
15243
15244 2002-04-25  David S. Miller  <davem@redhat.com>
15245
15246         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
15247         for DECL being NULL.
15248
15249 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
15250
15251         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
15252
15253 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
15254
15255         * c-decl.c (grokdeclarator): Remove outdated ??? note
15256         on invalid declaration of flexible array members.
15257
15258 2002-04-25  Richard Henderson  <rth@redhat.com>
15259
15260         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
15261
15262 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
15263
15264         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
15265         needed by the compiler, even if they are used as global regs.
15266
15267 2002-04-25  Matt Hiller  <hiller@redhat.com>
15268
15269         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
15270         functions.
15271         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
15272         of the corresponding functions.
15273         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
15274         New prototypes.
15275
15276 2002-04-25  Matt Hiller  <hiller@redhat.com>
15277
15278         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
15279
15280         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
15281         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
15282         registers, adjust comment accordingly.
15283         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
15284         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
15285         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
15286         for coprocessor registers.
15287         (ADDITIONAL_REGISTER_NAMES): Include
15288         ALL_COP_ADDITIONAL_REGISTER_NAMES.
15289
15290         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
15291         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
15292         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
15293         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
15294         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
15295
15296         (mips_char_to_class): Adjust comment to include coprocessor
15297         constraint letters.
15298
15299         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
15300         New functions.
15301         (mips_reg_names, mips_regno_to_class): Include coprocessor
15302         information.
15303         (mips_sw_reg_names): Ditto, make non-static.
15304         (mips_move_1word): Handle moves to and from coprocessor registers.
15305         (mips_move_2words): Handle moves to and from coprocessor
15306         registers.
15307         (mips_class_max_nregs, mips_register_move_cost): Handle
15308         coprocessor register classes.
15309         (override_options): Initialize mips_char_to_class and
15310         mips_hard_regno_mode_ok properly for coprocessor registers.
15311
15312         * config/mips/mips.md (movdi_internal, movdi_internal2,
15313         movsi_internal1, movsi_internal2): Add constraint-sets for
15314         coprocessor registers.
15315         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
15316         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
15317         isn't mips.
15318         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
15319         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
15320         isn't mips.
15321         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
15322         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
15323         isn't mips.
15324         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
15325         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
15326         isn't mips.
15327
15328         * doc/tm.texi: Document feature.
15329
15330 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
15331
15332         * integrate.c (function_attribute_inlinable_p): Simplify.
15333         Check the table pointer is not NULL.
15334
15335 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
15336
15337         * doc/c-tree.texi: Fix typo in introduction.
15338
15339 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
15340
15341         * c-common.h (c_common_parse_file): Update.
15342         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
15343         * c-lex.c (YYDEBUG): Get from c-lex.h.
15344         (c_common_parse_file): Update.
15345         * c-lex.h (YYDEBUG, yydebug): New.
15346         * c-parse.in (YYDEBUG): Get from c-lex.h.
15347         (c_set_yydebug): Remove.
15348         * c-tree.h (c_set_yydebug): Remove.
15349         * langhooks-def.h (lhd_do_nothing_i): New.
15350         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
15351         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
15352         * langhooks.c  (lhd_do_nothing_i): New.
15353         (lhd_set_yydebug): Remove.
15354         * langhooks.h (struct lang_hooks): Update.
15355         * toplev.c (set_yydebug): New.
15356         (compile_file): Update call to parse_file hook.
15357         (decode_d_option): Update.
15358 objc:
15359         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
15360
15361 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
15362
15363         * loop.c (load_mems): Don't change the interface of called functions.
15364
15365         * calls.c (expand_call): Take current_function_pretend_args_size
15366         into account when setting argblock for sibcalls.
15367
15368 2002-04-24  Matt Hiller  <hiller@redhat.com>
15369
15370         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
15371         * c-lex.c: Ditto.
15372
15373         * cpplex.c (skip_line_comment): Process comment one multibyte
15374         character at a time rather than one char at a time, if
15375         appropriate.
15376         (parse_string): Process string one multibyte character at a time
15377         rather than one char at a time, if appropriate.
15378         * c-lex.c (lex_string): Lex and copy multibyte strings
15379         appropriately.
15380         * cpplib.h (cppchar_t): Change to unsigned.
15381
15382 2002-04-24  Richard Henderson  <rth@redhat.com>
15383
15384         PR c/3467
15385         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
15386         for c99.
15387
15388 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
15389
15390         * sh.c (sh_va_arg): If argument was passed by reference,
15391         dereference the pointer.
15392
15393         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
15394
15395         * sh.md (divsi3_i4_media): Use match_operand for input values
15396         rather than hard registers.
15397         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
15398         unnecessarily through hard registers.  Keep copies of pseudo
15399         registers outside of the libcall sequence.
15400
15401         * sh.md (casesi_shift_media): Add modes.
15402
15403         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
15404         values in memory.
15405
15406 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
15407
15408         * attribs.c (c_common_attribute_table): Move table and handlers
15409         to c-common.c.
15410         (format_attribute_table, lang_attribute_table,
15411         lang_attribute_common): Remove.
15412         (init_attributes): Replace NULL pointers with pointers to the
15413         empty table.
15414         (handle_packed_attribute, handle_nocommon_attribute,
15415         handle_common_attribute, handle_noreturn_attribute,
15416         handle_noinline_attribute, handle_always_inline_attribute,
15417         handle_used_attribute, handle_unused_attribute,
15418         handle_const_attribute, handle_transparent_union_attribute,
15419         handle_constructor_attribute, handle_destructor_attribute,
15420         handle_mode_attribute, handle_section_attribute,
15421         handle_aligned_attribute, handle_weak_attribute,
15422         handle_alias_attribute, handle_visibility_attribute,
15423         handle_no_instrument_function_attribute, handle_malloc_attribute,
15424         handle_no_limit_stack_attribute, handle_pure_attribute,
15425         handle_deprecated_attribute, handle_vector_size_attribute,
15426         vector_size_helper): Move to c-common.c.
15427         * c-common.c (c_common_attribute_table,
15428         handle_packed_attribute, handle_nocommon_attribute,
15429         handle_common_attribute, handle_noreturn_attribute,
15430         handle_noinline_attribute, handle_always_inline_attribute,
15431         handle_used_attribute, handle_unused_attribute,
15432         handle_const_attribute, handle_transparent_union_attribute,
15433         handle_constructor_attribute, handle_destructor_attribute,
15434         handle_mode_attribute, handle_section_attribute,
15435         handle_aligned_attribute, handle_weak_attribute,
15436         handle_alias_attribute, handle_visibility_attribute,
15437         handle_no_instrument_function_attribute, handle_malloc_attribute,
15438         handle_no_limit_stack_attribute, handle_pure_attribute,
15439         handle_deprecated_attribute, handle_vector_size_attribute,
15440         vector_size_helper): Move from attribs.c.
15441         * c-common.h (c_common_attribute_table,
15442         c_common_format_attribute_table): New.
15443         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
15444         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
15445         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
15446         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
15447         (LANG_HOOKS_INITIALIZER): Update.
15448         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
15449         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
15450         * target.h: Update comment.
15451         * tree.c (default_target_attribute_table): Remove.
15452         * tree.h (default_target_attribute_table, format_attribute_table,
15453         lang_attribute_table, lang_attribute_common): Remove.
15454 objc:
15455         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
15456         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
15457
15458 2002-04-24  Jason Merrill  <jason@redhat.com>
15459
15460         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
15461         * dwarf2out.c (dwarf_attr_name): Support it.
15462         (gen_array_type_die): Emit it.
15463         (lookup_type_die): No special handling for VECTOR_TYPE.
15464         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
15465
15466 2002-04-24  Richard Henderson  <rth@redhat.com>
15467
15468         * config/mips/mips.md (movdi_usd): Renumber.
15469
15470 2002-04-24  David S. Miller  <davem@redhat.com>
15471
15472         PR target/6420
15473         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
15474         32-bit Sparc and current_function_returns_struct is true.
15475
15476 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
15477
15478         * loop.c (canonicalize_condition): Use gen_int_mode.
15479
15480 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
15481
15482         * config/rs6000/altivec.h: Cleanup file.  Add non individual
15483         variants.
15484         (vec_vaddubm): New.
15485         (vec_vadduhm): New.
15486         (vec_vadduwm): New.
15487         (vec_vaddfp): New.
15488         (vec_vaddcuw): New.
15489         (vec_vaddubs): New.
15490         (vec_vaddsbs): New.
15491         (vec_vadduhs): New.
15492         (vec_vadduws): New.
15493         (vec_vaddsws): New.
15494         (vec_vand): New.
15495         (vec_vandc): New.
15496         (vec_vavgub): New.
15497         (vec_vavgsb): New.
15498         (vec_vavguh): New.
15499         (vec_vavgsh): New.
15500         (vec_vavguw): New.
15501         (vec_vavgsw): New.
15502         (vec_vrfip): New.
15503         (vec_vcmpbfp): New.
15504         (vec_vcmpequb): New.
15505         (vec_vcmpequh): New.
15506         (vec_vcmpequw): New.
15507         (vec_vcmpeqfp): New.
15508         (vec_vcmpgefp): New.
15509         (vec_vcmpgtub): New.
15510         (vec_vcmpgtsb): New.
15511         (vec_vcmpgtuh): New.
15512         (vec_vcmpgtsh): New.
15513         (vec_vcmpgtuw): New.
15514         (vec_vcmpgtsw): New.
15515         (vec_vcmpgtfp): New.
15516         (vec_vcmpgefp): New.
15517         (vec_vcfux): New.
15518         (vec_vcfsx): New.
15519         (vec_vctsxs): New.
15520         (vec_vctuxs): New.
15521         (vec_vexptefp): New.
15522         (vec_vrfim): New.
15523         (vec_lvx): New.
15524         (vec_lvebx): New.
15525         (vec_lvehx): New.
15526         (vec_lde): Add vector float variant.
15527         (vec_lvewx): New.
15528         (vec_lvxl): New.
15529         (vec_vlogefp): New.
15530         (vec_vmaddfp): New.
15531         (vec_vmhaddshs): New.
15532         (vec_vmaxub): New.
15533         (vec_vmaxsb): New.
15534         (vec_vmaxuh): New.
15535         (vec_vmaxsh): New.
15536         (vec_vmaxuw): New.
15537         (vec_vmaxsw): New.
15538         (vec_vmaxsw): New.
15539         (vec_vmaxfp): New.
15540         (vec_vmrghb): New.
15541         (vec_vmrghh): New.
15542         (vec_vmrghw): New.
15543         (vec_vmrglb): New.
15544         (vec_vmrglh): New.
15545         (vec_vmrglw): New.
15546         (vec_vminub): New.
15547         (vec_vminsb): New.
15548         (vec_vminuh): New.
15549         (vec_vminsh): New.
15550         (vec_vminuw): New.
15551         (vec_vminsw): New.
15552         (vec_vminfp): New.
15553         (vec_vmladduhm): New.
15554         (vec_vmhraddshs): New.
15555         (vec_msumubm): New.
15556         (vec_vmsummbm): New.
15557         (vec_vmsumuhm): New.
15558         (vec_vmsumshm): New.
15559         (vec_vmsumuhs): New.
15560         (vec_vmsumshs): New.
15561         (vec_vmuleub): New.
15562         (vec_vmulesb): New.
15563         (vec_vmuleuh): New.
15564         (vec_vmulesh): New.
15565         (vec_vmuloub): New.
15566         (vec_mulosb): New.
15567         (vec_vmulouh): New.
15568         (vec_vmulosh): New.
15569         (vec_vnmsubfp): New.
15570         (vec_vnor): New.
15571         (vec_vor): New.
15572         (vec_vpkuhum): New.
15573         (vec_vpkuwum): New.
15574         (vec_vpkpx): New.
15575         (vec_vpkuhus): New.
15576         (vec_vpkshss): New.
15577         (vec_vpkuwus): New.
15578         (vec_vpkswss): New.
15579         (vec_vpkshus): New.
15580         (vec_vpkswus): New.
15581         (vec_vperm): New.
15582         (vec_vrefp): New.
15583         (vec_vrlb): New.
15584         (vec_vrlh): New.
15585         (vec_vrlw): New.
15586         (vec_vrfin): New.
15587         (vec_vrsqrtefp): New.
15588         (vec_vsel): New.
15589         (vec_vslb): New.
15590         (vec_vslh): New.
15591         (vec_vslw): New.
15592         (vec_vsldoi): New.
15593         (vec_vsl): New.
15594         (vec_vslo): New.
15595         (vec_vspltb): New.
15596         (vec_vsplth): New.
15597         (vec_vspltw): New.
15598         (vec_vspltisb): New.
15599         (vec_vspltish): New.
15600         (vec_vspltisw): New.
15601         (vec_vsrb): New.
15602         (vec_vsrh): New.
15603         (vec_vsrw): New.
15604         (vec_vsrab): New.
15605         (vec_vsrah): New.
15606         (vec_vsraw): New.
15607         (vec_vsr): New.
15608         (vec_vsro): New.
15609         (vec_stvx): New.
15610         (vec_stvebx): New.
15611         (vec_stvehx): New.
15612         (vec_stvewx): New.
15613         (vec_stvxl): New.
15614         (vec_vsububm): New.
15615         (vec_vsubuhm): New.
15616         (vec_vsubuwm): New.
15617         (vec_vsubfp): New.
15618         (vec_vsubcuw): New.
15619         (vec_vsububs): New.
15620         (vec_vsubsbs): New.
15621         (vec_vsubuhs): New.
15622         (vec_vsubshs): New.
15623         (vec_vsubuws): New.
15624         (vec_vsubsws): New.
15625         (vec_vsum4ubs): New.
15626         (vec_vsum4sbs): New.
15627         (vec_vsum4shs): New.
15628         (vec_vsum2sws): New.
15629         (vec_vsumsws): New.
15630         (vec_vrfiz): New.
15631         (vec_vupkhsb): New.
15632         (vec_vupkhpx): New.
15633         (vec_vupkhsh): New.
15634         (vec_vupklsb): New.
15635         (vec_vupklpx): New.
15636         (vec_vupklsh): New.
15637         (vec_vxor): New.
15638
15639 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
15640
15641         PR c/5430
15642         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
15643         added literals from substracted literals.
15644         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
15645         (fold) [associate]: Preserve MINUS_EXPR if needed.
15646
15647 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
15648
15649         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
15650         are obsoleted.
15651
15652 2002-04-23  Tom Tromey  <tromey@redhat.com>
15653
15654         * gcc.c: Added --resource.  For PR java/6314.
15655
15656 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
15657
15658         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
15659         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
15660         these libraries.
15661
15662 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
15663
15664         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
15665
15666 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
15667
15668         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
15669         workaround.
15670         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
15671         (ix86_expand_clrstr): Fix typo.
15672         * loop.c (gen_load_of_final_value): New.
15673         (loop_givs_rescan, strength_reduce, check_dbra_loop):
15674         Use it.
15675
15676 2002-04-23  Roger Sayle  <roger@eyesopen.com>
15677
15678         * builtins.c (builtin_memset_gen_str): New function.
15679         (expand_builtin_memset): Optimize the case of constant length, but
15680         unknown value.
15681
15682 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
15683
15684         * config/rs6000/altivec.h (vec_step): Remove extraneous
15685         parentheses.
15686         (vec_ctu): Cast return.
15687
15688 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
15689
15690         PR target/6413
15691         * function.h: (struct function): Add profile_label_no field.
15692         (current_function_profile_label_no): Define.
15693         * function.c: (profile_label_no): New static var.
15694         (expand_function_start): Increment it, and copy to
15695         current_function_profile_label_no.
15696         * output.h (profile_label_no): Delete.
15697         * final.c (profile_label_no): Delete.
15698         (profile_function): Use current_function_profile_label_no.
15699         (final_end_function): Don't increment profile_label_no here.
15700         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
15701         profile_label_no with current_function_profile_label_no.
15702         * config/pa/pa.c (current_function_number): Delete.
15703         (pa_output_function_prologue): Don't output profile label here.
15704         (hppa_profile_hook): Use label_no param rather than
15705         current_function_number.
15706         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
15707         * config/pa/pa.h: .. here.
15708         (FUNCTION_PROFILER): Output profile label here.
15709
15710 2002-04-22  Eric Christopher  <echristo@redhat.com>
15711
15712         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
15713         patch of 2002-04-09 due to binutils issues.
15714         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
15715
15716 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
15717
15718         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
15719         constraint to 'o' for m=r and r=m alternatives.
15720         ("*movv8hi_internal1"): Same.
15721         ("*movv16qi_internal1"): Same.
15722         ("*movv4sf_internal1"): Same.
15723
15724 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
15725
15726         * rtl.h (RTX_FLAG): New macro.
15727         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
15728         * final.c (alter_subreg): Use macro to access rtx flag.
15729         * integrate.c (copy_rtx_and_substitute): Use new access macro.
15730         * print-rtl.c (print_rtx): Use new access macro.
15731
15732         * cse.c (insert): Check rtx code before accessing flag.
15733
15734         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
15735         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
15736         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
15737         convert_const_symbol_ref, make_canonical, make_alternative_compare,
15738         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
15739         simplify_test_exp, optimize_attrs, simplify_by_exploding,
15740         find_and_mark_used_attributes, unmark_used_attributes,
15741         add_values_to_cover, simplify_with_current_value,
15742         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
15743         copy_rtx_unchanging, main): Use new access macros.
15744
15745 2002-04-22  Tom Rix  <trix@redhat.com>
15746
15747         * expmed.c (init_expmed): Generate shifted constant once.
15748
15749 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
15750
15751         * c-lex.c (lex_charconst): Call convert to get constant in
15752         proper type; don't just smash the type field.
15753         Fixes PR c/6300.
15754
15755         * config.gcc: Add list of obsolete configurations.  Disallow
15756         building these without --enable-obsolete.
15757         * doc/install.texi: Document --enable-obsolete and obsoletion
15758         policy.  Mention obsoletion of individual targets in
15759         appropriate places.
15760
15761 2002-04-22  Richard Henderson  <rth@redhat.com>
15762
15763         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
15764
15765 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
15766
15767         PR f/6138.
15768         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
15769         (walk_fixup_memory_subreg): Likewise.
15770         (fixup_var_refs_insn): Adjust accordingly.
15771         (fixup_var_refs_1): Likewise.
15772
15773 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
15774
15775         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
15776         LIBPATH_ARCH64_SPEC): Define.
15777         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
15778         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
15779         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
15780         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
15781
15782 2002-04-22      Joel Sherrill <joel@OARcorp.com>
15783
15784         * gthr-rtems.h: Correct prototypes to remove warnings.
15785
15786 2002-04-22  Richard Henderson  <rth@redhat.com>
15787
15788         PR c/6344
15789         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
15790
15791         * gcse.c (free_insn_expr_list_list): New.
15792         (clear_modify_mem_tables): Use it.  Fix bit set usage.
15793         (canon_list_insert): Use EXPR_LISTs for expressions.
15794         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
15795
15796 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
15797
15798         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
15799         file change and include code to _cpp_pop_buffer.
15800         * cpphash.h (struct pending_option): Predeclare.
15801         (struct cpp_reader): New member next_include_file.
15802         (_cpp_pop_file_buffer): Update.
15803         (_cpp_push_next_buffer): Update, rename.
15804         * cppinit.c (cpp_destroy): Free include chain and pending here.
15805         (cpp_finish_options): Simplify.
15806         (_cpp_push_next_buffer): Rename and clean up.
15807         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
15808         Clarify.
15809         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
15810
15811 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
15812
15813         * config/rs6000/altivec.h (vec_xor): Add variant for both args
15814         being vector signed int.
15815         (vec_andc): Same.
15816         (vec_xor): Add variant for both args being vector signed char.
15817         Remove redundant variant.
15818         (vec_andc): Same.
15819
15820 2002-04-21  David S. Miller  <davem@redhat.com>
15821
15822         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
15823         compare mode in output RTL.
15824
15825 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
15826
15827         * config/rs6000/rs6000.c (rs6000_override_options): Correct
15828         style and formatting of previous patch.
15829
15830 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
15831
15832         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
15833         flag_pic for ABI_AIX.
15834
15835 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
15836
15837         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
15838         * cppfiles.c (read_include_file): Similarly.
15839         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
15840         uxstrdup ustrchr, ufputs): Similarly.
15841         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
15842         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
15843         cpp_ideq, parse_identifier, parse_number): Similarly.
15844         * cpplib.c (struct directive, dequote_string, D, run_directive,
15845         cpp_push_buffer): Similarly.
15846         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
15847         _cpp_create_definition, check_trad_stringification,
15848         cpp_macro_definition): Similarly.
15849
15850 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
15851
15852         * cppmacro.c (funlike_invocation_p): Don't step back
15853         over CPP_EOF.
15854
15855 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
15856
15857         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
15858         labelno.
15859
15860 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
15861
15862         * doc/invoke.texi: Remove Chill references.
15863         * doc/gcc.texi: Update last modified date.
15864
15865 2002-04-20  Kazu Hirata  <kazu@hxi.com>
15866
15867         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
15868         push and pop.  Replace add.l with add.w.
15869
15870 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
15871
15872         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
15873         multiply instructions for H8/300H case.
15874
15875 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
15876
15877         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
15878         Bum three instructions from each routine.
15879
15880 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
15881
15882         * Makefile.in: Update.
15883         * decl.c (push_c_function_context, pop_c_function_context,
15884         mark_c_function_context): Rename for consistency.
15885         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
15886         * c-tree.h (push_c_function_context, pop_c_function_context,
15887         mark_c_function_context): Rename for consistency.
15888         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
15889         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
15890         * function.c (init_lang_status, save_lang_status,
15891         restore_lang_status, mark_lang_status, free_lang_status):
15892         Move to langhooks.h.
15893         (push_function_context_to, pop_function_context_from,
15894         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
15895         Update.
15896         * function.h (init_lang_status, save_lang_status,
15897         restore_lang_status, mark_lang_status, free_lang_status):
15898         Move to langhooks.h.
15899         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
15900         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
15901         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
15902         LANG_HOOKS_FUNCTION_INITIALIZER): New.
15903         (LANG_HOOKS_INITIALIZER): Update.
15904         (lhd_do_nothing_f): New.
15905         * langhooks.h (struct lang_hooks_for_functions): New.
15906         (struct lang_hooks): New hooks.
15907         * langhooks.c (lhd_do_nothing_f): New.
15908 objc:
15909         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
15910         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
15911
15912 2002-04-19  David S. Miller  <davem@redhat.com>
15913
15914         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
15915         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
15916
15917 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
15918
15919         PR optimization/3756
15920         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
15921         x = ((int) y < 0) ? cst1 : cst2.
15922
15923 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
15924
15925         PR c/6358
15926         * function.c: Reapply patch for c/6358.
15927         (expand_function_end): Copy decl_rtl's mode, not
15928         current_function_return_rtx mode.
15929
15930 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
15931
15932         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
15933         targets.
15934
15935 2002-04-19  Tom Tromey  <tromey@redhat.com>
15936
15937         * doc/install.texi (Specific): Update status of Solaris 2.8.
15938         For PR libgcj/6158.
15939
15940 2002-04-19  Andreas Schwab  <schwab@suse.de>
15941
15942         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
15943         (PUT_REAL): Restore old definition.
15944
15945 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
15946             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15947
15948         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
15949         binutils 2.11.2 and higher generate smaller binaries than Sun's
15950         native tools.
15951
15952 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
15953
15954         PR c++/6352
15955         * toplev.c (rest_of_compilation): Do not defer functions for which
15956         TREE_SYMBOL_REFERENCED has already been set.
15957
15958 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
15959
15960         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
15961         alternative.
15962
15963 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
15964
15965         * builtins.c: Include langhooks.h.
15966         (lang_type_promotes_to): Remove.
15967         (expand_builtin_va_arg): Use new hook.
15968         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
15969         (simple_type_promotes_to): Move to c-typeck.c.
15970         * c-common.h (simple_type_promotes_to): Remove.
15971         * c-decl.c (duplicate_decls, grokdeclarator): Update.
15972         * c-format.c: Include langhooks.h.
15973         (check_format_types): Update.
15974         * c-tree.h (c_type_promotes_to): New.
15975         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
15976         (type_lists_compatible_p): Update.
15977         * langhooks-def.h (lhd_type_promotes_to): New.
15978         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
15979         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
15980         * langhooks.c (lhd_type_promotes_to): New.
15981         * langhooks.h (struct lang_hooks_for_types): New hook.
15982         * tree.h (lang_type_promotes_to): Remove.
15983 objc:
15984         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
15985
15986 2002-04-18  Richard Henderson  <rth@redhat.com>
15987
15988         * function.c: Revert patch for c/6358.
15989
15990 2002-04-18  Richard Henderson  <rth@redhat.com>
15991
15992         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
15993         blocks.  Handle multiple references to the TRAP block.  Handle
15994         non-adjacent THEN and OTHER blocks.
15995
15996 2002-04-18  Richard Henderson  <rth@redhat.com>
15997
15998         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
15999         crash with no type for by-mode libcalls.
16000
16001         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
16002
16003 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
16004
16005         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
16006         __xtensa_nonlocal_goto): Use a syscall instructions to flush
16007         the register windows.
16008
16009 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
16010
16011         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
16012         appropriate.  Document need for extended precision even when
16013         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
16014         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
16015         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
16016         instead of relying on later syntax error when REAL_WIDTH > 5.
16017         * real.c: Define NE based only on whether or not we have a
16018         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
16019         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
16020         define GET_REAL and PUT_REAL as simple memcpy operations; no
16021         need to byteswap or round.
16022         Use #error instead of #ifdef-ing out the entire file, for
16023         prompt error detection.
16024
16025         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
16026
16027 2002-04-18  David S. Miller  <davem@redhat.com>
16028
16029         * config/sparc/sparc.h (BRANCH_COST): Define.
16030
16031         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
16032         does it.
16033
16034 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
16035
16036         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
16037         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
16038         propagate_block calls after relaxation loop using new variable
16039         stabilized_prop_flags.
16040
16041 2002-04-18  Richard Henderson  <rth@redhat.com>
16042
16043         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
16044         (ia64_va_arg): Expect variable sized types by reference.
16045         * config/ia64/ia64-protos.h: Update.
16046         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
16047         ia64_function_arg_pass_by_reference.
16048
16049 2002-04-18  Richard Henderson  <rth@redhat.com>
16050
16051         * ifcvt.c: Include except.h.
16052         (block_has_only_trap): Break out from find_cond_trap.
16053         (find_cond_trap): Use it.  Always delete the trap block.
16054         (merge_if_block): Allow then block null.  Be less simplistic about
16055         what insns can end a block.
16056         * Makefile.in (ifcvt.o): Depend on except.h.
16057
16058         * config/ia64/ia64.md (trap, conditional_trap): New.
16059
16060 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
16061
16062         PR c/6358
16063         * function.c (assign_parms): Assign hard current_function_return_rtx
16064         register here...
16065         (expand_function_end): ...not here.
16066
16067 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
16068
16069         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
16070         * c-tree.h (c_incomplete_type_error): New.
16071         * c-typeck.c (require_complete_type, build_component_ref): Update.
16072         (incomplete_type_error): Rename.
16073         * langhooks-def.h (lhd_incomplete_type_error): New.
16074         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
16075         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
16076         * langhooks.c (lhd_incomplete_type_error): New.
16077         * langhooks.h (struct lang_hooks_for_types): New hook.
16078         * tree.c (size_in_bytes): Use new hook.
16079         * tree.h (incomplete_type_error): Remove.
16080 objc:
16081         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
16082
16083 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
16084
16085         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
16086         TARGET_FLOAT_FORMAT blocks.
16087
16088 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16089
16090         * doc/install.texi (Downloading the source): Do not mention Chill
16091         any longer, but mention Ada.
16092         (Configuration): Do not mention Chill any longer.
16093
16094 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
16095
16096         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
16097
16098 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
16099
16100         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
16101         in last patch.
16102
16103 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
16104
16105         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
16106         instead of unsigned_type.
16107
16108 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
16109
16110         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
16111         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
16112         later.
16113
16114 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
16115
16116         * attribs.c (vector_type_node_list): New static variable.
16117         (handle_vector_size_attribute): Use it to avoid generating a
16118         new type node each time we are called.
16119
16120         * combine.c (subst): Avoid trying to make a vector mode subreg of
16121         an integer constant.
16122         (gen_lowpart_for_combine): Likewise.
16123
16124 2002-04-18  Roger Sayle  <roger@eyesopen.com>
16125             Jakub Jelinek  <jakub@redhat.com>
16126
16127         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
16128         for integer constant c (if x has unsigned type or sign bit is not
16129         set in c).  This folds the zero/sign extension into the bit-wise and
16130         operation.
16131
16132 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
16133
16134         PR middle-end/6205
16135         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
16136         otherwise xorps.
16137
16138 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
16139
16140         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
16141
16142 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
16143
16144         * gcc.c (read_specs): Detect and fail if an attempt is made to
16145         rename a spec string to an already existing string.
16146
16147 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
16148
16149         * config/s390/s390.c (legitimize_pic_address): Do not generate
16150         illegal address constant without CONST.
16151
16152 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16153
16154         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
16155         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16156
16157 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
16158
16159         PR optimization/6305
16160         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
16161         to make sure previous reloads are taken into account.  Generate
16162         better code if one operand is an in-range immediate constant.
16163
16164 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
16165
16166         * doc/install.texi (Building): libgcj requires GNU make.
16167
16168 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
16169
16170         PR bootstrap/6315
16171         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
16172         even if hard quad and register is not floating.
16173         (movtf reg<-mem split): Disallow splitting if hard quad and
16174         register is floating.
16175         (movtf mem<-reg split): Likewise.
16176         * config/sparc/sparc.c (fp_register_operand): New predicate.
16177         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
16178
16179 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
16180
16181         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
16182         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
16183         (unprotoize.o): Ditto.  Build from protoize.c.  Define
16184         UNPROTOIZE on command line.
16185         * protoize.c: Include cppdefault.h.  Delete include_defaults.
16186         (in_system_include_dir): Use cpp_include_defaults (defined in
16187         cppdefault.o).
16188         * unprotoize.c: Delete file.
16189
16190 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
16191
16192         * config/rs6000/altivec.h (vec_ld): Add array variants.
16193         (vec_lde): Same.
16194         (vec_ldl): Same.
16195
16196 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
16197             Aldy Hernandez <aldyh@redhat.com>
16198
16199         * config/rs6000/altivec.h: Define __ALTIVEC__.
16200         (bool): New.
16201         (__pixel): New.
16202         (pixel): New.
16203         (vec_cfux): New.
16204         (vec_vmaddfp): New.
16205         (vec_vsldoi): New.
16206         Add parentheses to all macro arguments.
16207
16208 2002-04-16  Richard Henderson  <rth@redhat.com>
16209
16210         PR c++/6320
16211         * except.c (remove_eh_handler): Insert inner regions at beginning
16212         of sibling chain.  Refactor expressions.
16213
16214 2002-04-16  Richard Henderson  <rth@redhat.com>
16215
16216         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
16217         * config/sparc/sol2-gas-bi.h: New file.
16218         * config.gcc (sparc*-solaris): Add it as needed.
16219         * configure.in (AS_SPARC64_FLAG): Remove check.
16220         * config.in, configure: Regenerate.
16221
16222         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
16223
16224 2002-04-16  Richard Henderson  <rth@redhat.com>
16225
16226         * config/mips/mips.c (override_options): Don't override N32 for
16227         a 64-bit ISA.
16228
16229         PR 6202
16230         * config/mips/mips.md (can_delay): Split out of existing define_delays.
16231         (HILO_delay): Set can_delay false.
16232
16233 2002-04-16  Dale Johannesen <dalej@apple.com>
16234
16235         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
16236         instruction addresses.
16237         (rs6000_output_function_epilogue): Likewise.
16238
16239 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
16240
16241         * c-parse.in (poplevel, compstmt_start,
16242         compstmt_primary_start): Add ending ';', in accordance
16243         with POSIX.
16244
16245 2002-04-16  Richard Henderson  <rth@redhat.com>
16246
16247         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
16248         Adjust tm_file order to get TARGET_DEFAULT set properly.
16249         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
16250         * doc/install.texi (sparc-solaris): Update.
16251
16252 2002-04-16  Dale Johannesen <dalej@apple.com>
16253
16254         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
16255         comparison operands do not match each other or if modes of
16256         conditions do not match result.
16257
16258 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
16259
16260         PR target/6305
16261         * config/s390/s390.md (mulsidi3): Set both subregs of the
16262         multiword register.
16263
16264 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
16265
16266         * config/rs6000/altivec.h (vec_addc): Type check.
16267
16268 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
16269
16270         PR middle-end/6279
16271         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
16272
16273         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
16274
16275 2002-04-15  Richard Henderson  <rth@redhat.com>
16276
16277         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
16278         call_really_used_regs too.
16279
16280 2002-04-15  Richard Henderson  <rth@redhat.com>
16281
16282         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
16283
16284 2002-04-15  David S. Miller  <davem@redhat.com>
16285
16286         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
16287         as being CLOBBERed.
16288
16289 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
16290
16291         PR c/6290
16292         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
16293         CONST_VECTOR is { 0, ... 0 }.
16294
16295 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
16296
16297         * doc/install.texi (Installing GCC: Configuration): Clarify
16298         the only supported ways to configure gcc.
16299
16300 2002-04-15  Roland McGrath  <roland@frob.com>
16301
16302         * config.gcc (alpha*-*-gnu*): New target configuration.
16303         * config/alpha/gnu.h: New file for it.
16304         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
16305
16306 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
16307
16308         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
16309         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
16310         * tree.h (expand_start_stmt_expr): Update prototype.
16311         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
16312         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
16313         on the STMT_EXPR created for the inline function.
16314
16315 2002-04-15  Richard Henderson  <rth@redhat.com>
16316
16317         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
16318         config/i386/linux-aout.h, config/i386/linux-oldld.h,
16319         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
16320         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
16321         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
16322         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
16323         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
16324         Define __gnu_linux__, not gnu_linux.
16325         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
16326
16327 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
16328
16329         Remove Chill front end.
16330         * gcc.c (default_compilers): Remove Chill entries.
16331         * ch: Remove directory.
16332         * doc/frontends.texi: Remove information about Chill.
16333         * doc/sourcebuild.texi: Likewise.
16334         * doc/standards.texi: Likewise.
16335
16336 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
16337
16338         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
16339         (LONGLONG_STANDALONE): Define.
16340
16341 2002-04-15  David S. Miller  <davem@redhat.com>
16342
16343         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
16344         Call emit_library_call with LCT_NORMAL.
16345         (sparc_initialize_trampoline): Use LCT_foo instead of
16346         magic constant in emit_library_call invocations.
16347         (sparc64_initialize_trampoline): Likewise.
16348         (sparc_profile_hook): Likewise.
16349         * config/sparc/sparc.md: Likewise.
16350
16351         * config/sparc/sparc.c (sparc_extra_constraint_check):
16352         Fix type of argument 'c'.
16353         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
16354         Likewise.
16355
16356 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
16357
16358         * diagnostic.h (output_buffer_state): Redefine.
16359         (output_format_decoder): New macro.
16360         (output_prefixing_rule): Likewise.
16361         (output_line_cutoff): Likewise.
16362         (diagnostic_format_decoder): Adjust.
16363         (diagnostic_prefixing_rule): Likewise.
16364         (diagnostic_line_cutoff): Likewise.
16365         (diagnostic_state): Likewise.
16366         (diagnostic_kind_count): Likewise.
16367         (diagnostic_buffer): Now a macro.
16368
16369         * diagnostic.c (diagnostic_buffer): Remove definition.
16370         (output_is_line_wrapping): Adjust.
16371         (set_real_maximum_length): Likewise.
16372         (output_set_maximum_length): Likewise.
16373         (init_output_buffer): Likewise.
16374         (lhd_print_error_function): Likewise.
16375         (output_do_verbatim): Likewise.
16376
16377 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
16378
16379         * cpperror.c (print_location): Don't print include chain
16380         if line == 0.
16381         (cpp_begin_message): Update to use DL_ macros.
16382         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
16383         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
16384         cpp_notice, cpp_notice_from_errno): Remove.
16385         (cpp_error, cpp_error_with_line): Update to take a diagnostic
16386         level.
16387         (cpp_errno): New.
16388         * cppexp.c (CPP_ICE): Remove.
16389         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
16390         lex, integer_overflow, _cpp_parse_expr): Update.
16391         * cppfiles.c (read_include_file, find_include_file,
16392         handle_missing_header, _cpp_read_file, remap_filename): Update.
16393         * cpphash.h (enum error_type): Remove.
16394         (_cpp_begin_message): Update.
16395         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
16396         cpp_handle_option, cpp_post_options): Update.
16397         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
16398         skip_whitespace, parse_identifier, parse_slow, parse_string,
16399         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
16400         cpp_interpret_charconst): Update.
16401         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
16402         lex_macro_node, do_undef, glue_header_name, parse_include,
16403         do_include_common, read_flag, do_line, do_linemarker, do_ident,
16404         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
16405         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
16406         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
16407         _cpp_pop_buffer, do_diagnostic): Update.
16408         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
16409         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
16410         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
16411         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
16412         cpp_notice, cpp_notice_from_errno): Remove.
16413         (cpp_error, cpp_error_with_line): Update to take a diagnostic
16414         level.
16415         (cpp_errno): New.
16416         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
16417         collect_args, enter_macro_context, save_parameter, parse_params,
16418         _cpp_create_definition, check_trad_stringification,
16419         cpp_macro_definition): Update.
16420         * cppmain.c (cpp_preprocess_file): Update.
16421         * fix-header.c (read_scan_file): Update.
16422
16423 2002-04-14  Andreas Schwab  <schwab@suse.de>
16424
16425         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
16426
16427 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
16428
16429         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
16430
16431 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
16432
16433         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
16434         not gnu_hurd.
16435
16436 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
16437
16438         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
16439
16440 2002-04-13      Joel Sherrill <joel@OARcorp.com>
16441
16442         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
16443         sparc-elf and sparc-rtems targets.
16444
16445 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
16446
16447         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
16448         defined, and __gnu_hurd__ wherever __GNU__ is defined.
16449         * arm/linux-elf.h: Likewise.
16450         * cris/aout.h: Likewise.
16451         * cris/linux.h: Likewise.
16452         * i370/linux.h: Likewise.
16453         * i386/gnu.h: Likewise.
16454         * i386/linux-aout.h: Likewise.
16455         * i386/linux-oldld.h: Likewise.
16456         * i386/linux.h: Likewise.
16457         * i386/linux64.h: Likewise.
16458         * ia64/linux.h: Likewise.
16459         * m68k/linux-aout.h: Likewise.
16460         * m68k/linux.h: Likewise.
16461         * mips/linux.h: Likewise.
16462         * pa/pa-linux.h: Likewise.
16463         * pj/linux.h: Likewise.
16464         * rs6000/sysv4.h: Likewise.
16465         * s390/linux.h: Likewise.
16466         * sh/linux.h: Likewise.
16467         * sparc/linux-aout.h: Likewise.
16468         * sparc/linux.h: Likewise.
16469         * sparc/linux64.h: Likewise.
16470         * xtensa/linux.h: Likewise.
16471
16472 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
16473
16474         * stmt.c (check_unique_operand_names): Expect operand names to
16475         be strings rather than identifiers.  Use simple_cst_equal to
16476         compare them.
16477         (resolve_operand_name_1): Make same identifier to string change here.
16478         * c-parse.in (asm_operand): Convert a named operand into a string.
16479         * cp/parse.y (asm_operand): Likewise.
16480
16481 2002-04-13  Andreas Schwab  <schwab@suse.de>
16482
16483         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
16484
16485 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
16486
16487         Revert these changes:
16488
16489         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
16490
16491         PR c++/5571
16492         * stor-layout.c (layout_decl): Reset the RTL for the decl.
16493
16494 2002-04-12  Richard Henderson  <rth@redhat.com>
16495
16496         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
16497         (sparc*-*-solaris): Clean up header files.
16498         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
16499         and plan on generating 64-bit code.
16500         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
16501         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
16502         * config/sparc/sol2-sld-64.h: Rename ...
16503         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
16504         for AS_SPARC64_FLAG not defined.
16505         * config/sparc/sol2-gld-bi.h: New.
16506         * config/sparc/sol2-sld.h: Remove.
16507         * config/sparc/sol26-sld.h: New.
16508         * config/sparc/sol2.h: Tidy comments.
16509         * doc/install.texi: Document sparc-solaris configury changes.
16510
16511 2002-04-12  Richard Henderson  <rth@redhat.com>
16512
16513         * recog.c (offsettable_address_p): Match the logic in adjust_address.
16514
16515         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
16516         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
16517
16518 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16519
16520         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
16521
16522 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
16523
16524         * pa.c (pa_can_combine_p): Call extract_insn before calling
16525         constrain_operands.
16526
16527 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
16528
16529         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
16530         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
16531         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
16532         (CPP_PREDEFINES): Handle __declspec.
16533         * config/i386/t-interix (USER_H): Remove.
16534
16535 2002-04-12  DJ Delorie  <dj@redhat.com>
16536
16537         * integrate.c (compare_blocks): Make comparisons safe for when
16538         sizeof(int) < sizeof(char *).
16539         (find_block): Likewise.
16540
16541 2002-04-12  Jan Hubicka  <jh@suse.cz>
16542             David Edelsohn  <edelsohn@gnu.org>
16543
16544         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
16545         registers.
16546         (symbol_ref_operand): New.
16547         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
16548         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
16549
16550 2002-04-12  Andreas Schwab  <schwab@suse.de>
16551
16552         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
16553         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
16554         overrides the definition in config/svr4.h.
16555
16556 2002-04-12      Eric Norum <eric.norum@usask.ca>
16557
16558         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
16559         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
16560         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
16561         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
16562         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
16563         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
16564         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
16565         definitions to config/rtems.h and make the targets more similar.
16566
16567 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16568
16569         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
16570         POINTERS_EXTEND_UNSIGNED.
16571         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
16572         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
16573
16574         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
16575         not specified.
16576
16577 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
16578
16579         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
16580         depends on TARGET_SHMEDIA, not TARGET_SH5.
16581
16582 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
16583
16584         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
16585         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
16586
16587 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
16588
16589         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
16590         no r0 clobber.
16591
16592 2002-04-12  Andreas Schwab  <schwab@suse.de>
16593
16594         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
16595
16596 2002-04-12  Richard Henderson  <rth@redhat.com>
16597
16598         PR bootstrap/4191
16599         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
16600
16601         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
16602         modes spanning multiple hard regs.
16603
16604         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
16605
16606 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16607
16608         * pa.c (pa_output_function_prologue): Don't accumulate the total
16609         number of code bytes when using TARGET_64BIT, or gas, SOM and not
16610         the portable runtime.
16611         (output_deferred_plabels): Handle 64bit plabels.
16612         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
16613         generating pic code using the GAS assembler for object formats that
16614         are not SOM (ie., ELF32 and ELF64).
16615         (output_millicode_call): Check attribute type if attribute length is 28.
16616         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
16617         dbr_sequence_length once.
16618         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
16619         dbr_sequence_length once.
16620         * pa.h (TARGET_SOM): Define if not defined.
16621         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
16622         with GAS and not SOM.
16623         (jump, call_internal_reg, call_value_internal_reg): Likewise.
16624         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
16625
16626 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
16627
16628         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
16629         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
16630         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
16631         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
16632         elfos.h and dbxelf.h values are fine now.
16633         * config/i386/freebsd.h, config/alpha/freebsd.h
16634         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
16635
16636 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
16637
16638         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
16639         or set Acpu or Amachine.  Reformat.
16640         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
16641         define.
16642         (LINK_SPEC): Do not need to undef.
16643         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
16644         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
16645         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
16646         define.
16647         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
16648         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
16649         (LINK_SPEC): Do not need to undef.
16650         (DONT_USE_BUILTIN_SETJMP): Do not define.
16651         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
16652         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
16653         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
16654         Remove trailing spaces.
16655         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
16656         __ELF__, or set Acpu or Amachine.  Reformat.
16657         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
16658         define.
16659
16660 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
16661
16662         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
16663         all other *-*-freebsd* targets.
16664
16665 2002-04-11  Richard Henderson  <rth@redhat.com>
16666
16667         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
16668
16669 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
16670
16671         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
16672         Include {cpu}/{cpu}.h thru tm_file.
16673         (alpha*-*-linux*ecoff): Remove target.
16674         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
16675         (LINK_SPEC): Remove, is not OS independent.
16676         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
16677         (LINK_SPEC): Do not need to #undef any longer.
16678         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
16679         any longer.
16680         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
16681         __ELF__.
16682         (LINK_SPEC): Moved here from alpha/elf.h.
16683         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
16684         SUB_CPP_PREDEFINES.
16685         * config/alpha/linux-ecoff.h: Remove.
16686         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
16687         (CPP_SPEC): Define _POSIX_SOURCE as needed.
16688         (CPP_SUBTARGET_SPEC): Do not define.
16689         (LINK_SPEC): Do not need to #undef any longer.
16690         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
16691         * config/alpha/vms.h: Likewise.
16692
16693 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
16694
16695         * doc/extend.texi: Remove old claim that typedefs cannot have
16696         an alignment attribute.
16697
16698 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
16699
16700         PR optimization/6177
16701         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
16702         bitpos is 0 and bitsize CONCAT size.
16703
16704 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
16705
16706         PR c/6223
16707         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
16708
16709 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
16710
16711         * config/alpha/freebsd.h: Minor reformatting.
16712         (CPP_SPEC): Define ELF and add cpp_subtarget.
16713         (ASM_SPEC): No longer needed.
16714
16715 2002-04-11  Richard Henderson  <rth@redhat.com>
16716
16717         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
16718         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
16719         (dimode mem/zero splitter): New.
16720
16721 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
16722
16723         * config/cris/cris.c (cris_override_options): Tweak error message
16724         for PIC not implemented.
16725
16726         * config/cris/cris.h: Tweak comments related to parameter-passing.
16727
16728         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
16729
16730 2002-04-10  Richard Henderson  <rth@redhat.com>
16731
16732         * except.c (add_ehl_entry): Allow duplicates after landing pad
16733         creation.
16734
16735 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
16736
16737         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
16738
16739 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
16740
16741         * c-decl.c (c_init_decl_processing): Move generation of
16742         decls for g77_integer_type_node and friends from here ...
16743         * c-common.c (c_common_nodes_and_builtins): ... to here.
16744
16745 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
16746
16747         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
16748         is only used as frame pointer when frame_pointer_needed is true.
16749
16750 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
16751
16752         PR target/817
16753         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
16754         for the fact that the pool entry uses two words.
16755         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
16756         1k bytes.
16757         (movdf_soft_insn): Similarly.
16758         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
16759         for the fact that the pool entry uses three words.
16760
16761 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
16762
16763         * config/mips/mips.c (mips_va_arg): When using the struct version
16764         of the EABI va_list, allow arguments in the register save area to
16765         take up less room than a stack argument.
16766
16767 2002-04-10  Richard Henderson  <rth@redhat.com>
16768
16769         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
16770         if EXPAND_INITIALIZER.
16771
16772 2002-04-09  Richard Henderson  <rth@redhat.com>
16773
16774         * config/alpha/alpha.md (movdi_er_maybe_g): New.
16775         * config/alpha/alpha.c (alpha_expand_mov): Use it.
16776
16777 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
16778
16779         PR optimization/6233
16780         * rtlanal.c (pure_call_p): New function.
16781         * rtl.h (pure_call_p): Declare.
16782         * loop.c (prescan_loop): Use it to set has_nonconst_call.
16783         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
16784
16785 2002-04-09  Eric Christopher  <echristo@redhat.com>
16786
16787         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
16788         information to .comm directive.
16789
16790 2002-04-09  Richard Henderson  <rth@redhat.com>
16791
16792         PR c/5078
16793         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
16794
16795 2002-04-09  Richard Henderson  <rth@redhat.com>
16796
16797         * basic-block.h (flow_delete_block_noexpunge): Declare.
16798         (expunge_block_nocompact): Declare.
16799         * cfg.c (expunge_block_nocompact): Split out from ...
16800         (expunge_block): ... here.
16801         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
16802         (flow_delete_block_noexpunge): Split out from ...
16803         (flow_delete_block): ... here.
16804         * cfgcleanup.c (delete_unreachable_blocks): Compact while
16805         removing dead blocks.
16806         * except.c (exception_handler_labels): Remove.
16807         (exception_handler_label_map): New.
16808         (struct eh_region): Add aka member.
16809         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
16810         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
16811         (for_each_eh_label, for_each_eh_label_1): New.
16812         (init_eh): Register exception_handler_label_map.
16813         (free_eh_status): Use free_region.
16814         (find_exception_handler_labels): Use the map, not the list.
16815         (remove_exception_handler_label): Likewise.
16816         (maybe_remove_eh_handler): Likewise.
16817         (remove_eh_handler): Use the region aka bitmap.
16818         * except.h (exception_handler_labels): Remove.
16819         (for_each_eh_label): Declare.
16820         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
16821         * loop.c (invalidate_loops_containing_label): New.
16822         (find_and_verify_loops): Use it.  Use for_each_eh_label.
16823         * sched-rgn.c (is_cfg_nonregular): Use
16824         current_function_has_exception_handlers.
16825
16826 2002-04-09  Richard Henderson  <rth@redhat.com>
16827
16828         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
16829         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
16830         Do not return changed status.
16831         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
16832         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
16833         New functions that do return changed status.
16834         * sbitmap.h: Update decls.
16835         * gcse.c, lcm.c: Use _cg functions as needed.
16836
16837 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
16838
16839         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
16840         (sh64-*-elf*, sh-*-rtemself*): Likewise.
16841         * config/sh/embed_bb.c: New file.
16842         * config/sh/embed-elf.h: New file.
16843         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
16844         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
16845         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
16846         __PTRDIFF_TYPE__ .
16847         (SUBTARGET_CPP_PTR_SPEC): Don't define.
16848         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
16849         Add subtarget_asm_endian_spec.
16850         (ASM_SPEC): Use subtarget_asm_endian_spec.
16851         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
16852         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
16853         (WCHAR_UNSIGNED): Define.
16854         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
16855         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
16856         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
16857         Fix value.
16858         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
16859         (sh_adjust_cost): Likewise.
16860         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
16861         __PTRDIFF_TYPE__ .
16862         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
16863         (WCHAR_TYPE_SIZE): Likewise.
16864         (ASM_SPEC): Use subtarget_asm_endian_spec.
16865         (SH_ELF_WCHAR_TYPE): #undef/ #define.
16866         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
16867         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
16868         (MAX_WCHAR_TYPE_SIZE): Don't #define .
16869         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
16870         (USER_LABEL_PREFIX): Don't #undef /#define .
16871         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
16872         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
16873         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
16874         (ASM_SPEC): Likewise.
16875         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
16876         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
16877         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
16878         (LIB2FUNCS_EXTRA): Define.
16879         * t-sh64 (LIB2FUNCS_EXTRA): Define.
16880         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
16881         (LIB1ASMFUNCS_CACHE): Define.
16882         (LIB2FUNCS_EXTRA): Redefine empty.
16883
16884 2002-04-08  Richard Henderson  <rth@redhat.com>
16885
16886         * reorg.c (get_branch_condition): Use reversed_comparison_code.
16887
16888 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16889
16890         * config/m68hc11/larith.asm (__map_data_section): Fix condition
16891         and optimize for size.
16892         (__do_global_ctors): Fix pointer comparison.
16893         (__do_global_dtors): Likewise.
16894
16895 2002-04-09  David S. Miller  <davem@redhat.com>
16896
16897         * config/sparc/sparc.c (sparc_extra_constraint_check): New
16898         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
16899         allow reloading pseudos.
16900         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
16901         * config/sparc/sparc-protos.h: Declare it.
16902
16903         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
16904         unsigned comparison warning.
16905         (output_restore_regs): Mark leaf_function as unused.
16906
16907 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16908
16909         * expr.c (is_aligning_offset): New function.
16910         (expand_expr, case COMPONENT_EXPR): Call it.
16911
16912 2002-04-08  David S. Miller  <davem@redhat.com>
16913
16914         PR target/6082
16915         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
16916
16917         Make init_priority work on Sparc when using GNU ld.
16918         * config/sparc/linux.h, config/sparc/linux64.h,
16919         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
16920         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
16921         * config/sparc/sol2-gld.h: New file to do the same.
16922         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
16923         sparc/sol2-gld.h to tm_file.
16924
16925         PR optimization/4328
16926         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
16927         * doc/md.texi: Document it.
16928         * config/sparc/sparc.md (movdi_insn_sp64_novis,
16929         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
16930         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
16931         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
16932         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
16933
16934 2002-04-08  Andreas Jaeger  <aj@suse.de>
16935
16936         * stmt.c (expand_asm_operands): Revert last patch from Richard
16937         Henderson.
16938
16939 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16940
16941         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
16942         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
16943
16944 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16945
16946         * doc/contrib.texi (Contributors): Add David O'Brien.
16947
16948 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
16949
16950         * configure.in (auto-build.h): Use target_alias and build_alias
16951         when running configure.
16952         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
16953         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
16954         * configure: Regenerate.
16955
16956 2002-04-07  David S. Miller  <davem@redhat.com>
16957
16958         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
16959
16960 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16961
16962         PR 5933
16963         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
16964         generating 32-bit pic code.
16965
16966 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
16967
16968         * cppinit.c (cpp_create_reader): Initialize
16969         discard_comments_in_macro_exp.
16970         (COMMAND_LINE_OPTIONS): Add "-CC" option.
16971         (cpp_handle_option): Handle "-CC" option.
16972         * cpplex.c (save_comment): If saving a C++ comment in
16973         a directive, convert it to a C comment.
16974         (_cpp_lex_direct): Pass second comment start character to
16975         save_comment to indicate comment type.
16976         * cpplib.c (_cpp_handle_directive): If processing
16977         a "#define" directive and discard_comments_in_macro_exp
16978         is false,  re-enable saving of comments.
16979         (lex_macro_node): If discard_comments_in_macro_exp is false,
16980         discard any comments before the macro identifier.
16981         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
16982         member.
16983         * cppmacro.c (cpp_get_token): If expanding a macro while
16984         processing a directive, discard any comments we might encounter.
16985         (parse_params): If discard_comments_in_macro_exp is false,
16986         ignore comments in the macro parameter list.
16987         * gcc.c (cpp_unique_options): Add "-CC" option.
16988         (option_map): Map "--comments-in-macros" to "-CC".
16989         * doc/cppopts.texi: Document "-CC" option.
16990         * f/lang-specs.h: Add "-CC" option.
16991         * testsuite/gcc.dg/cpp/maccom1.c: New test.
16992         * testsuite/gcc.dg/cpp/maccom2.c: New test.
16993         * testsuite/gcc.dg/cpp/maccom3.c: New test.
16994         * testsuite/gcc.dg/cpp/maccom4.c: New test.
16995         * testsuite/gcc.dg/cpp/maccom5.c: New test.
16996         * testsuite/gcc.dg/cpp/maccom6.c: New test.
16997
16998 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16999
17000         PR middle-end/6180
17001         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
17002
17003 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
17004
17005         PR c++/5571
17006         * stor-layout.c (layout_decl): Reset the RTL for the decl.
17007
17008         PR opt/5120
17009         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
17010         RTX_UNCHANGING_P for the functions arguments when a tail call
17011         is made.
17012
17013 2002-04-06  Jason Merrill  <jason@redhat.com>
17014
17015         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
17016         (parse_options_and_default_flags): Set them appropriately.
17017         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
17018
17019 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
17020
17021         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
17022         here.
17023
17024         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
17025         semicolon.
17026
17027         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
17028         types come in by-reference.  Fix typo in comment.
17029
17030 2002-04-05  David S. Miller  <davem@redhat.com>
17031
17032         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
17033         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
17034         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
17035         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
17036
17037 2002-04-05  David S. Miller  <davem@redhat.com>
17038
17039         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
17040         are not going to emit return instructions, emit at least a nop
17041         for the sake of sane backtraces.
17042
17043 2002-04-05  Richard Henderson  <rth@redhat.com>
17044
17045         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
17046
17047 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
17048
17049         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
17050
17051 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
17052
17053         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
17054         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
17055         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
17056
17057 2002-04-05  Andreas Schwab  <schwab@suse.de>
17058
17059         * c-convert.c: Include c-common.h.
17060         * Makefile.in (c-convert.o): Updated.
17061
17062 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
17063
17064         * mklibgcc.in: Use separate libgcc.map for each multilib.
17065         * Makefile.in (distclean): Don't remove libgcc.map here.
17066
17067 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
17068
17069         * Makefile.in (s-mlib): Handle --disable-multilib by separate
17070         genmultilib invocation.
17071
17072 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
17073
17074         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
17075         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
17076         to num_gprs for symmetry.
17077         * config/mips/mips.c: Adjust accordingly.
17078
17079 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
17080
17081         * c-common.c (truthvalue_conversion): Rename, update.
17082         * c-common.h (c_common_truthvalue_conversion): New.
17083         * c-convert.c (convert): Update.
17084         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
17085         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
17086         * c-typeck.c (build_binary_op, build_unary_op,
17087         build_conditional_expr): Update.
17088         * fold-const.c (constant_boolean_node, fold): Use langhook.
17089         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
17090         * langhooks.h (struct lang_hooks): New hook.
17091         * stmt.c (expand_decl_cleanup): Use langhook.
17092         * tree.h (truthvalue_conversion): Remove.
17093 objc:
17094         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
17095
17096 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
17097
17098         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
17099         Add rules to make null object file.
17100
17101 2002-04-04  Jim Blandy  <jimb@redhat.com>
17102
17103         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
17104         macro formal parameter names.
17105
17106 2002-04-04  David S. Miller  <davem@redhat.com>
17107
17108         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
17109
17110 2002-04-04  Richard Henderson  <rth@redhat.com>
17111
17112         PR middle-end/5099
17113         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
17114         Support copies into and out of memory.  Don't accept allows_reg
17115         and allows_mem as gospel.
17116
17117 2002-04-04  Richard Henderson  <rth@redhat.com>
17118
17119         PR opt/6165
17120         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
17121         (write_dependence_p): Likewise.
17122
17123 2002-04-04  Richard Henderson  <rth@redhat.com>
17124
17125         * predict.c (estimate_bb_frequencies): Do frequency calculation
17126         with a volatile temporary.
17127
17128 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
17129
17130         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
17131
17132 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
17133
17134         PR c++/6119
17135         * final.c (final_start_function): Don't bump profile_label_no here...
17136         (final_end_function): ...but here.
17137
17138 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
17139
17140         * config/sparc/sparc.md (pic): New attribute.
17141         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
17142         into stack slots.
17143         (split after do_builtin_setjmp_setup): New.
17144
17145 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
17146
17147         PR fortran/6106
17148         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
17149         change.
17150
17151 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
17152
17153         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
17154         UNITS_PER_WORD for zero sized aggregates.
17155
17156 2002-04-03  David S. Miller  <davem@redhat.com>
17157
17158         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
17159         one-character spec for this, just use %(link_gcc_c_sequence).
17160
17161 2002-04-03  David S. Miller  <davem@redhat.com>
17162
17163         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
17164         handling.
17165
17166 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17167
17168         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
17169         (DWARF_FRAME_RETURN_COLUMN): Move.
17170         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
17171         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
17172         * pa.c (except.h, predict.h): Include.
17173         (FRP): Delete.
17174         (store_reg_modify, set_reg_plus_d): Revise prototypes.
17175         (output_ascii): Add cast.
17176         (store_reg_modify): Revise to add frame notes.
17177         (set_reg_plus_d): Likewise.
17178         (compute_frame_size): Include space for eh data registers in frame if
17179         the current function calls eh_return.
17180         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
17181         function calls eh_return.  Save eh data registers if the current
17182         function calls eh_return.  Fix code to add frame notes.  Emit
17183         blockage to prevent insns with frame notes being scheduled in the
17184         delay slot of calls.
17185         (hppa_expand_epilogue): Restore eh data registers and do final stack
17186         adjustment if the current function calls eh_return.  Don't add frame
17187         notes.
17188         (output_call): Revise for change in length of call insn.  Don't do
17189         return pointer adjustment for an unconditional jump in the delay slot
17190         of a call when using frame notes.
17191         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
17192         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
17193         (ARG_POINTER_CFA_OFFSET): Define.
17194         * pa.md (return_external_pic): New pattern.
17195         (prologue): Correct formatting.  Use return_external_pic if current
17196         function calls eh_return.
17197         (call_internal_symref, call_value_internal_symref,
17198         sibcall_internal_symref, sibcall_value_internal_symref): Change default
17199         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
17200         respectively.
17201         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
17202
17203         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
17204         list of targets to check using "nop" insn.
17205         * configure: Rebuilt.
17206
17207 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
17208
17209         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
17210
17211 2002-04-03  David S. Miller  <davem@redhat.com>
17212
17213         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
17214         library sequence passed to the linker.
17215         (LINK_COMMAND_SPEC): Use it.
17216         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
17217         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
17218         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
17219
17220 2002-04-03  Jason Merrill  <jason@redhat.com>
17221
17222         * except.c (struct eh_status): Remove protect_list.
17223         (begin_protect_partials, end_protect_partials): Remove.
17224         (add_partial_entry): Remove.
17225         * except.h: Remove prototypes.
17226
17227         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
17228         expand_decl_cleanup_eh.
17229
17230         PR c++/5636
17231         * tree.h (CLEANUP_EH_ONLY): New macro.
17232         * stmt.c (expand_decl_cleanup_eh): New fn.
17233         (expand_cleanups): Check CLEANUP_EH_ONLY.
17234         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
17235         Use expand_decl_cleanup_eh.
17236         (expand_stmt): Adjust.
17237         * c-common.h: Adjust prototype.
17238
17239 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
17240
17241         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
17242         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
17243         (cris_target_asm_function_epilogue): Ditto.
17244         (cris_initial_frame_pointer_offset): Ditto.
17245         (cris_simple_epilogue): Ditto.
17246         (cris_expand_builtin_va_arg): Variable-size types come in
17247         by-reference.
17248
17249 2002-04-03  David S. Miller  <davem@redhat.com>
17250
17251         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
17252         little-endian.
17253         (set_fast_math): Correct 'fsr' type.
17254
17255 2002-04-03  Richard Henderson  <rth@redhat.com>
17256
17257         PR opt/3569
17258         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
17259         * toplev.c (check_global_declarations): Use it.
17260         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
17261         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
17262         (LANG_HOOKS_DECLS): Add it.
17263         * langhooks.c (lhd_warn_unused_global_decl): New.
17264         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
17265         * c-objc-common.c (c_warn_unused_global_decl): New.
17266         * c-tree.h (c_warn_unused_global_decl): Declare.
17267         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
17268
17269 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
17270
17271         * langhooks-def.h (lhd_set_decl_assembler_name,
17272         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
17273         (LANG_HOOKS_INITIALIZER): Update.
17274         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
17275         * langhooks.h (struct lang_hooks): New hook.
17276         * tree.c (set_decl_assembler_name): Move to langhooks.c.
17277         (lang_set_decl_assembler_name): Remove.
17278         (init_obstacks): Don't set hook.
17279         (decl_assembler_name): New function.
17280         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
17281         (decl_assembler_name): New.
17282         (lang_set_decl_assembler_name): Remove.
17283
17284 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
17285
17286         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
17287         works properly with .hidden symbols.
17288         * configure: Rebuilt.
17289         * config.in: Rebuilt.
17290         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
17291         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
17292         properly with .hidden symbols.
17293
17294 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
17295
17296         PR middle-end/6102
17297         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
17298         USE argument.
17299
17300 2002-04-03  Richard Henderson  <rth@redhat.com>
17301
17302         PR opt/4120
17303         * sched-rgn.c (sets_likely_spilled): New.
17304         (sets_likely_spilled_1): New.
17305         (add_branch_dependences): Use it.
17306
17307 2002-04-02  Richard Henderson  <rth@redhat.com>
17308
17309         PR opt/4311
17310         * loop.h (LOOP_FIRST_PASS): New.
17311         * loop.c (strength_reduce): Mind it when deciding to unroll.
17312         * toplev.c (rest_of_compilation): Set it.
17313
17314 2002-04-02  David S. Miller  <davem@redhat.com>
17315
17316         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
17317         mems_ok_for_ldd_peep when the order of the loads being examined
17318         is reversed.
17319         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
17320         existing comment to increase comprehension of this situation.
17321
17322 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
17323
17324         * config/sh/sh.md: Don't use union real_extract.
17325
17326 2002-04-02  Richard Henderson  <rth@redhat.com>
17327
17328         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
17329
17330 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
17331
17332         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
17333         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
17334         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
17335         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
17336         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
17337         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
17338         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
17339         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
17340         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
17341         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
17342         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
17343         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
17344         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
17345         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
17346         Include as many configury headers via tm_file as possible.  This
17347         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
17348         * config/openbsd-oldgas.h: New file.
17349         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
17350         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
17351         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
17352         config/i386/i386-coff.h, config/i386/i386-interix.h,
17353         config/i386/iscdbx.h, config/i386/linux-aout.h,
17354         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
17355         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
17356         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
17357         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
17358         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
17359         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
17360         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
17361         config/i386/vxi386.h: Do not directly include configury headers.
17362         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
17363         Directly include configury headers that are no longer automatically
17364         included by the above headers.
17365         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
17366         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
17367         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
17368         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
17369         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
17370         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
17371         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
17372         (TARGET_VERSION): Define.
17373         * config/i386/beos-elf.h, config/i386/freebsd.h,
17374         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
17375         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
17376         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
17377         config/i386/sco5.h, config/i386/sysv4.h
17378         (TARGET_VERSION): Do not need to protect.
17379         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
17380         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
17381         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
17382         config/i386/i386-interix.h, config/i386/linux-aout.h,
17383         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
17384         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
17385         (YES_UNDERSCORES): Do not define - not needed.
17386         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
17387         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
17388         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
17389         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
17390         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
17391         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
17392         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
17393         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
17394
17395 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
17396             Richard Henderson  <rth@redhat.com>
17397
17398         PR c/5484
17399         * function.c (assign_temp): Accept either type or decl argument.
17400         Detect variables whose size is too large to fit into an integer.
17401         * stmt.c (expand_decl): Pass the decl, not the type.
17402
17403 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
17404
17405         * protoize.c: Match include directory usage with cppdefault.c.
17406
17407 2002-04-03  Jeffrey A Law  (law@redhat.com)
17408             Hans-Peter Nilsson  <hp@bitrange.com>
17409
17410         * combine.c (simplify_comparison): Avoid narrowing a comparison
17411         with a paradoxical subreg when doing so would drop signficant bits.
17412
17413 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
17414
17415         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
17416         if POINTERS_EXTEND_UNSIGNED is defined.
17417
17418 2002-04-02  Richard Henderson  <rth@redhat.com>
17419
17420         PR opt/3967
17421         * local-alloc.c (contains_replace_regs): LO_SUM may contain
17422         replace regs.
17423
17424 2002-04-02  Richard Henderson  <rth@redhat.com>
17425
17426         * doc/standards.texi: Document required freestanding libc entry points.
17427
17428 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
17429
17430         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
17431         associated splitter.  Remove MQ constraint.
17432         (ctrdi_internal4): Correct CCmode clobber.
17433
17434 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17435
17436         * milli64.S ($$dyncall): New function.
17437         * t-linux (LIB1ASMFUNCS): Revise module list.
17438         (LIB1ASMSRC): Use pa/milli64.S.
17439
17440 2002-04-02  Richard Henderson  <rth@redhat.com>
17441
17442         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
17443         rename solaris_sys_varargs_h.
17444
17445 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17446
17447         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
17448         the same mode as its component.
17449
17450 2002-04-02  Richard Henderson  <rth@redhat.com>
17451
17452         PR opt/190
17453         * final.c (this_is_asm_operands): Export.
17454         * output.h (this_is_asm_operands): Declare.
17455         * config/i386/i386.c (print_operand): Error odd asm operands.
17456
17457 2002-04-02  Richard Henderson  <rth@redhat.com>
17458
17459         PR opt/420
17460         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
17461
17462 2002-04-01  Richard Henderson  <rth@redhat.com>
17463
17464         PR target/1538
17465         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
17466         * fixinc/fixincl.x: Rebuild.
17467
17468 2002-04-01  Richard Henderson  <rth@redhat.com>
17469
17470         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
17471         (atomic_alloc, atomic_free): New.
17472         (SIZE, MASK_FOR, PTR_IN): New.
17473         (emergency_reg_state, emergency_reg_state_free): New.
17474         (emergency_labeled_state, emergency_labeled_state_free): New.
17475         (reg_state_alloced, labeled_state_alloced): New.
17476         (alloc_reg_state, free_reg_state): New.
17477         (alloc_label_state, free_label_state, free_label_states): New.
17478         (push, pop, dup_state_stack, free_state_stack): Use them.
17479         (desc_label_state): Likewise.
17480         (uw_frame_state_for): Free label states and state stack.
17481         (uw_update_reg_address): Eliminate warnings.
17482
17483 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
17484
17485         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
17486         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
17487
17488 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
17489
17490         * c-decl.c (grokdeclarator): Update.
17491         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
17492         * c-tree.h (c_mark_addressable): New.
17493         * c-typeck.c (default_function_array_conversion, build_unary_op,
17494         build_array_ref, convert_for_assignment): Update.
17495         (mark_addressable): Rename.
17496         * calls.c (try_to_integrate, expand_call): Use langhook.
17497         * expr.c (expand_expr): Use langhook.
17498         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
17499         * langhooks.h (struct lang_hooks): New hook.
17500         * stmt.c (expand_asm_operands): Use langhook.
17501         * tree.h (mark_addressable): Remove.
17502 objc:
17503         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
17504
17505 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
17506
17507         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
17508         in previous change.
17509
17510 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
17511
17512         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
17513         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
17514
17515 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
17516
17517         * c-common.c (unsigned_conversion_warning, convert_and_check,
17518         unsigned_type, signed_type, shorten_compare,
17519         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
17520         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
17521         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
17522         New.
17523         * c-decl.c (grokdeclarator): Update.
17524         * c-format.c (check_format_types): Update.
17525         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
17526         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
17527         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
17528         * convert.c (convert_to_integer): Use new hooks.
17529         * expmed.c (make_tree): Use new hooks.
17530         * expr.c (store_expr): Use new hooks.
17531         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
17532         all_ones_mask_p, unextend, fold): Use new hooks.
17533         * langhooks.h (struct lang_hooks_for_types): New hooks.
17534         * tree.h (signed_or_unsigned_type, signed_type,
17535         unsigned_type): Remove.
17536 objc:
17537         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
17538         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
17539
17540 2002-03-31  Richard Henderson  <rth@redhat.com>
17541
17542         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
17543         (desc_frgr_mem): Fix reference to f16-f31.
17544
17545 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17546
17547         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
17548         RTVEC_ELT): Const-ify.
17549         * varray.h (VARRAY_CHECK): Const-ify.
17550         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
17551         ggc_mark_rtvec, ggc_mark): Const-ify.
17552
17553 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
17554
17555         * diagnostic.c: Include langhooks-def.h.
17556         * Makefile.in (diagnostic.o): Update.
17557
17558 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
17559
17560         * c-common.c (c_unsafe_for_reeval): Rename.
17561         * c-common.h (c_unsafe_for_reeval): Rename.
17562         * c-decl.c (finish_incomplete_decl): Rename.
17563         (c_init_decl_processing): Don't set langhook.
17564         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
17565         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
17566         * c-objc-common.c (c_objc_common_init): Don't set langhook.
17567         * c-tree.h (finish_incomplete_decl): Rename.
17568         * langhooks-def.h (lhd_unsafe_for_reeval): New.
17569         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
17570         (LANG_HOOKS_INITIALIZER): Update.
17571         * langhooks.c (lhd_unsafe_For_reeval): New.
17572         * langhooks.h (struct langhooks): New hooks.
17573         * toplev.c (incomplete_decl_finalize_hook): Remove.
17574         (wrapup_global_declarations): Update.
17575         * tree.c (lang_unsafe_for_reeval): Remove.
17576         (unsafe_for_reeval): Update.
17577         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
17578         Remove.
17579 objc:
17580         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
17581         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
17582
17583 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
17584
17585         * diagnostic.c (print_error_function): Remove.
17586         (default_print_error_function): Rename.
17587         (report_error_function): Update.
17588         * diagnostic.h (print_error_function): Remove.
17589         (default_print_error_function): Remove.
17590         * langhooks-def.h (struct diagnostic_context): Predeclare.
17591         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
17592         (LANG_HOOKS_INITIALIZER): Update.
17593         * langhooks.h (struct diagnostic context): Predeclare.
17594         (struct lang_hooks): New hook.
17595
17596 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17597
17598         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
17599         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
17600         !flag_pic.
17601         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
17602         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
17603         of PIC_OFFSET_TABLE_REGNUM thruout.
17604         * config/rs6000/rs6000.md: Likewise.
17605         * config/rs6000/darwin.h: Likewise.
17606
17607 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17608
17609         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
17610         unsigned HOST_WIDE_INT, not unsigned int.
17611
17612 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
17613
17614         PR middle-end/6096, middle-end/6098, middle-end/6099
17615         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
17616         CODE_LABELs.
17617         (fill_slots_from_thread): Likewise.
17618
17619 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
17620
17621         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
17622         floating fields in float regs.
17623         (function_arg_record_value_2): Likewise.
17624
17625 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
17626
17627         * config/mmix/mmix.md (define_constants): Remove misleading
17628         FIXME.  Add MMIX_fp_rO_OFFSET.
17629         ("nonlocal_goto_receiver"): Don't have stack-frame address of
17630         saved rO as part of the pattern.  Remove FIXME.
17631         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
17632         here, at output-time.
17633
17634 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
17635
17636         PR middle-end/6100
17637         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
17638         REG_BR_PRED.
17639         (output_v9branch): Likewise.
17640
17641 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
17642
17643         * gcc.c: Revert previous patch for now.
17644         * config/i386/djgpp.h: Likewise.
17645
17646 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
17647
17648         * config/mmix/crti.asm (_init): Register _fini with atexit.
17649         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
17650
17651 2002-03-31  Richard Henderson  <rth@redhat.com>
17652
17653         PR target/3997
17654         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
17655         (ASM_OUTPUT_DEF_FROM_DECLS): New.
17656
17657 2002-03-31  Richard Henderson  <rth@redhat.com>
17658
17659         * libgcc2.c (__bb_exit_func): Make static.
17660
17661         * config/alpha/alpha.md (trap): New.
17662
17663 2002-03-31  Richard Henderson  <rth@redhat.com>
17664
17665         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
17666         promoted argument types; build trap.
17667         (expand_builtin_trap): New.
17668         (expand_builtin): Use it.
17669         * stmt.c (expand_nl_goto_receivers): Likewise.
17670         * expr.h (expand_builtin_trap): Declare.
17671         * libfuncs.h (LTI_abort, abort_libfunc): New.
17672         * optabs.c (init_optabs): Init abort_libfunc.
17673
17674 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
17675
17676         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
17677         (LINK_COMMAND_SPEC): ... from here.
17678         (init_gcc_specs): Duplicate it here too, omitting
17679         shared_name in the second copy.
17680         (init_spec): Test for duplicate
17681         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
17682
17683 2002-03-30  David S. Miller  <davem@redhat.com>
17684
17685         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
17686         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
17687
17688 2002-03-30  Roger Sayle <roger@eyesopen.com>
17689             Richard Henderson  <rth@redhat.com>
17690
17691         * regmove.c (combine_stack_adjustments_for_block): Avoid
17692         emitting a stack adjustment of zero bytes.  Let delete_insn
17693         update bb->head.
17694
17695 2002-03-30  Richard Henderson  <rth@redhat.com>
17696
17697         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
17698         (sparc_emitting_epilogue): New.
17699         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
17700         * config/sparc/sparc-protos.h: Update.
17701         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
17702         (TARGET_SWITCHES): Update.
17703         * config/sparc/sparc.md (return): Remove.
17704         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
17705         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
17706         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
17707         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
17708         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
17709         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
17710         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
17711         Remove MASK_EPILOGUE.
17712         * doc/invoke.texi: Update.
17713
17714 2002-03-30  Daniel Berlin  <dan@dberlin.org>
17715
17716         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
17717         CPP will start the file for us.
17718
17719 2002-03-30  Richard Henderson  <rth@redhat.com>
17720
17721         PR target/5446
17722         * config/ia64/ia64.c (group_barrier_needed_p): Special case
17723         prologue_allocate_stack.
17724         (ia64_single_set): Use insn codes for recognition of special
17725         cases, not rtl matching.
17726         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
17727
17728 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
17729
17730         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
17731
17732 2002-03-30  Richard Henderson  <rth@redhat.com>
17733
17734         PR target/6032
17735         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
17736         or -fomit-frame-pointer with profiling.
17737         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
17738         (FUNCTION_PROFILER): Do nothing.
17739         (PROFILE_HOOK): New.
17740         * config/sparc/sparc.c (sparc_override_options): Don't check
17741         code models for profiling.
17742         (sparc_function_profiler): Remove.
17743         (sparc_profile_hook): New.
17744         * config/sparc/sparc-protos.h: Update.
17745
17746 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
17747
17748         PR optimization/6086
17749         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
17750         of SUBREG of volatile MEM or because the MEM was mode dependent,
17751         return CLOBBER instead of unmodified SUBREG.
17752
17753 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
17754
17755         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
17756         when not optimizing.
17757
17758         * toplev.c (rest_of_compilation): Cann mark_constant_function
17759         only when optimizing.
17760
17761         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
17762         are NULL.
17763
17764         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
17765         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
17766         (try_optimize_cfg): clear all AUX fields.
17767
17768         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
17769         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
17770         (ix86_address_cost): Be prepared for SUBREGed registers.
17771         (legitimate_address_p): Accept SUBREGed registers.
17772
17773 2002-03-29  Richard Henderson  <rth@redhat.com>
17774
17775         PR target/5672
17776         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
17777
17778 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17779
17780         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
17781         for aggregate and TFmode types.
17782
17783 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
17784
17785         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
17786
17787 2002-03-29  Richard Henderson  <rth@redhat.com>
17788
17789         PR target/5886
17790         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
17791         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
17792
17793 2002-03-29  Richard Henderson  <rth@redhat.com>
17794
17795         PR target/6041
17796         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
17797         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
17798         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
17799         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
17800         conditional.
17801         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
17802
17803 2002-03-29  Dale Johannesen <dalej@apple.com>
17804
17805         * loop.c (combine_movables): Do allow combination of pseudos.
17806
17807 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
17808
17809         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
17810         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
17811         No functional change except ...
17812         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
17813         * doc/install.texi (*-*-freebsd*): Document port configuration.
17814
17815 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
17816
17817         * Makefile.in (convert.o, calls.o, expmed.o): Update.
17818         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
17819         Use new hooks.
17820         * builtin-types.def (BT_PTRMODE): Update.
17821         * c-common.c (type_for_size): Rename c_common_type_for_size.
17822         (type_for_mode): Similarly.
17823         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
17824         Use new hook.
17825         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
17826         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
17827         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
17828         Redefine.
17829         * c-typeck.c (common_type, comptypes, default_conversion):
17830         Use new hooks.
17831         * calls.c: Include langhooks.h.
17832         (emit_library_call_value_1): Use new hooks.  Avoid redundant
17833         calls.
17834         * convert.c: Include langhooks.h
17835         (convert_to_pointer, convert_to_integer): Use new hooks.
17836         * except.c (init_eh): Similarly.
17837         * expmed.c: Include langhooks.h.
17838         (expand_mult_add): Use new hooks.
17839         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
17840         try_casesi): Similarly.
17841         * fold-const.c (optimize_bit_field_compare, make_range,
17842         decode_field_reference, fold_truthop, fold): Similarly.
17843         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
17844         put_var_into_stack): Similarly.
17845         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
17846         LANG_HOOKS_TYPE_FOR_SIZE): New.
17847         (LANG_HOOKS_TYPES_INITIALIZER): Update.
17848         * langhooks.h (lang_hooks_for_types): New hooks.
17849         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
17850         * tree.c (get_unwidened, get_narrower): Similarly.
17851         * tree.h (type_for_mode, type_for_size): Remove.
17852         * varasm.c (force_const_mem): Use new hooks.
17853         * utils2.c (nonbinary_modular_operation): Update.
17854 objc:
17855         * objc-act.c (handle_impent): Update.
17856         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
17857         Redefine.
17858
17859 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
17860
17861         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
17862         * config/ia64/ia64.c (basereg_operand): New.
17863         * config/ia64/ia64-protos.h (basereg_operand): Declare.
17864         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
17865
17866 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
17867
17868         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
17869         unwind information when frame_pointer_needed.
17870         (mmix_assemble_integer): Tweak wording in comment.
17871
17872 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
17873
17874         * Makefile.in (except.o): Update.
17875         * except.c: Include langhooks.h.
17876         (init_eh): Use langhook.
17877         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
17878         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
17879         (LANG_HOOKS_INITIALIZER): Update.
17880         * langhooks.h (lang_hooks_for_types): New.
17881         (struct lang_hooks): Add it.
17882         * tree.c (make_lang_type_fn, make_lang_type): Remove.
17883         * tree.h (make_lang_type_fn, make_lang_type): Remove.
17884 config:
17885         * alpha/alpha.c: Include langhooks.h.
17886         (alpha_build_va_list): Use langhook.
17887         * d30v/d30v.c: Include langhooks.h.
17888         (d30v_build_va_list): Use langhook.
17889         * i386/i386.c: Include langhooks.h.
17890         (ix86_build_va_list): Use langhook.
17891         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
17892         * s390/s390.c: Include langhooks.h.
17893         (s390_build_va_list): Use langhook.
17894         * stormy16/stormy16.c: Include langhooks.h.
17895         (stormy16_build_va_list): Use langhook.
17896
17897 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
17898
17899         PR c++/5964
17900         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
17901         attributes.
17902         (length): Compute variable length for branches/calls/jumps here.
17903         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
17904         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
17905         define branch_type attribute.
17906         (divsi3_sp32): Maximum length is 6 not 7.
17907         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
17908         call_address_untyped_struct_value_sp32,
17909         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
17910         * config/sparc/sparc.c (empty_delay_slot): New function.
17911         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
17912         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
17913
17914 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
17915
17916         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
17917         nonzero_bits if not needed.
17918         (nonzero_bits) [XOR]: Likewise.
17919         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
17920         reg_last_set_mode and mode are both MODE_INT, but not equal.
17921         (record_value_for_reg): Compute reg_last_set_nonzero_bits
17922         in nonzero_bits_mode for MODE_INT modes.
17923
17924 2002-03-28  Richard Henderson  <rth@redhat.com>
17925
17926         PR target/5715
17927         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
17928         to GAS.  Correct drift between alternatives.
17929
17930 2002-03-28  Richard Henderson  <rth@redhat.com>
17931
17932         PR target/6087
17933         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
17934
17935 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
17936
17937         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
17938         emulation to the linker.
17939
17940 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
17941
17942         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
17943         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
17944
17945 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
17946
17947         * combine.c (simplify_and_const_int): Make sure to apply mask
17948         when force_to_mode returns a constant integer.  PR3311.
17949
17950 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17951
17952         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
17953
17954 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17955
17956         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
17957         and Objective-C Dialect Options.
17958
17959 2002-03-28  Richard Henderson  <rth@redhat.com>
17960
17961         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
17962         comparison should be done vs !=0 not >0 return code.  Tidy cases.
17963
17964 2002-03-28  Richard Henderson  <rth@redhat.com>
17965
17966         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
17967         on to c_expand_body.
17968         * c-tree.h (finish_function): Update decl.
17969         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
17970
17971 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
17972
17973         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
17974
17975 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
17976
17977         * rtlanal.c: Include flags.h
17978         (may_trap_p): Do not mark FP operations if trapping
17979         if !flag_trapping_math
17980         * Makefile.in (rtlanal.o): Add dependency on flag.h
17981         * ifcvt.c (noce_operand_ok): Avoid the lameness.
17982
17983 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
17984
17985         * mips.md: Use dconst1, not 1.0, as first argument of
17986         REAL_VALUE_LDEXP.  Don't use union real_extract.
17987
17988 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
17989
17990         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
17991         rather than $target.  Heed program_prefix and
17992         program_transform_name.  Search for gas in cross-compiler case too.
17993         "test -x" rather than "test -f".
17994         (gcc_cv_ld): Likewise.
17995         (gcc_cv_nm): Heed program_prefix and program_transform_name.
17996         (gcc_cv_objdump): Likewise.
17997         * configure: Regenerate.
17998
17999 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
18000
18001         * Makefile.in (attribs.o): Update.
18002         * attribs.c: Include langhooks.h.
18003         (decl_attributes): Use langhook.
18004         * c-decl.c (insert_default_attributes): Rename.
18005         * c-tree.h (c_insert_default_attributes): New.
18006         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
18007         (LANG_HOOKS_INITIALIZER): Update.
18008         * langhooks.h (struct lang_hooks): New hook.
18009         * tree.h (insert_default_attributes): Remove.
18010 objc:
18011         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
18012
18013 2002-03-27  Andreas Schwab  <schwab@suse.de>
18014
18015         * config/i386/i386.c (classify_argument): Also check for
18016         QUAL_UNION_TYPE.
18017
18018 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18019
18020         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
18021         any more.
18022
18023 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
18024
18025         * i960.md (ret): Set PC.
18026         (nonlocal_goto): Fix expander.
18027         * builtins.c (epxand_builin_longjmp): Check that we've emitted
18028         some jump or call.
18029
18030 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
18031
18032         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
18033         of libcall regions.
18034
18035 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18036
18037         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
18038         assigning to BLOCK_FOR_INSN directly.
18039
18040 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
18041
18042         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
18043
18044 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
18045
18046         * c-common.c (c_expand_expr): Fix prototype.
18047         * c-common.h (c_expand_expr): Always declare, update.
18048         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
18049         * c-objc-common.c (c_objc_common_init): No global hook.
18050         * expr.c (expand_expr): Use langhook.
18051         * expr.h (enum expand_modifier): Conditionally declare.
18052         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
18053         (LANG_HOOKS_INITIALIZER): Update.
18054         * langhooks.c (lhd_expand_expr): New.
18055         * langhooks.h (struct lang_hooks): New hook.
18056         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
18057         (lang_independent_init): Don't default hook.
18058 objc:
18059         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
18060
18061 2002-03-27  Richard Henderson  <rth@redhat.com>
18062
18063         PR target/6054
18064         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
18065         TARGET_CONST_GP.  Simplify conditions.
18066
18067 2002-03-27  Richard Henderson  <rth@redhat.com>
18068
18069         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
18070         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
18071         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
18072
18073 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
18074
18075         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
18076         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
18077         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
18078         Remove unnecessary masks.
18079         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
18080         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
18081         -mwindows, -mdll switches and their negations.
18082
18083 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
18084
18085         * gcc-common.c (lang_mark_false_label_stack): Remove.
18086         * ggc.h (lang_mark_false_label_stack): Similarly.
18087
18088 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
18089
18090         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
18091
18092         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
18093         or __rtems_ is defined.
18094
18095 2002-03-26  Richard Henderson  <rth@redhat.com>
18096
18097         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
18098         if a non-trivial load was emitted.
18099         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
18100         in high+extra+low case.
18101
18102 2002-03-26  Richard Henderson  <rth@redhat.com>
18103
18104         * config.gcc (sparc*-solaris): Use float_format=sparc.
18105
18106 2002-03-26  Richard Henderson  <rth@redhat.com>
18107
18108         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
18109         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
18110         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
18111         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
18112         (WINT_TYPE_SIZE): Fix at 32.
18113
18114 2002-03-26  Richard Henderson  <rth@redhat.com>
18115
18116         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
18117         until after eh landing pad generation.
18118         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
18119         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
18120
18121 2002-03-26  Richard Henderson  <rth@redhat.com>
18122
18123         * expr.h (ADD_PARM_SIZE): One more convert for INC.
18124
18125 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
18126
18127         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
18128         and warning switches.
18129         (cc1_options):  Likewise.
18130
18131 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
18132
18133         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
18134         Restore more of the signal context.  Set no_reg_stack_frame.
18135         * config/ia64/unwind-ia64.c (unw_state_record):
18136         Add no_reg_stack_frame, comments.
18137         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
18138         (uw_update_context): Adjust bsp when unwinding from leaf,
18139         but not signal frame.
18140
18141 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
18142
18143         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
18144
18145 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
18146
18147         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
18148
18149 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
18150
18151         PR target/5621
18152         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
18153         "Add a pool_range attribute", which was lost during the ARM/Thumb
18154         merge.
18155
18156 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
18157
18158         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
18159         a register into the MAC16 accumulator.
18160
18161 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
18162
18163         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
18164         (Warning Options): Document -Wswitch-enum.
18165         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
18166         -Wswitch.
18167         (warn_switch_enum): Define variables.
18168         * flags.h (warn_switch_enum): Declare variables.
18169         * stmt.c (expand_end_case_type): When warn_switch_enum /
18170         -Wswitch-enum, perform switch checks.
18171         Fix PR c/5044.
18172
18173 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
18174
18175         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
18176         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
18177         (reload_muladdsi_compare0_scratch): Delete.
18178
18179 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
18180
18181         * doc/install.texi (*-*-freebsd*): Update.
18182
18183 2002-03-26  Richard Henderson  <rth@redhat.com>
18184
18185         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
18186         (SUB_PARM_SIZE): Cast DEC to ssizetype.
18187
18188         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
18189         types from the normal argument frame.
18190
18191         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
18192         variable sized objects by reference.
18193         (sparc_va_arg): Receive them by reference too.
18194
18195 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
18196
18197         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
18198         code to not restoring global registers.
18199
18200 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
18201
18202         * Makefile.in (ggc-common.o): Update.
18203         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
18204         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
18205         * c-tree.h (c_mark_tree): New.
18206         * ggc-common.c: Include langhooks.h.
18207         (gcc_mark_trees): Use new langhook.
18208         * ggc-callbacks.c: Delete file.
18209         * ggc.h (lang_mark_tree): Remove.
18210         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
18211         (LANG_HOOKS_INITIALIZER): Update.
18212         * langhooks.h (struct lang_hooks): New hook.
18213 objc:
18214         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
18215
18216 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
18217
18218         * doc/cpp.texi: Exclude entire Top node from printed manual.
18219         Move option index after directive index.  Insert page breaks
18220         before GFDL and concept index.  Index environment variables
18221         with command line options.
18222         * doc/cppenv.texi: Use @vtable for environment variable list.
18223         Add paragraph explaining semantics of empty elements in path
18224         variables.  Exclude a cross-reference to Fishkill from the
18225         manpage.  Remove an unnecessary cross-reference of the entry
18226         right above the referer.  Don't use @anchor in text that goes
18227         into manpage.
18228         * doc/cppopts.texi: Cross-reference the environment variables
18229         section, not the specific environment variable, for consistency.
18230
18231 2002-03-25  Richard Henderson  <rth@redhat.com>
18232
18233         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
18234         anywhere in the block.  Don't refer to insns that have been
18235         removed from the chain.  Iterate backward through the new insns.
18236         Don't refer to edges that have been removed.
18237
18238 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
18239
18240         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
18241         test for overflow of constant.
18242
18243 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
18244
18245         PR target/2623
18246         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
18247         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
18248         these patterns on arm_archv4.
18249
18250 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
18251
18252         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
18253         int".
18254
18255 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
18256
18257         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
18258         float_handled, float_handler, float_signal, set_float_handler,
18259         and do_float_handler.  Set handler for SIGFPE to crash_signal.
18260         * toplev.h: Don't prototype do_float_handler.
18261
18262         * c-lex.c: Fold parse_float into lex_number.  Make warning
18263         about portability of hex float constants more informative, and
18264         don't issue it on top of a syntax error.
18265         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
18266         their callers.
18267         * real.h: Define REAL_VALUE_ABS here...
18268         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
18269         simplify_unary_real, simplify_binary_real, and
18270         simplify_binary_is2orm1 into their callers.
18271         * tree.c: Fold build_real_from_int_cst_1 into caller.
18272
18273         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
18274
18275         * tsystem.h: Include float.h here...
18276         * libgcc2.c: ... not here.
18277
18278 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
18279
18280         Fixes for: PR bootstrap/3591, target/5676
18281         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
18282         defined.  Do not disable exceptions or rtti.
18283         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
18284         mcore.h.  Disable exceptions and rtti, since they are not
18285         supported by EPOC.
18286
18287 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
18288
18289         * c-decl.c (maybe_build_cleanup): Remove.
18290         * expr.c (expand_expr): Use langhook.
18291         * langhooks-def.h (lhd_return_null_tree,
18292         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
18293         (LANGHOOKS_INITIALIZER): Update.
18294         * langhooks.c (lhd_return_null_tree): New.
18295         * langhooks.h (struct lang_hooks): New hook.
18296         * tree-inline.c (initialize_inlined_parameters): Use langhook.
18297         * tree.h (maybe_build_cleanup): Remove.
18298
18299 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
18300
18301         * regrename.c (build_def_use): Move recog_memoized
18302         before extract_insn.
18303
18304 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
18305
18306         PR target/6043
18307         * expr.c (emit_group_store): Handle storing into CONCAT.
18308
18309 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
18310
18311         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
18312         corresponding MATCH_DUP.
18313
18314 2002-03-24  Richard Henderson  <rth@redhat.com>
18315
18316         * unroll.c (unroll_loop): Zero label_map.
18317
18318         * gcse.c: Include except.h.
18319         * Makefile.in (gcse.o): Update.
18320
18321 2002-03-24  Richard Henderson  <rth@redhat.com>
18322
18323         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
18324         Do resolve_unique_section before shared data clause.
18325
18326 2002-03-24  Richard Henderson  <rth@redhat.com>
18327
18328         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
18329
18330 2002-03-24  Richard Henderson  <rth@redhat.com>
18331
18332         * recog.c (peephole2_optimize): Split blocks when EH insns are
18333         generated in the middle of a block.  Do global life update if
18334         zapped EH edges.
18335
18336 2002-03-24  Richard Henderson  <rth@redhat.com>
18337
18338         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
18339
18340 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
18341
18342         preprocessor/3951
18343         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
18344         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
18345         (init_dependency_output): Don't make no_output decision here.
18346
18347 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
18348
18349         * stmt.c (check_for_full_enumeration_handling): Remove tests of
18350         warn_switch.  Update description.
18351         (expand_end_case_type): Call check_for_full_enumeration_handling
18352         when warn_switch.
18353
18354 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18355
18356         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
18357         (m68hc11_split_move): Call it to see if the source and destination
18358         operands use the same direction auto inc/dec mode, otherwise make the
18359         source an offsetable memory operand and generate an add.
18360
18361 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18362
18363         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
18364         register for operand 2.
18365         ("*subsi3_zero_extendqi"): Likewise.
18366         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
18367         bits so that it is compatible with a pop.
18368         ("*andhi3_gen"): Likewise.
18369         ("xorhi3"): Likewise.
18370
18371 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
18372
18373         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
18374         -pedantic here...
18375         (cpp_post_options): ... not here.
18376
18377 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
18378             Aldy Hernandez  <aldyh@redhat.com>
18379
18380         Removal of separate preprocessor cpp0.
18381
18382         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
18383         cpp0, install-common): Update.
18384         * c-common.c (flag_preprocess_only): New.
18385         (c_common_init): Preprocess for -E.
18386         * c-common.h (flag_preprocess_only): New.
18387         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
18388         * c-objc-common.c (c_init_decl_processing): Exit quickly
18389         for NULL return from c_common_init.
18390         * cpplib.h (cpp_preprocess_file): New.
18391         * cppmain.c (main, general_init, pfile, progname): Remove.
18392         (do_preprocessing): Rename cpp_preprocess_file, don't call
18393         cpp_finish.  Don't close stdout here.
18394         (setup_callbacks): Update prototype.
18395         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
18396         Update.
18397         * tradcpp.c (main): Ignore -quiet.
18398 objc:
18399         * lang-specs.h (default_compilers): Preprocess with cc1obj.
18400
18401 2002-03-24  Richard Henderson  <rth@redhat.com>
18402
18403         PR optimization/5742
18404         * machmode.def: Add inner mode field to complex modes.
18405         * config/mips/mips.c (mips_function_value): Always define.  Add
18406         new argument to handle libcalls.
18407         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
18408         (FUNCTION_VALUE): Likewise.
18409         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
18410         * config/mips/mips-protos.h: Update.
18411
18412 2002-03-23  Richard Henderson  <rth@redhat.com>
18413
18414         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
18415         * config/sparc/sparc-protos.h: Update.
18416         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
18417
18418 2002-03-23  Richard Henderson  <rth@redhat.com>
18419
18420         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
18421         _start or _init begins the text segment.
18422
18423 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
18424
18425         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
18426         not HOST_WIDEST_INT.
18427         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
18428
18429 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
18430
18431         PR java/5489
18432         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
18433         operand argument to output_return_instruction.
18434         * arm.c (arm_print_operand, case 'd'): If the operand is
18435         const_true_rtx then just return.
18436         (arm_print_operand, case 'D'): If the operand is const_true_rtx
18437         then abort.
18438
18439 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
18440
18441         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
18442         (Warning Options): Document -Wswitch-default.
18443         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
18444         -Wswitch.
18445         (warn_switch_default): Define variable.
18446         (warn_switch): Update comment.
18447         * flags.h (warn_switch_default): Declare variable.
18448         (warn_switch): Update comment.
18449         * stmt.c (expand_end_case): Check for and, when
18450         warn_switch_no_default, warn of a missing default case.
18451
18452 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
18453
18454         * real.h (N): Special case 128 bit doubles.
18455
18456         * combine.c (simplify_comparison): When widening modes, ignore
18457         sign extension on CONST_INTs.
18458
18459 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
18460
18461         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
18462         passed to adjust_address.  Fix comment formatting.
18463
18464
18465 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
18466
18467         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
18468         Always make REAL_VALUE_TYPE a struct containing an array of
18469         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
18470         big it is.  Don't declare or use union real_extract.
18471
18472         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
18473         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
18474         (print_operand), config/arm/arm.c (output_move_double),
18475         config/arm/arm.md (consttable_4, consttable_8),
18476         config/romp/romp.c (output_fpops), config/s390/s390.h
18477         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
18478         (xtensa_output_literal): Don't use union real_extract.
18479
18480         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
18481         (sfmode_constant_to_ulong), config/ns32k/merlin.h
18482         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
18483         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
18484         (PRINT_OPERAND): Don't use local version of union
18485         real_extract.
18486
18487         * config/convex/convex.c (check_float_value), config/vax/vax.c
18488         (vax_float_literal), config/m88k/m88k.md (divdf3),
18489         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
18490         config/pdp11/pdp11.c (output_move_quad): Don't do host
18491         arithmetic on target floating point quantities.
18492
18493         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
18494         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
18495
18496         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
18497         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
18498
18499         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
18500         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
18501         INFINITY.
18502         * print-rtl.c (print_rtx): Disable code which needs
18503         floating-point emulator.
18504         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
18505         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
18506         depending on HOST_FLOAT_FORMAT to be defined properly.
18507
18508         * config/1750a/1750a.c (get_double, float_label): Delete.
18509         (print_operand): Delete huge commented-out chunk.  Use
18510         REAL_VALUE_TO_DECIMAL.
18511         * config/1750a/1750a-protos.h: Delete prototypes of deleted
18512         functions.
18513         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
18514         IEEE_FLOAT_FORMAT.
18515         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
18516         Use REAL_VALUE_TO_DECIMAL as ELF version does.
18517         * config/m88k/m88k.c (real_power_of_2_operand,
18518         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
18519         real_extract out of the union; run the input through
18520         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
18521         from that into the union.
18522         * config/pdp11/pdp11.c (output_move_double): Rearrange
18523         parentheses to make automatic indenter happy.
18524
18525         * doc/tm.texi (Cross-compilation): Rename node to "Floating
18526         Point" and rewrite to describe current situation.  Also adjust
18527         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
18528         match code.
18529         * doc/rtl.texi: Adjust cross reference.
18530
18531 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
18532
18533         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
18534         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
18535         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
18536         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
18537         prevent use of sp as a reload register.
18538         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
18539         non_acc_reg_operand.
18540         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
18541         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
18542         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
18543         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
18544
18545 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
18546
18547         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
18548         * cpplex.c (unterminated): Delete.
18549         (parse_string): No string literal may extend over multiple
18550         lines.  Suppress the error when preprocessing assembly.
18551         * cppmain.c (scan_translation_unit): Strings are single-line.
18552
18553         * doc/cpp.texi: Update to match.
18554
18555 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
18556
18557         PR optimization/5854
18558         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
18559         Shut up warnings.
18560         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
18561         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
18562         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
18563         const0 if scratch register was not allocated.
18564         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
18565         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
18566         with GEN_INT (...).
18567         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
18568         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
18569         with GEN_INT (...) everywhere.  Remove constraints in define_split
18570         patterns.
18571         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
18572         require scratch register for setting 0 into regs/non-pushable memory.
18573
18574 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
18575
18576         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
18577         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
18578
18579 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
18580
18581         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
18582         * cppinit.c (cpp_create_reader):  On by default.
18583         (cpp_handle_option):  Handle -W[no-]endif-labels.
18584         (cpp_post_options):  Also enable if -pedantic.
18585         * cpplib.c (do_else):  Use it.
18586         (do_endif):  Likewise.
18587         * doc/cppopts.texi:  Document new option.
18588         * doc/invoke.texi:  Document new option.
18589
18590 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
18591
18592         * config/i386/i386.c, config/i386/i386.md: Change all occurences
18593         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
18594
18595 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
18596
18597         * flow.c (calculate_global_regs_live): Clear aux fields of
18598         ENTRY and EXIT.
18599
18600 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
18601
18602         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
18603         REG or MEM subregs, pass rtx * instead of rtx to it.
18604         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
18605         rtx * instead of rtx to alter_subreg.
18606         * config/m32r/m32r.c (gen_split_move_double): Likewise.
18607         * config/pj/pj.c (pj_output_rval): Likewise.
18608
18609 2002-03-22  Richard Henderson  <rth@redhat.com>
18610
18611         PR target/3177
18612         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
18613         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
18614         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
18615         (ia64_expand_prologue): Look at int_regs, not words, for number
18616         of incomming int regs.
18617
18618 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
18619
18620         * expr.c (expand_expr): A RESULT_DECL is part of a call.
18621
18622 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
18623
18624         * toplev.c (flag_loop_optimize, flag_crossjumping):
18625         New static variables.
18626         (rest_of_compilation): Conditionalize crossjumping and
18627         loop optimizer.
18628         (parse_options_and_default_flags): Default loop_optimize and
18629         crossjumping.
18630         (lang_independent_options): Add -fcrossjumping and -floop-optimize
18631         * invoke.texi (crossjumping, loop-optimize): Document.
18632
18633 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
18634
18635         * real.c (eiisneg): Move outside #ifdef NANS.
18636
18637 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
18638
18639         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
18640         frequencies match; avoid match on different loop depths.
18641         (try_crossjump_to_bb): Kill tests that no longer brings time
18642         savings.
18643         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
18644         updating code.
18645         (split_edge): Likewise.
18646
18647         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
18648         variable.
18649
18650         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
18651         * cfgrtl.c: Include insn-config.h
18652         (split_block) Dirtify block in presence of conditional execution
18653
18654 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
18655
18656         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
18657         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
18658         (function_arg): Constify CUMULATIVE_ARGS.
18659         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
18660         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
18661         (UNITS_PER_DOUBLE): New macro.
18662         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
18663         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
18664         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
18665         fp_regs and stack_words.
18666         (EABI_FLOAT_VARARGS_P): New macro.
18667         * config/mips/mips.c (struct mips_arg_info): New.
18668         (mips_arg_info): New function.
18669         (function_arg_advance): Use it.  Add adjustment instructions here
18670         rather than in function_arg.
18671         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
18672         for VOIDmode at the beginning of the function.
18673         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
18674         (function_arg_pass_by_reference): Likewise.
18675         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
18676         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
18677         (mips_va_start): Likewise.  Use the new stack_words field of
18678         CUMULATIVE_ARGS to set up overflow area.  Reformat.
18679         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
18680         doubles and other types, aligning the overflow pointer for non-doubles
18681         too.  Remove some code duplication.  Replace hard-coded constants.
18682
18683 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
18684
18685         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
18686         (CLASS_UNITS): Undefine.
18687         (CLASS_MAX_NREGS): Use FP_INC.
18688         * config/mips/mips.c (compute_frame_size): Likewise.
18689         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
18690
18691 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
18692
18693         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
18694         prototype, and handle lexing numbers and identifiers.
18695         (parse_identifier): Update to new form of parse_slow.
18696         (parse_number): Fast path only, use parse_slow otherwise.
18697         (_cpp_lex_direct): Update calls to parse_number.
18698
18699 2002-03-21  DJ Delorie  <dj@redhat.com>
18700
18701         * bb-reorder.c (make_reorder_chain_1): Protect against
18702         when redundant edges are omitted.
18703         * predict.c (dump_prediction): Likewise.
18704
18705 2002-03-21  Richard Henderson  <rth@redhat.com>
18706
18707         PR target/5996
18708         * fixinc/inclhack.def (solaris_stdio_tag): New.
18709         * fixinc/fixincl.x: Regenerate.
18710
18711 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
18712
18713         PR c/5597
18714         * c-typeck.c (process_init_element): Flag non-static
18715         initialization of a flexible array member as illegal.
18716
18717 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
18718
18719         * config/rs6000/t-linux64: New.
18720         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
18721         t-ppccomm.  Use t-rs6000 and t-linux64.
18722         (powerpc64-*-gnu* <tmake_file>): Likewise.
18723         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
18724         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
18725         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
18726
18727 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
18728
18729         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
18730         flag_really_no_inline instead of optimize == 0.
18731
18732         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
18733
18734         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
18735
18736         * flags.h (flag_really_no_inline): New.
18737
18738         * c-common.c (c_common_post_options): Initialize
18739         flag_really_no_inline.
18740
18741         * toplev.c (flag_really_no_inline): New.
18742
18743 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
18744
18745         * config/avr/avr.md (length): Fix length computation for
18746         conditional branches.
18747
18748 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
18749
18750         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
18751         sdbout.o, profile.o): Update.
18752         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
18753         langhook.
18754         * c-common.h (gettags): Move here from tree.h.
18755         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
18756         insert_block, getdecls, kept_level_p, global_bindings_p): New.
18757         * dbxout.c (dbxout_init): Use getdecls langhook.
18758         * expr.c (expand_expr): Use insert_block langhook.
18759         * fold-const.c: Include langhooks.h.
18760         (fold_range_test, fold_binary_op_with_conditional_arg,
18761         fold): Use global_bindings_p langhook.
18762         * integrate.c (expand_inline_function): Use insert_block langhook.
18763         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
18764         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
18765         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
18766         LANG_HOOKS_GETDECLS): New.
18767         (LANG_HOOKS_INITIALIZER): Update.
18768         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
18769         langhook.
18770         * langhooks.h (struct lang_hooks_for_decls): New.
18771         (struct lang_hooks): Update.
18772         * profile.c: Include langhooks.h.
18773         (output_func_start_profiler): Use new langhooks.
18774         * sdbout.c: Include langhooks.h.
18775         (sdbout_init, sdbout_finish): Use getdecls langhook.
18776         * stmt.c: Include langhooks.h.
18777         (expand_fixup, fixup_gotos): Use new langhooks.
18778         * stor-layout.c: Include langhooks.h.
18779         (variable_size): Use global_bindings_p langhook.
18780         * toplev.c (compile_file): Use getdecls langhook.
18781         * tree-inline.c (remap_block): Use insert_block langhook.
18782         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
18783         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
18784
18785 2002-03-21  Richard Henderson  <rth@redhat.com>
18786
18787         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
18788         constants in .data when -fpic.
18789
18790 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18791
18792         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
18793         where appropriate.
18794
18795 2002-03-21  Tom Tromey  <tromey@redhat.com>
18796
18797         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
18798
18799 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18800
18801         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
18802
18803         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
18804
18805 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
18806             Richard Henderson  <rth@redhat.com>
18807
18808         PR c/5354
18809         * c-common.c (c_expand_expr): Preserve result of a statement
18810         expression if needed.
18811
18812 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
18813
18814         PR bootstrap/4195
18815         * genrecog.c (maybe_both_true_mode): Remove.
18816         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
18817         * machmode.def (Pmode): Likewise.
18818
18819 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
18820
18821         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
18822         (nonlocal_mentioned_p_1): New function.
18823         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
18824         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
18825         (mark_constant_function): Recognize pure functions.
18826         * rtl.h (global_reg_mentioned_p): New prototype.
18827         * rtlanal.c (global_reg_mentioned_p,
18828         global_reg_mentioned_p_1): New function.
18829
18830 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18831
18832         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
18833         UNIX assert.h.
18834         * fixinc/fixincl.x: Regenerate.
18835
18836 2002-03-20  Jason Merrill  <jason@redhat.com>
18837
18838         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
18839
18840 2002-03-20  Michael Meissner  <meissner@redhat.com>
18841
18842         * doc/invoke.texi (Optimize Options): Document that -O2 sets
18843         -fstrict-aliasing.
18844
18845 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
18846
18847         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
18848         ".literal_position" directive before the constant pool.
18849
18850 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18851
18852         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
18853         Add Craig Rodrigues.
18854         Add Brad Lucier to testers.
18855
18856 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
18857
18858         PR target/4792
18859         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
18860         to if_then_else.
18861         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
18862         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
18863         instead of insn_extract.
18864
18865 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
18866
18867         PR bootstrap/4192
18868         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
18869
18870         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
18871         stmt if some case has been output.
18872
18873 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
18874
18875         PR c/5972
18876         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
18877         movsfcc_1, movdfcc_1): Add %O2.
18878         * config/i386/i386.c (print_operand): Handle %ON.
18879         Print . before float condition codes in Sun as cmov syntax.
18880         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
18881         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
18882         no longer true.
18883
18884 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
18885
18886         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
18887         return instruction if PC was popped.
18888
18889 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
18890
18891         * config/xtensa/xtensa.md: Remove unused type attributes.
18892         (adddi_carry, subddi_carry): Change type attribute to "multi".
18893
18894 2002-03-19  Dale Johannesen  <dalej@apple.com>
18895
18896         PR optimization/5999, middle-end/5731
18897         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
18898         multiplications by reciprocals.
18899
18900 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
18901
18902         * Makefile.in: Update.
18903         * c-common.c: Include langhooks.h.
18904         (inline_forbidden_p): Use new hook.
18905         * diagnostic.c: Include langhooks.h.
18906         (format_with_decl, announce_function,
18907         default_print_error_function): Use new hook.
18908         * dwarf2out.c (dwarf2_name): Use new hook.
18909         * function.c: Include langhooks.h.
18910         (init_function_start): Use new hook.
18911         * langhooks-def.h (lhd_decl_printable_name): New.
18912         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
18913         (LANGHOOKS_INITIALIZER): Update.
18914         * langhooks.c (lhd_decl_printable_name): New.
18915         * langhooks.h (struct lang_hooks): New hook.
18916         * toplev.c (decl_name, decl_printable_name): Remove.
18917         (open_dump_file): Use new hook.
18918         (process_options): Remove old hook.
18919         * tree.h (decl_printable_name): Remove.
18920 objc:
18921         * objc-act.c (objc_init): Remove old hook.
18922         (objc_printable_name): Export.
18923         * objc-act.h (objc_printable_name): New.
18924         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
18925
18926 2002-03-19  Jim Blandy  <jimb@redhat.com>
18927
18928         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
18929         the start_source_file debug hook, not the current line number.
18930
18931 2002-03-19  Richard Henderson  <rth@redhat.com>
18932
18933         * flow.c (EH_USES): Provide default.
18934         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
18935         * doc/tm.texi (EH_USES): New.
18936
18937         * config/ia64/ia64.c (ia64_eh_uses): New.
18938         * config/ia64/ia64-protos.h: Update.
18939         * config/ia64/ia64.h (EH_USES): New.
18940
18941 2002-03-19  Richard Henderson  <rth@redhat.com>
18942
18943         * varasm.c (output_constant_def): Fix stupid typo.
18944
18945 2002-03-19  Richard Henderson  <rth@redhat.com>
18946
18947         PR 5879
18948         * except.c (current_function_has_exception_handlers): New.
18949         * except.h: Declare it.
18950         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
18951         Combine tests that disable all sibcalls for the function.
18952
18953 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
18954
18955         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
18956         for INTEGER_CST.
18957
18958 2002-03-19  Richard Henderson  <rth@redhat.com>
18959
18960         PR 5977, 5991
18961         * config/ia64/ia64.c: Revert 2002-03-01 patch.
18962         * config/ia64/ia64.h (INIT_EXPANDERS): New.
18963
18964 2002-03-19  Jim Blandy  <jimb@redhat.com>
18965
18966         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
18967         name, even if the replacement list contains no tokens, as required
18968         by Dwarf.
18969
18970 2002-03-19  Jason Merrill  <jason@redhat.com>
18971
18972         * varasm.c (globalize_decl): Get the name from the RTL, not
18973         DECL_ASSEMBLER_NAME.
18974
18975         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
18976
18977 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
18978
18979         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
18980         subdi_carry): Define.
18981
18982 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
18983
18984         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
18985         about -fpic/-fPIC if extra_warnings set.
18986
18987 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
18988
18989         * expr.c (expand_expr): Sign-extend CONST_INT generated from
18990         TREE_STRING_POINTER.
18991         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
18992
18993 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18994
18995         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
18996         in favor of SP if FRAME_POINTER_REQUIRED is false.
18997
18998 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
18999
19000         * emit-rtl.c (gen_int_mode): New function.
19001         * rtl.h: Prototype for it.
19002         * combine.c (make_extraction, simplify_comparison), expmed.c
19003         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
19004         (convert_modes, store_field), optabs.c (expand_fix),
19005         simplify-rtx.c (neg_const_int, simplify_unary_real),
19006
19007         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
19008         Use it instead of GEN_INT (trunc_int_for_mode (...)).
19009
19010 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
19011
19012         PR c/5656
19013         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
19014         convert_parm_for_inlining.
19015         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
19016         Define.
19017         * langhooks-def.h: Likewise.
19018         * objc/objc-lang.c: Likewise.
19019         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
19020         function.
19021         * tree-inline.c (initialize_inlined_parameters):
19022         Call convert_parm_for_inlining lang hook if needed.
19023         * c-typeck.c (c_convert_parm_for_inlining): New function.
19024         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
19025
19026 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
19027
19028         * calls.c (precompute_arguments): Do not assume that temporaries
19029         can be destroyed after expanding the argument.
19030         (expand_call): Likewise.
19031
19032 2002-03-15  Eric Christopher  <echristo@redhat.com>
19033
19034         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
19035         Fix register preference on last change.
19036         * config/mips/mips.c (mips_return_in_memory): New function.
19037         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
19038         * config/mips/mips-protos.h: Declare.
19039         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
19040         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
19041
19042 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
19043
19044         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
19045         a register too.
19046         (anddi3, iorsi3): Likewise.
19047
19048         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
19049         use %gprel for symbols that are going to be placed in linkonce
19050         sections.
19051
19052         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
19053         RETURN_ADDRESS_POINTER_REGNUM to $ra.
19054         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
19055         not needed.  Disregard leaf_function_p().
19056         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
19057         mips16 frame pointer.
19058         * config/mips/mips.md (store ra): Only to small SP offsets.
19059         2001-08-22  Graham Stott  <grahams@redhat.com>
19060         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
19061         return a REG rtx for the return address register.
19062
19063 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
19064
19065         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
19066         constant-pool addresses as "mode-dependent".
19067         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
19068
19069 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
19070
19071         PR target/5740
19072         * expr.c (emit_group_load): Use extract_bit_field if
19073         needed for CONCAT arguments.
19074
19075 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
19076
19077         PR target/4863
19078         * arm.md (tablejump): Make this a define_expand.  For PIC add the
19079         offset to the base of the table.
19080         (thumb_tablejump): Matcher for Thumb tablejump insn.
19081         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
19082         as the difference of two labels.
19083         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
19084         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
19085         tables in the code.
19086         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
19087         * arm.c (get_jump_table_size): If the table is not in the text
19088         section, return zero.
19089
19090 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
19091
19092         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
19093         of gen_rtx_SUBREG.
19094         (arm_reload_out_hi): Use gen_lowpart instead of
19095         gen_rtx_SUBREG to access QImode components.
19096         * config/arm/arm.md: Disable zero_extend split for QImode
19097         subregs in BIG_ENDIAN mode.
19098         (storehi_bigend): Match use of least significant byte.
19099         (storeinthi): Remove extraneous SUBREG.
19100         Add missing construction of operands[2].
19101         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
19102         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
19103         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
19104
19105 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
19106
19107         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
19108         any_operand.
19109
19110 2002-03-17  Richard Henderson  <rth@redhat.com>
19111
19112         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
19113         explicitly.
19114
19115 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
19116
19117         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
19118         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
19119
19120 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19121
19122         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
19123
19124         * predict.c (estimate_bb_frequencies): Delete unused variables.
19125
19126 2002-03-17  Richard Henderson  <rth@redhat.com>
19127
19128         * config/ia64/ia64.c (ia64_attribute_table): Move before
19129         targetm definition.  Make static.
19130
19131 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
19132
19133         * c-common.h (yyparse, c_common_parse_file): New.
19134         * c-lang.c: Include c-common.h.
19135         (LANG_HOOKS_PARSE_FILE): Redefine.
19136         * c-lex.c: Include c-common.h.
19137         (yyparse): Rename c_common_parse_file.  Call yyparse.
19138         * c-parse.in (yyparse): Remove macro.
19139         * c-tree.h (yyparse_1): Remove.
19140         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
19141         (LANG_HOOKS_INITIALIZER): Update.
19142         * langhooks.h (struct lang_hoooks): New hook parse_file.
19143         * toplev.c (compile_file): Use parse_file hook.
19144         * tree.h (yyparse): Remove.
19145         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
19146
19147 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
19148
19149         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
19150         float_truncate, not fix.
19151         ("*truncdfsf2_real"): Ditto.
19152         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
19153
19154         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
19155
19156 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
19157
19158         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
19159         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
19160         where appropriate.  Make the second reference to
19161         leaf_function_p a function call, as intended.  Reindented.
19162
19163         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
19164         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
19165
19166         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
19167         add register to non-constant into sp.
19168
19169         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
19170         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
19171         (mips16_gp_pseudo_rtx): Lose.
19172         (INIT_EXPANDERS): Deleted.
19173         * config/mips/mips.c (mips_init_machine_status): New.
19174         (mips_free_machine_status): New.
19175         (mips_mark_machine_status): New.
19176         (override_options): Set them.
19177         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
19178         (struct machine_function): ... new.  Replaced all references.
19179         (mips_add_gc_roots): Don't mark them.
19180         (embedded_pic_fnaddr_reg): New, extracted from...
19181         (embedded_pic_offset): ... here.
19182         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
19183         (movsi): Likewise.
19184
19185 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
19186
19187         * cppinit.c: Revert -MD removal.
19188
19189 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19190
19191         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
19192         soft registers by default for 68HC12.
19193         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
19194         when compiling with -fomit-frame-pointer.
19195         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
19196         (expand_epilogue): Likewise.
19197         (m68hc11_gen_rotate): Use exg when rotating by 8.
19198
19199 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19200
19201         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
19202         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
19203         (splits): Remove unused add splits.
19204         ("*addhi3_68hc12"): Tune constraints.
19205         ("addhi_sp"): Try to use X instead of Y in all cases and if the
19206         constant fits in 8-bits and D is dead use abx/aby instructions.
19207         ("*addhi3"): Remove extern declaration of ix_reg.
19208         ("*subsi3"): Optimize and provide new split.
19209         ("subhi3"): Cleanup.
19210         ("*subhi3_sp"): Avoid saving X if we know it is dead.
19211         (arith splits): For 68hc12 save the address register on the stack
19212         and do the arithmetic operation with a pop.
19213
19214 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19215
19216         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
19217         allocating QImode in address registers.
19218         ("*movqi_m68hc11"): Likewise.
19219
19220 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
19221
19222         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
19223
19224 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
19225
19226         * cppinit.c (print_help): Display -MD and -MMD.
19227         Don't display usage string.  Update assertion syntax and
19228         typo.
19229         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
19230         (cpp_handle_option): Update.
19231
19232 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
19233
19234         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
19235         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
19236         and define it so that regardless of target CPU size,
19237         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
19238         of "int" rather than "long."
19239
19240 2002-03-15  Richard Henderson  <rth@redhat.com>
19241
19242         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
19243         size as a tree.
19244
19245 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19246
19247         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
19248         ("tstqi" split): Avoid using memory for tstqi on address register.
19249         (splits): Remove constraints.
19250         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
19251         ("cmpdf", "cmpsf"): Remove since not used.
19252         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
19253         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
19254
19255 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19256
19257         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
19258         ("neghi2"): Tighten constraints.
19259         ("one_cmplsi2"): Optimize and simplify split.
19260         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
19261
19262 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19263
19264         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
19265         and split of AND operation to clear the upper bits.
19266         ("*logicalsi3_zextqi"): Likewise.
19267         ("*logicallhi3_zexthi_ashift8"): Likewise.
19268         ("*logicalsi3_silshr16"): Likewise.
19269         ("logicalsi3_silshl16"): Likewise.
19270         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
19271
19272 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19273
19274         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
19275         (m68hc11_indirect_p): New function.
19276         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
19277         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
19278         TARGET_M6812.
19279         (asm_print_register): Likewise.
19280         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
19281         (m68hc11_indirect_p): Declare.
19282         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
19283         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
19284         (TARGET_SWITCHES): New option -mrelax.
19285         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
19286         destination.
19287         ("iorsi3", "xorsi3"): Likewise.
19288         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
19289         ("*andhi3_mem"): New to handle destination in memory with bclr
19290         and a scratch register.
19291         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
19292         ("*andhi3_const"): New when operand2 is constant.
19293         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
19294         ("*andhi3_gen"): Cleanup of the old "andhi3".
19295         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
19296         ("xorqi3"): Update constraints.
19297
19298 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19299
19300         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
19301         for reg_equiv_memory_loc when the operand is a register that does
19302         not get a hard register (stack location).
19303         (tst_operand): After reload, accept all memory operand.
19304         (symbolic_memory_operand): Fix detection of symbolic references.
19305         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
19306         accept symbols and any constant.
19307
19308 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19309
19310         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
19311         note on the insn that sets the soft frame register.
19312         (must_parenthesize): ix and iy are also reserved names.
19313         (print_operand_address): One more place where parenthesis are required
19314         to avoid confusion with register names.
19315         (m68hc11_gen_movhi): Allow push of stack pointer.
19316         (m68hc11_check_z_replacement): Fix handling of parallel with a
19317         clobber.
19318         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
19319         the replacement register is.
19320         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
19321         and D8_REGS classes.
19322         (MODES_TIEABLE_P): All modes are tieable except QImode.
19323
19324 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19325
19326         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
19327         (___subdi3): Likewise.
19328         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
19329         (__map_data_section): Optimize 68hc11 case.
19330
19331 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19332
19333         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
19334         than a shift to avoid adding a register with itself.
19335         (m68hc11_memory_move_cost): Take into account NO_REGS.
19336         (m68hc11_register_move_cost): Update and use memory move cost
19337         for soft registers.
19338         (m68hc11_address_cost): Make cost of valid offset not 0 so that
19339         it gives more opportunities to cse to optimize.
19340         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
19341         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
19342
19343 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
19344
19345         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
19346         * c-common.def (CLEANUP_STMT): New tree node.
19347         * c-common.h (CLEANUP_DECL): New macro.
19348         (CLEANUP_EXPR): Likewise.
19349         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
19350         * expr.c (expand_expr): Tidy.
19351         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
19352         * tree-inline.c (initialize_inlined_parameters): Clean up
19353         new local variables.
19354
19355 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
19356
19357         PR bootstrap/4128
19358         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
19359         before movrXX only, use reg_overlap_mentioned_p.
19360         Only special case NE if just one insn can be generated.
19361
19362 2002-03-15  Jason Merrill  <jason@redhat.com>
19363
19364         * varasm.c (assemble_variable): Call resolve_unique_section before
19365         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
19366         of error_mark_node.
19367
19368 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
19369
19370         PR target/5170
19371         * arm.md (split pattern for thumb shiftable immediates): Add comment
19372         explaining non-obvious test.
19373
19374 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
19375
19376         PR target/5712
19377         * arm.md (movaddr, movaddr_insn): Delete.
19378
19379 2002-03-15  Jason Merrill  <jason@redhat.com>
19380
19381         * toplev.c (wrapup_global_declarations): Clarify variable handling.
19382         -fkeep-static-consts doesn't apply to comdats.
19383
19384 2002-03-14  Richard Henderson  <rth@redhat.com>
19385
19386         * c-decl.c: Include c-pragma.h.
19387         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
19388         (finish_function): Tidy.
19389         * c-pragma.c: Include c-common.h.
19390         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
19391         (handle_pragma_weak): Use them.
19392         (init_pragma): Register pending_weaks.
19393         * c-pragma.h (maybe_apply_pragma_weak): Declare.
19394         * print-tree.c (print_node): Print DECL_WEAK.
19395         * varasm.c (mark_weak_decls): Remove.
19396         (remove_from_pending_weak_list): Remove.
19397         (add_weak): Remove.
19398         (asm_emit_uninitialised): Call globalize_decl for weak commons.
19399         (weak_decls): Make a tree_list.
19400         (declare_weak): Cons weak_decls directly.
19401         (globalize_decl): Remove weak_decls elements directly.
19402         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
19403         symbols.  Don't pretend to handle aliases.
19404         (init_varasm_once): Update weak_decls registry.
19405         * Makefile.in: Update dependencies.
19406
19407 2002-03-14  Richard Henderson  <rth@redhat.com>
19408
19409         PR target/5312
19410         * config/ia64/ia64.c: Include tm_p.h last.
19411         (gen_nop_type): Remove duplicate definition.
19412         (cycle_end_fill_slots): Set sched_data for second L slot.
19413         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
19414         (nop_cycles_until): Fix typos.
19415
19416 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
19417
19418         PR optimization/5891
19419         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
19420
19421 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
19422
19423         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
19424           descriptors correctly.
19425
19426 2002-03-14  Michael Meissner  <meissner@redhat.com>
19427
19428         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
19429         100, allowing MAX_UNROLLED_INSNS to be overridden.
19430
19431         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
19432         --param.
19433
19434         * unroll.c (params.h): Include.
19435         (MAX_UNROLLED_INSNS): Delete, now in params.h.
19436
19437         * doc/invoke.texi (--param max-unroll-insns): Document.
19438
19439         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
19440
19441 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
19442
19443         * arm.md: Fix warnings about constraints in peepholes and splits.
19444
19445 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
19446
19447         * cpphash.h (struct lexer_state): Remove line_extension member.
19448         * cpplib.c (dequote_string, do_linemarker): New functions.
19449         (linemarker_dir): New data object.
19450         (DIRECTIVE_TABLE): No longer need to interpret #line in
19451         preprocessed source.  Delete obsolete comment about return
19452         values of handlers.
19453         (end_directive, directive_diagnostics, _cpp_handle_directive):
19454         Don't muck with line_extension.
19455         (directive_diagnostics): No need to issue warnings for
19456         linemarkers here.
19457         (_cpp_handle_directive): Issue warnings for linemarkers here,
19458         when appropriate.  Dispatch linemarkers to do_linemarker, not
19459         do_line.
19460         (do_line): Code to handle linemarkers split out to do_linemarker.
19461         Convert escape sequences in filename argument, both places.
19462
19463         * cppmacro.c (quote_string): Rename cpp_quote_string and
19464         export.  All callers changed.
19465         * cpplib.h (cpp_quote_string): Prototype.
19466         * cppmain.c (print_line): Call cpp_quote_string on to_file
19467         before printing it.
19468
19469         * doc/cpp.texi: Document that escapes are now interpreted in
19470         #line and in linemarkers, and that non-printing characters are
19471         converted to octal escapes when linemarkers are generated.
19472
19473 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
19474
19475         * emit-rtl.c (try_split): Use delete_insns.
19476         * recog.c (split_all_insns): Fix terminating condition.
19477
19478 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
19479             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
19480
19481         PR target/5828
19482         * arm.c (arm_output_epilogue): Fix floating-point register save
19483         adjustment when using a frame pointer.
19484
19485 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
19486
19487         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
19488         * config/mips/mips.c (compute_frame_size): Retrofit them here.
19489         (save_restore_insns, mips_expand_epilogue): And here.
19490         (build_mips16_call_stub): And here.
19491         (mips_function_value): Use the new macros to decide whether a single
19492         or complex float can be returned in floating-point registers.  Return
19493         a parallel rtx in the complex case.
19494
19495 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
19496
19497         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
19498         call after liveness analysis.
19499
19500         * recog.c (split_insn): Use delete_insn_and_edges.
19501
19502         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
19503         instructions to have branch prediction notes.
19504         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
19505
19506 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
19507
19508         * configure.in: Don't pass -Wno-long-long to a ADA compiler
19509         that doesn't support it.
19510         * configure: Regenerate.
19511
19512 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
19513
19514         PR target/5626
19515         * config/sparc/sparc.md (normal_branch, inverted_branch,
19516         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
19517         inverted_fp_branch): Adjust calls to output_cbranch.
19518         Set length attribute.
19519         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
19520         output_v9branch.  Set length attribute.
19521         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
19522         predicates.
19523         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
19524         (output_cbranch): Likewise.  Handle far branches.
19525         (output_v9branch): Handle far branches.
19526         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
19527         Adjust prototypes.
19528         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
19529         noov_compare64_op predicates.
19530
19531 2002-03-13  Jason Merrill  <jason@redhat.com>
19532
19533         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
19534         into the function and constify it.
19535         * gthr-dce.h, gthr-solaris.h: Likewise.
19536
19537 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
19538
19539         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
19540         * config/rs6000/rs6000.c (rs6000_va_arg): Use
19541         std_expand_builtin_va_arg if not ABI_V4.
19542
19543 2002-03-13  Jason Merrill  <jason@redhat.com>
19544
19545         * varasm.c (globalize_decl): New fn.
19546         (assemble_start_function): Use it.
19547         (asm_emit_uninitialized): Use it.
19548         (assemble_alias): Use it.
19549         (assemble_variable): Use it.
19550
19551 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
19552
19553         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
19554         2002-03-12 internal visibility change.
19555         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
19556         visibility into SYMBOL_REF_FLAG.
19557
19558 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
19559
19560         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
19561         VOIDmode operand.  Add compile-time optimization for constant results.
19562
19563 2002-03-12  Jason Merrill  <jason@redhat.com>
19564
19565         * c-typeck.c (convert_for_assignment): Don't allow conversions
19566         between pointers and references.  Only allow lvalues to convert to
19567         reference.
19568
19569 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
19570
19571         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
19572         before prologue, to avoid scheduling problems.
19573
19574 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
19575
19576         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
19577         (ELIMINABLE_REGS): Add sfp->sp.
19578         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
19579
19580 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
19581
19582         PR optimization/5892
19583         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
19584
19585 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
19586
19587         * loop.c (basic_induction_var): Don't call convert_modes if mode
19588         classes are different.
19589
19590 2002-03-12  Richard Henderson  <rth@redhat.com>
19591
19592         PR optimization/5901
19593         * function.c (reposition_prologue_and_epilogue_notes): Position
19594         the markers after/before the last/first insn not deleted.
19595
19596 2002-03-12  Richard Henderson  <rth@redhat.com>
19597
19598         PR optimization/5878
19599         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
19600         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
19601         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
19602
19603         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
19604         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
19605         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
19606
19607         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
19608         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
19609         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
19610         also.  Don't set it if not flag_pic.
19611         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
19612         to be INVALID_REGNUM when not used.
19613
19614 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
19615
19616         * expmed.c (store_bit_field): Reset alias set for memory.
19617         (extract_bit_field): Same.
19618
19619 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19620
19621         * c-common.c (c_tree_code_type, c_tree_code_length,
19622         c_tree_code_name, add_c_tree_codes): Delete.
19623         * c-common.h (add_c_tree_codes): Delete.
19624         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
19625         Define.
19626         * c-objc-common.c (c_objc_common_init): Don't call
19627         add_c_tree_codes, instead set lang_unsafe_for_reeval.
19628         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
19629         objc_tree_code_name, add_objc_tree_codes): Delete.
19630         (objc_init): Don't call add_objc_tree_codes.
19631         * objc/objc-lang.c (tree_code_type, tree_code_length,
19632         tree_code_name): Define.
19633         * toplev.c (lang_independent_init): Don't set
19634         tree_code_length[IDENTIFIER_NODE].
19635         * tree.c (tree_code_type, tree_code_length, tree_code_name):
19636         Delete definitions, moved to language front-ends.
19637         * tree.def (IDENTIFIER_NODE): Hardwire the length.
19638         * tree.h (tree_code_type, tree_code_length, tree_code_name):
19639         Const-ify.
19640         (tree_code_length): Change type to unsigned char.
19641
19642 2002-03-12  Richard Henderson  <rth@redhat.com>
19643
19644         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
19645         internal visibility change.
19646
19647 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
19648
19649         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
19650         validize_mem() instead of change_address to avoid clobbering
19651         memory attributes.
19652
19653 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
19654
19655         * c-lex.h (position_after_whitespace): Remove.
19656
19657 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
19658
19659         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
19660         (lex_string): Use unsigned char pointers.
19661
19662 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
19663
19664         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
19665         is not a valid memory_operand.
19666
19667 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
19668
19669         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
19670         * config/xtensa/lib1funcs.asm: Fix copyright to include
19671         special case for libgcc files.
19672         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
19673         (__divsi3): Likewise.
19674         (__umodsi3): Likewise.
19675         (__modsi3): Likewise.
19676         * config/xtensa/lib2funcs.S: Fix copyright to include
19677         special case for libgcc files.
19678
19679 2002-03-12  Tom Rix  <trix@redhat.com>
19680
19681         * collect2.c (resolve_lib_name): Move outside of
19682         OBJECT_FORMAT_COFF ifdef.
19683         (ignore_library): Same.
19684
19685 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
19686
19687         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
19688
19689 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
19690
19691         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
19692         to function_section before writing out the constant pool.
19693
19694 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
19695
19696         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
19697         zero_constant.
19698         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
19699
19700 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
19701
19702         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
19703         (adddi3): Likewise.
19704         (movdf): Likewise.
19705         (movdi): Likewise.
19706         (cmpsi splitter): Likewise.
19707         (modsi3): Fail if <= 0.
19708         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
19709         redundant test when HOST_BITS_PER_WIDE_INT != 32.
19710         (reg_or_sub_cint64_operand): Likewise.
19711         (num_insns_constant_wide): Optimize sign extension.
19712         (rs6000_legitimize_address): Likewise.
19713
19714 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
19715
19716         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
19717         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
19718
19719 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
19720
19721         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
19722         address calculation.
19723
19724 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
19725
19726         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
19727         scratch register to DImode / TImode.
19728         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
19729         register used does not overlap the target.
19730
19731 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19732
19733         * Makefile.in (debug.o): Depend on debug.h.
19734         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
19735         * debug.c (do_nothing_debug_hooks): Likewise.
19736         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
19737         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
19738         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
19739         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
19740         * dwarfout.c (dwarf_debug_hooks): Likewise.
19741         * integrate.c (output_inline_function): Likewise.
19742         * objc/objc-act.c (synth_module_prologue): Likewise.
19743         * sdbout.c (sdb_debug_hooks): Likewise.
19744         * toplev.c (debug_hooks): Likewise.
19745         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19746
19747 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19748
19749         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
19750         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
19751         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
19752         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
19753         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
19754         * defaults.h (POINTER_SIZE): Define.
19755         * doc/tm.texi (POINTER_SIZE): Document default.
19756
19757 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19758
19759         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
19760
19761 2002-03-11  Richard Henderson  <rth@redhat.com>
19762
19763         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
19764         if rebuild_label_notes_after_reload.
19765
19766 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
19767
19768         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
19769         emit pic register load if "internal" visibility.
19770         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
19771         (cris_expand_builtin_va_arg): Do all computations on trees.
19772
19773 2002-03-11  Richard Henderson  <rth@redhat.com>
19774
19775         * rtlanal.c: Include recog.h.
19776         (keep_with_call_p): Fix thinko.
19777         * Makefile.in (rtlanal.o): Update dependencies.
19778
19779 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
19780
19781         * genflags.c (gen_insn): Use IS_VSPACE.
19782         * genoutput.c (output_insn_data): Likewise.
19783         (process_template): Likewise.
19784
19785 2002-03-11  Richard Henderson  <rth@redhat.com>
19786
19787         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
19788
19789 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
19790
19791         * Makefile.in: Update.
19792         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
19793         Update documentation.
19794         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
19795         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
19796
19797 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
19798
19799         * Makefile.in: Give texi2pod its input file as a command line
19800         argument, not on stdin.
19801
19802 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
19803             Daniel Berlin  <dan@dberlin.org>
19804
19805         C++ alias analysis improvement.
19806         * alias.c (record_component_aliases): Record aliases for base
19807         classes too.
19808
19809 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
19810
19811         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
19812
19813 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
19814
19815         * toplev.c (vms_fopen): Remove, not needed.
19816
19817         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
19818
19819         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
19820
19821         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
19822         for FP, already done later.
19823
19824         * toplev.c (debug_args): Add entry for VMS_DEBUG.
19825         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
19826
19827 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
19828
19829         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
19830         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
19831         LARGEST_EXPONENT_IS_NORMAL for the given mode.
19832         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
19833         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
19834         (ediv, emul, eldexp, esqrt): Likewise.
19835         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
19836         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
19837         (saturate): New function.
19838         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
19839         (make_nan): Use a saturation value instead of a NaN if
19840         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
19841         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
19842         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
19843         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
19844         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
19845         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
19846         !ROUND_TOWARDS_ZERO.
19847         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
19848         (ROUND_TOWARDS_ZERO): Document.
19849
19850 2002-03-11  Andreas Jaeger  <aj@suse.de>
19851
19852         * cfg.c (dump_flow_info): Remove unused variable.
19853
19854 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
19855
19856         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
19857         computations on trees.
19858
19859 2002-03-10  Richard Henderson  <rth@redhat.com>
19860
19861         PR 5693:
19862         * reload.c (copy_replacements_1): New.
19863         (copy_replacements): Use it to recurse through the rtx.
19864
19865 2002-03-10  Richard Henderson  <rth@redhat.com>
19866
19867         * loop.c (strength_reduce): Compute number of iterations as
19868         unsigned HOST_WIDE_INT.
19869
19870 2002-03-10  Richard Henderson  <rth@redhat.com>
19871
19872         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
19873         to move away from the end of the block.
19874
19875 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
19876
19877         PR preprocessor/5899
19878         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
19879
19880 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19881
19882         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
19883
19884         * attribs.c (decl_attributes): Fix signed/unsigned warning.
19885
19886 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
19887
19888         * config/mmix/mmix.c: Improve comments.
19889         (mmix_target_asm_function_prologue): Drop variable
19890         empty_stack_frame.  Don't allocate unused slot above fp.
19891         (mmix_target_asm_function_epilogue): Mirror prologue changes.
19892         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
19893         brace in first column.
19894         (enum reg_class): Ditto.
19895         (FIRST_PARM_OFFSET): Now 0.
19896         (USER_LABEL_PREFIX): Remove #if 0:d definition.
19897
19898 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19899
19900         * combine.c (make_extraction): Fix error in last change.
19901
19902 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19903
19904         * c4x.c (c4x_fp_reglist): Const-ify.
19905         * cris.c (cris_print_operand): Likewise.
19906         * i386.c (ix86_va_arg): Likewise.
19907         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
19908         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
19909         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
19910         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
19911         * mcore.h (regno_reg_class): Likewise.
19912         * mips.c (gen_int_relational): Likewise.
19913         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
19914         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
19915         * pdp11.c (move_costs): Likewise.
19916         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
19917         * s390.c (s390_branch_condition_mnemonic, regclass_map):
19918         Likewise.
19919         * s390.h (regclass_map): Likewise.
19920         * sh.c (shift_amounts): Likewise.
19921         * sh.md (rotlsi3): Likewise.
19922
19923 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
19924
19925         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
19926         (ne0+5): Use new clobber to generate proper shift pattern.
19927         Patch by Michael Matz <matz@kde.org>.
19928
19929 2002-03-09  Andreas Schwab  <schwab@suse.de>
19930
19931         * gcc.c (validate_all_switches): Also handle `%W{...}'.
19932
19933 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
19934
19935         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
19936
19937 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
19938
19939         PR middle-end/5877
19940         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
19941         even for non-representable constants.
19942
19943 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19944
19945         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
19946         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
19947         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
19948         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
19949         (pop_function_context): Compute MAY_SHARE parameter for
19950         fixup_var_refs.
19951         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
19952         (gen_mem_addressof): Call fixup_var_refs with new parm.
19953
19954         * combine.c (make_extraction): Don't make extension of CONST_INT.
19955
19956 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
19957
19958         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
19959         in o32 and o64 ABIs.
19960         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
19961         but getting fixed-size structs passed in registers regardless of
19962         padding in o32 and o64 ABIs.
19963
19964         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
19965         offset before loading address of argument passed by transparent
19966         reference.
19967
19968 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19969
19970         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
19971
19972 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
19973
19974         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
19975         marker such that registers after it are saved.
19976
19977 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19978
19979         * sparc.c (arith_4096_operand): Fix error in last change.
19980
19981 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
19982
19983         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
19984         defaults for MEABI.
19985
19986 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
19987
19988         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
19989         vectors.
19990
19991 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
19992
19993         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
19994
19995 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
19996
19997         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
19998         removed; fix return value.
19999         * combine.c (combine_instructions): Dirtify blocks where we failed to
20000         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
20001         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
20002
20003 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20004
20005         * gcse.c (insert_insn_end_bb): Fix typo in last change.
20006
20007 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
20008
20009         * recog.c (peephole2_optimize): Re-distribute EH edges.
20010
20011 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
20012
20013         * expr.c (expand_expr): Use unsave lang hook.
20014         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
20015         (LANG_HOOKS_INITIALIZER): Update.
20016         * langhooks.h (struct lang_hooks): New hook unsave.
20017         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
20018         (unsave_expr_1): Remove unused lang_unsave_expr_now.
20019         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
20020         (unsave_expr_now): Remove.
20021         * tree.h (unsave_expr_now, lang_unsave,
20022         lang_unsave_expr_now): Remove.
20023         (lhd_unsave): New.
20024
20025 2002-03-08  Andreas Jaeger  <aj@suse.de>
20026
20027         * flow.c (propagate_block_delete_insn): Remove unused variable.
20028
20029 2002-03-08  Kazu Hirata  <kazu@hxi.com>
20030
20031         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
20032         insn length for memory load/store.
20033
20034 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20035
20036         * doc/install.texi (--with-libiconv-prefix): Document.
20037
20038 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
20039
20040         * doc/sourcebuild.texi: Fix typo.
20041
20042 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
20043
20044         PR c/3711
20045         * builtins.c (std_expand_builtin_va_arg): Do all computations on
20046         trees.
20047
20048 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20049
20050         * rtl.c (copy_most_rtx): Move from here ...
20051         * emit-rtl.c (copy_most_rtx): ... to here.
20052
20053 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
20054
20055         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
20056         SUBTARGET_CPP_SIZE_SPEC.
20057         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
20058
20059         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
20060
20061 2002-03-07  Matt Hiller  <hiller@redhat.com>
20062
20063         * gensupport.c (first_dir_md_include): Renamed from include;
20064         change all references.
20065         (last_dir_md_include): Renamed from last_include; change all
20066         references.
20067         (init_md_reader): Unconditionally initialize base_dir whether or
20068         not filename is a relative path.
20069
20070 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
20071
20072         * config/fp-bit.c (_unord_f2): Compile it in even if
20073         US_SOFTWARE_GOFAST is enabled.
20074
20075         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
20076         NULL_RTX.  Set all HFmode operations as NULL_RTX.
20077         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
20078         NULL_RTX, try reversing the comparison and the operands.
20079
20080 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
20081
20082         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
20083         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
20084         and MATCH_OP_DUP.
20085
20086 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
20087
20088         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
20089
20090 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
20091
20092         * basic-block.h (fixup_abnormal_edges): Declare.
20093         * reload1.c (fixup_abnormal_edges): New function.
20094         * reg-stack.c (convert_regs): Use it.
20095
20096         * gcse.c (insert_insn_end_bb): Handle trapping insns.
20097
20098         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
20099
20100 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
20101
20102         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
20103         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
20104         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
20105         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
20106         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
20107         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
20108         unless x and y could be infinite.
20109         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
20110         Check that the common type of both arguments is a real, even for
20111         targets without unordered comparisons.  Allow an integer argument
20112         to be compared against a real.
20113         (expand_tree_builtin): Use expand_unordered_cmp.
20114         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
20115         * cse.c (fold_rtx): Likewise.  Fix indentation.
20116         * fold-const.c (fold_real_zero_addition_p): New.
20117         (fold): Use it, and the new HONOR_... macros.
20118         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
20119         * jump.c (reversed_comparison_code_parts): After searching for
20120         the true comparison mode, use HONOR_NANS to decide whether it
20121         can be safely reversed.
20122         (reverse_condition_maybe_unordered): Remove IEEE check.
20123         * simplify-rtx.c (simplify_binary_operation): Use the new macros
20124         to decide which simplifications are valid.  Allow the following
20125         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
20126         and (a - -b) to (a + b).
20127         (simplify_relational_operation): Use HONOR_NANS.
20128         * doc/tm.texi: Document the MODE_HAS_... macros.
20129
20130 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
20131
20132         * combine.c (simplify_comparison): If simplifying a logical shift
20133         right and compare with constant, force the comparison to unsigned.
20134
20135 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
20136
20137         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
20138
20139         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
20140         -mabi=no-altivec
20141         (alt_reg_names): Remove % for vrsave.
20142
20143 2002-03-06  Richard Henderson  <rth@redhat.com>
20144
20145         PR optimization/5844
20146         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
20147         if used indicates we've already emitted one copy of an operand.
20148         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
20149         (gen_split): Supply a non-null used.
20150
20151 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
20152
20153         * reload1.c (reload): Unshare all rtl after reload is done.
20154
20155         * simplify-rtx.c (simplify_plus_minus): Do not abort,
20156         but simply fail if the expression is too complex to simplify.
20157         (simplify_gen_binary): Handle simplify_plus_minus failures.
20158
20159 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
20160
20161         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
20162         consistently call delete_trivially_dead_insns after CSE and GCSE;
20163         fix DFI_life dumping; do jump threading after liveness; do crossjumping
20164         after liveness2; update comment in last crossjumping.
20165         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
20166
20167 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
20168
20169         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
20170         after completing fast dead code elimination.
20171
20172         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
20173         COMPARE operator.
20174
20175 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
20176
20177         * version.c:  Fix misplaced leading blanks on first line.
20178
20179 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
20180
20181         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
20182
20183 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
20184
20185         * cfgcleanup.c (mentions_nonequal_regs): New function.
20186         (thread_jump): Use it.
20187         * toplev.c (rest_of_compilation): Run jump threading after
20188         liveness.
20189
20190 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
20191
20192         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
20193         patch.
20194
20195 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
20196
20197         * predict.c (estimate_bb_frequencies): Do not reload the
20198         frequencies from notes.
20199
20200 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
20201
20202         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
20203         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
20204
20205         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
20206         delete_noop_moves): Return indeger.
20207         * flow.c (ndead): New variable.
20208         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
20209         BB argument; update callers.
20210         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
20211         (life_analysis): Do not call purge_all_dead_edges.
20212         (update_life_info): Return number of deleted insns; print statistics.
20213         (update_life_info_in_dirty_blocks): likewise.
20214         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
20215         return number of insns deleted.
20216
20217         * cse.c: Include timevar.h
20218         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
20219         iterate until stabilizes; print statistics; return number of killed
20220         insns.
20221         * Makefile.in: (cse.o): Add timevar.h dependency
20222         * rtl.h (delete_trivially_dead_insns): New.
20223         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
20224         * toplev.c (rest_of_compilation): Update callers.
20225
20226         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
20227         (try_optimize_cfg): Do not update liveness.
20228         (cleanup-cfg): Loop until try_optimize_cfg and dead code
20229         removal stabilizes; use delete_trivially_dead_insns.
20230
20231         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
20232
20233 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
20234
20235         * cppmain.c (setup_callbacks): Disable #pragma and #ident
20236         callbacks when processing assembly language.
20237
20238 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20239
20240         * pa.h (ASM_FILE_END): Define.
20241         * som.h (ASM_FILE_END): Delete.
20242
20243         * pa.c (function_arg): Don't pass floats in general registers in
20244         indirect calls if TARGET_ELF32.
20245
20246 2002-03-05  Richard Henderson  <rth@redhat.com>
20247
20248         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
20249
20250 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
20251
20252         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
20253
20254 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
20255
20256         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
20257         -r command line.  Don't hide any symbols if not building
20258         shared libgcc.
20259
20260 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
20261
20262         * cfg.c (dump_flow_info): Warn about profile mismatches.
20263         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
20264         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
20265
20266 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
20267
20268         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
20269         wide volatile memory by parts.
20270
20271 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
20272
20273         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
20274         is NULL.
20275
20276 2002-03-05  Richard Henderson  <rth@redhat.com>
20277
20278         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
20279
20280 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
20281
20282         * toplev.c (documented_lang_options): Document more
20283         language-specific options.
20284         * doc/invoke.texi (Warning Options): Correct documentation for
20285         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
20286         * c-decl.c (c_decode_option): Use a table to handle warning options.
20287
20288 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
20289
20290         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
20291         parameter to mmix_encode_section_info.
20292         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
20293         relocatably.  Always produce ELF, not mmo if linking relocatably.
20294         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
20295         first is non-zero, don't add symbol prefix.
20296         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
20297         prototype accordingly.
20298
20299 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
20300
20301         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
20302
20303 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
20304
20305         * configure.in: Increase required makeinfo version to 4.1.
20306         * configure: Regenerate.
20307
20308 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
20309
20310         * .cvsignore: Remove *.info* and genrtl*; these files are generated
20311         elsewhere now.
20312
20313 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
20314
20315         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
20316         * doc/invoke.texi: Fix @math uses.
20317
20318 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
20319
20320         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
20321         removal
20322
20323 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
20324
20325         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
20326         (powerpc-*-eabisimaltivec*): Same.
20327
20328         * config/rs6000/t-ppcendian: New.
20329
20330 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20331
20332         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
20333         nonimmediate_src_operand and nonimmediate_lsrc_operand to
20334         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
20335
20336 2002-03-03  Richard Henderson  <rth@redhat.com>
20337
20338         * toplev.c (rest_of_decl_compilation): Revert last two changes.
20339
20340 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
20341
20342         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
20343         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
20344         tree.c, config/m68k/m68k.c:
20345         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
20346         REAL_ARITHMETIC blocks unconditional.  Delete some further
20347         #ifdef blocks predicated on REAL_ARITHMETIC.
20348         * flags.h, toplev.c: Delete remaining references to
20349         flag_pretend_float.
20350
20351         * doc/invoke.texi: Remove documentation of -fpretend-float.
20352         * doc/tm.texi: Describe the various REAL_* macros as provided by
20353         real.h, not by the target configuration files.
20354
20355         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
20356         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
20357         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
20358         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
20359         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
20360         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
20361         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
20362         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
20363         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
20364         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
20365         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
20366         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
20367         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
20368         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
20369         config/xtensa/xtensa.h:
20370         Do not define, undefine, or mention in comments any of
20371         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
20372         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
20373         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
20374         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
20375         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
20376         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
20377         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
20378         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
20379         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
20380
20381 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20382
20383         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
20384         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
20385         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
20386         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
20387         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
20388         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
20389         Delete.
20390         * defaults.h (BITS_PER_WORD): Define.
20391         * doc/tm.texi (BITS_PER_WORD): Document default value.
20392
20393         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
20394         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
20395         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
20396
20397 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20398
20399         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
20400         lieu of explicit sizeof/sizeof.
20401         * i386.c (override_options, ix86_init_mmx_sse_builtins,
20402         ix86_expand_builtin): Likewise.
20403         * mips.c (mips_add_gc_roots): Likewise.
20404         * mmix.c (mmix_output_condition): Likewise.
20405         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
20406         altivec_init_builtins): Likewise.
20407         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
20408         * cppexp.c (Nsuff, parse_number): Likewise.
20409         * cppinit.c (builtin_array_end): Likewise.
20410         * gcc.c (n_default_compilers, process_command): Likewise.
20411         * genpreds.c (output_predicate_decls): Likewise.
20412         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
20413         * lcm.c (N_ENTITIES): Likewise.
20414         * stor-layout.c (set_sizetype): Likewise.
20415
20416 2002-03-03  Richard Henderson  <rth@redhat.com>
20417
20418         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
20419         for types or labels.
20420
20421 2002-03-03  Richard Henderson  <rth@redhat.com>
20422
20423         * c-decl.c (start_decl): Initialized variables are not common.
20424
20425 2002-03-02  Per Bothner  <per@bothner.com>
20426
20427         * gcc.c (option_map):  Suport new --bootclasspath option.
20428         --CLASSPATH is now just an alias for --classpath.
20429
20430 2002-03-02  Richard Henderson  <rth@redhat.com>
20431
20432         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
20433         load if "internal" visibility.
20434         * doc/extend.texi: Document visibility meanings.
20435
20436 2002-03-02  Richard Henderson  <rth@redhat.com>
20437
20438         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
20439         to functions as well.
20440
20441 2002-03-02  Richard Henderson  <rth@redhat.com>
20442
20443         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
20444         (handle_visibility_attribute): Don't call assemble_visibility.
20445         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
20446         without asmspec.  Invoke assemble_alias when needed.
20447         * varasm.c (maybe_assemble_visibility): New.
20448         (assemble_start_function, assemble_variable, assemble_alias): Use it.
20449
20450 2002-03-02  Richard Henderson  <rth@redhat.com>
20451
20452         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
20453         invoke ENCODE_SECTION_INFO with first call flag.
20454
20455         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
20456         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
20457         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
20458         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
20459         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
20460         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
20461         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
20462         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
20463         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
20464         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
20465         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
20466         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
20467         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
20468         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
20469         config/mcore/mcore-protos.h, config/mcore/mcore.c,
20470         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
20471         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
20472         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
20473         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
20474         config/sh/sh.h, config/sparc/sparc.h,
20475         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
20476         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
20477         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
20478         FIRST argument.  As needed, examine it and do nothing.
20479
20480         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
20481         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
20482         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
20483
20484         * config/arm/t-pe (pe.o): Add dependencies.
20485
20486 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20487
20488         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
20489         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
20490         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
20491         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
20492         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
20493         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
20494         * defaults.h (BITS_PER_UNIT): Define.
20495         * doc/tm.texi (BITS_PER_UNIT): Document default value.
20496
20497 2002-03-02  Kazu Hirata  <kazu@hxi.com>
20498
20499         * config/h8300/h8300-protos.h: Add a prototype for
20500         compute_a_shift_length.
20501         * config/h8300/h8300.c (h8300_asm_insn_count): New.
20502         (compute_a_shift_length): Likewise.
20503         (h8300_adjust_insn_length): Do not adjust insn length of shift
20504         insns.
20505         * config/h8300/h8300.md (anonymous shift patterns): Use
20506         compute_a_shift_length.
20507
20508 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20509
20510         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
20511         trunc_int_for_mode.
20512
20513         * emit-rtl.c (offset_address): Call update_temp_slot_address.
20514
20515 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20516
20517         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
20518         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
20519         * flags.h (flag_zero_initialized_in_bss): Declare.
20520         * toplev.c (flag_zero_initialized_in_bss): New flag.
20521         (lang_independent_options): Add flag_zero_initialized_in_bss.
20522         * tree.c (initializer_zerop): New function.
20523         * tree.h (initializer_zerop): Declare.
20524         * varasm.c (assemble_variable): If we can emit bss, put zero
20525         initializers in the bss section.
20526
20527 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
20528
20529         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
20530         like more than one symbol per .weak directive.
20531
20532 2002-03-01  Richard Henderson  <rth@redhat.com>
20533
20534         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
20535         adjust argument_pointer by pretend_args_size.
20536         (ia64_va_start): Adjust va_start address by -pretend_args_size.
20537
20538 2002-03-01  Kazu Hirata  <kazu@hxi.com>
20539
20540         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
20541
20542 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
20543
20544         * toplev.c (rest_of_compilation): Delete dead jumptables before
20545         loop.
20546         * flow.c (delete_dead_jumptables): Make global.
20547         * rtl.h (delete_dead_jumptables): Declare.
20548
20549 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
20550
20551         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
20552         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
20553         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
20554
20555 2002-03-01  Kazu Hirata  <kazu@hxi.com>
20556
20557         * config/h8300/h8300-protos.h: Fix formatting.
20558         * config/h8300/h8300.c: Likewise.
20559         * config/h8300/h8300.h: Likewise.
20560
20561 2002-03-01  Kazu Hirata  <kazu@hxi.com>
20562
20563         * config/h8300/h8300.c (print_operand): Support 16-bit
20564         constant addresses.
20565         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
20566
20567 2002-02-28  Richard Henderson  <rth@redhat.com>
20568
20569         * expmed.c (store_bit_field): Prevent generation of CONCATs;
20570         pun complex values as integers; use gen_lowpart instead of
20571         gen_rtx_SUBREG.
20572         (extract_bit_field): Likewise.
20573
20574 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
20575             David Edelsohn  <edelsohn@gnu.org>
20576
20577         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
20578         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
20579         (SUPPORTS_WEAK): Likewise.
20580         * output.h (add_weak): Add tree param.
20581         * varasm.c (add_weak): Likewise.  Save decl.
20582         (struct weak_syms): Add decl field.
20583         (mark_weak_decls): New function.
20584         (init_varasm_once): ggc_add_root mark_weak_decls.
20585         (assemble_start_function): Use ASM_WEAKEN_DECL.
20586         (assemble_variable): Likewise.
20587         (assemble_alias): Likewise.
20588         (declare_weak): Pass decl to add_weak.
20589         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
20590         (remove_from_pending_weak_list): Declare and define for
20591         ASM_WEAKEN_DECL.
20592         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
20593         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
20594         * defaults.h (SUPPORTS_WEAK): Likewise.
20595         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
20596         .weak for code sym.  Do emit .size for descriptor sym.
20597         (ASM_DECLARE_FUNCTION_SIZE): Define.
20598         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
20599         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
20600         .lglobl unless TARGET_XCOFF.  Formatting fixes.
20601         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
20602         .weak for code sym.
20603         (HANDLE_PRAGMA_WEAK): Remove.
20604         (ASM_WEAKEN_LABEL): Remove.
20605         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
20606
20607 2002-03-01  Jason Merrill  <jason@redhat.com>
20608
20609         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
20610         (TARGET_EXPR_CLEANUP): New macro.
20611
20612 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
20613
20614         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
20615         to take ptr_extend into account as third type of extension.
20616         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
20617         fields used by SUBREG_PROMOTED_UNSIGNED_P.
20618         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
20619         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
20620         * calls.c (precompute_arguments): Use new macro.
20621         (expand_call): Ditto.
20622         * combine.c (nonzero_bits): Ditto.
20623         (record_promoted_value): Ditto.
20624         * expr.c (store_expr): Ditto.
20625         (expand_expr): Ditto.
20626         * function.c (assign_parms): Ditto.
20627
20628 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
20629
20630         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
20631         override -shared and -shared-libgcc.
20632
20633 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
20634
20635         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
20636         of "ultrasparc".
20637         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
20638         to be broken.
20639
20640 2002-02-28  Richard Henderson  <rth@redhat.com>
20641
20642         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
20643         4 cycle latency from MM producers.
20644         (ia64_internal_sched_reorder): Likewise with pipeline flush.
20645
20646 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
20647
20648         * mklibgcc.in: Don't use GNU make extension.
20649
20650 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
20651
20652         * c-parse.in (STATIC): New terminal.
20653         (scspec): New non-terminal.  Update productions accordingly.
20654         (program): Remove bogus ifc / end ifc.
20655         (array_declarator): Simplify production using STATIC.
20656
20657 2002-02-28  Jim Meyering  <meyering@lucent.com>
20658
20659         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
20660         \a still means TARGET_BELL.
20661
20662 2002-02-28  Richard Henderson  <rth@redhat.com>
20663
20664         * haifa-sched.c (sched_emit_insn): New.
20665         (schedule_block): Use last_scheduled_insn to track last insn.
20666         * sched-int.h (sched_emit_insn): Prototype.
20667         * config/ia64/ia64.c (last_issued): Remove.
20668         (ia64_variable_issue): Don't set it.
20669         (nop_cycles_until): Use sched_emit_insn.
20670
20671 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
20672
20673         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
20674         extended constants.
20675
20676 2002-02-28  Kazu Hirata  <kazu@hxi.com>
20677
20678         * config/h8300/h8300.c: Fix formatting.
20679         * config/h8300/h8300.h: Likewise.
20680
20681 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20682
20683         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
20684         which may overwrite the high byte of the frame pointer.
20685
20686 2002-02-28  Bo Thorsen  <bo@suse.de>
20687
20688         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
20689         (STARTFILE_SPEC): Add 64 bit files.
20690         (ENDFILE_SPEC): Likewise.
20691
20692 2002-02-28  Jason Merrill  <jason@redhat.com>
20693
20694         * c-decl.c (finish_function): Only warn about missing return
20695         statement with -Wreturn-type.
20696
20697 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
20698
20699         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
20700
20701         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
20702         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
20703
20704 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
20705
20706         * basic-block.h (BB_REACHABLE): Renumber.
20707         (BB_DIRTY, BB_NEW): New flags.
20708         (clear_bb_flags): Declare.
20709         (update_life_info_in_dirty_blocks): Declare.
20710         * cfg.c (clear_bb_flags): New function.
20711         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
20712         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
20713         reorder_insns, emit_insn_after): Mark block as dirty.
20714         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
20715         (update_life_info_in_dirty_blocks): New function.
20716         * recog.c (apply_change_group): Dirtify block.
20717
20718         * cse.c (cse_insn): Reorder emitting of jump insn to keep
20719         cfg consistent.
20720         * gcse.c (delete_null_pointer_checks): Likewise.
20721
20722         * toplev.c (dump_file_index): Move cse2 after bp,
20723         add DFI_null
20724         (dump_file_info): Similary.
20725         (rest_of_compilation): Avoid most of CFG rebuilds;
20726         do first if converision after null pointer checks, do cse2
20727         after branch prediction; avoid full liveness rebuild after
20728         initializing subregs.
20729         * invoke.texi (-d options): Document -du, renumber.
20730
20731         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
20732         (notice_new_block): Do not set BB_UPDATE_LIFE.
20733         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
20734          merge_blocks_move_successor_nojumps, merge_blocks,
20735          try_crossjump_to_edge): Likewise.
20736         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
20737         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
20738         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
20739         (merge_of_block): Do not use life_data_ok.
20740         (find_if_case_1): Do not use SET_UPDATE_LIFE.
20741         (if_convert): Use BB_DIRTY mechanizm to update life.
20742         * lcm.c (optimize_mode_switching): Update
20743         update_life_info_in_dirty_blocks
20744
20745 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
20746
20747         * Makefile.in (integrate.o): Update.
20748         * c-decl.c (copy_lang_decl): Rename.
20749         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
20750         * integrate.c: Include langhooks.h.
20751         (copy_decl_for_inlining): Update to use langhook.
20752         * langhooks-def.h (lhd_do_nothing_t,
20753         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
20754         (LANG_HOOKS_INITIALIZER): Update.
20755         * langhooks.c (lhd_do_nothing_t): New.
20756         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
20757         * tree.h (copy_lang_decl): Remove.
20758 objc:
20759         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
20760
20761 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
20762
20763         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
20764         POST_DEC, and POST_MODIFY.
20765
20766 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
20767
20768         * c-typeck.c (digest_init): Remove unused parameter; all
20769         callers changed.
20770
20771 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
20772
20773         * expmed.c (expand_shift): Correctly test for low part of a
20774         subreg.
20775
20776 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
20777
20778         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
20779         insn UIDs with insn addresses.
20780
20781 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
20782
20783         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
20784         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
20785         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
20786         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
20787         gcc.c, toplev.c: Delete code implementing -traditional mode.
20788
20789         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
20790         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
20791         Document removal of -traditional mode for compilation, and
20792         remove documentation only relevant to that mode.
20793
20794         * config/nextstep.h, config/ptx4.h, config/svr4.h,
20795         config/convex/convex.h, config/d30v/d30v.h,
20796         config/i386/dgux.h, config/i386/osf1elf.h,
20797         config/i386/osfelf.h, config/i386/osfrose.h,
20798         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
20799         config/m68k/hp310.h, config/m88k/dgux.h,
20800         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
20801         config/m88k/m88k.h, config/m88k/openbsd.h,
20802         config/mips/abi64.h, config/mips/osfrose.h,
20803         config/mips/svr4-5.h, config/mips/svr4-t.h,
20804         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
20805         config/stormy16/stormy16.h: Remove all references to
20806         -traditional from target specs.  Delete all mention of the
20807         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
20808         delete a couple of commented-out definitions of
20809         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
20810         to -traditional.
20811
20812         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
20813         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
20814
20815 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
20816
20817         * mklibgcc.in: Don't use \n in a line subject to
20818         interpretation by echo.
20819
20820 2002-02-27  Graham Stott  <grahams@redhat.com>
20821
20822         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
20823         Constify NAME.
20824
20825         * loop.c (prescan_loop): Handle PARALLEL.
20826
20827         * unroll.c (loop_iterations): Return 0 if the add_val for
20828         a BIV is REG.
20829
20830         * final.c (output_operand_lossage): Constify PFX_STR.
20831
20832         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
20833
20834 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
20835
20836         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
20837         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
20838
20839 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
20840
20841         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
20842
20843 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
20844
20845         * cpplex.c (_cpp_lex_token): Handle directives in macro
20846         arguments.
20847         * cpplib.c (_cpp_handle_directive): Save and restore state
20848         if parsing macro args when entering a directive.
20849         * cppmacro.c (collect_args): No need to handle directives
20850         in macro arguments.
20851         (enter_macro_context, replace_args): Use the original macro
20852         definition in case it was redefined whilst collecting arguments.
20853 doc:
20854         * cpp.texi: Update.
20855
20856 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
20857
20858         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
20859         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
20860         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
20861         method on AIX.
20862         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
20863         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
20864         (load_toc_v4_PIC_2): Same.
20865
20866 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
20867
20868         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
20869
20870 2002-02-26  Richard Henderson  <rth@redhat.com>
20871
20872         * config/alpha/alpha.md (ashldi_se): Re-enable.
20873
20874 2002-02-26  Richard Henderson  <rth@redhat.com>
20875
20876         * config/alpha/alpha.c (alpha_encode_section_info): Examine
20877         MODULE_LOCAL_P; improve commentary.
20878
20879 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
20880
20881         * doc/cpp.texi: Clarify documentation of relationship between
20882         #line and #include.
20883
20884 2002-02-26  Kazu Hirata  <kazu@hxi.com>
20885
20886         * config/h8300/h8300-protos.h: Update the prototype for
20887         compute_logical_op_length.  Add the prototype for
20888         compute_logical_op_cc.
20889         * config/h8300/h8300.c (compute_logical_op_length): Figure out
20890         code from operands.
20891         (compute_logical_op_cc): New.
20892         * config/h8300/h8300.md: Combine all the logical op patterns
20893         in HImode and SImode.  Use compute_logical_op_cc.
20894
20895 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
20896
20897         * config/i386/i386.c (print_operand): Don't append ATT-style
20898         length suffixs to x87 opcodes when in Intel mode.
20899
20900 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
20901
20902         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
20903         (init_emit_once): Update calls.
20904         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
20905         (init_syntax_once): Prototype.
20906
20907 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20908
20909         * pa-linux.h (LIB_SPEC): Update definition.
20910         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
20911
20912 2002-02-26  Richard Henderson  <rth@redhat.com>
20913
20914         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
20915         if we emitted a stop bit.
20916
20917 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
20918
20919         * configure.in (libgcc_visibility): Substitute.
20920         * configure: Rebuilt.
20921         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
20922         defined symbols .hidden.
20923
20924 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
20925
20926         * attribs.c (c_common_attribute_table): Add visibility.
20927         (handle_visibility_attribute): New function.
20928         * varasm.c (assemble_visibility): New function.
20929         * output.h (assemble_visibility): Add prototype.
20930         * tree.h (MODULE_LOCAL_P): Define.
20931         * crtstuff.c (__dso_handle): Use visibility attribute.
20932         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
20933         for MODULE_LOCAL_P symbols too.
20934         * config/ia64/ia64.c (ia64_encode_section_info): Handle
20935         MODULE_LOCAL_P symbols the same way as local symbols.
20936         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
20937         into .sdata/.sbss by the user.
20938         * doc/extend.texi (Function Attributes): Document visibility
20939         attribute.
20940
20941 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
20942
20943         PR debug/5770
20944         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
20945         STRING_CST initializer spanning the whole variable without
20946         embedded zeros.
20947         If expand_expr returned MEM, don't use it.
20948
20949 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
20950
20951         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
20952         generate a die for the lexical block.
20953
20954 2002-02-26  Kazu Hirata  <kazu@hxi.com>
20955
20956         * config/h8300/h8300-protos.h: Add a prototype for
20957         compute_logical_op_length.
20958         * config/h8300/h8300.c (compute_logical_op_length): New.
20959         * config/h8300/h8300.md (anonymous logical patterns): Use
20960         compute_logical_op_length for length.
20961
20962 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
20963
20964         * dwarf2out.c (modified_type_die): Do not call type_main_variant
20965         for vectors.
20966         (gen_type_die): Same.
20967
20968         * attribs.c (handle_vector_size_attribute): Set debug information.
20969
20970 2002-02-26  Daniel Egger  <degger@fhm.edu>
20971
20972         * config/rs6000/rs6000.md: Swap define_insn attributes to
20973         fix incorrect generation of merge high instructions instead
20974         of merge low.
20975
20976 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
20977
20978         * c-typeck.c (really_start_incremental_init): Use
20979         bitsize_zero_node for vectors.
20980
20981 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
20982
20983         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
20984         ("*set_vrsave_internal"): Same.
20985
20986 2002-02-25  Richard Henderson  <rth@redhat.com>
20987
20988         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
20989         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
20990
20991 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
20992
20993         PR target/5755
20994         * config/i386/i386.c (ix86_return_pops_args): Only pop
20995         fake structure return argument if it was passed on the stack.
20996
20997 2002-02-25  Jason Merrill  <jason@redhat.com>
20998
20999         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
21000         RESULT_DECL.
21001
21002 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
21003
21004         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
21005         link with shared_name only.
21006         * doc/invoke.texi (Link Options): Document new behavior.
21007
21008 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
21009
21010         * c-typeck.c (push_init_level): Handle vectors.
21011
21012 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
21013
21014         * config/sparc/sparc.c (const64_high_operand): Zero-extend
21015         operands of SPARC_SETHI_P.
21016         (input_operand): Likewise.
21017         (sparc_emit_set_const32): Likewise.
21018         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
21019         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
21020         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
21021         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
21022         (movdi_insn_sp64_vis): Likewise.
21023         (movdi split, movdf split): Use SETHI32.
21024         * doc/md.texi: Document SPARC constraints L, M and N.
21025
21026 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
21027
21028         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
21029         ("*set_vrsave_internal"): use mfspr for Darwin.
21030
21031         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
21032         gen_get_vrsave_internal.
21033
21034 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21035
21036         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
21037
21038 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
21039
21040         * cpplex.c (cpp_interpret_charconst): Get signedness or
21041         otherwise of wide character constants correct.
21042         * cppexp.c (lex): Get signedness of wide charconsts correct.
21043
21044 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21045
21046         * optabs.c (widen_operand): Only call convert_modes for
21047         promoted SUBREG if signedness matches.
21048         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
21049
21050 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
21051
21052         * cpplib.c (glue_header_name): Use local buffer to build up
21053         header name.
21054
21055 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
21056
21057         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
21058
21059 2002-02-23  Kazu Hirata  <kazu@hxi.com>
21060
21061         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
21062         H8/300[HS] separately.
21063         * config/h8300/h8300.md: Remove the early clobber constraint
21064         from bit field patterns.
21065
21066 2002-02-23  Kazu Hirata  <kazu@hxi.com>
21067
21068         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
21069         register_operand.
21070         (mulhisi3): Likewise.
21071         (umulqisi3): Likewise.
21072         (umulhisi3): Likewise.
21073
21074 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
21075
21076         * cppinit.c (output_deps): Correct test for stdout output.
21077         (init_dependency_output): Cure warning.
21078
21079 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21080
21081         * expr.c (store_expr): When converting expression to promoted
21082         equivalent type, allow using SUBREG_REG of TARGET as the target
21083         of the expansion of EXP.
21084         * loop.c (basic_induction_var, case SUBREG): Always look inside.
21085         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
21086         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
21087         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
21088         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
21089
21090 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
21091
21092         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
21093         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
21094         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
21095
21096 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
21097
21098         PR optimization/5747
21099         * loop.c (scan_loop): Update reg info if move_movables created new
21100         pseudos.
21101
21102 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
21103
21104         * gcc.c (init_gcc_spec): Revert last change.
21105
21106 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
21107
21108         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
21109         gpc_reg_operand constraint.
21110
21111 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
21112
21113         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
21114         Simplify comparison of `low'.
21115         (add_operand): Fix formatting.
21116         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
21117         (mask_operand): Disallow mask to wrap in 64-bit mode.
21118         (rs6000_stack_info): Remove redundant test setting push_p.
21119         (output_toc): Fix formatting.
21120         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
21121         cc_reg_not_cr0_operand constraint.
21122         (booldi3, boolcdi3 splitters): Same.
21123
21124 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
21125
21126         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
21127
21128 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
21129
21130         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
21131         gcc invoked with -shared-libgcc.
21132
21133 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
21134
21135         PR c++/5748
21136         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
21137         decl if any of elements was TREE_USED.
21138
21139 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
21140
21141         * config/sparc/sol2.h: Don't include sys/mman.h.
21142         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
21143         (arith_4096_operand): Don't throw high bits away.
21144         (const64_operand): Take sign extension of CONST_INTs into account.
21145         (const64_high_operand, sparc_emit_set_const32): Likewise.
21146         (GEN_HIGHINT64): Likewise.
21147         (sparc_emit_set_const64_quick1): Likewise.
21148         (const64_is_2insns): Likewise.
21149         (print_operand): Use trunc_int_for_mode for sign extension.
21150         * config/sparc/sparc.h (SMALL_INT32): Likewise.
21151         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
21152         chars.  Assume CONST_INT is already properly sign-extended.
21153         (movdi split): Sign-extend each SImode part.
21154         (andsi3 split): Don't mask high bits off, so that result
21155         remains properly sign-extend.
21156         (iorsi3 split): Likewise.
21157         (xorsi3 split): Likewise.
21158
21159 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
21160
21161         * fold-const.c (fold): Fix typo in comments.
21162
21163 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
21164
21165         * Makefile.in (langhooks.o): Update dependencies.
21166
21167 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
21168
21169         * langhooks.c: Include flags.h.
21170
21171 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
21172
21173         * testsuite/gcc.dg/attr-alwaysinline.c: New.
21174
21175         * c-common.c (c_common_post_options): Set inline trees by
21176         default.
21177
21178         * doc/extend.texi (Function Attributes): Document always_inline
21179         attribute.
21180         Update documentation about inlining when not optimizing.
21181
21182         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
21183
21184         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
21185         unless DECL_ALWAYS_INLINE.
21186
21187         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
21188         unless DECL_ALWAYS_INLINE.
21189         (c_disregard_inline_limits): Disregard if always_inline set.
21190
21191         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
21192         Disregard if always_inline set.
21193         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
21194         unless DECL_ALWAYS_INLINE.
21195
21196         * attribs.c (handle_always_inline_attribute): New.
21197         (c_common_attribute_table): Add always_inline.
21198
21199         * config/rs6000/altivec.h: Add prototypes for builtins
21200         requiring the always_inline attribute.
21201
21202 2002-02-21  Eric Christopher  <echristo@redhat.com>
21203
21204         * expmed.c (store_bit_field): Try to simplify the subreg
21205         before generating a new one when when the mode size of
21206         value is less than maxmode.
21207
21208 2002-02-21  Richard Henderson  <rth@redhat.com>
21209
21210         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
21211         than gen_rtx_PLUS to form the sum.
21212         * explow.c (force_reg): Rearrange to not allocate new pseudo
21213         when force_operand returns a register.
21214         * expr.c (expand_assignment): Allow offset_rtx expansion to
21215         return a sum.  Do not force addresses into registers.
21216         (expand_expr): Likewise.
21217         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
21218         to canonicalize arithmetic that didn't simpify.
21219         (simplify_plus_minus): New argument force; update
21220         all callers.  Don't split CONST unless we can do something with it,
21221         and wouldn't lose the constness of the operands.
21222
21223         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
21224         that we generated earlier.
21225
21226 2002-02-21  Tom Tromey  <tromey@redhat.com>
21227
21228         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
21229         (output_line_info): Use constant `1', with a long explanatory
21230         comment.
21231         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
21232
21233 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
21234
21235         * jump.c (redirect_jump): If old label has no UID, don't try to
21236         delete it.
21237
21238 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
21239
21240         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
21241         If input is constant, do shifts at compile time.
21242
21243 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
21244
21245         * doc/extend.texi: Fix some more overfull hboxes.
21246
21247 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
21248
21249         PR optimization/4994
21250         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
21251         register moves.
21252
21253 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
21254
21255         PR c++/4574
21256         * expr.h (expand_and): Add mode argument.
21257         * expmed.c (expand_and): Add mode argument.
21258         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
21259         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
21260         * except.c (expand_builtin_extract_return_addr): Likewise.
21261         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
21262         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
21263         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
21264         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
21265         * config/c4x/c4x.md: Use GEN_INT (x) instead of
21266         gen_rtx (CONST_INT, VOIDmode, x).
21267
21268 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
21269
21270         PR c/4697:
21271         * stmt.c (warn_if_unused_value): Move side effects test once more.
21272
21273 2002-02-20  Torbjorn Granlund  <tege@swox.com>
21274
21275         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
21276         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
21277
21278 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
21279
21280         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
21281         SUBREG or ZERO_EXTEND.
21282
21283 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
21284
21285         * sh.h (current_function_anonymous_args): Remove.
21286         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
21287         of current_function_varargs and current_function_stdarg is set.
21288         * sh.c (sh_expand_prologue): Check current_function_varargs /
21289         current_function_stdarg / TARGET_SH5 instead of
21290         current_function_anonymous_args.
21291
21292         * sh64.h (TARGET_VERSION): Define.
21293
21294 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
21295
21296         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
21297         VRSAVE_REGNO on TARGET_ALTIVEC.
21298
21299 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
21300
21301         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
21302         bits of SImode const_int.
21303         (includes_rshift_p): Likewise.
21304         (print_operand): Call mask_operand and mask64_operand with correct
21305         mode.
21306         (rs6000_output_function_epilogue): Pad traceback table to word.
21307         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
21308         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
21309         mask64_operand with correct mode.
21310         (FUNCTION_ARG_REGNO_P): Correct parentheses.
21311
21312 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
21313
21314         PR debug/4461
21315         * varasm.c (get_pool_constant_mark): New.
21316         * rtl.h (get_pool_constant_mark): Add prototype.
21317         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
21318         be represented if it has not been output.
21319
21320 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
21321
21322         * combine.c (do_SUBST): Sanity check substitutions of
21323         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
21324         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
21325         CONST_INT into its operand.
21326         (known_cond): Likewise, for ZERO_EXTEND.
21327         * simplify-rtx.c (simplify_unary_operation): Fix condition to
21328         allow for simplification of wide modes.  Reject CONST_INTs in
21329         ZERO_EXTEND when their actual mode is not given.
21330
21331 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
21332
21333         * c-decl.c (pushdecl): If no global declaration is found for an
21334         extern declaration in block scope, try a limbo one.
21335
21336 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
21337
21338         PR c++/4401
21339         * c-common.c (pointer_int_sum): Moved from...
21340         * c-typeck.c (pointer_int_sum): ...here.
21341         * c-common.h (pointer_int_sum): Add prototype.
21342
21343 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
21344
21345         PR c++/5713
21346         * c-decl.c (duplicate_decls): Return 0 if issued error about
21347         redeclaration.
21348
21349 2002-02-20  Roger Sayle  <roger@eyesopen.com>
21350             Jakub Jelinek  <jakub@redhat.com>
21351
21352         PR c/4389
21353         * tree.c (host_integerp): Ensure that the constant integer is
21354         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
21355         when pos is zero or non-zero respectively.  Clarify comment.
21356         * c-format.c (check_format_info_recurse): Fix host_integerp
21357         usage; the pos argument should be zero when assigning to a
21358         signed HOST_WIDE_INT.
21359
21360 2002-02-20  Richard Henderson  <rth@redhat.com>
21361
21362         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
21363         of the operand, rather than assuming TImode.
21364         (ix86_expand_binop_builtin): Cope with commutative patterns
21365         using nonimmediate_operand for both operands.
21366         (ix86_expand_timode_binop_builtin): Likewise.
21367         (ix86_expand_store_builtin): Validate operand 1.
21368         (ix86_expand_unop1_builtin): Likewise.
21369
21370 2002-02-20  Philip Blundell  <philb@gnu.org>
21371
21372         PR 5705
21373         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
21374
21375 2002-02-20  Richard Henderson  <rth@redhat.com>
21376
21377         PR c/5615
21378         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
21379
21380 2002-02-20  Tom Tromey  <tromey@redhat.com>
21381
21382         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
21383         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
21384         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
21385         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
21386         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
21387         unconditionally.
21388
21389 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
21390
21391         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
21392           for (const_int 0) in X not just INTVAL.
21393
21394 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
21395
21396         * doc/extend.texi: Avoid or reduce overfull hboxes.
21397
21398 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
21399
21400         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
21401         operations if the field does not start at a mode boundary.
21402
21403 2001-02-20      Joel Sherrill <joel@OARcorp.com>
21404
21405         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
21406         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
21407         Also done for -Acpu and -Amachine.
21408
21409 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
21410
21411         * cppinit.c (init_dependency_output): Take deps output file
21412         from -o if none given with -MF.  Suppress normal output.
21413         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
21414         * doc/cpp.texi, doc/invoke.texi: Update.
21415
21416 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
21417
21418         * toplev.c (output_quoted_string): Write unprintable
21419         characters with octal escapes.
21420
21421 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
21422
21423         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
21424         really_call_used[VRSAVE_REGNO] if not Altivec.
21425
21426 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
21427
21428         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
21429         MODE_MASK.
21430         (constant_pool_expr_1): Fix formatting.
21431         (rs6000_legitimize_reload_address): Likewise.
21432
21433 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21434
21435         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
21436         now that we have one.
21437
21438 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
21439
21440         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
21441         end of first block of bitfields (which was only seven bits);
21442         rename dummy to unused_1; remove comment which is no longer true.
21443
21444 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
21445
21446         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
21447
21448 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
21449
21450         PR 5399
21451         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
21452         if generating PIC.
21453
21454         PR 5054
21455         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
21456         arm_is_longcall_p rather than inspecting call-type cookie
21457         directly.
21458         (call_value_insn) [TARGET_THUMB]: Likewise.
21459
21460 2002-02-19  Graham Stott  <grahams@redhat.com>
21461
21462         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
21463
21464 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
21465
21466         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
21467         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
21468         (FP_SAVE_INLINE): Delete.
21469
21470         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
21471         * config/rs6000/eabi.asm: Remove ABI save restore routines.
21472         * config/rs6000/t-ppccomm: Build crtsavres.o.
21473         * config/rs6000/crtsavres.asm: New file.
21474
21475 2002-02-19  Philip Blundell  <philb@gnu.org>
21476
21477         * config/arm/arm.c (use_return_insn): Don't reject interrupt
21478         functions.
21479         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
21480         (output_return_instruction): Allow interrupt functions to return with
21481         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
21482         (arm_expand_prologue): Subtract 4 before stacking LR in an
21483         interrupt function.
21484
21485 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
21486
21487         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
21488         decl, not just FUNCTION_DECL.
21489         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
21490         (arm_assemble_integer): Likewise.
21491         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
21492         marked local.
21493
21494 2002-02-19  matthew green  <mrg@eterna.com.au>
21495
21496         * config.gcc (sparc-*-netbsdelf*): Enable target.
21497         (sparc64-*-netbsd*): New target.
21498         * config/sparc/netbsd-elf.h: New file.
21499         * config/sparc/t-netbsd64: New file.
21500
21501 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
21502
21503         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
21504
21505 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
21506
21507         * doc/invoke.texi: explicitly list the style guidelines that
21508         -Weffc++ checks for.
21509
21510 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
21511
21512         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
21513
21514 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
21515
21516         PR other/5718
21517         * gcc.c (cpp_unique_options): Treat -o as indicating object file
21518         only if not -E.  If -E, pass -o through to the preprocessor.
21519
21520 2002-02-19  Kazu Hirata  <kazu@hxi.com>
21521
21522         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
21523         register number with an appropriate macro.
21524
21525 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
21526
21527         * doc/rtl.texi (Constants): Close @code tag.
21528
21529 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
21530
21531         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
21532         ("mmx_uavgv4hi3"): Same.
21533         ("pmulhrwv4hi3"): Same.
21534
21535         * tree-inline.c (walk_tree): Handle vectors.
21536
21537         * c-common.c (constant_expression_warning): Handle vectors.
21538         (overflow_warning): Same.
21539
21540         * sched-deps.c (sched_analyze_2): Handle vectors.
21541
21542         * rtlanal.c (rtx_unstable_p): Handle vectors.
21543         (rtx_varies_p): Same.
21544         (count_occurrences): Same.
21545         (regs_set_between_p): Same.
21546         (modified_between_p): Same.
21547         (modified_in_p): Same.
21548         (volatile_insn_p): Same.
21549         (volatile_refs_p): Same.
21550         (side_effects_p): Same.
21551         (may_trap_p): Same.
21552         (inequality_comparisons_p): Same.
21553         (replace_regs): Same.
21554         (computed_jump_p_1): Same.
21555
21556         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
21557         argument.
21558         (inner_mode_array): New.
21559         (copy_rtx): Handle vectors.
21560         (copy_most_rtx): Same.
21561         (rtx_equal_p): Same.
21562         (get_mode_alignment): Adjust for vectors.
21563
21564         * resource.c (mark_referenced_resources): Handle vectors.
21565         (mark_set_resources): Same.
21566
21567         * reload1.c (eliminate_regs): Handle vectors.
21568         (elimination_effects): Same.
21569         (scan_paradoxical_subregs): Same.
21570
21571         * reload.c (subst_reg_equivs): Handle vectors.
21572
21573         * regrename.c (scan_rtx): Handle vectors.
21574
21575         * regclass.c (reg_scan_mark_refs): Handle vectors.
21576
21577         * recog.c (find_single_use_1): Handle vectors.
21578
21579         * local-alloc.c (equiv_init_varies_p): Handle vectors.
21580         (contains_replace_regs): Same.
21581         (memref_referenced_p): Same.
21582
21583         * integrate.c (copy_rtx_and_substitute): Handle vectors.
21584         (subst_constants): Same.
21585
21586         * genattrtab.c (attr_copy_rtx): Handle vectors.
21587         (encode_units_mask): Same.
21588         (clear_struct_flag): Same.
21589         (count_sub_rtxs): Same.
21590
21591         * gcse.c (want_to_gcse_p): Handle vectors.
21592         (oprs_unchanged_p): Same.
21593         (hash_expr_1): Same.
21594         (oprs_not_set_p): Same.
21595         (expr_killed_p): Same.
21596         (compute_transp): Same.
21597         (store_ops_ok): Same.
21598
21599         * function.c (purge_addressof_1): Do not allow paradoxical subregs
21600         of vectors.
21601         (fixup_var_refs_1): Same.
21602         (instantiate_virtual_regs_1): Same.
21603
21604         * fold-const.c (operand_equal_p): Handle vectors.
21605         (fold): Same.
21606         (rtl_expr_nonnegative_p): Same.
21607
21608         * flow.c (mark_used_regs): Handle vectors.
21609
21610         * df.c (df_uses_record): Handle vectors.
21611
21612         * cselib.c (cselib_subst_to_values): Handle vectors.
21613         (cselib_mem_conflict_p): Same.
21614         (hash_rtx): Same.
21615
21616         * cse.c (canon_reg): Handle vectors.
21617         (fold_rt): Same.
21618         (cse_process_notes): Same.
21619         (count_reg_usage): Same.
21620         (canon_hash): Same.
21621
21622         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
21623
21624         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
21625
21626         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
21627         (gen_rtx): Handle CONST_VECTOR.
21628         (gen_const_vector_0): New.
21629         (copy_rtx_if_shared): CONST_VECTORs can be shared.
21630         (reset_used_flags): Same.
21631         (copy_insn_1): Same.
21632         (initializer_constant_valid_p): Handle VECTOR_CST.
21633
21634         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
21635
21636         * doc/rtl.texi (Constants): Document const_vector.
21637         (CONST0_RTX): Update for vectors.
21638         (RTL sharing): Same.
21639
21640         * print-tree.c (print_node): Add case for VECTOR_CST.
21641
21642         * tree.h (TREE_VECTOR_CST_ELTS): New.
21643         (struct tree_vector): New.
21644         (union tree_node): Add vector node.
21645         (build_vector): Add prototype.
21646
21647         * tree.def (VECTOR_CST): New.
21648
21649         * tree.c (build_vector): New.
21650
21651         * expmed.c (make_tree): Handle CONST_VECTOR.
21652
21653         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
21654         (CONST_VECTOR_ELT): New.
21655         (CONST_VECTOR_NUNITS): New.
21656
21657         * machmode.h (GET_MODE_INNER): New.
21658         (DEF_MACHMODE): Accept 8th arg.
21659
21660         * machmode.def: Add 8th argument for vector inner mode.
21661         Add inner vector modes for vectors.
21662
21663         * rtl.def (VEC_CONST): Remove.
21664         (CONST_VECTOR): New.
21665
21666         * expr.c (clear_storage): Allow vectors.
21667         (is_zeros_p): Handle VECTOR_CST.
21668
21669         * varasm.c (output_constant_pool): Handle vectors.
21670         (rtx_const): Add veclo and vechi fields.
21671         (kind): Add RTX_VECTOR.
21672         (decode_rtx_const): Add case for vector.
21673
21674         * config/rs6000/rs6000-protos.h: Add zero_constant.
21675
21676         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
21677         constants.  Force easy vector constants into memory.
21678         (easy_vector_constant): New.
21679         (emit_easy_vector_constant): New.
21680         (rs6000_legitimize_reload_address): Do not generate bad reloads on
21681         darwin.
21682
21683         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
21684         instruction does.
21685         ("altivec_lvxl"): Same.
21686         (altivec_lvebx): Same.
21687         (altivec_lvehx): Same.
21688         (altivec_lvewx): Same.
21689         ("*movv4si_const0"): New.
21690         ("*movv4sf_const0"): New.
21691         ("*movv8hi_const0"): New.
21692         ("*movv16qi_const0"): New.
21693
21694 2002-02-18  Kazu Hirata  <kazu@hxi.com>
21695
21696         * config/h8300/h8300.c (notice_update_cc): Use
21697         cc_status.value2.
21698
21699 2002-02-18  Kazu Hirata  <kazu@hxi.com>
21700
21701         * config/h8300/h8300.md (divmod patterns): Change the
21702         constraints for operands[1] to register_operand.
21703
21704 2002-02-18  Kazu Hirata  <kazu@hxi.com>
21705
21706         * config/h8300/h8300-protos.h: Remove the prototype for
21707         p_operand.
21708         * config/h8300/h8300.c (p_operand): Remove.
21709         * config/h8300/h8300.md: Replace p_operand with
21710         const_int_operand.
21711
21712 2002-02-18 Philip Blundell <pb@nexus.co.uk>
21713
21714         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
21715         comment.
21716         (output_return_instruction): Allow use of LDR to unstack
21717         return addresss even for interrupt handlers or when
21718         interworking.  If compiling for ARMv5, use interworking-safe
21719         return instructions by default.  Remove duplicated code and
21720         lengthy "strcat" sequences.
21721
21722 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
21723
21724         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
21725         (LINK_EH_SPEC): Define.
21726         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
21727
21728 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
21729
21730         * config/s390/s390.c (s390_emit_prologue): Do not set the
21731         frame_related flag for call-clobbered registers.
21732
21733 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
21734
21735         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
21736         (construct_container): Fix handling of SSE operands.
21737         (ix86_expand_builtin): Fix handling of 64bit pointers.
21738         (mmx_maskmovq_rex): New pattern.
21739
21740 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
21741
21742         * regrename.c (kill_set_value): Handle subregs properly.
21743
21744 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
21745
21746         * objc/objc-act.c (handle_impent): Remove leading '*'
21747         from objc_class_name.
21748
21749 2002-02-17  Richard Henderson  <rth@redhat.com>
21750
21751         * config/alpha/alpha.c (some_small_symbolic_operand,
21752         some_small_symbolic_operand_1, split_small_symbolic_operand,
21753         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
21754         Handle small SYMBOL_REFs anywhere, not just inside memories.
21755         * config/alpha/alpha-protos.h: Update.
21756         * config/alpha/alpha.h (PREDICATE_CODES): Update.
21757         * config/alpha/alpha.md (small symbolic operand splitter): Update.
21758
21759 2002-02-17  Roland McGrath  <roland@frob.com>
21760
21761         * config.gcc (powerpc-*-gnu-gnualtivec*,
21762         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
21763         * config/rs6000/gnu.h: New file.
21764         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
21765         Grok "gnu" in rs6000_abi_name.
21766         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
21767         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
21768         Grok -mcall-gnu analogous to -mcall-linux et al.
21769         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
21770         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
21771         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
21772
21773 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
21774
21775         PR c/3444:
21776         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
21777         shortening.
21778
21779 2002-02-17  Philipp Thomas  <pthomas@suse.de>
21780
21781         * config/cris/cris.h: Undefine STARTFILE_SPEC and
21782         ENDFILE_SPEC before (re)defining them.
21783
21784 2002-02-17  Kazu Hirata  <kazu@hxi.com>
21785
21786         * config/h8300/h8300.c: Fix formatting.
21787         * config/h8300/h8300.h: Likewise.
21788
21789 2002-02-17  Philipp Thomas  <pthomas@suse.de>
21790
21791         * doc/tm.texi: Explain why empty strings should not be
21792         marked for translation.
21793
21794 2002-02-17  Philipp Thomas  <pthomas@suse.de>
21795
21796         * final.c (output_operand_lossage): Changed to accept
21797         printf style arguments. Change calls where necessary.
21798         * output.h (output_operand_lossage): Change declaration
21799         accordingly. Update copyright.
21800         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
21801         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
21802         Update copyright date where necessary.
21803
21804         * config/i386/i386.c (print_operand): Likewise. Remove use of
21805         sprintf.
21806
21807         * config/cris/cris.c (cris_operand_lossage): Likewise.
21808         Rename parameter so that exgettext recognizes it as
21809         translatable message.
21810         (LOSE_AND_RETURN): Rename parameter to msgid.
21811
21812 2002-02-17  Kazu Hirata  <kazu@hxi.com>
21813
21814         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
21815         hard coded register number with an appropriate macro.
21816         (HARD_REGNO_MODE_OK): Likewise.
21817         (ARG_POINTER_REGNUM): Likewise.
21818         (STATIC_CHAIN_REGNUM): Likewise.
21819         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
21820         * config/h8300/h8300.md (define_constants): Define more
21821         register numbers.
21822
21823 2002-02-17  Philipp Thomas  <pthomas@suse.de>
21824
21825         * config/i386/i386.h: Don't mark empty strings for translation.
21826
21827 2002-02-16  H.J. Lu <hjl@gnu.org>
21828
21829         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
21830
21831 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
21832
21833         * cppinit.c (merge_include_chains): Check for brack being
21834         NULL before attempting to merge it with qtail.
21835
21836 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
21837
21838         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
21839         DBX_DEBUG.
21840
21841 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21842
21843         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
21844
21845 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21846
21847         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
21848         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
21849         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
21850
21851 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21852
21853         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
21854         now only if !TARGET_FIX.
21855         (*movsi_nt_vms_fix): New pattern.
21856
21857 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
21858
21859         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
21860         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
21861         (alpha_sa_mask, alpha_sa_size): Reflect above change.
21862         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
21863         (alpha_start_function, alpha_expand_epilogue): Likewise.
21864         (unicosmk_gen_dsib): Likewise.
21865
21866 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21867
21868         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
21869
21870 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
21871
21872         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
21873         check_and_change_labels, s390_final_chunkify): Delete.
21874         (s390_split_branches, s390_chunkify_pool): New functions.
21875         (s390_function_prologue): Call them.
21876
21877         * config/s390/s390.h (S390_REL_MAX): Delete.
21878         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
21879
21880         * config/s390/s390.md (cjump, icjump, jump): Fix length
21881         attribute calculation.
21882
21883
21884 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
21885
21886         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
21887         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
21888
21889 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21890
21891         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
21892         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
21893         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
21894
21895 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
21896
21897         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
21898
21899 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
21900
21901         * reload.c (find_dummy_reload): Check that an output register
21902         is valid for its mode.
21903
21904 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
21905
21906         * combine.c (known_cond): After replacing the REG of a SUBREG, try
21907         to simplify it.
21908
21909         * function.c (assign_parms): Demote promoted argument passed by
21910         transparent reference.
21911
21912 2001-02-14      Joel Sherrill <joel@OARcorp.com>
21913
21914         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
21915         -Acpu() and -Amachine() to eliminate warnings.
21916
21917 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
21918
21919         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
21920
21921 2002-02-14  Kazu Hirata  <kazu@hxi.com>
21922
21923         * config/h8300/h8300-protos.h: Update the prototype for
21924         const_costs.
21925         * config/h8300/h8300.c (const_costs): Treat SET as a little
21926         more expensive operation.
21927         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
21928         reference to const_costs.
21929
21930 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
21931
21932         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
21933
21934 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
21935
21936         PR c/5503:
21937         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
21938         use arguments from newtype.
21939
21940 2002-02-13  Eric Christopher  <echristo@redhat.com>
21941
21942         * config/mips/mips.c (override_options): Add check for march/mipsX
21943         on the same command line. Fix error message in cpu processing.
21944         Remove architecture and ISA checks.
21945
21946 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
21947
21948         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
21949
21950         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
21951
21952 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
21953
21954         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
21955         alternatives.
21956         ("*movv8hi_internal1"): Same.
21957         ("*movv16qi_internal1"): Same.
21958         ("*movv4sf_internal1"): Same.
21959
21960         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
21961         not push_reload for altivec modes.
21962
21963 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
21964
21965         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
21966         all RTEMS targets including removal of #includes from config/*/rtems*.h
21967         file and adding them to tm_file setting. Added xm_defines=POSIX to
21968         many targets.
21969         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
21970         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
21971         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
21972         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
21973         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
21974         config/m68k/rtemself.h: Ditto.
21975         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
21976         config/mips/rtems64.h: Ditto.
21977         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
21978         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
21979         Ditto.
21980         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
21981         config/sparc/rtemself.h: Ditto.
21982         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
21983         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
21984         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
21985         more like arm-elf.
21986         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
21987         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
21988         target made more similar to i386-elf.
21989         * config/i386/t-rtems-i386: Added soft float support and multilibs.
21990         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
21991         be similar to config/m68k/t-m68kelf.
21992         * gthr-rtems.h: Encapsulate with extern "C" for C++.
21993
21994 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
21995
21996         * regmove.c (kill_value): Handle subregs.
21997
21998 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
21999
22000         * i386.md (mul patterns): Allow memory operand to be first;
22001         add expanders where needed; fix constraints.
22002         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
22003         Allow memory operand to be the first.
22004
22005         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
22006         operands.
22007
22008 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
22009
22010         PR c/5681:
22011         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
22012         GET_MODE (x).
22013
22014 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
22015
22016         PR optimization/5547:
22017         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
22018         all valid IA-32 address modes involving non-scaled %ebx and
22019         GOT/GOTOFF as displacement.
22020
22021 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
22022
22023         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
22024         after emitting ltorg insns.
22025
22026         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
22027         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
22028         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
22029         *abssf2): Fix "op_type" attribute.
22030
22031 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
22032
22033         * mkconfig.sh: Avoid using a subshell redirect.
22034         ($output.T): Change to $(output)T.
22035         (ENABLE_NLS): Remove unneeded undef.
22036
22037         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
22038         * config/alpha/x-vms (libsubdir): Define.
22039
22040         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
22041         register frame procedures. Optimize retrieving context.
22042
22043         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
22044         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
22045         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
22046
22047 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22048
22049         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
22050         Make same change as for find_base_value.
22051
22052 2002-02-13  Kazu Hirata  <kazu@hxi.com>
22053
22054         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
22055         of QImode and SImode.
22056
22057 2002-02-13  Kazu Hirata  <kazu@hxi.com>
22058
22059         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
22060         length computation of movsi.
22061         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
22062
22063 2002-02-13  Kazu Hirata  <kazu@hxi.com>
22064
22065         * config/h8300/h8300.md (subqi3): Tighten the predicate for
22066         operands[2] to register_operand.
22067
22068 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
22069
22070         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
22071
22072 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
22073
22074         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
22075         for altivec_lvx* and altivec_stvx*.
22076         ("*movv4si_internal"): Add constraint for loading from GPRs.
22077         ("*movv8hi_internal1"): Same.
22078         ("*movv16qi_internal1"): Same.
22079         ("*movv4sf_internal1"): Same.
22080
22081         * config/rs6000/rs6000.c (altivec_register_operand): New.
22082
22083         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
22084         altivec_register_operand.
22085
22086 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
22087
22088         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
22089         handle SYMBOL_REF.
22090
22091 2002-02-13  Stan Shebs  <shebs@apple.com>
22092
22093         * c-typeck.c (digest_init): Handle vectors.
22094         (really_start_incremental_init): Same.
22095         (pop_init_level): Same.
22096         (process_init_element): Same.
22097
22098         * varasm.c (output_constant): Same.
22099
22100         * expr.c (clear_storage): Same.
22101         (store_constructor): Same.
22102
22103 2002-02-12  Eric Christopher  <echristo@redhat.com>
22104
22105         * explow.c (hard_function_value): Add comment explaining
22106         signed/unsigned comparison.
22107
22108 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
22109
22110         * jump.c (never_reached_warning): Add finish argument.
22111         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
22112         real insn after end.
22113         * rtl.h (never_reached_warning): Adjust prototype.
22114         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
22115         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
22116         never_reached_warning.
22117
22118 2002-02-12  Graham Stott  <grahams@redhat.com>
22119
22120         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
22121
22122 2002-02-12  Kazu Hirata  <kazu@hxi.com>
22123
22124         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
22125         logical shifts on H8/300.
22126         (shift_alg_si): Improve several shifts on H8/300.
22127         (get_shift_alg): Likewise.
22128
22129 2002-02-12  Graham Stott  <grahams@redhat.com>
22130
22131         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
22132
22133 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22134
22135         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
22136         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
22137
22138 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
22139
22140         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
22141         non-CONST_INT through default_assemble_integer.
22142         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
22143         <case 8>: Abort for CONST_DOUBLE.
22144
22145 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22146
22147         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
22148         is specified.
22149         * config/pa/pa-linux.h (LIB_SPEC): Delete.
22150         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
22151
22152 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
22153
22154         * config/stormy16/stormy16.md (zero_extendqihi2): New.
22155
22156 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
22157
22158         * regrename.c (regrename_optimize): Don't accept a
22159         part-clobbered register if the replaced register is not part
22160         clobbered.
22161
22162         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
22163         take padding into account when computing the argument value.
22164
22165         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
22166
22167         * combine.c (try_combine): Apply substitutions in
22168         CALL_INSN_FUNCTION_USAGE too.
22169
22170 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
22171
22172         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
22173         __builtin_altivec_abs*.
22174         (bdesc_abs): New.
22175
22176         * config/rs6000/rs6000.h (rs6000_builtins): Add
22177         ALTIVEC_BUILTIN_ABS*.
22178
22179         * config/rs6000/altivec.h: Use const char for builtins expecting
22180         literals.
22181         (vec_abs): New versions for C and C++.
22182         (vec_abss): Same.
22183
22184 2002-02-10  Kazu Hirata  <kazu@hxi.com>
22185
22186         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
22187         using Pmode.
22188
22189 2002-02-10  Kazu Hirata  <kazu@hxi.com>
22190
22191         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
22192         constant definition from h8300.md.
22193         (FRAME_POINTER_REGNUM): Likewise.
22194         * config/h8300/h8300.md (define_constants): Add FP_REG.
22195
22196 2002-02-10  Kazu Hirata  <kazu@hxi.com>
22197
22198         * config/h8300/h8300.c (print_operand): Remove redundant code.
22199
22200 2002-02-10  Kazu Hirata  <kazu@hxi.com>
22201
22202         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
22203         * config/h8300/h8300.c (byte_reg): Make it static.
22204
22205 2002-02-10  Richard Henderson  <rth@redhat.com>
22206
22207         PR c/5623
22208         * c-typeck.c (incomplete_type_error): Handle flexible array members.
22209
22210 2002-02-10  Richard Henderson  <rth@redhat.com>
22211
22212         PR c++/5624
22213         * tree.c (append_random_chars): Don't abort if main_input_filename
22214         does not exist.
22215
22216 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
22217
22218         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
22219
22220 2002-02-10  Kazu Hirata  <kazu@hxi.com>
22221
22222         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
22223         (pushhi1): Likewise.
22224
22225 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22226
22227         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
22228         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
22229
22230 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
22231
22232         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
22233         remove MASK_VIS.
22234         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
22235
22236 2002-02-09  Kazu Hirata  <kazu@hxi.com>
22237
22238         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
22239         a half of an SImode register on H8/300.
22240
22241 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
22242
22243         * i386.md (movdi_2): Add missing '!'.
22244
22245 2002-02-09  Kazu Hirata  <kazu@hxi.com>
22246
22247         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
22248         definitions.
22249
22250 2002-02-09  Kazu Hirata  <kazu@hxi.com>
22251
22252         * config/h8300/h8300.md (length): Correct the distance valid
22253         for the short branch.
22254
22255 2002-02-09  Kazu Hirata  <kazu@hxi.com>
22256
22257         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
22258
22259 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
22260
22261         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
22262         registers in SImode.
22263         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
22264         part-clobbered.
22265
22266         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
22267         patch.
22268
22269         Contribute sh64-elf.
22270         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
22271         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
22272         (sh_cannot_modify_jumps_p): New function.
22273         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
22274         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
22275         (sh_ms_bitfield_layout_p): New function.
22276         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
22277                     Zack Weinberg  <zack@codesourcery.com>
22278         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
22279         expand_simple_binop instead of expand_binop.
22280         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
22281         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
22282         use of .quad and .uaquad.
22283         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
22284         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
22285         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
22286         * config/sh/sh.md (movdi_const, movdi_const_32bit,
22287         movdi_const_16bit): Make sure all CONSTs have modes.
22288         (sym2PIC): Ditto, but by adjusting all callers.
22289         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
22290         if the prologue calls the SHmedia argument decoder or register
22291         saver.
22292         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
22293         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
22294         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
22295         (sh_expand_epilogue): Don't emit USE of return target register.
22296         (prepare_move_operands): Legitimize DImode PIC addresses.
22297         (sh_media_register_for_return): Skip tr0, used to initialize the
22298         PIC register.
22299         (sh_expand_prologue): Remove explicit USE of return register.
22300         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
22301         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
22302         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
22303         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
22304         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
22305         EXTRA_CONSTRAINT_T.
22306         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
22307         (MOVI_SHORI_BASE_OPERAND_P): New.
22308         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
22309         (EXTRA_CONSTRAINT_T): Define in terms of them.
22310         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
22311         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
22312         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
22313         alternatives supporting TARGET_REGS.
22314         (UNSPEC_GOTPLT): New constant.
22315         (movdi split): Move incrementing of LABEL_NUSES...
22316         (movdi_const, movdi_const_32bit): Here.  Use
22317         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
22318         (movdi_const_16bit): New.
22319         (call, call_value) [flag_pic]: Use GOTPLT.
22320         (call_pop, call_value_pop): New expands.
22321         (call_pop_compact, call_pop_rettramp): New insns.
22322         (call_value_pop_compact, call_value_pop_rettramp): New insns.
22323         (sibcall) [flag_pic]: Use GOT.
22324         (builtint_setjmp_receiver): Remove bogus, unused expand.
22325         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
22326         (*pt, *ptb, ptrel): New insns.
22327         (sym2GOT): Handle DImode GOT.
22328         (sym2GOTPLT, symGOTPLT2reg): New expands.
22329         (sym2PIC): New expand.
22330         (shcompact_return_tramp): Use GOTPLT to return trampoline.
22331         (shcompact_return_tramp_i): Use return register explicitly.
22332         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
22333         disable flag_reorder_blocks.
22334         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
22335         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
22336         clobbers, for clarity.
22337         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
22338         restoring of r0 in macl as MAYBE_DEAD.
22339         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
22340         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
22341         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
22342         alter_subreg all over.
22343         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
22344         reload, instead of emitting instructions that would require
22345         reloading.
22346         (casesi_load_media): Add missing modes.
22347         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
22348         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
22349         as used if the argument decoder is called.
22350         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
22351         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
22352         Pmode, then extend it to DImode if necessary.
22353         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
22354         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
22355         constants in FPU-enabled SHmedia, let them be loaded from memory.
22356         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
22357         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
22358         Adjust whitespace in assembly output templates.
22359         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
22360         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
22361         mode of if_then_else.
22362         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
22363         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
22364         sh.h.
22365         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
22366                     Joern Rennecke <amylaar@redhat.com>
22367         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
22368         (SUBTARGET_CPP_PTR_SPEC): New.
22369         (SUBTARGET_CPP_SPEC): Remove.
22370         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
22371         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
22372         Fix typo in previous checkin.
22373         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
22374         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
22375         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
22376                     Alexandre Oliva  <aoliva@redhat.com>
22377         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
22378         what single FP register can hold for SHmedia target.
22379         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
22380                     Alexandre Oliva  <aoliva@redhat.com>
22381         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
22382         Do not split into SUBREG.
22383         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
22384         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
22385         and added new functions as specified in SH5 ABI r9.
22386         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
22387         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
22388         8-byte boundary.
22389         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
22390         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
22391         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
22392         and consttable_window_ends.
22393         2001-06-03  Graham Stott  <grahams@redhat,com>
22394         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
22395         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
22396         * config/sh/sh.c (print_operand): Handle floating-point pair,
22397         vector and matrix registers.
22398         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
22399         vector modes into account.
22400         * config/sh/sh.md (movv2sf): Split move between registers into
22401         movdf.
22402         (movv4sf, movv16sf): Introduce insns that get split only after
22403         reload.
22404         * config/sh/shmedia.h: Fix Copyright dates.
22405         * config/sh/ushmedia.h: Likewise.  Move loop counter
22406         declarations into conditionals that uses them.
22407         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
22408         loop boundary.
22409         * config/sh/sshmedia.h: Fix Copyright dates.
22410         (sh_media_PUTCFG): Fix constraints.
22411         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
22412         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
22413         ptrmemfunc_vbit_in_delta for SH5.
22414         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
22415         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
22416         * invoke.texi: Likewise.
22417         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
22418         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
22419         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
22420         GCC_pop_shmedia_regs_nofpu): New global symbols.
22421         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
22422         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
22423         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
22424         compact function with nonlocal labels.
22425         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
22426         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
22427         (initial_elimination_offset): Account for their stack space.
22428         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
22429         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
22430         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
22431         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
22432         least one of the operands to be a register.
22433         (movv2sf): Likewise.  Renamed to movv2sf_i.
22434         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
22435         prepare_move_operands() before emitting SHmedia insns.
22436         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
22437         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
22438         Don't save nor initialize r12.  Don't mis-align the stack.
22439         Pad the code with a nop.
22440         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
22441         stack.
22442         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
22443         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
22444         [__SHMEDIA__]: Implement.
22445         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
22446         * config/sh/sh.md: Set latency of `pt' closer to reality.
22447         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
22448         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
22449         Set move, load and store type attributes.
22450         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
22451         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
22452         profiling.
22453         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
22454         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
22455         * config/sh/sh.c (sh_media_register_for_return): New function.
22456         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
22457         branch-target register.
22458         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
22459         * config/sh/sh.md (return_media_i): Use any call-clobbered
22460         branch-target register.
22461         (return_media): If r18 wasn't copied in the prologue, copy it
22462         here.
22463         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
22464         Clear class FP0_REGS.
22465         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
22466         from elf.h.
22467         2001-03-08  DJ Delorie  <dj@redhat.com>
22468         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
22469         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
22470         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
22471         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
22472         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
22473         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
22474         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
22475         return value correctly for call_cookie.
22476         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
22477         * config/sh/crt1.asm (start): Modified so as to call
22478         ___setup_argv_and_call_main.
22479         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
22480         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
22481         SHmedia mode.
22482         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
22483         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
22484         (STRIP_NAME_ENCODING): Use it.
22485         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
22486         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
22487         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
22488         prepare_scc_operands().
22489         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
22490         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
22491         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
22492         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
22493         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
22494         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
22495         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
22496         used in shcompact_incoming_args.
22497         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
22498         change.
22499         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
22500         mode.
22501         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
22502         Adjust accordingly.
22503         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
22504         Simplify.  Adjust.  Add sanity check.
22505         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
22506         FPU_SINGLE_BIT.
22507         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
22508         TARGET_SHCOMPACT.
22509         (udivsi3, divsi3): Use them.
22510         (force_mode_for_call): New insn.
22511         (call, call_value, sibcall_value): Emit it before SHcompact
22512         calls.
22513         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
22514         * config/sh/sh.md (call, call_value, sibcall): Make sure the
22515         call cookie is non-NULL before taking its value.
22516         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
22517         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
22518         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
22519         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
22520         block.
22521         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
22522         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
22523         temporary for stack adjusts.  Use MACL and MACH to pass
22524         arguments to shcompact_incoming_args.
22525         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
22526         clobber r1.
22527         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
22528         (nested_trampoline): Load static chain address into r1.
22529         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
22530         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
22531         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
22532         fp_arith_reg_operand().
22533         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
22534         * config/sh/sh.md (casesi): Sign-extend the first two operands,
22535         and use signed compares for them.
22536         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
22537         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
22538         ones properly aligned.
22539         (find_barrier): Account for extra alignment needed for 8-byte wide
22540         constants.
22541         (machine_dependent_reorg): Require a label for the second 4-byte
22542         constant after an 8-byte one.
22543         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
22544         change.
22545         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
22546         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
22547         last_float when switching float modes.
22548         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
22549         auto-increment for general-purpose registers.
22550         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
22551         result.
22552         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
22553         for stack adjust.
22554         * config/sh/sh.c (sh_builtin_saveregs): Support using all
22555         registers for varargs.
22556         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
22557         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
22558         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
22559         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
22560         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
22561         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
22562         call_cookie accordingly.
22563         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
22564         (SHCOMPACT_BYREF): Likewise.
22565         (SHCOMPACT_FORCE_ON_STACK): New macro.
22566         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
22567         (sh_builtin_saveregs): Likewise.
22568         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
22569         shcompact_incoming_args): Use new shift values.  Support
22570         sequences of consecutive and non-consecutive pushes/pops.
22571         * config/sh/sh.md (return): Don't explicitly use PR_REG.
22572         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
22573         * config/sh/sh.h (TEXT_SECTION): Define.
22574         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
22575         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
22576         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
22577         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
22578         return values on FPU-enabled SHmedia.
22579         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
22580         FPU-enabled SHmedia.
22581         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
22582         value is returned in a non-FP reg and is not returned by
22583         reference.
22584         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
22585         jump_ind.
22586         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
22587         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
22588         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
22589         quad-aligned to be passed by callee-copy reference.
22590         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
22591         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
22592         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
22593         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
22594         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
22595         copying low-numbered FP regs to r7 and r8.
22596         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
22597         FP regs to general-purpose regs only if the copy was passed on the
22598         stack.
22599         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
22600         copying FP reg to r9.
22601         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
22602         copy FP regs to general-purpose regs only in outgoing calls.
22603         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
22604         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
22605         HOST_WIDE_INT.
22606         * config/sh/sh.h (struct sh_args): Document all fields.
22607         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
22608         passed partially on the stack should not consider making
22609         sibcalls.
22610         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
22611         stack_regs only for incoming calls.  When passing FP args,
22612         make sure there are FP regs available before modifying
22613         call_cookie.
22614         (SHCOMPACT_BYREF): Pass double args in general-purpose
22615         registers by reference.
22616         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
22617         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
22618         attempt to generate sibcalls if the caller got any arguments
22619         by reference.
22620         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
22621         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
22622         to 8-byte boundaries.
22623         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
22624         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
22625         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
22626         stored in the stack.
22627         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
22628         for the offsets to have the ISA bit set.
22629         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
22630         invocation.  Use beq instead of bgt to mark end of sequence of
22631         loads.
22632         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
22633         bgt to mark end of sequence of stores.
22634         * config/sh/sh.c (arith_operand): Don't check whether
22635         CONST_OK_FOR_J for now.
22636         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
22637         instead of long for conversion.
22638         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
22639         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
22640         before passing it to fprintf.
22641         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
22642         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
22643         Call set_fpscr before reading/writing SR.
22644         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
22645         Call set_fpscr.
22646         * config/sh/lib1funcs.asm: Add `.align 2' directives before
22647         SHmedia code.
22648         (FMOVD_WORKS): Define on SH5 with FPU.
22649         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
22650         setting.
22651         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
22652         _fpscr_values.
22653         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
22654         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
22655         address.
22656         (ia_main_table): Ditto.
22657         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
22658         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
22659         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
22660         the definitions from sh.h.
22661         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
22662         TARGET_SH5.
22663         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
22664         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
22665         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
22666         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
22667         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
22668         Increment LABEL_NUSES.
22669
22670         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
22671         TARGET_SH5.
22672         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
22673         defined.
22674         * config/sh/elf.h (SIZE_TYPE): Likewise.
22675         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
22676         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
22677         shcompact_incoming_args): Load switch table addresses using
22678         datalabel.
22679         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
22680         (NO_BUILTIN_SIZE_TYPE): Define.
22681         (SIZE_TYPE): Don't define.
22682         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
22683         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
22684         definition of __SH5__=32 for -m5-compact-nofpu.
22685         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
22686         ADDR_DIFF_VEC.
22687         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
22688         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
22689         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
22690         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
22691         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
22692         (INSN_LENGTH_ALIGNMENT): Likewise.
22693         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
22694         * config/sh/sh.md (call, call_value, sibcall): Simplify
22695         copying of non-branch-target register.
22696         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
22697         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
22698         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
22699         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
22700         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
22701         floating-point values as structs.
22702         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
22703         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
22704         general-purpose register.
22705         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
22706         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
22707         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
22708         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
22709         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
22710         (ENCODE_SECTION_INFO): Enclose variables and constants in
22711         DATALABEL unspecs.
22712         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
22713         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
22714         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
22715         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
22716         only for LABEL_REFs.  For SYMBOL_REFs, prepend
22717         SH_DATALABEL_ENCODING to the symbol name.
22718         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
22719         convert_mode().
22720         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
22721         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
22722         UNSPEC_DATALABEL.
22723         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
22724         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
22725         (DATALABEL_REF_P): Don't require CONST.
22726         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
22727         REL label.
22728         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
22729         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
22730         right.
22731         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
22732         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
22733         Use shallow_copy_rtx and PUT_MODE to change the mode of
22734         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
22735         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
22736         on SHmedia using GENERAL_REGs.
22737         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
22738         bltu_media_i): Fix reversion of conditions.
22739         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
22740         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
22741         * config/sh/sh.c (output_far_jump): Save r13 in macl.
22742         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
22743         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
22744         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
22745         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
22746         (GCC_nested_trampoline): Likewise.
22747         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
22748         * config/sh/sh.c (gen_datalabel_ref): Define.
22749         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
22750         (INITIALIZE_TRAMPOLINE): Likewise.
22751         (TRAMPOLINE_ADJUST_ADDRESS): Define.
22752         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
22753         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
22754         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
22755         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
22756         (ic_invalidate): Adjust for SH5.
22757         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
22758         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
22759         _nested_trampoline.
22760         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
22761         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
22762         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
22763         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
22764         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
22765         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
22766         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
22767         * config/sh/sh.c (target_reg_operand): Match only target-branch
22768         registers and pseudos that aren't virtual registers.
22769         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
22770         Copy operands that don't match target_reg_operand to pseudos.
22771         (call_media, call_value_media, sibcall_media): Use
22772         target_reg_operand instead of target_operand.
22773         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
22774         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
22775         * config/sh/sh.c (target_reg_operand): Match hardware registers
22776         other than branch-target registers.
22777         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
22778         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
22779         (fpscr_values) [SH5 == 32]: Define.
22780         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
22781         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
22782         Handle function addresses coming in SUBREGs.
22783         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
22784         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
22785         shcompact_return_trampoline): Use datalabel where appropriate.
22786         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
22787         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
22788         general-purpose register to copy one branch-target register to
22789         another.
22790         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
22791         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
22792         SYMBOL_REFs with VOIDmode.
22793         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
22794         bltu_media_i): New insns.
22795         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
22796         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
22797         (INIT_CUMULATIVE_ARGS): Likewise.
22798         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
22799         * machmode.def (V16SFmode): New mode.
22800         * c-common.c (type_for_mode): Support V2SF and V16SF.
22801         * tree.c (build_common_tree_nodes_2): Likewise.
22802         * tree.h (tree_index): Likewise.
22803         * calls.c (emit_call_1): Take args_so_far.  Adjust all
22804         callers.  Introduce CALL_POPS_ARGS.
22805         * tm.texi (CALL_POPS_ARGS): Document.
22806         * config/sh/crt1.asm: Implement in SHmedia mode.
22807         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
22808         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
22809         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
22810         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
22811         Implement divsi and udivsi in SHmedia mode.  Introduce
22812         SHcompact trampolines.
22813         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
22814         only in SHmedia64.
22815         (regno_reg_class): Rewrite.
22816         (fp_reg_names): Remove.
22817         (sh_register_names, sh_additional_register_names): New.
22818         (print_operand): Added `u'.  Support SUBREGs in addresses.
22819         Add parentheses around shifted CONSTs.
22820         (output_file_start): Output .mode and .abi directives.
22821         (shiftcosts, addsubcosts, multcosts): Adjust.
22822         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
22823         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
22824         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
22825         bytes, not registers.  Take into account the need for the
22826         SHcompact incoming args trampoline.  Adjust all callers.
22827         (sh_expand_prologue): Take stack_regs into account.  Call
22828         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
22829         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
22830         stack aligned as per SH5 ABI.
22831         (sh_builtin_saveregs): Support SH5 ABI.
22832         (sh_build_va_list, sh_va_start): Likewise.
22833         (initial_elimination_offset): Take alignment into account.
22834         Compute location of PR according to the SH5 stack frame.
22835         (arith_reg_operand): Reject branch-target registers.
22836         (shmedia_6bit_operand): New.
22837         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
22838         (target_reg_operand): Match DImode only.  Accept SUBREGs.
22839         (target_operand): New.
22840         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
22841         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
22842         SIBCALL_REGS for SHmedia.
22843         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
22844         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
22845         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
22846         (TARGET_SWITCHES): New SH5 flags.
22847         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
22848         VALID_REGISTER_P to disable unsupported registers.
22849         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
22850         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
22851         (FUNCTION_ARG_PADDING): Define.
22852         (FASTEST_ALIGNMENT): Adjust.
22853         (SH_REGISTER_NAMES_INITIALIZER): New.
22854         (sh_register_names): Declare.
22855         (DEBUG_REGISTER_NAMES): Define.
22856         (REGISTER_NAMES): Define based on sh_register_names.
22857         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
22858         (sh_additional_register_names): Declare.
22859         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
22860         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
22861         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
22862         (REGISTER_NATURAL_MODE): Define.
22863         (FIRST_PSEUDO_REGISTER): Adjust.
22864         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
22865         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
22866         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
22867         (VECTOR_MODE_SUPPORTED_P): Define.
22868         (REG_CLASS_CONTENTS): Adjust.
22869         (SMALL_REGISTER_CLASSES): Adjust.
22870         (REG_ALLOC_ORDER): Adjust.
22871         (INDEX_REG_CLASS): Adjust.
22872         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
22873         (CONST_OK_FOR_LETTER_P): Adjust.
22874         (PREFERRED_RELOAD_CLASS): Adjust.
22875         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
22876         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
22877         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
22878         (FIRST_FP_PARM_REG): Adjust.
22879         (CALL_POPS_ARGS): Define.
22880         (FUNCTION_ARG_REGNO_P): Adjust.
22881         (struct sh_args): New fields.
22882         (GET_SH_ARG_CLASS): Adjust.
22883         (INIT_CUMULATIVE_ARGS): Adjust.
22884         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
22885         (FUNCTION_ARG_ADVANCE): Adjust.
22886         (FUNCTION_ARG): Adjust.
22887         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
22888         (FUNCTION_ARG_CALLEE_COPIES): Define.
22889         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
22890         (STRICT_ARGUMENT_NAMING): Define.
22891         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
22892         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
22893         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
22894         (SETUP_INCOMING_VARARGS): Adjust.
22895         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
22896         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
22897         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
22898         (SUBREG_OK_FOR_INDEX_P): Adjust.
22899         (EXTRA_CONSTRAINT_S): Update.
22900         (EXTRA_CONSTRAINT_T): New.
22901         (EXTRA_CONSTRAINT): Adjust.
22902         (GO_IF_LEGITIMATE_INDEX): Adjust.
22903         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
22904         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
22905         (MOVE_MAX): Adjust.
22906         (MAX_MOVE_MAX): Define.
22907         (Pmode): Adjust.
22908         (CONST_COSTS): Adjust.
22909         (REGISTER_MOVE_COST): Adjust.
22910         (BRANCH_COST): Adjust.
22911         (TEXT_SECTION_ASM_OP): Adjust.
22912         (DBX_REGISTER_NUMBER): Adjust.
22913         (ASM_OUTPUT_DOUBLE_INT): New.
22914         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
22915         (PREDICATE_CODES): Adjust.
22916         (PROMOTE_MODE): Adjust.
22917         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
22918         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
22919         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
22920         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
22921         (DR0_REG, DR2_REG, DR4_REG): Renumber.
22922         (TR0_REG, TR1_REG, TR2_REG): New.
22923         (XD0_REG): Renumber.
22924         (UNSPEC_COMPACT_ARGS): New.
22925         (type): Added pt and ptabs.
22926         (length): Default to 4 on SHmedia.  Default pt length to 12
22927         and     20 on SHmedia32 and SHmedia64, respectively.
22928         (pt): New function unit.
22929         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
22930         Add whitespace between operands of SHmedia instructions.
22931         (movdicc): Fix.
22932         (adddi3_media, addsi3_media): Adjust constraints.
22933         (subsi3) [SHmedia]: Force operand 1 into a register.
22934         (udivsi3_i1_media, udivsi3_i4_media): New.
22935         (udivsi3): Support SHmedia.
22936         (divsi3_i1_media, divsi3_i4_media): New.
22937         (divsi3): Support SHmedia.
22938         (anddi3, iordi3, xordi3): Adjust constraints.
22939         (zero_extendhidi2, zero_extendqidi2): New.
22940         (extendsidi2, extendhidi2, extendqidi2): New.
22941         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
22942         (pop_e, pop_fpul, pop_4): Likewise.
22943         (movsi_media): Support FP and BT registers.
22944         (movsi_media_nofpu): New.  Adjust splits to DImode.
22945         (lduw, ldub): Renamed to zero_extend* above.
22946         (movqi_media): Fix typo.
22947         (movdi_media): Support FP and BT registers.
22948         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
22949         (movdi_const_32bit): New.
22950         (shori_media): Require immediate operand.  Use `u' for output.
22951         (movdf_media, movsf_media): Simplified.
22952         (movdf_media_nofpu, movsf_media_nofpu): New.
22953         (movdf, movsf): Adjust
22954         (movv2sf, movv2sf, movv16sf): New.
22955         (beq_media, beq_media_i): Adjust constraints.  Don't use
22956         scratch BT register.
22957         (bne_media, bne_media_i): Likewise.
22958         (bgt_media, bgt_media_i): Likewise.
22959         (bge_media, bge_media_i): Likewise.
22960         (bgtu_media, bgtu_media_i): Likewise.
22961         (bgeu_media, bgeu_media_i): Likewise.
22962         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
22963         bunordered): Emit jump insn.  Force operands to registers when
22964         needed.
22965         (jump_media, jump): Simplify.
22966         (call_compact, call_compact_rettramp): New.
22967         (call_value_compact, call_value_compact_rettramp): New.
22968         (call_media, call_value_media): Simplify.
22969         (sibcall_compact, sibcall_media): New.
22970         (call, call_value): Adjust for SHmedia and SHcompact.
22971         (sibcall, sibcall_value, untyped_call): Likewise.
22972         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
22973         (indirect_jump): Adjust for SHmedia.
22974         (casesi_jump_media): New.
22975         (nop): Re-enable for SHmedia.
22976         (call_site): Restrict to SH1.
22977         (casesi): Adjust for SHmedia.
22978         (casesi_shift_media, casesi_load_media): New.
22979         (return): Explicitly use PR register.  Call return trampoline
22980         on SHcompact.
22981         (return_i): Explicitly use PR register.
22982         (shcompact_return_tramp, shcompact_return_tramp_i): New.
22983         (return_media): Adjust.
22984         (shcompact_incoming_args): New.
22985         (epilogue): Adjust.
22986         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
22987         (movstrsi): Disable on SH5.
22988         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
22989         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
22990         (subsf3, subsf3_media): Likewise.
22991         (mulsf3, mulsf3_media, mac_media): Likewise.
22992         (divsf3, divsf3_media): Likewise.
22993         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
22994         (floatsisf2, fux_truncsfsi2): Likewise.
22995         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
22996         constraints.
22997         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
22998         (cmpunsf_media, cmpsf): Likewise.
22999         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
23000         (abssf2, abssf2_media): Likewise.
23001         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
23002         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
23003         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
23004         (floatsidf2, fix_truncdfsi2): Likewise.
23005         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
23006         constraints.
23007         (cmpeqdf_media, cmpgtdf_media): Likewise.
23008         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
23009         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
23010         (absdf2, absdf2_media): Likewise.
23011         (extendsfdf2, extendsfdf2_media): Likewise.
23012         (truncsfdf2, truncsfdf2_media): Likewise.
23013         * config/sh/sh64.h: New file.
23014         * config/sh/t-sh64: New file.
23015         * config/sh/shmedia.h: New file.
23016         * config/sh/ushmedia.h: New file.
23017         * config/sh/sshmedia.h: New file.
23018         * configure.in: Added sh64-*-elf.
23019         * configure: Rebuilt.
23020         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
23021         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
23022         (reg_class_from_letter): Use `b' for TARGET_REGS.
23023         (print_operand): Support `%M', `%m', `AND' and
23024         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
23025         (andcosts): Adjust for SHmedia.
23026         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
23027         Likewise.
23028         (target_reg_operand): New function.
23029         * config/sh/sh-protos.h (target_reg_operand): Declare.
23030         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
23031         FP registers on SH5.
23032         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
23033         on SH4.
23034         (TARGET_REGISTER_P): New macro.
23035         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
23036         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
23037         (EXTRA_CONSTRAINT_S): New macro.
23038         (EXTRA_CONSTRAINT): Adjust.
23039         (FLOAT_TYPE_SIZE): Define to 32.
23040         (Pmode): DImode on SHmedia.
23041         (CONST_COSTS): Adjust for SHmedia literals.
23042         (PREDICATE_CODES): Added target_reg_operand.
23043         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
23044         * config/sh/sh.md: Remove all attrs from SHmedia insns.
23045         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
23046         (cmpdi): Accept SHmedia.
23047         (movdicc_false, movdicc_true): New insns.
23048         (movdicc): New expand.
23049         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
23050         no_new_pseudos.
23051         (addsi3_media): Match `S' constraint.
23052         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
23053         (negdi2): Expand for SHmedia.
23054         (one_cmpldi2): New expand.
23055         (zero_extendsidi2): Change from expand to insn.
23056         (extendsidi2): Add constraints.
23057         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
23058         LD/ST address.  Fix SI immediate loading split.
23059         (movhi_media, movqi_media, lduw, ldub): New insns.
23060         (movhi, movqi): Accept SHmedia.
23061         (shori_media, movdi_media): Relax input constraints.  Split
23062         symbolic constants.
23063         (movdf_media, movsf_media): New insn.  New split to movdi.
23064         (movdf, movsf): Match on SHmedia.
23065         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
23066         bgeu_media): New insns and splits.  New insns with `_i' suffix.
23067         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
23068         (bunordered): New expand.
23069         (jump_compact): Renamed from `jump'.
23070         (jump_media): New insn.
23071         (jump): New expand.
23072         (call_media, call_value_media): New insns.
23073         (call, call_value): Adjust.
23074         (indirect_jump_compact): Renamed from `indirect_jump'.
23075         (indirect_jump_media): New insn.
23076         (indirect_jump): New expand.
23077         (untyped_call, return): Accept SHmedia.
23078         (return_media): New insn.
23079         (prologue, epilogue, blockage): Accept SHmedia.
23080         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
23081         (sunordered): New expand.
23082         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
23083         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
23084         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
23085         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
23086         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
23087         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
23088         abssf2_media): New insns.
23089         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
23090         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
23091         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
23092         floatdidf2, floatsidf2_media, fix_truncdfdi2,
23093         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
23094         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
23095         absdf2_media): New insns.
23096         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
23097         (extendsfdf2_media, truncdfsf2_media): New insns.
23098         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
23099         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
23100         * config/sh/sh.h (CONST_OK_FOR_J): Document.
23101         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
23102         * config/sh/sh.md (adddi3): New expand.
23103         (adddi3_media, adddi3z_media): New insns.
23104         (adddi3_compact): Renamed from adddi3.
23105         (addsi3_media): Use add.l r63 to add constant zero.
23106         (subdi3): New expand.
23107         (subdi3_media): New insn.
23108         (subdi3_compact): Renamed from subdi3.
23109         (mulsidi3): New expand.
23110         (mulsidi3_media): New insn.
23111         (mulsidi3_compact): Renamed from mulsidi3.
23112         (umulsidi3): New expand.
23113         (umulsidi3_media): New insn.
23114         (umulsidi3_compact): Renamed from umulsidi3.
23115         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
23116         (ashlsi3, ashrsi3, lshrsi3): Use them.
23117         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
23118         (ashldi3, ashrdi3, lshrdi3): Use them.
23119         (zero_extendsidi2): New expand.
23120         (extendsidi2): New insn.
23121         (movsi_media): New insn.  Split to movdi to load constants.
23122         (movsi): Enable for shmedia.
23123         (movdi_media): New insn.  Use shori_media to load wide constants.
23124         (short_media): New insn.
23125         (movdi): Enable for shmedia.
23126         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
23127         * config/sh/sh.h (CPP_SPEC): Added `m5'.
23128         (SUBTARGET_CPP_SPEC): Added `!m5'.
23129         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
23130         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
23131         to all other SH variants.
23132         (TARGET_DEFAULT): Set to SH1_BIT.
23133         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
23134         (BITS_PER_WORD): Raise to 64 on shmedia.
23135         (MAX_BITS_PER_WORD): Change to 64.
23136         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
23137         (INT_TYPE_SIZE): Keep as 32.
23138         (UNITS_PER_WORD): Raise to 8 on shmedia.
23139         (MIN_UNITS_PER_WORD): Keep as 4.
23140         (POINTER_SIZE): Raise to 64 on shmedia.
23141         (CONST_OK_FOR_J): New macro.
23142         (CONST_OK_FOR_LETTER_P): Use it.
23143         (processor_type): Add PROCESSOR_SH5.
23144         * config/sh/sh.md: Conditionalize all expands, insns and
23145         splits to TARGET_SH1.
23146         (cpu): Added sh5.
23147         (addsi3_compact): Renamed from...
23148         (addsi3): Now an expand.
23149         (addsi3_media, subsi3_media): New insns.
23150         (subsi3): Don't negate constants with SHmedia.
23151
23152         * hooks.c: New file.
23153         * hooks.h: New file.
23154         * Makefile.in (HOOKS_H): New.
23155         (TARGET_DEF_H): Added $(HOOKS_H).
23156         (OBJS): Added hooks.o.
23157         (cfgcleanup.o, bb-reorder.o): Added target.h.
23158         (hooks.o): Added dependencies.
23159         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
23160         (TARGET_INITIALIZER): this.
23161         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
23162         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
23163         * bb-reorder.c: Include target.h.
23164         (reorder_basic_blocks): Skip if cannot modify jumps.
23165         * cfgcleanup.c: Include target.h.
23166         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
23167
23168 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
23169
23170         * config/mips/mips.md (casesi_internal, casesi_internal_di):
23171         Protect jump delay slot instructions with .set noreorder and
23172         .set nomacro.
23173
23174 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
23175
23176         * config/mips/mips.md (casesi_internal_di): Calculate
23177         the index into the target offset table correctly.
23178
23179 2002-02-08  Richard Henderson  <rth@redhat.com>
23180
23181         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
23182         * final.c (output_addr_const): Accept and discard SUBREG.
23183         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
23184         mark them unknown instead.
23185         (simplify_subtraction): Handle RTX_UNKNOWN.
23186         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
23187
23188 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
23189
23190         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
23191
23192 2002-02-08  Richard Henderson  <rth@redhat.com>
23193
23194         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
23195
23196 2002-02-08  Andreas Jaeger  <aj@suse.de>
23197
23198         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
23199         * config/i386/t-linux64: New file.
23200
23201 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
23202
23203         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
23204         * c-parse.in (compstmt): Clear last_expr_type.
23205
23206 2002-02-07  Richard Henderson  <rth@redhat.com>
23207
23208         * loop.c (strength_reduce): Sink final_value when not
23209         eliminating a biv.
23210
23211 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
23212
23213         * config/sparc/freebsd.h: Fix mismatched spec {.
23214
23215 2002-02-07  Richard Henderson  <rth@redhat.com>
23216
23217         * cfgrtl.c: Include recog.h and insn-config.h.
23218         (keep_with_call_p): Fix general_operand invocation.
23219         * Makefile.in (cfgrtl.o): Update dependencies.
23220
23221 2002-02-07  Kazu Hirata  <kazu@hxi.com>
23222
23223         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
23224         comment.  Accept HImode only if TARGET_H8300.
23225
23226 2002-02-07  Eric Christopher  <echristo@redhat.com>
23227
23228         * config/mips/crtn.asm: Cleanup #ifdefs.
23229
23230 2002-02-07  Eric Christopher  <echristo@redhat.com>
23231
23232         * config/mips/crti.asm: Add changes for mips16. mips16 uses
23233         register 7 as RA instead of $31.
23234         * config/mips/crtn.asm: Ditto.
23235         * config/mips/mips.c (mips_move_2words): Add case for
23236         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
23237         (compute_frame_size): Fix typo.
23238         (save_restore_insns): Ditto.  Make documentation about using
23239         register $7 as return register more precise.
23240         (mips_expand_epilogue): Fix comment. Add code to work around not
23241         being able to add to the stack pointer directly.
23242         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
23243         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
23244         epilogue.
23245
23246 2002-02-07  Tom Rix  <trix@redhat.com>
23247
23248         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
23249         immediates in ldu and stdu DS opcode field.
23250         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
23251         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
23252         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
23253
23254 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
23255
23256         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
23257         offset for stack bias.
23258
23259 2002-02-07  H.J. Lu <hjl@gnu.org>
23260
23261         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
23262
23263 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
23264
23265         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
23266
23267 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
23268
23269         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
23270         * i386.c (x86_order_regs_for_local_alloc): New global function.
23271         * i386.h (REG_ALLOC_ORDER): CLeanup.
23272         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
23273
23274 2002-02-07  Richard Henderson  <rth@redhat.com>
23275
23276         PR optimization/2463
23277         * alias.c (find_base_value): Recall base values for fixed hard regs.
23278         * loop.c (loop_regs_update): Don't use single_set on non-insns.
23279
23280 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
23281
23282         * config/mips/mips.md (define_delay) [mips16]: Adjust required
23283         length.
23284
23285 2002-02-06  Richard Henderson  <rth@redhat.com>
23286
23287         PR c/5609
23288         * stmt.c (resolve_operand_name_1): Take more care with mixed
23289         named and unnamed operands.
23290
23291 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
23292             Jan Hubicka  <jh@suse.cz>
23293
23294         * loop.c (remove_constant_addition): Avoid clobbering a shared
23295         CONST expression.
23296
23297 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
23298
23299         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
23300         * config/s390/t-linux64: New file.
23301         * config/s390/libgcc-glibc.ver: New file.
23302
23303 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
23304
23305         * config/s390/linux64.h: Delete file.
23306         * config/s390/s390x.h: New file.
23307         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
23308         as target header file.
23309         * config/s390/linux.h (TARGET_VERSION): Define depending on
23310         DEFAULT_TARGET_64BIT.
23311         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
23312         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
23313         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
23314         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
23315         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
23316         (EXTRA_SPEC): New define.
23317         * config/s390/s390.h (TARGET_VERSION): Define depending on
23318         DEFAULT_TARGET_64BIT.
23319         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
23320
23321 2002-02-06  Jason Merrill  <jason@redhat.com>
23322
23323         * c-decl.c (finish_function): Warn about a non-void function with
23324         no return statement and no abnormal exit.
23325         (current_function_returns_abnormally): New variable.
23326         (start_function): Clear it.
23327         (struct c_language_function): Add returns_abnormally.
23328         (push_c_function_context): Save it.
23329         (pop_c_function_context): Restore it.
23330         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
23331         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
23332         an explicit return type.
23333         * c-tree.h: Declare current_function_returns_abnormally.
23334         (C_FUNCTION_IMPLICIT_INT): New macro.
23335         * c-typeck.c (build_function_call): Set it.
23336         (c_expand_return): Set current_function_returns_value even if the
23337         value is erroneous.
23338
23339 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
23340
23341         PR c/5420:
23342         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
23343         unsafe for reevaluation.
23344
23345 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
23346
23347         PR c/5482:
23348         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
23349         EXPR_STMT, but COMPOUND_STMT, recurse into it.
23350
23351 2002-02-06  Richard Henderson  <rth@redhat.com>
23352
23353         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
23354         be a general_operand.  Dest for function value must be a pseudo.
23355
23356 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
23357
23358         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
23359         as SYMBOL_REFs from the constant pool.
23360
23361 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
23362
23363         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
23364         passed by invisible reference.
23365
23366 2002-02-05  Richard Henderson  <rth@redhat.com>
23367
23368         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
23369
23370 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
23371
23372         Implement using "base addresses" in insn operands as default.
23373         * config/mmix/mmix.c (mmix_conditional_register_usage): if
23374         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
23375         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
23376         used to read the rtx value.
23377         (mmix_target_asm_function_epilogue): Fix spacing.
23378         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
23379         (mmix_legitimate_address): Ditto.
23380         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
23381         should be loaded with a GETA insn.  Don't allocate needless extra
23382         char for nul termination and fix misleading comment.
23383         (mmix_print_operand_address): Handle constants if
23384         TARGET_BASE_ADDRESSES.
23385         (mmix_output_register_setting): Use base addressing if
23386         TARGET_BASE_ADDRESSES and the number of insns is 3.
23387         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
23388         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
23389         to use R as constraint, add LDA to match s.
23390         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
23391         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
23392         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
23393         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
23394         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
23395         order with other fixed registers.
23396         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
23397         other parameter/call-clobbered registers.
23398         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
23399         -mbase-addresses, -mno-base-addresses.
23400         (MMIX Options): Ditto.
23401
23402 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23403
23404         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
23405
23406 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
23407
23408         * config/rs6000/altivec.h: Change elem to _S_elem.
23409
23410 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
23411
23412         * config/netbsd.h (WCHAR_TYPE): Define.
23413         (WCHAR_TYPE_SIZE): Ditto.
23414         (WINT_TYPE): Ditto.
23415         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
23416         (WCHAR_UNSIGNED): Ditto.
23417         (WCHAR_TYPE_SIZE): Ditto.
23418         (WINT_TYPE): Ditto.
23419         * config/arm/netbsd.h: Likewise.
23420         * config/i386/netbsd-elf.h: Likewise.
23421         * config/i386/netbsd.h: Likewise.
23422         * config/m68k/netbsd-elf.h: Likewise.
23423         * config/m68k/netbsd.h: Likewise.
23424         * config/ns32k/netbsd.h: Likewise.
23425         * config/sparc/netbsd.h: Likewise.
23426         * config/vax/netbsd.: Likewise.
23427
23428 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
23429
23430         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
23431         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
23432         (TARGET_INITIALIZER): this.
23433         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
23434         (BITFIELD_NBYTES_LIMITED): Markup fix.
23435         * tree.h (default_ms_bitfield_layout_p): Declare.
23436         (record_layout_info): Added prev_field.
23437         * tree.c (default_ms_bitfield_layout_p): New fn.
23438         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
23439         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
23440         * stor-layout.c: Include target.h.
23441         (start_record_layout): Initialize prev_field.
23442         (place_field): Handle MS bit-field layout, and disregard
23443         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
23444         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
23445         * Makefile.in (stor-layout.o): Adjust dependencies.
23446
23447 2002-02-05  Jason Merrill  <jason@redhat.com>
23448
23449         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
23450
23451 2002-02-05  Andreas Jaeger  <aj@suse.de>
23452
23453         * crtstuff.c: Fix comments.
23454
23455 2002-02-05  Richard Henderson  <rth@redhat.com>
23456
23457         PR fortran/3393
23458         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
23459         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
23460
23461         PR fortran/3392
23462         * config/mips/mips.c (function_arg): Handle TImode.
23463         (function_arg_advance): Likewise.
23464
23465 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
23466
23467         * config/rs6000/altivec.h (vec_step_help): Rename to
23468         __vec_step_help.
23469
23470 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
23471
23472         * config/rs6000/altivec.h: Fix typos.
23473
23474 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
23475
23476         * config/arm/netbsd.h: Correct a comment.
23477
23478 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
23479
23480         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
23481         building void typed builtins.
23482
23483         * config/rs6000/altivec.h (vec_ld*): Fix typos.
23484         (vec_step): Implement for C++.
23485
23486 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23487
23488         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
23489
23490 2002-02-04  Richard Henderson  <rth@redhat.com>
23491
23492         * combine.c (nonzero_bits): Re-introduce special case for
23493         sp/fp/ap wrt REGNO_POINTER_ALIGN.
23494
23495 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
23496
23497         * doc/extend.texi: Warn about unsupported usage of altivec
23498         builtins.
23499
23500         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
23501         (altivec_predicate_*): New.
23502
23503         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
23504         Add C++ version of vec_*() functions.
23505
23506         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
23507         (bdesc_2arg): Remove altivec predicates.
23508         (altivec_expand_builtin): Handle predicates.
23509         (altivec_init_builtins): Handle predicates.
23510         (altivec_expand_predicate_builtin): New.
23511
23512 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23513
23514         * pa.c (DO_FRAME_NOTES): Move forward.
23515         (store_reg): Revise handling of frame notes.
23516         (load_reg): Likewise.
23517         (set_reg_plus_d): Likewise.
23518         (hppa_expand_prologue): Likewise.
23519         (hppa_expand_epilogue): Likewise.
23520
23521 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23522
23523         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
23524
23525 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
23526
23527         PR c/4475, c++/3780:
23528         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
23529         * c-common.h (SWITCH_TYPE): Define.
23530         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
23531         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
23532         Rename spareness variable to sparseness.
23533         (expand_end_case_type): Renamed from expand_end_case, use orig_type
23534         if non-NULL instead of TREE_TYPE (orig_index).
23535         * tree.h (expand_end_case_type): Renamed from expand_end_case.
23536         (expand_end_case): Define using expand_end_case_type.
23537         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
23538         to expand_end_case_type.
23539         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
23540
23541 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23542
23543         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
23544         (BIGGEST_ALIGNMENT): Change to 128.
23545
23546 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23547
23548         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
23549
23550 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23551
23552         * pa.md (call_internal_reg_64bit): Remove unused variable.
23553
23554 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
23555
23556         * config/arm/arm.h (machine_function): Add uses_anonymous_args
23557         field.
23558         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
23559         * config/arm/arm.c (current_function_anonymous_args): Delete,
23560         replace uses with cfun->machine->uses_anonymous_args.
23561         (arm_reorg): Do not reset uses_anonymous_args.
23562
23563         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
23564         any geenral register.
23565
23566 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
23567
23568         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
23569         the entry block.
23570
23571 2002-02-04  Richard Henderson  <rth@redhat.com>
23572
23573         * combine.c (force_to_mode): Remove STACK_BIAS code.
23574         (nonzero_bits): Likewise.  Replace sp/fp special case with
23575         REGNO_POINTER_ALIGN.
23576
23577         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
23578         (HARD_FRAME_POINTER_REGNUM): New.
23579         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
23580         (FIXED_REGS, CALL_USED_REGS): Update.
23581         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
23582         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
23583         (HARD_REGNO_NREGS): Update for SFP.
23584         (STACK_POINTER_OFFSET): Include bias here ...
23585         (FIRST_PARM_OFFSET): ... not here.
23586         (STACK_BIAS): Remove.
23587         (INIT_EXPANDERS): New.
23588         (STARTING_FRAME_OFFSET): Do not include bias.
23589         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
23590         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
23591         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
23592         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
23593         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
23594         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
23595         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
23596         (MUST_SAVE_REGISTER): Likewise.
23597         (sparc_flat_function_prologue): Likewise.
23598         (sparc_flat_function_epilogue): Likewise.
23599         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
23600         (sparc_init_modes): SFP is GENERAL_REGS.
23601         (sparc_builtin_saveregs): SFP does not have bias applied.
23602
23603 2002-02-04  Richard Henderson  <rth@redhat.com>
23604
23605         * config/alpha/alpha.c (current_function_is_thunk): Don't check
23606         current_function_is_thunk.
23607         (alpha_sa_mask): Distinguish between current_function_is_thunk
23608         called from ASM_OUTPUT_MI_THUNK and not.
23609         (alpha_does_function_need_gp): Thunks always need gp.
23610         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
23611         (alpha_output_mi_thunk_osf): New.
23612         * config/alpha/alpha-protos.h: Update.
23613         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
23614
23615 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
23616
23617         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
23618         function types, not when they're taken away.
23619
23620 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
23621
23622         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
23623         CODE_LABEL and jump table when replacing a table jump with a
23624         simple jump.
23625
23626 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
23627
23628         * config/s390/s390-protos.h (legitimize_la_operand,
23629         s390_secondary_input_reload_class, s390_plus_operand,
23630         s390_expand_plus_operand): Add prototypes.
23631
23632         config/s390/s390.c (s390_secondary_input_reload_class,
23633         s390_plus_operand, s390_expand_plus_operand): New functions.
23634
23635         (struct s390_address): New member 'pointer'.
23636         (s390_decompose_address): Compute it.
23637         (legitimate_la_operand_p): Use it.
23638         (legitimize_la_operand): New function.
23639         (movti, movdi, movdf splitters): Call it.
23640
23641         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
23642         (PREDICATE_CODES): Add s390_plus_operand.
23643
23644         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
23645         (la_ccclobber): Allow GENERAL_REGS as output operand.
23646
23647         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
23648         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
23649         (*la_64, *la_31, reload_indi, reload_insi): ... these.
23650
23651 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
23652
23653         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
23654         register names for regular asm () construct.
23655
23656 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
23657
23658         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
23659         registers.
23660
23661 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
23662
23663         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
23664         pat for recog.
23665
23666 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
23667
23668         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
23669         constant pool to be identical by string address and index.
23670
23671 2002-02-04  Anthony Green  <green@redhat.com>
23672
23673         * output.h (SECTION_OVERRIDE): Define.
23674         * varasm.c (named_section): Obey SECTION_OVERRIDE.
23675
23676 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
23677
23678         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
23679         by existing arm*-*-netbsd* (a.out) target.
23680         (ns32k-*-netbsdelf*): Likewise.
23681         (sparc-*-netbsdelf*): Likewise.
23682         (vax-*-netbsdelf*): Likewise.
23683
23684 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
23685
23686         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
23687         headers and libobjc headers.
23688
23689 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
23690
23691         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
23692         (_mingw.h): Remove duplicate include.
23693
23694 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
23695
23696         * config.gcc: Set cpu_type to m68k for 68010, as well.
23697         (m68010-*-netbsdelf*): New...
23698         (m68k*-*-netbsdelf*): ...targets.
23699         * config/m68k/netbsd-elf.h: New file.
23700
23701 2002-02-02  Kazu Hirata  <kazu@hxi.com>
23702
23703         * config/h8300/h8300.c (hand_list): Move inside function_arg.
23704
23705 2002-02-02  Kazu Hirata  <kazu@hxi.com>
23706
23707         * config/h8300/h8300.c (h8_push_ops): Move inside
23708         h8300_init_once.
23709         (h8_pop_ops): Likewise.
23710         (h8_move_ops): Likewise.
23711
23712 2002-02-02  Kazu Hirata  <kazu@hxi.com>
23713
23714         * config/h8300/h8300.c (os_task): Make it static.
23715         (monitor): Likewise.
23716         (pragma_saveall): Likewise.
23717
23718 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
23719
23720         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
23721         constant is a valid sign-extension for Pmode.
23722
23723 2002-02-02  Kazu Hirata  <kazu@hxi.com>
23724
23725         * config/h8300/h8300.c: Fix formatting.
23726
23727 2002-02-02  Kazu Hirata  <kazu@hxi.com>
23728
23729         * config/h8300/h8300.md: Fix formatting.
23730
23731 2002-02-02  Kazu Hirata  <kazu@hxi.com>
23732
23733         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
23734         predicates of operands[1].  Split the patterns for each
23735         processor variant.
23736
23737 2002-02-02  Kazu Hirata  <kazu@hxi.com>
23738
23739         * config/h8300/h8300.md (xor patterns): Tighten the predicates
23740         of operands[1] to register_operand.
23741
23742 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
23743
23744         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
23745         * cpphash.c (_cpp_init_hashtable): Similarly.
23746         * cppinit.c (cpp_create_reader): Default the signed_char flag.
23747         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
23748         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
23749         (cpp_handle_option): Handle the new options.
23750         * cpplex.c (cpp_interpret_charconst): Use new flag.
23751         * cpplib.h (struct cpp_options): New member signed_char.
23752         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
23753         (cpp_options): Handle -fsigned-char and -funsigned-char.
23754         (static_specs): Remove signed_char_spec.
23755         (do_spec1): Don't handle %c.
23756         * system.h: Poison SIGNED_CHAR_SPEC.
23757         * tradcif.y (yylex): Use flag_signed_char.
23758         * tradcpp.h (flag_signed_char): New.
23759         * tradcpp.c (flag_signed_char): New.
23760         (main): Handle new command-line options.
23761         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
23762 config:
23763         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
23764         * avr/avr.h: Remove old comments.
23765         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
23766         (CC1_SPEC): Pass -fsigned-char if -mic*.
23767         (SIGNED_CHAR_SPEC): Remove.
23768 doc:
23769         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
23770
23771 2002-02-01  Eric Christopher  <echristo@redhat.com>
23772
23773         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
23774         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
23775         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
23776         (ASM_OUTPUT_REG_POP): Ditto.
23777
23778 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
23779
23780         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
23781         patch.
23782
23783 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
23784
23785         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
23786
23787 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
23788
23789         PR c/5304:
23790         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
23791         unconditionally.
23792
23793 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
23794
23795         * cfganal.c: Include tm_p.h.
23796         (keep_with_call_p): Fix the test that determines if a register holds
23797         the return value of a call.
23798
23799 2002-02-01  DJ Delorie  <dj@redhat.com>
23800
23801         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
23802         we are given conflicting registers, switch to the other one we
23803         had allocated for us.
23804         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
23805         as TImode so we know when the "other" register is available.
23806
23807 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
23808
23809         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
23810         sparc/sparc_bi.h.
23811
23812 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
23813
23814         * cfganal.c (keep_with_call_p): New function.
23815         (flow_call_edges_add): Prevent splitting a block between a call and
23816         a single-set instruction that should be kept in the same block.
23817
23818 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
23819
23820         * doc/install.texi (avr): Update outdated URL.
23821
23822 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
23823
23824         * config/stormy16/stormy16.md (pushqi): New.
23825         (popqi): New.
23826         (pushhi): New.
23827         (pophi): New.
23828         (movhi): Remove stack operands.
23829         (movqi): Likewise.
23830         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
23831         nonimmediate_nonstack_operand.
23832         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
23833         New.
23834         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
23835         New.
23836
23837 2002-01-31  Jason Merrill  <jason@redhat.com>
23838
23839         * Makefile.in (c-parse.c): Handle .output file.
23840         * objc/Make-lang.in (objc-parse.c): Likewise.
23841
23842 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
23843
23844         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
23845         the -me[lb] option is given.  Don't output the default flag
23846         twice.
23847
23848 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
23849
23850         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
23851         the primary source file; this has not been done yet.
23852         * c-decl.c (c_expand_body): Reset input_filename from
23853         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
23854
23855 2002-01-31  Kazu Hirata  <kazu@hxi.com>
23856
23857         * rtlanal.c (subreg_regno_offset): Do not use
23858         SUBREG_REGNO_OFFSET.
23859         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
23860         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
23861
23862 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
23863
23864         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
23865         version rather than GNATS version in --version output.
23866
23867 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
23868
23869         * ifcvt.c (noce_process_if_block): Make a copy of the destination
23870         when copying back from a temporary.
23871
23872 2002-01-30  Richard Henderson  <rth@redhat.com>
23873
23874         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
23875         and new_dest are the same.
23876
23877 2002-01-30  Richard Henderson  <rth@redhat.com>
23878
23879         PR opt/5076
23880         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
23881         * rtl.c (note_insn_name): Update.
23882         * emit-rtl.c (remove_unnecessary_notes): Kill it.
23883         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
23884         to perform loop rotation.
23885         (expand_exit_loop_top_cond): New.
23886         * tree.h (expand_exit_loop_top_cond): Declare it.
23887         * c-semantics.c (genrtl_while_stmt): Use it.
23888         (genrtl_for_stmt): Likewise.
23889
23890 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
23891
23892         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
23893         arguments to 64-bit boundaries on 64-bit ABIs.
23894
23895 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
23896
23897         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
23898
23899 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
23900
23901         * c-decl.c (grokdeclarator): Handle type being a typedef for an
23902         invalid type.
23903
23904 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
23905
23906         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
23907         * config/sparc/sparc_bi.h: Remove file.
23908         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
23909
23910 2002-01-30  Richard Henderson  <rth@redhat.com>
23911
23912         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
23913
23914 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
23915
23916         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
23917
23918 2002-01-30  Jason Merrill  <jason@redhat.com>
23919
23920         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
23921         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
23922         (reg_save): Use DW_CFA_offset_extended_sf instead.
23923
23924         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
23925
23926 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
23927
23928         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
23929         in cselib_lookup.
23930
23931 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
23932
23933         * rs6000.md ("*call_value_local32"): Remove constraints.
23934         ("*call_value_local64"): Same.
23935         ("*call_value_indirect_nonlocal_aix32"): Same.
23936         ("*call_value_nonlocal_aix32"): Same.
23937         ("*call_value_indirect_nonlocal_aix64"): Same.
23938         ("*call_value_nonlocal_aix64"): Same.
23939         ("*call_value_nonlocal_sysv"): Same.
23940
23941 2002-01-29  Richard Henderson  <rth@redhat.com>
23942
23943         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
23944
23945 2002-01-29  Richard Henderson  <rth@redhat.com>
23946
23947         * expr.c (force_operand): Ignore flag_pic for detecting pic
23948         address loads.
23949         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
23950         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
23951         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
23952         instead of open-coded loop.
23953         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
23954         be fixed when in use.
23955
23956 2002-01-29  Richard Henderson  <rth@redhat.com>
23957
23958         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
23959         * sched-rgn.c (propagate_deps): Update them.
23960         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
23961         clobbers list when either gets too long.
23962
23963 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
23964
23965         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
23966         and INDEX_REGS the same as GENERAL_REGS.
23967         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
23968
23969 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
23970
23971         * tree.c (build_nonstandard_integer_type): Correct prototype.
23972
23973 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
23974
23975         * config/s390/s390.md (movstrsico, movstrdix_64,
23976         movstrsix_31): Remove, replace by ...
23977         (movstrdi_short, movstrsi_short, movstrdi_long,
23978         movstrsi_long): ... these.  New.
23979         (movstrdi, movstrsi): Adapt.
23980
23981         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
23982         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
23983         Remove unnecessary CC clobber.
23984         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
23985         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
23986
23987         (divmoddi4): Don't partially initialize TImode register.
23988
23989 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
23990
23991         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
23992
23993 2002-01-29  Richard Henderson  <rth@redhat.com>
23994
23995         * flow.c (print_rtl_and_abort): Remove.
23996         (print_rtl_and_abort_fcn): Remove.
23997         (verify_local_live_at_start): Use dump_bb instead.
23998         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
23999         (verify_wide_reg_1): Return 2 on mode test failure.
24000
24001 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
24002
24003         PR c/3325, c/3326, c/2511, c/3347
24004         * c-decl.c (enum_decl_context): Remove BITFIELD.
24005         (grokdeclarator): Take bitfield width as an input.
24006         Ensure bitfields are given the correct type.  Perform
24007         bitfield width validation with build_bitfield_integer_type
24008         rather than waiting for finish_struct.
24009         (grok_typename, grok_typename_in_parm_context, start_decl,
24010         push_parmdecl, grokfield, start_function): Update calls to
24011         grokdeclarator.
24012         (build_bitfield_integer_type): New function.
24013         (finish_struct): Move bitfield validation to grokdeclarator
24014         and build_bitfield_integer_type.
24015         * tree.c (build_nonstandard_integer_type): New function.
24016         * tree.h (build_nonstandard_integer_type): New prototype.
24017 objc:
24018         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
24019
24020 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
24021
24022         PR other/1502:
24023         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
24024         don't ignore unrecognized -W* options.
24025         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
24026         * cpplib.h (cpp_handle_option): Adjust prototype.
24027         * c-decl.c (c_decode_options): Pass 0 as last argument to
24028         cpp_handle_option.
24029
24030         PR c/2896:
24031         * gcc.c (cpp_unique_options): Split from cpp_options.
24032         (cpp_options): Source cpp_unique_options.
24033         (default_compilers): Use cpp_unique_options instead of cpp_options
24034         when used together with cc1_options.
24035         (static_specs): Add cpp_unique_options.
24036         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
24037         when used together with cc1_options.
24038
24039 2002-01-29  Kazu Hirata  <kazu@hxi.com>
24040
24041         * config/h8300/h8300-protos.h: Update the prototype of
24042         output_a_shift.
24043         * config/h8300/h8300.c (output_a_shift): Remove an unused
24044         argument 'insn'.  Remove redundant code.
24045         * config/h8300/h8300.md: Adust to the new prototype of
24046         output_a_shift.
24047
24048 2002-01-29  Kazu Hirata  <kazu@hxi.com>
24049
24050         * config/h8300/h8300-protos.h: Update the prototypes of
24051         emit_a_rotate and expand_a_rotate.
24052         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
24053         first argument to 'enum rtx_code'.
24054         (expand_a_rotate): Likewise.
24055
24056 2002-01-28  Kazu Hirata  <kazu@hxi.com>
24057
24058         * config/h8300/h8300-protos.h: Update the prototype of
24059         output_simode_bld.
24060         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
24061         'log2'.
24062         * config/h8300/h8300.md: Adjust to the new prototype.
24063
24064 2002-01-28  Kazu Hirata  <kazu@hxi.com>
24065
24066         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
24067         redundant code.
24068
24069 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24070
24071         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
24072         is a fixed register before returning pic_offset_table_rtx.
24073         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
24074         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
24075
24076 2002-01-28  Jason Merrill  <jason@redhat.com>
24077
24078         * dwarf2.h: Sync with src version.
24079
24080 2002-01-28  Paul Koning  <pkoning@equallogic.com>
24081
24082         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
24083         BT_FN_VOID_PTR_VAR.
24084         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
24085         * doc/extend.texi (__builtin_prefetch): Update documentation:
24086         first argument is now const void ptr.
24087
24088 2002-01-28  Kazu Hirata  <kazu@hxi.com>
24089
24090         * config/h8300/h8300-protos.h: Remove an unused prototype.
24091
24092 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
24093
24094         * toplev.c (lang_independent_init): Round up identifier size.
24095
24096 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
24097
24098         * config.gcc: Revert previous change.
24099
24100 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
24101
24102         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
24103
24104 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
24105
24106         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
24107         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
24108         other non-elf netbsd config frags.
24109         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
24110         collect2 will does that.
24111         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
24112         shared-lib frobbing will work.
24113
24114 2002-01-28  Kazu Hirata  <kazu@hxi.com>
24115
24116         * config/h8300/h8300.h: Fix formatting.
24117         * config/h8300/h8300.md: Likewise.
24118
24119 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
24120
24121         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
24122         the old, removed AAA_standards fix.
24123         * fixinc/fixincl.x: Rebuilt.
24124
24125 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
24126
24127         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
24128         atexit call in crtbegin, hooked in after call to frame_dummy;
24129         register EH before registering __fini__start.
24130
24131 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
24132
24133         * config/rs6000/altivec.h: Remove spurious semicolons.
24134
24135 2002-01-27  Kazu Hirata  <kazu@hxi.com>
24136
24137         * config/h8300/h8300.md: Replace dead bit extraction patterns
24138         with ones that work.
24139
24140 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24141
24142         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
24143         if not STRICT_ALIGNMENT.
24144         * rtl.h (MEM_ALIGN): Likewise.
24145
24146 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24147
24148         * doc/invoke.texi (-fdump-translation-unit): Revert this
24149         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24150
24151 2002-01-27  Kazu Hirata  <kazu@hxi.com>
24152
24153         * config/h8300/h8300.md (define_constants): New.
24154         (anonymous patterns) Use defined constants appropriately.
24155
24156 2002-01-27  Kazu Hirata  <kazu@hxi.com>
24157
24158         * config/h8300/h8300.c (function_arg): Remove redundant code.
24159
24160 2002-01-26  Richard Henderson  <rth@redhat.com>
24161
24162         * sched-deps.c (reg_pending_uses_head): New.
24163         (reg_pending_barrier): Rename from reg_pending_sets_all.
24164         (find_insn_list): Don't mark inline.
24165         (find_insn_mem_list): Remove.
24166         (add_dependence_list, add_dependence_list_and_free): New.
24167         (flush_pending_lists): Replace only_write param with separate
24168         for_read and for_write parameters.  Update all callers.  Use
24169         add_dependence_list_and_free.
24170         (sched_analyze_1): Do not add reg dependencies here; just set
24171         the pending bits.  Use add_dependence_list.
24172         (sched_analyze_2): Likewise.
24173         (sched_analyze_insn): Replace schedule_barrier_found with
24174         reg_pending_barrier.  Add all dependencies for pending reg
24175         uses, sets, and clobbers.
24176         (sched_analyze): Don't add reg dependencies for calls, just
24177         set pending bits.  Use regs_invalidated_by_call.  Treat
24178         sched_before_next_call as a normal list, not a fake insn.
24179         (init_deps): No funny init for sched_before_next_call.
24180         (free_deps): Free pending mems lists.  Don't zero reg_last.
24181         (init_deps_global): Init reg_pending_uses.
24182         (finish_deps_global): Free it.
24183         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
24184         (find_insn_mem_list): Remove.
24185         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
24186         (propagate_deps): Use them.  Zero temp mem lists.
24187
24188 2002-01-26  Richard Henderson  <rth@redhat.com>
24189
24190         * Makefile.in (CRTSTUFF_CFLAGS): New.
24191         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
24192         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
24193         crtstuff.c instead of alpha assembly version.
24194         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
24195         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
24196         not FORCE_{INIT,FINI}_SECTION_ALIGN.
24197         (__do_global_dtors_aux): Mark used.
24198         (frame_dummy, __do_global_ctors_aux): Mark used.
24199         (fini_dummy, init_dummy): Remove.
24200
24201         * config/alpha/crtbegin.asm: Remove file.
24202         * config/alpha/crtend.asm: Remove file.
24203         * config/alpha/t-crtbe: Remove file.
24204         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
24205         (LINK_EH_SPEC): New.
24206
24207         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
24208         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
24209         calling constructors.
24210         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
24211
24212         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
24213         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
24214         CRT_END_INIT_DUMMY hack.
24215         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
24216         FORCE_{INIT,FINI}_SECTION_ALIGN.
24217
24218         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
24219         FORCE_{INIT,FINI}_SECTION_ALIGN.
24220
24221         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
24222         invocation sequence.
24223         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
24224
24225         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
24226         (FORCE_CODE_SECTION_ALIGN): New.
24227
24228 2002-01-26  Richard Henderson  <rth@redhat.com>
24229
24230         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
24231
24232 2002-01-26  Richard Henderson  <rth@redhat.com>
24233
24234         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
24235         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
24236
24237 2002-01-26  Kazu Hirata  <kazu@hxi.com>
24238
24239         * config/h8300/h8300.md: Remove bit extraction patterns that
24240         cannot be triggered.
24241         Restrict each bit extraction pattern to a variant on which the
24242         pattern is tested.
24243
24244 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
24245
24246         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
24247
24248 2002-01-26  Kazu Hirata  <kazu@hxi.com>
24249
24250         * config/h8300/h8300.md: Remove bit test patterns that cannot
24251         be triggered.
24252         Restrict each bit test pattern to a variant on which the
24253         pattern is tested.
24254
24255 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24256
24257         * builtins.c (expand_builtin_strncat): Remove redundant check for
24258         INTEGER_CST.
24259
24260 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
24261
24262         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
24263         default setting.
24264         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
24265         existing setting.
24266
24267 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
24268
24269         * dbxout.c (dbxout_init): Use assemble_name rather than just
24270         stripping off the first character.
24271         (dbxout_source_file): Likewise.
24272
24273 2002-01-25  DJ Delorie  <dj@redhat.com>
24274
24275         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
24276         using rtx_equal_p, not by comparing pointers.
24277
24278 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
24279
24280         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
24281         for PIC_OFFSET_TABLE_REGNUM.
24282         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
24283
24284 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
24285
24286         * config.gcc (x86_64-*-freebsd*): New target.
24287         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
24288         value.
24289         (i[34567]86-*-freebsd*): Don't include svr4.h.
24290         * config/i386/freebsd64.h: New file.
24291
24292 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
24293
24294         * config/alpha/x-vms (version): Make static.
24295
24296         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
24297         in previous checkin.
24298
24299         * Makefile.in (install-headers-cp): New target.
24300         * config.gcc (alpha-dec-*vms*): Install headers with
24301         install-headers-cp
24302
24303 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
24304
24305         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
24306         avoid it's copies.
24307
24308 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24309
24310         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
24311         of compare_tree_int.
24312         (expand_builtin_strncat): Likewise.
24313         * c-decl.c (finish_struct): Use tree_low_cst.
24314         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
24315         * tree.c (compare_tree_int): Likewise.
24316
24317 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
24318
24319         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
24320         adjustments even if they are implemented by more than two insns.
24321
24322 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
24323
24324         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
24325         * df.h (struct ref): Kill B.
24326         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
24327
24328         * basic-block.h (PROP_EQUAL_NOTES): New flag.
24329         * flow.c (propagate_one_insn): Use it.
24330         (mark_used_regs): Handle NIL.
24331
24332 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
24333
24334         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
24335         to help folding.
24336
24337 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
24338
24339         * rs6000.md (prefetch): Make address V4SI mode so that the address
24340         is restricted to legitimate form for instruction.
24341
24342 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
24343
24344         * doc/install.texi (xtensa-*-elf): New target.
24345         (xtensa-*-linux*): New target.
24346         * doc/contrib.texi: Add myself.
24347
24348 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
24349
24350         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
24351         purpose register to hold an SImode (or smaller) value.
24352
24353 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
24354
24355         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
24356         registry only.
24357         * crtstuff.c: Likewise.
24358
24359 2002-01-25  Kazu Hirata  <kazu@hxi.com>
24360
24361         * config/h8300/h8300.md (negation patterns): Tighten
24362         predicates to register_operand.
24363
24364 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
24365
24366         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
24367         mode, not Pmode.
24368
24369         * builtins.c (expand_builtin_prefetch): Same.
24370
24371 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
24372
24373         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
24374         modes.
24375
24376 2002-01-24  Kazu Hirata  <kazu@hxi.com>
24377
24378         * config/h8300/h8300.c (print_operand): Remove support for
24379         operand character 'A'.
24380         * config/h8300/h8300.md (three anonymous patterns): Replace
24381         operand character 'A' with either 'T' or 'S'.
24382
24383 2002-01-24  Kazu Hirata  <kazu@hxi.com>
24384
24385         * config/h8300/h8300.c (print_operand): Remove support for
24386         operand character 'U'.
24387
24388 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
24389
24390         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
24391
24392 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
24393
24394         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
24395         values to be assigned to the stack pointer.
24396
24397 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
24398
24399         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
24400         to const_double needs to be done right for big-endian systems.
24401
24402 2002-01-24  Jason Merrill  <jason@redhat.com>
24403
24404         PR c++/2432
24405         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
24406         to can_throw_internal.
24407
24408 2002-01-23  Richard Henderson  <rth@redhat.com>
24409
24410         * fold-const.c (fold): Change UINT_MAX test to check vs precision
24411         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
24412
24413 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
24414
24415         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
24416         (symGOT2reg): Use them, then set as GOT value as unchanging.
24417         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
24418         as a temporary, if possible.
24419         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
24420         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
24421
24422 2002-01-23  Kazu Hirata  <kazu@hxi.com>
24423
24424         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
24425         accept to accept 0x80 as operands[2].
24426
24427 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
24428
24429         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
24430
24431 2002-01-23  Richard Henderson  <rth@redhat.com>
24432
24433         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
24434
24435 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
24436
24437         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
24438         (parmlist_or_identifiers_1): Verify that only a parmlist follows
24439         an attribute.
24440
24441 2002-01-23  Richard Henderson  <rth@redhat.com>
24442
24443         * expr.c (move_by_pieces_1): Extend size before negation.
24444
24445         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
24446         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
24447         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
24448         * config/m68k/t-m68kelf: Likewise.
24449
24450 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
24451
24452         * config/xtensa/elf.h: New file.
24453         * config/xtensa/lib1funcs.asm: New file.
24454         * config/xtensa/lib2funcs.S: New file.
24455         * config/xtensa/linux.h: New file.
24456         * config/xtensa/t-xtensa: New file.
24457         * config/xtensa/xtensa-config.h: New file.
24458         * config/xtensa/xtensa-protos.h: New file.
24459         * config/xtensa/xtensa.c: New file.
24460         * config/xtensa/xtensa.h: New file.
24461         * config/xtensa/xtensa.md: New file.
24462         * config.gcc (xtensa-*-elf*): New target.
24463         (xtensa-*-linux*): New target.
24464         * cse.c (canon_hash): Compare rtx pointers instead of register
24465         numbers.  This is required for the Xtensa port.
24466         * integrate.c (copy_insn_list): Handle case where the static
24467         chain is in memory and the memory address has to be copied to
24468         a register.
24469         * doc/invoke.texi (Option Summary): Add Xtensa options.
24470         (Xtensa Options): New node.
24471         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
24472
24473 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
24474
24475         * diagnostic.c (internal_error): Do ICE suppression only
24476         when ENABLE_CHECKING is not defined.
24477
24478         * c-typeck.c (require_complete_type): Return error_mark_node
24479         if type is error_mark_node.
24480
24481 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
24482
24483         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
24484         -Os and issue a warning.
24485
24486 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
24487
24488         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
24489         current (lack of) need for host configuration by hand.
24490
24491         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
24492         references.  Documentation of some target macros moved from
24493         hostconfig.texi to tm.texi.
24494
24495 2002-01-23  Will Cohen  <wcohen@redhat.com>
24496
24497         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
24498         defined.
24499
24500 2002-01-23  Kazu Hirata  <kazu@hxi.com>
24501
24502         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
24503         operand[3].
24504
24505 2002-01-23  Jason Merrill  <jason@redhat.com>
24506
24507         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
24508
24509         * function.c (assign_parms): Don't put args of inline functions
24510         into registers when not optimizing.
24511
24512 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
24513
24514         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
24515         (prologue_use): New pattern.
24516         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
24517         preference to gen_rtx_USE.
24518         (thumb_expand_prologue): Use gen_prologue_use in preference to
24519         gen_rtx_USE.
24520         (thumb_expand_epilogue): Use gen_prologue_use in preference to
24521         gen_rtx_USE.
24522
24523 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
24524
24525         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
24526
24527 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
24528
24529         PR c/3504
24530         * doc/extend.texi: Correct documentation of __alignof__.
24531
24532 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
24533
24534         * params.h: Rename arguments of DEFPARAM so that it will be
24535         recognized as a translation keyword.
24536
24537 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
24538
24539         * extend.texi: Document altivec functions.
24540         Fix N-bit adjectives in X86 builtin documentation.
24541
24542 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
24543
24544         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
24545         auto_inc_dec values.
24546
24547 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
24548
24549         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
24550         after backslash.
24551         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
24552
24553 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
24554
24555         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
24556
24557 2002-01-22  Richard Henderson  <rth@redhat.com>
24558
24559         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
24560         copy_insn not copy_rtx.
24561
24562 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
24563
24564         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
24565         "nonzero" as that might add "1" bits.  Ensure "constop" is
24566         properly sign extened.
24567         (force_to_mode): Tweak for sign extended constop.
24568
24569 2002-01-22  Richard Henderson  <rth@redhat.com>
24570
24571         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
24572         for_each_rtx instead of assuming we're already looking at the MEM.
24573         (split_small_symbolic_mem_operand): Likewise.
24574         * config/alpha/alpha.h (PREDICATE_CODES): Update.
24575         * config/alpha/alpha.md (small symbolic memory splitters): Update.
24576
24577 2002-01-22  Richard Henderson  <rth@redhat.com>
24578
24579         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
24580         sequence number for the literal.
24581         (divmoddi_internal_er): Likewise.
24582
24583 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24584
24585         PR java/4972
24586         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
24587         in LIBICONV variable.
24588         * configure: Regenerated.
24589
24590 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
24591
24592         * dependence.c (build_def_use): Remove array_idx.
24593
24594         * dwarfout.c (last_filename): Remove.
24595         (output_compile_unit_die): Remove last_filename.
24596
24597 2002-01-22  Roger Sayle  <roger@eyesopen.com>
24598             Richard Henderson  <rth@redhat.com>
24599
24600         PR opt/3640
24601         * fold-const.c (fold): Optimize unsigned comparisons against
24602         UINT_MAX (and similar unsigned constants).
24603
24604 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
24605
24606         * Makefile.in (loop.o): Depend on OPTABS_H.
24607         * loop.c (emit_prefetch_instructions): Check the prefetch operand
24608         against the predicate.
24609
24610         PR target/5379
24611         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
24612         for the address operand.
24613
24614 2002-01-22  Richard Henderson  <rth@redhat.com>
24615
24616         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
24617
24618 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24619
24620         PR other/5450
24621         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
24622         preprocessor flags.
24623
24624 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
24625
24626         * config.gcc (x86_64-*-netbsd*): New target.
24627         * config/i386/netbsd64.h: New file.
24628
24629 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
24630
24631         * regrename.c (kill_value): Fix typo.
24632
24633 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
24634
24635         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
24636
24637         * config/rs6000/rs6000.h: Same.
24638
24639         * function.c (instantiate_virtual_regs): Remove
24640         STARTING_FRAME_PHASE.
24641         (assign_stack_local_1): Same.
24642         Calculate frame phase.
24643
24644 2002-01-22  Nick Clifton  <nickc@redhat.com>
24645
24646         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
24647         variable declaration to outer scope in order to simplify
24648         future extensions.
24649         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
24650         arm_hard_regno_mode_ok.
24651         * config/arm/arm-protos.h: Add a prototype for
24652         arm_hard_regno_mode_ok.
24653         * config/arm/arm.c (soft_df_operand): Remove now redundant
24654         check for DImode values using IP_REGNUM.
24655         (nonimmediate_soft_df_operand): Remove now redundant check for
24656         DImode values using IP_REGNUM.
24657         (arm_hard_regno_mode_ok): New function. New check: make sure
24658         that DImode values are not stored in IP_REGNUM.
24659
24660         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
24661         note with a USE.
24662         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
24663
24664 2002-01-22  Jason Merrill  <jason@redhat.com>
24665
24666         * c-semantics.c (genrtl_compound_stmt): Only check nesting
24667         consistency if this COMPOUND_STMT is scoped.
24668
24669 2002-01-22  Kazu Hirata  <kazu@hxi.com>
24670
24671         * predict.c: Fix formatting.
24672         * print-tree.c: Likewise.
24673         * protoize.c: Likewise.
24674         * real.h: Likewise.
24675         * rtl.h: Likewise.
24676         * sbitmap.h: Likewise.
24677         * scan.c: Likewise.
24678         * sched-deps.c: Likewise.
24679         * sched-vis.c: Likewise.
24680         * sdbout.c: Likewise.
24681         * sibcall.c: Likewise.
24682         * ssa.c: Likewise.
24683         * ssa-ccp.c: Likewise.
24684         * ssa-dce.c: Likewise.
24685         * stmt.c: Likewise.
24686         * stor-layout.c: Likewise.
24687         * system.h: Likewise.
24688
24689 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24690
24691         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
24692         if fits in bounds of base type.
24693
24694         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
24695         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
24696         (add_bound_info, default): If can't find a context, make a
24697         SAVE_EXPR.
24698         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
24699
24700 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
24701
24702         * c-typeck.c (parser_build_binary_op): If result from
24703         build_binary_op is ERROR_MARK just return error_mark_node without
24704         further processing.
24705
24706 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
24707
24708         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
24709         Split a.out-specific bits into...
24710         * config/netbsd-aout.h: ...this.
24711         * config/netbsd-elf.h: New file.
24712         * config/alpha/netbsd-elf.h: Remove.
24713         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
24714         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
24715         (STARTFILE_SPEC): Remove redundant definition.
24716         (ENDFILE_SPEC): Likewise.
24717         (LINK_SPEC): Likewise.
24718         (CPP_SPEC): Likewise.
24719         (ASM_SPEC): Likewise.
24720         (LIB_SPEC): Likewise.
24721         (SWITCH_TAKES_ARG): Likewise.
24722         (TARGET_MEM_FUNCTIONS): Likewise.
24723         (CPP_PREDEFINES): Redefine.
24724         (ASM_FINAL_SPEC): Remove redefinition.
24725         (ASM_COMMENT_START): Redefine.
24726         (FUNCTION_PROFILER): Define.
24727         (TARGET_VERSION): Redefine.
24728         Comment and formatting cleanup.
24729         * config/i386/netbsd.h: Include <netbsd-aout.h>.
24730         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
24731         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
24732         big- or little-endian.
24733         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
24734         * config.gcc (*-*-netbsd*): Add definitions common to all
24735         NetBSD configs.
24736         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
24737         gnu_ld definitions.  Add netbsd-elf.h to and remove
24738         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
24739         tmake_file, and don't lose previous tmake_file contents.
24740         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
24741         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
24742         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
24743         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
24744         (mipsel-*-netbsd*): Rename this to...
24745         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
24746         mips/little.h to tm_file for mips*el-*.
24747         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
24748         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
24749         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
24750
24751 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24752
24753         * pa-protos.h (reg_before_reload_operand): New function prototype.
24754         * pa.c (reg_before_reload_operand): New function implementation.
24755         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
24756         contraints to "*m".
24757
24758 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
24759
24760         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
24761
24762 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24763
24764         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
24765         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
24766         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
24767         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
24768         (ENDFILE_SPEC): Undefine.
24769         (STARTFILE_SPEC): Redefine for PA.
24770
24771 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
24772
24773         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
24774
24775 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
24776
24777         * config.gcc: Add entries to supported PowerPC --with-cpu
24778         types.
24779
24780 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
24781
24782         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
24783         true for 64-bit mode only SSE registers in 32-bit mode.
24784
24785 2002-01-21  Kazu Hirata  <kazu@hxi.com>
24786
24787         * unwind-dw2.c: Fix formatting.
24788         * unwind-dw2-fde.c: Likewise.
24789         * unwind-dw2-fde.h: Likewise.
24790         * unwind-pe.h: Likewise.
24791         * varasm.c: Likewise.
24792         * varray.h: Likewise.
24793
24794 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
24795
24796         Remove workaround for register stack overwrite bug in mmix.
24797         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
24798         support for TARGET_REG_STACK_FILL_BUG.
24799         * config/mmix/mmix.h: Remove member has_call_without_parameters.
24800         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
24801         Delete.
24802         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
24803         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
24804         -mno-reg-stack-fill-bug-workaround.
24805         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
24806         machine member has_call_without_parameters.
24807         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
24808         -mreg-stack-fill-bug-workaround and
24809         -mno-reg-stack-fill-bug-workaround.
24810         (MMIX Options): Ditto.
24811
24812 2002-01-21  Kazu Hirata  <kazu@hxi.com>
24813
24814         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
24815         as appropriate.
24816         Remove redundant code.
24817
24818 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
24819
24820         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
24821         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
24822         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
24823         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
24824         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
24825         out target macro definitions and non-target-specific comments
24826         mostly taken from old versions of the manual.
24827
24828 2002-01-20  Kazu Hirata  <kazu@hxi.com>
24829
24830         * config/h8300/h8300.h: Fix comment formatting.
24831         * config/ia64/aix.h: Likewise.
24832         * config/ia64/ia64-protos.h: Likewise.
24833         * config/ia64/ia64.c: Likewise.
24834         * config/ia64/ia64.h: Likewise.
24835         * config/ia64/ia64intrin.h: Likewise.
24836         * config/ia64/linux.h: Likewise.
24837         * config/ia64/unwind-aix.c: Likewise.
24838         * config/ia64/unwind-ia64.c: Likewise.
24839
24840 2002-01-20  Kazu Hirata  <kazu@hxi.com>
24841
24842         * config/h8300/h8300.c: Revise comments about shift code.
24843
24844 2002-01-20  Kazu Hirata  <kazu@hxi.com>
24845
24846         * config/h8300/h8300.c (function_arg): Update a comment.
24847
24848 2002-01-20  Kazu Hirata  <kazu@hxi.com>
24849
24850         * config/h8300/h8300.md: Update the comments at the beginning
24851         of the file.
24852
24853 2002-01-20  Kazu Hirata  <kazu@hxi.com>
24854
24855         * config/i370/i370.c: Fix comment formatting.
24856         * config/i370/i370.h: Likewise.
24857         * config/i370/i370.md: Likewise.
24858         * config/i370/linux.h: Likewise.
24859
24860 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24861
24862         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
24863
24864         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
24865         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
24866         in incomplete case.
24867
24868 2002-01-20  Graham Stott  <grahams@redhat.com>
24869
24870         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
24871
24872 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24873
24874         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
24875
24876 2002-01-19  Tom Rix  <trix@redhat.com>
24877
24878         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
24879
24880 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
24881
24882         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
24883
24884         * function.c (assign_stack_local_1): Adjust x_frame_offset with
24885         STARTING_FRAME_PHASE.
24886         (STARTING_FRAME_PHASE): New.
24887         (instantiate_virtual_regs): Check saneness of
24888         STARTING_FRAME_PHASE.
24889
24890         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
24891
24892 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
24893
24894         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
24895
24896 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24897
24898         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
24899         be used for bootstrapping GCC 3.0.
24900
24901 2002-01-18  Kazu Hirata  <kazu@hxi.com>
24902
24903         * config/h8300/h8300.md: Fix an insn length.
24904
24905 2002-01-18  Kazu Hirata  <kazu@hxi.com>
24906
24907         * bitmap.h: Fix comment formatting.
24908         * combine.c: Likewise.
24909         * cppfiles.c: Likewise.
24910         * c-pragma.h: Likewise.
24911         * c-typeck.c: Likewise.
24912         * df.c: Likewise.
24913         * dwarf2out.c: Likewise.
24914         * function.c: Likewise.
24915         * gcc.c: Likewise.
24916         * genattrtab.c: Likewise.
24917         * gthr-win32.h: Likewise.
24918         * haifa-sched.c: Likewise.
24919         * predict.c: Likewise.
24920         * rtlanal.c: Likewise.
24921         * rtl.h: Likewise.
24922         * unwind-dw2-fde.h: Likewise.
24923         * unwind-pe.h: Likewise.
24924         * vmsdbgout.c: Likewise.
24925
24926 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24927
24928         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
24929         if type_required and passed decl.
24930
24931 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
24932
24933         * config.gcc (cpu_type): Include altivec.h in powerpc
24934         extra_headers.
24935         Same for darwin.
24936
24937         * config/rs6000/altivec.h: New.
24938
24939 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
24940
24941         * doc/install.texi (*-ibm-aix*): Update assembler and exception
24942         handling information.
24943         * doc/trouble.texi (Interoperation): Add libstdc++ information
24944         for AIX.
24945         (Misunderstandings): Add template instantiation and static template
24946         member information for AIX.
24947
24948 2002-01-17  Jason Merrill  <jason@redhat.com>
24949
24950         * dbxout.c (dbxout_type): Support const and volatile.
24951
24952         * except.c (add_partial_entry): Remove backwards compatibility code.
24953         (end_protect_partials): Likewise.
24954
24955 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
24956
24957         * config/ia64/ia64.md (prologue_use): New.
24958         * config/ia64/ia64.c (ia64_expand_prologue): Use
24959         gen_prologue_use instead of gen_rtx_USE.
24960         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
24961         as CODE_FOR_pred_rel_mutex.
24962         (ia64_sched_reorder2): Likewise.
24963
24964 2002-01-16  Eric Christopher  <echristo@redhat.com>
24965
24966         * config/mips/r3900.h: Reformat.
24967         (SUBTARGET_CPP_SIZE_SPEC): Remove.
24968         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
24969         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
24970         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
24971         * config/mips/t-elf: Remove mips3 multilib.
24972
24973 2002-01-16  H.J. Lu <hjl@gnu.org>
24974
24975         * config/mips/linux.h: Include "mips/abi64.h".
24976
24977 2002-01-16  H.J. Lu <hjl@gnu.org>
24978
24979         * config/mips/t-linux: New.
24980
24981         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
24982
24983         * config/mips/linux.h: Don't include "gofast.h".
24984         (INIT_SUBTARGET_OPTABS): Removed.
24985
24986 2002-01-16  Kazu Hirata  <kazu@hxi.com>
24987
24988         * config/h8300/h8300-protos.h: Replace emit_a_shift with
24989         output_a_shift.
24990         * config/h8300/h8300.c: Likewise.
24991         * config/h8300/h8300.md: Likewise.
24992
24993 2002-01-16  Kazu Hirata  <kazu@hxi.com>
24994
24995         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
24996         spaces after an opcode name.
24997         (pushqi1_h8300hs): Likewise.
24998         (pushhi1_h8300hs): Likewise.
24999
25000 2002-01-16  Kazu Hirata  <kazu@hxi.com>
25001
25002         * doc/extend.texi: Replace "option" with "attribute"
25003         appropriately.
25004
25005 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
25006
25007         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
25008         (and:DI () (const_int -8)).
25009         (split_small_symbolic_mem_operand): Split
25010         (mem (and:DI () (const_int -8)).
25011
25012 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
25013
25014         PR target/5309:
25015         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
25016         same way as TYPE_IMUL.
25017         (ultrasparc_sched_reorder): Likewise.
25018         * config/sparc/sparc.md (type): Add comment to update
25019         ultrasparc_sched_reorder when making changes.
25020
25021 2002-01-16  Kazu Hirata  <kazu@hxi.com>
25022
25023         * doc/invoke.texi: Change the dump file name of block
25024         reordering pass from 28.bbro to 29.bbro.
25025         Mention -dk option.
25026
25027 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
25028
25029         * i386.md (minsf splitter): Fix pasto.
25030
25031 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
25032
25033         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
25034         to frame pointer initialisation instruction.
25035         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
25036         initialisation instruction.
25037         (soft_df_operand): Do not accept the IP register.
25038         (nonimmediate_soft_df_operand): Do not accept the IP register.
25039
25040 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
25041
25042         PR target/5357:
25043         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
25044         MASK_V8 being both set.
25045
25046 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
25047
25048         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
25049         insn for GOT register; add REG_MAYBE_DEAD notes instead.
25050         config/s390/s390.md (call, call_value): Add GOT register to
25051         CALL_INSN_FUNCTION_USAGE where needed.
25052         (call_exp, call_value_exp): New.
25053
25054 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
25055
25056         * config/arm/arm.c: General formatting tidy up.
25057
25058 2002-01-16  Graham Stott  <grahams@redhat.com>
25059
25060         * calls.c (try_to_integrate): Use "(size_t)" intermediate
25061         cast and when casting an integer literal to "rtx" pointer.
25062         (expand_call): Likewise.
25063         * flow.c (try_pre_increment): Likewise.
25064         (find_use_as_address): Likewise.
25065         * integrate.c (expand_iline_function): Likewise.
25066         * regmove.c (try_auto_increment): Likewise.
25067
25068 2002-01-16  Graham Stott  <grahams@redhat.com>
25069
25070         * sched-rgn.c (passed): Use sbitmap_free.
25071         (header): Likewise.
25072         (inner): Likewise.
25073         (in_queue): Likewise.
25074         (in_stack): Likewise.
25075
25076 2002-01-15  Eric Christopher  <echristo@redhat.com>
25077
25078         * flow.c (propagate_one_insn): Change to use fatal_insn.
25079
25080 2002-01-15  Kazu Hirata  <kazu@hxi.com>
25081
25082         * expmed.c (extract_fixed_bit_field): Remove unused code.
25083         * system.h: Poison SLOW_ZERO_EXTEND.
25084         * doc/tm.texi: Remove.
25085         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
25086         * config/arm/arm.h: Likewise.
25087         * config/avr/avr.h: Likewise.
25088         * config/clipper/clipper.h: Likewise.
25089         * config/convex/convex.h: Likewise.
25090         * config/d30v/d30v.h: Likewise.
25091         * config/dsp16xx/dsp16xx.h: Likewise.
25092         * config/elxsi/elxsi.h: Likewise.
25093         * config/fr30/fr30.h: Likewise.
25094         * config/h8300/h8300.h: Likewise.
25095         * config/i370/i370.h: Likewise.
25096         * config/i386/i386.h: Likewise.
25097         * config/m68k/m68k.h: Likewise.
25098         * config/mips/mips.h: Likewise.
25099         * config/ns32k/ns32k.h: Likewise.
25100         * config/pdp11/pdp11.h: Likewise.
25101         * config/pj/pj.h: Likewise.
25102         * config/s390/s390.h: Likewise.
25103         * config/sh/sh.h: Likewise.
25104         * config/stormy16/stormy16.h: Likewise.
25105         * config/v850/v850.h: Likewise.
25106         * config/vax/vax.h: Likewise.
25107         * config/we32k/we32k.h: Likewise.
25108
25109 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
25110
25111         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
25112         (altivec_lvsl): Change constraint to b.
25113         (altivec_lvsr): Same.
25114         (altivec_lvebx): Same.
25115         (altivec_lvehx): Same.
25116         (altivec_lvewx): Same.
25117         (altivec_lvxl): Same.
25118         (altivec_lvx): Same.
25119         (altivec_stvx): Add parallel.
25120         (altivec_stvxl): Same.
25121         (altivec_stvehx): Same.
25122         (altivec_stvebx): Same.
25123         (altivec_stvebx): Same.
25124
25125 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
25126
25127         * config.gcc: Change altivec.h to altivec-defs.h.
25128
25129         * config/rs6000/altivec.h: Delete.
25130
25131         * config/rs6000/altivec-defs.h: Add.
25132
25133 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25134
25135         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
25136         and UMOD modes.
25137
25138         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
25139         less than or equal to eight bytes.
25140
25141         * vax.md (andsi3): Remove constraints and change SET destination
25142         operand type to nonimmediate_operand.
25143         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
25144         when it is a CONST_INT.
25145
25146 2002-01-15  Jason Merrill  <jason@redhat.com>
25147
25148         * c-common.def (FILE_STMT): New code.
25149         * c-common.c (statement_code_p): It's a statement.
25150         * c-common.h (stmt_tree_s): Add x_last_filename.
25151         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
25152         (last_expr_filename): New macro.
25153         * c-semantics.c (begin_stmt_tree): Initialize it.
25154         (add_stmt): If the filename changed, also insert a
25155         FILE_STMT.
25156         (expand_stmt): Handle seeing one.
25157
25158 2002-01-15  Eric Christopher  <echristo@redhat.com>
25159
25160         * flow.c (propagate_one_insn): Add error message and print out
25161         insn for debugging.
25162
25163 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
25164
25165         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
25166         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
25167         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
25168         TRAMPOLINE_ALIGNMENT.
25169         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
25170         to be in bits.
25171         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
25172         PCC_BITFIELD_TYPE_MATTERS.
25173         * config/interix.h (STDC_VALUE): Remove.  Use
25174         STDC_0_IN_SYSTEM_HEADERS.
25175         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
25176         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
25177         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
25178
25179 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25180
25181         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
25182         not work on this platform currently.
25183
25184 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
25185
25186         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
25187         readonly_warning in _().
25188
25189 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
25190
25191         * gcc.c (delete_if_ordinary): Backout previous change.
25192
25193 2002-01-15  Kazu Hirata  <kazu@hxi.com>
25194
25195         * config/h8300/h8300.c (print_operand): Remove support for
25196         unused operand characters.
25197
25198         * read-rtl.c: Fix formatting.
25199         * real.c: Likewise.
25200         * recog.c: Likewise.
25201         * regclass.c: Likewise.
25202         * regmove.c: Likewise.
25203         * reg-stack.c: Likewise.
25204         * reload1.c: Likewise.
25205         * rtlanal.c: Likewise.
25206
25207 2002-01-15  Kazu Hirata  <kazu@hxi.com>
25208
25209         * config/i386/i386.c: Fix formatting.
25210
25211 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
25212
25213         * c-typeck.c (process_init_element): Don't save_expr
25214         COMPOUND_LITERAL_EXPR if just its initializer will be used.
25215
25216 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
25217
25218         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
25219         emit optional traceback table if optimize_size or TARGET_ELF.
25220         * config/rs6000/rs6000.md (prefetch): New.
25221
25222 2002-01-15  Andreas Jaeger  <aj@suse.de>
25223
25224         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
25225
25226 2002-01-15  Kazu Hirata  <kazu@hxi.com>
25227
25228         * mips-tfile.c: Fix formatting.
25229
25230 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
25231
25232         * unroll.c (final_reg_note_copy): Fix previous commit.
25233
25234 2002-01-14  Kazu Hirata  <kazu@hxi.com>
25235
25236         * config/h8300/h8300-protos.h: Remove the prototype for
25237         eq_operator.
25238         * config/h8300/h8300.c (eq_operator): Remove.
25239
25240 2002-01-14  Richard Henderson  <rth@redhat.com>
25241
25242         * config/i386/i386.md (prefetch): Tidy.
25243         (prefetch_3dnow): Fix locality operand.
25244
25245 2002-01-14  Richard Henderson  <rth@redhat.com>
25246
25247         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
25248         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
25249
25250 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
25251
25252         * reload1.c (reload_combine): Pass reg_sum replacement through
25253         copy_rtx in loop performing multiple changes.
25254
25255 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
25256
25257         * except.c (remove_unreachable_regions): New.
25258         (free_eh_status): Clear exception_handler_labels.
25259         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
25260         (find_exception_handler_labels): Don't add the same label more than
25261         once.
25262         (remove_exception_handler_label): Don't die if
25263         find_exception_handler_labels hasn't been called for the current
25264         function yet.
25265
25266 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
25267
25268         * toplev.c (rest_of_compilation): Rebuild jump labels after
25269         gcse.
25270
25271 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
25272
25273         * doc/extend.texi: Move documentation of X86 built-in functions
25274         here.
25275         * doc/invoke.texi: From here.
25276         * doc/sourcebuild.texi: Document location of documentation for
25277         machine built-in functions.
25278
25279 2002-01-13  Christopher Faylor  <cgf@redhat.com>
25280
25281         * cppfiles.c (TEST_THRESHOLD): New macro.
25282         (SHOULD_MMAP): Ditto.
25283         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
25284         be used.
25285
25286 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
25287
25288         * unroll.c (final_reg_note_copy): Properly handle
25289         REG_LABEL
25290         (unroll_loops): Fix LOOP_CONDITION heuristics.
25291
25292 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
25293
25294         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
25295         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
25296
25297 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
25298
25299         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
25300         threaded loop.
25301
25302 2002-01-14  Tom Rix  <trix@redhat.com>
25303
25304         * config/rs6000/rs6000.md: Fix typo with sradi.
25305
25306 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
25307
25308         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
25309         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
25310         (clrstrdi, clrstrsi): Adapt callers.
25311
25312         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
25313
25314         (movti splitter): Never use register 0 as base register.
25315
25316 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
25317
25318         * combine.c (simplify_shift_const): Always generate new rtx
25319         for shift expression instead of reusing given expression.
25320
25321 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25322
25323         * config/alpha/alpha.c (alpha_expand_mov): Don't call
25324         alpha_legitimize_address unless mode is Pmode.
25325
25326 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
25327
25328         * doc/md.texi (Modifiers): Document the '*' constraint for the
25329         user.
25330
25331         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
25332         * doc/extend.texi (Function Attributes): 'interrupt' is valid
25333         for xstormy16 too.
25334
25335 2002-01-13  Richard Henderson  <rth@redhat.com>
25336
25337         * reload.c (find_reloads): Use a hard reg destination as reload reg
25338         for an input reload of the source.
25339
25340 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
25341
25342         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
25343         more generic.
25344
25345 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
25346
25347         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
25348         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
25349
25350         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
25351
25352 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25353
25354         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
25355
25356 2002-01-12  Tom Rix  <trix@redhat.com>
25357
25358         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
25359         TARGET_POWERPC64.
25360
25361 2002-01-12  Richard Henderson  <rth@redhat.com>
25362
25363         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
25364
25365         * doc/invoke.texi: Update Alpha options.
25366
25367         * doc/invoke.texi: Update i386 built-in function lists.
25368
25369 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
25370
25371         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
25372         referencing outside.
25373
25374 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25375
25376         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
25377         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
25378         offsets, and change line folding.
25379         * optabs.c (expand_binop): Remove warnings.
25380         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
25381
25382 2002-01-12  Graham Stott <grahams@redhat.com>
25383
25384         * attribs.c (handle_deprecated_attribute): constify WHAT.
25385         * diagnostic.c (warn_deprecated_use): Add braces, fixes
25386         dangling else warning and constify WHAT.
25387         * except.h (struct function, struct inline_remap): Move
25388         struct tag forward defs before all prototypes.
25389         (duplicate_eh_regions): Whitespace.
25390
25391 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
25392
25393         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
25394         MODE_BASE_REG_CLASS.
25395         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
25396
25397 2002-01-12  Richard Henderson  <rth@redhat.com>
25398
25399         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
25400         (ix86_expand_vector_move): New.
25401         (bdesc_2arg): Remove andps, andnps, orps, xorps.
25402         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
25403         Remove old prefetch builtins.  Special case the logicals removed above.
25404         (ix86_expand_builtin): Likewise.
25405         (safe_vector_operand): Use V4SFmode, not TImode.
25406         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
25407         (ix86_expand_timode_binop_builtin): New.
25408         * config/i386/i386-protos.h: Update.
25409         * config/i386/i386.h (enum ix86_builtins): Update.
25410         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
25411         Use ix86_expand_vector_move in vector move expanders.
25412         (movti_internal, movti_rex64): Add xorps alternative.
25413         (sse_clrv4sf): Rename and adjust from sse_clrti.
25414         (prefetch): Don't work so hard.
25415         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
25416         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
25417         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
25418
25419 2002-01-11  Richard Henderson  <rth@redhat.com>
25420
25421         * config/i386/mmintrin.h: New file.
25422         * config/i386/xmmintrin.h: New file.
25423         * config.gcc (i?86-*-*): Add extra_headers.
25424         * simplify-rtx.c (simplify_unary_operation): Handle saturating
25425         truncation codes.
25426         (simplify_binary_operation): Handle saturating arithmetic codes.
25427         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
25428         not the lowpart subreg.
25429         (ix86_expand_builtin): Return a TImode dummy register instead of 0
25430         on error.
25431         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
25432
25433 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
25434
25435         * conflict.c (conflict_graph_compute): Free regsets when finished.
25436         * ssa.c (compute_coalesced_reg_partition): Likewise.
25437
25438 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
25439
25440         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
25441         every where we allocate a register.
25442
25443 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
25444
25445         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
25446         * lcm.c (compute_earliest, compute_farthest): Likewise.
25447
25448 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
25449
25450         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
25451
25452 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
25453
25454         * doc/rtl.texi (Insns): Fix 2 typos.
25455
25456 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
25457
25458         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
25459         options.  Use @table @gcctabopt for MMIX options.  Add index
25460         entries for MMIX options.  Start new paragraph with first
25461         heading of the machine-dependent options.
25462
25463 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25464
25465         PR other/5299
25466         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
25467         * combine.c (force_to_mode): Same.
25468         * reload1.c (clear_reload_reg_in_use): Same.
25469
25470 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
25471
25472         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
25473         and 'subtargets'.
25474
25475 2002-01-11  Andreas Jaeger  <aj@suse.de>,
25476             Brad Lucier <lucier@math.purdue.edu>
25477
25478         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
25479         mcpu.
25480
25481 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
25482
25483         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
25484         Protect with IN_LIBGCC.
25485         (LINK_EH_SPEC): Add required trailing space.
25486
25487 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
25488
25489         * c-tree.h: Move function declarations so that they are listed
25490         under the filename which contains them.
25491         (check_identifier, finish_decl_top_level,
25492         lookup_name_current_level_global, shadow_record_fields): Remove.
25493
25494 2002-01-11  Andreas Jaeger  <aj@suse.de>
25495
25496         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
25497         march.
25498
25499 2002-01-10  Richard Henderson  <rth@redhat.com>
25500
25501         * config/alpha/alpha.c (print_operand): Add 'J'.
25502         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
25503         new operand with the sequence number for the lituse.  When splitting
25504         the insns, use gen_movdi_er_high_g and generate a sequence number.
25505         (gen_movdi_er_high_g): Print the sequence number if non-zero.
25506
25507 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
25508
25509         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
25510         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
25511         stvxl.
25512         (altivec_expand_builtin): Same.
25513         (altivec_expand_stv_builtin): New.
25514
25515         * config/rs6000/rs6000.h (rs6000_builtins): Same.
25516
25517         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
25518         ("altivec_lvehx"): New.
25519         ("altivec_lvewx"): New.
25520         ("altivec_lvxl"): New.
25521         ("altivec_lvx"): New.
25522         ("altivec_stvx"): New.
25523         ("altivec_stvebx"): New.
25524         ("altivec_stvehx"): New.
25525         ("altivec_stvewx"): New.
25526         ("altivec_stvxl"): New.
25527
25528 2002-01-10  Richard Henderson  <rth@redhat.com>
25529
25530         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
25531         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
25532         care not to delete instructions twice.
25533
25534 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
25535
25536         * toplev.c: Don't declare environ (it's not used anywhere).
25537         * configure.in: Don't check for declaration of environ.
25538         * config/i386/xm-mingw32.h: Don't #define environ.
25539         * config.in, configure: Regenerate.
25540
25541 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
25542
25543         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
25544         * configure: Regenerate.
25545
25546         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
25547         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
25548         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
25549         alpha/xm-vms.h.
25550         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
25551         LIMITS_H_TEST here, not in m68k/x-next.
25552         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
25553         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
25554
25555         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
25556         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
25557         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
25558
25559         * config/i386/x-djgpp: Renamed i386/t-djgpp.
25560         * config/m88k/x-dolph: Renamed m88k/t-dolph.
25561         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
25562         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
25563         replacement of quadlib.asm with quadlib.c.
25564
25565         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
25566         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
25567         config/rs6000/xm-beos.h: Delete file.
25568
25569         * config.gcc: Update to match above changes.
25570
25571 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25572
25573         * config/h8300/h8300.h: Fix comment typos.
25574         * config/h8300/h8300.md: Likewise.
25575         * config/h8300/lib1funcs.asm: Likewise.
25576
25577 2002-01-10  Dale Johannesen  <dalej@apple.com>
25578
25579         PR optimization/5269
25580         * unroll.c (precondition_loop_p): Make *increment be the correct
25581         sign when n_iterations known, to avoid confusing caller.
25582
25583 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25584
25585         * doc/extend.texi (deprecated): Fix a typo.
25586
25587 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
25588
25589         * basic-block.h (update_br_prob_note): Declare.
25590         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
25591         (try_forward_edges): Care negative frequencies and update note.
25592         (outgoing_edges_match): Tweek conditional merging heuristics.
25593         (try_crossjump_to_edge): use update_br_prob_note.
25594         * cfglayout.c (fixup_reorder_chain): Likewise.
25595         * cfrtl.c (update_br_prob_note): New.
25596         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
25597
25598         * i386.c (ix86_decompose_address): Return -1 if address contains
25599         shift.
25600         (legitimate_address_p): Require ix86_decompose_address to return 1.
25601
25602         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
25603         (cprop_insn): Likewise.
25604
25605 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25606
25607         * toplev.c: Fix formatting.
25608         * tree.c: Likewise.
25609         * tree-dump.c: Likewise.
25610         * unroll.c: Likewise.
25611         * unwind-dw2.c: Likewise.
25612         * unwind-dw2-fde.c: Likewise.
25613         * unwind-dw2-fde-glibc.c: Likewise.
25614         * unwind-sjlj.c: Likewise.
25615
25616 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
25617
25618         * doc/invoke.texi: Document PDP-11 options.
25619
25620 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25621
25622         * config/h8300/h8300.h: Fix formatting.
25623
25624 2002-01-10  Ira Ruben   <ira@apple.com>
25625
25626         Add __attribute__ ((deprecated)).
25627         * extend.texi: Document __attribute__ ((deprecated)).
25628         * invoke.texi: Document -Wno-deprecated-declarations.
25629         * testsuite/g++.dg/other/deprecated.C: New C++ test.
25630         * testsuite/gcc.dg/deprecated.c: New C test.
25631         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
25632         (c_common_attribute_table): Add "deprecated" entry.
25633         (handle_deprecated_attribute): New function.
25634         * c-decl.c (deprecated_states): New enum.
25635         deprecated_state: State of "deprecated" handling.
25636         (start_decl): Set deprecated_state based on attributes.
25637         (grokdeclarator): Test for deprecated uses, propagate attribute.
25638         * c-typeck.c (build_component_ref): Test for deprecated fields.
25639         (build_external_ref): Test for deprecated primaries.
25640         * diagnostic.c (warn_deprecated_use) New function to issue
25641         warnings about __attribute__ ((depricated)) references.
25642         * flags.h (warn_deprecated_decl): Extern declared for
25643         -W[no-]deprecated-declarations option.
25644         * print-tree.c (print_node): Show deprecated flag status.
25645         * toplev.c (warn_deprecated_decl): Defined.
25646         (W_options): Added "deprecated-declaration".
25647         * toplev.h (warn_deprecated_use): Extern declared.
25648         * tree.h (struct tree_common): Define deprecated_flag.
25649         (TREE_DEPRECATED): New macro to access flag.
25650         * cp/call.c (build_call): Test for deprecated calls.
25651         * cp/class.c (add_implicitly_declared_members): Set global
25652         flag to tell grokdeclarator to not issue deprecated warnings.
25653         * cp/cp-tree.h: Add extern for adding_implicit_members.
25654         * cp/decl.c (deprecated_states): New enum.
25655         (start_decl): Set deprecated_state based on attributes.
25656         (grokdeclarator): Test for deprecated uses, propagate attribute.
25657         * cp/lex.c (do_identifier): Test for deprecated primaries.
25658         * cp/typeck.c (build_component_ref): Test for deprecated fields.
25659
25660 2002-01-10  Ira Ruben   <ira@apple.com>
25661
25662         Fix to assign attributes to inline member functions.
25663         * cp/decl.c (start_method): Handle attrlist.
25664
25665 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25666
25667         * combine.c (expand_field_assignment): Use subreg_lsb().
25668
25669 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
25670
25671         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
25672         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
25673         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
25674         Recurse for any operand of AND as long as constant is non-zero.
25675
25676 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25677
25678         * config/h8300/h8300.md: Remove constraints from expanders.
25679
25680 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25681
25682         * varasm.c: Fix formatting.
25683         * varray.c: Likewise.
25684         * vmsdbgout.c: Likewise.
25685         * xcoffout.c: Likewise.
25686
25687 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
25688
25689         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
25690         update edge probabilities to match.
25691
25692 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
25693
25694         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
25695         dependencies.
25696         * doc/languages.texi, doc/sourcebuild.texi: New files.
25697         * doc/configfiles.texi: Make a subsubsection.  Update.
25698         * doc/configterms.texi: Add @node.  Remove warning that this isn't
25699         instructions for building GCC.
25700         * doc/makefile.texi: Make a subsection.
25701         * doc/gccint.texi: Update.
25702
25703 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
25704
25705         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
25706
25707 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
25708
25709         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
25710
25711 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
25712
25713         * optabs.c (expand_fix): Look for wider integer modes first.
25714
25715         * i386.md (mov?f): Avoid the fake const double trick for medium
25716         memory model.
25717         (min?f*/max?f*): Prohibit memory operands for i387 variant.
25718         (fop_df_4): Disable for SSE compilation.
25719
25720 2002-01-10  Graham Stott  <grahams@redhat.com>
25721
25722         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
25723         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
25724
25725 2002-01-10  Richard Henderson  <rth@redhat.com>
25726
25727         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
25728
25729 2002-01-10  Richard Henderson  <rth@redhat.com>
25730
25731         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
25732         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
25733
25734 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25735
25736         * combine.c (can_combine_p): Fix a comment typo.
25737
25738 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
25739
25740         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
25741         empty list correctly.  Change loop index $t to $f for
25742         consistency with rest of Makefile.
25743
25744 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
25745
25746         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
25747         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
25748
25749         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
25750         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
25751         (altivec_init_builtins): Same.
25752         (altivec_expand_unop_builtin): Return NULL_RTX on error.
25753         (altivec_expand_binop_builtin): Same.
25754         (altivec_expand_ternop_builtin): Same.
25755         (bdesc_dst): New.
25756
25757         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
25758         ("altivec_vctuxs"): Fix typo.
25759         ("altivec_vnmsubfp"): Same.
25760         ("altivec_dssall"): New.
25761         ("altivec_mfvscr"): New.
25762         ("altivec_dss"): New.
25763         ("altivec_lvsl"): New.
25764         ("altivec_lvsr"): New.
25765         ("altivec_dstt"): New.
25766         ("altivec_dstst"): New.
25767         ("altivec_dststt"): New.
25768         ("altivec_dst"): New.
25769
25770         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
25771         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
25772
25773 2002-01-09  Richard Henderson  <rth@redhat.com>
25774
25775         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
25776
25777 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
25778
25779         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
25780         function.
25781         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
25782         prototype.
25783         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
25784
25785 2002-01-09  Kazu Hirata  <kazu@hxi.com>
25786
25787         * read-rtl.c: Fix formatting.
25788         * real.c: Likewise.
25789         * regclass.c: Likewise.
25790         * regrename.c: Likewise.
25791         * reg-stack.c: Likewise.
25792         * reload1.c: Likewise.
25793         * reload.c: Likewise.
25794         * rtl.c: Likewise.
25795
25796 2002-01-09  Kazu Hirata  <kazu@hxi.com>
25797
25798         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
25799         to extract items in the expr_list chain.
25800
25801 2002-01-09  Richard Henderson  <rth@redhat.com>
25802
25803         * config/vax/vax.c (vax_rtx_cost): Never abort.
25804
25805         * config/vax/vax.h (REAL_ARITHMETIC): Define.
25806
25807 2002-01-09  Jan Hubicka  <jh@suse.cz>
25808
25809         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
25810
25811 2002-01-09  Richard Henderson  <rth@redhat.com>
25812
25813         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
25814         Unify code from various alternatives.
25815
25816 2002-01-09  Richard Henderson  <rth@redhat.com>
25817
25818         * regrename.c (copy_value): Ignore the copy if the source register
25819         is present in the value chain with a narrower mode.
25820
25821 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
25822
25823         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
25824         for the c4x target. Also improve layout.
25825
25826 2002-01-09  Richard Henderson  <rth@redhat.com>
25827
25828         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
25829         * config/m32r/m32r.md (and ior xor splitters): Swap operands
25830         to match insn patterns.
25831
25832 2002-01-09  Richard Henderson  <rth@redhat.com>
25833
25834         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
25835         (copyprop_hardreg_forward_1): Likewise.
25836
25837 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25838
25839         * pa.md (decrement_and_branch_until_zero): Change predicate for
25840         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
25841
25842 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
25843
25844         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
25845         gets undefined. For Darwin.
25846
25847 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
25848
25849         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
25850
25851 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
25852
25853         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
25854
25855 2002-01-08  Richard Henderson  <rth@redhat.com>
25856
25857         * regrename.c (copy_value): Ignore overlapping copies.
25858
25859 2002-01-08  Richard Henderson  <rth@redhat.com>
25860
25861         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
25862         as needed to avoid shared structure.
25863
25864 2002-01-08  Kazu Hirata  <kazu@hxi.com>
25865
25866         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
25867         H8/300H and H8/S.
25868
25869 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
25870
25871         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
25872         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
25873         documentation of obsolete macros.
25874         * system.h: Poison these macros.
25875         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
25876         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
25877         config/c4x/c4x.h, config/clipper/clipper.h,
25878         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
25879         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
25880         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
25881         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
25882         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
25883         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
25884         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
25885         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
25886         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
25887         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
25888         config/sparc/sparc.h, config/stormy16/stormy16.h,
25889         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
25890         definitions and commented out definitions of obsolete macros.
25891         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
25892         of MAX_INT_TYPE_SIZE.
25893
25894 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
25895
25896         * config/s390/s390.c (s390_preferred_reload_class): Never
25897         return ADDR_REGS if it isn't a subset of the given class.
25898         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
25899         FP_REGS, but all superclasses as well.
25900
25901         * config/s390/s390.c (s390_function_profiler): Fix thinko.
25902
25903         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
25904         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
25905         must not be a const_int.
25906
25907 2002-01-08  Richard Henderson  <rth@redhat.com>
25908
25909         * Makefile.in (toplev.o): Depend on options.h.
25910         (gcc.o): Depend on specs.h.
25911
25912 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
25913
25914         * expr.c (store_expr): Convert VOIDmode constants back to target's
25915         mode.
25916
25917 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
25918
25919         * doc/invoke.texi: Markup gcc as @command.  Refer to
25920         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
25921         of http://gcc.gnu.org/thanks.html.
25922
25923 2002-01-08  Dale Johannesen  <dalej@apple.com>
25924
25925         * config/rs6000/rs6000.md: Add missing int register
25926         target case to movdf_low.
25927
25928 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
25929
25930         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
25931         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
25932         (cppinit.o): Depend on except.h.
25933         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
25934         s-specs): New rules.
25935
25936         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
25937         Don't create specs.h/options.h/gencheck.h here.  Remove
25938         unnecessary variable settings from last argument of AC_OUTPUT.
25939         * config.in, configure: Regenerate.
25940         * intl.c: Hardcode package name as "gcc".
25941
25942         * cppinit.c: Include except.h.
25943         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
25944         appropriate.
25945         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
25946         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
25947         (!)USING_SJLJ_EXCEPTIONS.
25948         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
25949
25950 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
25951
25952         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
25953         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
25954         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
25955         documentation of obsolete macros.
25956         * system.h: Poison these macros.
25957         * config/d30v/d30v.h, config/ns32k/encore.h,
25958         config/stormy16/stormy16.h: Remove definitions and commented out
25959         definitions of obsolete macros.
25960
25961 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
25962
25963         * objc/objc-act.c (handle_class_ref): Mark the declaration of
25964         %sobjc_class_ref_%s as used - to prevent unwanted compiler
25965         warnings.
25966
25967 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
25968
25969         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
25970         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
25971         to insn adjusting stack/frame pointer.
25972         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
25973         accept operands that cause the insn to be non-splittable.
25974
25975 2002-01-08  Graham Stott  <grahams@redhat.com>
25976
25977         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
25978         (C_TYPE_FIELDS_VOLATILE): Likewise.
25979         (C_TYPE_BEING_DEFINED): Likewise.
25980         (C_IS_RESERVED_WORD): Likewise.
25981         (C_TYPE_VARIABLE_SIZE): Likewise.
25982         (C_DECL_VARIABLE_SIZE): Likewise.
25983         (C_MISSING_PROTOTYPE_WARNED): Likewise.
25984         (C_SET_EXP_ORIGINAL_CODE): Likewise.
25985         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
25986         parenthesis.
25987         (C_DECL_ANTICIPATED): Likewise.
25988         (c_build_type_variant): Add parenthesis.
25989
25990 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
25991
25992         * gcc.c (option_map): Remove --version.
25993         (process_command): Handle -fversion following the GNU Coding
25994         Standards.  Partially addresses PR other/704.
25995
25996 2002-01-08  Graham Stott  <grahams@redhat.com>
25997
25998         * combine.c (combine_instructions): Fix typo.
25999
26000 2002-01-08  Graham Stott  <grahams@redhat.com>
26001
26002         * debug.h: Use "tree" and "rtx" throughout.
26003
26004         * debug.c: Likewise.
26005
26006 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
26007
26008         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
26009         constant pool, use the pool's version of the symbol instead.
26010
26011 2002-01-07  Richard Henderson  <rth@redhat.com>
26012
26013         * regrename.c (find_oldest_value_reg): Ignore the value chain if
26014         the original register was copied in a mode with a fewer number of
26015         hard registers than the desired mode.
26016         (copyprop_hardreg_forward_1): Likewise.
26017         (debug_value_data): Fix loop test.
26018         * toplev.c (parse_options_and_default_flags): Reenable
26019         -fcprop-registers at -O1.
26020
26021 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
26022
26023         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
26024         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
26025
26026         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
26027         predicates.
26028
26029         * config/rs6000/rs6000.md: Add altivec predicate patterns.
26030
26031 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
26032
26033         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
26034         (pa_output_function_prologue): Output local label at the beginning of
26035         the prologue when profiling.
26036         (hppa_profile_hook): Use the local label rather than the function label.
26037         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
26038
26039 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
26040
26041         * config/rs6000/rs6000.c (print_operand): Remove extra space.
26042         (altivec_expand_unop_builtin): Fix thinko.
26043         (altivec_expand_binop_builtin): Same.
26044         (altivec_expand_ternop_builtin): Same.
26045         (altivec_expand_builtin): Same.
26046
26047 2002-01-07  Richard Henderson  <rth@redhat.com>
26048
26049         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
26050
26051 2002-01-07  Jason Merrill  <jason@redhat.com>
26052
26053         * unwind-dw2.c (execute_cfa_program): Use < again.
26054
26055 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
26056
26057         * predict.c (combine_predictions_for_insn): Avoid division by zero.
26058
26059 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
26060
26061         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
26062         Don't allow -1 - x -> ~x simplifications in the first pass.
26063
26064 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
26065
26066         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
26067         arguments.
26068         (altivec_expand_binop_builtin): Same.
26069         (altivec_expand_unop_builtin): Same.
26070         (print_operand): Fix typo.
26071         (bdesc_1arg): Add vupk* variants.
26072
26073         * rs6000.h (rs6000_builtins): Add vupk* enums.
26074
26075         * rs6000.md: Add altivec_vupk* variants.
26076
26077 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
26078
26079         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
26080         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
26081         and last update dates.
26082
26083 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
26084
26085         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
26086
26087 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
26088
26089         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
26090         * config/avr/avr.h (CPP_SPEC): Likewise.
26091         (LINK_SPEC): Likewise.
26092         (CRT_BINUTILS_SPECS): Likewise.
26093         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
26094         * doc/invoke.texi (AVR Options): Document them.
26095
26096 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
26097
26098         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
26099         LABEL_NUSES.
26100
26101 2002-01-07  Graham Stott  <grahams@redhat.com>
26102
26103         * config/i386/i386.h: Update copyright date.
26104         (HALF_PIC_PTR): Add parenthesis.
26105         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
26106         (CONSTANT_ALIGNMENT): Add parenthesis.
26107         (DATA_ALIGNMENT): Likewise.
26108         (LOCAL_ALIGNMENT): Likewise.
26109         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
26110         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
26111         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
26112         (HARD_REGNO_NREGS): Add paranethesis.
26113         (VALID_SSE_REG_MODE): Whitespace.
26114         (VALID_MMX_REG_MODE): Whitespace.
26115         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
26116         (ix86_hard_regno_mode_ok): Add parenthesis.
26117         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
26118         (RETURN_IN_MEMORY): Whitespace.
26119         (N_REG_CLASSES): Add parenthesis.
26120         (INTEGER_CLASS_P): Add parenthesis and wrap.
26121         (FLOAT_CLASS_P): Likewise.
26122         (SSE_CLASS_P): Likewise.
26123         (MMX_CLASS_P): Likewise.
26124         (MAYBE_INTEGER_CLASS_P): Likewise.
26125         (MAYBE_FLOAT_CLASS_P): Likewise.
26126         (MAYBE_SSE_CLASS_P): Likewise.
26127         (MAYBE_MMX_CLASS_P): Likewise.
26128         (Q_CLASS_P): Likewise.
26129         (GENERAL_REGNO_P): Uppercase macro parameter.
26130         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
26131         (FP_REGNO_P): Likewise.
26132         (ANY_FP_REGNO_P): Uppercase macro parameter.
26133         (SSE_REGNO_P): Likewise.
26134         (SSE_REGNO): Likewise.
26135         (SSE_REG_P): Likewise.
26136         (SSE_FLOAT_MODE_P): Likewise.
26137         (MMX_REGNO_P): Likewise.
26138         (MMX_REG_P):Likewise.
26139         (STACK_REG_P): Likewise.
26140         (NON_STACK_REG_P): Likewise.
26141         (STACK_TOP_P): Likewise.
26142         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
26143         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
26144         (SECONDARY_MEMORY_NEEDED): Likewise.
26145         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
26146         (MD_ASM_CLOBBERS): Whitespace and wrap.
26147         (MUST_PASS_IN_STACK): Whitespace and wrap.
26148         (RETURN_POPS_ARGS): Add parenthesis.
26149         (INIT_CUMULATIVE_ARGS): Likewise.
26150         (FUNCTION_ARG): Likewise.
26151         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
26152         (SETUP_INCOMING_VARARGS): Likewise.
26153         (BUILD_VA_LIST_TYPE):  Add parenthesis.
26154         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
26155         parenthsis.
26156         (EXPAND_BUILTIN_VA_ARG): Likewise.
26157         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
26158         (INITIALIZE_TRAMPOLINE): Add parenthesis.
26159         (INITIAL_ELIMINATION_OFFSET): Likewise.
26160         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
26161         (REGNO_OK_FOR_BASE_P): Likewise.
26162         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
26163         (REGNO_OK_FOR_DIREG_P): Likewise.
26164         (REG_OK_FOR_INDEX_P): Whitespace.
26165         (REG_OK_FOR_BASE_P): Whitespace.
26166         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
26167         parenthesis.
26168         (FIND_BASE_TERM): Fix typo.
26169         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
26170         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
26171         (SYMBOLIC_CONST; Whitespace.
26172         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
26173         (ENCODE_SECTION_INFO): Whitespace.
26174         (FINALIZE_PIC): Remove do { ... } while (0).
26175         (PROMOTE_MODE): Wrap in do { ... } while (0).
26176         (CONST_COSTS): Whitespace.
26177         (RTX_COSTS): Add paramethesis, whitespace and wrap.
26178         (REGISTER_MOVE_COST): Add parenthesis.
26179         (MEMORY_MOVE_COST): Likewise.
26180         (EXTRA_CC_MODES): Whitespace.
26181         (SELECT_CC_MODE): Add parenthesis and whitespace.
26182         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
26183         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
26184         (ASM_OUTPUT_LABEL): Add paramethesis.
26185         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
26186         (ASM_OUTPUT_REG_POP): Likewise.
26187         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
26188         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
26189
26190         * config/i386/i386.c: Update copyright.
26191         (CHECK_STACK_LIMIT): Add parenthesis.
26192         (AT_BP): Uppercase macro parameter.
26193         (x86_64_int_parameter_registers): Constify.
26194         (x86_64_int_return_registers): Likewise.
26195         (ix86_compare_op0): Use rtx.
26196         (construct_container): Constify INTREG parameter.
26197         (function_arg): Use rtx.
26198
26199         * diagnostic.h: Update copyright date.
26200         (output_buffer_state): Add parenthesis.
26201         (output_buffer_format_args): Likewise.
26202
26203         * combine.c (combine_instructions): Replace XEXP (links, 0)
26204         with link.
26205
26206 2002-01-06  H.J. Lu <hjl@gnu.org>
26207
26208         * cfgcleanup.c (thread_jump): Fix 2 typos.
26209
26210 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
26211
26212         * config.gcc: Add support for --enable-altivec.
26213
26214 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26215
26216         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
26217
26218 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
26219
26220         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
26221         __objc_class_name_*.
26222
26223 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26224
26225         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
26226
26227 2002-01-06  Richard Henderson  <rth@redhat.com>
26228
26229         * reorg.c (emit_delay_sequence): Remove death notes, not merely
26230         nop them out.  Increment label reference count for REG_LABEL.
26231         (fill_slots_from_thread): Frob label reference count around
26232         delete_related_insns.
26233
26234 2002-01-05  Richard Henderson  <rth@redhat.com>
26235
26236         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
26237         jump threading.
26238
26239 2002-01-05  Richard Henderson  <rth@redhat.com>
26240
26241         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
26242         * integrate.c (output_inline_function): Likewise.
26243         * toplev.c (rest_of_compilation): Do it here instead.  Move call
26244         to remove_unnecessary_notes after emitting abstract instance.
26245         Force an emitted nested function to have its parent emited as well.
26246         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
26247         for null.
26248         (rtl_for_decl_location): Do not look at reload data structures
26249         before reload has run.
26250
26251 2002-01-05  Kazu Hirata  <kazu@hxi.com>
26252
26253         * cse.c: Fix formatting.
26254         * dwarf2asm.c: Likewise.
26255         * dwarf2out.c: Likewise.
26256         * explow.c: Likewise.
26257         * expmed.c: Likewise.
26258         * function.c: Likewise.
26259         * gcov.c: Likewise.
26260         * gencheck.c: Likewise.
26261         * genrecog.c: Likewise.
26262         * ggc-common.c: Likewise.
26263         * ggc-page.c: Likewise.
26264         * global.c: Likewise.
26265
26266 2002-01-05  Kazu Hirata  <kazu@hxi.com>
26267
26268         * combine.c: Fix formatting.
26269
26270 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
26271
26272         PR middle-end/1557
26273         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
26274
26275 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
26276
26277         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
26278         as 1 for __powerpc64__ as well.
26279
26280         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
26281
26282         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
26283         return it.
26284
26285 2002-01-05  Daniel Berlin  <dan@dberlin.org>
26286
26287         * lcm.c: Revert change, due to performance regression it causes on
26288         SPEC because it's slightly more conservative (sigh, I hate
26289         edge-based LCM).
26290
26291 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
26292
26293         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
26294
26295 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
26296
26297         * doc/cppinternals.texi: Update.
26298
26299 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
26300
26301         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
26302         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
26303         negatives.
26304         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
26305         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
26306         kludge for pre-october-14th mmix versions to handle new-found bug
26307         with PUSHJ/PUSHGO and the register stack.
26308         * config/mmix/mmix.h (struct machine_function): Rename member
26309         has_call_value_without_parameters to has_call_without_parameters.
26310         All referers changed.
26311         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
26312         TARGET_MASK_BRANCH_PREDICT): New macros.
26313         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
26314         -mno-reg-stack-fill-bug-workaround.
26315         * config/mmix/mmix.md ("call"): Set struct machine member
26316         has_call_without_parameters.
26317
26318 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
26319
26320         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
26321
26322 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
26323
26324         * cfgcleanup.c: Include tm_p.h
26325         (mark_effect): Fix handling of hard register; fix handling of SET
26326
26327 2002-01-04  Kazu Hirata  <kazu@hxi.com>
26328
26329         * config/h8300/h8300.md (anonymous patterns): Check that
26330         operands are registers before using REGNO on them.
26331
26332 2002-01-03  Roland McGrath  <roland@frob.com>
26333
26334         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
26335
26336 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
26337
26338         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
26339         * c-common.h (genrtl_expr_stmt_value): Likewise.
26340         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
26341         (expand_expr_stmt_value): Add maybe_last argument.
26342         Don't warn about statement with no effect if it is the last statement
26343         in expression statement.
26344         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
26345         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
26346         expand_expr_stmt_value.
26347         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
26348         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
26349         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
26350         as maybe_last to expand_expr_stmt_value.
26351
26352 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
26353
26354         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
26355         be passed in, do not build it.
26356         (c_begin_if_stmt): New function.
26357         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
26358         * c-common.h (c_expand_start_cond): Update prototype.
26359         (c_begin_if_stmt): Prototype new function.
26360         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
26361         * c-parse.in (if_prefix): Use c_begin_if_stmt,
26362         c_begin_while_stmt and c_finish_while_stmt_cond.
26363
26364 2002-01-04  William Cohen  <wcohen@redhat.com>
26365
26366         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
26367         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
26368         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
26369         * config/pa/som.h (ASM_FILE_START): Likewise.
26370
26371 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
26372
26373         * lcm.c: Include df.h.
26374         Add available_transfer_function prototype.
26375         (compute_available): Rework to use iterative dataflow framework.
26376         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
26377         with bb_info in df.h
26378         (available_transfer_function): New function.
26379
26380         * Makefile.in (lcm.o): add df.h to dependencies.
26381
26382 2002-01-04  Richard Henderson  <rth@redhat.com>
26383
26384         * config/alpha/alpha.c (some_operand): Accept HIGH.
26385         (input_operand): Likewise; accept simple references to globals.
26386         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
26387         (alpha_const_double_ok_for_letter_p): Likewise.
26388         (alpha_extra_constraint): Likewise.
26389         (alpha_preferred_reload_class): Likewise.  Do not force
26390         symbolic constants to memory.
26391         (alpha_legitimate_address_p): Accept simple references
26392         to small_symbolic_operand.
26393         (alpha_legitimize_address): New arg scratch.  Be prepared to be
26394         called when no_new_pseudos.  Emit simple symbolic references.
26395         Split integers into low, high, and rest.
26396         (alpha_expand_mov): Use alpha_legitimize_address.
26397         (some_small_symbolic_mem_operand): New.
26398         (split_small_symbolic_mem_operand): New.
26399         * config/alpha/alpha-protos.h: Update.
26400         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
26401         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
26402         (EXTRA_CONSTRAINT): Likewise.
26403         (PREFERRED_RELOAD_CLASS): Likewise.
26404         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
26405         (PREDICATE_CODES): Update.
26406         * config/alpha/alpha.md: New post-reload splitters to convert
26407         simplfied symbolic operands to the form that references $29.
26408         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
26409         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
26410
26411 2002-01-03  Richard Henderson  <rth@redhat.com>
26412
26413         * local-alloc.c (function_invariant_p): Update commentary.
26414
26415 2002-01-04  H.J. Lu <hjl@gnu.org>
26416
26417         * toplev.c (rest_of_compilation): Fix a typo when calling
26418         cleanup_cfg.
26419
26420 2002-01-03  Kazu Hirata  <kazu@hxi.com>
26421
26422         * c-common.c: Fix formatting.
26423         * diagnostic.c: Likewise.
26424         * doloop.c: Likewise.
26425         * dwarf2out.c: Likewise.
26426
26427 2002-01-03  Kazu Hirata  <kazu@hxi.com>
26428
26429         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
26430         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
26431
26432 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
26433
26434         * cpperror.c: Update comments and copyright.
26435         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
26436         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
26437
26438 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
26439
26440         * collect2.c (main): Use strcmp when testing for "-shared".
26441
26442 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
26443
26444         * cppmacro.c: Don't include intl.h.  Update comments.
26445         (new_number_token): Allocate enough buffer for 64-bit unsigned
26446         integers; update prototype.
26447         * cppmain.c: Update comments.
26448
26449 2002-01-03  William Cohen  <wcohen@redhat.com>
26450
26451         * function.h (struct function): Add profile.
26452         (current_function_profile): New.
26453         doc/extend.texi: Update documentation.
26454         * final.c (final_start_function): Use current_function_profile
26455         instead of profile_flag.
26456         (profile_after_prologue): Likewise.
26457         * function.c (expand_function_start): Likewise.
26458         (expand_function_start): Likewise.
26459         * config/alpha/alpha.c (direct_call_operand):
26460         (alpha_does_function_need_gp): Likewise.
26461         (alpha_expand_prologue): Likewise.
26462         * config/arm/arm.c (arm_expand_prologue): Likewise.
26463         thumb_expand_prologue: Likewise.
26464         * config/d30v/d30v.c (d30v_stack_info): Likewise.
26465         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
26466         (fr30_expand_prologue): Likewise.
26467         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
26468         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
26469         * config/i386/i386.h (FINALIZE_PIC): Likewise.
26470         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
26471         * config/i960/i960.c (i960_output_function_prologue): Likewise.
26472         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
26473         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
26474         (m32r_expand_prologue): Likewise.
26475         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
26476         (m88k_expand_prologue): Likewise.
26477         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
26478         * config/mips/mips.c (compute_frame_size): Likewise.
26479         (mips_expand_prologue): Likewise.
26480         (mips_can_use_return_insn): Likewise.
26481         * config/pa/elf.h (ASM_FILE_START): Likewise.
26482         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
26483         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
26484         * config/pa/som.h (ASM_FILE_START): Likewise.
26485         * config/romp/romp.c (romp_using_r14): Likewise.
26486         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
26487         (rs6000_stack_info): Likewise.
26488         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
26489         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
26490         * config/v850/v850.c (compute_register_save_size): Likewise.
26491
26492 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
26493
26494         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
26495         gen_lowpart_common fails, use gen_lowpart_SUBREG.
26496
26497 2002-01-03  Turly O'Connor  <turly@apple.com>
26498
26499         * darwin.c (machopic_output_possible_stub_label): Don't generate
26500         stub routines for pseudo-stubs which we've just defined.
26501
26502 2002-01-03  Kazu Hirata  <kazu@hxi.com>
26503
26504         * builtins.c: Fix formatting.
26505         * c-typeck.c: Likewise.
26506         * combine.c: Likewise.
26507         * expr.c: Likewise.
26508         * loop.c: Likewise.
26509
26510 2002-01-03  Andreas Schwab  <schwab@suse.de>
26511
26512         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
26513         and return true if _cpp_push_next_buffer pushed a new include
26514         file.
26515         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
26516         _cpp_pop_file_buffer did not push a new file.
26517         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
26518
26519 2002-01-02  Eric Christopher  <echristo@redhat.com>
26520
26521         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
26522         FIND_REG_INC_NOTE call. Update copyright.
26523         * loop.c (canonicalize_condition): Ditto.
26524         * reorg.c (delete_scheduled_jump): Ditto.
26525
26526 2002-01-03  Kazu Hirata  <kazu@hxi.com>
26527
26528         * gcse.c: Fix formatting.
26529
26530 2002-01-03  Graham Stott  <grahams@redhat.com>
26531
26532         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
26533         forward defs for struct tags rtx_def, union_tree, rtvec_def
26534         also output corresponding typedefs for rtx, tree, and rtvec.
26535
26536         * system.h: Move forward defs for struct tags rtx_def, union_tree,
26537         rtvec_def along with corresponding typedefs for rtx, tree, and
26538         rtvec to config.h, hconfig.h, tconfig.h.
26539
26540 2002-01-03  Graham Stott  <grahams@redhat.com>
26541
26542         * tree.h: Update copyright date.
26543         (IS_EXPR_CODE_CLASS): Add parenthesis.
26544         (TREE_SET_CODE): Add whitespace.
26545         (TREE_CHECK): Add parenthesis.
26546         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
26547         (CST_OR_CONSTRUCTOR_CHECK):
26548         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
26549         (TREE_SYMBOL_REFERENCED): Whitespace.
26550         (INT_CST_LT): Likewise.
26551         (INT_CST_LT_UNSIGNED): Likewise.
26552         (tree_real_cst): Unwrap comment.
26553         (tree_string): Likewise.
26554         (tree_complex): Likewise.
26555         (IDENTIFIER_POINTER): correct cast.
26556         (SAVE_EXPR_CONTEXT): Whitespace.
26557         (EXPR_WFL_FILENAME_NODE): Likewise.
26558         (EXPR_WFL_FILENAME): Remove parenthesis.
26559         (DECL_ORIGIN): Add parenthesis.
26560         (DECL_FROM_INLINE): Use NULL_TREE.
26561         (build_int_2): Whitespace.
26562         (build_type_variant): Add parenthesis.
26563
26564         * gcc/jcf-parse.c: Update copyright date.
26565         (yyparse): Constify resource_filename.
26566
26567 2002-01-03  Graham Stott  <grahams@redhat.com>
26568
26569         * rtl.h: Update copyright date.
26570         (RTL_CHECK1): Wrap long line.
26571         (RTL_CHECK2): Likewise.
26572         (RTL_CHECKC1): Wrap long line and whitespace.
26573         (RTL_CHECKC2): Likewise.
26574         (XWINT): Whitespace.
26575         (XINT): Likewise.
26576         (XSTR): Likewise.
26577         (XEXP): Likewise.
26578         (XVEC): Likewise.
26579         (XMODE): Likewise.
26580         (XBITMAP): Likewise.
26581         (XTREE): Likewise.
26582         (XBBDEF): Likewise.
26583         (XTMPL): Likewise.
26584         (X0WINT): Likewise.
26585         (X0INT):Likewise.
26586         (X0UINT): Likewise.
26587         (X0STR): Likewise.
26588         (X0EXP): Likewise.
26589         (X0VEC): Likewise.
26590         (X0MODE): Likewise.
26591         (X0BITMAP): Likewise.
26592         (X0TREE): Likewise.
26593         (X0BBDEF): Likewise.
26594         (X0ADVFLAGS): Likewise.
26595         (X0CSELIB): Likewise.
26596         (X0MEMATTR): Likewise.
26597         (XCWINT): Likewise.
26598         (XCINT): Likewise.
26599         (XCUINT): Likewise.
26600         (XCSTR): Likewise.
26601         (XCEXP): Likewise.
26602         (XCVEC): Likewise.
26603         (XCMODE): Likewise.
26604         (XCBITMAP): Likewise.
26605         (XCTREE): Likewise.
26606         (XCBBDEF): Likewise.
26607         (XCADVFLAGS): Likewise.
26608         (XCCSELIB): Likewise.
26609         (XC2EXP): Likewise.
26610         (INSN_UID): Likewise.
26611         (PREV_INSN): Likewise.
26612         (PATTERN): Likewise.
26613         (INSN_CODE): Likewise.
26614         (PUT_REG_NOTE_KIND): Likewise.
26615         (CODE_LABEL_NUMBER): Likewise.
26616         (NOTE_SOURCE_FILE): Likewise.
26617         (NOTE_BLOCK): Likewise.
26618         (NOTE_EH_HANDLER): Likewise.
26619         (NOTE_RANGE_INFO): Likewise.
26620         (NOTE_LIVE_INFO): Likewise.
26621         (NOTE_BASIC_BLOCK): Likewise.
26622         (NOTE_EXPECTED_VALUE): Likewise.
26623         (NOTE_LINE_NUMBER): Likewise.
26624         (LABEL_NAME): Likewise.
26625         (LABEL_NUSES): Likewise.
26626         (LABEL_ALTERNATE_NAME): Likewise.
26627         (ADDRESSOF_DECL): Likewise.
26628         (JUMP_LABEL): Likewise.
26629         (LABEL_NEXTREF): Likewise.
26630         (REGNO): Likewise.
26631         (ORIGINAL_REGNO: Likewise.
26632         (HARD_REGISTER_NUM_P): Add parenthesis.
26633         (SUBREG_REG): Whitespace.
26634         (SUBREG_BYTE): Likewise.
26635         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
26636         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
26637         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
26638         (ASM_OPERANDS_INPUT_VEC): Likewise.
26639         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
26640         (ASM_OPERANDS_INPUT): Likewise.
26641         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
26642         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
26643         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
26644         (ASM_OPERANDS_INPUT_MODE): Likewise.
26645         (ASM_OPERANDS_SOURCE_FILE): Likewise.
26646         (ASM_OPERANDS_SOURCE_LINE): Likewise.
26647         (MEM_SET_IN_STRUCT_P): Minor reformat.
26648         (TRAP_CONDITION): Whitespace.
26649         (TRAP_CODE): Likewise.
26650         (COND_EXEC_TEST): Likewise.
26651         (COND_EXEC_CODE): Likewise.
26652         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
26653         (PHI_NODE_P): Add parenthesis.
26654         (plus_constant): Whitespace and add parenthesis.
26655
26656 2002-01-03  Kazu Hirata  <kazu@hxi.com>
26657
26658         * config/avr/avr.c: Fix comment typos.
26659         * config/c4x/c4x.md: Likewise.
26660         * config/dsp16xx/dsp16xx.h: Likewise.
26661         * config/dsp16xx/dsp16xx.md: Likewise.
26662         * config/i386/i386.md: Likewise.
26663         * config/ia64/ia64.c: Likewise.
26664         * config/m32r/m32r.h: Likewise.
26665         * config/m68hc11/m68hc11.md: Likewise.
26666         * config/mmix/mmix.c: Likewise.
26667         * config/mn10200/mn10200.c: Likewise.
26668         * config/romp/romp.c: Likewise.
26669         * config/sh/sh.c: Likewise.
26670         * config/stormy16/stormy16.c: Likewise.
26671         * config/stormy16/stormy16.h: Likewise.
26672         * config/stormy16/stormy16.md: Likewise.
26673
26674 2002-01-03  Graham Stott  <grahams@redhat.com>
26675
26676         * loop.h: Update copyright date.
26677         (LOOP_MOVABLES): Fix typo.
26678         (LOOP_REGS): Likewise.
26679         (LOOP_IVS): Likewise.
26680
26681 2002-01-03  Graham Stott  <grahams@redhat.com>
26682
26683         * cppinit.c: Update copyright date.
26684         Don't include output.h
26685         * Makefile.in: Update copyright date.
26686         Update dependency.
26687
26688 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26689
26690         PR c/5226
26691         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
26692         (-pthread) Add to RS/6000 options.
26693
26694 2002-01-02  Kazu Hirata  <kazu@hxi.com>
26695
26696         * except.c: Fix comment typos.
26697         * loop.c: Likewise.
26698         * varasm.c: Likewise.
26699         * doc/tm.texi: Fix a typo.
26700
26701 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
26702
26703         * c-typeck.c (output_init_element): Allow initializing static storage
26704         duration objects with compound literals.
26705
26706 2002-01-02  Richard Henderson  <rth@redhat.com>
26707
26708         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
26709         after abusing it.
26710
26711 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26712
26713         * gcc.c (default_compilers): Const-ify.
26714         * mips-tdump.c (stab_names): Likewise.
26715         * mips-tfile.c (map_coff_types, map_coff_storage,
26716         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
26717         pseudo_ops_t, pseudo_ops): Likewise.
26718         * protoize.c (default_include): Likewise
26719
26720         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
26721         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
26722         Add array size in declaration.
26723         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
26724         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
26725         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
26726         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
26727         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
26728         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
26729         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
26730         emtens, make_nan): Const-ify.
26731         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
26732         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
26733
26734 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
26735
26736         * config.gcc (ia64-*-*): Set extra_headers.
26737         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
26738         * config/alpha/t-osf: Remove.
26739         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
26740
26741 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
26742
26743         * config/rs6000/t-aix43: Revert previous change.
26744
26745 2002-01-02  Jason Merrill  <jason@redhat.com>
26746
26747         * c-decl.c (c_expand_body): Call outlining_inline_function when
26748         emitting an inline function out of line.
26749
26750 2002-01-02  Richard Henderson  <rth@redhat.com>
26751
26752         * dwarf2out.c (limbo_die_node): Add created_for member.
26753         (new_die): New argument created_for.  Update all callers.
26754         (mark_limbo_die_list): New.
26755         (dwarf2out_init): Register limbo_die_list as a root.
26756         (dwarf2out_finish): Force insert limbo dies into their function
26757         context.
26758
26759 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
26760
26761         PR c++/5089
26762         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
26763
26764 2002-01-02  Kazu Hirata  <kazu@hxi.com>
26765
26766         * config/h8300/fixunssfsi.c: Update copyright.
26767         Fix comment typos.
26768         Fix formatting.
26769         * config/h8300/h8300.c: Update copyright.
26770         Eliminate warnings.
26771
26772 2002-01-02  Kazu Hirata  <kazu@hxi.com>
26773
26774         * config/romp/romp.c: Fix comment formatting.
26775         * config/romp/romp.h: Likewise.
26776         * config/romp/romp.md: Likewise.
26777         * config/s390/s390.c: Likewise.
26778         * config/stormy16/stormy16.c: Likewise.
26779         * config/stormy16/stormy16.h: Likewise.
26780
26781 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
26782
26783         * c-common.h (genrtl_expr_stmt_value): Declare.
26784         * c-semantics.c (genrtl_goto_stmt): Redirect to...
26785         (genrtl_goto_stmt_value): ... this new function.  Pass new
26786         argument down to expand_expr_stmt_value, taking
26787         TREE_ADDRESSABLE into account.
26788         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
26789         STMT_EXPR as addressable, i.e., one whose result we want.
26790         * expr.c (expand_expr): Don't save expression statement value
26791         of labeled_blocks or loop_exprs.
26792         * stmt.c (expand_expr_stmt): Redirect to...
26793         (expand_expr_stmt_value): ... this new function.  Use new
26794         argument to tell whether to save expression value.
26795         (expand_end_stmt_expr): Reset last_expr_type and
26796         last_expr_value if we don't have either.
26797         * tree-inline.c (declare_return_variable): Mark its use
26798         statement as addressable.
26799         * tree.h: Document new use of TREE_ADDRESSABLE.
26800         (expand_expr_stmt_value): Declare.
26801
26802 2002-01-01  Tom Rix  <trix@redhat.com>
26803
26804         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
26805         rs6000_emit_allocate_stack.
26806
26807 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
26808
26809         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
26810         ${srcdir}/ginclude/ to every entry in extra_headers.
26811         * configure: Regenerate.
26812         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
26813         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
26814         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
26815         * ginclude/proto.h: Rename to config/convex/proto.h.
26816
26817 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26818
26819         * attribs.c (handle_vector_size_attribute): Use host_integerp
26820         and tree_int_cst; remove warnings.
26821         * caller-save.c (insert_restore): Add cast to get rid of warning.
26822         (insert_save): Likewise.
26823         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
26824         * regmove.c (find_matches): Add temporary var to kill a warning.
26825
26826 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
26827
26828         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
26829         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
26830         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
26831         (vms-dwarf2eh.o): Add Makefile rule.
26832         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
26833         * config/alpha/vms-dwarf2eh.asm: New file.
26834
26835         * gcc.c (delete_if_ordinary): Delete all versions.
26836
26837 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
26838
26839         * config/mmix/mmix.md: Update FIXME to not mention
26840         define_constants.
26841         (MMIX_rJ_REGNUM): New define_constants constant.
26842         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
26843         "*movdicc_real"): Adjust contraints formatting.
26844         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
26845         for branch prediction.
26846         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
26847         output template.
26848         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
26849         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
26850         number.  Delete related FIXMEs.
26851         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
26852         from number to MMIX_rJ_REGNUM.
26853         (TARGET_MASK_BRANCH_PREDICT): New.
26854         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
26855         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
26856         value.  Add -mbranch-predict and -mno-branch-predict.
26857         (TARGET_VERSION): Drop date.
26858         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
26859         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
26860         for finding out global symbols.
26861         (mmix_asm_output_labelref): Revert condition for global symbol.
26862         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
26863         (mmix_print_operand_punct_valid_p): A '+' is valid.
26864
26865 See ChangeLog.6 for earlier changes.