rtl.h: Remove declarations from coverage.h.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2003-06-17  Andreas Jaeger  <aj@suse.de>
2
3         * rtl.h: Remove declarations from coverage.h.
4         * toplev.c: Include coverage.h.
5         * Makefile.in (toplev.o): Depend on coverage.h.
6
7         * toplev.h: Remove extra declaration of print_time.
8
9         * gengtype.c (close_output_files): Remove duplicated declaration.
10
11 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
12
13         * config/sparc/sysv4.h: Remove target-independent comment;
14         replace "GNU CC" with "GCC".
15         * config/vxworks.h: Replace "GNU compiler" with "GCC".
16         * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
17         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
18         config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
19         config/sparc/netbsd-elf.h, config/sparc/openbsd.h, 
20         config/sparc/rtemself.h, config/sparc/sol2-64.h,
21         config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
22         config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
23         config/sparc/sol2.h, config/sparc/sp64-aout.h, 
24         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
25         config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
26         "GNU compiler", "GNU CC" with "GCC".
27         * config/sparc/cypress.md, config/sparc/hypersparc.md,
28         config/sparc/sparc-modes.def, config/sparc/sparc.c,
29         config/sparc/sparc.md, config/sparc/sparclet.md,
30         config/sparc/supersparc.md, config/sparc/ultra1_2.md,
31         config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
32         "GNU C Compiler" with "GCC".
33         * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
34
35 2003-06-16  Aldy Hernandez  <aldyh@redhat.com>
36
37         * simplify-rtx.c (simplify_subreg): Do not over-extend vector
38         constants.
39
40         * testsuite/gcc.c-torture/execute/simd-4.c: New.
41
42 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
43
44         * config/ip2k/ip2k.h: Remove target-independent comments.
45
46         * config.gcc: Explicitly mention elfos.h in ip2k entry.
47         * config/ip2k/ip2k.h: Don't #include it here.
48
49 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
50
51         * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
52         config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
53         dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
54         function.c, gcc.c, genoutput.c, gensupport.c, global.c,
55         haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
56         loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
57         read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
58         stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
59         the PTR macro.
60
61         * gengtype.c: Don't use UNION_INIT_ZERO.
62         * system.h (UNION_INIT_ZERO): Delete.
63
64 2003-06-16  Richard Henderson  <rth@redhat.com>
65
66         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
67         GET_MODE_UNIT_SIZE when simplifying constant vectors.
68
69 2003-06-16  Andreas Jaeger  <aj@suse.de>
70
71         * timevar.c (get_run_time): Remove function provided also by
72         libiberty.
73         * timevar.h: Remove get_run_time declaration.
74
75 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
76
77         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
78         unreachable code.
79
80 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
81
82         * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
83         cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
84         use macros from "symcat.h", instead rely on ISO C.
85         
86         * system.h: Don't include "symcat.h".
87         * configure.in (AC_C_STRINGIZE): Delete.
88         * config.in, configure: Regenerate.
89
90 2003-06-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
91
92         * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
93
94         * tree.h (STMT_CHECK): New macro.
95         Also upper-case argument names on all checking macros and
96         fix some whitespace problems; assume CODE argument does not
97         have side-effects.
98
99 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
100
101         * scan.h: Convert to ISO C.
102         * system.h: Likewise.
103
104         * c-format.c (dynamic_format_types): New pointer for dynamic data.
105         (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
106         New functions split out of...
107         (handle_format_attribute): ...here.
108
109 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
110
111         * sh.h (REG_CLASS_FROM_LETTER): Change to:
112         (REG_CLASS_FROM_CONSTRAINT).
113         (CONST_OK_FOR_I): Rename to:
114         (CONST_OK_FOR_I08).  Changed all users.
115         (CONST_OK_FOR_J): Rename to:
116         (CONST_OK_FOR_I16).  Changed all users.
117         (CONST_OK_FOR_K): Rename to:
118         (CONST_OK_FOR_P27).  Changed all users.
119         (CONST_OK_FOR_L): Rename to:
120         (CONST_OK_FOR_K08).  Changed all users.
121         (CONST_OK_FOR_O): Rename to:
122         (CONST_OK_FOR_I06).  Changed all users.
123         (CONST_OK_FOR_P): Rename to:
124         (CONST_OK_FOR_I10).  Changed all users.
125         (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
126         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
127         (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
128         (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
129         (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
130         (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
131         (CONST_OK_FOR_LETTER_P): Replace with
132         (CONST_OK_FOR_CONSTRAINT_P).
133         (EXTRA_CONSTRAINT_S): Rename to:
134         (EXTRA_CONSTRAINT_C16).  Changed all users.
135         (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
136         (EXTRA_CONSTRAINT_T): Rename to:
137         (EXTRA_CONSTRAINT_Csy).  Changed all users.
138         (EXTRA_CONSTRAINT_Z): Remove.
139         (EXTRA_CONSTRAINT): Replace with:
140         (EXTRA_CONSTRAINT_STR).
141         (EXTRA_CONSTRAINT_U): Rename to:
142          (EXTRA_CONSTRAINT_Z).  Changed all users.
143         * sh.c (and_operand): Use CONST_OK_FOR_J16.
144         * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
145         (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
146         (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
147         (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
148         (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
149         (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
150         (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
151         (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
152         (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
153         (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
154         (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
155         (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
156         (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
157         (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
158         (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
159         (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
160         (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
161         (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
162         (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
163         (sssubv4hi3): Likewise.
164         (movsf_i): Change I[08]/r to G/r.
165         (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
166
167         * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
168
169 2003-06-16  Vladimir Makarov  <vmakarov@redhat.com>
170
171         * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
172
173 2003-06-16  Andreas Jaeger  <aj@suse.de>
174
175         * basic-block.h: Remove duplicate prototype of
176         note_prediction_to_br_prob.
177
178         * tree.h: Remove duplicate prototype of strip_float_extensions.
179
180 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
181
182         * config/c4x/c4x.c: Don't include "c-tree.h".
183         * config/pa/pa.c: Likewise.
184         * langhooks.c: Likewise.
185         * tree.h (poplevel): Declare.
186
187 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
188
189         * config/h8300/h8300.c (const_costs): Move this to ...
190         (h8300_rtx_costs): ... here.
191
192 2003-06-16  Roger Sayle  <roger@eyesopen.com>
193
194         * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
195         (tan_optab, atan_optab): Define corresponding macros.
196         * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
197         * genopinit.c (optabs): Implement tan_optab and atan_optab
198         using tan?f2 and atan?f2 patterns.
199         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
200         using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
201         Change the default value of errno_set to false.
202         (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
203         using expand_builtin_mathfn.
204
205         * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
206         expander patterns implemented using existing atan2?f3 patterns.
207
208 2003-06-16  Roger Sayle  <roger@eyesopen.com>
209
210         * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
211         both operands of the addition equal, reuse the expanded RTL.
212         (expand_expr <MULT_EXPR>): Likewise for multiplication.
213
214 2003-06-16  Roger Sayle  <roger@eyesopen.com>
215             Jeff Law  <law@redhat.com>
216
217         * fold-const.c (operand_equal_p): Consider two calls to "const"
218         functions with identical non-volatile arguments to be equal.
219         Consider the FUNCTION_DECL for the "__builtin_foo" form of a
220         built-in function to be equal to the "foo" form.
221
222 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
223
224         * config/rs6000/sysv4le.h: Remove target-independent comment.
225         Replace "GNU compiler" with "GCC" in comment.
226
227 2003-06-16  Andreas Jaeger  <aj@suse.de>
228
229         * tracer.c: Remove duplicate declaration.
230
231         * toplev.c: Remove extra declaration of decode_d_option.
232
233         * ssa.c: Remove duplicate declaration.
234
235         * sreal.c: Remove extra declaration of dump_sreal.
236
237         * reload1.c: Remove duplicate declarations.
238
239         * integrate.c: Remove extra declaration of
240         set_decl_abstract_flags.
241
242         * flow.c: Remove extra declaration of dump_flow_info.
243
244         * alias.c: Remove extra declaration of get_addr.
245
246 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
247
248         * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
249         config/vxworks.h: GNU CC -> GCC.
250
251         * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
252         lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
253         stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
254         ssa.h, tree.def: Replace overly specific references to "GNU C"
255         and "GNU C Compiler" with references to "GCC".
256
257 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
258
259         * sh.c (prepare_move_operand): Check if operand 0 is an invalid
260         memory reference.  Fix test that checks if operand 1 is using r0.
261         * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
262
263         * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
264         defined.
265
266 2003-06-15  Nathan Sidwell  <nathan@codesourcery.com>
267
268         * function.h (struct emit_status): Remove x_last_linenum,
269         x_last_filename. Add x_last_location.
270         * rtl.h: #include "input.h".
271         (NOTE_DATA): New.
272         * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
273         number notes.
274         * emit-rtl.c (last_linenum, last_filename): Remove.
275         (last_location): New.
276         (emit_line_note_after): LINE must always be >= 0.
277         (emit_line_note): Likewise. Check not duplicate here...
278         (emit_note): ... rather than here.
279         (emit_line_note_force, force_next_line_note, init_emit): Adjust.
280         * integrate.c (expand_inline_function): Use emit_line_note for
281         line number notes.
282         (copy_insn_list): Likewise.
283         * unroll.c (copy_loop_body): Likewise.
284         * Makefile.in (RTL_H): Add input.h.
285
286 2003-06-16  Richard Sandiford  <rsandifo@redhat.com>
287
288         * optabs.c (emit_libcall_block): Don't hoist insns past a label.
289
290 2003-06-16  Richard Henderson  <rth@redhat.com>
291
292         * config/alpha/alpha-protos.h, config/alpha/elf.h,
293         config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
294         config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
295         * config/alpha/alpha.c: Likewise.  Move targetm init to end of file.
296         Remove unneeded static function decls.
297
298 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
299
300         * c-opts.c (c_common_handle_option): s/on/value/.
301         (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
302         directly rather than converting the argument.
303         * c.opt: Update docs.  Use UInteger where appropriate.
304         * common.opt: Use UInteger where appropriate.
305         * opts.c (integral_argument): New.
306         (handle_argument): Handle integral arguments, and optional
307         joined arguments.
308         (common_handle_option): Update.
309         * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
310         * opts.sh: Handle JoinedOrMissing and UInteger flags.
311
312 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
313
314         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
315         unnecessary extern declaration.
316
317 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
318
319         * config/gofast.h, config/interix.h, config/interix3.h,
320         config/libgloss.h, config/linux-aout.h, config/linux.h,
321         config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
322         * config/kaos.h: "GNU compiler" -> GCC.
323         * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
324
325         * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
326         config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
327         GNU CC -> GCC.
328
329         * config/svr3.h: Remove #if 0 code, misleading comments.
330         GNU CC -> GCC.
331
332 2003-06-15  Zack Weinberg  <zack@codesourcery.com>
333
334         * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
335         main_input_filename to avoid conflict with input_filename macro.
336
337 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
338
339         * config/mips/mips.h (asm_file_name, g_switch_set,
340         g_switch_value): Remove.
341         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
342         unnecessary extern declarations.
343
344 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
345
346         * config/frv/frv.h: Remove declaration of g_switch_value.
347         * config/m32r/m32r.h: Remove declaration of g_switch_value.
348         * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
349
350 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
351
352         * opts.sh: Quote '+' in regex.
353
354 2003-06-15  Andrew Pinski <pinskia@physics.uc.edu>
355
356         * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
357         * config/rs6000/rs6000.c: Include cfglayout.h.
358         * config/alpha/alpha.c: Likewise.
359         * config/ia64/ia64.c: Likewise.
360         * config/sparc/sparc.c: Likewise.
361         * config/sh/sh.c: Likewise.
362
363 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
364
365         * opts.sh: Quote '+' in regex.
366
367 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
368
369         * c-opts.c (lang_flags): Update for new spelling of flags.
370         (write_langs): Similarly.
371         * c.opt: Specify languages.
372         * opts.h: Remove languages.
373         * opts.sh: Recognise front-end defined languages.
374         * doc/sourcebuild.texi: Update.
375
376 2003-06-15  Andreas Jaeger  <aj@suse.de>
377
378         * alloc-pool.c: Convert to ISO C90 prototypes.
379         * alloc-pool.h: Likewise.
380         * alias.c: Likewise.
381         * attribs.c: Likewise.
382         * bb-reorder.c: Likewise.
383         * bitmap.h: Likewise.
384         * bitmap.c: Likewise.
385         * builtins.c: Likewise.
386
387         * tree.h: Convert prototypes of attribs.c to ISO C90.
388         * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
389         * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
390         * expr.h: Convert prototypes of builtins.c to ISO C90.
391
392 2003-06-15  Roger Sayle  <roger@eyesopen.com>
393
394         * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
395         implement exp, expf and expl built-ins as inline x87 intrinsics.
396         (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
397         represent x87's fscale, frndint and f2xm1 insns respectively.
398         (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
399         to encode x87's "fscale" instruction followed by a pop.
400         (*frndintxf2): New insn pattern for "frndint".
401         (*f2xm1xf2): New insn pattern for "f2xm1".
402
403         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
404         UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
405         UNSPEC_FPATAN.
406
407 2003-06-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
408
409         * gencheck.c (main): Avoid generating duplicate macros.
410
411         * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
412         knowing names of language subdirectories.
413
414 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
415
416         * c-pch.c (asm_file_name): Remove.
417         * common.opt: Add more switches.
418         * flags.h (g_switch_set): Boolify.
419         * opts.c (g_switch_value, g_switch_set, exit_after_options,
420         version_flag): Move from toplev.c.
421         (common_handle_option): Handle more switches from toplev.c.
422         * toplev.c (display_help, display_target_options, decode_d_option,
423         print_version): Make non-static, remove prototypes.
424         (aux_base_name, asm_file_name, aux_info_file_name): Constify.
425         (version_flag, g_switch_value, g_switch_set, exit_after_options):
426         Remove.
427         (independent_decode_option): Move some handlers to opts.c.
428         * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
429         exit_after_options, version_flag, display_help, display_target_options,
430         print_version, decode_d_option): New.
431
432 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
433
434         * config/alpha/alpha.md: Follow spelling conventions.
435         * config/arm/arm.c: Likewise.
436         * config/arm/arm.h: Likewise.
437         * config/arm/arm.md: Likewise.
438         * config/arm/crtn.asm: Likewise.
439         * config/m32r/m32r.c: Likewise.
440         * config/m32r/m32r.md: Likewise.
441         * config/rs6000/rs6000.c: Likewise.
442
443 2003-06-15  Richard Henderson  <rth@redhat.com>
444
445         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
446         insn_locators_initialize.
447         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
448         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
449         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
450         * config/sh/sh.c (sh_output_mi_thunk): Do it later.
451
452 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
453
454         * builtins.c (expand_builtin_expect_jump): Remove redundant
455         tests that are also in any_condjump_p().
456
457 2003-06-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
458
459         * libgcc2.c: Delete sysV68 L_trampoline section.
460         * config/m68k/mot3300-crt0.S: Delete file.
461         * config/m68k/mot3300Mcrt0.S: Likewise.
462
463 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
464
465         * config/aoutos.h: Remove.
466         * config.gcc: Remove reference to aoutos.h.
467         * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
468
469 2003-06-14  Kazu Hirata  <kazu@cs.umass.edu>
470
471         * doc/install.texi: Follow spelling conventions.
472         * doc/tm.texi: Likewise.
473         * config/fp-bit.c: Likewise.
474         * config/arm/arm.c: Likewise.
475         * config/frv/frv.c: Likewise.
476         * config/ns32k/NOTES: Likewise.
477         * config/ns32k/STATUS: Likewise.
478
479 2003-06-14  Roger Sayle  <roger@eyesopen.com>
480             Zack Weinberg  <zack@codesourcery.com>
481
482         * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
483         * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
484         * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
485
486         * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
487         * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
488         * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
489         * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
490         * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
491         * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
492         * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
493         * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
494         * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
495         * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
496         * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
497         * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
498         * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
499         * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
500         * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
501         * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
502         * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
503         * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
504         * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
505         * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
506
507 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
508
509         * opts.sh (POSIXLY_CORRECT): Unset it.
510
511         * tree.h (init_function_start): Remove filename and line paramters.
512         * function.c (init_function_start): Remove filename and line
513         parameters. Use DECL_SOURCE_LOCATION.
514         * c-decl.c (store_parm_decls): Adjust init_function_start call.
515         (c_expand_body_1): Likewise.
516         * coverage.c (create_coverage): Likewise.
517         * objc/objc-act.c (build_tmp_function_decl): Set line number to
518         zero.
519         (hack_method_prototype): Adjust init_function_start call.
520
521 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
522
523         PR target/3724
524         * arm/linux-elf.h (PROFILE_HOOK): Define.
525
526 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
527
528         PR target/11183
529         * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
530
531 2003-06-14  Roger Sayle  <roger@eyesopen.com>
532
533         * opts.sh: Work around a mysterious feature in cygwin's gawk
534         where specifying the input files explicitly has a different
535         behavior to piping them via stdin.
536
537 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
538
539         * doc/sourcebuild.texi: Update.
540
541 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
542
543         PR target/11183
544         * arm.c (output_move_double): Pass SImode to adjust_address.
545
546 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
547
548         * Makefile.in: Update to use common.opt and lang_opt_files.
549         (c-options.c, c-options.h): Remove.
550         (options.c, options.h): Add.
551         * c-opts.c: Include options.h not c-options.h.
552         * common.opt: New file.
553         * configure, configure.in: Add lang_opt_files.
554         * opts.c: Include flags.h and diagnostic.h.
555         (common_handle_option): New.
556         (handle_option): Update to recognize common options and all
557         language-dependent options.
558         * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
559         (struct cl_option): Make flags of type int.
560         * opts.h: Flag option with front ends to which it applies.
561         Handle duplicate options.
562         * toplev.c (filename): Remove.
563         (independent_decode_option): Don't handle filenames and -quiet.
564         (process_options, do_compile): Update.
565
566 2003-06-14  Nick Clifton  <nickc@redhat.com>
567
568         * doc/install.texi (Specific): Add description of different
569         ARM supported file format targets.
570
571 Sat Jun 14 11:12:04 CEST 2003  Jan Hubicka  <jh@suse.cz>
572
573         * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
574         inside delay slots.
575
576 2003-06-13  Matt Kraai  <kraai@alumni.cmu.edu>
577
578         * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
579         * unwind-pe.h (size_of_encoded_value): Do not define if
580         NO_SIZE_OF_ENCODED_VALUE is defined.
581
582 2003-06-13  Roger Sayle  <roger@eyesopen.com>
583
584         * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
585         expanding a complex constant into a CONCAT target.
586
587 2003-06-13  Zack Weinberg  <zack@codesourcery.com>
588
589         * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
590         (ASM_FILE_START_1): Delete.
591         * config/i386/att.h, config/i386/sco5.h,
592         config/i386/sysv3.h
593         (ASM_FILE_START_1): Delete.
594
595 2003-06-13  Kelley Cook  <kelleycook@wideopenwest.com>
596
597         * config/i386/bsd.h: Remove ASM_FILE_START.
598         * config/i386/djgpp.h: Likewise.
599         * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
600
601         * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
602         * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
603
604 2003-06-13  Vladimir Makarov  <vmakarov@redhat.com>
605
606         PR bootstrap/10835
607         * haifa-sched.c (max_lookahead_tries,
608         cached_first_cycle_multipass_dfa_lookahead,
609         cached_issue_rate): New variables.
610         (max_issue): Check the number of tries.
611         (choose_ready): Calculate max_lookahead_tries.
612         (sched_init): Check cached_issue_rate.
613
614 2003-06-13  Richard Henderson  <rth@redhat.com>
615
616         * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
617         * cfgrtl.c (purge_dead_edges): Expect it too.
618
619 2003-06-13  Jim Wilson  <wilson@tuliptree.org>
620             Eric Botcazou  <ebotcazou@libertysurf.fr>
621
622         PR bootstrap/10983
623         * combine.c (make_extraction): Use gen_lowpart_for_combine
624         when extracting from a REG and not in the destination of a SET.
625
626 2003-06-13  Doug Evans  <dje@sebabeach.org>
627
628         * tsystem.h (abort): Declare in inhibit_libc case to remove build
629         warnings for addvsi3, et.al.
630
631 2003-06-13  Aldy Hernandez  <aldyh@redhat.com>
632
633         * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
634
635         * simplify-rtx.c (simplify_subreg): Same.
636
637         * emit-rtl.c (gen_lowpart_common): Same.
638
639 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
640
641         * builtins.c: Fix comment typos.
642         * fold-const.c: Likewise.
643
644 2003-06-13  Doug Evans  <dje@sebabeach.org>
645             Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
646
647         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
648         * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
649         (m32r_va_arg): Use it.
650         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
651         (RETURN_IN_MEMORY): Ditto.
652
653 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
654
655         * c-typeck.c: Remove #if 0 clauses.
656
657         PR other/1494
658         * config/alpha/openbsd.h, config/i386/openbsd.h,
659         config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
660         residual reference to EGCS.
661
662 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
663
664         * arm.c (output_call_mem): If the address references the link-register
665         use an instruction sequence that avoids early-clobbering IP.
666         (eliminate_lr2ip): Delete.
667
668 2003-06-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
669
670         * c-format.c (format_types_orig): Disallow '*' width/precision in
671         asm_fprintf format checks.
672
673 2003-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
674
675         * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
676         non-integral types from integer register save area slots.
677
678 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
679
680         * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
681
682 2003-06-13  Florian Weimer  <fw@deneb.enyo.de>
683
684         * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
685
686 2003-06-13  Kaz Kojima  <kkojima@gcc.gnu.org>
687
688         * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
689         to file_end_indicate_exec_stack.
690
691 2003-06-12  Richard Henderson  <rth@redhat.com>
692
693         PR target/11089
694         * config/i386/i386.md (sse_movaps): Use an expander to force
695         one operand to be a register.
696         (sse_movups): Likewise.
697
698 2003-06-13  Doug Evans  <dje@sebabeach.org>
699
700         Remove some build warnings.
701         * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
702         (__do_global_ctors,__do_global_dtors): Ditto.
703
704 2003-06-12  Richard Henderson  <rth@redhat.com>
705
706         PR middle-end/10557
707         * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
708
709 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
710
711         * config/m32r/m32r.md: Fix a comment typo.
712
713 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
714             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
715
716         PR target/10142
717         * config/sparc/sparc.c (function_arg_record_value_parms): Add
718         new 'stack' field.
719         (function_arg_record_value_1): Set 'stack' to 1 if we run out of
720         integer slots for an integer field.
721         (function_arg_record_value_3): Shift vector index.
722         (function_arg_record_value_2): Likewise.
723         (function_arg_record_value): Initialize 'stack' to 0.
724         Set 'stack' to 1 if we run out of integer slots for an integer field.
725         Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
726
727 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
728
729         PR optimization/10955
730         * unroll.c (unroll_loop): Fix off-by-one bug.
731
732 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
733
734         * config/rs6000/rs6000.c (function_arg): Remove typo.
735
736 2003-06-12  Richard Henderson  <rth@redhat.com>
737
738         * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
739         and UNSPEC_DTPOFF.
740
741 2003-06-12  Richard Henderson  <rth@redhat.com>
742
743         PR middle-end/10475
744         * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
745         for extracting sub-words.
746
747 2003-06-12  Richard Henderson  <rth@redhat.com>
748
749         PR target/7594
750         * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
751         (zero_extendqihi2, zero_extendqisi2): Likewise.
752
753 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
754
755         * config/rs6000/rs6000.c (function_arg): Always split vectors for
756         e500 if it's a stdarg function.
757         (function_arg_advance): Advance 2 registers for vectors in a
758         stdarg function.
759         (init_cumulative_args): Initialize stdarg.
760         (rs6000_spe_function_arg): New.
761
762         * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
763
764 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
765
766         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
767
768 2003-06-12  Roger Sayle  <roger@eyesopen.com>
769
770         PR middle-end/168
771         * fold-const.c (tree_expr_nonnegative_p):  Handle addition
772         and multiplication of zero extensions, floating point division,
773         and integer<->fp, fp<->fp and zero extension conversions.
774         The built-in ceil and floor functions preserve signedness.
775
776 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
777
778         * ChangeLog: Follow spelling conventions.
779         * ChangeLog.2: Likewise.
780         * c-decl.c: Likewise.
781         * cfgloop.h: Likewise.
782         * cgraph.c: Likewise.
783         * coverage.c: Likewise.
784         * cppcharset.c: Likewise.
785         * cpphash.h: Likewise.
786         * cpplex.c: Likewise.
787         * cpplib.c: Likewise.
788         * dbxout.c: Likewise.
789         * df.c: Likewise.
790         * dwarf2out.c: Likewise.
791         * dwarfout.c: Likewise.
792         * emit-rtl.c: Likewise.
793         * explow.c: Likewise.
794         * gcov-io.c: Likewise.
795         * gcov-io.h: Likewise.
796         * gcov.c: Likewise.
797         * gengtype.c: Likewise.
798         * ggc.h: Likewise.
799         * opts.c: Likewise.
800         * real.c: Likewise.
801         * reload.c: Likewise.
802         * stmt.c: Likewise.
803
804 2003-06-12  Janis Johnson  <janis187@us.ibm.com>
805
806         * doc/install.texi (m32r-*-elf): Change company to Renesas.
807
808 Thu Jun 12 20:00:55 CEST 2003  Jan Hubicka  <jh@suse.cz>
809
810         * basic-block.h (flow_delete_block_noexpunge): Kill.
811         * cfgrtl.c (flow_delete_block_noexpunge): Merge to
812         rtl_delete_block.
813
814 2003-06-10  Richard Henderson  <rth@redhat.com>
815
816         PR inline-asm/4823
817         * reg-stack.c (any_malformed_asm): New.
818         (check_asm_stack_operands): Set it.
819         (convert_regs_1): Check it before aborting.
820
821 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
822
823         * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
824
825 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
826
827         * c-opts.c (complain_wrong_lang): Add on argument.
828         Print no- switch if on is false.
829         (c_common_decode_option): Adjust caller.
830
831 2003-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
832
833         * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
834         to initialize GOT register.
835
836 2003-06-12  Roger Sayle  <roger@eyesopen.com>
837
838         * fold-const.c (tree_expr_nonnegative_p): Add support for
839         floating point constants, addition and multiplication.
840
841 2003-06-12  J"orn Rennecke <joern.rennecke@superh.com>
842
843         * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
844         constraint modifier for operand 0.
845
846 2003-06-12  Hans-Peter Nilsson  <hp@axis.com>
847
848         Don't warn on dollars in builtin macro definitions,
849         e.g. __REGISTER_PREFIX__.
850         * cpphash.h (struct cpp_reader): Move member warn_dollars...
851         * cpplib.h (struct cpp_options): ...to here.  Change type to
852         unsigned char.
853         * cppinit.c (cpp_create_reader): Set it to 1 here.
854         (post_options): Don't set it here.
855         * c-opts.c (c_common_init_options): Reset it to 0 here.
856         (finish_options): Set it here.
857         * cpplex.c (forms_identifier_p): Tweak for new location of
858         warn_dollars.
859
860         * configure.in (assembler dwarf2 debug_line support): Define insn
861         for cris-*-* and mmix-*-*.
862         * configure: Regenerate.
863
864 2003-06-11  Uwe Stieber  <uwe@kaos-group.de>
865
866         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
867         powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
868         (sh-*-elf*): Add sh*-*-kaos* support.
869         * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
870         config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
871         config/sh/kaos-sh.h: New files.
872
873 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
874
875         * gcse.c (fis_get_condition): Make it a global function.
876         * reload1.c (reload_cse_move2add): Detect implicit sets.
877         * rtl.h: Add a prototype for fis_get_condition.
878
879 2003-06-11  Richard Henderson  <rth@redhat.com>
880
881         * stmt.c (expand_asm_operands): Don't warn for memories with
882         queued addresses.
883
884 2003-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
885
886         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
887         brackets.
888
889 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
890
891         * hooks.c (hook_int_size_t_constcharptr_int_0): New.
892         * hooks.h (hook_int_size_t_constcharptr_int_0): New.
893         * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
894         (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
895         * langhooks.c (lhd_decode_option): Remove.
896         * langhooks.h (struct lang_hooks): Remove decode_option.
897         * opts.c (handle_option): No longer use decode_option.
898
899 2003-06-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
900
901         * cfgloopanal.c (variable_initial_value): Update the set of altered
902         registers correctly.
903
904 2003-06-11  Roger Sayle  <roger@eyesopen.com>
905             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
906
907         * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
908         * config/i386/netbsd-elf.h: Likewise.
909         * config/m32r/m32r.h: Likewise.
910         * config/mn10300/mn10300.h: Likewise.
911         * config/stormy16/stormy16.h: Likewise.
912         * config/v850/v850.h: Likewise.
913         * config/vax/netbsd-elf.h: Likewise.
914         * config/xtensa/elf.h: Likewise.
915         * config/xtensa/linux.h: Likewise.
916
917 2003-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
918
919         * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
920         DWARF 2 default.
921
922         * config/mips/dbxmdebug.h: New file.
923         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
924         gas and --with-stabs.
925
926 2003-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
927
928         * expr.c (can_move_by_pieces): align argument may be unused.
929
930 2003-06-11  J"orn Rennecke <joern.rennecke@superh.com>
931
932         * expr.c (convert_move): Handle moves between two CONCATs.
933
934 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
935
936         * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
937         !TARGET_H8300.
938
939 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
940
941         * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
942         * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
943         (TARGET_RTL_DUMP): Likewise.
944         (TARGET_SWITHCES): Remove -mrtl-dump.
945
946 2003-06-10  Richard Henderson  <rth@redhat.com>
947
948         * optabs.c (gen_cond_trap): Fix prepare_operand typo.
949
950 2003-06-10  Richard Henderson  <rth@redhat.com>
951
952         * config/ia64/ia64.md (call_gp): Fix memory mode.
953
954 2003-06-10  James E Wilson  <wilson@tuliptree.org>
955
956         PR target/8812
957         * reload1.c (choose_reload_regs): For equiv reg, add loop over all
958         hard regs for reload_reg_used_at_all and reg_class_contents checks.
959
960 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
961
962         * config/h8300/h8300.c (print_operand): Remove support for
963         operand character 'b'.
964         Add the AND case to operand character 'c'.
965         * config/h8300/h8300.md (two anonymous patterns): Replace
966         operand character 'b' with 'c'.
967
968 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
969
970         * config/h8300/h8300.c (print_operand): Remove support for
971         operand character 'u'.
972
973 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
974
975         * configure.in: Fix typo.
976         * configure: Regenerate.
977
978 2003-06-10  Loren James Rittle  <ljrittle@acm.org>
979
980         * config/alpha/alpha.c (unicosmk_file_end): Add conditional
981         compilation guard.
982
983 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
984
985         * sh-protos.h (function_symbol): Declare.
986         * sh.c (expand_block_move, expand_ashiftrt): Use it.
987         (sh_expand_prologue, sh_expand_epilogue): Likewise.
988         (sh_initialize_trampoline): Likewise.
989         (function_symbol): New function.
990         * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
991         (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
992         (call_value_pop, shcompact_return_tramp): Likewise.
993
994         * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
995
996         * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
997         target register.
998
999 2003-06-10  DJ Delorie  <dj@redhat.com>
1000
1001         * doc/md.texi (Machine Constraints): Document stormy's Z
1002         constraint.
1003
1004 2003-06-10  Geoffrey Keating  <geoffk@apple.com>
1005
1006         * except.c (call_site_base): Mark with GTY.
1007
1008 2003-06-10  Richard Earnshaw  <rearnsha@arm.com>
1009
1010         * arm-proto.h: Convert to ISO C90 prototypes.
1011         * arm.c: Likewise.
1012
1013 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
1014
1015         * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
1016
1017 2003-06-10  Steve Ellcey  <sje@cup.hp.com>
1018
1019         * calls.c (expand_call): Convert structure_value_addr to Pmode if
1020         necessary.
1021
1022 2003-06-10  Andrew Haley  <aph@redhat.com>
1023
1024         * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
1025         (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
1026         (lhd_decl_ok_for_sibcall): New.
1027         * langhooks.c (lhd_decl_ok_for_sibcall): New.
1028         * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
1029         * calls.c (expand_call): Check lang_hook before generating a
1030         sibcall.
1031
1032 2003-06-10  DJ Delorie  <dj@redhat.com>
1033
1034         * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
1035         which matches (const_int 0) for addhi3.
1036         * config/stormy16/stormy16.md: Document known constraints.
1037         (addhi3): Handle adding zero.
1038
1039 2003-06-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1040
1041         * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
1042         * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
1043         * config/m32r/m32r-protos.h: Prototype it.
1044
1045 2003-06-10  Janis Johnson  <janis187@us.ibm.com>
1046
1047         * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
1048         common to rs6000 sysv targets.
1049         * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
1050         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
1051
1052 2003-06-10  Nick Clifton  <nickc@redhat.com>
1053
1054         * config.gcc: Add arm-wince-pe target.
1055         * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
1056         Add comment about default apcs26 support.
1057         * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
1058         multilib.
1059         (MULTILIB_DIRNAMES): Add 'apcs32'.
1060         * config/arm/t-wince-pe: New makefile fragment.
1061         * config/arm/wince-pe.h: New file.  Overrides a few definitions
1062         in arm/pe.h
1063
1064 2003-06-10  Roger Sayle  <roger@eyesopen.com>
1065
1066         * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
1067         * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
1068         when x is easily negated and f is sin, tan or atan.
1069         (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
1070         sin(x) with flag_unsafe_math_optimizations.
1071         (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
1072         sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
1073
1074 2003-06-10  Roger Sayle  <roger@eyesopen.com>
1075
1076         * fold-const.c (fold <EQ_EXPR>):  Don't fold x == x only if x
1077         is a floating point type *and* we currently honor NaNs.
1078         (fold <NE_EXPR>): Likewise.
1079
1080 2003-06-10  Mark Mitchell  <mark@codesourcery.com>
1081
1082         PR c++/11131
1083         * tree-inline.c (inlinable_function_p): Call the language-specific
1084         hook early.
1085
1086 2003-06-09  David Taylor  <dtaylor@emc.com>
1087
1088         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg):  Skip over
1089         the f_res field.
1090
1091 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
1092
1093         * configure.in: Remove references to host_truncate_target.
1094         * configure: Regenerate.
1095         * config.gcc: Remove references to truncate_target,
1096         host_truncate_target.
1097
1098         * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
1099         Replace "build_canonical" with build, "host_canonical" with host.
1100         * configure.in: Use GCC_TOPLEV_SUBDIRS.
1101         * aclocal.m4: Include ../config/acx.m4.
1102         * configure: Regenerate.
1103
1104 2003-06-09  David Taylor  <dtaylor@emc.com>
1105
1106         * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
1107         bytes of padding in the __va_list_tag structure a name (reserved).
1108
1109 2003-06-09  Jason Merrill  <jason@redhat.com>
1110
1111         * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
1112
1113 2003-06-09  Osku Salerma  <osku@iki.fi>
1114
1115         * c-format.c (check_format_string, get_constant): New.
1116         (handle_format_attribute, handle_format_arg_attribute,
1117         decode_format_attr): Change to use above functions.
1118
1119 2003-06-09  Richard Henderson  <rth@redhat.com>
1120
1121         * stmt.c (expand_asm_operands): Re-word warning.
1122
1123 2003-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
1124
1125         PR target/8787
1126         * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
1127         if -masm=intel.
1128
1129 2003-06-09  James E Wilson  <wilson@tuliptree.org>
1130
1131         * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
1132         config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
1133         Add libgcc exception.
1134
1135 2003-06-09  David Edelsohn  <edelsohn@gnu.org>
1136             Ayal Zaks  <gcchaifa@us.ibm.com>
1137
1138         * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
1139         (insvsi*): Add insert_word attribute.
1140         * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
1141         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
1142         power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
1143
1144 2003-06-09  Kazu Hirata  <kazu@cs.umass.edu>
1145
1146         * fold-const.c (fold): Fix a comment typo.
1147
1148 2003-06-09  Nathan Sidwell  <nathan@codesourcery.com>
1149
1150         * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
1151         removed.
1152
1153 2003-06-09  J"orn Rennecke <joern.rennecke@superh.com>
1154
1155         * sh.c (gen_block_redirect): Use locators.
1156
1157 2003-06-09  Richard Earnshaw  <rearnsha@arm.com>
1158
1159         * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
1160         cast to int.
1161
1162 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
1163
1164         * configure.in: Assume gas 2.14 and above can handle MIPS relocation
1165         operators.
1166         * configure: Regenerated.
1167
1168 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
1169             Alexandre Oliva  <aoliva@redhat.com>
1170
1171         * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
1172         (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
1173         (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
1174         n32/64 PIC.
1175         (MUST_SAVE_REGISTERS): Delete.
1176         * config/mips/mips.c (mips_frame_info): Remove extra_size field.
1177         (machine_function): Add global_pointer field.
1178         (mips_classify_constant): Check for (const $gp) using pointer equality
1179         with pic_offset_table_rtx.
1180         (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
1181         (mips_restore_gp): Use current_function_outgoing_args_size.
1182         (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
1183         GP_REG_FIRST + 28.  Handle relocation strings that have
1184         more than one '('.
1185         (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
1186         (mips_global_pointer): New function.
1187         (mips_save_reg_p): New function, mostly split out from...
1188         (compute_frame_size): ...here.  Remove handling of extra_size.
1189         Reclaim args_size if no variables depend on it.  Don't treat gp
1190         as a special case: handle it in the main GPR loop.
1191         (mips_initial_elimination_offset): Fix comment.
1192         (save_restore_insns): Save every register in the GPR mask,
1193         removing distinction between mask and real_mask.
1194         (mips_output_function_prologue): Update .frame psuedo-op after
1195         the removal of extra_size.  Move the SVR4 PIC stack allocation
1196         and cprestore instructions to mips_expand_prologue.
1197         (mips_gp_insn): New function.
1198         (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
1199         the chosen global pointer.  Handle SVR4 PIC stack allocation
1200         in the same way as other ABIs.  Adjust varargs code accordingly.
1201         Emit a cprestore insn after allocating the stack.  Use mips_gp_insn
1202         to emit the loadgp sequence.  Follow it with a loadgp_blockage
1203         if not using explicit relocs.
1204         (mips_output_function_epilogue): Reinstate the default gp register.
1205         (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
1206         (mips16_optimize_gp): Likewise.
1207         * config/mips/mips.md (UNSPEC_LOADGP): Remove.
1208         (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
1209         (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
1210         (loadgp): Remove.
1211         (loadgp_blockage, cprestore): New instructions.
1212         (builtin_setjmp_setup): Implement using emit_move_insn.  Use
1213         pic_offset_table_rtx.
1214         (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
1215         (builtin_longjmp): Use gen_raw_REG to force use of $28.
1216
1217 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
1218
1219         * config/mips/mips-protos.h (mips_output_division): Declare.
1220         * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
1221         (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
1222         (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
1223         (TARGET_CHECK_ZERO_DIV): New macro.
1224         (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
1225         * config/mips/mips.c (mips_output_division): New function.
1226         * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
1227         account when calculating the default length of a division.
1228         (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
1229         Enable regardless of optimization level.  Use mips_output_division.
1230         (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
1231         udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
1232         divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
1233         modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
1234         udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
1235         umoddi3_internal): Remove.
1236
1237 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
1238
1239         * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
1240         (mips_sw_reg_names): Likewise.
1241         (mips_regno_to_class): Change hilo entry to NO_REGS.
1242         (hilo_operand): Use MD_REG_P.
1243         (extend_operator): New predicate.
1244         (override_options): Remove 'a' constraint.
1245         (mips_secondary_reload_class): Remove hilo handling.  Also remove
1246         handling of (plus sp reg) reloads for mips16.
1247         (mips_register_move_cost): Remove hilo handling.
1248         * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
1249         (MD_REG_LAST): Remove hilo from range.
1250         (HILO_REGNUM): Delete.
1251         (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
1252         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1253         (PREDICATE_CODES): Add entry for extend_operator.
1254         (DEBUG_REGISTER_NAMES): Change hilo entry to "".
1255         * config/mips/mips.md: Remove hilo clobbers wherever they occur.
1256         Remove constraints from multiplication define_expands.  Remove
1257         clobbers from "decorative" define_expand patterns.
1258         (UNSPEC_HILO_DELAY): Delete.
1259         (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
1260         (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
1261         Adjust C code to just emit insns for !TARGET_64BIT.
1262         (mulsidi3_internal): Rename to mulsidi3_32bit.
1263         (mulsidi3_64bit): Use a "d" constraint for the destination.
1264         Use extend_operator so that the pattern can handle umulsidi3 as well.
1265         Split the instruction after reload.
1266         (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
1267         (umulsidi3_internal): Rename to umulsidi3_32bit.
1268         (umulsidi3_64bit): Remove.
1269         (*smsac_di, *umsac_di): Line-wrap fixes.
1270         (udivsi3_internal): Don't allow operand 2 to be constant.
1271         (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
1272         (movdi_internal2, movsi_internal): Remove hilo alternatives.
1273         (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
1274
1275 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
1276
1277         PR target/10913
1278         * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
1279         PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
1280         PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
1281         PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
1282         SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
1283         (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
1284         PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
1285         asm_out_text_file with asm_out_file.
1286         * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
1287         * config/mips/elf.h (TEXT_SECTION): Undefine.
1288         * config/mips/elf64.h (TEXT_SECION): Undefine.
1289         * config/mips/openbsd.h (TEXT_SECION): Undefine.
1290         * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
1291         (override_options): Disable small-data optimizations unless using
1292         gas or explicit relocations.
1293         (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
1294         iris6_asm_named_section, iris6_asm_file_start): Remove code for
1295         handling TARGET_FILE_SWITCHING.
1296         (copy_file_data): Move into TARGET_IRIX6 block.
1297
1298 2003-06-08  Richard Henderson  <rth@redhat.com>
1299
1300         * expr.h (EXPAND_MEMORY): New.
1301         * expr.c (expand_expr): Check it.
1302         * stmt.c (expand_asm_operands): Provide it when the constraint
1303         requires a memory.  Warn for memory input constraints without
1304         a memory operand.
1305
1306 2003-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1307
1308         * varasm.c: Don't include c-tree.h.
1309
1310 2003-06-08  Andreas Jaeger  <aj@suse.de>
1311
1312         * predict.h: Convert to ISO C90 prototypes.
1313         * predict.c: Likewise.
1314         * tree-dump.h: Likewise.
1315         * tree-dump.c: Likewise.
1316         * diagnostic.h: Likewise.
1317         * diagnostic.c: Likewise.
1318         * combine.c: Likewise.
1319
1320         * rtl.h: Convert prototypes of combine.c to ISO C90.
1321
1322 Sun Jun  8 21:27:41 CEST 2003  Jan Hubicka  <jh@suse.cz>
1323
1324         * cfglayout.c (insn_scope): New static function
1325         (block_locators_*, line_locators*, file_locators*): New static varrays.
1326         (scope_to_insns_initialize): Use them.
1327         (insn_line, insn_file): New functions.
1328         (scope_to_insns_finalize): Use insn_scope.
1329         (prologue_locator, epilogue_locator): New global variables.
1330         * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
1331         make_call_insn_raw, emit_copy_of_insn_after): Use locators.
1332         (emit_insn_after_scope, emit_insn_before_scope
1333         emit_jump_insn_after_scope, emit_jump_insn_before_scope
1334         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
1335         (emit_insn_after_setloc, emit_insn_before_setloc
1336         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
1337         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
1338         use locators.
1339         * final.c (notice_source_line): Use locators.
1340         (final_start_function): Set initial source file and line.
1341         (final_scan_insn): Use locators.
1342         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1343         noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
1344         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
1345         noce_process_if_block, find_cond_trap): Likewise.
1346         * integrate.c (copy_insn_list): Likewise.
1347         * jump.c (duplicate_loop_exit_test): LIkewise.
1348         * print-rtl.c (print_rtx): Print locators.
1349         * recog.c (peephole2_optimize): Likewise.
1350         * rtl.h (INSN_SCOPE): Remove.
1351         (emit_insn_after_scope, emit_insn_before_scope
1352         emit_jump_insn_after_scope, emit_jump_insn_before_scope
1353         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
1354         (emit_insn_after_setloc, emit_insn_before_setloc
1355         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
1356         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
1357         (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
1358         * unroll.c (copy_loop_body): Use locators.
1359         * function.c (set_insn_locators): New function.
1360         (thread_prologue_and_epilogue_insns): Set the locators accordingly.
1361
1362 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
1363
1364         * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
1365         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
1366         _fixsfdi _fixunssfdi.
1367         (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
1368         popcounthi2.
1369         (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
1370         * config/h8300/clzhi2.c: New.
1371         * config/h8300/ctzhi2.c: Likewise.
1372         * config/h8300/parityhi2.c: Likewise.
1373         * config/h8300/popcounthi2.c: Likewise.
1374
1375 Sun Jun  8 15:52:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
1376
1377         * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
1378         * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
1379
1380         * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
1381         (dump_bb): New based on old dump_bb in cfgrtl.c
1382         (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
1383         * cfghooks.h (cfgh_verify_flow_info): Return status.
1384         * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
1385         * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
1386         (dump_bb): Remove generic parts.
1387         (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
1388         (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
1389
1390 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
1391
1392         * Makefile.in: Rename options.c and options.h to c-options.c and
1393         c-options.h.
1394         (OBJS): Remove options.o.
1395         * c-opts.c: Don'tInclude c-options.h instead of options.h.
1396         * opts.c: Don't include options.h.
1397         (find_opt): Can't use enum opt_code or N_OPTS.
1398         * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
1399         * opts.sh: ... here.
1400
1401 2003-06-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1402             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1403
1404         PR pch/9830
1405         * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
1406         if HAVE_MINCORE is defined.
1407         (MAP_FAILED): Define if not defined.
1408         (gt_pch_save): Test against MAP_FAILED.
1409         (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
1410         the mapping address to the preferred base after checking it
1411         is possible to do so. Test against MAP_FAILED.
1412         * configure.in: Test for the presence of mincore in libc.
1413         * config.in: Regenerate.
1414         * configure: Regenerate.
1415
1416 2003-06-07  Richard Henderson  <rth@redhat.com>
1417
1418         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
1419         conditional compilation guard.
1420
1421 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
1422
1423         * optabs.c (expand_abs): Set result_unsignedp to 1 if
1424         flag_trav is zero.
1425
1426 2003-06-07  Richard Henderson  <rth@redhat.com>
1427
1428         * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
1429
1430 2003-06-07  Richard Henderson  <rth@redhat.com>
1431
1432         * basic-block.h (EDGE_SIBCALL): New.
1433         (EDGE_ALL_FLAGS): Update.
1434         * cfg.c (dump_edge_info): Add sibcall name.
1435         * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
1436         * cfgrtl.c (purge_dead_edges): Handle sibcalls.
1437
1438 2003-06-07  Andreas Jaeger  <aj@suse.de>
1439
1440         * mklibgcc.in (lib2funcs): Remove _exit.
1441         * libgcc2.c: Remove L_exit.
1442         * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
1443
1444         * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
1445
1446         * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
1447
1448         * ggc.h: Convert to ISO C90 prototypes.
1449         * ggc-none.c: Likewise.
1450         * ggc-common.c: Likewise.
1451         * ggc-page.c: Likewise.
1452         * ggc-simple.c: Likewise.
1453
1454         * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
1455
1456         * system.h: Poison INIT_SECTION_PREAMBLE.
1457
1458 2003-06-07  Zack Weinberg  <zack@codesourcery.com>
1459
1460         * config.gcc (with_cpu handling): Translate sparc64 in
1461         $machine to --with-cpu=v9.
1462         * config/alpha/alpha.c
1463         (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
1464         (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
1465
1466         * target.h: New hook asm_out.file_end.
1467         * target.h: Update to match.  New hook macro TARGET_ASM_FILE_END.
1468         * toplev.c (compile_file): Use targetm.asm_out.file_end.
1469         * system.h: Poison ASM_FILE_END.
1470         * varasm.c (file_end_indicate_exec_stack): New.
1471         * output.h: Prototype it.
1472         * doc/tm.texi: Document TARGET_ASM_FILE_END and
1473         file_end_indicate_exec_stack.  Delete references to attasm.h.
1474
1475         * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
1476         (ASM_FILE_END): Delete; move code...
1477         * config/darwin.c (darwin_file_end): Here; new function.
1478         * config/darwin-protos.h: Prototype it.
1479         * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
1480         rename unicosmk_file_end.
1481         * config/arm/aof.h (ASM_FILE_END): Delete; move code...
1482         * config/arm/arm.c (aof_file_end): ... here; new static function.
1483         Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
1484         Make aof_dump_imports and aof_dump_pic_table static.
1485         * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
1486         Set TARGET_ASM_FILE_END to avr_file_end.
1487         * config/c4x/c4x.c (c4x_file_end): Make static.  Take no arguments.
1488         Set TARGET_ASM_FILE_END to c4x_file_end.
1489         * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
1490         make static. Take no arguments.  Set TARGET_ASM_FILE_END to
1491         h8300_file_end.
1492         * config/i370/i370.h (ASM_FILE_END): Delete; move code...
1493         * config/i370/i370.c (i370_file_end): ... here; new static function.
1494         Set TARGET_ASM_FILE_END to i370_file_end.
1495          * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
1496          Take no arguments.  Call file_end_indicate_exec_stack if
1497          NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
1498         * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
1499         Define NEED_INDICATE_EXEC_STACK to 0.
1500         * config/i386/linux.h, config/i386/linux64.h: Redefine
1501         NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
1502         * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
1503         i386_pe_file_end.  Take no arguments.  Use ix86_file_end.
1504         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
1505         ia64_hpux_file_end, make static.  Take no arguments.
1506         * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
1507         commands_in_prologues, commands_in_epilogues): Delete.
1508         (function_epilogue): Update to match.
1509         * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
1510         make static.  Take no arguments.
1511         (iris6_asm_file_end): Rename iris6_file_end, make static, use
1512         mips_file_end, take no arguments.
1513         Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
1514         appropriate.
1515         * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
1516         make static, take no arguments. Set TARGET_ASM_FILE_END to
1517         mmix_file_end.
1518         * config/pa/pa.c (output_deferred_plabels): Make static, take
1519         no arguments.  Set TARGET_ASM_FILE_END to output_deferred_plabels.
1520         * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
1521         (ASM_FILE_END): Delete; move code...
1522         * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
1523         new static function.
1524
1525         * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
1526         * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
1527         Don't set ASM_FILE_END.
1528         * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
1529         * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
1530         * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
1531         file_end_indicate_exec_stack; don't set ASM_FILE_END.
1532         * config/alpha/unicosmk.h, config/i386/cygming.h
1533         * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
1534         * config/arm/arm-protos.h, config/alpha/alpha-protos.h
1535         * config/avr/avr-protos.h, config/c4x/c4x-protos.h
1536         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
1537         * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
1538         * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
1539
1540 Sat Jun  7 18:32:13 CEST 2003  Jan Hubicka  <jh@suse.cz>
1541
1542         * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
1543         specified.
1544
1545 Sat Jun  7 15:20:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
1546
1547         * Makefile.in (stageprofile_build): Kill redundant target.
1548         * i386.c (mdep_reorg): Don't pad jumps for Athlon.
1549
1550 2003-06-07  Andreas Jaeger  <aj@suse.de>
1551
1552         * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
1553
1554         * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
1555         * config/dsp16xx/dsp16xx.h: Likewise.
1556         * config/i386/i386.h: Likewise.
1557         * config/ip2k/ip2k.h: Likewise.
1558
1559 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
1560
1561         * Makefile.in (OJBS, c-opts.o): Update.
1562         (c-options.c, c-options.h): Rename options.h and options.c.
1563         (options.h): Rename options_.h.
1564         (opts.o): New.
1565         * c-common.h (c_common_handle_option): Replace c_common_decode_option.
1566         (c_common_init_options): Update prototype.
1567         * c-lang.c (c_init_options): Update prototype.
1568         (LANG_HOOKS_HANDLE_OPTION): Override.
1569         (LANG_HOOKS_DECODE_OPTION): Drop.
1570         * c-opts.c: Include opts.h and options.h instead of c-options.h
1571         and c-options.c.
1572         (lang_flags): Move to file scope.
1573         (find_opt, c_common_decode_option): Remove.
1574         (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
1575         CL_REJECT_NEGATIVE): Move to opts.h.
1576         (missing_arg): Update prototype.
1577         (c_common_init_options): Update for new prototype.
1578         (c_common_handle_options): Filenames are passed as N_OPTS.
1579         * hooks.c (hook_int_void_0): New.
1580         * hooks.h (hook_int_void_0): New.
1581         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
1582         (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
1583         (LANG_HOOKS_INITIALIZER): Update.
1584         * langhooks.h (init_options): Update.
1585         (handle_option): New.
1586         * opts.c, opts.h: New files.
1587         * opts.sh: Update c file to include opts.h and options.h.
1588         * toplev.c: Include opts.h; change options.h to options_.h.
1589         (parse_options_and_default_flags): Get lang_mask, use
1590         handle_option for language-specific handling.
1591         * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
1592         (LANG_HOOKS_HANDLE_OPTION): Override.
1593         (objc_init_options): Update.
1594
1595 2003-06-07  Magnus Kreth <magnus.kreth@gmx.de>
1596             Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
1597
1598         PR other/7031
1599         * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
1600         gcov.
1601
1602 2003-06-07  Kelley Cook  <kelleycook@wideopenwest.com>
1603
1604         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
1605         section names.
1606         * configure: Regenerate.
1607
1608 2003-06-07  Alan Modra  <amodra@bigpond.net.au>
1609
1610         * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
1611
1612 2003-06-06  James E Wilson  <wilson@tuliptree.org>
1613
1614         PR inline-asm/10890
1615         * reload1.c (merge_assigned_reloads): Abort only if two reloads have
1616         different in fields.
1617
1618 2003-06-06  Nathanael Nerode  <neroden@gcc.gnu.org>
1619
1620         * configure.in: Make $(target_subdir) correspond with top level usage.
1621         * Makefile.in: Likewise.
1622         * configure: Regenerate.
1623
1624 2003-06-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1625
1626         * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
1627         ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
1628         unsigned HOST_WIDE_INT.
1629         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
1630         Likewise.
1631         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
1632         Likewise.
1633
1634 2003-06-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1635
1636         * doc/install.texi (Prerequisites): New section documenting
1637         tools and packages necessary prior to building and/or
1638         modifying GCC.
1639         * doc/install.texi2html: Also generate prerequisites.html.
1640
1641 2003-06-06  Richard Earnshaw  <rearnsha@arm.com>
1642
1643         PR target/11052
1644         * ifcvt.c (noce_process_if_block): Fail if the destination has
1645         side-effects.
1646
1647 2003-06-06  Jason Merrill  <jason@redhat.com>
1648
1649         * stmt.c (resolve_asm_operand_names): Rename from
1650         resolve_operand_names.  No longer static.  Avoid needless copying.
1651         Don't build array of constraints.
1652         (expand_asm_operands): Build it here.
1653         * tree.h: Declare resolve_asm_operand_names.
1654
1655         * stmt.c (expand_decl): Put artificial vars into registers even
1656         when not optimizing, and don't mark the regs as user vars.
1657
1658 2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
1659
1660         * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
1661         of the generated register.
1662
1663 2003-06-06  Daniel Jacobowitz  <drow@mvista.com>
1664
1665         * config.gcc: Add a missing sparc64 case.
1666
1667 2003-06-06  Jakub Jelinek  <jakub@redhat.com>
1668
1669         * mklibgcc.in: Propagate .note.GNU-stack section if needed into
1670         the .hidden assembly stubs.
1671
1672 2003-06-06  H.J. Lu <hongjiu.lu@intel.com>
1673
1674         * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
1675         and x86_64-*-*.
1676
1677         * config/i386/mmintrin.h: Update version and add alternate
1678         intrinsic names.
1679         * config/i386/xmmintrin.h: Likewise.
1680
1681         * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
1682         intrinsics to ...
1683         * config/i386/emmintrin.h: Here. New file.
1684
1685 2003-06-06  Roger Sayle  <roger@eyesopen.com>
1686
1687         * fold-const.c (fold <ABS_EXPR>):  Re-fold the result of folding
1688         fabs(-x) into fabs(x).  Use tree_expr_nonnegative_p to determine
1689         when the ABS_EXPR (fabs or abs) is not required.
1690         (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
1691         always nonnegative from fold to here.  Additionally, cabs and fabs
1692         are always non-negative, and pow and atan are non-negative if
1693         their first argument is non-negative.
1694
1695         * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
1696         Evaluate cabs of a constant at compile-time.  Convert cabs of a
1697         non-complex argument into fabs.  Convert cabs(z) into
1698         sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
1699         -funsafe-math-optimizations or -ffast-math.
1700         (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
1701         Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
1702
1703 Thu Jun  5 20:51:09 CEST 2003  Jan Hubicka  <jh@suse.cz>
1704
1705         * sourcebuild.texi (Front End Directory): Document new hooks.
1706
1707 Fri Jun  6 11:02:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
1708
1709         * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
1710         * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
1711         stack frames.
1712         (pro_epilogue_adjust_stack_rex64_2): New pattern
1713
1714 Fri Jun  6 11:03:14 CEST 2003  Jan Hubicka  <jh@suse.cz>
1715                                Pop Sebastian
1716                                Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1717
1718         * cfghooks.h, cfghooks.c: New files.
1719         * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
1720         (OBJS): Add cfghooks.o.
1721         (cfghooks.o): New rule.
1722         * basic-block.h (split_edge): Rename to rtl_split_edge.
1723         (verify_flow_info): Rename to rtl_verify_flow_info.
1724         (cfghooks.h): Included here.
1725         * cfgrtl.c (split_edge): Renamed rtl_split_edge.
1726         (verify_flow_info): Renamed rtl_verify_flow_info.
1727         * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
1728
1729         * basic-block.h (split_block, split_edge, flow_delete_block,
1730         redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
1731         (flow_delete_block_noexpunge):  Return void.
1732         * cfg.c (verify_flow_info): New function.
1733         * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
1734         try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
1735         Use delete_block.
1736         * cfglayout.c (function_footer): Rename to...
1737         (cfg_layout_function_footer): ... this variable
1738         (unlink_insn_chain): Make global.
1739         (fixup_reorder_chain, record_effective_endpoints): Update.
1740         (cleanup_unconditional_jumps): Use delete_block.
1741         (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
1742         (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
1743         (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
1744         * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block):  Delete.
1745         (cfg_layout_function_footer): Declare.
1746         * cfgloopmanip (split_loop_bb): Do not update RBI.
1747         (remove_bbs): Use delete_block.
1748         (loop_reidrect_edge, loop_delete_branch_edge): Use
1749         redirect_edge_and_branch.
1750         (create_preheader): Use split_block and redirect_edge_and_branch_force.
1751         (split_edge_with): Likewise.
1752         * cfgrtl.c: Include cfglayout.h
1753         (split_edge): Rename to ...
1754         (rtl_split_edge) ... this one; make local.
1755         (redirect_edge_and_branch): Rename to ...
1756         (rtl_redirect_edge_and_branch) ... this one; make local.
1757         (redirect_edge_and_branch_force): Rename to ...
1758         (rtl_redirect_edge_and_branch_force) ... this one; make local.
1759         (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
1760         (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
1761         cfglayout.c; update to directly call RTL counterparts.
1762         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
1763         * ifcvt.c (find_cond_trap): Use delete_block.
1764         (find_if_case_1): Use delete_block.
1765         (find_if_case_2): Use delete_block.
1766         * rtl.h (unlink_insn_chain): Declare.
1767         * toplev.c (rtl_reigster_cfg_hooks): New.
1768
1769 2003-06-05  Richard Henderson  <rth@redhat.com>
1770
1771         * recog.c (peephole2_optimize): Revert last change.
1772
1773 2003-06-05  Richard Henderson  <rth@redhat.com>
1774
1775         * recog.c (peephole2_optimize): Don't split block unless
1776         can_throw_internal.
1777
1778 2003-06-06  Kazu Hirata  <kazu@cs.umass.edu>
1779
1780         * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
1781         * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
1782
1783 2003-06-05  Kelley Cook  <kelleycook@wideopenwest.com>
1784
1785         PR optimization/4490
1786         * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
1787         * doc/invoke.texi (m96bit-long-double, m128bit-long-double):  Reword
1788         documentation to accurately reflect what these options do.
1789
1790 2003-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
1791
1792         * config/sh/linux.h (STARTFILE_SPEC): Handle -pie.  Simplify.
1793         (ENDFILE_SPEC): Redefine to handle -pie.
1794
1795 2003-06-05  Phil Edwards <phil@jaj.com>
1796
1797         * Makefile.in (qmtest-g++): Use target_alias, not target.
1798
1799 2003-06-05  Per Bothner  <pbothner@apple.com>
1800
1801         * toplev.c (push_srcloc):  Simplify behavior to save current location
1802         and set current location to parameters.
1803         (pop_srcloc):  Simplify semantics.
1804         (lang_dependent_init):  Remove now-useless initial push_srcloc.
1805
1806 2003-05-06  Richard Henderson  <rth@redhat.com>
1807
1808         * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
1809         language-specific tree codes.
1810
1811 2003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1812
1813         PR middle-end/9986
1814         * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
1815         BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
1816
1817 Thu Jun  5 18:32:46 CEST 2003  Jan Hubicka  <jh@suse.cz>
1818
1819         * install.tex: Document profiledbootstrap.
1820
1821         * configure.in:  Add support for lang.stageprofile and
1822         lang.stagefeedback
1823         * Makefile.in (clean, distclean): Kill new stages
1824         (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
1825         (STAGE2_FLAGS_TO_PASS): ... this one.
1826         (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
1827         (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
1828         (stageprofile_build, stageprofile_copy, stagefeedback_build,
1829         stagefeedback_copy): New.
1830         (restageprofile, restagefeedback, stageprofile-start,
1831         stageprofile, stagefeedback-start): Likewise.
1832
1833 2003-06-05  David Miller  <davem@redhat.com>
1834             Richard Henderson  <rth@redhat.com>
1835
1836         * optabs.c (HAVE_conditional_trap): Provide default.
1837         (gen_conditional_trap): Likewise.
1838         (init_optabs): Merge init_traps.
1839         (gen_cond_trap): Use prepare_operand.  Restructure and avoid ifdef.
1840
1841 Thu Jun  5 14:59:44 CEST 2003  Jan Hubicka  <jh@suse.cz>
1842
1843         * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
1844         is REG for nonzero_bits (REG) == 8.
1845
1846 Thu Jun  5 13:23:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
1847
1848         * i386.md (align): Fix warning; clarify what to do when no p2align
1849         is available.
1850
1851 2003-06-05  Nick Clifton  <nickc@redhat.com>
1852
1853         * config.gcc (m32r-elf): Revert previous delta.
1854         * config/m32r/t-m32r (crtinit.o): Fix rule to work with
1855         multilibs.  Remove m32rx specific version.
1856         (crtfini.o): Likewise.
1857         (EXTRA_MULTILIB_PARTS): Define.
1858
1859 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
1860
1861         * doc/md.texi (Machine Constraints): Correct the meaning of
1862         constraints related to floating-point registers on SPARC.
1863
1864 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
1865             Paolo Bonzini  <bonzini@gnu.org>
1866
1867         PR target/10663
1868         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
1869         assembler and linker output to /dev/null.
1870         Use a 'sed' construct instead of 'grep -A1'.
1871         * configure: Regenerate.
1872
1873 2003-06-04  Richard Henderson  <rth@redhat.com>
1874
1875         * config/i386/i386.c (struct ix86_address): Add seg.
1876         (no_seg_address_operand): New.
1877         (ix86_decompose_address): Restructure PLUS loop.  Accept one
1878         UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS.  Adjust ESP swap test
1879         to test for a regnum, not stack_pointer_rtx.
1880         (ix86_address_cost): Reduce cost if non-default segment.
1881         (legitimate_address_p): Remove UNSPEC_TP check.
1882         (get_thread_pointer): Add to_reg argument.  Don't represent
1883         the thread pointer as a memory load.
1884         (legitimize_tls_address): Split out of ...
1885         (legitimize_address): ... here.
1886         (print_operand_address): Handle parts.seg.
1887         (ix86_expand_move): Use legitimize_tls_address.
1888         (ix86_rtx_costs): Handle UNSPEC_TP.
1889         * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
1890         (TARGET_TLS_DIRECT_SEG_REFS): New.
1891         (TARGET_SWITCHES): Add tls-direct-seg-refs.
1892         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
1893         (PREDICATE_CODES): Add no_seg_address_operand.
1894         * config/i386/i386.md (lea_1): Use it.
1895         (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
1896         (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
1897         * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
1898         * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
1899         * doc/invoke.texi: Add -mtls-direct-seg-refs.
1900
1901 2003-06-04  Mark Mitchell  <mark@codesourcery.com>
1902
1903         * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
1904         (QMTEST_GPP_TESTS): Use "g++" by default.
1905         (stamp-qmtest): Tweak database creation.
1906         (QMTEST_DIR/context): Update context file format.
1907         (qmtest-g++): Tweak command-line.
1908
1909 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1910
1911         * Makefile.in (varasm.o): Don't set -Wno-error.
1912         * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
1913
1914 2003-06-04  Zack Weinberg  <zack@codesourcery.com>
1915
1916         PR bootstrap/3163
1917         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
1918         (gcc_AC_FUNC_MMAP_BLACKLIST): New.
1919         * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
1920         and AC_CHECK_FUNCS lists, respectively.  Use
1921         gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
1922         AC_FUNC_MMAP_FILE.
1923         * configure, config.in: Regenerate.
1924
1925 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1926
1927         * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
1928         * arm.c (arm_output_function_prologue): Fix format specifiers.
1929         * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
1930         * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
1931         HOST_WIDE_INT_PRINT_DEC.
1932         * vax.c (vax_output_function_prologue): Fix format specifiers.
1933
1934 2003-06-04  Richard Henderson  <rth@redhat.com>
1935
1936         * cse.c (find_best_addr): Consider binary operators even if second
1937         argument is not CONST_INT.
1938
1939 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1940
1941         * doc/invoke.texi (max-cse-path-length): Document.
1942
1943 2003-06-04  Richard Henderson  <rth@redhat.com>
1944
1945         * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
1946
1947 2003-06-04  Andrew Pinski <pinskia@physics.uc.edu>
1948
1949         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
1950         Remove semi-colon at the end of the expression.
1951
1952 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1953
1954         * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
1955         * i370.h (mvs_function_name_length): Likewise.
1956         * i960.h (CONSTANT_ALIGNMENT): Likewise.
1957         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1958         * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1959         * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1960         * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
1961         variable.
1962
1963 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
1964
1965         * config.gcc: Reorganize --with-cpu logic.  Set
1966         configure_default_options according to the default CPU, --with-cpu,
1967         --with-arch, --with-tune, --with-schedule, --with-abi, and
1968         --with-float.  Check for legal values of various options.
1969         * configure.in: Define configure_default_options in configargs.h.
1970         * configure: Regenerated.
1971         * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
1972         (TARGET_DEFAULT_FLOAT_P): New macros.
1973         * gcc.c (do_option_spec): New function.
1974         (struct default_spec, option_default_specs): New.
1975         (main): Call do_option_spec.
1976         * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
1977         config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
1978         config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
1979
1980         * doc/install.texi: Update --with-cpu documentation.  Mention
1981         --with-arch, --with-schedule, --with-tune, --with-abi, and
1982         --with-float.
1983         * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
1984
1985 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
1986
1987         * config.gcc: Only process --with-cpu logic in the third pass.
1988
1989 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
1990
1991         * config.gcc: Reorganize --with-cpu section.  Remove an
1992         obsolete comment about the default CPU for x86-64.  Fix
1993         a typo for the ep9312.  Update the list of supported PowerPC
1994         CPUs.  Support a limited set of new --with-cpu options
1995         for i386.
1996
1997 2003-06-04  Aldy Hernandez  <aldyh@redhat.com>
1998
1999         * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
2000         complex numbers <= 32 bits into two registers.
2001
2002 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2003
2004         * alpha.c (print_operand_address): Fix format specifier warnings.
2005         * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2006         * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2007         * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2008         * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
2009         * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
2010         ASM_OUTPUT_SKIP): Likewise.
2011         * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2012         * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2013         * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
2014         Likewise.
2015         * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2016         * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
2017         * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
2018         * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2019         * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
2020         * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2021         * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2022         * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2023         * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2024         * svr3.h (ASM_OUTPUT_COMMON): Likewise.
2025
2026 2003-06-04  J"orn Rennecke <joern.rennecke@superh.com>
2027
2028         * c-decl.c (c_init_decl_processing): Clear input_file_name
2029         while building common nodes.
2030         * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
2031         Don't add working directory for strings like <built-in> .
2032
2033 2003-06-04  David Edelsohn  <edelsohn@gnu.org>
2034
2035         * doc/install.texi (*-ibm-aix*): Native as and ld required
2036         to bootstrap on AIX 5L.
2037
2038 2003-06-04  Richard Henderson  <rth@redhat.com>
2039
2040         * c-common.c (handle_cleanup_attribute): New.
2041         (c_common_attributes): Add it.
2042         * c-decl.c (finish_decl): Honor the cleanup attribute.
2043         * doc/extend.texi (Variable Attributes): Document it.
2044
2045         * unwind-c.c: New file.
2046         * Makefile.in (LIB2ADDEH): Add it.
2047         * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
2048         config/ia64/t-ia64: Likewise.
2049
2050 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
2051
2052         * function.c (trampolines_created): New variable.
2053         (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
2054         * function.h (trampolines_created): Add.
2055         * config/s390/linux.h (ASM_FILE_END): Define.
2056         * config/alpha/linux-elf.h (ASM_FILE_END): Define.
2057         * config/m68k/linux.h (ASM_FILE_END): Define.
2058         * config/rs6000/linux.h (ASM_FILE_END): Define.
2059         * config/rs6000/linux64.h (ASM_FILE_END): Define.
2060         * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
2061         * config/sparc/linux.h (ASM_FILE_END): Define.
2062         * config/sparc/linux64.h (ASM_FILE_END): Define.
2063         * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
2064         * config/i386/linux.h (SUBTARGET_FILE_END): Define.
2065         * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
2066
2067 Wed Jun  4 18:39:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
2068
2069         * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
2070         (ix86_reorg): Use it.
2071         * i386.md (align): New insn pattern.
2072
2073 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2074
2075         * toplev.c (rest_of_type_compilation): Fix typo.
2076
2077 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
2078             Alan Modra  <amodra@bigpond.net.au>
2079
2080         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
2081         * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
2082         * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
2083         * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
2084         * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
2085         * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
2086         (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
2087         * config/rs6000/rs6000.c (output_profile_hook): Likewise.
2088
2089         * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
2090         Pass it to $gcc_cv_as.
2091         * configure: Rebuilt.
2092
2093         * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
2094         (print_operand): Allow TARGET_AIX to be non-constant.
2095         (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
2096         Define unconditionally.
2097         (rs6000_elf_declare_function_name): New function.
2098         * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
2099         non-constant.
2100         * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
2101         to 1.
2102         (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
2103         [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
2104         is defined.
2105         (TARGET_AIX): Define to 1 if TARGET_64BIT.
2106         (PROCESSOR_DEFAULT): Remove.
2107         (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
2108         INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
2109         [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
2110         (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
2111         -m32 and -m64.
2112         (MULTILIB_DEFAULTS): Define.
2113         (SUBSUBTARGET_EXTRA_SPECS): Define.
2114         (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
2115         (TARGET_TOC): Define only if !RS6000_BI_ARCH.
2116         (TARGET_NO_TOC): Remove.
2117         [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
2118         TARGET_PROTOTYPE): Define to 0.
2119         (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
2120         (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
2121         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
2122         if !TARGET_64BIT.
2123         (USER_LABEL_PREFIX): Remove.
2124         (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
2125         (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
2126         if TARGET_64BIT.
2127         (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
2128         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
2129         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
2130         (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
2131         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
2132         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
2133         TARGET_64BIT.
2134         (RS6000_CALL_GLUE): Likewise.
2135         (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
2136         RESTORE_FP_SUFFIX): Likewise.
2137         (ASM_DECLARE_FUNCTION_NAME): Remove.
2138         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
2139         DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
2140         name if TARGET_64BIT.
2141         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
2142         !TARGET_64BIT.
2143         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
2144         (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
2145         (DRAFT_V4_STRUCT_RET): Define.
2146         (SIGNAL_FRAMESIZE): New enum value.
2147         (MD_FALLBACK_FRAME_STATE_FOR): Define.
2148         * config/rs6000/default64.h: New file.
2149         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
2150         options.
2151         (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
2152         to RS6000_ABI_NAME.  Only disallow mixing of -fPIC with -mcall-aixdesc
2153         if !TARGET_64BIT.
2154         [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
2155         (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
2156         function.
2157         (TARGET_OS_SYSV_CPP_BUILTINS): Define.
2158         (TARGET_OS_CPP_BUILTINS): Use it.
2159         (CPP_SYSV_SPEC): Remove.
2160         (CPP_SPEC): Remove cpp_sysv.
2161         (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
2162         Add SUBSUBTARGET_EXTRA_SPECS.
2163         (SUBSUBTARGET_EXTRA_SPECS): Define.
2164         * config/rs6000/biarch64.h: New file.
2165         * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
2166         New prototype.
2167         * config/rs6000/x-linux64: New file.
2168         * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
2169         multilibs.
2170         * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
2171         * config/rs6000/eabi-cn.asm: Likewise.
2172         * config/rs6000/tramp.asm: Likewise.
2173         * config/rs6000/sol-ci.asm: Likewise.
2174         * config/rs6000/sol-cn.asm: Likewise.
2175         * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
2176         (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
2177         * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
2178         _CALL_AIXDESC section.
2179         * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
2180         defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
2181         or default32.
2182
2183 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
2184
2185         * config.gcc: Revert accidentally committed ARM changes.
2186
2187 2003-06-04  Roger Sayle  <roger@eyesopen.com>
2188
2189         * builtins.c (dconstpi, dconste): New mathematical constants.
2190         (init_builtin_dconsts): New function to initialize dconstpi
2191         and dconste.
2192         (fold_builtin): Optimize exp(1.0) = e.  Evaluate exp(x) at
2193         compile time with -ffast-math when x is an integer constant.
2194         Optimize tan(0.0) = 0.0.  Optimize atan(0.0) = 0.0,
2195         atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
2196
2197 2003-06-04  Roger Sayle  <roger@eyesopen.com>
2198
2199         * calls.c (expand_call): Avoid calling pure or const functions
2200         when the result is ignored (or void) and none of the arguments
2201         are volatile.  Move warning diagnostic earlier in function.
2202
2203 2003-06-04  Andreas Jaeger  <aj@suse.de>
2204
2205         * system.h: Do not poison TDESC_SECTION_ASM_OP,
2206         RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
2207
2208 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2209
2210         * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
2211         optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
2212         handle %ll, optimize regular character case.
2213
2214 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2215
2216         * Makefile.in (cse.o): Add params.h dependency.
2217         * cse.c: Include params.h.
2218         (PATHLENGTH): Removed.
2219         (struct cse_basic_block_data): Make path array dynamic.
2220         (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
2221         of PATHLENGTH.
2222         (cse_main, cse_basic_block): Allocate path array.
2223         * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
2224
2225 Wed Jun  4 09:49:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
2226
2227         * i386.c (ix86_reorg): Replace the jump instead of adding nop.
2228         * i386.md (UNSPEC_REP): New constant.
2229         (return_internal_long): New pattern.
2230
2231 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2232
2233         PR optimization/11018
2234         * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
2235         consistently to decide whether the scratch register is really
2236         required.
2237
2238 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2239
2240         PR optimization/10876
2241         * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
2242         new 'O' constraint for constant 4096.
2243         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
2244         * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
2245         Do not transform into MINUS insn for constant 4096.
2246         (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
2247         for constant 4096 as third operand.
2248         (addsi3 expander): Remove.
2249         (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
2250         new alternative for constant 4096 as third operand.
2251         (subdi3 expander): Do not transform into PLUS insn for constant 4096.
2252         (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
2253         operand.
2254         (subsi3 expander): Remove.
2255         (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
2256         constant 4096 as third operand.
2257         * doc/md.texi (Machine Constraints): Document new 'O' constraint for
2258         the SPARC port.
2259
2260 2003-06-03  Chris Demetriou  <cgd@broadcom.com>
2261
2262         * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
2263
2264 2003-06-04  Andreas Jaeger  <aj@suse.de>
2265
2266         * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
2267
2268         * config/i386/i386.c (ix86_expand_prologue): Do not use
2269         SUBTARGET_PROLOGUE.
2270
2271         * system.h: Poision SUBTARGET_PROLOGUE.
2272
2273         * config/arm/arm-protos.h: Remove unused rdate_section prototype.
2274
2275         * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
2276         dependend code.
2277
2278         * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
2279
2280         * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
2281         INSN_CACHE_LINE_WIDTH.
2282
2283         * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
2284         (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
2285         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
2286
2287         * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
2288         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
2289
2290         * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
2291         (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
2292         (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
2293         (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
2294         (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
2295         (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
2296
2297         * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
2298         DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
2299         DBX_WORKING_DIRECTORY.
2300
2301         * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
2302         DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
2303
2304         * config/frv/frv-protos.h: Remove unused const_section
2305         declaration.
2306         * config/vax/vax-protos.h: Likewise.
2307
2308         * output.h: Remove CONST_SECTION_ASM_OP usage.
2309
2310         * system.h: Poison CONST_SECTION_ASM_OP.
2311
2312         * crtstuff.c (__do_global_dtors_aux): Remove usage of
2313         CRT_GET_RFIB_TEXT.
2314         (frame_dummy): Likewise.
2315         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
2316         * system.h: Poison CRT_GET_RFIB_TEXT.
2317
2318         * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
2319
2320         * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
2321         (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
2322         (recognized_function): Likewise.
2323         (read_scan_file): Likewise.
2324
2325 2003-06-03  Roger Sayle  <roger@eyesopen.com>
2326
2327         * optabs.c (expand_binop): Optimize complex multiplication for
2328         the case of squaring a complex argument.
2329
2330 2003-06-03  Roger Sayle  <roger@eyesopen.com>
2331
2332         * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
2333         non-volatile operands of binary operations.
2334         (prepare_cmp_insn): Likewise.
2335
2336 2003-06-03  Roger Sayle  <roger@eyesopen.com>
2337
2338         * varasm.c (force_const_mem): Handle alignment of constants not
2339         representable as a type in the front-end language.
2340
2341 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
2342
2343         * flow.c (initialize_uninitialized_subregs): Use
2344         emit_move_insn instead of emitting a hardcoded move.
2345
2346 2003-06-03  Richard Henderson  <rth@redhat.com>
2347
2348         * optabs.c (expand_abs_nojump): Split out from ...
2349         (expand_abs): ... here.
2350         * optabs.h (expand_abs_nojump): Declare.
2351         * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
2352         * Makefile.in (ifcvt.o): Depend on optabs.h.
2353
2354 2003-06-03  Alan Modra  <amodra@bigpond.net.au>
2355
2356         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
2357
2358 2003-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
2359
2360         * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
2361         (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
2362         to yes.
2363         * configure.in: Allow default_use_cxa_atexit to determine the
2364         value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
2365         disabled.
2366         * configure: Regenerate.
2367
2368 2003-06-03  Douglas B Rupp  <rupp@gnat.com>
2369
2370         * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
2371         * doc/gcc.texi: Remove vms.texi section.
2372         * doc/vms.texi: Remove obsolete file.
2373
2374 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
2375
2376         * configure.in (inhibit_libc): Don't define when configuring
2377         with --with-newlib --with-headers.
2378         * configure: Regenerate.
2379
2380         * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
2381
2382 2003-06-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2383
2384         * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
2385         IRIX 6 without GNU ld.
2386         * configure: Regenerate.
2387
2388 2003-06-03  Roger Sayle  <roger@eyesopen.com>
2389
2390         * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
2391         of a complex number rather than invoke mov_optab directly.
2392
2393 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
2394
2395         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
2396         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
2397
2398 2003-06-03  Nathanael Nerode  <neroden@gcc.gnu.org>
2399
2400         * config/i386/x86-64.h: Remove two target-independent comments;
2401          replace "GNU CC" with "GCC".
2402
2403 2003-06-03  Anthony Green  <green@redhat.com>
2404
2405         * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
2406
2407 2003-06-03  Roger Sayle  <roger@eyesopen.com>
2408
2409         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
2410         New builtins representing ISO C99's cabs, cabsf and cabsl.
2411         * builtins.c (expand_builtin_fabs): New function.
2412         (expand_builtin_cabs): New function.
2413         (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
2414         using expand_builtin_fabs and expand_builtin_cabs respectively.
2415
2416         * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
2417
2418 2003-06-03  Aldy Hernandez  <aldyh@redhat.com>
2419
2420         * function.c (assign_parms): Split complex arguments.
2421
2422         * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
2423
2424         * expr.h (SPLIT_COMPLEX_ARGS): Define.
2425         (split_complex_types): Protoize.
2426         (split_complex_values): Protoize.
2427
2428         * calls.c (expand_call): Split complex arguments on architectures
2429         that require it.
2430         (split_complex_values): New.
2431         (split_complex_types): New.
2432
2433         * config/rs6000/rs6000.c (rs6000_libcall_value): New.
2434         (rs6000_function_value): Handle complex values on AIX.
2435         (rs6000_complex_function_value): New.
2436
2437         * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
2438
2439         * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
2440         (SPLIT_COMPLEX_ARGS): New.
2441
2442 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
2443
2444         * configure.in (HAVE_LD_PIE): Check for ld -pie.
2445         * config.in: Rebuilt.
2446         * configure: Rebuilt.
2447         * toplev.c (flag_pie, flag_shlib): New variables.
2448         (f_options): Add -fpie and -fPIE.
2449         (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
2450         Set flag_shlib if flag_pic and not -fpie/-fPIE.
2451         * flags.h (flag_pic, flag_shlib): Add.
2452         * varasm.c (default_binds_local_p): Use flag_shlib instead of
2453         flag_pic.
2454         * gcc.c (LINK_PIE_SPEC): Define.
2455         (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
2456         (option_map): Add --pie -> -pie mapping.
2457         * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
2458         and -fPIE the same way as -fPIC.
2459         * config/openbsd.h (ASM_SPEC): Likewise.
2460         * config/frv/frv.h (ASM_SPEC): Likewise.
2461         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
2462         * config/arm/semi.h (ASM_SPEC): Likewise.
2463         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
2464         * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
2465         * config/i386/beos-elf.h (CC1_SPEC): Likewise.
2466         * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
2467         * config/m68k/linux.h (CPP_SPEC): Likewise.
2468         * config/m68k/netbsd.h (ASM_SPEC): Likewise.
2469         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
2470         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
2471         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
2472         * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
2473         * config/pa/pa-linux.h (CPP_SPEC): Likewise.
2474         * config/netbsd-aout.h (ASM_SPEC): Likewise.
2475         * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
2476         * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
2477         * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
2478         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
2479         * config/sparc/sparc.h (ASM_SPEC): Likewise.
2480         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
2481         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
2482         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
2483         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
2484         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
2485         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
2486         Simplify.
2487         * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2488         * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2489         * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2490         * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2491         * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2492         * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2493         * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2494         * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
2495
2496 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
2497
2498         * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
2499         != 0 handling.  Pass 0 to store_by_pieces.
2500         (expand_builtin_mempcpy): Add endp argument.  Don't call
2501         expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
2502         directly.  If ignoring result, only do expand_call.
2503         (expand_builtin_stpcpy): Likewise.  Call expand_builtin_mempcpy
2504         otherwise.
2505         (expand_builtin_strncpy, expand_builtin_memset): Adjust
2506         store_by_pices callers.
2507         (expand_builtin): Adjust expand_builtin_memcpy and
2508         expand_builtin_mempcpy callers.
2509         * expr.c (can_move_by_pieces): New function.
2510         (move_by_pieces): Add endp argument, return to resp. memory at end
2511         or one byte earlier depending on endp.
2512         (store_by_pieces): Likewise.
2513         (emit_block_move): Adjust call to move_by_pieces.
2514         (emit_push_insn): Adjust move_by_pieces caller.
2515         * expr.h (can_move_by_pieces): New prototype.
2516         (store_by_pieces): Adjust prototypes.
2517         * rtl.h (move_by_pieces): Adjust prototype.
2518         * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
2519         caller.
2520
2521 2003-06-03  Ben Elliston  <bje@wasabisystems.com>
2522
2523         * doc/md.texi (Processor pipeline description): Improve wording.
2524
2525 2003-06-03  Neil Booth  <neil@daikokuya.co.uk>
2526
2527         * c-opts.c (c_common_handle_option): New, pulled out of
2528         c_common_decode_option.  Substitute uses of argv.
2529         (c_common_decode_option): Broken into two.
2530
2531 2003-06-02  Roger Sayle  <roger@eyesopen.com>
2532             Zack Weinberg  <zack@codesourcery.com>
2533
2534         * emit-rtl.c (gen_complex_constant_part):  Remove unnecessary
2535         test of TREE_CONSTANT_POOL_ADDRESS_P.
2536
2537 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2538
2539         * mips.c: Don't include output.h twice.
2540         * stormy16.c: Likewise.
2541         * xtensa.c: Likewise.
2542         * output.h: Protect against multiple inclusion.
2543
2544 2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
2545
2546         * sh.h (OLD_ARG_MODE): New macro.
2547         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
2548         (FUNCTION_ARG_1): Break out of:
2549         (FUNCTION_ARG).  Use OLD_ARG_MODE.
2550
2551 2003-06-02  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2552
2553         * gcc/config.gcc Add support multilib parts for m32rx processor.
2554
2555 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2556
2557         * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
2558         (mostlyclean): Delete c-options.c and c-options.h.
2559
2560 2003-06-02  Neil Booth  <neil@daikokuya.co.uk>
2561
2562         * c-opts.c (CL_REJECT_NEGATIVE): New.
2563         (c_common_decode_option): Update to use it.
2564         * c.opt: Update documentation; use RejectNegative.
2565         * opts.sh: Handle RejectNegative.
2566
2567 2003-06-01  Zack Weinberg  <zack@codesourcery.com>
2568
2569         * ggc-page.c (init_ggc): Give better diagnostics on failure to
2570         open /dev/zero.
2571         * toplev.c (crash_signal): Reset handling for received signal
2572         to SIG_DFL.
2573
2574 2003-06-02  Ben Elliston  <bje@wasabisystems.com>
2575
2576         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
2577         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
2578         (arm_use_dfa_pipeline_interface): Implement.
2579         * config/arm/arm.md (arm): New automaton.
2580         (write_buf): Remove function units; new cpu unit.
2581         (write_blockage): Remove function units; new cpu unit.
2582         (core): Remove function units; new cpu unit.
2583         (r_mem_f_wbuf): New instruction reservation.
2584         (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
2585         (store1_ldsched, store2, store3, store4): Likewise.
2586         (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
2587         (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
2588         (multi_cycle, single_cycle): Likewise.
2589         * config/arm/fpa.md (armfp): New automaton.
2590         (fpa): Remove function units; new cpu unit.
2591         (fpa_mem): Remove function unit; new cpu unit.
2592         (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
2593         (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
2594
2595 2003-06-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2596
2597         * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
2598         * c-format.c (enum format_type): Add asm_fprintf_format_type.
2599         (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
2600         asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
2601         (format_types_orig): Renamed from format_types.  Add new data.
2602         (format_types): Declare as pointer.
2603         (handle_format_attribute): Move later in file so we have all
2604         necessary declarations.  Add section to capture HOST_WIDE_INT.
2605         * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
2606         (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
2607
2608 2003-06-01  Andreas Jaeger  <aj@suse.de>
2609
2610         * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
2611         ROUND_TYPE_SIZE_UNIT.
2612
2613         * stor-layout.c (finalize_record_size): Remove usages of
2614         ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
2615         (finalize_type_size): Likewise.
2616         (layout_type): Likewise.
2617
2618         * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
2619
2620         * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
2621
2622         * config/d30v/d30v.h: Remove text copied from the manual.
2623
2624 2003-06-01  Roger Sayle  <roger@eyesopen.com>
2625             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2626             Geoffrey Keating  <geoffk@apple.com>
2627
2628         * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
2629         constants as condition code values.
2630
2631 2003-06-01  DJ Delorie  <dj@redhat.com>
2632
2633         * cppmacro.c (warn_of_redefinition): Handle cases where the two
2634         definitions have different numbers of tokens.
2635
2636 2003-06-01  Andreas Jaeger  <aj@suse.de>
2637
2638         * gen-protos.c (main): Readd unused attribute for argc.
2639
2640 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
2641
2642         * Makefile.in (c-options.c, c-options.h): Parallel make safe.
2643         * c.opt: End in blank line.
2644         * opts.sh: Take AWK from environment if available; use C locale.
2645
2646 2003-06-01  Andreas Schwab  <schwab@suse.de>
2647
2648         * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
2649
2650 2003-06-01  Andreas Jaeger  <aj@suse.de>
2651
2652         * gen-protos.c (main): Revert patch to check for argument.
2653
2654 2003-06-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
2655
2656         PR target/11044
2657         * config/i386/i386.md (length attribute): Set length to 4
2658         for instructions of type "fcmp".
2659
2660 2003-06-01  Andreas Jaeger  <aj@suse.de>
2661
2662         * toplev.c: Use ISO C90 prototypes.
2663
2664         * toplev.h: Use ISO C90 prototypes.
2665
2666         * genrecog.c: Use ISO C90 prototypes.
2667         (nodes_identical): Correct declaration to match prototype.
2668         (maybe_both_true): Likewise.
2669         (merge_trees): Likewise.
2670
2671         * genpeep.c (gen_peephole): Remove #if 0 code.
2672         Use ISO C90 prototypes.
2673
2674         * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
2675         Remove #if 0'ed function simplify_by_alternatives.
2676         (optimize_attrs): Remove #if 0'ed code.
2677         Remove ^L.
2678         Use ISO C90 prototypes.
2679         (make_canonical): Remove #if 0'ed code.
2680         (convert_const_symbol_ref): Remove #if 0'ed function.
2681
2682         * gen-protos.c (main): Check for argument.
2683
2684         * rtl.h: Use ISO C90 prototypes for functions from lists.c.
2685
2686         * params.h: Use ISO C90 prototypes.
2687         * params.c: Likewise.
2688         * intl.c: Likewise.
2689         * intl.h: Likewise.
2690         * lists.c: Likewise.
2691         * errors.c: Likewise.
2692         * errors.h: Likewise.
2693         * gencodes.c: Likewise.
2694         * genpreds.c: Likewise.
2695         * genattr.c: Likewise.
2696         * gen-protos.c: Likewise.
2697         * genflags.c: Likewise
2698         * genconditions.c: Likewise.
2699         * genautomata.c: Likewise.
2700         * gencheck.c: Likewise.
2701         * genconfig.c: Likewise.
2702         * genconstants.c: Likewise.
2703         * genemit.c: Likewise.
2704         * genextract.c: Likewise.
2705         * gengenrtl.c: Likewise.
2706         * gengtype.c: Likewise.
2707         * gengtype.h: Likewise.
2708         * genopinit.c: Likewise.
2709         * genoutput.c: Likewise.
2710         * gensupport.c: Likewise.
2711         * gensupport.h: Likewise.
2712
2713         * sdbout.h: Use ISO C90 prototypes.
2714
2715         * sdbout.c (CONTIN): Removed empty macro.
2716         (sdbout_one_type): Remove CONTIN usages.
2717         Remove ^Ls.
2718         (tag_of_ru_type): Remove #if 0'ed function.
2719         (sdbout_symbol): Remove #if 0'ed code.
2720         (sdbout_one_type): Remove a #if 1.
2721         (sdbout_one_type): Remove #if 0'ed code.
2722         (sdbout_init): Remove RMS_QUICK_HACK_1 code.
2723         Remove PARAMS, use ISO C90 prototypes for all functions.
2724
2725 2003-06-01  Josef Zlomek  <zlomekj@suse.cz>
2726
2727         * rtl.def (CONST_DOUBLE): Update comment.
2728
2729 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
2730
2731         * opts.sh: Remove path from sort.
2732
2733 2003-06-01  Aldy Hernandez  <aldyh@redhat.com>
2734
2735         PR/9680
2736         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
2737         TARGET_SPE for SPE_VECTOR_MODE.
2738
2739 2003-05-31  Aldy Hernandez  <aldyh@redhat.com>
2740
2741         * toplev.c (botch): Remove.
2742         (do_abort): Remove.
2743         (set_Wunused): Comment.
2744         (set_Wextra): Comment.
2745         Remove ^L's.
2746         (rest_of_compilation): Factor out common code into functions.
2747         (rest_of_handle_inlining): New.
2748         (rest_of_handle_ssa): New.
2749         (rest_of_handle_cse): New.
2750         (rest_of_handle_gcse): New.
2751         (rest_of_handle_loop_optimize): New.
2752         (rest_of_handle_jump_bypass): New.
2753         (rest_of_handle_sibling_calls): New.
2754         (rest_of_handle_null_pointer): New.
2755         (rest_of_handle_addresof): New.
2756         (rest_of_handle_flow): New.
2757         (rest_of_handle_branch_prob): New.
2758         (rest_of_handle_if_conversion): New.
2759         (rest_of_handle_tracer): New.
2760         (rest_of_handle_loop2): New.
2761         (rest_of_handle_cse2): New.
2762         (rest_of_handle_life): New.
2763         (rest_of_handle_combine): New.
2764         (rest_of_handle_if_after_combine): New.
2765         (rest_of_handle_regmove): New.
2766         (rest_of_handle_sched): New.
2767         (rest_of_handle_old_regalloc): New.
2768         (rest_of_handle_new_regalloc): New.
2769         (rest_of_handle_regrename): New.
2770         (rest_of_handle_reorder_blocks): New.
2771         (rest_of_handle_sched2): New.
2772         (rest_of_handle_new_regalloc): New.
2773         (rest_of_handle_old_regalloc): New.
2774         (rest_of_handle_regrename): New.
2775         (rest_of_handle_reorder_blocks): New.
2776         (rest_of_handle_stack_regs): New.
2777         (rest_of_handle_machine_reorg): New.
2778         (rest_of_handle_delay_slots): New.
2779         (rest_of_handle_final): New.
2780
2781         * toplev.h (botch): Remove prototype.
2782         (do_abort): Same.
2783
2784 2003-05-31  Neil Booth  <neil@daikokuya.co.uk>
2785
2786         * Makefile.in (c-opts.o, c-options.h): Update dependencies.
2787         * c-opts.c: Include c-options.h and c-options.c.
2788         (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
2789         Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
2790         (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
2791         OPT, opt_comp): Remove.
2792         (missing_arg, c_common_init_options, c_common_decode_option,
2793         write_langs): Update for macro redefinitions and enumeration
2794         name changes.
2795         * c.opt, opts.sh: New files.
2796         * doc/passes.texi: Update.
2797
2798 2003-05-31  Andreas Jaeger  <aj@suse.de>
2799
2800         * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
2801         usage.
2802
2803         * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
2804
2805         * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
2806
2807         * system.h: Poison ALLOCATE_TRAMPOLINE.
2808
2809         * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
2810         * system.h: Poison HANDLE_PRAGMA.
2811
2812 2003-05-31  Kazu Hirata  <kazu@cs.umass.edu>
2813
2814         * doc/invoke.texi: Update dump file names.
2815
2816 2003-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2817
2818         * c-format.c (format_length_info, format_char_info,
2819         format_flag_spec, format_flag_pair, format_kind_info):
2820         De-const-ify structure members.
2821
2822 2003-05-31  Roger Sayle  <roger@eyesopen.com>
2823
2824         * flags.h (flag_wrapv): New flag controlling overflow semantics.
2825         * toplev.c (flag_wrapv): Declare the variable with default false.
2826         (lang_independent_options): New option "-fwrapv" to set the above.
2827
2828         * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
2829         as x, when signed arithmetic overflow wraps around.
2830         (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
2831         * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
2832         overflow when flag_wrapv is true.
2833
2834         * doc/invoke.texi: Document new -fwrapv command line option.
2835         * doc/c-tree.texi: Mention that the overflow semantics of
2836         NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
2837         upon both flag_wrapv and flag_trapv.
2838
2839 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
2840
2841         * doc/install.texi (mips-sgi-irix5): Add missing
2842         HTML <hr> marker.
2843
2844 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
2845
2846         * doc/md.texi (Machine Constraints): Document
2847         missing SPARC constraints.
2848
2849 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
2850
2851         * doc/md.texi (Automaton pipeline description): Use
2852         "type" instead of "cpu" as the attribute in the examples.
2853
2854 2003-05-30  Stan Shebs  <shebs@apple.com>
2855
2856         * system.h: Poison OBJC_PROLOGUE.
2857
2858 2003-05-30  Roger Sayle  <roger@eyesopen.com>
2859
2860         * emit-rtl.c (gen_complex_constant_part): New function for getting
2861         the constant real or imaginary part of a complex constant.
2862         (gen_realpart): Use it.
2863         (gen_imagpart): Likewise.
2864
2865 2003-05-30  Kazu Hirata  <kazu@cs.umass.edu>
2866
2867         * doc/invoke.texi: Fix typos.
2868         * doc/rtl.texi: Likewise.
2869
2870 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
2871
2872         * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
2873         mode.
2874         * config/h8300/crtn.asm: Likewise.
2875         * config/h8300/lib1funcs.asm: Likewise.
2876         * config/h8300/h8300.c (asm_file_start): Likewise.
2877         * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
2878         h8300snelf emulations for normal mode.
2879         * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
2880         emulations for normal mode.
2881
2882 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
2883
2884         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
2885         true if TARGET_NORMAL_MODE.
2886
2887 2003-05-30  Roger Sayle  <roger@eyesopen.com>
2888
2889         * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
2890         making a substitution.
2891         (dead_libcall_p): If directly replacing a libcall with a
2892         constant value produces an invalid instruction, also try forcing
2893         the constant into the constant pool.
2894         * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
2895         obvious that the source is a constant.
2896         (compress_float_constant): Use set_unique_reg_note to place
2897         REG_EQUAL notes on instructions.
2898
2899 2003-05-30  Eric Christopher  <echristo@redhat.com>
2900
2901         * config/mips/mips.c (extern_list): Add GTY marker.
2902         (extern_head): Separate out definition. Add marker.
2903         (mips_output_external): Use ggc_alloc for extern_list
2904         allocation.
2905         (mips_output_external_libcall): Ditto.
2906
2907 2003-05-30  Florian Weimer  <fw@deneb.enyo.de>
2908
2909         * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
2910         later.
2911
2912 2003-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2913
2914         * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
2915         warnings.
2916         (PRINT_OPERAND): Likewise.
2917
2918 2003-05-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2919
2920         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
2921         -mdebug/-no-mdebug switches ...
2922         (MDEBUG_ASM_SPEC): ... here.
2923         Use only with gas.
2924         (EXTRA_SPECS): Initialize mdebug_asm_spec.
2925
2926 2003-05-29  Matt Kraai  <kraai@alumni.cmu.edu>
2927
2928         * gthr-gnat.c: Remove #undef UNUSED.
2929         (__gnat_default_lock, __gnat_default_unlock): Prototype.
2930         (__gnat_task_lock, __gnat_task_unlock): Make declarations
2931         prototypes.
2932         (__gnat_install_locks): Convert declaration to ISO C90, make
2933         parameter declarations prototypes, and remove blank line.
2934         * gthr-gnat.h (__gnat_install_locks): Make parameter
2935         declarations prototypes.
2936
2937 2003-05-29  Jason Merrill  <jason@redhat.com>
2938
2939         * Makefile.in (unstrap): Remove stage_last after make unstage1.
2940
2941 2003-05-29  Roger Sayle  <roger@eyesopen.com>
2942
2943         * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
2944
2945 2003-05-29  Roger Sayle  <roger@eyesopen.com>
2946             Kaveh Ghazi  <ghazi@caip.rutgers.edu>
2947
2948         PR bootstrap/10169
2949         * mips-tfile.c (main): Use getopt_long instead of getopt.
2950         Add new command line option --version to display version.
2951         Treat --verbose like -v to report a single line version.
2952         (options): New global variable for getopt_long.
2953         * mips-tdump.c (main): Use getopt_long instead of getopt.
2954         New command line options -v, --version and -verbose to display
2955         the program version number (to match mips-tfile's behavior).
2956         (options): New global variable for getopt_long.
2957
2958         * gcov.c (options): Zero-terminate getopt_long array.
2959         * gcov-dump.c (options): Likewise.
2960
2961         * Makefile.in (mips-tdump.o): Add dependency on version.h.
2962
2963 2003-05-29  Stan Shebs  <shebs@apple.com>
2964
2965         Remove OBJC_PROLOGUE everywhere.
2966         * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
2967         * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
2968         * config/d30v/d30v.h: Similarly.
2969         * config/ip2k/ip2k.h: Similarly.
2970         * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
2971
2972 2003-05-29  Roger Sayle  <roger@eyesopen.com>
2973
2974         * c-semantics.c (genrtl_do_stmt_1): New function split out from...
2975         (gen_rtl_do_stmt): ... here.  Call genrtl_do_stmt_1.
2976         (expand_unreachable_stmt): Expand unreachable while statements
2977         using genrtl_do_stmt_1.
2978
2979 2003-05-29  Richard Sandiford  <rsandifo@redhat.com>
2980
2981         * config/mips/mips-protos.h (mips_output_load_label): Declare.
2982         * config/mips/mips.c (mips_output_load_label): New function.
2983         (mips_output_conditional_branch): Use it.
2984         * config/mips/mips.md (jump): And here.
2985
2986 2003-05-28  Bob Wilson  <bob.wilson@acm.org>
2987
2988         * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
2989         (xtensa_split_operand_pair): New proto.
2990         * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
2991         (smalloffset_double_mem_p): Delete.
2992         (gen_float_relational, printx, print_operand, xtensa_va_arg):
2993         Fix whitespace.
2994         (xtensa_split_operand_pair): New.
2995         (xtensa_dbx_register_number): Fix formatting.
2996         * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
2997         * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
2998         instead of splitting them into single-word moves.  Remove unnecessary
2999         checks for reload_in_progress and reload_completed.
3000         (movdi_internal, movdf_internal): Change to post-reload split patterns.
3001         Add constraints to allow constant operands.
3002         (movsf_internal): Allow CONST_INT operands.
3003
3004 2003-05-27  Danny Smith   <dannysmith@users.sourceforge.net>
3005
3006         * config.gcc (i[34567]86-*-mingw32*): Add host makefile
3007         fragment i386/x-mingw32.
3008         * config/i386/x-mingw32: New file. Make local_includedir
3009         relative to EXEC_PREFIX.
3010
3011 2003-05-27  Aaron W. LaFramboise  <awlaframboise@aol.com>
3012
3013         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
3014         (MD_STARTFILE_PREFIX): Define.
3015
3016 2003-05-27  Denis Chertykov  <denisc@overta.ru>
3017
3018         * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
3019         VOIDmode.
3020         * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
3021         call of cselib_invalidate_regno.
3022
3023 2003-05-28  Daniel Jacobowitz  <drow@mvista.com>
3024
3025         * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
3026         -lthread to -lpthread.
3027
3028 2003-05-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
3029             Bruce Korb  <bkorb@gnu.org>
3030             Arno Klaassen  <arno@heho.snv.jussieu.fr>
3031
3032         * fixinc/inclhack.def: Add missing declaration of getpagesize()
3033         to unistd.h on Solaris 2.5.1.
3034         Fix prototype of recv() and send() in sys/socket.h on
3035         Solaris 2.5.1 and 2.6.
3036         * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
3037         * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
3038         * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
3039         * fixinc/fixincl.x: Regenerate.
3040
3041 2003-05-27  Jason Merrill  <jason@redhat.com>
3042
3043         * tree.c (expr_first, expr_length): New fns.
3044         * tree.h: Declare them.
3045
3046         * tree.c (iterative_hash_expr): Hash commutative expressions
3047         consistently.
3048
3049 2003-05-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3050
3051         * tree.h (contains_placeholder_p): Now returns bool.
3052         (CONTAINS_PLACEHOLDER_P): New macro.
3053         (type_contains_placeholder_p): New function.
3054         * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
3055         (contains_placeholder_p): Now returns bool.
3056         Rework to use CONTAINS_PLACEHOLDER_P macro.
3057         (type_contains_placeholder_p): New function.
3058         * fold-const.c (fold, case COMPONENT_REF): Don't fold if
3059         type_contains_placeholder_p.
3060         (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
3061         Use CONTAINS_PLACEHOLDER_P macro.
3062         * builtins.c (fold_builtin): Likewise.
3063         * calls.c (initialize_argument_information): Likewise.
3064         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3065         * explow.c (expr_size): Likewise.
3066         * expr.c (store_constructor, get_inner_reference): Likewise.
3067         * function.c (assign_parms): Likewise.
3068         * stor-layout.c (variable_size): Likewise.
3069
3070 2003-05-25  Gabriel Dos Reis <gdr@integrable-solutions.net>
3071
3072         * diagnostic.h (output_verbatim, verbatim):  Remove  printf
3073         attribute.
3074
3075 2003-05-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3076
3077         * doc/contrib.texi (Contributors): Update Kean Johnston.
3078
3079 2003-05-24  David Edelsohn  <edelsohn@gnu.org>
3080
3081         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
3082
3083 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
3084
3085         * config/rs6000/440.md, config/stormy16/stormy16protos.h,
3086         config/stormy16/stormy16.c, config/stormy16/stormy16.md:
3087         Replace "GNU CC" with "GCC".
3088
3089 2003-05-24  Matt Kraai  <kraai@alumni.cmu.edu>
3090
3091         * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
3092         intermediate computation.
3093
3094 2003-05-23  Eric Christopher  <echristo@redhat.com>
3095
3096         * config/mips/mips.md (clzsi, clzdi): New patterns.
3097
3098 2003-05-23  Geoffrey Keating  <geoffk@apple.com>
3099
3100         * gcc.c (default_compilers): Use -o to specify preprocessor's output
3101         file.  Make -no-integrated-cpp work when building PCH files.
3102         * objc/lang-specs.h: Likewise.
3103
3104 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
3105
3106         * fixinc/Makefile.in: Correct description.
3107         * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
3108         fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
3109         fixinc/genfixes: Replace "GNU CC" with "GCC".
3110
3111 2003-05-23  Roger Sayle  <roger@eyesopen.com>
3112
3113         * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
3114         builtin functions (and their __builtin_* variants).
3115         * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
3116         (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
3117         optimizing.
3118
3119         * doc/extend.texi: Document new tan and atan builtins, and
3120         their float and long double variants.
3121
3122 2003-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
3123
3124         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
3125         __sparcv9 in the TARGET_ARCH64 case.
3126
3127 Fri May 23 22:17:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
3128
3129         * i386.c (ix86_reorg): Calls are also jumps.
3130
3131 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
3132
3133         * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
3134         note containing an EXPR_LIST, process all the arguments.
3135
3136 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
3137                                Andreas Jaeger  <aj@suse.de>
3138
3139         * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
3140         do not use assertion.
3141
3142 2003-05-23  Mike Stump  <mrs@apple.com>
3143
3144         * tlink.c (scan_linker_output): Add support for darwin linker, as it
3145         emits unresolved symbols one per line, consuming the entire line.
3146
3147 2003-05-23  Larin Hennessy <larin@science.oregonstate.edu>
3148             Zack Weinberg <zack@codesourcery.com>
3149
3150         * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
3151         * config/m68k/m68k.c (m68k_output_function_prologue):
3152         Remove code under #if NEED_PROBE.
3153         * config/m68k/m68k.h: Don't define NEED_PROBE.
3154         * config/m68k/m68k.md: Remove "probe" insn.
3155         * doc/md.texi: Remove documentation of "probe" pattern.
3156
3157 2003-05-23  Dorit Naishlos  <gcchaifa@il.ibm.com>
3158
3159         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
3160
3161 2003-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
3162
3163         * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
3164         Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
3165
3166 2003-05-22  Roger Sayle  <roger@eyesopen.com>
3167
3168         * real.c (real_maxval): New function to return the largest finite
3169         value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
3170         * real.h (real_maxval): Prototype here.
3171         * fold-const.c (fold_inf_compare): Transform comparisons against
3172         +-Infinity into comparisons against DBL_MAX (or equivalent).
3173
3174 2003-05-22  Mike Stump  <mrs@apple.com>
3175
3176         * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
3177         default.
3178
3179 2003-05-22  DJ Delorie  <dj@redhat.com>
3180
3181         * calls.c (expand_call): If the arg block is going to grow
3182         downward, we need argblock to point to the top of the block,
3183         not the bottom.
3184
3185 2003-05-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3186
3187         * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
3188
3189         * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
3190         constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
3191
3192 2003-05-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3193
3194         * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
3195         * m68k.c: Likewise.
3196         * m68k.h: Likewise.
3197
3198 2003-05-22  Zack Weinberg  <zack@codesourcery.com>
3199
3200         PR other/2873
3201         * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
3202         expressions to prevent triggering on recent curses.h,
3203         linux/nls.h, or X11/Xlib.h.
3204         (stdio_va_list): Add _G_va_list to bypass pattern.
3205         (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
3206         * fixinc/fixincl.x: Regenerate.
3207
3208 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
3209
3210         * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
3211         switches when --target-help option is specified.
3212
3213 2003-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
3214
3215         PR bootstrap/10805
3216         * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
3217         failure with Sun assembler 5.0 Alpha 03/27/98.
3218
3219 2003-05-21  Loren James Rittle  <ljrittle@acm.org>
3220
3221         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
3222         to match system compiler convention.
3223
3224 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
3225
3226         * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
3227         value, not just if defined.
3228         Update copyright year.
3229
3230 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3231
3232         PR target/6428
3233         * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
3234         directories from LIB_SPEC to LINK_SPEC.  Emit warning if `-p' or `-pg'
3235         option is used without `-static'.
3236         * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
3237         * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
3238
3239 2003-05-21  Bob Wilson  <bob.wilson@acm.org>
3240
3241         * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
3242         TARGET_SERIALIZE_VOLATILE): Delete.
3243         (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
3244         (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
3245         (TARGET_SWITCHES): Remove "-mserialize-volatile" and
3246         "-mno-serialize-volatile".
3247         * config/xtensa/xtensa.c (print_operand): Remove checks of
3248         TARGET_SERIALIZE_VOLATILE.
3249         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
3250         * doc/invoke.texi (Option Summary, Xtensa Options): Remove
3251         "-mserialize-volatile" and "-mno-serialize-volatile" options.
3252
3253 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
3254
3255         * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
3256         (nested_function): Likewise.
3257         (notype_nested_function): Likewise.
3258
3259 2003-05-21  Nick Clifton  <nickc@redhat.com>
3260
3261         * config/stormy16/stormy-abi: Update overflow type for
3262         R_XSTORMY16_16 reloc.
3263
3264 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
3265
3266         * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
3267         * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
3268         (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
3269         * print-tree.c (print_node): Remove ambient-boundedness.
3270         * tree.h (tree_common): Remove bounded_flag.
3271         (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
3272         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
3273         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
3274         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
3275         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
3276         Remove.
3277         (TYPE_QUALS): Remove BOUNDED.
3278         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
3279         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
3280         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
3281         TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
3282         VA_LIST_POINTER_DEPTH): Remove.
3283         (struct tree_type): Remove pointer_depth.
3284
3285 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3286
3287         * c-pretty-print.c (pp_c_integer_literal): Use
3288         HOST_WIDE_INT_PRINT_DOUBLE_HEX.
3289
3290 2003-05-20  Roger Sayle  <roger@eyesopen.com>
3291             Kazu Hirata  <kazu@cs.umass.edu>
3292             Joern Rennecke  <joern.rennecke@superh.com>
3293
3294         * gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
3295         setcc and jump, if they exist.  If substituted instruction
3296         fails to validate, store current effort in a REG_EQUAL note.
3297         (cprop_insn): Don't attempt further substitutions if the
3298         current instruction has been deleted.
3299         (local_cprop_pass): Likewise.
3300
3301         * jump.c (redirect_jump):  Also update REG_EQUAL note, if
3302         one is attached to the jump instruction.
3303         (invert_jump): Delete REG_EQUAL note on jump, if one exists.
3304
3305 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
3306
3307         PR c++/9738
3308         * config/i386/winnt.c (i386_pe_encode_section_info): Enable
3309         even if not first.
3310
3311 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3312
3313         * genautomata.c (output_description, output_automaton_units,
3314         output_state_arcs): Add missing specifiers.
3315
3316 2003-05-20  Bob Wilson  <bob.wilson@acm.org>
3317
3318         * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
3319         (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
3320         (__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
3321         (nsau): Rename to do_nsau.  Provide alternate version for use when
3322         the NSAU instruction is available.
3323         (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
3324         (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
3325         * config/xtensa/xtensa-config.h: Update comments to match binutils.
3326         (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
3327         * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
3328         (TARGET_ABS, TARGET_ADDX): Define.
3329         (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
3330         (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
3331         * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
3332         *subx8): Set predicate condition to TARGET_ADDX.
3333         (abssi2): Set predicate condition to TARGET_ABS.
3334         * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
3335         "-maddx", and "-mno-addx" options.
3336         (Xtensa Options): Likewise.  Also tag some opcode names with @code.
3337
3338 2003-05-20  Kevin Ryde <user42@zip.com.au>
3339             Wolfgang Bangerth <bangerth@dealii.org>
3340
3341         PR/10355
3342         * doc/extend.texi: Put a warning into the documentation
3343         of attribute regparm.
3344
3345 2003-05-20  Jason Merrill  <jason@redhat.com>
3346
3347         * tree.c (expr_last): New fn.
3348         * tree.h: Declare it.
3349         * objc/objc-act (expr_last): Rename to objc_expr_last.
3350
3351 2003-05-20  J"orn Rennecke <joern.rennecke@superh.com>
3352
3353         * sh.c (sh_register_move_cost): Add clase for moving between
3354         FP registers and MAC registers.
3355
3356 2003-05-19  John David Anglin  <dave.anglin@nrc-gnrc.gc.ca>
3357
3358         * pa/milli64.S ($$mulI): Fix typo.
3359
3360 2003-05-19  Matt Kraai  <kraai@alumni.cmu.edu>
3361
3362         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
3363         (nonlocal_set_p): Remove initial blank line.
3364         * dwarf2out.c (simple_type_size_in_bits): Likewise.
3365         * et-forest.c (et_forest_create): Likewise.
3366         * explow.c (stabilize): Likewise.
3367         * fix-header.c (write_lbrac): Likewise.
3368         * graph.c (start_fct, node_data): Likewise.
3369         * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
3370         * rtlanal.c (global_reg_mentioned_p): Likewise.
3371         * tree.c (bit_position): Likewise.
3372
3373 2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
3374
3375         * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
3376         -lthread to -lpthread.
3377
3378 2003-05-19  Neil Booth  <neil@daikokuya.co.uk>
3379
3380         * c-opts.c (c_common_decode_option): Don't accept dollars
3381         as identifier characters in assembly.
3382         * doc/cpp.texi: Document this.
3383
3384 2003-05-19  Seth Arnold  <sarnold@wirex.com>
3385             Aldy Hernandez  <aldyh@redhat.com>
3386
3387         * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
3388         vrsave_size twice.
3389
3390 2003-05-19  Aldy Hernandez  <aldyh@redhat.com>
3391
3392         * doc/tm.texi (function_arg): Fix typo.
3393
3394 2003-05-19  Matt Austern  <austern@apple.com>
3395
3396         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
3397         * c-common.h (warn_invalid_offsetof): Declare.
3398         * c-common.c (warn_invalid_offsetof): Define.
3399         * doc/invoke.texi: Document -Winvalid-offsetof.
3400         * testsuite/g++.dg/other/offsetof3.C: New.
3401         * testsuite/g++.dg/other/offsetof4.C: New.
3402
3403 2003-05-19  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
3404             David Edelsohn  <edelsohn@gnu.org>
3405
3406         * config/rs6000/rs6000.c (rs6000_alignment_string,
3407         rs6000_alignment_flags): New variables.
3408         (rs6000_parse_alignment_option): New function.
3409         (rs6000_override_options): Call it.
3410         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
3411         (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
3412         macros.
3413         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
3414         natural alignment if TARGET_NATURAL_ALIGNMENT
3415         (ROUND_TYPE_ALIGN): Always use default record alignment if
3416         TAGET_NATURAL_ALIGNMENT.
3417         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
3418         (ROUND_TYPE_ALIGN): Same.
3419         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
3420         (ROUND_TYPE_ALIGN): Same.
3421         * doc/invoke.texi (Option Summary, PowerPC Options): Document
3422         new options.
3423
3424 2003-05-19  J"orn Rennecke <joern.rennecke@superh.com>
3425
3426         * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
3427         of a function using ASMSPEC, prepend a star.
3428
3429 2003-05-19  Jason Merrill  <jason@redhat.com>
3430
3431         * tree-inline.c (copy_body_r): Avoid generating &* during inline
3432         substitution.
3433
3434 2003-05-19  Andrew Macleod  <amacleod@redhat.com>
3435
3436         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
3437         not mark assignments to the hard frame pointer as being stack
3438         frame related.
3439         (xstormy16_expand_epilogue): Mark adjustments to the stack
3440         pointer as being stack frame related.
3441
3442 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
3443
3444         * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
3445         ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
3446         (PREDICATE_CODES): Add hilo_operand.
3447         * config/mips/mips.c (hilo_operand): New predicate.
3448         (mips_adjust_insn_length): Account for the number nops that might
3449         be needed to avoid hardware hazards.
3450         * config/mips/mips.md (dslot): Remove attribute.
3451         (hazard): New attribute.
3452         (can_delay): Use it.  Check for calls, branches & jumps.
3453         (muldi3): Use the standard dmult pattern for mips16 code.
3454         (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
3455
3456 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
3457
3458         * config/mips/mips-protos.h (final_prescan_insn,
3459         mips_count_memory_refs, mips_fill_delay_slot): Remove.
3460         * config/mips/mips.h (delay_type, dslots_load_total,
3461         dslots_load_filled, dslots_jump_total, dslots_jump_filled,
3462         dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
3463         mips_load_reg3, mips_load_reg4): Remove.
3464         (MASK_STATS): Remove.
3465         (MASK_EXPLICIT_RELOCS): Reuse its value.
3466         (TARGET_STATS): Remove.
3467         (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
3468         Warn that -mstats is now ignored.
3469         (FINAL_PRESCAN_INSN): Undefine.
3470         (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
3471         (ASM_OUTPUT_REG_POP): Likewise.
3472         * config/mips/mips.c (dslots_load_total, dslots_load_filled,
3473         dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
3474         mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
3475         mips_fill_delay_slot, mips_count_memory_refs,
3476         final_prescan_insn): Remove.
3477         (output_block_move): Remove calls to mips_count_memory_refs.
3478         (print_operand): Remove printing of #nop for TARGET_STATS.
3479         (mips_output_function_epilogue): Remove TARGET_STATS code.
3480         Reorganize setting of fnnmae.
3481         * config/mips/mips.md: Remove handling of dslot statistics
3482         throughout file.  Change all fcmp patterns into normal asm
3483         templates, removing calls to mips_fill_delay_slot.
3484         * doc/invoke.texi: Remove documentation of -mstats.
3485
3486 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
3487
3488         * config/mips/mips.c (mips_class_max_nregs): Return the number of
3489         words in the mode.
3490
3491 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
3492
3493         * config/mips/mips.c (override_options): Disable explicit
3494         relocs for old ABIs unless using gas.
3495
3496 2003-05-18  Eric Christopher  <echristo@redhat.com>
3497
3498         * config/mips/mips.h: Remove definition of g_switch_value.
3499
3500 2003-05-18  Matt Kraai  <kraai@alumni.cmu.edu>
3501
3502         * flags.h (g_switch_value): Change to an unsigned
3503         HOST_WIDE_INT.
3504         * toplev.c (g_switch_value): Likewise.
3505
3506         * config/alpha/alpha.c (small_symbolic_operand): Remove
3507         g_switch_value cast.
3508         (alpha_in_small_data_p): Cast size to an unsigned
3509         HOST_WIDE_INT.
3510
3511         * config/frv/frv.c (frv_in_small_data_p): Cast size to an
3512         unsigned HOST_WIDE_INT.
3513         * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
3514         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
3515
3516         * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
3517         unsigned HOST_WIDE_INT.
3518         (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
3519         * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
3520         (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
3521
3522         * config/rs6000/rs6000.c (rs6000_file_start): Use
3523         HOST_WIDE_INT_PRINT_UNSIGNED.
3524         (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
3525         (rs6000_elf_in_small_data_p): Cast size to unsigned
3526         HOST_WIDE_INT.
3527         * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
3528         Remove.
3529         (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
3530         g_switch_set.
3531         (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
3532         g_switch_value cast.
3533
3534 2003-05-18  Roger Sayle  <roger@eyesopen.com>
3535             Zack Weinberg  <zack@codesourcery.com>
3536
3537         PR middle-end/10472
3538         * builtins.c (expand_builtin_memcpy):  Call force_operand on
3539         expressions and use simplify_gen_binary to create the addition.
3540
3541 2003-05-18  Andreas Schwab  <schwab@suse.de>
3542
3543         * config/m68k/m68k.md: Use define_constants for unspec numbers.
3544
3545 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
3546
3547         * config/sparc/sparc.h: Define sparc for now.
3548 2003-05-18  Nathanael Nerode  <neroden@gcc.gnu.org>
3549
3550         * config.gcc: Clear xm_file, md_file at the beginning of each pass.
3551
3552         * config/stormy16/stormy16.h: Remove about 3000 lines of
3553         target-independent comments.  Update copyright notice.
3554
3555         * doc/collect2.texi: GNU CC -> GCC.
3556         * doc/headerdirs.texi: GNU CC -> GCC.
3557
3558 2003-05-18  Gabriel Dos Reis <gdr@integrable-solutions.net>
3559
3560         * hashtable.h (struct ht_identifier): Add data member "hash_value".
3561         * hashtable.c (ht_lookup): Use it when searching, remember.
3562         (ht_expand): Do not recompute.
3563         * tree.h (IDENTIFIER_HASH_VALUE): New macro.
3564
3565 2003-05-18  Nathan Sidwell  <nathan@codesourcery.com>
3566
3567         * gcov-io.c (gcov_read_bytes): Fix fread thinko.
3568
3569 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
3570
3571         * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
3572         Default here.
3573         (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
3574         * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
3575         * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
3576         * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
3577         config/arm/linux-elf.h, config/arm/rtems-elf.h,
3578         config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
3579         config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
3580         config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
3581         config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
3582         config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
3583         config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
3584         config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
3585         config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
3586         config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
3587         config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
3588         config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
3589         Don't define __ELF__.
3590         * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
3591         Define __ELF__.
3592         * doc/cpp.texi: Document __ELF__.
3593         * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS.     *
3594
3595 2003-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3596
3597         * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
3598         always use stdarg.
3599         * c-errors.c (pedwarn_c99): Likewise.
3600         * c-format.c (status_warning): Likewise.
3601         * c-semantics.c (build_stmt): Likewise.
3602         * calls.c (emit_library_call, emit_library_call_value): Likewise.
3603         * collect2.c (notice, fatal_perror, fatal, error): Likewise.
3604         * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
3605         * diagnostic.c (build_message_string, output_printf,
3606         output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
3607         fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
3608         error_with_decl, fnotice): Likewise.
3609         * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
3610         dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
3611         dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
3612         dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
3613         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
3614         dw2_asm_output_encoded_addr_rtx): Likewise.
3615         * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
3616         * errors.c (warning, error, fatal, internal_error): Likewise.
3617         * final.c (output_operand_lossage, asm_fprintf): Likewise.
3618         * fix-header.c (fatal): Likewise.
3619         * gcc.c (fatal, error, notice): Likewise.
3620         * gcov.c (fnotice): Likewise.
3621         * genattrtab.c (attr_rtx, attr_printf): Likewise.
3622         * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
3623         * gensupport.c (message_with_line): Likewise.
3624         * mips-tfile.c (fatal, error): Likewise.
3625         * protoize.c (notice): Likewise.
3626         * ra-debug.c (ra_debug_msg): Likewise.
3627         * read-rtl.c (fatal_with_file_and_line): Likewise.
3628         * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
3629         * tree.c (build, build_nt, build_function_type_list): Likewise.
3630
3631 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
3632
3633         * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
3634         * gcc.c (cpp_predefines): Remove.
3635         (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
3636         (static_specs): Remove predefines.
3637         * system.h: Poison CPP_PREDEFINES.
3638         * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
3639         config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
3640
3641 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
3642
3643         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
3644         config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
3645         config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
3646         use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
3647
3648 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
3649
3650         PR c/9209
3651         * c-common.c, c-common.h (dollars_in_ident): Remove.
3652         * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
3653         (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
3654         * cpphash.h (warned_dollar): Rename warn_dollars.
3655         * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
3656         Permit dollars regardless of -std=.
3657         (post_options): Set warn_dollars.
3658         * cpplex.c (forms_identifier_p): Use warn_dollars.
3659         * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
3660         Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
3661         * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
3662         Update documentation.
3663
3664 2003-05-17  Andreas Schwab  <schwab@suse.de>
3665
3666         * config/m68k/m68k.c (m68k_output_function_prologue): Use
3667         HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
3668         formatting a HOST_WIDE_INT.
3669         (m68k_output_function_epilogue): Likewise.
3670
3671 2003-05-17  Zack Weinberg  <zack@codesourcery.com>
3672
3673         * doc/install.texi: Remove information about desupported targets.
3674
3675 2003-05-17  Andreas Schwab  <schwab@suse.de>
3676
3677         * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
3678         * config/m68k/linux.h: Likewise.
3679         * config/m68k/m68k-none.h: Likewise.
3680         * config/m68k/netbsd-elf.h: Likewise.
3681         * config/m68k/sgs.h: Likewise.
3682         * config/m68k/m68k.h: Likewise.
3683         * config/m68k/m68k.md: Likewise.
3684         * config/m68k/m68k.c: Likewise.
3685         * doc/md.texi (Machine Constraints): Remove Sun FPA specific
3686         constraints.
3687         * doc/invoke.texi (Option Summary): Remove -mfpa.
3688         (M680x0 Options): Likewise.
3689
3690 2003-05-17  David Edelsohn  <edelsohn@gnu.org>
3691
3692         * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
3693
3694 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
3695
3696         * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
3697         * config/sparc/liteelf.h, config/sparc/openbsd64.h,
3698         config/sparc/rtemself.h, config/sparc/sol2-64.h,
3699         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
3700         Update for use of TARGET_SUB_OS_CPP_BUILTINS.
3701
3702 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
3703
3704         * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
3705         TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
3706
3707 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
3708
3709         * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
3710         * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
3711         sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
3712         sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
3713         sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
3714         sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
3715         sparc/sysv4.h,
3716         * sparc/sysv4-only.h: New.
3717
3718 2003-05-17  Alan Modra  <amodra@bigpond.net.au>
3719
3720         * function.c (assign_parms): Check for zero size args.
3721
3722 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3723
3724         * cfgloopanal.c (test_for_iteration): Use string concatentation on
3725         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
3726         function calls into one.
3727         * dbxout.c (dbxout_symbol): Likewise.
3728         * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
3729         * dwarf2asm.c (dw2_asm_output_data_uleb128,
3730         dw2_asm_output_data_sleb128): Likewise.
3731         * genrecog.c (debug_decision_2): Likewise.
3732         * loop.c (emit_prefetch_instructions): Likewise.
3733         * print-rtl.c (print_rtx): Likewise.
3734         * print-tree.c (print_node_brief, print_node): Likewise.
3735         * ra-debug.c (dump_igraph, dump_graph_cost,
3736         dump_static_insn_cost): Likewise.
3737         * ra-rewrite.c (dump_cost): Likewise.
3738         * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
3739         * sreal.c (dump_sreal): Likewise.
3740         * unroll.c (unroll_loop, precondition_loop_p): Likewise.
3741         * varasm.c (assemble_vtable_entry): Likewise.
3742
3743         * avr.c (avr_output_function_prologue,
3744         avr_output_function_epilogue, print_operand): Fix format specifier
3745         warnings.
3746         (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
3747         * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
3748
3749 2003-05-16  Geoffrey Keating  <geoffk@apple.com>
3750
3751         * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
3752         and ! TARGET_STRING cases.
3753
3754         * doc/cppopts.texi (-undef): Fix texinfo warning.
3755
3756         * doc/cppopts.texi (-H): Document that -H works for PCH files too.
3757         * cppfiles.c (validate_pch): When -H is used, print some information
3758         about PCH files found.
3759
3760 2003-05-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3761
3762         * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
3763         * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
3764         * config/mips/t-sr71k: Likewise.
3765
3766 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3767
3768         * arc.c (arc_output_function_prologue,
3769         arc_output_function_epilogue): Fix format specifier warnings.
3770         * arc.h (LARGE_INT): Fix signed/unsigned warnings.
3771
3772         * v850.c (print_operand): Fix format specifier warnings.
3773
3774         * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
3775         specifier warnings.
3776
3777         * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
3778         format specifier warnings.
3779
3780         * ip2k.c (function_prologue, function_epilogue, print_operand):
3781         Fix format specifier warnings.
3782         * ip2k.md: Likewise.
3783
3784         * i960.c (i960_output_function_prologue, i960_print_operand,
3785         i960_print_operand_addr): Fix format specifier warnings.
3786
3787         * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
3788         (i370_output_function_prologue): Fix format specifier warnings.
3789         * i370.h (PRINT_OPERAND): Likewise.
3790
3791         * fr30.c (fr30_print_operand): Fix format specifier warnings.
3792
3793         * dsp16xx.c (print_operand_address): Fix format specifier warning.
3794         * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
3795
3796         * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
3797         specifier warnings.
3798
3799         * alpha.c (print_operand_address, alpha_start_function,
3800         unicosmk_output_ssib): Use string concatentation on
3801         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
3802         function calls into one.
3803         * arm.c (arm_print_operand): Likewise.
3804         * cris.c (cris_asm_output_mi_thunk): Likewise.
3805         * frv.c (frv_asm_output_mi_thunk): Likewise.
3806         * ia64.c (ia64_print_operand, process_set): Likewise.
3807         * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
3808         Likewise.
3809         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
3810         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
3811         * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
3812         * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
3813         * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
3814         * s390.c (s390_assemble_integer): Likewise.
3815         * sparc.c (sparc_flat_function_prologue,
3816         sparc_flat_function_epilogue): Likewise.
3817         * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
3818         * vax.c (vax_output_mi_thunk): Likewise.
3819
3820         * frv.c (frv_print_operand_memory_reference): Fix format specifier
3821         warning.
3822         (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
3823
3824         * m68k.c (m68k_output_function_epilogue): Fix format specifier
3825         warnings.
3826
3827         * stormy16-protos.h (xs_hi_general_operand,
3828         xs_hi_nonmemory_operand): Prototype.
3829         * stormy16.c (xstormy16_output_shift): Fix format specifier
3830         warnings.
3831
3832         * cris.c: Fix format specifier warnings.
3833
3834 2003-05-16  Nick Clifton  <nickc@redhat.com>
3835
3836         * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
3837
3838 2003-05-16  Wolfgang Bangerth <bangerth@dealii.org>
3839
3840         * doc/bugreport.texi: Remove most of the of the preface of the
3841         bugs section.
3842
3843 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
3844
3845         * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
3846         .save XX, r0.
3847
3848 2003-05-15  Roger Sayle  <roger@eyesopen.com>
3849
3850         * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
3851
3852 2003-05-15  Eric Christopher  <echristo@redhat.com>
3853
3854         * cfgcleanup.c (merge_blocks): Fix return value.
3855
3856 2003-05-15 Eric Christopher <echristo@redhat.com>
3857
3858         * combine.c (expand_compound_operation): Make sure
3859         that zero_extend operation is profitable.
3860
3861 2003-05-15  Richard Henderson  <rth@redhat.com>
3862
3863         * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
3864         code protected by USE_GNULIBC_1.
3865
3866 2003-05-15  Zack Weinberg  <zack@codesourcery.com>
3867
3868         * config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
3869         remove hppa*-*-mpeix* which could not be built, and prune
3870         files from tmake_file= or tm_file= lists that don't exist.
3871
3872         * config/alpha/alpha-interix.h, config/alpha/alpha32.h
3873         * config/alpha/t-interix, config/arm/conix-elf.h
3874         * config/arm/t-arm-aout, config/arm/t-strongarm-coff
3875         * config/arm/unknown-elf-oabi.h, config/i386/win32.h
3876         * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
3877         * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
3878         * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
3879         * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
3880         * config/m68k/m68k-psos.h, config/m68k/mot3300.h
3881         * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
3882         * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
3883         * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
3884         * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
3885         * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
3886         * config/m68k/tower-as.h, config/m68k/tower.h
3887         * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
3888         * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
3889         * config/m88k/m88k-protos.h, config/m88k/m88k.c
3890         * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
3891         * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
3892         * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
3893         * config/mips/rtems64.h, config/mips/sni-gas.h
3894         * config/mips/sni-svr4.h, config/mips/t-ecoff
3895         * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
3896         * config/mn10200/mn10200.c, config/mn10200/mn10200.h
3897         * config/mn10200/mn10200.md, config/mn10200/t-mn10200
3898         * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
3899         * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
3900         * config/romp/romp-protos.h, config/romp/romp.c
3901         * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
3902         * config/rs6000/aix3newas.h, config/rs6000/mach.h
3903         * config/sparc/bsd.h, config/sparc/hal.h
3904         * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
3905         * config/sparc/lynx.h, config/sparc/netbsd.h
3906         * config/sparc/sp86x-aout.h, config/sparc/splet.h
3907         * config/sparc/sun4gas.h, config/sparc/sun4o3.h
3908         * config/sparc/sunos4.h, config/sparc/t-chorus-elf
3909         * config/sparc/t-halos, config/sparc/t-sparcbare
3910         * config/sparc/t-splet, config/sparc/t-sunos41
3911         * config/v850/rtems.h: Delete file.
3912
3913 2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
3914
3915         * config/rs6000/rs6000-protos.h (function_value): Protoize.
3916
3917         * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
3918
3919         * config/rs6000/rs6000.c (rs6000_function_value): New.
3920
3921 2003-05-15  Philip Blundell  <philb@gnu.org>
3922
3923         * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
3924         All uses updated.
3925         (arm_tune_xscale): New variable.
3926         (arm_override_options): Set it.
3927         (arm_adjust_cost): Use it in place of arm_arch_xscale.
3928         (arm_gen_load_multiple): Likewise.
3929         (arm_gen_store_multiple): Likewise.
3930         * config/arm/arm.md (is_xscale): Likewise.
3931         * config/arm/arm.h (arm_tune_xscale): Declare.
3932
3933 2003-05-15  Philip Blundell  <philb@gnu.org>
3934
3935         PR target/10730
3936         * config/arm/arm.c (adjacent_mem_locations): Reject offsets
3937         involving invalid constants.
3938
3939 2003-05-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3940
3941         * pa.c (hppa_expand_prologue): Remove blockage.
3942
3943 2003-05-15  Wolfgang Bangerth <bangerth@dealii.org>
3944
3945         * doc/bugreport.texi: Remove most of the bug reporting
3946         instructions and merge them into bugs.html.
3947
3948 2003-05-14  Matt Kraai  <kraai@alumni.cmu.edu>
3949
3950         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
3951         g_switch_value to unsigned HOST_WIDE_INT.
3952
3953 2003-05-14  Eric Christopher  <echristo@redhat.com>
3954
3955         * combine.c: Fix header comments.
3956         (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
3957         to all calls and prototype.
3958
3959 2003-05-14  Roger Sayle  <roger@eyesopen.com>
3960
3961         PR optimization/10764
3962         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
3963         Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
3964         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
3965         add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
3966         (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
3967         the corresponding *fyl2x_?fxf3 instructions.
3968
3969 2003-05-14  Bob Wilson  <bob.wilson@acm.org>
3970
3971         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
3972         * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
3973         XCHAL_HAVE_L32R): New.
3974         * config/xtensa/xtensa-protos.h (non_const_move_operand,
3975         xtensa_load_constant, xtensa_function_prologue,
3976         xtensa_function_epilogue): Delete prototypes.
3977         (xtensa_expand_prologue): New.
3978         * config/xtensa/xtensa.c (frame_size_const,
3979         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
3980         non_const_move_operand, xtensa_load_constant, xtensa_reorg,
3981         xtensa_function_prologue): Delete.
3982         (add_operand, xtensa_mem_offset): Formatting.
3983         (move_operand): If the const16 option is available, allow any SFmode
3984         and SImode constants.
3985         (xtensa_emit_move_sequence): Inline the former contents of
3986         xtensa_load_constant with modifications to handle the const16 option.
3987         (override_options): Add xtensa_char_to_class['W'] and set it to
3988         the general register class only if the const16 option is enabled.
3989         Fix formatting.  Disallow PIC when using the const16 option.
3990         (print_operand): Reorganize to switch on "letter" instead of the
3991         RTL code.  Add output_operand_lossage calls for invalid cases.
3992         Add support for 't' and 'b' letters.
3993         (xtensa_expand_prologue): New function to replace
3994         xtensa_function_prologue and xtensa_reorg.
3995         (xtensa_function_epilogue): Declare this as static.  Delete code
3996         to print the retw.n or retw instruction.
3997         (xtensa_return_addr): Use A0_REG instead of 0.
3998         (xtensa_rtx_costs): Add costs for using the const16 option.
3999         * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
4000         (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
4001         (TARGET_SWITCHES): Add "const16" and "no-const16".
4002         (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
4003         (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
4004         using the const16 option.
4005         (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
4006         (TRAMPOLINE_SIZE): Change from 49 to 59.
4007         (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
4008         (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
4009         when using the const16 option.
4010         (PREDICATE_CODES): Delete non_const_move_operand.
4011         * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
4012         UNSPECV_ENTRY.
4013         (movdi, movdf): If the source is a constant, always expand to a
4014         sequence of movsi insns.
4015         (movdi_internal, movdf_internal): Remove alternative using l32r insns.
4016         (movsi_internal, movsf_internal): Add alternative using const16 insns.
4017         (movsf): Add const16 support.
4018         (entry, prologue, epilogue): New.
4019         (set_frame_ptr): Add missing mode for unspec_volatile operation.
4020         Likewise for subsequent split pattern.
4021         * doc/invoke.texi (Option Summary, Xtensa Options): Document new
4022         "-mconst16" and "-mno-const16" options.
4023
4024 2003-05-14  Richard Henderson  <rth@redhat.com>
4025
4026         * config/ia64/ia64.c (ia64_expand_load_address): Force destination
4027         to be DImode register.  Merge load_symptr.
4028         * config/ia64/ia64.md (load_symptr): Remove.
4029
4030 2003-05-14  Richard Henderson  <rth@redhat.com>
4031
4032         * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
4033         DEFERRED_CONSTANT_P.
4034         * integrate.c (copy_rtx_and_substitute): Update use.
4035         * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
4036         to the copy generated.
4037         (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
4038         of the constant to see if we should emit.
4039         (mark_constant): Similarly.
4040         (output_constant_def_contents): Set TREE_ASM_WRITTEN.
4041
4042 2003-05-14  David Edelsohn  <edelsohn@gnu.org>
4043
4044         * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
4045         move record condition.
4046         (movdi_internal2): Same.
4047
4048 2003-05-14  Nathan Sidwell  <nathan@codesourcery.com>
4049
4050         * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
4051         (GCOV_TAG_*) Force type to gcov_unsigned_t.
4052         (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
4053         (struct gcov_var): Remove modified. Add start, length, offset,
4054         overread. Have buffer array for libgcov.
4055         (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
4056         (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
4057         * gcov-io.c (gcov_open): Set mode, do not read anything.
4058         (gcov_close): Write final block.
4059          (gcov_write_block, gcov_allocate): New.
4060         (gcov_write_bytes): Make static. Write or allocate buffer.
4061         (gcov_write_unsigned, gcov_write_counter): Buffer can never be
4062         null.
4063         (gcov_write_string): Adjust.
4064         (gcov_write_tag)
4065         (gcov_write_length): Adjust. Flush the block.
4066         (gcov_write_tag_length): Buffer can never be null.
4067         (gcov_read_bytes): Make static. Read in block.
4068         (gcov_sync): Moved here. Adjust.
4069         (gcov_seek): Moved here. Adjust.
4070         * coverage.c (read_counts_file): Adjust.
4071         * gcov-dump.c (print_prefix): Add position parameter.
4072         (flag_dump_positions): New flag.
4073         (options, main, print_usage): Add it.
4074         (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
4075         tag_summary): Adjust.
4076         * gcov.c (read_graph_file, read_count_file): Adjust.
4077         * libgcov.c (gcov_exit): Adjust.
4078
4079         * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
4080         (libgcov.a): Depend on libgcc.a.
4081         (gcov.o, gcov-dump.o): Add gcov-io.c.
4082         * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
4083
4084         * loop.c (check_dbra_loop): Factor common test.
4085
4086 2003-05-14  Ben Elliston  <bje@wasabisystems.com>
4087
4088         * doc/md.texi (Automaton pipeline description): Grammar fixes.
4089
4090 2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
4091
4092         * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
4093         (TARGET_INITIALIZER): Include it.
4094         * target.h (struct gcc_target): Add machine_dependent_reorg field.
4095         * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
4096         * system.h: Poison MACHINE_DEPENDENT_REORG.
4097
4098         * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
4099         * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
4100         * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4101         (alpha_handle_trap_shadows): Remove "first insn" parameter.
4102         (alpha_align_insns): Likewise.
4103         (alpha_reorg): Likewise.  Make static.  Update calls to above
4104         functions.
4105
4106         * config/arm/arm-protos.h (arm_reorg): Remove declaration.
4107         * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
4108         * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4109         (arm_reorg): Remove parameter.  Make static.
4110
4111         * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
4112         * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
4113         * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4114         (avr_reorg): Renamed from machine_dependent_reorg.  Make static.
4115         Remove parameter.
4116
4117         * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
4118         * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
4119         * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4120         (c4x_reorg): Renamed from c4x_process_after_reload.  Make static.
4121         Remove parameter.
4122
4123         * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
4124         * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
4125         * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
4126
4127         * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
4128         * config/frv/frv.c: Remove orphaned comment.
4129
4130         * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
4131         * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
4132         * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4133         (ix86_reorg): Renamed from x86_machine_dependent_reorg.  Make static.
4134         Remove parameter.
4135
4136         * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
4137         * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
4138         * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4139         (emit_insn_group_barriers): Remove "first insn" parameter.
4140         (emit_all_insn_group_barriers): Likewise.
4141         (ia64_reorg): Likewise.  Make static.  Update calls to above functions.
4142         (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
4143
4144         * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
4145         * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
4146         * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4147         (ip2k_reorg): Renamed from machine_dependent_reorg.  Make static.
4148         Remove parameter.
4149
4150         * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
4151         * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
4152         * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4153         (m68hc11_reorg): Make static.  Remove parameter.
4154
4155         * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
4156         * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
4157         * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4158         (conditionalize_optimization): Remove parameter.
4159         (mcore_reorg): Renamed from mcore_dependent_reorg.  Remove parameter.
4160         Make static.  Update call to conditionalize_optimization.
4161
4162         * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
4163         * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
4164         * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4165         (mips_reorg): Renamed from machine_dependent_reorg.  Remove parameter.
4166         Make static.
4167
4168         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
4169         * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
4170         * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4171         (mmix_reorg): Renamed from mmix_machine_dependent_reorg.  Make static.
4172         Remove parameter.
4173
4174         * config/pa/pa-protos.h (pa_reorg): Remove declaration.
4175         * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
4176         * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4177         (pa_combine_instructions): Remove "first insn" parameter.
4178         (remove_useless_addtr_insns): Likewise.
4179         (pa_reorg): Likewise.  Make static.  Update calls to above functions.
4180
4181         * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
4182         commented-out definition.
4183
4184         * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
4185         * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
4186         * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4187         (s390_reorg): Renamed from s390_machine_dependent_reorg.  Make static.
4188         Remove parameter.
4189
4190         * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
4191         * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
4192         * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4193         (sh_reorg): Renamed from machine_dependent_reorg.  Make static.
4194         Remove parameter.
4195         (sh_output_mi_thunk): Call sh_reorg directly.
4196         * config/sh/sh.md: Update comment.
4197
4198         * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
4199         commented-out definition.
4200
4201         * config/v850/v850-protos.h (v850_reorg): Remove declaration.
4202         * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
4203         * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4204         (v850_reorg): Make static.  Remove parameter.
4205
4206         * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
4207         * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
4208         * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4209         (xtensa_reorg): Make static.  Remove parameter.
4210
4211         * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
4212         (TARGET_MACHINE_DEPENDENT_REORG): Document.
4213
4214 2003-05-13  Richard Henderson  <rth@redhat.com>
4215
4216         * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
4217         the old decl had instantiated DECL_RTL.
4218
4219 2003-05-13  Mike Stump  <mrs@apple.com>
4220
4221         * doc/invoke.texi (Option Summary): Kill off documentation for -$.
4222
4223 2003-05-13  Janis Johnson  <janis187@us.ibm.com>
4224
4225         * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
4226         HOST_WIDE_INT argument.
4227
4228 2003-05-13  Jason Merrill  <jason@redhat.com>
4229
4230         * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
4231
4232         * tree.c (iterative_hash_expr): New fn.
4233
4234         * c-semantics.c (emit_local_var): Don't mess with temp slots if
4235         there's no initializer.
4236
4237 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
4238
4239         * final.c (final_scan_insn): Apply the effects of frame-related
4240         delay slot insns before emitting a delayed branch.
4241
4242 2003-05-13  Nick Clifton  <nickc@redhat.com>
4243
4244         * config/mcore/mcore.md (jump): Use emit_jump_insn.
4245
4246 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
4247
4248         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
4249         parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
4250
4251 2003-05-12  DJ Delorie  <dj@redhat.com>
4252
4253         * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
4254         (emit_push_insn): Don't use push when the source alignment is less
4255         than the stack's push rounding.
4256
4257 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
4258
4259         * diagnostic.c (output_format): Add support for %m.
4260         (output_printf, output_verbatim, diagnostic_set_info,
4261         verbatim): Set err_no field of the text_info structure being
4262         initialized.
4263         (fatal_io_error): Delete function.
4264         * diagnostic.h (text_info): Add err_no field.
4265         * toplev.h (fatal_io_error): Delete prototype.
4266
4267         * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
4268         * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
4269         * objc/objc-act.c: Replace all calls to fatal_io_error with
4270         calls to fatal_error; add ": %m" to the end of all the affected
4271         error messages.
4272
4273 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
4274
4275         * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
4276         * rtl.h: Prototype it.
4277         * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
4278         when appropriate.
4279
4280 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
4281
4282         * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
4283         ("*iorsi3_oi"): Likewise.
4284
4285 2003-05-13  Richard Earnshaw  <rearnsha@arm.com>
4286
4287         * arm.md (compare_scc): Use shorter sequence for EQ case.
4288         (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
4289         (and_scc_scc): Ensure split only applies when there is a dominance
4290         of the comparisons.
4291         (and_scc_scc_nodom): New insn-and-split pattern.
4292
4293 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
4294
4295         * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
4296         to _Unwind_SetGRPtr().
4297
4298 2003-05-13  Michael Eager <eager@mvista.com>
4299
4300         * Makefile.in: Initialize program_transform_cross_name from
4301         @program_transform_name@ instead of target_alias.
4302
4303 2003-05-12  Janis Johnson  <janis187@us.ibm.com>
4304             Alan Modra  <amodra@bigpond.net.au>
4305             Jakub Jelinek  <jakub@redhat.com>
4306
4307         * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
4308         * configure: Rebuild.
4309         * config/rs6000/rs6000-protos.h: Update.
4310         * config/rs6000/rs6000.c (rs6000_tls_size): New.
4311         (rs6000_tls_size_string): New.
4312         (rs6000_parse_tls_size_option): New.
4313         (rs6000_legitimize_tls_address): New.
4314         (rs6000_tls_get_addr): New.
4315         (rs6000_got_sym): New.
4316         (rs6000_tls_symbol_ref): New.
4317         (rs6000_tls_symbol_ref_1): New.
4318         (rs6000_get_some_local_dynamic_name): New.
4319         (rs6000_get_some_local_dynamic_name_1): New.
4320         (TARGET_HAVE_TLS): New.
4321         (TARGET_CANNOT_FORCE_CONST_MEM): New.
4322         (rs6000_override_options): Handle -mtls-size option.
4323         (constant_pool_expr_1): Handle TLS symbols.
4324         (rs6000_legitimize_address): Handle TLS symbols.
4325         (rs6000_tls_referenced_p): New.
4326         (rs6000_legitimate_address): Handle TLS symbols.
4327         (rs6000_emit_move): Handle TLS symbols.
4328         (print_operand): Handle TLS symbols.
4329         (uses_TOC): Handle TLS symbols.
4330         (rs6000_emit_prologue): Use symbol for unspec constant.
4331         * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
4332         (some_ld_name): New.
4333         (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
4334         (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
4335         (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
4336         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
4337         Support TLS.
4338         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
4339         tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
4340         tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
4341         tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
4342         tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
4343         tls_tls_64): New.
4344         * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
4345
4346 2003-05-12  Neil Booth  <neil@cat.daikokuya.co.uk>
4347
4348         * Makefile.in (stage2_build, stage3_build, stage4_build):
4349         Set BUILD_CC to the same as CC.
4350
4351 2003-05-12  Neil Booth  <neil@daikokuya.co.uk>
4352
4353         * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
4354
4355 2003-05-12  Andreas Schwab  <schwab@suse.de>
4356
4357         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
4358         as unused.
4359         (bundling): Initialize 'pos'.
4360         (ia64_expand_builtin): Initialize 'rmode'.
4361
4362 2003-05-12  David Edelsohn  <edelsohn@gnu.org>
4363
4364         * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
4365         (ASM_OUTPUT_ALIGNED_COMMON): Same.
4366         (ASM_OUTPUT_LOCAL): Same.
4367
4368 Mon May 12 21:53:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
4369
4370         * varasm.c (output_constant):  Fix underflow.
4371
4372 2003-05-12  Mark Mitchell  <mark@codesourcery.com>
4373
4374         PR other/10745
4375         * configure.in: Correct detection of GNU ld version number.
4376         * configure: Regenerated.
4377
4378 2003-05-12  Zack Weinberg  <zack@codesourcery.com>
4379
4380         * diagnostic.c (diagnostic_for_decl): Take a
4381         diagnostic_context argument.  Restructure to be consistent
4382         with diagnostic_report_diagnostic.
4383         (diagnostic_count_diagnostic): Now static.  Take a
4384         diagnostic_info argument, not just a diagnostic_t.  Some code
4385         moved here from internal_error.  Move a case label for
4386         clarity.
4387         (diagnostic_action_after_output): New function.  Code moved
4388         here from internal_error and fatal_error.
4389         (bug_report_request): New #define so that this text appears in
4390         only one place.
4391         (diagnostic_report_diagnostic): Update to match changes to
4392         diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
4393         (diagnostic_set_info): Call gettext here.
4394
4395         (pedwarn): Update comment.  Don't call gettext here.
4396         (sorry): Use report_diagnostic.  Don't call gettext here.
4397         (fatal_error): Remove final fnotice and exit, but call
4398         real_abort to prevent warnings about noreturn function returning.
4399         (internal_error): Likewise.  Don't do ICE suppression here nor
4400         call context->internal_error.
4401         (warning_with_decl): Suppress for decls in system headers.
4402         Adjust call to diagnostic_for_decl.
4403         (pedwarn_with_decl): Likewise.
4404         (error_with_decl): Adjust call to diagnostic_for_decl.
4405         (error_recursion): Use bug_report_request.
4406
4407         * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
4408         * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
4409         diagnostic_count_diagnostic.
4410
4411 2003-05-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4412
4413         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
4414
4415 Mon May 12 15:57:54 CEST 2003  Jan Hubicka  <jh@suse.cz>
4416
4417         * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
4418         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
4419         * mips/mips.h (ASM_OUTPUT_SKIP):  Fix typo in the previous patch.
4420
4421 2003-05-12  Roger Sayle  <roger@eyesopen.com>
4422
4423         * doc/rtl.texi: Document zero_extract as a valid destination
4424         of a set insn.
4425
4426 2003-05-12  Richard Earnshaw  <rearnsha@arm.com>
4427
4428         * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
4429         '.'.  Change all local symbol definitions and references to use LSYM.
4430
4431 Mon May 12 11:32:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
4432
4433         * expr.h (assemble_static_space): Update prototype.
4434         * output.h (assemble_zeros, output_constant): Likewise.
4435         * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
4436         * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
4437         it 64bit clean.
4438         * elf.h (ASM_OTUPUT_SKIP): Likewise.
4439         * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
4440         * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
4441         Expect HOST_WIDE_INT operand.
4442         * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
4443         Expect HOST_WIDE_INT operand.
4444         * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
4445         Expect HOST_WIDE_INT operand.
4446         * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
4447         HOST_WIDE_INT operand.
4448         * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
4449         ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
4450         * aout.h (ASM_OTUPUT_SKIP): Likewise.
4451         * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
4452         * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
4453         * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
4454         * frv.h (ASM_OTUPUT_SKIP): Likewise.
4455         * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
4456         * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
4457         Make it 64bit
4458         clean.
4459         * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
4460         * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
4461         Make it 64bit clean.
4462         * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
4463         * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
4464         HOST_WIDE_INT operand
4465         * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
4466         Expect HOST_WIDE_INT operand
4467         * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
4468         * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
4469         ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
4470         * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
4471         Likewise.
4472         * m32r.h (ASM_OUTPUT_COMMON): Likewise.
4473         * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
4474         Likewise.
4475         * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
4476         * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
4477         * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
4478         ASM_OUTPUT_SKIP): Likewise.
4479         * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
4480         Likewise.
4481         * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
4482         ASM_OUTPUT_SKIP): Likewise.
4483         * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
4484         ASM_OUTPUT_SKIP): Likewise.
4485         * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
4486         * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
4487         ASM_OUTPUT_SKIP): Likewise.
4488         * sgs.h (ASM_OUTPUT_SKIP): Likewise.
4489         * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
4490         ASM_OUTPUT_SKIP): Likewise.
4491         * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
4492         Likewise.
4493         * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
4494         * iris.h (ASM_OUTPUT_LOCAL): Likewise.
4495         * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
4496         * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
4497         ASM_OUTPUT_SKIP): Make it 64bit clean.
4498         * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
4499         Make it 64bit clean.
4500         * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
4501         ASM_OUTPUT_SKIP): Make it 64bit clean.
4502         * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
4503         64bit clean.
4504         * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
4505         HOST_WIDE_INT argument
4506         * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
4507         * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
4508         HOST_WIDE_INT argument
4509         * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
4510         * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
4511         * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
4512         * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
4513         HOST_WIDE_INT argument
4514         * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
4515         * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
4516         * varasm.c (asm_output_bss, asm_output_aligned_bss,
4517         asm_emit_uninitialized, assemble_zeros, assemble_static_space):
4518         HOST_WIDE_INT argument
4519
4520 2003-05-10  Steven Bosscher  <steven@gcc.gnu.org>
4521
4522         * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
4523         favor of walk_tree_without_duplicates.  Add comments.
4524
4525 2003-05-12  Josef Zlomek  <zlomekj@suse.cz>
4526
4527         * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
4528         (struct alloc_pool_def): New element 'id'.
4529         * alloc-pool.c (fancy_abort): Extern function prototype.
4530         (abort): Macro which uses fancy_abort.
4531         (struct allocation_object_def): New structure.
4532         (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
4533         (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
4534         (last_id): New variable.
4535         (create_alloc_pool): Add the offset of u.data to size of element,
4536         increase and use last_id.
4537         (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
4538         (pool_alloc): Likewise. Set ID for elements.
4539         (pool_free): Check whether the PTR was allocated from POOL.
4540
4541 2003-05-11  Richard Henderson  <rth@redhat.com>
4542
4543         PR c/10675
4544         * c-decl.c: Include hashtab.h.
4545         (detect_field_duplicates): New.
4546         (finish_struct): Use it.
4547         * Makefile.in (c-decl.o): Update.
4548         * c-parse.in (structsp_attr): Nreverse component_decl_list results.
4549         (component_decl_list, component_decl_list2,
4550         components, components_notype): Build list in reverse order.
4551         (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
4552
4553         * tree.c (chainon): Special case op2 null as well.
4554         Reorg for clarity.
4555
4556 2003-05-11  Roger Sayle  <roger@eyesopen.com>
4557
4558         * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
4559         to implement log, logf and logl built-ins as inline x87 intrinsics.
4560         (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
4561         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
4562         patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
4563
4564         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
4565         UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
4566
4567 2003-05-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4568
4569         * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
4570
4571         * sparc.c (print_operand): Fix uninitialized warning.
4572
4573 2003-05-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4574
4575         * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
4576         real insns.
4577         * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
4578         condition.
4579
4580 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
4581
4582         * doc/cpp.texi: Fix typos.
4583
4584 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4585
4586         * config/s390/s390.c (s390_function_arg_float): New function.
4587         (s390_function_arg_pass_by_reference): Use it.
4588         (s390_function_arg_advance): Likewise.
4589         (s390_function_arg): Likewise.
4590         (s390_va_arg): Likewise
4591
4592 2003-05-11  Nathan Sidwell  <nathan@codesourcery.com>
4593
4594         * coverage.h (coverage_counter_alloc): New function.
4595         * function.h (struct function): Remove arc_profile flag.
4596         * coverage.c (fn_ident): Remove.
4597         (fn_b_ctrs, no_coverage): New.
4598         (get_coverage_counts): Use current_function_funcdef_no.
4599         (coverage_counter_alloc): New.
4600         (coverage_counter_ref): Adjust.
4601         (coverage_begin_output): Check no_coverage. Use
4602         current_function_funcdef_no.
4603         (coverage_end_function): Likewise.
4604         (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
4605         than clearing flag_inline_functions. Do not clear arc_profile
4606         flag.
4607         * function.c (prepare_function_start): Do not set arc_profile
4608         flag.
4609         * profile.c (instrument_edges): Return number of instrumented
4610         edges. Use a for loop.
4611         (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
4612         local to here and simplify. Use profile_arc_flag not arc_profile
4613         flag.
4614         (find_spanning_tree): Reformat.
4615         * toplev.c (rest_of_compilation): Use profile_arc_flags and
4616         flag_test_coverage rather than arc_profile flag.
4617
4618 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
4619
4620         * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
4621
4622 2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4623
4624         * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
4625
4626 2003-05-11  Bruno Haible  <bruno@clisp.org>
4627
4628         * cppfiles.c (find_or_create_entry): Preserve errno.
4629
4630 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
4631
4632         * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
4633         cpplib as it's a Standard Predefined Macro.
4634         * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
4635         * cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
4636         __STDC_HOSTED__ appropriately.
4637         * cpplib.h (_cpp_init_builtins): Update.
4638         * fix-header.c (read_scan_file): Update.
4639         * doc/cpp.texi, doc/cppopts.texi: Update documentation.
4640
4641 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4642
4643         PR C++/689
4644         PR C++/9257
4645         * c-opts.c (c_common_decode_option): Don't set
4646         warn_ctor_dtor_privacy wen -Wall.
4647         * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
4648
4649 2003-05-10  Alexandre Oliva  <aoliva@redhat.com>
4650
4651         * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
4652         patch.
4653
4654 2003-05-10  Zack Weinberg  <zack@codesourcery.com>
4655
4656         * diagnostic.c: Reorder functions for clarity, putting all the
4657         functions in the "error" family next to each other, and
4658         likewise all the functions in the "error_with_decl" family.
4659         Some other routines were moved too.  Add comments.
4660         (vbuild_message_string): Fold into sole caller.
4661
4662
4663 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4664
4665         * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
4666         (EH_RETURN_HANDLER_RTX): Likewise.
4667         (expand_builtin_eh_return): Do not copy stack adjustment
4668         if EH_RETURN_STACKADJ_RTX is not defined.
4669         (expand_eh_return): Likewise.  Also, do not pass stack
4670         adjustment as argument to the eh_return pattern.
4671         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
4672         because EH_RETURN_STACKADJ_RTX is not defined.
4673         * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
4674         is not defined, treat stack pointer like a regular register.
4675         (uw_init_context_1): Set up fake initial stack pointer register.
4676         (uw_install_context_1): Do not compute stack adjustment if
4677         EH_RETURN_STACKADJ_RTX is not defined.
4678
4679         * config/i386/i386.md ("eh_return"): Remove first argument.
4680         * config/mips/mips.md ("eh_return"): Likewise.
4681         * config/rs6000/rs6000.md ("eh_return"): Likewise.
4682         * config/sh/sh.md ("eh_return"): Likewise.
4683
4684         * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
4685
4686 2003-05-10  Alexander Aganichev  <aaganichev@yandex.ru>
4687
4688         * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
4689
4690 2003-05-10  Nathan Sidwell  <nathan@codesourcery.com>
4691
4692         * defaults.h (GCOV_TYPE_SIZE): Remove.
4693         * gcov-io.h (gcov_type): Set to specific mode int on target.
4694         (gcov_unsigned_t, gcov_position_t): New.
4695         (GCOV_TYPE_NODE): New.
4696         (GCOV_TAG_SUMMARY_LENGTH): Adjust.
4697         (GCOV_COUNTERS_SUMMABLE): New.
4698         (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
4699         gcov_ctr_info, gcov_info): Adjust types.
4700         (gcov_var): Adjust types.
4701         (gcov_write_unsigned, gcov_write_tag,
4702         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
4703         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
4704         (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
4705         * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
4706         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
4707         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
4708         * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
4709         __gcov_init, __gcov_merge_add): Adjust gcov types.
4710         * coverage.c (ctr_merge_functions): Constify.
4711         (ctr_names): New.
4712         (read_counts_file): Adjust gcov types. Only summarize & merge
4713         summable counters.
4714         (coverage_counter_ref): Use GCOV_TYPE_NODE.
4715         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
4716         build_ctr_info_value, build_gcov_info): Adjust types.
4717         * profile.c (branch_prob): Adjust gcov types.
4718         * gcov_dump (dump_file): Adjust gcov types.
4719
4720 2003-05-10  Richard Earnshaw  <rearnsha@arm.com>
4721
4722         * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
4723         constants.
4724         (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
4725         * arm.c (arm_select_dominance_cc_mode): Renamed from
4726         select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
4727         Callers updated.
4728         * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
4729
4730 2003-05-09  Roger Sayle  <roger@eyesopen.com>
4731
4732         * config/alpha/alpha.c (alpha_start_function): Declare frame_size
4733         as unsigned to avoid signed/unsigned comparison warnings.
4734
4735 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
4736
4737         * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
4738         instruction if the Xtensa density option is enabled.
4739
4740 2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>
4741
4742        * mklibgcc.in: Remove extra quotes.
4743
4744 2003-05-09  Mark Mitchell  <mark@codesourcery.com>
4745
4746         * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
4747         of int_ftype_void.
4748
4749 2003-05-09  Alexandre Oliva  <aoliva@redhat.com>
4750
4751         * reload1.c (reload_cse_move2add): Don't turn an implicit
4752         truncation into a self-set in the narrow mode.
4753
4754 2003-05-09  Richard Earnshaw  <rearnsha@arm.com>
4755
4756         * arm.md (clzsi2): The CLZ instruction is predicable.
4757
4758 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
4759
4760         * config/xtensa/xtensa.c: Formatting.
4761
4762 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
4763
4764         * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
4765         instead of TREE_OPERAND to access the operand of a
4766         CONSTRUCTOR node.
4767
4768 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
4769
4770         * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
4771         one operand.
4772
4773 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
4774
4775         * toplev.h (warning_with_file_and_line): Don't declare.
4776         (error_with_file_and_line): Likewise.
4777         * diagnostic.c (error_with_file_and_line): Remove.
4778         (warning_with_file_and_line): Likewise.
4779
4780 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
4781
4782         * c-parse.in (if_stmt_locus): New object.
4783         (if_prefix rule): Use it.  Don't use warning_with_file_and_line.
4784         (select_or_iter_stmt rule): Likewise.
4785         (if_stmt_file): Remove.
4786         (if_stmt_line): Likewise.
4787         * jump.c: include "diagnostic.h"
4788         (never_reached_warning): Don't use warning_with_file_and_line.
4789         * Makefile.in (jump.o): Add dependce on diagnostic.h
4790
4791 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
4792
4793         * expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
4794         Move code handling pieces not larger than a word to..
4795         * function.c (assign_parms): ..here, but use change_address instead
4796         of adjust_address and operand_subword, and expand_binop instead of
4797         expand_shift.  Adjust calls to move_block_from_reg.
4798         * expr.h (move_block_from_reg): Update declaration.
4799         (copy_blkmode_from_reg): Formatting.
4800         * Makefile.in (function.o): Add $(OPTABS_H) to deps.
4801         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
4802         move_block_from_reg calls.
4803         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
4804         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
4805         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
4806         * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
4807         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
4808         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
4809         * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
4810         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
4811         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
4812
4813 2003-05-08  DJ Delorie  <dj@redhat.com>
4814
4815         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
4816         to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
4817         variable-sized types).
4818         (xstormy16_function_arg): New.  Pass them that way too.
4819         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
4820         * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
4821
4822 2003-05-08  Aldy Hernandez  <aldyh@redhat.com>
4823
4824         * mklibgcc.in: Use mkinstalldirs when installing multilib
4825         directories.
4826
4827 2003-05-08  J"orn Rennecke <joern.rennecke@superh.com>
4828
4829         * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
4830         instead of CODE_FOR_jump
4831
4832 2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>
4833
4834         * objc/objc-act.c (error_with_ivar): Don't use
4835         error_with_file_and_line.
4836         (warn_with_method): Don't use warning_with_file_and_line.
4837
4838 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4839
4840         * stmt.c (emit_locus): New macro.
4841         (emit_filename): Remove.
4842         (emit_lineno): Likewise.
4843         (struct stmt_status): Replace members x_emit_filename and
4844         x_emit_lineno with x_emit_locus.
4845         (set_file_and_line_for_stmt): Adjust.
4846         (expand_expr_stmt_value): Don't use warning_with_file_and_line.
4847         (warn_if_unused_value): Likewise.
4848         (check_seenlabel): Likewise.
4849
4850 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4851
4852         * c-decl.c (define_label): Tidy.  Don't use any of
4853         error_with_file_and_line or warning_with_file_and_file.
4854         (pending_xref_error): Likewise.
4855         (store_parm_decls): Likewise.
4856         (current_function_prototype_locus): New object.  Package from
4857         current_function_prototype_file and current_function_prototype_line.
4858         (start_function): Use it.
4859         (current_function_prototype_file): Remove.
4860         (current_function_prototype_line): Remove;
4861
4862 2003-05-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4863
4864         * builtins.c (readonly_data_expr): New function.
4865         (expand_builtin_memmove): Optimize any rodata source, not just
4866         strings.
4867
4868 2003-05-07  David Mosberger <davidm@hpl.hp.com>
4869
4870         * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
4871
4872 2003-05-07  Richard Henderson  <rth@redhat.com>
4873
4874         * config/i386/i386.c (ix86_split_long_move): Fix base register
4875         mode for XFmode splits for TARGET_64BIT.
4876
4877 2003-05-07  Richard Henderson  <rth@redhat.com>
4878
4879         * sched-ebb.c (schedule_ebb): Supply the correct starting
4880         block number to save_line_notes.
4881
4882 2003-05-07  Richard Henderson  <rth@redhat.com>
4883
4884         * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
4885         (dump_file): Likewise.
4886
4887 2003-05-07  David Mosberger <davidm@hpl.hp.com>
4888
4889         * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
4890         forget to preserve gp.
4891         * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
4892
4893         * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
4894         .prologue directive.
4895         Use .skip instead of data8 for .bss section to make Intel
4896         Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
4897         explicit in the .mib bundles and remove the unnecessary stop
4898         bits.  Replace local labels with normal labels, to make ias
4899         happy.  Don't register __do_global_ctors_aux here, do it in
4900         crtend.asm instead.
4901
4902         * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
4903         __do_global_ctors_aux in .init_array section instead of
4904         declaring it as a hidden global.  Replace local labels with
4905         ordinary labels to make ias happy.
4906
4907 2003-05-07  Richard Henderson  <rth@redhat.com>
4908
4909         PR c++/10570
4910         * except.c: Revert 04-01 and 04-02 forced-unwind changes.
4911         * flags.h, toplev.c, doc/invoke.texi: Likewise.
4912
4913         * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
4914         * unwind.inc (_Unwind_DeleteException): Check for null
4915         exception_cleanup.
4916
4917         * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
4918         * unwind.inc (_Unwind_Resume_or_Rethrow): New.
4919         * unwind.h: Declare them.
4920         * libgcc-std.ver (GCC_3.3): Export them.
4921
4922 2003-05-07  Richard Henderson  <rth@redhat.com>
4923
4924         * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
4925         not _Unwind_Word.
4926
4927 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
4928
4929         * stmt.c (force_label_rtx): New function, based on logic
4930         formerly found in expand_expr.
4931         * expr.h: Prototype it.
4932         * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
4933         appropriate.
4934         * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
4935
4936         * print-tree.c (debug_tree): Free the table after we're done
4937         with it.  Use putc.
4938
4939 2003-05-07  Aldy Hernandez  <aldyh@redhat.com>
4940
4941         * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
4942         Unreverse arguments for __ev_subw.
4943
4944         * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
4945
4946 2003-05-07  Nick Clifton  <nickc@redhat.com>
4947
4948         * config/stormy16/stormy-abi: Update to include
4949         R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
4950         R_XSTORMY16_12 relocs.
4951
4952 2003-05-07  Alan Modra  <amodra@bigpond.net.au>
4953
4954         * function.c (assign_parms): Correct reversed reg_parm_stack_space
4955         test.  Add partial in-regs size to stack_args_size.
4956
4957 2003-05-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4958
4959         * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
4960         as a C only option.
4961
4962 2003-05-07  Nathan Sidwell  <nathan@codesourcery.com>
4963
4964         * gcov-io.h (GCOV_LOCKED): New #define.
4965         (GCOV_LINKAGE): Make sure it is #defined.
4966         (gcov_write_string, gcov_write_tag, gcov_write_length,
4967         gcov_read_string, gcov_time): Poison in libgcov.
4968         (gcov_seek_end): Remove.
4969         (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
4970         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
4971         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
4972         GCOV_TAG_SUMMARY_LENGTH): New #defines.
4973         (gcov_write_tag, gcov_write_length): Not in libgcov.
4974         * gcov-io.c (gcov_open): Use GCOV_LOCKED.
4975         (gcov_write_tag, gcov_write_length): Not in libgcov.
4976         (gcov_write_tag_length): New.
4977         (gcov_write_summary): Use gcov_write_tag_length.
4978         * libgcov.c: Always #include gcov-io.h.
4979         (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
4980         (GCOV_LINKAGE): Define to nothing for L_gcov.
4981         (gcov_exit): Replace gcov_write_tag, gcov_write_length with
4982         gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
4983         * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
4984         (read_count_file): Likewise.
4985         * gcov-dump.c (dump_file): Likewise.
4986         * coverag.c (read_counts_file): Likewise.
4987
4988 2003-05-06  Mark Mitchell  <mark@codesourcery.com>
4989
4990         PR other/10658
4991         * gcc.c (process_command): Update copyright date.
4992
4993 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
4994
4995         * doc/install.texi (mips-*-*):  Add note about libstdc++.
4996
4997 2003-05-06  DJ Delorie  <dj@redhat.com>
4998
4999         * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
5000         * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
5001         * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
5002
5003 2003-05-06    <neil@cat.daikokuya.co.uk>
5004
5005         * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
5006         and -Wstrict-prototypes if C++.
5007
5008 2003-05-06  Aldy Hernandez  <aldyh@redhat.com>
5009
5010         * config/rs6000/linuxspe.h: New file.
5011
5012         * config.gcc: Add powerpc-*-linux-gnuspe* target.
5013
5014 2003-05-06  Richard Henderson  <rth@redhat.com>
5015
5016         * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
5017         previous frame didn't save sp.  Clear sp for next frame.
5018         (uw_install_context_1): Honor saved sp from frame.
5019
5020 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
5021
5022         * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
5023         (mips_move_1word, mips_move_2words): Remove declaration.
5024         (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
5025         (mips_restore_gp): Remove insn argument.
5026         * config/mips/mips.h (FP_REG_RTX_P): New macro.
5027         * config/mips/mips.c (volatile_buffer): Remove.
5028         (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
5029         (mips_move_1word, mips_move_2words): Remove, replacing with...
5030         (mips_output_move): ...this new function.
5031         (mips_restore_gp): Remove insn argument.  Adjust for above changes.
5032         (print_operand): Make '%h' print %hi(op) for HIGH operands.  Remove
5033         handling of floating-point constants.  Handle zero CONST_DOUBLE
5034         arguments.
5035         (mips_annotate_frame_insn): Replace with...
5036         (mips_set_frame_expr): ...this, which just takes one argument.
5037         (mips_frame_set): Change the register argument to an rtx.
5038         (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
5039         check whether moves should be split.  Use mips_split_64bit_move
5040         to split them.  Use mips_subword to generate the high and low
5041         parts of a paired FPR.  Adjust calls to frame_set and
5042         mips_set_frame_expr.
5043         (mips_expand_prologue): Simplify due to above changes.
5044         * config/mips/mips.md:  Add splitters for 64-bit moves on 32-bit
5045         targets, replacing xisting register-only versions.
5046         (UNSPEC_STORE_DF_HIGH): New unspec.
5047         (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
5048         (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
5049         (*paradoxical_extendhidi2): Remove.
5050         (movdi_internal, movdi_internal2): Use mips_output_move.
5051         (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
5052         (movsf_internal1, movsf_internal2): Likewise.
5053         (movdf_internal1a): Likewise.  Fix length and type of f <- G case.
5054         (movdf_internal1b): Use mips_output_move.  Fix type of f <- G case.
5055         (movdf_internal2): Use mips_output_move.  Fix lengths of FPR moves.
5056         Add m <- G alternative.
5057         (load_df_low, load_df_high, store_df_low): New patterns.
5058         (movhi_internal): Use @ template instead of calling a function.
5059         Remove unnecessary 'z' alternatives.
5060         (movqi_internal): Likewise.
5061         (exception_receiver): Update call to mips_restore_gp.
5062
5063 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
5064
5065         * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
5066         (mips_delegitimize_address): Declare.
5067         * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
5068         (FIND_BASE_TERM): Define.
5069         * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
5070         (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
5071         Handle small-data addresses.
5072
5073 2003-05-05  Roger Sayle  <roger@eyesopen.com>
5074
5075         * real.c (real_powi): New function to calculate the value of
5076         a real raised to an integer power, i.e. pow(x,n) for int n.
5077         (real_sqrt): Convert to using the faster do_add, do_multiply
5078         and do_divide API for consistency with the rest of real.c.
5079         * real.h (real_powi): Prototype here.
5080         * builtins.c (fold_builtin):  Avoid local variable mode when
5081         evaluating sqrt at compile time.  Attempt to evaluate pow at
5082         compile-time, by checking for an integral exponent.
5083
5084 2003-05-05  Richard Henderson  <rth@redhat.com>
5085
5086         * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
5087
5088 2003-05-05  David O'Brien  <obrien@FreeBSD.org>
5089
5090         * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
5091         other FreeBSD ports.
5092         (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
5093         (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
5094
5095 2003-05-05  Janis Johnson  <janis187@us.ibm.com>
5096
5097         * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
5098         expanded variables.
5099         * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
5100
5101 2003-05-05  Zack Weinberg  <zack@codesourcery.com>
5102
5103         * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
5104         * varasm.c (struct varasm_status): Add deferred_constants field.
5105         (n_deferred_strings): Delete variable.
5106         (n_deferred_constants): New #define.
5107         (struct constant_descriptor_tree): Kill next and label fields.
5108         (const_hash_table, MAX_HASH_TABLE): Delete.
5109         (const_desc_htab): New static variable.
5110         (const_hash): Rename const_desc_hash, and make it fit the
5111         hashtab.h interface.
5112         (const_desc_eq): New.
5113         (const_hash_1, compare_constant): Const-ify arguments.
5114         (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
5115         SYMBOL_REFs.  Clarify comments.  Don't set desc->label.
5116         (output_constant_def): Do the lookup/insert using the
5117         hashtab.h interface.  Don't muck with n_deferred_constants or
5118         DEFERRED_CONSTANT_P here.
5119         Always call maybe_output_constant_def_contents.
5120         (maybe_output_constant_def_contents): Take a pointer to the
5121         descriptor, not the EXP and RTL separately.  Return
5122         immediately if this constant is not deferred.  Defer output of
5123         everything, except writable string constants.  Update
5124         n_deferred_constants here.
5125         (output_constant_def_contents): Now takes just one argument,
5126         an rtx.  Clear DEFERRED_CONSTANT_P here.
5127         (mark_constant_pool): Update for rename of n_deferred_strings.
5128         (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
5129
5130         (init_varasm_status): Clear p->deferred_constants.
5131         (init_varasm_once): Call htab_create_ggc for const_desc_htab.
5132
5133 2003-05-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5134
5135         * builtins.c (expand_builtin_stpcpy): Only expand when the length
5136         of the source string can be evaluated at compile-time.
5137
5138 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
5139
5140         * testsuite/gcc.c-torture/compile/simd-6.c: New.
5141
5142         * c-typeck.c (digest_init): Handle arrays of vector constants.
5143
5144 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
5145
5146         * builtins.c (expand_builtin_mempcpy): New function.
5147         (expand_builtin_stpcpy): Optimize stpcpy whose return value is
5148         ignored into strcpy no matter what arguments it has.
5149         (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
5150         expand_builtin_mempcpy.
5151
5152 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
5153
5154         * testsuite/gcc.dg/20030505.c: New.
5155
5156         * c-typeck.c (convert_for_assignment): Opaque pointers can
5157         interconvert.
5158
5159         * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
5160         (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
5161         (spe_init_builtins): Rename all pv2si_type_node to
5162         opaque_p_V2SI_type_node.
5163         Remove declaration of pv2si_type_node.
5164         (is_ev64_opaque_type): Accept opaque pointers.
5165
5166 2003-05-05  Geoffrey Keating  <geoffk@apple.com>
5167
5168         * config/rs6000/rs6000.c (validate_condition_mode): Use
5169         flag_finite_math_only.
5170         (rs6000_reverse_condition): Never return UNKNOWN; use
5171         flag_finite_math_only.
5172         (rs6000_generate_compare): Use flag_finite_math_only.
5173         (rs6000_emit_cmove): Handle UNLE.  Support UNEQ under -ffast-math.
5174         Use HONOR_* rather than flag_unsafe_math_optimizations.  Correct
5175         UNGE and GT cases.  Handle UNEQ and LTGT when ! HONOR_NANS.
5176
5177         * toplev.c (check_global_declarations): Suppress not-used warning
5178         for volatile variables.
5179
5180 2003-05-05  Olivier Hainque  <hainque@act-europe.fr>
5181
5182         * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
5183         usage of bitfield instructions for mode1 != BLKmode, only ignoring
5184         SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
5185         (store_field): Likewise.
5186
5187 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
5188
5189         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
5190         evsubifw to builtins accepting 5-bit unsigned constants.
5191         (easy_vector_constant): Return if V1DImode.  Fix typo.
5192
5193 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
5194
5195         * config/rs6000/spe.h: Revert licensing change from last patch.
5196
5197 2003-05-05  DJ Delorie  <dj@redhat.com>
5198
5199         * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
5200         before reload, but defer the split until after.
5201         * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
5202         to match.
5203
5204 2003-05-05  David Edelsohn  <edelsohn@gnu.org>
5205
5206         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
5207         * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
5208
5209 2003-05-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5210
5211         * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
5212         is defined.
5213
5214 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5215
5216         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
5217         ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
5218         ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
5219
5220         (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
5221         ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
5222         ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
5223         New.
5224
5225         * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
5226         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
5227
5228         (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
5229         BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
5230         BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
5231         BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
5232         BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
5233         BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
5234         BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
5235         BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
5236         BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
5237         BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
5238         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
5239         BUILT_IN_STRDUP): Add "nonnull" attribute.
5240
5241 2003-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5242
5243         * expr.c (store_field): Don't clobber TEMP in shift: it might be
5244         a variable.
5245         (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
5246         whose purpose is to step up the alignment.
5247         (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
5248
5249         * stor-layout.c (compute_record_mode): Relax restriction
5250         on fields crossing word boundaries forcing BLKmode.
5251
5252 2003-05-04  Neil Booth  <neil@daikokuya.co.uk>
5253
5254         * cppinit.c (cpp_create_reader, post_options): Warn about
5255         trigraphs unless explicity set or -trigraphs.
5256         * cpplex.c (warn_in_comment): New.
5257         (_cpp_process_line_notes): Better handling of -Wtrigraphs.
5258         (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
5259         * doc/cppopts.texi, doc/cpp.texi: Update.
5260
5261 2003-05-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5262
5263         * Makefile.in (LIBGCOV): Add _gcov_merge_add.
5264         * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
5265         namespace clash.
5266         (GCOV_MERGE_FUNCTIONS): New.
5267         (gcov_merge_fn): Declare.
5268         (struct gcov_ctr_info): New field "merge".
5269         (__gcov_merge_add): Declare.
5270         * coverage.c (ctr_merge_functions): New.
5271         (build_ctr_info_type, build_ctr_info_value): Initialize merge field
5272         of gcov_ctr_info type.
5273         * libgcov.c (__gcov_merge_add): New.
5274         (gcov_exit): Call a hook to merge values of counters.
5275
5276 2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
5277
5278         * toplev.h (pedwarn_with_file_and_line): Don't declare.
5279         * diagnostic.c (pedwarn_with_file_and_line): Remove.
5280
5281 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5282
5283         * varasm.c (assemble_variable): Don't use error_with_file_and_line.
5284
5285 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5286
5287         * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
5288         expand_builtin_frame_address): Update prototypes.
5289         (expand_builtin_constant_p, expand_builtin_strlen,
5290         expand_builtin_strcpy, expand_builtin_memset,
5291         expand_builtin_bzero, expand_builtin_args_info,
5292         expand_builtin_frame_address): Pass in just the argument(s)
5293         needed, not the entire expression `exp'.
5294         (expand_builtin): Update all calls to these functions.
5295
5296 2003-05-03  Richard Henderson  <rth@redhat.com>
5297
5298         * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
5299         <BUILT_IN_DWARF_SP_COLUMN>: New.
5300         * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
5301         (BUILT_IN_DWARF_SP_COLUMN): New.
5302         * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
5303         (expand_builtin_dwarf_sp_column): New.
5304         * except.h: Update to match.
5305         * unwind-dw2.c (execute_stack_op): Correct stack push typo.
5306         (execute_cfa_program): Record location expression address
5307         before extracting length.
5308         (uw_update_context_1): Install old CFA into stack pointer column.
5309         (uw_init_context_1): Set cfa_reg to stack pointer column.
5310
5311 2003-05-03  Richard Henderson  <rth@redhat.com>
5312
5313         * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
5314         return bool.
5315         (toc_relative_expr_p): Likewise.
5316         (SPE_CONST_OFFSET_OK): Move from rs6000.h.
5317         (legitimate_constant_pool_address_p): Move from rs6000.h, change
5318         into a function, downcase all users.
5319         (legitimate_small_data_p): Likewise.
5320         (legitimate_offset_address_p): Likewise.
5321         (legitimate_indexed_address_p): Likewise.
5322         (legitimate_indirect_address_p): Likewise.
5323         (legitimate_lo_sum_address_p): Likewise.
5324         (rs6000_mode_dependent_address): Likewise.
5325         * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
5326         (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
5327         LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
5328         LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
5329         LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
5330         (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
5331         (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
5332         * config/rs6000/rs6000-protos.h: Update.
5333
5334 2003-05-03  Geoffrey Keating  <geoffk@apple.com>
5335
5336         * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
5337         (REVERSE_CONDITION): Define.
5338
5339         * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
5340         to branch_positive_comparison_operator.
5341         (ccr_bit): Check that sCOND conditions are actually a positive bit.
5342         (print_operand): Remove %D substitution.
5343         (rs6000_emit_sCOND): Generate complement operation to ensure that
5344         sCOND input is a positive bit.
5345         * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
5346         same order as bCOND, and add the missing ones.  Remove the %D
5347         substitutions from the scc patterns.
5348
5349         * simplify-rtx.c (simplify_relational_operation): Add case for
5350         ! (fabs(x) < 0.0).
5351
5352 2003-05-03  Bruce Korb  <bkorb@gnu.org>
5353
5354         * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
5355         in fixincl.x
5356         * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
5357
5358 2003-05-03  Aldy Hernandez  <aldyh@redhat.com>
5359
5360         * config/rs6000/spe.h: Remove unecessary casts.  Misc cleanups.
5361
5362 2003-05-03  Zack Weinberg  <zack@codesourcery.com>
5363
5364         PR c/10604
5365         * c-common.c (warn_sign_compare): Initialize to -1.
5366         * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
5367         (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
5368         for C++ only.
5369         (c_common_post_options): Set warn_sign_compare from extra_warnings
5370         if it's still -1 at this point.
5371
5372         * toplev.c (maybe_warn_unused_parameter): New static variable.
5373         (set_Wextra): New static function.
5374         (W_options): Remove "extra".
5375         (decode_W_option): Call set_Wextra.
5376         (independent_decode_option): Likewise.
5377         (set_Wunused): Cooperate with set_Wextra in setting
5378         warn_unused_parameter.
5379         (rest_of_compilation): No need to check extra_warnings as
5380         well as warn_uninitialized.
5381
5382         * c-typeck.c (build_binary_op, build_conditional_expr):
5383         No need to check extra_warnings as well as warn_sign_compare.
5384         (internal_build_compound_expr): No need to check extra_warnings
5385         as well as warn_unused_value.
5386         * function.c (expand_function_end): No need to check extra_warnings
5387         as well as warn_unused_parameter.
5388         * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
5389         as well as warn_unused_value.
5390
5391         * doc/invoke.texi: Clarify documentation of -Wsign-compare.
5392
5393         * Makefile.in: Disable -Werror for gengtype-lex.o.
5394
5395 2003-05-03  Olivier Hainque  <hainque@act-europe.fr>
5396
5397         * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
5398         * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
5399         * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
5400         * calls.c (emit_call_1): Likewise.
5401         (expand_call): For calls initializing constant memory, replace
5402         emission of standalone mem /u clobber with function usage entry.
5403         * expr.c (emit_block_move_via_libcall): Likewise.
5404         * cse.c (count_reg_usage, case EXPR_LIST): New case.
5405         * flow.c (propagate_one_insn): Pass entire operand of
5406         CALL_INSN_FUNCTION_USAGE to mark_used_regs.
5407         * integrate.c (try_constants): For CALL_INSNs, substitute constants
5408         within the FUNCTION_USAGE also.
5409         * loop.c (prescan_loop): Note clobbers of const mem mentioned in
5410         FUNCTION_USAGE lists.
5411         * reload1.c (replace_pseudos_in): Renamed.
5412         (reload): Use it for clobbers surviving until the end of the reload.
5413
5414 2003-05-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5415
5416         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
5417         gen_lowpart on non-integer modes.
5418
5419         * stor-layout.c (place_field): When adjusting offset_align, use
5420         desired_align, not DECL_ALIGN.
5421
5422 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
5423
5424         * c-decl.c (pending_invalid_xref_file): Remove.
5425         (pending_invalid_xref_line): Remove.
5426         (pending_invalid_xref_location): New.
5427         (lookup_label): Use location_t and input_location directly.
5428         (lookup_tag): Likewise.
5429         (pending_xref_error): Likewise.
5430         (c_expand_body_1): Likewise.
5431         * c-common.c (x_expand_start_cond): Likewise.
5432         * c-semantics.c (genrtl_for_stmt): Likewise.
5433         (find_reachable_label): Likewise.
5434         * expr.c (expand_expr): Likewise.
5435         * integrate.c (output_inline_function): Likewise.
5436         * tree-inline.c (find_alloca_call): Likewise.
5437         (find_builtin_longjmp_call): Likewise.
5438         * gcc.c (input_filename): Make static.
5439
5440 2003-05-03  Richard Sandiford  <rsandifo@redhat.com>
5441
5442         * config/mips/mips.md: Fix comment typo.
5443
5444         * config/mips/mips.c (mips_integer_op): New structure.
5445         (MIPS_MAX_INTEGER_OPS): Define.
5446         (mips_const_insns): Use mips_build_integer to determine the number
5447         of instructions needed to load a CONST_INT.
5448         (move_operand): Reject compound CONST_INTs.
5449         (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
5450         (mips_move_integer): New fn.
5451         (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
5452         (mips_legitimize_move): Only legitimize constants when moving
5453         word or subword values.
5454
5455 2003-05-02  Matt Kraai  <kraai@alumni.cmu.edu>
5456
5457         * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
5458
5459 2003-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5460
5461         * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
5462         modifying it.
5463
5464 2003-05-03  Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5465             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5466
5467         * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
5468         Hernandez, and Kazu Hirata.  Update Richard Henderson.
5469
5470 2003-05-02  Geoffrey Keating  <geoffk@apple.com>
5471
5472         * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
5473         to tentative declaration.
5474
5475         * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
5476         (SYMBOL_FLAG_SMALL_V4): Delete.
5477         * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
5478         (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
5479         (rs6000_elf_in_small_data_p): Add extra section names.  Add
5480         comment about TREE_PUBLIC test.
5481
5482         * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
5483         expand_stmt on result of expand_unreachable_stmt.
5484
5485 2003-05-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5486
5487         * doc/contrib.texi (Contributors): Add Daniel Berlin.
5488
5489 2003-05-02  David Edelsohn  <edelsohn@gnu.org>
5490
5491         * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
5492         number of automata.
5493
5494         * config/rs6000/rs6000.c (symbol_ref_operand): Check
5495         SYMBOL_REF_FUNCTION_P on AIX.
5496         (current_file_function_operand): Same.
5497         * config/rs6000/rs6000.md (call,call_value): Force non-function
5498         symbol_ref into register on AIX.
5499
5500 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
5501
5502         * calls.c (struct arg_data): Move offset, slot_offset, size and
5503         alignment_pad to struct locate_and_pad_arg_data.  Update all refs.
5504         (initialize_argument_information): Adjust call to locate_and_pad_parm.
5505         Delete alignment_pad var.  Don't calculate slot_offset here.
5506         (emit_library_call_value_1): Delete alignment_pad, offset and size
5507         vars.  Use struct locate_and_pad_arg_data instead.  Adjust refs.
5508         Adjust call to locate_and_pad_parm.  Don't tweak arg size for
5509         partial in-regs here.  Formatting fixes.
5510         * expr.h (struct locate_and_pad_arg_data): New struct.
5511         (locate_and_pad_parm): Adjust declaration.
5512         * function.c (assign_parms): Localize vars.  Use "locate" instead of
5513         other arg location vars.  Don't invoke FUNCTION_ARG or
5514         FUNCTION_INCOMING_ARG unless pretend_named is different from
5515         named_arg.  Heed MUST_PASS_IN_STACK and set up "partial" before
5516         calling locate_and_pad_parm.  Adjust locate_and_pad_parm call.
5517         Use slot_offset for stack home of reg parms.  Correct test for
5518         parm passed in memory.  Formatting fixes.
5519         (locate_and_pad_parm): Add "partial" to params.  Replace offset_ptr
5520         arg_size_ptr and alignment pad with "locate".  Set slot_offset here.
5521         Correct initial_offset_ptr handling.  Localize vars.  Always pad
5522         locate->offset even when in_regs.
5523
5524 2003-05-02  Nathan Sidwell  <nathan@codesourcery.com>
5525
5526         * Makefile.in (TREE_H): Replace location.h with input.h.
5527         (GTFILES) Remove location.h
5528         (gt-lists.h): Replace gt-location.h with gt-input.h
5529         * input.h (input_filename, input_line): Remove variables.
5530         (location_s, location_t): Move from location.h.
5531         (input_location): New.
5532         (input_filename, input_line): New #defines.
5533         * location.h: Remove.
5534         * tree.h: Replace location.h with input.h.
5535         (input_filename, input_line): Remove.
5536         * diagnostic.h: Replace location.h with input.h.
5537         * gcc.h (input_filename, input_filename_length): Remove declarations.
5538         * toplev.c (input_filename, input_line): Remove.
5539         (input_location): Define.
5540         (push_srcloc, pop_srcloc): Adjust.
5541         * diagnostic.c (diagnostic_report_current_module): Adjust.
5542
5543 2003-05-02  Nick Clifton  <nickc@redhat.com>
5544
5545         * configure.in: Add xstormy16 to list of targets that has a nop
5546         instruction and hence which can be tested to see if the
5547         assembler supports the --gdwarf2 switch.
5548         * configure: Regenerate.
5549
5550 2003-05-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
5551
5552         PR target/8257
5553         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
5554         alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
5555         Avoid undefined shifts by making the shift operand unsigned.
5556
5557 2003-05-01  DJ Delorie  <dj@redhat.com>
5558
5559         * reload.c (find_reloads): Also check that all of a multi-reg
5560         value is in the class.
5561
5562 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
5563
5564         * scan.h (lineno): Revert the rename here.
5565
5566 2003-05-01  Stan Shebs  <shebs@apple.com>
5567
5568         * config/darwin.c (darwin_encode_section_info): Call
5569         default_encode_section_info.
5570
5571 2003-05-01  David Edelsohn  <edelsohn@gnu.org>
5572
5573         * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
5574         (movsi_internal1): Use new mfjmpr attribute.
5575         (movhi_internal): Same.
5576         (movqi_internal): Same.
5577         (movcc_internal1): Same.
5578         (movdi_internal64): Same.
5579         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
5580         power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
5581         * config/rs6000/40x.md: Add fpu_405.
5582         * config/rs6000/power4.md: Merge power4lsu and power4disp automata
5583         into power4misc automata.  Remove extraneous parentheses.
5584         * config/rs6000/440.md: New file.
5585         * config/rs6000/rs6000.c (processor_target_table): Add 440,
5586         440fp.  Rename 405f to 405fp.
5587         (function_arg_padding): Correct formatting.
5588         (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
5589
5590 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
5591
5592         * input.h (lineno): Rename to ...
5593         (input_line): ... here.
5594         * tree.h (lineno): Rename to ...
5595         (input_line): ... here.
5596         * scan.h (lineno): Rename to ...
5597         (input_line): ... here.
5598         * toplev.c (lineno): Rename to ...
5599         (input_line): ... here.
5600         (push_srcloc, pop_srcloc):  Rename lineno to input_line.
5601         * c-common.c (c_expand_start_cond, fname_decl): Likewise.
5602         * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
5603         store_parm_decls, c_expand_body_1): Likewise.
5604         * c-errors.c (pedwarn_c99): Likewise.
5605         * c-format.c (status_warning): Likewise.
5606         * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
5607         * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
5608         * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
5609         * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
5610         gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
5611         genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
5612         genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
5613         build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
5614         prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
5615         * coverage.c (create_coverage): Likewise.
5616         * diagnostic.c (pedwarn, sorry, error, fatal_error,
5617         internal_error, warning, diagnostic_report_current_module,
5618         inform): Likewise.
5619         * expr.c (expand_expr): Likewise.
5620         * integrate.c (expand_inline_function,
5621         output_inline_function): Likewise.
5622         * rtl-error.c (file_and_line_for_asm): Likewise.
5623         * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
5624         walk_tree): Likewise.
5625         * tree.c (make_node): Likewise.
5626         * ada, cp, f, java, objc, treelang: Likewise.
5627         * objc/objc-act.c (objc_init): Rename lineno to input_line.
5628         (build_module_descriptor, build_selector_translation_table,
5629         build_protocol_template, build_method_prototype_list_template,
5630         build_category_template, build_selector_table,
5631         build_class_template, build_super_template, build_ivar_template,
5632         build_ivar_list_template, build_method_list_template,
5633         build_method_template, add_instance_variable): Likewise.
5634
5635         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
5636         name from input_filename.
5637
5638 2003-04-30  Eric Christopher  <echristo@redhat.com>
5639             Richard Sandiford <rsandifo@redhat.com>
5640
5641         * configure: Regenerate from patches below.
5642         * combine.c (gen_lowpart_for_combine): Fix comment and add tests
5643         for all symbolic operands.
5644         * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
5645         to function.
5646         * config/mips/linux.h: Fix typo.
5647         * Merge from mips-3_4-rewrite branch:
5648
5649         2003-04-07  Richard Sandiford  <rsandifo@redhat.com>
5650
5651                 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
5652                 handling local labels when TARGET_ABICALLS.
5653
5654         2003-04-04  Richard Sandiford  <rsandifo@redhat.com>
5655
5656                 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
5657                 integer argument.
5658                 (mips_expand_call): Likewise.
5659                 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
5660                 (FIXED_REGISTERS): Clear $31 entry.
5661                 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
5662                 (EPILOGUE_USES): Define.
5663                 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
5664                 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
5665                 (override_options): Add a 'j' register class.
5666                 (mips_expand_call): Handle sibcalls
5667                 (mips_expand_epilogue): Handle epilogues for sibcalls.
5668                 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
5669                 (sibcall_epilogue): New pattern.
5670                 (call, call_value): Adjust calls to mips_expand_call.
5671                 (sibcall, sibcall_value): New expanders.
5672                 (sibcall_internal, sibcall_value_internal): New patterns.
5673                 (sibcall_value_multiple_internal): New pattern.
5674
5675         2003-03-25  Richard Sandiford  <rsandifo@redhat.com>
5676
5677                 * config/mips/mips.md (extended_mips16): New attribute.
5678                 (define_attr length): Default to 8 if extended_mips16 == yes.
5679                 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
5680                 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
5681                 (call_internal): Set extended_mips16 to yes for direct jumps.
5682                 Remove redundant mode attribute.
5683                 (call_value_internal, call_value_multiple_internal): Likewise.
5684                 (call_split): Remove redundant mode attribute.
5685                 (call_value_split, call_value_multiple_split): Likewise.
5686
5687                 * config/mips/mips.c (mips_symbol_insns): Rework.  Fix handling
5688                 of unaligned offsets.
5689
5690                 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
5691                 of SYMBOL_GENERAL.
5692
5693         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
5694
5695                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
5696                 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
5697                 for mips16 code.
5698
5699         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
5700
5701                 * config/mips/mips.h (ADDRESS_COST): Define.
5702
5703         2003-03-20  Richard Sandiford  <rsandifo@redhat.com>
5704
5705                 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
5706                 'R' to 'U'.  Make 'R' mean a single-instruction memory reference.
5707                 * config/mips/mips.md: Replace 'R' constraints with 'U'.
5708
5709         2003-03-18  Richard Sandiford  <rsandifo@redhat.com>
5710
5711                 * config/mips/mips.md (truncdisi2): Add commentary.  Use sll instead
5712                 of a two-instruction sequence.  Add register->memory alternative.
5713                 (truncdihi2, truncdiqi2): Likewise.
5714                 Rework shift/truncate instructions so that they only handle right
5715                 shifts of 32 (or more, in the case of arithmetic shifts).
5716                 Add patterns for truncate/sign-extend.
5717
5718         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
5719
5720                 * configure.in (mips*-*-*): Check for explicit relocation support.
5721                 * configure: Regenerate.
5722
5723         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
5724
5725                 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
5726                 and -mno-explicit-relocs.
5727                 (MASK_EXPLICIT_RELOCS): Define.
5728                 (TARGET_EXPLICIT_RELOCS): Use it.
5729                 (mips_split_addresses): Remove declaration.
5730                 * config/mips/mips.c (override_options): Update comment for
5731                 mips_split_addresses.  Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
5732
5733         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
5734
5735                 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
5736                 a CONST as identity.  Check the return value of gen_lowpart_common.
5737
5738         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
5739
5740                 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
5741                 references for TARGET_EXPLICIT_RELOCS.
5742                 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
5743                 !TARGET_MIPS16.
5744
5745         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
5746
5747                 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
5748                 (addsi3): Remove redundant constraints.
5749                 (addsi3_internal): Use separate register & constant alternatives.
5750                 Use a 'Q' constraint and "addiu" insn for the latter.
5751                 (adddi3_internal_3, addsi3_internal_2): Likewise.
5752
5753         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
5754
5755                 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
5756                 (mips_expand_unaligned_store): Declare.
5757                 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
5758                 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
5759                 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
5760                 (UNSPEC_ULD, UNSPEC_USD): Remove.
5761                 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
5762                 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
5763                 (extv, extzv): Use mips_expand_unaligned_load.
5764                 (insv): Use mips_expand_unaligned_store.  Use a reg_or_0_operand
5765                 predicate for operand 3.
5766                 (movsi_ulw, movsi_usw): Replace with...
5767                 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
5768                 (movdi_uld, movdi_usd): Likewise replace with...
5769                 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
5770
5771         2003-02-26  Richard Sandiford  <rsandifo@redhat.com>
5772
5773                 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
5774                 * config/mips/mips.h (LEA_REGS): New register class.
5775                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
5776                 (GR_REG_CLASS_P): Include LEA_REGS.
5777                 (DANGEROUS_FOR_LA25_P): New macro.
5778                 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
5779                 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
5780                 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
5781                 entries to LEA_REGS.
5782                 (mips_global_pic_constant_p): New function.
5783                 (override_options): Add 'e' register constraint.
5784                 (mips_secondary_reload_class): Return LEA_REGS when reloading
5785                 a dangerous constant into a class containing $25.
5786                 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
5787                 (movsi_internal): Likewise.
5788
5789         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
5790
5791                 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
5792                 * config/mips/mips.md (call_split): New insn.
5793                 (call_value_split, call_value_multiple_split): New insns.
5794                 (call_internal): Turn into a define_insn_and_split.  Split the
5795                 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
5796                 (call_value_internal, call_value_multiple_internal): Likewise.
5797
5798         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
5799
5800                 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
5801                 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
5802                 (mips_encode_section_info): Don't take symbol visibility into
5803                 account if TARGET_ABICALLS.  Add more commentary.
5804                 * config/mips/mips.md: Add commentary above reloc constants.
5805
5806         2003-02-12  Richard Sandiford  <rsandifo@redhat.com>
5807
5808                 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
5809                 from mips_legitimize_move.  Legitimize constant pool references.
5810                 (mips_legitimize_move): Call mips_legitimize_const_move.  Attach
5811                 a REG_EQUAL note to the last instruction.
5812
5813         2003-02-11  Richard Sandiford  <rsandifo@redhat.com>
5814
5815                 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
5816                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
5817                 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
5818                 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
5819                 * config/mips/mips.md (UNSPEC_HIGH): New constant.
5820                 (UNSPEC_RELOC_GPREL16): Rename to...
5821                 (RELOC_GPREL16): ...this.
5822                 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
5823                 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
5824                 (macro_calls): New attribute.
5825                 (length): Use it to set the default length of calls.  Don't allow
5826                 calls to have delay slots if macro_calls is "yes".
5827                 (luisi, luidi): New patterns.
5828                 (lowsi, lowdi): Use '%R' to print the relocation.
5829                 (lowdi_extend): Remove.
5830                 (loadgp): Remove mode from operand 0.  Use '%0' instead of '%a0'.
5831                 (call_internal): Merge alternatives.  Always use "jal".
5832                 (call_value_internal, call_value_multiple_internal): Likewise.
5833                 (reloc_gprel16): Remove.
5834                 * config/mips/mips.c (mips_got_alias_set): New variable.
5835                 (mips_classify_constant): Handle the new relocation constants.
5836                 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
5837                 (mips_symbolic_address_p): Return false if generating explicit relocs.
5838                 Otherwise allow local PIC symbols to have an offset.
5839                 (mips_splittable_symbol_p): New function.
5840                 (mips_classify_address): Use it to check whether a LO_SUM is valid.
5841                 (mips_const_insns): Always accept HIGH.
5842                 (call_insn_operand): Don't accept global symbols if using explicit
5843                 relocs.
5844                 (move_operand): Don't accept HIGH when generating PIC.
5845                 (mips_reloc, mips_lui_reloc): New functions.
5846                 (mips_force_temporary): Remove MODE argument.  Expect VALUE to
5847                 be a valid right-hand-side for a SET pattern.
5848                 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
5849                 (mips_emit_high): New function.
5850                 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
5851                 case.  Use mips_splittable_symbol_p to check whether a LO_SUM
5852                 address should be used.  Use mips_emit_high to generate the
5853                 high part of such an address.  Adjust the global symbol + offset
5854                 case to match the change to mips_force_temprorary.
5855                 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
5856                 If generating explicit-reloc PIC, load the address of global
5857                 symbols from the GOT.  Use mips_emit_high to emit the high part
5858                 of an address.
5859                 (mips_simplify_dwarf_addr): New function.
5860                 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
5861                 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
5862                 (mips_expand_call): Load the addresses of global functions using
5863                 %call* relocs if generating explicit-reloc PIC.  Don't generate
5864                 an exception_receiver pattern.
5865                 (override_options): Initialize mips_got_alias_set.
5866                 (print_relocation): Remove in favor of...
5867                 (mips_reloc_string): ...this new function.
5868                 (print_operand): Handle '%R'.  Use mips_reloc_string.
5869                 (print_operand_address): Use print_operand to print the symbolic
5870                 part of a LO_SUM address.
5871                 (mips_output_function_prologue): Use .cprestore, reverting last patch.
5872                 (mips_encode_section_info): Factor out DECL_RTL accesses.  Reverse
5873                 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
5874                 for local symbols.
5875
5876         2003-02-02  Eric Christopher  <echristo@redhat.com>
5877
5878                 * config/mips/mips.c (mips_sign_extend): Remove.
5879                 * config/mips/mips-protos.h: Ditto.
5880                 * config/mips/mips.md (movdi_internal2_extend): Remove.
5881                 (extendsidi2): Fix mode of convert_memory_address.
5882
5883         2003-01-24  Eric Christopher  <echristo@redhat.com>
5884
5885                 * config/mips/mips.md: Rewrite zero_extend* and extend*
5886                 patterns. Use explicit instructions and split after reload
5887                 for register extensions.
5888                 (ashlsi3_internal1_extend): New combiner pattern for
5889                 shift and extend combinations.
5890                 * config/mips/mips.h: Change Pmode back to ptr_mode
5891                 for performance enhancement.
5892                 * combine.c (expand_compound_operation): Make sure
5893                 that zero_extend operation is profitable.
5894
5895         2003-01-14  Richard Sandiford  <rsandifo@redhat.com>
5896
5897                 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
5898                 addresses depend on ptr_mode rather than Pmode.
5899                 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
5900                 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
5901                 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
5902                 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
5903                 * config/mips/mips.md (tablejump): Likewise.  Remove Pmode
5904                 condition for selecting cpaddsi or cpadddi: use cpadd instead.
5905                 (tablejump_internal1): Remove condition.
5906                 (tablejump_internal2): Change condition to TARGET_64BIT.
5907                 (cpaddsi): Rename to...
5908                 (cpadd): ...this.
5909                 (cpadddi): Remove.
5910
5911         2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
5912
5913                 * config/mips/mips-protos.h (mips16_constant_after_function_p,
5914                 mips_address_cost, mips_check_split, double_memory_operand,
5915                 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
5916                 pic_address_needs_scratch, symbolic_operand): Remove declarations.
5917                 (mips_legitimate_address_p): Return bool.
5918                 (mips_address_insns, mips_fetch_insns, mips_const_insns,
5919                 mips_legitimize_address, mips_legitimize_move,
5920                 mips_expand_call): Declare.
5921                 (mips_return_addr): Move outside #ifdef RTX_CODE.
5922
5923                 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
5924                 (PIC_FN_ADDR_REG): New reg_class.
5925                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
5926                 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
5927                 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
5928                 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
5929                 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
5930                 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
5931                 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
5932                 (LEGITIMATE_PIC_OPERAND): Undefine.
5933                 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
5934                 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
5935                 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
5936                 (FUNCTION_MODE): Change to SImode.
5937                 (CONST_COSTS): Use mips_const_insns to calculate the cost of
5938                 most constants.  Treat const_artih_operands specially if they
5939                 occur in a PLUS or MINUS.
5940                 (CONSTANT_POOL_COST): New macro.
5941                 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
5942                 Add LO_SUM handling.
5943                 (ADDRESS_COST): Undefine.
5944                 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
5945                 Add CONST to the list of codes for arith_operand.  Add LABEL_REF
5946                 to call_insn_operand and remove CONST_INT.
5947
5948                 * config/mips/mips.c: Include integrate.h.
5949                 (SINGLE_WORD_MODE_P): New macro.
5950                 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
5951                 (mips_constant_info, mips_address_info): New structs.
5952                 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
5953                 (mips_classify_constant, mips_classify_symbol,
5954                 mips_valid_base_register_p, mips_symbolic_address_p,
5955                 mips_classify_address, mips_symbol_insns,
5956                 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
5957                 mips_fetch_insns, mips_force_temporary, mips_add_offset,
5958                 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
5959                 mips_print_relocation): New functions.
5960                 (const_arith_operand): New operand predicate.
5961                 (arith_operand): Use it.
5962                 (mips_const_double_ok, mips16_simple_memory_operand,
5963                 simple_memory_operand, double_memory_operand, mips_check_split,
5964                 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
5965                 mips16_gp_offset_p, mips16_output_gp_offset,
5966                 mips16_constant_after_function_p, mips16_constant): Remove.
5967                 (call_insn_operand): Be more fussy about symbolic constants.
5968                 Use register_operand.
5969                 (move_operand): Use mips_symbolic_address_p to check symbolic
5970                 operands and general_operand to check the rest.
5971                 (symbolic_operand): Use mips_classify_constant.
5972                 (mips_legitimate_address_p): Use mips_classify_address.
5973                 (mips_move_1word): Combine handling of symbolic addresses.
5974                 Remove special treatment of gp-relative loads for TARGET_MIPS16.
5975                 (move_move_2words): Likewise.  Assume addresses are offsettable
5976                 if they need to refer to more than one word.  Add HIGH handling.
5977                 (mips_restore_gp): Use ptr_mode for the GP save slot.
5978                 (mips_expand_call): New function, combining the old mips.md
5979                 call and call_internal define_expands.  If the address isn't
5980                 a call_insn_operand, force it into a register.  For SVR4 PIC,
5981                 emit an exception_receiver instruction after the call.
5982                 (override_options): Only override flag_pic for TARGET_ABICALLS
5983                 if it is currently zero.  Allow mips_split_addresses when
5984                 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
5985                 Add new register class letter, 'c'.
5986                 (print_operand): Use mips_classify_constant for constant operands.
5987                 (print_operand_address): Use mips_classify_address.
5988                 (mips_output_function_prologue): Don't use .cprestore.
5989                 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
5990                 via the frame pointer if current_function_calls_eh_return.
5991                 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
5992                 to mark whether a symbol is local or global.
5993                 (build_mips16_call_stub): Expect the address of the function rather
5994                 than a MEM reference to it.  Update call generation sequences.
5995                 (mips16_optimize_gp): Remove Pmode checks.  Temporarily disable
5996                 small-data adjustments.
5997
5998                 * config/mips/mips.md: Remove 'R'/'m' memory distinction.  Use default
5999                 length for loads and stores.
6000                 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
6001                 (define_attr type): Add const and prefetch.
6002                 (define_attr length): Use mips_const_insns for const instructions.
6003                 Use mips_fetch_insns for load and store instructions.
6004                 (define_attr single_insn): New.
6005                 (define_attr can_delay): Use it.
6006                 (define_attr abicalls): Remove.
6007                 (define_delay): Use can_delay.  Always allow calls to have delay slots.
6008                 (addsi3_internal_2): Add 'Q' constraint.
6009                 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
6010                 (high): Remove.
6011                 (lowsi): Renamed from low.
6012                 (lowdi): New pattern.
6013                 (movdi, movsi): Use mips_legitimize_move.  Remove define_split.
6014                 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
6015                 (loadgp): Change operand 0 to an immediate_operand.
6016                 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
6017                 beforehand.
6018                 (cpaddsi, cpadddi): New patterns.
6019                 (tablejump_internal3, tablejump_internal4): Remove define_expands
6020                 and associated define_splits.
6021                 (call, call_value): Use mips_expand_call.
6022                 (call_internal): New, replacing all existing call_internal* insns.
6023                 (call_value_internal): Likewise call_value_internal*.
6024                 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
6025                 (untyped_call): Remove if (operands[0]) magic.
6026                 (prefetch_si_address, prefetch_si): Change type to "prefetch".
6027                 (prefetch_di_address, prefetch_di): Likewise.
6028                 (leasi, leadi): Remove.
6029                 (reloc_gprel16): New.
6030
6031                 * config/mips/5400.md (ir_vr54_hilo): Include const type.
6032                 * config/mips/5500.md (ir_vr55_hilo): Likewise.
6033                 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
6034
6035         2003-01-08  Eric Christopher  <echristo@redhat.com>
6036
6037                 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
6038                 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
6039                 configure check for libgloss.
6040                 * config/mips/elf64.h: Ditto.
6041                 * config/mips/mips.c: Remove ABI_MEABI.
6042                 * config/mips/mips.h: Ditto.
6043
6044         2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
6045
6046                 Fix merge fallout.
6047                 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
6048                 (muldi3_internal): Remove outdated comment.
6049                 (*muls_di, *umuls_di): Fix comment and 64-bitness.
6050                 (*smsac_di, *umsac_di): Likewise.  Reformat.
6051                 (umulsi3_highpart): Minor formatting tweaks.
6052                 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.  Remove
6053                 redundant scratch operand.  Minor formatting tweak.
6054                 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
6055                 (umulsi3_highpart_neg_mulhi_internal): Likewise.  Fix asm template.
6056                 (smulsi3_highpart): As for the unsigned version.
6057                 (smulsi3_highpart_internal): Likewise.
6058                 (smulsi3_highpart_mulhi_internal): Likewise.
6059                 (smulsi3_highpart_neg_mulhi_internal): Likewise.
6060                 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
6061                 (*smul_acc_di): Remove duplicated pattern.
6062                 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
6063                 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
6064                 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
6065
6066         2002-10-22  Eric Christopher  <echristo@redhat.com>
6067
6068                 * config/mips/mips-protos.h (mips_return_addr): New.
6069                 * config/mips/mips.c (mips_return_addr): New.
6070                 (movdi_operand): Remove.
6071                 (se_register_operand): Ditto.
6072                 (se_reg_or_0_operand): Ditto.
6073                 (se_uns_arith_operand): Ditto.
6074                 (se_arith_operand): Ditto.
6075                 (se_nonmemory_operand): Ditto.
6076                 (extend_operator): Ditto.
6077                 (highpart_shift_operator): Ditto.
6078                 (mips_initial_elimination_offset): Remove return address pointer
6079                 elimination.
6080                 (mips_reg_names): Remove $ra.
6081                 (mips_regno_to_class): Ditto.
6082                 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
6083                 and TARGET_64BIT.
6084                 (POINTER_BOUNDARY): Remove.
6085                 (POINTERS_EXTEND_UNSIGNED): Define to 0.
6086                 (PROMOTE_MODE): Promote to Pmode.
6087                 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
6088                 (Pmode): Define to TARGET_64BIT.
6089                 (FUNCTION_MODE): Define as Pmode.
6090                 (mips_args): Remove deleted functions.
6091                 (SIZE_TYPE): Depend on POINTER_SIZE.
6092                 (PTRDIFF_TYPE): Ditto.
6093                 (FIXED_REGISTERS): Fix extra registers.
6094                 (CALL_USED_REGISTERS): Ditto.
6095                 (CALL_REALLY_USED_REGISTERS): Ditto.
6096                 (RAP_REG_NUM): Remove.
6097                 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
6098                 (RETURN_ADDR_RTX): Define to mips_return_addr.
6099                 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
6100                 (CAN_ELIMINATE): Ditto.
6101                 * config/mips/mips.md: For DImode patterns, take into account
6102                 deletions above. Split mulsidi patterns into sign_extend and
6103                 zero_extend.
6104
6105         2002-10-16  Richard Sandiford  <rsandifo@redhat.com>
6106                     Michael Meissner  <meissner@redhat.com>
6107
6108                 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
6109                 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
6110                 mop up unnecessarly moves through LO.
6111                 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
6112                 (*macc): New pattern for ISA_HAS_MACC.  Add define_peephole2s to
6113                 change mtlo/macc sequences into mul/add sequences when a three-
6114                 address mul is available.
6115                 (*macc2): New pattern.  Add a define_peephole2 to generate it.
6116                 (*mul_sub_si): Fix contraint for operand 5.
6117                 (*muls): Use in 32-bit code as well.
6118                 (*msac): Likewise.  Use msub instead of msac in vr5500 code
6119                 if the destination is LO.  Remove duplicate define_split.
6120                 (*muls_di): Use only in 32-bit code.  Adjust rtl accordingly.
6121                 (*msac_di): Likewise.  Fix formatting.
6122                 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
6123                 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
6124                 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
6125                 (*xmulsi3_neg_highpart_mulhi): Likewise.
6126                 (*mul_acc_64bit_di): Remove.
6127                 (*mul_acc_di): Use only in 32-bit code.  Handle ISA_HAS_MACC as well.
6128
6129         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
6130
6131                 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
6132                 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
6133                 (MULTILIB_DIRNAMES): Remove long32.
6134                 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
6135                 (MULTILIB_REDUNDANT_DIRS): Remove.
6136
6137         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
6138
6139                 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
6140                 * gcc.c (driver_self_specs): New variable.
6141                 (do_self_spec): New function.
6142                 (main): Use it to process driver_self_specs.
6143
6144         2002-10-09  Richard Sandiford  <rsandifo@redhat.com>
6145
6146                 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
6147                 Remove DImode define_split for !TARGET_64BIT.
6148                 (anddi3): Remove !TARGET_64BIT support from here as well.
6149                 Change operand 2's predicate to se_uns_arith_operand.
6150                 Add constant alternatives to define_insn.
6151                 (iordi3, xordi3, *nordi3): Likewise.
6152                 (anddi3_internal1, xordi3_immed): Remove.
6153
6154         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
6155
6156                 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
6157                 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
6158                 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
6159                 * config/mips/mips.md: Apply same renaming here.
6160
6161         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
6162
6163                 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
6164                 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
6165                 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
6166                 * config/mips/mips.md (define_attr cpu): Remove r4320.
6167                 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
6168
6169         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
6170
6171                 * config/mips/mips.c (mips16_strings): New variable.
6172                 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
6173                 symbol in mips16_strings.  Free the list.
6174                 (mips_encode_section_info): Keep track of local strings.
6175
6176         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
6177
6178                 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
6179                 (sordered_df, sordered_sf): Remove.
6180                 * config/mips/mips.c (get_float_compare_codes): New fn.
6181                 (gen_int_relational, gen_conditional_move): Use it.
6182
6183         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
6184
6185                 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
6186                 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
6187                 * config/mips/mips.c (fcc_register_operand): New function.
6188                 (mips_emit_fcc_reload): New function, extracted from reload_incc.
6189                 (override_options): Allow TFmode values in float registers
6190                 if ISA_HAS_8CC.
6191                 * cnfig/mips/mips.md (reload_incc): Change destination prediate
6192                 to fcc_register_operand.  Remove misleading source constraint.
6193                 Use mips_emit_fcc_reload.
6194                 (reload_outcc): Duplicate reload_incc.
6195
6196
6197 2003-04-30  Diego Novillo  <dnovillo@redhat.com>
6198
6199         * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
6200
6201 2003-04-30  Geoffrey Keating  <geoffk@apple.com>
6202
6203         * tree-inline.c (inlinable_function_p): Back out last change, it's
6204         unnecessary.
6205
6206 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
6207
6208         * ggc-page.c (TREE_EXP_SIZE): Define.
6209         (extra_order_size_table): New entry for expr trees with
6210         two operands.
6211
6212 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
6213
6214         * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
6215         (c_expand_start_cond): Adjust.
6216         (c_expand_end_cond): Don't use warning_with_file_and_file.
6217         (shadow_warning): Likewise.
6218
6219 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
6220
6221         * tree.h (DECL_POINTER_DEPTH): Remove.
6222         (struct tree_decl): Remove pointer_depth.
6223
6224 2003-04-30  Janis Johnson  <janis187@us.ibm.com>
6225
6226         * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
6227         * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
6228         (rs6000_xcoff_encode_section_info): Remove.
6229         (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
6230         (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
6231         (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
6232         Use SYMBOL_REF_FLAGS.
6233         (rs6000_elf_encode_section_info): Call default_encode_section_info for
6234         generic flags, use SYMBOL_REF_FLAGS; code cleanups.
6235         * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
6236         (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
6237         * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
6238         (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
6239
6240 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
6241
6242         * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
6243
6244 2003-04-30  Andreas Schwab  <schwab@suse.de>
6245
6246         * doc/extend.texi (Other Builtins): Enclose multiple word data
6247         type in braces for @deftypefn.
6248
6249 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6250
6251         * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
6252
6253         * doc/install.texi (--enable-threads): Document "gnat" option.
6254
6255 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
6256
6257         * diagnostic.h (output_formatted_scalar): Tweak.
6258         * diagnostic.c (output_long_decimal): Likewise.
6259         (output_unsigned_decimal): Likewise.
6260         (output_long_unsigned_decimal): Likewise.
6261         (output_octal): Likewise.
6262         (output_long_octal): Likewise.
6263         (output_hexadecimal): Likewise.
6264         (output_long_hexadecimal): Likewise.
6265         (output_pointer): New function.
6266         (output_format): Use it.  Recognize "%p" format specifier.
6267
6268 2003-04-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6269
6270         * function.c (purge_addressof_1): Postpone insn in fewer cases.
6271
6272 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
6273
6274         * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
6275         call abort() after running out of stack space.
6276
6277         * c-typeck.c (function_types_compatible_p): Ignore incompatible
6278         'volatile' qualifiers on a function's return type in GNU mode.
6279
6280 2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
6281
6282         * expr.c (emit_group_load): Dump parallels of simd types to
6283         memory.
6284
6285 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
6286
6287         * genautomata.c (add_vect): Check undefined value for range type
6288         too.
6289
6290 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
6291
6292         * configure.in:  More general test for cmp --ignore-initial.
6293         * configure:  Regenerate.
6294
6295 2003-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6296
6297         * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
6298         (layout_decl, place_field): Likewise.
6299         Also make minor type and whitespace changes.
6300
6301         * tree.c (save_expr): Don't fold a COMPONENT_REF.
6302
6303 2003-04-29  Olivier Hainque <hainque@act-europe.fr>
6304
6305         * calls.c (expand_call): When modes of target and valreg match, force
6306         sibcall failure when target is a MEM.
6307
6308 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
6309
6310         * tree-inline.c (inlinable_function_p): Don't support inlining
6311         functions using varargs.
6312
6313         * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
6314
6315         * dwarf2out.c (output_call_frame_info): No need to output EH
6316         unwind information if all_throwers_are_sibcalls.
6317
6318         * c-semantics.c (expand_unreachable_stmt): Return a tree.
6319         (expand_stmt): Update for change to expand_unreachable_stmt.
6320         (expand_unreachable_if_stmt): Likewise.
6321
6322         * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
6323
6324 2003-04-29  Jason Merrill  <jason@redhat.com>
6325
6326         PR middle-end/10336
6327         * jump.c (never_reached_warning): Really stop looking if we reach
6328         the beginning of the function.
6329
6330 2003-04-29  Bob Wilson  <bob.wilson@acm.org>
6331
6332         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
6333         Remove redundant macros.
6334         (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
6335         (LOCAL_LABEL_PREFIX): Define unconditionally.
6336         (NO_DOT_IN_LABEL): Clarify comment.
6337         * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
6338         definition to "long int".
6339
6340 2003-04-29  Alexander Kabaev  <kan@FreeBSD.ORG>
6341
6342         bootstrap/10452
6343         * gengtype-yacc.y: Improve portability.
6344
6345 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
6346
6347         * config.gcc: Install obsolete target list for GCC 3.3.
6348         * doc/install.texi: Mention in specific-target instructions
6349         that certain configurations are deprecated.
6350
6351 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
6352
6353         * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
6354
6355 2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
6356
6357         * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
6358         * gcc.c (display_help): Likewise.
6359         * toplev.c (f_options): Likewise.
6360         * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
6361         * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
6362         * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
6363         * config/s390/s390.h (TARGET_SWITCHES): Likewise.
6364         * config/v850/v850.h (TARGET_SWITCHES): Likewise.
6365
6366 2003-04-29  J"orn Rennecke <joern.rennecke@superh.com>
6367
6368         * varasm.c (default_assemble_visibility): Use assemble_name.
6369
6370 2003-04-29  David O'Brien  <obrien@FreeBSD.org>
6371
6372         * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
6373         * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
6374         (SIZE_TYPE): New macro.
6375         * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
6376         (SET_ASM_OP): New macro.
6377         (HANDLE_SYSV_PRAGMA): New macro.
6378         (ASM_WEAKEN_LABEL): New macro.
6379
6380 2003-04-28  Mark Mitchell  <mark@codesourcery.com>
6381
6382         PR c++/10180
6383         * tree-inline.c (expand_call_inline): Call push_srcloc when
6384         encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.
6385
6386 2003-04-28  Mike Stump  <mrs@apple.com>
6387
6388         * gdbinit.in: Update to reflect new identifier structure.
6389
6390 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
6391
6392         * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
6393         (struct tree_int_cst, struct tree_real_cst, struct tree_string,
6394         struct tree_complex, struct tree_vector): Remove RTL field.
6395         (CONSTRUCTOR_ELTS): Use elt 0.
6396         * tree.def (CONSTRUCTOR): Delete first of its two operands.
6397         * varasm.c (output_constant_def): Remove early exit if
6398         TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
6399         (decode_addr_const): Don't mention TREE_CST_RTL in comment.
6400         * target.h (select_section): Don't mention TREE_CST_RTL in comment.
6401         * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
6402
6403 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
6404
6405         * c-decl.c (finish_decl): When prototype with asmspec is found
6406         for built-in, adjust built_in_decls as well as expr.c decls.
6407         * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
6408         (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
6409         * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
6410
6411 2003-04-28  Richard Henderson  <rth@redhat.com>
6412
6413         * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
6414         * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
6415         integral constant mult operand.
6416         (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
6417         (const_smulsi3_highpart_v8plus): Likewise.
6418         (const_smulsi3_highpart): Likewise.
6419         (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
6420         (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
6421         (const_umulsi3_highpart_v8plus): Likewise.
6422         (const_umulsi3_highpart): Likewise.
6423
6424 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
6425
6426         * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
6427         Define as 1.
6428
6429 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
6430
6431         * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
6432
6433 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
6434
6435         * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
6436         * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
6437         * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
6438         functions.
6439         (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
6440
6441 2003-04-28  Nick Clifton  <nickc@redhat.com>
6442
6443         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
6444
6445 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
6446
6447         * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
6448         output_constant_def, use its result instead of TREE_CST_RTL (exp).
6449         Can assume it has the form (mem (symbol_ref ".LCxxx")).
6450         (expand_expr <COMPONENT_REF>): Can always just extract the
6451         relevant field of a CONSTRUCTOR.
6452         (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
6453         ARRAY_RANGE_REF>): Make control flow explicit.
6454         * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
6455         an INTEGER_CST.
6456
6457 2003-04-27  Kazu Hirata  <kazu@cs.umass.edu>
6458
6459         * reload1.c (reg_set_luid): Fix a comment typo.
6460
6461 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
6462
6463         * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
6464         struct deferred_string, const_str_htab): Kill.
6465         (n_deferred_strings): New static variable.
6466         (build_constant_desc): Set SYMBOL_REF_DECL of the new
6467         symbol_ref to point to the constant.
6468         (output_constant_def): When a deferred string is forced out,
6469         just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
6470         (mark_constant): Likewise.
6471         (maybe_output_constant_def_contents): When deferring a string
6472         constant, just set STRING_POOL_ADDRESS_P and increment
6473         n_deferred_strings.
6474         (mark_constant_pool): Check n_deferred_strings, not the size
6475         of const_str_htab.
6476         (init_varasm_once): No need to create const_str_htab.
6477
6478         * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
6479         SYMBOL_REF_DECL points to a constant.
6480
6481 2003-04-26  Zack Weinberg  <zack@codesourcery.com>
6482
6483         * varasm.c (output_constant_def): Split out two new static
6484         functions, build_constant_desc and maybe_output_constant_def_contents.
6485         Restructure for comprehensibility.  Don't call
6486         output_addressed_constants.  Treat defstr being non-NULL for
6487         STRING_POOL_ADDRESS_P constants as an invariant.
6488         (struct deferred_string): Remove labelno field.
6489         (output_constant_def_contents): Kill labelno argument. Call
6490         output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
6491         asm_out.internal_label.
6492         (mark_constant): Update call to output_constant_def_contents.
6493         Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
6494         constants as an invariant.
6495
6496 2003-04-26  Richard Henderson  <rth@redhat.com>
6497
6498         * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
6499         (ix86_expand_call, ix86_rtx_consts): Likewise.
6500
6501 2003-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6502
6503         * doc/md.texi (cmpstr): Document additional restrictions.
6504
6505 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
6506
6507         * flags.h (time_report): Remove.
6508         * timevar.c (timevar_enable): New.
6509         (TIMEVAR_ENABLE): Remove, use timevar_enable.
6510         (timevar_init): Rename from init_timevar.
6511         * timevar.h (timevar_init): Rename from init_timevar.
6512         * toplev.c (time_report): Make static.
6513         (do_compile): Conditionally call init_timevar first.
6514         (preprocess_options): Move some code to do_compile.
6515
6516 2003-04-26  Stephane Carrez  <stcarrez@nerim.fr>
6517
6518         * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
6519
6520 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
6521
6522         * _cpp_lex_direct: Remove pointless code.
6523
6524 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
6525
6526         * doc/extend.texi (Function Attributes): Document "near" and "far"
6527         for 68HC11 and 68HC12.
6528
6529 2003-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6530
6531         * expr.c (store_field): When making temporary for store, don't
6532         make it TYPE_QUAL_CONST.
6533
6534 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
6535
6536         * toplev.c (read_integral_parameter):  Use "argument" in error
6537         message to distinguish it from actual invalid options.
6538
6539 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
6540
6541         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
6542         addition of __PIC__ and __pic__ macros.
6543         * config/xtensa/xtensa.h: Clean up indentation.
6544
6545 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
6546
6547         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
6548         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
6549         (SUBTARGET_CPP_SPEC): Define.
6550         (LIB_SPEC): Delete.
6551         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
6552         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
6553         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
6554         Define.
6555         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6556         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
6557
6558 2003-04-25  H.J. Lu <hjl@gnu.org>
6559
6560         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
6561         for return mode.
6562         (ia64_expand_builtin): Set rmode to SImode for
6563         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
6564         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
6565         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
6566         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
6567
6568 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
6569
6570         * configure.in (make_compare_target):  Test for GNU cmp and set this
6571         variable appropriately.
6572         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
6573         compare4-lean): Rename actual targets to slowcompare*.  New compare*
6574         targets depend on names based on make_compare_target.
6575         * configure:  Regenerated.
6576
6577 2003-04-25  Richard Henderson  <rth@redhat.com>
6578
6579         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
6580         to clobber ar.pfs and ar.unat.
6581         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
6582         fix test for spilling ar.pfs to the stack.
6583
6584 2003-04-25  Richard Henderson  <rth@redhat.com>
6585
6586         PR opt/10315
6587         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
6588         checks during reload; use validize_mem instead of adjust_address.
6589
6590 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
6591
6592         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
6593         return values from recog_memoized().
6594
6595 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6596
6597         PR opt/8705
6598         * gcse.c (try_replace_reg): On a successful substitution of a constant
6599         into a single set, try to simplify the source of the set.
6600         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
6601         constant source.
6602
6603 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
6604
6605         * cpplex.c (cpp_token_len): Tighten up.
6606         (cpp_token_as_text): Need extra byte now.
6607         * cpplib.c (glue_header_name): Need extra 2 bytes.
6608         * cppmacro.c (cpp_macro_definition): Need extra byte.
6609
6610 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
6611
6612         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
6613         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
6614         where they might be not present. Use their _sp64 equivalent
6615         instead.
6616
6617 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
6618
6619         * i386.md (cvtsi2sdq): Fix typo in previous patch.
6620
6621 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
6622
6623         * configure.in: Check whether mbstowcs works.
6624         * configure, config.in: Regenerate.
6625         * intl.c: Use HAVE_WORKING_MBSTOWCS.
6626
6627 2003-04-24  H.J. Lu <hjl@gnu.org>
6628
6629         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
6630         for __sync_bool_compare_and_swap_di for int return type.
6631
6632         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
6633         Change return type to int.
6634         (__sync_bool_compare_and_swap): Likewise.
6635
6636 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
6637
6638         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
6639         looking for fallthru edge.
6640
6641         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
6642         Fix.
6643         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
6644         athlon-fvector): New.
6645         (athlon_*): Revisit to match new optimization guide.
6646         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
6647         * i386.md (cvt??2?? patterns): Fix modes.
6648         (fistp patterns): Set modes.
6649
6650         Accidentaly commited with my earlier reload patch:
6651         PR c/10308
6652         * reload.c (find_reloads_address_1): Reload plus at the place of
6653         index register.
6654
6655 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
6656
6657         New GCOV_TAG_FUNCTION layout
6658         * coverage.c (struct function_list): Replace name with ident.
6659         (struct counts_entry): Likewise.
6660         (fn_ident): New.
6661         (htab_counts_entry_hash, htab_counts_entry_eq,
6662         htab_counts_entry_del): Adjust.
6663         (reads_count_file, get_coverage_counts,
6664         coverage_begin_output, coverage_end_function): Adjust.
6665         (build_fn_info_type, build_fn_info_value): Likewise.
6666         * gcov-dump.c (tag_function): Adjust.
6667         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
6668         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
6669         * gcov.c (struct function_info): Add ident.
6670         (read_graph_file, read_count_file): Adjust.
6671         * libgcov.c (gcov_exit): Adjust.
6672
6673 2003-04-23  Richard Henderson  <rth@redhat.com>
6674
6675         PR opt/8300
6676         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
6677         after initialize_uninitialized_subregs; update reg info assuming
6678         new pseudos were created.
6679
6680 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
6681
6682         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
6683         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
6684         (lex_string): Take cpp_string with full spelling.
6685         (cb_ident): Update.
6686         (c_lex): Update diagnostics.
6687         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
6688         (create_literal): New.
6689         (lex_string): Unterminated literals have type CPP_OTHER.
6690         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
6691         for CPP_OTHER.
6692         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
6693         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
6694         * cpplib.c (parse_include, do_line, do_linemarker,
6695         destringize_and_run): Update for token storing full spelling.
6696         * cpplib.h: Update token spelling types.
6697         * cppmacro.c (stringify_arg, check_trad_stringification):
6698         Update for token storing full spelling.
6699
6700 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
6701
6702         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
6703
6704 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
6705
6706         * arm.h (TARGET_OPTIONS): Add value field.
6707
6708 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
6709
6710         * doc/extend.texi: Remove duplicate 2003 copyright date.
6711
6712 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
6713
6714         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
6715         (libgcov.a): Depends on LIBGCC_DEPS.
6716         * basic-block.h (profile_info): Moved here from coverage.h. Made
6717         a pointer.
6718         * coverage.c (struct function_list): Fixed array of counter types.
6719         (struct counts_entry): Keyed by counter type, contains summary.
6720         (profile_info): Moved to profile.c.
6721         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
6722         vars.
6723         (profiler_label): Remove.
6724         (ctr_labels): New.
6725         (set_purpose, label_for_tag, build_counter_section_fields,
6726         build_counter_section_value, build_counter_section_data_fields,
6727         build_counter_section_data_values, build_function_info_fields,
6728         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
6729         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
6730         build_ctr_info_value, build_gcov_info): New.
6731         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
6732         (reads_counts_file): Adjust.
6733         (get_coverage_counts): Takes counter number. Add summary
6734         parameter. Adjust.
6735         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
6736         create counter array labels.
6737         (coverage_end_function): Adjust.
6738         (create_coverage): Adjust.
6739         (find_counters_section): Remove.
6740         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
6741         (struct section_info, struct profile_info): Remove.
6742         (profile_info): Moved to basic-block.h.
6743         (coverage_counter_ref): Takes a counter number.
6744         (get_coverage_counts): Takes a counter number. Added summary
6745         parameter.
6746         (find_counters_section): Remove.
6747         * gcov-dump.c (tag_arc_counts): Rename to ...
6748         (tag_counters): ... here. Adjust.
6749         (tag_table): Move tag_counters to 3rd entry. Remove
6750         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
6751         (dump_file): Check for counter tag values here.
6752         (tag_summary): Adjust.
6753         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
6754         * gcov-io.h (GCOV_LOCKED): New.
6755         (GCOV_TAG_ARC_COUNTS): Rename to ...
6756         (GCOV_TAG_COUNTS_BASE): ... here.
6757         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
6758         Remove.
6759         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
6760         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
6761         GCOV_TAG_IS_COUNTER): New.
6762         (struct gcov_ctr_summary): New.
6763         (struct gcov_summary): Adjust.
6764         (struct gcov_counter_section): Remove.
6765         struct gcov_counter_section_data): Remove.
6766         (struct gcov_function_info): Rename to ...
6767         (struct gcov_fn_info): ... here. Adjust.
6768         (struct gcov_ctr_info): New.
6769         (struct gcov_info): Adjust.
6770         * gcov.c (read_count_file): Adjust.
6771         (output_lines): Adjust.
6772         * libgcov.c (gcov_exit): Adjust.
6773         (__gcov_flush): Adjust.
6774         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
6775         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
6776         probably_never_executed_bb_p, compute_frequency_function): Adjust
6777         profile_info use.
6778         * profile.c (struct counts_entry): Remove.
6779         (profile_info): Define here.
6780         (get_exec_counts): Adjust get_coverage_counts call.
6781         (compute_branch_probablilities): Remove find_counters_section
6782         call.
6783         (gen_edge_profiler): Adjust coverage_counter_ref call.
6784         * tracer.c (tail_duplicate): Adjust profile_info use.
6785
6786 2003-04-23  Roger Sayle  <roger@eyesopen.com>
6787
6788         PR optimization/10339
6789         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
6790         directly instead of unsafely transforming call into a memcmp.
6791         (expand_builtin_strncmp): Likewise.
6792
6793 2003-04-22  Roger Sayle  <roger@eyesopen.com>
6794
6795         * alias.c (mark_constant_function):  Check for constancy and
6796         purity even of void functions.  Update both the function decl
6797         and the cgraph RTL info with the results.
6798
6799 2003-04-22  Roger Sayle  <roger@eyesopen.com>
6800
6801         * real.c (do_add): Change to return a bool indicating that the
6802         result of the operation may be inexact due to loss of precision.
6803         (do_multiply): Likewise.
6804         (do_divide): Likewise.
6805
6806 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
6807             Loren James Rittle  <ljrittle@acm.org>
6808
6809         * dwarf2out.c (fde_table_allocated): Mark with GTY.
6810         (decl_die_table_allocated): Likewise.
6811         (abbrev_die_table_allocated): Likewise.
6812         (line_info_table_allocated): Likewise.
6813         (separate_line_info_table_allocated): Likewise.
6814         (pubname_table_allocated): Likewise.
6815         (arange_table_allocated): Likewise.
6816         (ranges_table_allocated): Likewise.
6817         (decl_die_table_in_use): Unconditionalize; mark with GTY.
6818         (abbrev_die_table_in_use): Likewise.
6819         (line_info_table_in_use): Likewise.
6820         (separate_line_info_table_in_use): Likewise.
6821         (pubname_table_in_use): Likewise.
6822         (arange_table_in_use): Likewise.
6823         (ranges_table_in_use): Likewise.
6824         (have_location_lists): Likewise.
6825         (emitcount): New GTY-marked static, moved...
6826         (maybe_emit_file): ...from here.
6827         (label_num): New GTY-marked static, moved...
6828         (gen_internal_sym): ...from here.
6829
6830 2003-04-22  Richard Henderson  <rth@redhat.com>
6831
6832         PR 8866
6833         * rtl.h (MEM_NOTRAP_P): New.
6834         (MEM_COPY_ATTRIBUTES): Copy it.
6835         * rtlanal.c (may_trap_p): Check it.
6836         * expr.c (do_tablejump): Set it.
6837         * doc/rtl.texi (Flags): Document it.
6838
6839         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
6840
6841 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
6842
6843         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
6844         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
6845
6846 2003-04-22  Vincent Celier <celier@gnat.com>
6847
6848         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
6849         --enable-threads=gnat.
6850         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
6851         * configure.in: Add gnat to the list of thread packages
6852         * configure: Rebuild.
6853         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
6854
6855 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
6856
6857         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
6858
6859 2003-04-22  Devang Patel  <dpatel@apple.com>
6860
6861         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
6862         parameter count.
6863         (_cpp_copy_replacement_text): Same.
6864
6865 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
6866
6867         * c-lex.c (c_lex): Handle CPP_OTHER differently.
6868         * cppexp.c (_cpp_parse_expr): Similarly.
6869         * cpplex.c (SPELL_CHAR): Remove.
6870         (_cpp_lex_direct): Stray chars are saved as byte strings.
6871         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
6872         handle SPELL_CHAR.
6873         (cpp_avoid_paste): Update handling of CPP_OTHER.
6874         * cpplib.h: Spell CPP_OTHER like a number.
6875         (struct cpp_token): Remove member c.
6876         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
6877
6878 2003-04-22  David Turner <novalis@gnu.org>
6879
6880         * gbl-ctors.h: Add special license exception.
6881         * libgcc2.h: Likewise.
6882         * tsystem.h: Likewise.
6883         * gcov-io.h: Likewise.
6884
6885 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
6886
6887         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
6888         macro defaulting to original BRANCH_COST heuristic.
6889         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
6890
6891         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
6892
6893 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
6894
6895         * config/rs6000/t-spe: Merge in t-fprules into file.
6896
6897         * config.gcc: Add t-spe to powerpc-eabispe.
6898
6899 2003-04-22  Kean Johnston  <jkj@sco.com>
6900
6901         * tlink.c (recompile_files): Add missing '=' to putenv calls
6902
6903 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
6904
6905         * ginclude/stddef.h: Provide C++ safe offsetof.
6906
6907 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
6908
6909         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
6910         for reg notes, if there are no substitutions, just use a SUBREG.
6911
6912 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
6913
6914         * Makefile.in (calls.o): Depend on except.h.
6915         * calls.c: Include except.h.
6916         (emit_call_1): Call note_eh_region_may_contain_throw if
6917         appropriate.
6918         * except.c (eh_region): Add may_contain_throw.
6919         (expand_eh_region_end_cleanup): Do not include handler code when
6920         it cannot be reached.
6921         (note_eh_region_may_contain_throw): New function.
6922         * except.h (note_eh_region_may_contain_throw): New function.
6923
6924 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
6925
6926         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
6927         changes.
6928
6929 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
6930
6931         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
6932         64-bit long doubles.
6933
6934 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
6935
6936         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
6937         a number of conversions required for type consistency and previously
6938         stripped off by STRIP_NOPS.
6939
6940         * calls.c (expand_call): Prevent sibcall optimization for calls to
6941         nested subprograms.
6942
6943         * expmed.c (extract_bit_field): Reverse operands of && condition to
6944         prevent a potential division by zero in the previously first branch.
6945         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
6946
6947 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
6948
6949         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
6950         (subrange_type_die): Likewise.
6951         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
6952         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
6953
6954 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
6955
6956         Break out coverage routines to new file.
6957         * Makefile.in (COVERAGE_H): New variable
6958         (C_OBJS): Add coverage.o
6959         (coverage.o): New target.
6960         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
6961         dependencies.
6962         (GTFILES): Adjust.
6963         (gt-coverage.h): New target.
6964         (gt-profile.h): Remove.
6965         * profile.h: Remove. Move to ...
6966         * coverage.h: ... here. New. #include gcov-io.h.
6967         * gcov-io.h: Move function definitions to ...
6968         * gcov-io.c: ... here. New.
6969         * profile.c: Move coverage routines to coverage.c.
6970         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
6971         end_branch_prob): Adjust.
6972         * coverage.c: New. Coverage routines from profile.c
6973         (coverage_counter_ref, coverage_init, coverage_finish,
6974         coverage_end_function, coverage_begin_output,
6975         coverage_counter_ref, get_coverage_counts): Define.
6976         * gcov-dump.c, gcov.c: #include gcov-io.c.
6977         * libgcov.c: Likewise. Adjust.
6978         * loop-init.c: Don't #include profile.h
6979         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
6980         * rtl.h: Add coverage prototypes.
6981         * toplev.c (compile_file): Init coverage, not branch_prob.
6982         Always call coverage_finish.
6983         (rest_of_compilation): Call coverage_end_function.
6984
6985 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
6986
6987         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
6988
6989 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
6990
6991         * c-ppoutput.c (cb_include): Don't take a cpp_token.
6992         * cppfiles.c: Don't undef strcmp.
6993         (find_include_file): Don't take a cpp_token.  Check for empty
6994         file names.
6995         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
6996         (cpp_push_include): Simplify.
6997         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
6998         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
6999         (parse_include): Similary.  Don't check for zero-length filenames.
7000         (do_include_common, do_pragma_dependency): Update accordingly.
7001         * cpplib.h (struct cpp_callbacks): Change prototype of include.
7002
7003 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7004
7005         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
7006         details of conflict handling.
7007
7008         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
7009         when conversion overflows.
7010
7011         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
7012
7013         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
7014         before clearing.
7015
7016 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
7017
7018         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
7019         have the same form as the old RTL.
7020
7021 2003-04-21  Andreas Jaeger  <aj@suse.de>
7022
7023         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
7024
7025 2003-04-20  Chris Lattner  <sabre@nondot.org>
7026             Zack Weinberg  <zack@codesourcery.com>
7027
7028         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
7029         genrtl_cleanup_stmt.  Correct comment at head of
7030         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
7031
7032         * stmt.c (struct nesting): Kill n_function_calls.
7033         (expand_start_bindings): Don't set
7034         thisblock->data.block.n_function_calls.
7035         (expand_end_bindings): Compare function_call_count against 0.
7036         (expand_cleanups): Kill DONT_DO argument; all callers passed
7037         NULL_TREE. All callers updated to match.
7038
7039 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
7040
7041         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
7042         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
7043         (output_constant_def): Remove code predicated on
7044         defer_addressed_constants_flag.
7045
7046         * output.h: Remove prototypes of deleted functions.
7047         * c-typeck.c (constructor_subconstants_deferred): Kill.
7048         (struct initializer_stack): Remove 'deferred' field.
7049         (start_init): Remove all references to the above.
7050         (finish_init): Likewise. Also remove never-executed call to
7051         output_deferred_addressed_constants.  Pull assignment to
7052         defstr out of if expression.
7053
7054 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
7055
7056         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
7057         NOTE_NEWLINE): Remove.
7058         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
7059         to handle new form of line note type.
7060
7061 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
7062
7063         * target.h (encode_section_info): Add new argument carrying
7064         the RTL to be modified by the hook.
7065
7066         * varasm.c (make_decl_rtl, output_constant_def): Update calls
7067         to encode_section_info.
7068         (default_encode_section_info): Take and use RTL argument,
7069         don't use TREE_CST_RTL or DECL_RTL.
7070         * output.h: Update prototype of default_encode_section_info.
7071         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
7072         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
7073         Update calls to encode_section_info.
7074
7075         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
7076         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
7077         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
7078         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
7079         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
7080         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
7081         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
7082         except for PE dllimport/dllexport.  Update calls to
7083         default_encode_section_info.
7084
7085         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
7086         Update prototypes.
7087
7088         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
7089
7090 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7091
7092         PR/8705
7093         * pa.md (movccfp): New expander.
7094         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
7095         Reverse fcmp conditions.
7096
7097 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7098
7099         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
7100         of operand 1 correctly.
7101
7102 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
7103
7104         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
7105         * gcov.c (output_lines): Don't be so fussy about going past EOF.
7106
7107 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
7108
7109         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
7110         (cppcharset.o): New target.
7111         * c-lex.c (is_extended_char): Move to cppcharset.c.
7112         (utf8_extend_token): Delete.
7113         * cppcharset.c: New file.
7114         * cpphash.h (_cpp_valid_ucn): New.
7115         * cpplex.c (lex_identifier): Update prototype.
7116         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
7117         escapes.
7118         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
7119         in cppcharset.c.
7120         (lex_number, lex_identifier, cpp_parse_escape): Update.
7121         (_cpp_lex_direct): Update to handle UCNs.
7122         (cpp_avoid_paste): Don't paste to form a UCN.
7123
7124 2003-04-19  Roger Sayle  <roger@eyesopen.com>
7125
7126         * builtins.c (expand_builtin):  Don't expand a pure or const
7127         built-in function if the result will be ignored and none of
7128         its arguments are volatile.
7129
7130 2003-04-19  Kean Johnston  <jkj@sco.com>
7131
7132         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
7133         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
7134         target fragment now: t-sco5; dont compile crti.o.
7135         * config/i386/sco5.h: major overhaul to remove all COFF remnants
7136         and to use elfos.h for most definitions.
7137         (BSS_SECTION_ASM_OP): set correct segment attributes.
7138         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
7139         (DWARF2_UNWIND_INFO): Always set to 1.
7140         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
7141         (MD_STARTFILE_PREFIX_1): Define.
7142         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
7143         (DEFAULT_LINKER): Define if not specified to configure.
7144         (CTORS_SECTION_ASM_OP): Remove COFF crud.
7145         (DTORS_SECTION_ASM_OP): Remove COFF crud.
7146         (WINT_TYPE): Define.
7147         (SDB_DEBUGGING_INFO): Remove.
7148         (EXTRA_SECTIONS): Likewise.
7149         (EXTRA_SECTION_FUNCTIONS): Likewise.
7150         (CTOR_LIST_BEGIN): Likewise.
7151         (CTOR_LIST_END): Likewise.
7152         (INIT_SECTION_FUNCTION): Likewise.
7153         (FINI_SECTION_FUNCTION): Likewise.
7154         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
7155         (LOCAL_LABEL_PREFIX): Likewise.
7156         (NON_SAVING_SETJMP): Likewise.
7157         (RETURN_POPS_ARGS): Likewise.
7158         (ASM_OUTPUT_SKIP): Likewise.
7159         (TARGET_ASM_NAMED_SECTION): Likewise.
7160         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
7161         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
7162         (ASM_OUTPUT_IDENT): Likewise.
7163         (ASM_OUTPUT_CASE_LABEL): Likewise.
7164         (ASM_OUTPUT_ASCII): Likewise.
7165         (ASM_OUTPUT_LIMITED_STRING): Likewise.
7166         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7167         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
7168         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
7169         (ASM_FINISH_DECLARE_OBJECT): Likewise.
7170         (ASM_DECLARE_OBJECT_NAME): Likewise.
7171         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
7172         (ASM_DECLARE_FUNCTION_NAME): Likewise.
7173         (ASM_DECLARE_RESULT): Likewise.
7174         (ASM_WEAKEN_LABEL): Likewise.
7175         (SUPPORTS_WEAK): Likewise.
7176         (APPLY_RESULT_SIZE): Likewise.
7177         (LPREFIX): Likewise.
7178         (ALIGN_ASM_OP): Likewise.
7179         (ASCII_DATA_ASM_OP): Likewise.
7180         (IDENT_ASM_OP): Likewise.
7181         (ASM_SHORT): Likewise.
7182         (ASM_LONG): Likewise.
7183         (TYPE_ASM_OP): Likewise.
7184         (SIZE_ASM_OP): Likewise.
7185         (STRING_ASM_OP): Likewise.
7186         (SKIP_ASM_OP): Likewise.
7187         (EH_FRAME_SECTION_ASM_OP): Likewise.
7188         (READONLY_DATA_SECTION_ASM_OP): Likewise.
7189         (INIT_SECTION_ASM_OP): Likewise.
7190         (FINI_SECTION_ASM_OP): Likewise.
7191         (TEXT_SECTION_ASM_OP): Likewise.
7192         (DATA_SECTION_ASM_OP): Likewise.
7193         (TYPE_OPERANT_FORMAT): Likewise.
7194         (ASM_SPEC): Remove COFF code.
7195         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
7196         cause -pg to emit an error; use pcrt1elf.o with -pp
7197         (ENDFILE_SPEC): Likewise.
7198         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
7199         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
7200         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
7201         add -z alt_resolve to support weak symbols the way GCC wants them.
7202         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
7203         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
7204         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
7205         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
7206         (CRTSTUFF_T_CFLAGS_S): Define.
7207         (MULTILIB_OPTIONS): Likewise.
7208         (MULTILIB_DIRNAMES): Likewise.
7209         (MULTILIB_MATCHES): Likewise.
7210         (MULTILIB_EXTRA_OPTS): Likewise.
7211         (LIBGCC): Likewise.
7212         (INSTALL_LIBGCC): Likewise.
7213         (crti.o): Remove.
7214         * config/i386/t-sco5gas: Remove.
7215         * doc/install.texi: Updated for new OpenServer instructions.
7216         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
7217
7218 2003-04-19  Kean Johnston  <jkj@sco.com>
7219
7220         * fixinc/check.tpl: Allow user to over-ride diff program.
7221         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
7222         (sco_math): Added test for SCO math header files.
7223         (sco_regset): Added check for conflicts with ieeefp.h.
7224         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
7225         * fixinc/fixincl.x: Regenerated
7226         * fixinc/tests/base/math.h: Added sco_math tests.
7227         * fixinc/tests/base/string.h: New file.
7228         * fixinc/tests/base/sys/regset.h: New file.
7229
7230 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
7231
7232         * cpphash.h (struct cpp_buffer): Remove backup_to.
7233         * cpplex.c (BACKUP, get_effective_char): Die.
7234         (_cpp_skip_block_comment): Assume '*' is location on entry.
7235         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
7236         (IF_NEXT_IS): Update.
7237         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
7238
7239 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
7240
7241         * README.Portability: Move to a new section and obsolete K+R
7242         portability issues.
7243
7244 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
7245
7246         * rtlanal.c (subreg_offset_representable_p):  Fix call of
7247         subreg_lowpart.
7248
7249 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
7250
7251         * cpphash.h (struct cpp_reader): New member warned_dollar.
7252         * cpplex.c (continues_identifier_p): New function.
7253         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
7254         lex_number and lex_string, and simplify.
7255         (parse_slow, unescaped_terminator_p): Die.
7256         (_cpp_lex_direct): Update.
7257
7258 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7259
7260         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
7261
7262 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
7263
7264         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
7265         fork behavior.
7266
7267 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
7268
7269         * cppexp.c (eval_token): Permit true and false even if pedantic.
7270
7271 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
7272
7273         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
7274
7275 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
7276
7277         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
7278         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
7279         (struct include_file): Remove fefcnt, mapped members.
7280         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
7281         (read_include_file): Don't use mmap, terminate buffers in '\r'.
7282         (purge_cache): Don't use munmap.
7283         * cpphash.h (CPP_BUF_COLUMN): Update.
7284         (lexer_state): Remove lexing_comment.
7285         (struct _cpp_line_note): New.
7286         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
7287         next_line and need_line.  Remove col_adjust and saved_flags.
7288         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
7289         _cpp_skip_block_comment, scan_out_logical_line): New.
7290         (_cpp_init_mbchar): Remove.
7291         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
7292         (cpp_read_main_file): Set line to 1 earlier.
7293         (post_options): -traditional-cpp doesn't want trigraphs.
7294         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
7295         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
7296         _cpp_get_fresh_line): New.
7297         (handle_newline, skip_escaped_newlines, trigraph_p,
7298         continue_after_nul, _cpp_init_mbchar): Remove.
7299         (get_effective_char): Update.
7300         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
7301         (skip_line_comment): Simplify.
7302         (skip_whitespace, parse_identifier, parse_slow, parse_number,
7303         parse_string): Update.
7304         (cpp_lex_direct): Use clean lines and process line notes.  Update.
7305         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
7306         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
7307         directly.
7308         (_cpp_handle_directive): Don't set saved_flags.
7309         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
7310         cpp_undef, handle_assertion, cpp_push_buffer): Update.
7311         (_cpp_pop_buffer): Free notes.
7312         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
7313         * cpppch.c (cpp_read_state): \n terminate buffer.
7314         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
7315         (copy_comment): Use _cpp_skip_block_comment.
7316         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
7317         Simplify.
7318         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
7319         save_replacement_text): Update.
7320         (scan_out_logical_line): Update to use clean lines and process
7321         line notes.
7322         * fix-header.c (read_scan_file): Update.
7323
7324 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
7325
7326         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
7327         null begin parameter (as well as pointer to null).
7328         (__deregister_frame_info_bases): Likewise.
7329
7330 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7331
7332         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
7333         hard or virtual register and copy into pseudo if replacement fails.
7334
7335         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
7336
7337         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
7338
7339 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
7340
7341         * calls.c (expand_call): Move special case for constructor calls
7342         to right place. Ensures constructor calls used to initialize
7343         arguments get a clean outgoing argument block for themselves.
7344         Move check for stack deallocation completeness until after last
7345         deallocation.  Add stack_pointer_delta to set of state
7346         variables saved and restored along with current stack_level.
7347
7348         * integrate.c (expand_inline_function): Ensure non-const actuals
7349         don't end up const in the caller's flow after conversion to possibly
7350         const formal type.
7351
7352 2003-04-18  Vincent Celier  <celier@gnat.com>
7353
7354         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
7355         and *_DIV_EXPR as TRUNC_*_EXPR.
7356
7357 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
7358
7359         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
7360         for orphaned jump tables.
7361
7362 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
7363
7364         * reload1.c: Revert my previous patch on 2002-04-17.
7365
7366 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7367
7368         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
7369         Add Segher Boessenkool.
7370
7371 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
7372
7373         PR c/9177
7374         * c-decl.c (c_expand_body): Don't garbage collect the function
7375         body if we are going to dump it later.
7376
7377 2003-04-18  Richard Henderson  <rth@redhat.com>
7378
7379         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
7380         (alpha_end_function): Don't set them.
7381         (decl_in_text_section): Remove.
7382         (alpha_encode_section_info): Remove.
7383         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
7384         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
7385         sections, rather than decl_in_text_section results.
7386
7387 2003-04-18  Roger Sayle  <roger@eyesopen.com>
7388
7389         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
7390         and SIGN_EXTRACT.
7391
7392 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
7393
7394         PR optimization/7675
7395         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
7396         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
7397         nested functions if they refer to declarations from parent functions.
7398         * stmt.c (expand_decl): Don't put automatic variables in registers
7399         if the DECL_NONLOCAL flag is set.
7400
7401 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
7402
7403         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
7404         consider those to be movable where the source matches
7405         want_to_gcse_p.
7406         (update_ld_motion_stores): In comment, refer to
7407         compute_ld_motion_mems for validity of replacement.
7408
7409 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
7410
7411         * gcov-dump.c (tag_summary): Remove max_sum
7412         * gcov-io.h (gcov_summary, gcov_write_summary,
7413         gcov_read_summary): Kill max_sum.
7414         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
7415         message more verbose.
7416
7417         * emit-rtl.c (subreg_hard_regno):  Check that register is
7418         representable.
7419
7420         * reload.c (reload_inner_reg_of_subreg):  When register is not
7421         representable, reload the whole thing.
7422         (find_reloads): Likewsie.
7423         * rtlanal.c (subreg_representable_p):  New function.
7424
7425         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
7426         allow negative probabilities for edges from the call to exit.
7427         (branch_prob): Do not add fake edges for functions that may return
7428         twice.
7429
7430 2003-04-17  DJ Delorie  <dj@redhat.com>
7431
7432         * toplev.c (target_options): Add value field.
7433         (set_target_switch): Handle target options with values.
7434         * doc/tm.texi: Document how fixed vs variable target
7435         options work.
7436         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
7437         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
7438         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7439         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
7440         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
7441         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
7442         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
7443         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
7444         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
7445         Add value initializer to target options.
7446
7447 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
7448
7449         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
7450
7451 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
7452
7453         * reload1.c (move2add_last_cc0): New.
7454         (reload_cse_move2add): Detect implicit sets.
7455         (move2add_note_store): Notice a store into cc0.
7456
7457 2003-04-17  Roger Sayle  <roger@eyesopen.com>
7458
7459         PR c/10375
7460         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
7461         function attributes.
7462
7463 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
7464
7465         * doc/sourcebuild.texi (Test Suites): Document support for testing
7466         binary compatibility (moved from testsuite/README.compat).
7467
7468 2003-04-17  Richard Henderson  <rth@redhat.com>
7469
7470         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
7471
7472 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
7473
7474         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
7475         the one provided by the FSF.
7476
7477 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7478
7479         * doc/install.texi (Binaries): Update URL and list of platforms
7480         provided by ftp.thewrittenword.com.
7481
7482 2003-04-17  Richard Henderson  <rth@redhat.com>
7483
7484         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
7485         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
7486         * config/xtensa/xtensa.md (call, call_value): Likewise.
7487
7488 2003-04-17  Richard Henderson  <rth@redhat.com>
7489
7490         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
7491         (print_operand_address): Likewise.
7492         (ep_memory_operand): Likewise.
7493         (special_symbolref_operand): Likewise.
7494         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
7495         (v850_encode_section_info): Call default_encode_section_info.
7496         (v850_strip_name_encoding): Remove.
7497         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
7498         (ASM_OUTPUT_LABELREF): Remove.
7499         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
7500         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
7501         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
7502         (ENCODED_NAME_P): Remove.
7503         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
7504         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
7505         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
7506
7507 2003-04-17  Richard Henderson  <rth@redhat.com>
7508
7509         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
7510         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
7511         SYMBOL_REF_FUNCTION_P.
7512
7513 2003-04-17  Richard Henderson  <rth@redhat.com>
7514
7515         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
7516         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
7517         (text_segment_operand): Likewise.
7518
7519 2003-04-17  Richard Henderson  <rth@redhat.com>
7520
7521         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
7522         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
7523         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
7524         (sh_encode_section_info): Remove.
7525         (sh_strip_name_encoding): Remove.
7526         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
7527         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
7528         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
7529         (ASM_OUTPUT_LABELREF): Remove.
7530         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
7531         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
7532
7533 2003-04-17  Richard Henderson  <rth@redhat.com>
7534
7535         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
7536         (tls_model_chars): Remove.
7537         (larl_operand): Use SYMBOL_REF_FLAGS.
7538         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
7539         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
7540         (s390_output_mi_thunk): Likewise.
7541         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
7542         (s390_function_profiler): Likewise.
7543         (s390_encode_section_info): Use default_encode_section_info
7544         and SYMBOL_FLAG_ALIGN1.
7545         (s390_strip_name_encoding): Remove.
7546         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
7547         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
7548         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
7549
7550 2003-04-17  Richard Henderson  <rth@redhat.com>
7551
7552         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
7553         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
7554         (print_operand_address): Likewise.
7555
7556         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
7557         * config/ns32k/ns32k.c (expand_block_move): Don't check
7558         flag_unroll_loops.
7559
7560 2003-04-17  Richard Henderson  <rth@redhat.com>
7561
7562         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
7563         SYMBOL_REF_FLAG.
7564
7565 2003-04-17  Richard Henderson  <rth@redhat.com>
7566
7567         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
7568
7569         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
7570         (SYMBOL_REF_MODEL): New.
7571         (LIT_NAME_P): Move from m32r.h.
7572         (m32r_select_section): Remove.
7573         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
7574         (m32r_strip_name_encoding): Remove.
7575         (m32r_in_small_data_p): New.
7576         (small_data_operand): Use SYMBOL_REF_SMALL_P.
7577         (addr24_operand): Use SYMBOL_REF_MODEL.
7578         (call26_operand): Likewise.
7579         (addr32_operand): Tidy.
7580         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
7581         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
7582         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
7583         (READONLY_DATA_SECTION_ASM_OP): Remove.
7584         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
7585         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
7586         (TARGET_ASM_SELECT_SECTION): Remove.
7587         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
7588         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
7589         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
7590         (ASM_OUTPUT_LABELREF): Remove.
7591
7592 2003-04-17  Richard Henderson  <rth@redhat.com>
7593
7594         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
7595         (encode_section_info): Remove.
7596         * config/ip2k/ip2k-protos.h: Update.
7597
7598 2003-04-17  Richard Henderson  <rth@redhat.com>
7599
7600         * varasm.c (default_encode_section_info): Don't set
7601         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
7602         * config/i370/i370.c (i370_encode_section_info): Remove.
7603         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
7604         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
7605         * config/i370/i370.md (movsi): Likewise.
7606
7607         * config/i370/t-i370: Add missing backslash.
7608
7609 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
7610
7611         * doc/invoke.texi (inline-limit): Fix pasto.
7612
7613 2003-04-17  Richard Henderson  <rth@redhat.com>
7614
7615         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
7616         (small_call_insn_operand): Use it.
7617         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
7618         (h8300_eightbit_constant_address_p): Use it.
7619         (SYMBOL_FLAG_TINY_DATA): New.
7620         (h8300_tiny_constant_address_p): Use it.
7621         (h8300_encode_label, h8300_strip_name_encoding): Remove.
7622         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
7623         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
7624         (ASM_OUTPUT_LABELREF): Remove.
7625
7626 2003-04-16  Richard Henderson  <rth@redhat.com>
7627
7628         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
7629         all users with SYMBOL_REF_SMALL_P.
7630         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
7631         (frv_encode_section_info): Remove.
7632         (frv_strip_name_encoding): Remove.
7633         (frv_in_small_data_p): Merge tests from encode_section_info.
7634         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
7635         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
7636         (SDATA_NAME_P): Remove.
7637         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
7638         (ASM_OUTPUT_LABELREF): Remove.
7639         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
7640
7641         * config/frv/frv.c (frv_asm_out_constructor): New.
7642         (frv_asm_out_destructor): New.
7643         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
7644         (DTORS_SECTION_ASM_OP): New.
7645         (ASM_OUTPUT_CONSTRUCTOR): Remove.
7646         (ASM_OUTPUT_DESTRUCTOR): Remove.
7647
7648 2003-04-16  Richard Henderson  <rth@redhat.com>
7649
7650         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
7651         SYMBOL_REF_LOCAL_P; abort if not pic.
7652         (cris_encode_section_info): Remove.
7653
7654 2003-04-16  Richard Henderson  <rth@redhat.com>
7655
7656         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
7657         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
7658
7659         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
7660         flag_inline_trees.
7661
7662 2003-04-16  Richard Henderson  <rth@redhat.com>
7663
7664         * config/avr/avr.c (avr_encode_section_info): Remove.
7665         (avr_insert_attributes): New.
7666         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
7667         (avr_assemble_integer): Likewise.
7668
7669 2003-04-16  Richard Henderson  <rth@redhat.com>
7670
7671         * arc.c (arc_encode_section_info): Remove.
7672         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
7673         (arc_print_operand, arc_print_operand_address): Likewise.
7674         * arc.h (EXTRA_CONSTRAINT): Likewise.
7675
7676 2003-04-16  Roger Sayle  <roger@eyesopen.com>
7677
7678         * c-semantics.c (find_reachable_label): New function to find a
7679         potentially reachable label in an expression.
7680         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
7681         assumes the start of the IF_STMT is unreachable (dead) code.
7682         (expand_unreachable_stmt): Similar to expand_stmt but assumes
7683         the start of the statement list is unreachable (dead) code.
7684         (genrtl_if_stmt):  If the controlling expression of the IF
7685         is constant, use expand_unreachable_stmt for the THEN or ELSE
7686         clause as appropriate.
7687         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
7688         the body of a SWITCH statement.
7689         (expand_stmt): The code immediately following a "return",
7690         "break", "continue" or "goto" is unreachable.
7691         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
7692
7693 2003-04-16  Richard Henderson  <rth@redhat.com>
7694
7695         * rtl.h (MEM_ALIAS_SET): Update documentation.
7696         * doc/rtl.texi (Special Accessors): New node.
7697         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
7698
7699 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
7700
7701         * reload1.c (reload_cse_noop_set_p): Return false if mode of
7702         SET_DEST is not the same as that returned by...
7703         * cselib.h (cselib_reg_set_mode): ... new function.
7704         * cselib.c (cselib_reg_set_mode): Define it.
7705         (REG_VALUES): Document semantics of first element as set mode.
7706         (cselib_subst_to_values): Skip first element if ELT is NULL.
7707         (cselib_lookup): Likewise.  Insert past the first element.
7708         (cselib_invalidate_regno): NULLify first element.
7709         (cselib_record_set): Set first element.
7710
7711 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
7712
7713         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
7714         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
7715         * tree.h: Add prototypes for the two new functions.
7716         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
7717         updates introduced in the previous revision by call to saved_expr_p.
7718         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
7719
7720         * expr.c (store_field): Force usage of bitfield instructions when
7721         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
7722         (expand_expr, case BIT_FIELD_REF): likewise.
7723
7724 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
7725
7726         PR middle-end/8866
7727         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
7728         jumptables.
7729
7730 2003-04-16  Richard Henderson  <rth@redhat.com>
7731
7732         * config/ia64/ia64.c (sdata_symbolic_operand): Use
7733         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
7734         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
7735         (function_operand): Use SYMBOL_REF_FUNCTION_P.
7736         (ia64_expand_load_address): Likewise.
7737         (ia64_assemble_integer): Likewise.
7738         (ia64_encode_section_info): Remove.
7739         (ia64_strip_name_encoding): Remove.
7740         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
7741         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
7742
7743 2003-04-16  Richard Henderson  <rth@redhat.com>
7744
7745         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
7746         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
7747         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
7748         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
7749         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
7750         (global_symbolic_operand): Similarly.
7751         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
7752         (tls_symbolic_operand_type): Likewise.
7753         (alpha_encode_section_info): Use default_encode_section_info.
7754         (alpha_strip_name_encoding): Remove.
7755         (get_tls_get_addr): Split out from ...
7756         (alpha_legitimize_address): ... here.
7757         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
7758         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
7759         (alpha_initialize_trampoline): Use init_one_libfunc.
7760         (alpha_setup_incoming_varargs): Mark unused parameters.
7761         (alpha_initial_elimination_offset): Likewise.
7762         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
7763         (unicosmk_unique_section): Use default_strip_name_encoding.
7764         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
7765
7766 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
7767
7768         * config.gcc: Add t-spe for eabispe.
7769
7770         * config/rs6000/t-spe: New.
7771
7772 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
7773
7774         Re-apply this patch:
7775
7776         2002-05-16  Dale Johannesen  <dalej@apple.com>
7777           * combine.c (cant_combine_insn_p):  Reenable combinations
7778           involving hard regs unless CLASS_LIKELY_SPILLED_P.
7779
7780 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7781
7782         PR/10271
7783         * pa-protos.h (function_arg): Remove last argument.
7784         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
7785         * pa.h (struct hppa_args): Add member incoming.
7786         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
7787         member incoming.
7788         (FUNCTION_ARG): Revise call to function_arg.
7789         (FUNCTION_INCOMING_ARG): Delete.
7790
7791 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
7792
7793         * configure.in: Unify the code which creates symlinks to a
7794         just-built as, ld, objdump, and nm with the code that detects
7795         their presence for purposes of feature tests.
7796         * configure: Regenerate.
7797
7798 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
7799
7800         * varasm.c (output_constant_def): Do not consult
7801         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
7802         (after_function_constants, output_after_function_constants): Delete.
7803         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
7804         * config/mips/mips-protos.h, config/mips/mips.c
7805         (mips16_constant_after_function_p): Delete.
7806         * config/mips/mips.h: Delete #if-0-ed definition of
7807         CONSTANT_AFTER_FUNCTION_P.
7808         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
7809         mention of CONSTANT_AFTER_FUNCTION_P in comment.
7810
7811 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
7812
7813         * tree.c (next_decl_uid): Mark with GTY.
7814         (next_type_uid): Likewise.
7815
7816 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
7817
7818         PR target/9594:
7819         * sh.c (barrier_align): Also recognize stuff_delay_slot as
7820         an indicator that a barrier was created by branch splitting.
7821
7822 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
7823
7824         * c-decl.c (implicitly_declare): Copy declarations that are going
7825         to be placed in a local scope.
7826
7827 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
7828
7829         * invoke.texi (Spec Files): Wrap if-exists-else example.
7830         (MCore): Remove duplicate @itemx entries and @opindex entries.
7831
7832 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
7833
7834         * unwind.inc (_Unwind_Backtrace): New function.
7835         * unwind.h (_Unwind_Backtrace): Declare it.
7836         * libgcc-std.ver (_Unwind_Backtrace): Export it.
7837
7838 2003-04-14  Jason Merrill  <jason@redhat.com>
7839
7840         PR middle-end/10336, c++/10401
7841         * jump.c (never_reached_warning): Also stop looking if we reach the
7842         beginning of the function.
7843
7844 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7845
7846         PR target/10338
7847         PR bootstrap/10198
7848         PR bootstrap/10140
7849         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
7850
7851 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
7852
7853         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
7854
7855 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7856
7857         * optabs.c (expand_binop): In multi-word add cases, ensure
7858         XTARGET is copied to TARGET if they are different.
7859
7860 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
7861
7862         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
7863         to region, possible after integration of function with unreachable
7864         regions that were optimized away.
7865
7866 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
7867
7868         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
7869         instead of TOC_REGISTER in epilogue in
7870         current_function_calls_eh_return functions.
7871
7872 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
7873
7874         * doc/extend.texi (Empty Structures): Correct description of G++'s
7875         handling of these structures.
7876
7877         * c-decl.c (grokdeclarator): Reject extern redeclarations of
7878         static variables.
7879
7880 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
7881
7882         * config/rs6000/rs6000.md (define_constants): Define constants for
7883         all UNSPEC usage, including new values for TLS support.
7884         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
7885         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
7886         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
7887         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
7888         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
7889         eh_set_lr_di): Use them.
7890         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
7891         rs6000_emit_epilogue) Use them.
7892
7893         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
7894
7895 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
7896
7897         * Makefile.in (c-opts.o): Use custom action.
7898
7899 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
7900
7901         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
7902
7903 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7904
7905         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
7906         handle "superflat arrays" in Ada.
7907
7908         * integrate.c (expand_inline_function): Don't inline if would
7909         lose /u on a BLKmode TARGET.
7910
7911 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
7912
7913         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
7914         extracted from dbxout_type.
7915         (dbxout_range_type): print large bounds in octal format.
7916         (dbxout_type): Replace extracted code by call to
7917         print_int_cst_bounds_in_octal_p.
7918
7919         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
7920         of DW_LANG_Ada83 for Ada units.
7921
7922 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
7923
7924         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
7925         temporary used to round CONST_INT sizes.
7926
7927         * tree.c (int_fits_type_p): Extract generic checks from the case
7928         of constant type bounds. Refine the checks against constant type
7929         bounds to allow for possible decisions against each of these bounds
7930         without requiring both bounds to be constant.
7931         (tree_int_cst_msb): Put back.
7932         * tree.h (tree_int_cst_msb): Likewise.
7933
7934         * global.c (global_conflicts): Prevent allocation of call clobbered
7935         hard regs to pseudos live across abnormal edges, as later passes are
7936         not ready to handle them.
7937
7938         * fold-const.c (fold): Reorder tests for conditional expressions.
7939
7940         * expr.c (highest_pow2_factor): Return unsigned.
7941         * expr.h (offset_address): Likewise.
7942         * emit-rtl.c (offset_address): POW2 argument now unsigned.
7943
7944 2003-04-14  Roger Sayle  <roger@eyesopen.com>
7945
7946         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
7947         string literals at compile-time.
7948
7949 2003-04-14  Roger Sayle  <roger@eyesopen.com>
7950
7951         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
7952         comparison operation and c1/c2 are floating point constants into
7953         x swap(cmp) (c1 - c2).
7954
7955 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
7956
7957         * genautomata.c (output_translate_vect): Fix a typo in loop
7958         condition.
7959
7960 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
7961
7962         PR target/10377
7963         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
7964         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
7965         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
7966         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
7967         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
7968         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
7969         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
7970         ("*extopqihi_swap_side", "*extopqisi_swap_side")
7971         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
7972         When next to constraint R, replace constraint i with n.
7973
7974 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
7975
7976         PR opt/10024
7977         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
7978
7979 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
7980
7981         * doc/contrib.texi (Contributors): Correct my entry.
7982
7983 2003-04-13  Roger Sayle  <roger@eyesopen.com>
7984
7985         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
7986         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
7987         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
7988         implies DECL_BUILT_IN to simplify logic.
7989         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
7990
7991 2003-04-13  Roger Sayle  <roger@eyesopen.com>
7992
7993         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
7994         (BT_FN_PTR_SIZE_SIZE): Likewise.
7995         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
7996         New built-in functions for malloc, calloc and strdup respectively.
7997         * calls.c (special_function_p): No need to handle malloc-like
7998         functions any longer.  ECF_MALLOC is set via built-in attributes.
7999
8000         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
8001
8002         * doc/extend.texi: Document these new built-in functions.
8003
8004 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8005
8006         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
8007         (expand_builtin_stpcpy): New.
8008         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
8009         * builtins.def: Add mempcpy & stpcpy support.
8010         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
8011
8012 2003-04-13  Nick Clifton  <nickc@redhat.com>
8013
8014         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
8015         "GCC".
8016         * config/rs6000/40x.md, config/rs6000/603.md,
8017         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
8018         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
8019         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
8020         config/rs6000/aix43.h, config/rs6000/aix51.h,
8021         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
8022         config/rs6000/altivec.h, config/rs6000/altivec.md,
8023         config/rs6000/beos.h, config/rs6000/darwin.h,
8024         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
8025         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
8026         config/rs6000/freebsd.h, config/rs6000/gnu.h,
8027         config/rs6000/host-darwin.c, config/rs6000/linux.h,
8028         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
8029         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
8030         config/rs6000/netbsd.h, config/rs6000/power4.md,
8031         config/rs6000/rios1.md, config/rs6000/rios2.md,
8032         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
8033         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
8034         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
8035         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
8036         config/rs6000/spe.md, config/rs6000/sysv4.h,
8037         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
8038         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
8039
8040 2003-04-13  Nick Clifton  <nickc@redhat.com>
8041
8042         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
8043         support for -mcall-aix switch.
8044         * config/rs6000/eabiaix.h: Delete.
8045         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
8046         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
8047         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
8048         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
8049         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
8050         debug_stack_info, output_function_profiler,
8051         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
8052         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
8053         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
8054         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
8055         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
8056         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
8057         multilibs.
8058         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
8059         (MULTILIB_EXCEPTIONS): Delete.
8060         (MULTILIB_MATCHES): Remove mcall-aix matches.
8061
8062         * doc/fragments.texi: Replace -mcall-aix example with an ARM
8063         one.
8064         * doc/install.texi: Delete powerpc-*-eabiaix target.
8065         * doc/invoke.texi: Remove documentation of mcall-aix switch.
8066         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
8067         * config.gcc: Delete powerpc-*-eabiaix target.
8068
8069 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
8070
8071         * doc/invoke.texi: Fix typos.
8072         * doc/tm.texi: Likewise.
8073
8074 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
8075
8076         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
8077
8078 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
8079
8080         * tree.c (build_constructor): New function.
8081         * tree.h: Prototype it.
8082
8083         * c-typeck.c (build_c_cast, pop_init_level)
8084         * profile.c (build_function_info_value, build_gcov_info_value)
8085         (create_profiler):
8086         Use build_constructor.
8087
8088         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
8089
8090         * objc/objc-act.c (build_constructor):
8091         Rename objc_build_constructor. Use build_constructor.
8092         (build_objc_string_object, objc_add_static_instance)
8093         (init_def_list, init_objc_symtab, init_module_descriptor)
8094         (generate_static_references, build_selector_translation_table)
8095         (build_descriptor_table_initializer, generate_descriptor_table)
8096         (build_protocol_initializer, build_ivar_list_initializer)
8097         (generate_ivars_list, build_dispatch_table_initializer)
8098         (generate_dispatch_table, generate_protocol_list)
8099         (build_category_initializer, build_shared_structure_initializer):
8100         Update to match.
8101
8102 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
8103
8104         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
8105
8106 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
8107
8108         * config/m68hc11/m68hc11-protos.h
8109         (m68hc11_eq_compare_operator): Declare
8110         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
8111         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
8112         (d_register_operand): Check the operand mode.
8113         (hard_addr_reg_operand): Likewise.
8114
8115 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
8116
8117         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
8118         pattern for dbcc/ibcc generation for 68HC12.
8119         ("doloop_end"): New pattern.
8120         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
8121         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
8122         ("m68hc12_dbcc_dec_qi"): New pattern.
8123         ("m68hc12_dbcc_inc_qi"): New pattern.
8124         (split): Add split for the above when we can't use dbcc/ibcc due to
8125         reloading.
8126         (peephole2): Add peephole2 to generate the above when possible.
8127
8128 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
8129
8130         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
8131         mode of operand 0.
8132         (peephole2 optimize const load): Likewise for operand 2.
8133         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
8134         clobbers CC_REGNUM.
8135         ("*rotrhi3_with_carry"): Likewise.
8136         (ashift:DI 1 split): Update pattern to create the above rotate.
8137         (lshiftrt:DI 1 split): Likewise.
8138
8139 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
8140
8141         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
8142         ("tstqi_z_used" split): Use it.
8143         ("cmphi_z_used"): Likewise.
8144         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
8145         ("cmpqi_z_used"): Likewise.
8146
8147 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
8148
8149         PR c++/7910
8150         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
8151
8152 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
8153
8154         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
8155         * configure, config.in: Regenerate.
8156         * intl.c (gcc_gettext_width): New function.
8157         * intl.h: Prototype it.
8158
8159 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
8160
8161         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
8162         recognize -mnorelax.
8163         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
8164         (REG_CLASS_NAMES): Add its name.
8165         (REG_CLASS_CONTENTS): Define its content.
8166
8167 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
8168
8169         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
8170         parameters so that offsets are valid for far definition.
8171         (__mulsi3): Likewise and use ret to return.
8172         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
8173
8174 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
8175
8176         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
8177
8178 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
8179
8180         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
8181         containing a libgcc.a, move lib* to the corresponding stage dir.
8182
8183         * Makefile.in (stage1-start, stage2-start, stage3-start,
8184         stage4-start): Move $(SPECS) to specs in stage dir.
8185         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
8186         back as $(SPECS).
8187
8188         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
8189         object files from the non-libgcc/ multilib directories as well.
8190
8191 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
8192
8193         * profile.c (read_counts_file): Initialise 'checksum'.
8194
8195         * emit-rtl.c (gen_rtx): Really correct typo.
8196
8197         PR c++/9393
8198         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
8199         * configure.in: Check for gettimeofday.
8200         * tree.c (flag_random_seed): Define.
8201         (default_flag_random_seed): New.
8202         (append_random_chars): Use flag_random_seed rather than trying
8203         to acquire randomness here.
8204         * tree.h (default_flag_random_seed): Declare.
8205         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
8206         descriptions.
8207         (decode_f_option): Handle -frandom-seed.
8208         (print_switch_values): Call default_flag_random_seed.
8209         * flags.h (flag_random_seed): Declare.
8210         * configure: Regenerate.
8211         * config.in: Regenerate.
8212         * config/alpha/t-crtfm: Use -frandom-seed.
8213
8214         * doc/extend.texi (Empty Structures): New.
8215
8216         * c-pch.c: Include flags.h.  Add comments to routines.
8217         (struct c_pch_validity): New.
8218         (get_ident): Update PCH file version number.
8219         (pch_init): Output current debugging type.
8220         (c_common_valid_pch): Check debugging type.
8221         * Makefile.in (c-pch.o): Update dependencies.
8222         * flags.h (debug_type_names): Declare.
8223         * toplev.c (debug_type_names): Move out of decode_g_option.
8224
8225 2003-04-11  Eric Christopher  <echristo@redhat.com>
8226
8227         * emit-rtl.c (gen_rtx): Fix typos.
8228
8229 2003-04-11  Richard Henderson  <rth@redhat.com>
8230
8231         * emit-rtl.c (gen_rtx): Zero '0' fields.
8232
8233 2003-04-11  Richard Henderson  <rth@redhat.com>
8234
8235         PR c++/10202
8236         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
8237         not COMPLETE_TYPE_P for re-invoking layout_decl.
8238
8239 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
8240
8241         * doc/bugreport.texi: Fix paragraph breaking between sections
8242         in preparation for TeXinfo's paragraph indentation fixes.
8243         * doc/extend.texi: Ditto.
8244         * doc/invoke.texi: Ditto.
8245         * doc/objc.texi: Ditto.
8246         * doc/gcov.texi: Wrap 'gcov' in @command{}.
8247         * doc/invoke.texi (Darwin Options): Add a preamble.
8248
8249 2003-04-11  Richard Henderson  <rth@redhat.com>
8250
8251         * config/i386/i386.c (tls_model_chars): Remove.
8252         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
8253         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
8254         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
8255         (tls_symbolic_operand_1): Likewise.
8256         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
8257         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
8258         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
8259         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
8260         bits "copied from i386.h" with default_encode_section_info.
8261
8262 2003-04-11  Richard Henderson  <rth@redhat.com>
8263
8264         * rtl.def (SYMBOL_REF): Add two 0 fields.
8265         * gengtype.c (adjust_field_rtx_def): Handle them.
8266         * print-rtl.c (print_rtx): Print them.
8267         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
8268         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
8269         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
8270         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
8271         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
8272         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
8273         (SYMBOL_FLAG_MACH_DEP): New.
8274         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
8275         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
8276         (assemble_static_space): Set SYMBOL_REF_FLAGS.
8277         (assemble_trampoline_template): Likewise.
8278         (output_constant_def, force_const_mem): Likewise.
8279         (default_encode_section_info): New.
8280         * output.h: Declare it.
8281         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
8282
8283 2003-04-11  Richard Henderson  <rth@redhat.com>
8284
8285         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
8286         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
8287         * optabs.c (init_optabs): Initialize them.
8288         (init_libfuncs): Use init_one_libfunc.
8289         * calls.c (expand_call): Use gcov_flush_libfunc.
8290         * expr.c (store_constructor): Use setbits_libfunc.
8291         * function.c (expand_main_function): Use init_one_libfunc.
8292         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
8293
8294 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
8295
8296         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
8297         documentation; add DECL_FRIEND_CONTEXT.
8298
8299 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8300
8301         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
8302         notes on linker selection and configuration for 64-bit HP-UX port.
8303         * doc/invoke.texi (hppa): Remove hppa text from description for
8304         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
8305         and -threads options.
8306
8307         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
8308         libc.a on libdld.sl when -static is specified and -nolibdld is not
8309         specified.
8310         * pa64-hpux.h (LIB_SPEC): Likewise.
8311         * pa-hpux11.h (LIB_SPEC): Likewise.
8312         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
8313         is not specified.
8314
8315 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
8316
8317         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
8318         not IDENTIFIER_LOCAL_VALUE.
8319
8320 2003-04-11  Richard Henderson  <rth@redhat.com>
8321
8322         PR c/10201
8323         * expr.c (expand_expr): Move DECL_RTL frobbing ...
8324         * stor-layout.c (layout_decl): ... here.
8325
8326 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
8327
8328         * doc/invoke.texi: Eliminate extra white-space caused by
8329         @gccoptlist{ on its own line.
8330         * doc/invoke.texi: Ensured there are two spaces between each option.
8331         * doc/invoke.texi: Re-wrapped option lines that were too wide.
8332         Added @gol to options that didn't have them.
8333
8334 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
8335
8336         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
8337         gcov-iov.h.
8338
8339         Simplify interface to gcov reading and writing.
8340         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
8341         gcov_alloc, gcov_modified, gcov_errored): Move into ...
8342         (struct gcov_var gcov_var): ... this static structure.
8343         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
8344         Return void.
8345         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
8346         read object.
8347         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
8348         (gcov_reserve_length): Remove.
8349         (gcov_write_tag): New.
8350         (gcov_write_length): Adjust.
8351         (gcov_read_summary, gcov_write_summary): Adjust.
8352         (gcov_eof, gcov_ok): Rename to ...
8353         (gcov_is_eof, gcov_is_error): ... here. Return error code.
8354         (gcov_save_position, gcov_resync): Rename to ...
8355         (gcov_position, gcov_seek): ... here.
8356         (gcov_skip, gcov_skip_string): Remove.
8357         (gcov_error): Remove.
8358         (gcov_open, gcov_close): Adjust.
8359         * gcov.c (find_source): Take const char *, copy it on allocation.
8360         (read_graph_file): Adjust.
8361         (read_count_file): Adjust.
8362         * libgcov.c (gcov_exit): Adjust.
8363         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
8364         tag_arc_counts, tag_summary): Return void. Adjust.
8365         (struct tag_format): Adjust proc member.
8366         (dump_file): Adjust gcov calls.
8367
8368 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
8369
8370         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
8371         mkfixinc.sh.
8372         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
8373         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
8374         build != host sysrooted builds.
8375         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
8376         TARGET_SYSTEM_ROOT even on sysrooted natives.
8377         * configure: Rebuilt.
8378
8379 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
8380
8381         * c-decl.c (struct binding_level): Add shadowed_tags and
8382         function_body; remove this_block, tag_transparent, and
8383         subblocks_tag_transparent; update comments.
8384         (clear_binding_level, lookup_tag_reverse): Kill.
8385         (make_binding_level): Use ggc_alloc_cleared or memset.
8386         (lookup_tag): Remove struct binding_level* parameter.  All
8387         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
8388         current_binding_level->tags if asked for thislevel_only or if
8389         we might have to diagnose "struct foo; union foo;"
8390         (pushlevel): Ignore argument.  Do not push another binding
8391         level on the transition from the parameters to the top level
8392         of the function body; just tweak the flags and proceed.
8393         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
8394         a function body, separate the parameter list from the
8395         top-level local variables.
8396         (set_block): Do nothing.
8397         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
8398         shadowed_tags if necessary.
8399         (warn_if_shadowing): Nuke the special case for local shadowing
8400         parameter.
8401         (pushdecl): Do not create a shadow entry if we are replacing
8402         an older decl in the same binding level.
8403         (pushdecl_function_level): Tweak for new way of indicating
8404         function scope.
8405         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
8406         (start_function): Don't set subblocks_tag_transparent.
8407         (finish_function): Fix up the binding_level stack for totally
8408         empty functions.  Otherwise, don't call poplevel.
8409
8410         * c-common.c (shadow_warning): MANDATORY argument is no longer
8411         necessary.  Always use plain warning.
8412         * c-common.h: Update to match.
8413
8414         * cfglayout.c (scope_to_insns_initialize): Clear block when we
8415         hit the FUNCTION_DECL.
8416         * function.c: Do not create cyclic tree structure.
8417
8418 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
8419
8420         * c-tree.h (struct lang_identifier): Replace global_value,
8421         local_value members with symbol_value, tag_value.  Kill
8422         implicit_decl and limbo_value.
8423         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
8424         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
8425         C_MISSING_PROTOTYPE_WARNED): Kill.
8426         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
8427         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
8428         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
8429         (implicit_decl_warning, lookup_name_current_level,
8430         record_function_scope_shadow): Don't prototype.
8431         (pushdecl_function_level): Prototype.
8432
8433         * c-decl.c (truly_local_externals): New variable.
8434         (struct binding_level): Adjust commentary.
8435         (get_function_binding_level, clear_limbo_values,
8436         record_function_scope_shadow): Kill.
8437         (lookup_name_current_level, implicit_decl_warning): Are now static.
8438         (any_external_decl, record_external_decl): New static functions.
8439         (clone_underlying type): Split out of pushdecl.
8440         (c_print_identifier): Update to match changes to struct
8441         lang_identifier.
8442         (poplevel): Delete #if 0 block.  Make externals invisible
8443         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
8444         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
8445         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
8446         (duplicate-decls): For real parm decl after a forward decl,
8447         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
8448         foo(...) { } with only a warning.  Say whether a previous
8449         declaration was implicit.
8450         (warn_if_shadowing): Now handles all shadowing, not just
8451         local-over-local.  Clarify comments.
8452         (pushdecl): Rewritten.  There is no longer a distinction
8453         between global and local symbol values; they're all
8454         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
8455         DECL_EXTERNAL decls, and use any_external_decl to check
8456         against previous externals.  Kill #if 0 blocks.  Don't
8457         tolerate error_mark_node being NULL.
8458         (pushdecl_top_level): Handle only those cases which
8459         Objective C (the only user) needs.
8460         (pushdecl_function_level): New function.
8461         (implicitly_declare): Create ordinary decls with
8462         C_DECL_IMPLICIT set.  Recycle old decls, however they got
8463         created.
8464         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
8465         for C_DECL_INVISIBLE symbols.
8466         (lookup_name_current_level): Likewise.  Use chain_member.
8467         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
8468         Use pushdecl_function_level.
8469         (builtin_function): Use C_DECL_INVISIBLE.
8470         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
8471         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
8472         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
8473         (identifier_global_value): Same.  Must scan
8474         global_binding_level in extremis.
8475
8476         * c-typeck.c (undeclared_variable): New static function, split
8477         from build_external_ref.
8478         (build_external_ref): Use DECL_CONTEXT, not
8479         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
8480         an instance variable.  Restructure for clarity.
8481         * objc/objc-act.c: Use identifier_global_value, not
8482         IDENTIFIER_GLOBAL_VALUE.
8483
8484 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
8485
8486         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
8487         not Working Paper.
8488         * doc/invoke.texi (C++ Dialect Options): Same.
8489
8490 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
8491
8492         * tree.c (tree_operand_check_failed): New function.
8493         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
8494         TREE_RTL_OPERAND_CHECK): New checking macros.
8495         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
8496         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
8497         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
8498         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
8499         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
8500         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
8501         checking macros.
8502
8503 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
8504
8505         PR inline-asm/8803
8506         * function.c (instantate_virtual_regs):  Verify that all ASM statements
8507         match after the virutal regs instantiation.
8508
8509 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
8510
8511         * ia64-protos.h (addp4_optimize_ok): New.
8512         * ia64.c (addp4_optimize_ok): New.
8513         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
8514         (*ptr_extend_plus_2): Ditto.
8515
8516 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
8517
8518         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
8519         not with convert_memory_address.
8520         (store_constructor): Ditto, and same for copy_size_rtx.
8521         (expand_expr): Ditto.
8522
8523 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
8524
8525         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
8526
8527 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
8528
8529         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
8530         even if it is configured to be write-through.
8531
8532 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
8533
8534         * config/s390/s390.c (larl_operand): Do not allow symbols
8535         marked with '@'.
8536         (s390_encode_section_info): Mark symbols with forced 1-byte
8537         alignment with '@'.
8538         (s390_strip_name_encoding): Strip '@'.
8539         (legitimize_pic_address): Handle symbols that are not valid
8540         LARL operands in 64-bit mode.
8541
8542 2003-04-10  Andrew Haley  <aph@redhat.com>
8543
8544         * tree-inline.c (inlinable_function_p): Disable inlining for
8545         synchronized methods.
8546
8547 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
8548
8549         * c-common.h (lang_statement_code_p): Remove declaration.
8550         (statement_code_p): Ditto.
8551         (c_common_stmt_codes): Define; list of c-common statement codes.
8552         (statement_code_p): New extern declaration.
8553         (STATEMENT_CODE_P): Define.
8554         (INIT_STATEMENT_CODES): Define.
8555         * c-common.c (statement_code_p): Kill the function, declare
8556         as an array of bools instead.
8557         (lang_statement_code_p): Remove.
8558         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
8559         (c_safe_from_p): Ditto.
8560         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
8561         to initialize the statement_code_p array.
8562         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
8563         statement_code_p.
8564         (copy_tree_r): Ditto.
8565         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
8566         statement tree codes.
8567         * cp/lex.c (cxx_init): Add missing print line break.  Use
8568         INIT_STATEMENT_CODES to initialize the statement_code_p array.
8569         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
8570         instead of statement_code_p.
8571         * cp/pt.c (tsubst_expr): Ditto.
8572         * cp/tree.c (verify_stmt_tree_r): Ditto.
8573         (cp_statement_code_p): Remove.
8574         (init_tree): Don't set lang_statement_code_p, it's gone.
8575
8576 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
8577             Zack Weinberg  <zack@codesourcery.com>
8578
8579         * regrename.c (struct du_chain): Use a bitfield for reg_class.
8580         * cse.c (struct qty_table_elem, struct table_elt, struct set):
8581         Use bitfields for fields holding enum rtx_code or
8582         enum machine_mode values.  Add comments explaining size choices.
8583
8584 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
8585
8586         * config/fp-bit.c (unpack_d): Handle pair of doubles with
8587         different signs correctly.
8588
8589 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
8590
8591         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
8592         (reg_pending_barrier): Make it of the enumeration type.
8593         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
8594         TRUE_BARRIER.
8595         (sched_analyze): Ditto.
8596         (sched_analyze_insn): Ditto.  Use anti-dependencies for
8597         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
8598         (init_deps_global): Initialize the barrier as NO_BARRIER.
8599
8600 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
8601
8602         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
8603         Check that asm insn starts on a new cycle.  Add nops after asm
8604         insn to end bundle.
8605         (bundling): Move insn type evaluation from the loop.  Call
8606         issue_nops_and_insn with the new parameter.  Ignore changing
8607         position for nops after asm insn.
8608
8609 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
8610
8611         * optabs.c: Comment that gen_add2_insn and others may actually
8612         return emitted insns, if the gen functions turn out to return
8613         emitted insns.
8614         * reload1.c (reload_cse_move2add): Cope with emitted insns from
8615         gen_add2_insn.
8616
8617 2003-04-09  Richard Henderson  <rth@redhat.com>
8618
8619         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
8620         but not tls_symbolic_operand.
8621         (ia64_expand_load_address): Remove scratch operand.
8622         (ia64_expand_tls_address): Split out from ia64_expand_move.
8623         (ia64_expand_move): Split symbolics only after reload.
8624         (ia64_emit_cond_move): New.
8625         * config/ia64/ia64-protos.h: Update.
8626         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
8627         (symbolic splitter): Accept SImode operands too.
8628         (cmove splitter): Use ia64_emit_cond_move.
8629
8630 2003-04-09  Nick Clifton  <nickc@redhat.com>
8631
8632         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
8633         newer.
8634         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
8635         instead of -mno-fpu.
8636         * config/arm/semi.h (ASM_SPEC): Likewise.
8637         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
8638         but only if -msoft-float is specified pass.  Otherwise pass
8639         -mfpu=softvfp.
8640
8641 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8642
8643         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
8644         free_EXPR_LIST_node.
8645
8646 2003-04-08  Roger Sayle  <roger@eyesopen.com>
8647
8648         * fold-const.c (fold):  Use "fold" following build in more places.
8649         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
8650         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
8651
8652 2003-04-08  Roger Sayle  <roger@eyesopen.com>
8653
8654         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
8655         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
8656         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
8657         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
8658         Delete function scope "fcode" variable to avoid shadowing.
8659
8660 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
8661
8662         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
8663         Take into account DWARF_INITIAL_LENGTH_SIZE.
8664
8665 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
8666
8667         * reorg.c (fill_slots_from_thread): When considering changing the
8668         insn following a reg-to-reg copy insn to use the source reg of the
8669         copy, bail out if there's overlap between the registers.
8670
8671 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8672
8673         * function.c (postponed_insns): New.
8674         (purge_addressof_1): Postpone processing of insns if addressofs
8675         are not put into stack.
8676         (purge_addressof): Process postponed insns.
8677
8678 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
8679
8680         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
8681         this is FP_MODE_DOUBLE .
8682         * sh.c (ra.h): #include.
8683         (push_regs): Add second parameter.  Changed all callers.
8684         If necessary, set fpscr before saving floating point registers.
8685         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
8686         do saves / restores with SZ == 1.
8687         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
8688         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
8689         registers are being restored, restore FPSCR only after restoring them.
8690
8691 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
8692
8693         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
8694         regardless of architecture.
8695         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
8696
8697 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
8698
8699         * sh.c (push_regs, calc_live_regs): Return int.  Take single
8700         HARD_REG_SET * parameter.  Changed all callers.
8701
8702 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
8703
8704         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
8705         GOTOFF operand.
8706         (legitimize_pic_address): Move plus outside the unspec.
8707         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
8708         for validity.
8709
8710 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
8711
8712         * gcov-io.h (gcov_save_position): Remove __inline__ from
8713         declaration.
8714
8715 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
8716
8717         * doc/install.texi: Use @command and @samp for single- and
8718         multi-word commands respectively.
8719         * doc/makefile.texi: Likewise.
8720         * doc/sourcebuild.texi: Likewise.
8721
8722 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
8723             Richard Henderson  <rth@redhat.com>
8724
8725         PR c/9516
8726         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
8727         favor of looping and tail recursion for TREE_LIST and binops.
8728
8729 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8730
8731         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
8732         for insns without luid.
8733
8734 2003-04-07  Glen Nakamura  <glen@imodulo.com>
8735
8736         PR opt/8634
8737         * explow.c (maybe_set_unchanging): Don't flag non-static const
8738         aggregate type initializers with RTX_UNCHANGING_P.
8739
8740 2003-04-07  Richard Henderson  <rth@redhat.com>
8741
8742         PR opt/8634
8743         * function.c (purge_addressof_1): Don't try arithmetics for
8744         unchanging memories.
8745
8746 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
8747
8748         * doc/sourcebuild.texi (Test Suites): Document testing support for
8749         gcov and profile-directed optimizations; describe gcc.misc-tests.
8750
8751 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
8752
8753         PR target/10077
8754         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
8755
8756 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
8757
8758         * doc/rtl.texi (Comparison operations): Update to
8759         record the allowed comparison modes.
8760
8761 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
8762
8763         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
8764         V2SI_type_node to opaque_V2SI_type_node.  Rename all
8765         V2SF_type_node to opaque_V2SF_type_node.
8766         (rs6000_init_builtins): Define opaque_V2SI_type_node and
8767         opaque_V2SF_type_node.
8768         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
8769         opaque_V2SF_type_node are opaque types.
8770
8771 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
8772
8773         * gcse.c (replace_store_insn): Use single_set.
8774
8775 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
8776
8777         Change gcov file interface to single file at a time.
8778         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
8779         Convert to C89 prototypes.
8780         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
8781         gcov_error, gcov_modified): New static variables.
8782         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
8783         functions.
8784         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
8785         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
8786         (gcov_read_summary, gcov_write_summary): Adjust.
8787         (gcov_save_position, gcov_reserve_length, gcov_write_length):
8788         Adjust.
8789         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
8790         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
8791         (da_file_position, da_file_seek, da_file_write, da_file_read):
8792         Remove.
8793         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
8794         * gcov.c (gcov_type): Don't typedef here.
8795         (IN_GCOV): #define
8796         (read_graph_file, read_count_file): Adjust.
8797         * gcov-dump.c (gcov_type): Don't typedef here.
8798         (IN_GCOV): #define.
8799         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
8800         Remove FILE parameter, adjust.
8801         (struct tag_format): Adjust proc member.
8802         (dump_file): Adjust.
8803         * libgcov.c (IN_LIBGCOV): #define.
8804         (gcov_exit): Adjust.
8805         * loop-init.c: Don't #include gcov-io.h
8806         * profile.c (struct counts_entry): New structure to hold counter
8807         values.
8808         (struct section_reference, struct da_index_entry): Remove.
8809         (bbg_file, da_file): Remove.
8810         (htab_counts_index_hash, htab_counts_index_eq,
8811         htab_counts_index_del): Replace with ...
8812         (htab_counts_entry_hash, htab_counts_entry_eq,
8813         htab_counts_entry_del): ... these.
8814         (cleanup_counts_index, index_counts_file): Remove.
8815         (read_counts_file): New function.
8816         (get_exec_counts): Adjust.
8817         (compute_branch_probabilities): Don't free the exec counts here.
8818         (branch_prob): Adjust.
8819         (init_branch_prob): Adjust.
8820         (end_branch_prob): Adjust.
8821
8822 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
8823
8824         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8825         -mfloat-gprs.
8826
8827         * config/rs6000/rs6000.c: Delete rs6000_fprs.
8828         Declare rs6000_float_gprs.
8829         Declare rs6000_float_gprs_string.
8830         (rs6000_parse_float_gprs_option): New.
8831         (rs6000_override_options): Genericize rs6000_parse_* calls to use
8832         rs6000_parse_yes_no_option.
8833         Change check for cpu=8540, to use TARGET_E500.
8834         (rs6000_parse_isel_option): Delete.
8835         (rs6000_parse_spe_option): Delete.
8836         (rs6000_parse_vrsave_option): Delete.
8837
8838         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
8839         Define rs6000_float_gprs_string.
8840         (TARGET_OPTIONS): Add rs6000_float_gprs option.
8841
8842         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
8843
8844         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
8845
8846 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
8847
8848         PR opt/10024
8849         * cfglayout.c (cfg_layout_redirect_edge):
8850         Redirect any branch edges unified with the fallthru one.
8851         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
8852         case fallthru edges when called via cfglayout.c
8853
8854 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
8855
8856         * c-typeck.c (output_init_element): Check for type == error_mark_node.
8857
8858 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
8859
8860         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
8861         split.
8862         (a splitter): Do zero-extension via HImode.
8863
8864 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
8865
8866         * doc/invoke.texi: Eliminate extra white-space caused by
8867         @gccoptlist{ on its own line.
8868         * doc/invoke.texi: Ensured there are two spaces between each option.
8869         * doc/invoke.texi: Re-wrapped option lines that were too wide.
8870         Added @gol to options that didn't have them.
8871
8872 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
8873
8874         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
8875
8876 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
8877
8878         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
8879         at the sizes of the relevant structures, rather than relying
8880         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
8881         sizes of any such we don't know about.  Use
8882         lang_hooks.identifier_size for IDENTIFIER_NODE.
8883
8884         (initializer_zerop): Use CONSTRUCTOR_ELTS.
8885         * tree.def: Update commentary.  Make fourth element of
8886         the definition for all 'c' and 'x' nodes zero.
8887
8888         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
8889         * langhooks-def.h: Update to match.
8890         * langhooks.c: New default, lhd_tree_size.
8891
8892         * c-common.def (SRCLOC): Kill.
8893         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
8894         Remove entirely - was already #if-ed out.
8895
8896
8897 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
8898
8899         * mklibgcc.in: Use a here document to avoid running afoul of
8900         shells that generate control-A from "echo \1".
8901
8902 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
8903
8904         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
8905         option.
8906
8907         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8908         rs6000_spe.
8909
8910         * config/rs6000/eabi.h (TARGET_E500): Define.
8911
8912         * config/rs6000/rs6000.h (TARGET_E500): Define.
8913         (TARGET_OPTIONS): Add spe= option.
8914         Declare rs6000_spe and rs6000_spe_string extern.
8915
8916         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
8917         Change TARGET_SPE to TARGET_E500.
8918         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
8919         !TARGET_FPRS.
8920         (print_operand): Same.
8921         (rs6000_generate_compare): Same.
8922         (output_cbranch): Same.
8923         (rs6000_spe): Declare.
8924         (rs6000_spe_string): Declare.
8925         (rs6000_override_options): Call rs6000_parse_spe_option.
8926         (rs6000_parse_spe_option): New.
8927
8928 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
8929
8930         * hashtable.c (gcc_obstack_init): Delete this function
8931         and everything related to it.
8932         * hashtable.h: Remove prototype.
8933         * bitmap.c (bitmap_element_allocate): Cleanup redundant
8934         defines.  Cleanup some unnecessary whitespace.
8935         * defaults.h (obstack_chunk_alloc): Redefine with
8936         appropriate casts for libiberty obstacks.
8937         (obstack_chunk_free): Ditto.
8938         (OBSTACK_CHUNK_SIZE): Define, default to 0.
8939         (gcc_obstack_init): Define as a call to _obstack_begin.
8940         * tree.c (print_obstack_statistics): Delete this unused
8941         function.
8942         * tree.h (obstack): Don't forward-declare.
8943         (print_obstack_statistics): Delete prototype.
8944         (print_obstack_name): Ditto.
8945         (gcc_obstack_init): Ditto.
8946         * rtl.h (gcc_obstack_init): Ditto.
8947         * java/jv-scan.c (gcc_obstack_init): Delete this
8948         function, its prototype and related defines.
8949         * java/jvgenmain.c (gcc_obstack_init): Delete this
8950         function, and related defines.
8951         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
8952         (obstack_chunk_free): Ditto
8953
8954 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
8955
8956         * dbxout.c (dbxout_handle_pch): Move prototype out from
8957         #if defined DBX_DEBUGGING_INFO.
8958
8959 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
8960
8961         * gcov.c (struct arc_info): Replace local_span with cycle.
8962         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
8963         (solve_flow_graph): Set is_call_return.
8964         (add_line_counts): Adjust. In block mode, blocks attach to last line.
8965         (accumulate_line_counts): Find graph cycles, not spanning tree.
8966         (output_branch_count): Adjust.
8967         (output_lines): Adjust.
8968         * doc/gcov.texi: Update.
8969
8970 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
8971
8972         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
8973         the second alternative to "#".
8974
8975 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
8976
8977         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
8978         (single_zero_operand): Likewise.
8979
8980 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
8981
8982         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
8983         * df.c: Include alloc-pool.h, not obstack.h.
8984         (df_ref_obstack): Remove.
8985         (df_ref_pool, df_link_pool): Add pools.
8986         (df_alloc): Init the new pools.
8987         (df_free): And free them.
8988         (df_link_create): Use the pools.
8989         (df_ref_create): Ditto.
8990
8991 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
8992
8993         * simplify-rtx.c: Fix formatting.
8994
8995 2003-04-05  Andrew Pinski  <apinski@apple.com>
8996
8997         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
8998         reg with reg1 == reg2 and offset1 = -8.
8999
9000 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
9001
9002         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
9003         multiply costs.  Correct Power4 divide costs.
9004         * config/rs6000/power4.md: Restore multiply and FP latency.
9005
9006 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9007
9008         * alias.c (find_base_term): Export.
9009         * rtl.h (find_base_term): Declare.
9010         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
9011         instead of flag_exceptions.  Move test for parameter passing ...
9012         (store_killed_in_insn): ... here.
9013
9014 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9015
9016         PR bootstrap/10267
9017         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
9018         for configuring.
9019
9020 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
9021
9022         * dbxout.c (scope_labelno): Add GTY.
9023         (have_used_extensions): Add GTY.
9024         (source_label_number): Add GTY.
9025         (lastfile): Add GTY.
9026         (lastfile_is_base): New.
9027         (base_input_file): New.
9028         (dbxout_handle_pch): New.
9029         (dbx_debug_hooks): Add handle_pch.
9030         (xcoff_debug_hooks): Likewise.
9031         (dbxout_function_end): Remove scope_labelno.
9032         (dbxout_init): Set base_input_file.
9033         (dbxout_handle_pch): New.
9034         (dbxout_source_file): Honour lastfile_is_base.
9035         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
9036         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
9037         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
9038         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
9039         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
9040         * debug.h (struct gcc_debug_hooks): Add handle_pch.
9041         * c-pch.c (pch_init): Don't call start_source_file, but do call
9042         handle_pch.
9043         (c_common_write_pch): Call handle_pch.
9044         (c_common_read_pch): Don't call start_source_file,
9045         or end_source_file.
9046
9047 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
9048
9049         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
9050         use of default attributes to agree MEM_ALIGN macro.
9051
9052 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
9053
9054         * dbxout.c (dbxout_type): When printing type index of range type
9055         whose bounds are printed in octal format, print type of parent type if
9056         it exists so enumerated type descriptions are not transformed
9057         into unsigned types.
9058
9059 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
9060
9061         * config/h8300/h8300-protos.h: Add a prototype for
9062         compute_a_shift_cc.
9063         * config/h8300/h8300.c (shift_one): Update the CC status.
9064         (shift_two): Likewise.
9065         (output_a_shift_cc): Set cc_inline and cc_special.
9066         (compute_a_shift_cc): New.
9067         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
9068
9069 2003-04-04  Richard Henderson  <rth@redhat.com>
9070
9071         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
9072
9073 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
9074
9075         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
9076         * fixinc/fixincl.x: Rebuilt.
9077         * fixinc/tests/base/stdio.h: Regenerated.
9078
9079 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
9080
9081         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
9082
9083 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
9084
9085         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
9086         (NORMAL_MODE).
9087         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
9088
9089 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9090
9091         * doc/contrib.texi (Contributors): Add entries for Wolfgang
9092         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
9093         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
9094         Danny Smith, and Ulrich Weigand.
9095         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
9096         entry.
9097
9098 2003-04-04  Nick Clifton  <nickc@redhat.com>
9099
9100         * config/sparc/sol2-bi.h: Revert previous delta.
9101         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
9102
9103 2003-04-04  Nick Clifton  <nickc@redhat.com>
9104
9105         * config/v850/v850.c (expand_prologue): Only use register save
9106         helper functions if long calls are not being used.
9107         Add a clobber of r11 id using long calls.
9108         (pattern_is_ok_for_prologue): Account for the extra clobber.
9109         (construct_save_jarl): Likewise.
9110         * config/v850/v850.md (prolog pattern): Do not use this pattern
9111         for v850e's.
9112
9113 2003-04-04  Andreas Schwab  <schwab@suse.de>
9114
9115         * stor-layout.c (layout_decl): Avoid syntax error in last change
9116         when PCC_BITFIELD_TYPE_MATTERS is defined but not
9117         EMPTY_FIELD_BOUNDARY.
9118
9119 2003-04-03  Jason Merrill  <jason@redhat.com>
9120
9121         PR c/10175
9122         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
9123         Look backwards for a line note.
9124
9125 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
9126
9127         * fix-header.c (read_scan_file): Defer switch processing.
9128
9129 2003-04-03  Matt Austern  <austern@apple.com>
9130
9131         * cpppch.c (reset_ht): Remove.
9132         (cpp_read_state): Remove loop to reset hashtable identifiers.
9133         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
9134         after pch file is written.
9135         * ggc.h (gt_pch_fixup_stringpool): Declare.
9136         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
9137         hashnode's value to another hashtable, then clear the original.
9138         (saved_ident_hash): Define.
9139         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
9140         store definitions in ident_hash, and clear ident_hash.
9141         (gt_pch_fixup_stringpool): Define.  Restore definitions from
9142         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
9143
9144 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
9145
9146         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
9147
9148 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
9149
9150         PR optimization/10157
9151         * gcse.c (can_copy_p): Rename it to can_copy.
9152         (can_copy_init_p): Remove.
9153         (compute_can_copy): Use can_copy instead of can_copy_p.
9154         (can_copy_p): New exported function. Call compute_can_copy.
9155         (hash_scan_set): Use it.
9156         (gcse_main): Don't call compute_can_copy.
9157         (bypass_jumps): Don't call compute_can_copy.
9158         * rtl.h (can_copy_p): Declare.
9159         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
9160         copy if the mode doesn't support copy operations.
9161
9162 2003-04-03  Jason Merrill  <jason@redhat.com>
9163
9164         * Makefile.in (unstrap): Also remove stage_last.
9165
9166         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
9167         (dwarf2out_source_line): Don't do anything if line==0.
9168
9169         * stor-layout.c (do_type_align): New fn, split out from...
9170         (layout_decl): ...here.  Do all alignment calculations for
9171         FIELD_DECLs here.
9172         (update_alignment_for_field): Not here.
9173         (start_record_layout, debug_rli): Remove unpadded_align.
9174         * tree.h (struct record_layout_info_s): Remove unpadded_align.
9175         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
9176         or DECL_MODE on the CONST_DECLs.
9177         (finish_struct): Don't mess with DECL_ALIGN.
9178
9179 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
9180
9181         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
9182
9183 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
9184
9185         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
9186         function is an interrupt handler.
9187
9188         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
9189         restoring target registers with EH_RETURN_STACKADJ_RTX; use
9190         multiple registers in round-robin fashion.
9191
9192 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9193
9194         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
9195         * system.h (CHAR_BITFIELD): New.
9196
9197 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
9198
9199         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
9200         and LE.
9201         (another peephole2): Likewise.
9202
9203 2003-04-03  Nick Clifton  <nickc@redhat.com>
9204
9205         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
9206         (DEF_ARCH64_SPEC): Likewise.
9207
9208 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
9209
9210         * i386.c (constant_address_p): Use legitimate_constant_p.
9211         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
9212
9213 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
9214
9215         * config/h8300/h8300-protos.h: Add a prototype for
9216         gtle_operator.
9217         * config/h8300/h8300.c (gtle_operator): New.
9218         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
9219         gtle_operator.
9220         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
9221         and LE.
9222
9223 2003-04-02  Richard Henderson  <rth@redhat.com>
9224
9225         * libgcc-std.ver (_Unwind_GetCFA): New.
9226         * unwind-dw2.c (_Unwind_GetCFA): New.
9227         * unwind-libunwind.c (_Unwind_GetCFA): New.
9228         * unwind-sjlj.c (_Unwind_GetCFA): New.
9229         * unwind.h: Declare it.
9230
9231 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
9232
9233         PR inline-asm/8088
9234         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
9235         when MMX/SSE is not available.
9236
9237 2003-04-02  Mike Stump  <mrs@apple.com>
9238
9239         * doc/install.texi (Specific): Update pointers to apple.com.
9240
9241 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
9242
9243         * i386.c (override_options):  Disable red zone by default on i386.
9244         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
9245         Do not test TARGET_64BIT together with TARGET_RED_ZONE
9246
9247 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
9248
9249         * config/h8300/h8300.md (a peephole2): Tighten the condition.
9250
9251 2003-04-02  Richard Henderson  <rth@redhat.com>
9252
9253         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
9254
9255 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
9256
9257         * config/h8300/h8300.md (a peephole2): New.
9258
9259 2003-04-02  Richard Henderson  <rth@redhat.com>
9260
9261         * except.c (sjlj_find_directly_reachable_regions): Recognize when
9262         must-not-throw region has been deleted.
9263
9264 2003-04-02  Richard Henderson  <rth@redhat.com>
9265
9266         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
9267         optimization when flag_exceptions not enabled.
9268
9269 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
9270
9271         * config/rs6000/rs6000.c
9272         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
9273         macros.
9274         (rs6000_issue_rate): Add case for 8540.
9275         (rs6000_use_sched_lookahead): New function.
9276
9277         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
9278         units into MU ones.
9279         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
9280         reservation before retirement.
9281         (ppc8540_multiply, ppc8540_load, ppc8540_store,
9282         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
9283         Remove additional cycle in the reservation before retirement.
9284         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
9285         reservation of ppc8540_issue.
9286
9287 2003-04-02  Andreas Schwab  <schwab@suse.de>
9288
9289         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
9290
9291 2003-04-01  Richard Henderson  <rth@redhat.com>
9292
9293         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
9294         notes for nothrow calls if flag_forced_unwind_exceptions.
9295         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
9296         (sjlj_find_directly_reachable_regions): Likewise.
9297         (reachable_handlers): Likewise.
9298         (can_throw_external): Likewise.
9299         (collect_one_action_chain): Record cleanups after catch-all and
9300         must-not-throw if flag_forced_unwind_exceptions.
9301         * flags.h (flag_forced_unwind_exceptions): Declare.
9302         * toplev.c (flag_forced_unwind_exceptions): New.
9303         (lang_independent_options): Add it.
9304         * doc/invoke.text: Add it.
9305
9306 2003-04-01  David Mosberger <davidm@hpl.hp.com>
9307
9308         * config/ia64/crti.asm: Clean up trailing whitespace.
9309         Remove trailing hashes (#) from identifiers.
9310
9311         * config/ia64/crtn.asm: Ditto.
9312
9313         * config/ia64/crtend.asm: Remove trailing hashes (#) from
9314         identifiers.
9315         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
9316         directives.  Drop explicit bundling---it just makes the code
9317         harder to read.  Don't save/restore gp needlessly.
9318
9319         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
9320         identifiers (they're only needed if the identifier would clash
9321         with a register name otherwise).
9322         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
9323         directives.  Drop explicit bundling---it just makes the code
9324         harder to read.
9325         (__do_jv_register_classes): Ditto.
9326         (.fini_array): Remove "progbits" (newer
9327         assemblers don't like wrong section-types).
9328         (.init_array): Ditto.
9329
9330 2003-04-01  Roger Sayle  <roger@eyesopen.com>
9331
9332         PR fortran/9974
9333         * gcse.c (reg_killed_on_edge): New function to test whether the
9334         given reg is overwritten by any instruction queued on an edge.
9335         (bypass_block): Ignore substitutions killed on incoming edges.
9336         Don't bypass outgoing edges that have queued instructions.
9337
9338 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
9339
9340         * real.h (EXP_BITS): Make room for...
9341         (struct real_value): ... added canonical bit.
9342         (struct real_format): Added pnan.
9343         (mips_single_format, mips_double_format, mips_extended_format,
9344         mips_quad_format): New.
9345         * real.c: Copy p to pnan in all formats.
9346         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
9347         (real_nan): Use pnan to compute significand's shift.
9348         (real_identical): Disregard significand in canonical
9349         NaNs.
9350         (real_hash): Likewise.  Take signalling into account.
9351         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
9352         Disregard significand bits in canonical NaNs.  Set all bits of
9353         canonical NaN if !qnan_msb_set.
9354         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
9355         qnan_msb_set to tell the base double format.
9356         (ibm_extended_format): Use 53 as pnan.
9357         (mips_single_format, mips_double_format, mips_extended_format,
9358         mips_quad_format): Copied from the corresponding ieee/ibm
9359         formats, with qnan_msb_set false.
9360         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
9361         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
9362         * config/mips/mips.c (override_options): Use mips_single_format
9363         and mips_double_format.  Default TFmode to mips_quad_format.
9364         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
9365         * config/mips/t-irix6: Likewise.
9366         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
9367         * config/fp-bit.c (pack_d, unpack_d): Obey it.
9368
9369 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
9370
9371         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
9372         (live_image_destructor): Reset image to initial state.
9373         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
9374
9375 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
9376
9377         * config/sparc/sparc.c (input_operand): Accept bare
9378         CONSTANT_P_RTX operands.
9379
9380 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9381
9382         * gcse.c (struct ls_expr): Added pattern_regs field.
9383         (ldst_entry): Initialize it.
9384         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
9385         (store_ops_ok): Use regs precomputed by them.
9386         (find_loads, store_killed_in_insn, load_kills_store): Change return
9387         type to bool.
9388         (store_killed_before, store_killed_after): Take position of register
9389         set in account.
9390         (reg_set_info): Store position of the setter.
9391         (gcse_main): Enable store motion.
9392         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
9393         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
9394         sharing.
9395         (simple_mem): Enable store motion of non-symbol mems.
9396         (regvec): Type changed.
9397         (LAST_AVAIL_CHECK_FAILURE): New.
9398         (compute_store_table_current_insn): New.
9399         (build_store_vectors): Computation of availability and anticipatability
9400         moved ...
9401         (compute_store_table, find_moveable_store): ... here.
9402         (delete_store): Remove senseless comment.
9403         (store_motion): Reorganize.
9404
9405 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
9406
9407         * config/mips/mips.c (override_options): Provide mappings for
9408         HI_REGNUM and LO_REGNUM.
9409         * config/mips/mips.h (MD_DBX_FIRST): Define.
9410
9411 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9412
9413         * combine.c (merge_outer_ops): Fix typo.
9414
9415         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
9416
9417 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
9418
9419         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
9420         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
9421         imul_compare.  Add lmul_compare.
9422         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
9423         in second pair of dispatch slots.  Model stores more accurately.
9424         Tweak multiply model.  Add bypasses for CR instructions dependent
9425         on complicated compares.
9426         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
9427         (muldi3): Add lmul_compare patterns.
9428         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
9429         and FPSTORE_UX to split instructions and add COMPARE,
9430         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
9431         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
9432         (rs6000_rtx_costs): Separate POWER4 multiply case.
9433
9434 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
9435
9436         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
9437         Do nothing if __builtin_return_address was not used.
9438
9439 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
9440
9441         * i386.md (test patterns):  Allow memory operand in operand1.
9442
9443 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
9444
9445         * testsuite/gcc.c-torture/execute/simd-3.c: New.
9446
9447         * expr.c (expand_expr): Handle VECTOR_CST.
9448         (const_vector_from_tree): New.
9449
9450         * varasm.c (output_constant): Handle VECTOR_CST.
9451
9452         * c-typeck.c (digest_init): Build a vector constant from a
9453         VECTOR_TYPE.
9454
9455         * config/rs6000/rs6000.c: Remove prototype for
9456         easy_vector_constant.
9457         (easy_vector_constant): Add mode parameter.  Rewrite to handle
9458         more easy constants.
9459         (rs6000_emit_move): Pass mode to easy_vector_constant.
9460         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
9461         (emit_easy_vector_insn): New.
9462         (easy_vector_same): New.
9463         (EASY_VECTOR_15): New macro.
9464         (EASY_VECTOR_15_ADD_SELF): New macro.
9465         (bdesc_2arg): Rename to xorv2si3.
9466         (easy_vector_constant_add_self): New.
9467         (input_operand): Allow vector constants.
9468
9469         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
9470         easy_vector_constant, easy_vector_constant_add_self.
9471         (EXTRA_CONSTRAINT): Add 'W'.
9472
9473         * config/rs6000/rs6000-protos.h: Add prototype for
9474         easy_vector_constant, emit_easy_vector_insn.
9475
9476         * config/rs6000/altivec.md (xorv8hi3): New.
9477         (xorv16qi3): New.
9478         Remove all _const0 patterns.
9479         (movv4si_internal): Rewrite to use code.  Add vector constant to
9480         vector alternative.  Add splitter.
9481         (movv8hi_internal): Same.
9482         (movv16qi_internal): Same.
9483         (movv4sf_internal): Same.
9484         Change the unspecs for vspltis* to use constants.
9485
9486         * config/rs6000/spe.md ("xorv4hi3"): New.
9487         ("spe_evxor"): Rename to xorv2si3.
9488         ("xorv1di3"): New.
9489         Remove all _const0 patterns.
9490         (movv2si_internal): Rewrite to use code.  Add vector constant to
9491         alternatives.  Add splitter.
9492         (movv4hi_internal): Add vector constant to alternatives.
9493         (movv1di_internal): Same.
9494         (movv2sf_internal): Same.
9495
9496 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
9497
9498         PR c/9936
9499         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
9500         variably-sized arrays in parameters.
9501         (set_save_expr_context): New function.
9502         (c_expand_body): Use it, via walk_tree.
9503
9504 2003-03-31  Eric Christopher  <echristo@redhat.com>
9505
9506         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
9507         (combinable_i3pat): Remove call to expand_field_assignment and
9508         #if 0'd code.
9509
9510 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
9511
9512         PR c++/10278
9513         * c-common.c (finish_label_address_expr): Handle the
9514         error_mark_node.
9515
9516 2003-03-31  Richard Henderson  <rth@redhat.com>
9517
9518         * real.c (real_identical): Reorg so as to not compare
9519         signalling for normals.
9520
9521 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
9522
9523         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
9524
9525 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
9526
9527         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
9528         notes as they are boggus.
9529         (m68hc11_gen_movqi): Likewise.
9530
9531 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
9532
9533         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
9534         save the soft registers after the frame pointer so that gdb can unwind
9535         the frame more easily.
9536         (expand_epilogue): Likewise in opposite order; allow to use X register
9537         as scratch if the return value is by reference.
9538
9539 2003-03-31  Jason Merrill  <jason@redhat.com>
9540
9541         PR java/10145
9542         * stor-layout.c (update_alignment_for_field): Respect
9543         DECL_USER_ALIGN for zero-length bitfields, too.
9544         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
9545         fields.
9546
9547 2003-03-31  Matt Austern  <austern@apple.com>
9548
9549         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
9550         (count_defs): Keep track of number of defs as well as total size.
9551         (write_defs): Put every definition in cpp_savedstate's defs array.
9552         (comp_hashnode): Define.  Comparison function for qsort.
9553         (cpp_write_pch_deps): Sort definitions before writing them.
9554         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
9555         (collect_ht_nodes): Define.
9556         (cpp_valid_state): When verifying that undefined identifiers in
9557         the pch file are still undefined, read a sorted list of undefined
9558         identifiers, collect all defined identifiers into a sorted list,
9559         and walk through both lists to make sure there's no match.
9560
9561 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
9562
9563         * config/h8300/h8300.md (a peephole2): New.
9564
9565 2003-03-31  Michael Matz  <matz@suse.de>
9566
9567         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
9568
9569 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
9570
9571         PR target/10177
9572         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
9573         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
9574         all call-clobbered registers as used.
9575
9576 2003-03-31  Michael Matz  <matz@suse.de>
9577
9578         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
9579         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
9580
9581 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
9582
9583         * gcov.c: Add -a & -u options.
9584         (struct arc_info): Add local_span, is_call_non_return,
9585         is_nonlocal_return, is_unconditional flags, remove is_call flag.
9586         (struct block_info): Add flags, is_call_site, is_nonlocal_return
9587         members. Make encodings a union with span member.
9588         (struct function_info): Add blocks_executed, line, src, line_next
9589         members.
9590         (struct coverage_info): Make branches a union with blocks member.
9591         (struct source_info): Add functions member.
9592         (object_summary, program_count): New global variables.
9593         (flag_all_blocks, flag_unconditional): New flags.
9594         (find_source, output_branch_count): New functions.
9595         (print_usage): Adjust.
9596         (options): Adjust.
9597         (process_args): Adjust.
9598         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
9599         <GCOV_TAG_BLOCKS>: Read flags.
9600         <GCOV_TAG_LINES>: Adjust.
9601         (read_count_file): Process SUMMARY tags.
9602         (solve_flow_graph): Set is_unconditional and clear is_call_site
9603         appropriately.
9604         (add_branch_counts): Adjust. Don't count unconditional branches.
9605         (add_line_counts): Deal with all-blocks mode, accumulate block
9606         coverage.
9607         (accumulate_line_counts): Adjust, generate local spanning tree for
9608         all-blocks mode.
9609         (output_lines): Adjust.
9610         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
9611         * doc/gcov.texi: Document.
9612
9613 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
9614
9615         * config/h8300/h8300.md: Organize peephole2's that transform
9616         (compare (reg:HI) (const_int)).
9617
9618 2003-03-31  Roger Sayle  <roger@eyesopen.com>
9619
9620         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
9621         (init_emit_once): Initialize dconstm2 and dconsthalf here.
9622         * real.h (dconstm2, dconsthalf): Add prototypes here.
9623         * real.c (real_sqrt): Use dconsthalf rather than local copy.
9624         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
9625         exp(x/2.0) remember to fold the division if possible.
9626         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
9627         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
9628         1.0/(x*x) and pow(x,0.5) as sqrt(x).
9629
9630 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
9631
9632         * config/h8300/h8300.md (a new peephole2): New.
9633
9634 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
9635
9636         * gcse.c (simple_mem): Return false for floating-point accesses
9637         if flag_float_store is true.
9638
9639 2003-03-30  Roger Sayle  <roger@eyesopen.com>
9640
9641         * gcse.c (gcse_constant_p): New function to identify constants
9642         suitable for constant propagation, including COMPARE with two
9643         integer constant arguments.
9644         (hash_scan_set): Use gcse_constant_p.
9645         (find_avail_set): Likewise.
9646         (cprop_insn): Likewise.
9647         (do_local_cprop): Likewise.
9648         (find_implicit_sets): Likewise.
9649         (find_bypass_set): Likewise.
9650
9651 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
9652
9653         * except.h: Remove definition of varray_type.
9654
9655 2003-03-30  Richard Henderson  <rth@redhat.com>
9656
9657         PR opt/10011, opt/10252:
9658         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
9659         before post-gcse cse pass.
9660
9661 2003-03-30  Roger Sayle  <roger@eyesopen.com>
9662
9663         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
9664
9665 2003-03-30  DJ Delorie  <dj@redhat.com>
9666
9667         * profile.c (instrument_edges): Make sure any newly created
9668         jump insns have correct jump label info.
9669
9670 2003-03-30  Richard Henderson  <rth@redhat.com>
9671
9672         * cfgbuild.c (make_edges): Use tablejump_p.
9673         * cfgcleanup.c (label_is_jump_target_p): Likewise.
9674         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
9675         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
9676         (try_redirect_by_replacing_jump): Likewise.
9677         (redirect_edge_and_branch): Likewise.
9678         * cse.c (fold_rtx): Likewise.
9679         * jump.c (delete_related_insns): Likewise.
9680         * rtlanal.c (get_jump_table_offset): Likewise.
9681         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
9682
9683 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9684
9685         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
9686         (STRICT2_WARN): Likewise.
9687
9688 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9689
9690         PR other/6955
9691         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
9692         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
9693
9694 2003-03-30  Richard Henderson  <rth@redhat.com>
9695
9696         PR c/10083
9697         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
9698         don't zero_extend const inputs.
9699
9700 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
9701
9702         * reload1.c (reload_cse_move2add): Fix a comment typo.
9703
9704 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
9705
9706         * config/h8300/h8300.md (a peephole2): Remove useless code.
9707
9708 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
9709
9710         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
9711         (*iorsi3_and_lshiftrt): Likewise.
9712         (*iorsi3_zero_extract): Likewise.
9713
9714 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
9715
9716         * config/h8300/h8300.md (*insv_si_8_8): New.
9717         (*insv_si_8_8_lshiftrt_8): Likewise.
9718         (a peephole2): Likewise.
9719
9720 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9721
9722         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
9723         Uniformly use bugfix instead of bug fix.
9724
9725 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9726
9727         PR doc/895
9728         * ONEWS: Remove those items that already appear in the EGCS
9729         release notes on our web pages.
9730
9731 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
9732
9733         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
9734         TARGET_HARD_FLOAT.  Reformat.
9735         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
9736
9737 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
9738
9739         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
9740         work on Solaris 2.5.1.
9741
9742 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
9743
9744         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
9745         section of h8300.md
9746         (*addsi3_and_nor_r_1): Likewise.
9747
9748 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
9749
9750         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
9751         set up before any trapping memory access if flag_non_call_exceptions.
9752
9753 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
9754
9755         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
9756
9757         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
9758
9759 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
9760
9761         * configure.in: Clarify comments.
9762         * configure: Regenerate.
9763
9764 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
9765
9766         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
9767         label even if pool empty when generating PIC.
9768         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
9769
9770 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
9771             Dhananjay Deshpande  <dhananjayd@kpit.com>
9772
9773         PR target/10205
9774         * config/h8300/h8300.c (h8300_initial_elimination_offset):
9775         Correct the offset computation when TARGET_NORMAL.
9776
9777 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
9778
9779         PR target/10067
9780         * config/sparc/sparc.md (jump pattern): Correct order
9781         when issuing the annuling marker.
9782
9783 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
9784
9785         PR c/8281
9786         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
9787         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
9788
9789 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
9790
9791         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
9792         globalize_label.
9793         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9794         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9795         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9796         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9797         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9798         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9799         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
9800
9801 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
9802
9803         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
9804         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
9805         notes after hoisting.
9806         (load_mems): Adjust replace_loop_mems call.
9807
9808 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
9809             Richard Henderson  <rth@redhat.com>
9810
9811         PR target/10114 and PR target/10084
9812         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
9813
9814 2003-03-27  Richard Henderson  <rth@redhat.com>
9815
9816         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
9817
9818 2003-03-27  Roger Sayle  <roger@eyesopen.com>
9819
9820         * fold-const.c (fold_inf_compare):  New function to simplify FP
9821         comparisons against +Infinity or -Infinity.
9822         (fold):  Optimize floating point comparisons against Infs and NaNs.
9823
9824 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
9825
9826         * libgcov.c: Provide only dummy functions if libc is not available.
9827
9828 2003-03-27  Richard Henderson  <rth@redhat.com>
9829
9830         * real.h (struct real_value): Add signalling.
9831         (EXP_BITS): Decrement.
9832         * real.c (get_canonical_qnan): Don't set MSB-1.
9833         (get_canonical_snan): Likewise.  Set signalling.
9834         (real_identical): Compare signalling.
9835         (round_for_format): Remove force-one-bit on code.
9836         (real_nan): Likewise.  Set signalling.
9837         (encode_ieee_single): Add force-one-bit code; honor signalling.
9838         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
9839         (decode_ieee_single): Set signalling.
9840         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
9841
9842 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
9843
9844         PR ada/9953
9845         * ada/Makefile.in (gnatlib configuration for HPUX): Split
9846         the general section for HPUX into specific sections for
9847         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
9848         11 case.
9849
9850 2003-03-27  Glen Nakamura  <glen@imodulo.com>
9851
9852         PR opt/10087
9853         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
9854         while incrementing giv.
9855         (record_biv): Check for duplicate biv locations and
9856         set (struct induction *) v->same if found.
9857
9858 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
9859
9860         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
9861         v0.9 API change: replace read of UNW_REG_HANDLER with
9862         unw_get_proc_info().
9863         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
9864         with unw_get_proc_info().
9865         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
9866         unw_get_proc_info().
9867
9868 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
9869
9870         * config/rs6000/8540.md: Use presence_set instead of absence_set.
9871
9872 2003-03-26  Richard Henderson  <rth@redhat.com>
9873
9874         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
9875
9876 2003-03-26  Roger Sayle  <roger@eyesopen.com>
9877
9878         PR bootstrap/10051, PR bootstrap/10169.
9879         * mips-tfile.c (init_file): Don't provide a static initializer.
9880         (initialize_init_file): Initialize the contents of init_file.
9881         (add_file): Call initialize_init_file if not already initialized.
9882
9883 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
9884
9885         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
9886         registers used for global asm variables.
9887         (s390_frame_info, s390_arg_frame_offset): Likewise.
9888         (s390_emit_prologue, s390_emit_epilogue): Likewise.
9889
9890 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
9891
9892         * config/rs6000/8540.md: New file.
9893
9894         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
9895         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
9896         reservations for imul.
9897
9898         * config/rs6000/rs6000.md: Include 8540.md.  Change
9899         delayed_compare onto mult_compare for insns generating
9900         multiplication.
9901         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
9902         New type attribute values.
9903
9904         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
9905         fpsimple instead of fp.
9906         (*divsf3_gpr): Use type vecfdiv instead of fp.
9907         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
9908         instead of vecfloat.
9909         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
9910         (spe_brinc): Use type brinc instead of veccomplex.
9911         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
9912         veccomplex.
9913         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
9914         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
9915         *movv2sf_internal): Define type attribute values for all
9916         alternatives.
9917         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
9918         of fpcompare.
9919         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
9920         instead of fpcompare.
9921
9922 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
9923
9924         * config/rs6000/power4.md: Allow delay between dispatch and
9925         function units for simple instructions.  Correct store units.
9926         Allow branch to occupy as many dispatch slots as necessary.
9927
9928 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
9929
9930         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
9931         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
9932         zero extend old to it.
9933         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
9934         operand.
9935
9936 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
9937
9938         PR target/7784
9939         * reload.c (find_reloads_address): Handle
9940         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
9941         all base registers.
9942
9943 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
9944
9945         PR other/10203
9946         * version.c: Reference the GCC web site in the URL.
9947
9948 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
9949
9950         * c-incpath.c (add_standard_paths): Add both "translated" and
9951         non-translated header paths.
9952
9953 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
9954
9955         * doc/install.texi (*-*-freebsd*): Update with known status.
9956
9957 2003-03-21  Jason Merrill  <jason@redhat.com>
9958
9959         PR optimization/10171
9960         * unroll.c (unroll_loop): Don't delete the jump at the end unless
9961         we also delete a jump at the beginning.
9962
9963 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
9964
9965         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
9966         contributor.
9967
9968 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
9969
9970         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
9971         constants are not expensive.
9972
9973 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
9974
9975         PR opt/10056
9976         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
9977         jump jumping to the next instruction.
9978         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
9979
9980 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9981
9982         * doc/passes.texi (Passes): Properly document that we do not
9983         perform jump2 any longer; remove command-line option -dJ.
9984
9985 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
9986
9987         PR optimization/8746
9988         * config/i386/i386.md (and promoting splitters): Disable HImode to
9989         SImode promoting when the sign bit matters and is not preserved, or
9990         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
9991         for size.
9992
9993 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
9994
9995         * config/h8300/h8300.md (a peephole2): Extend to support loads
9996         in QImode and HImode.
9997
9998 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
9999
10000         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
10001         _return_far
10002         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
10003         (MULTILIB_EXCEPTIONS): Likewise.
10004         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
10005         by calling some board support routine.
10006         ("call_value"): Likewise.
10007         ("*return_void"): Likewise for return.
10008         ("*return_16bit"): Likewise.
10009         ("*return_32bit"): Likewise.
10010         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
10011         for 68HC11 too.
10012         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
10013         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
10014         -mlong-calls for 68HC11.
10015         * config/m68hc11/larith.asm (declare_near): New macro.
10016         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
10017         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
10018         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
10019         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
10020         (__mulhi32): Likewise.
10021         (ret): Update macro for 68HC11.
10022         (__far_trampoline): Implement for 68HC11.
10023         (__call_a16, __call_a32, __return_void, __return_16): New support
10024         routines for 68HC11 memory bank switching calling support.
10025         (__return_32): Likewise.
10026
10027 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
10028
10029         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
10030
10031 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
10032
10033         * doc/install.texi (Testing): Mention test result links from build
10034         status pages.
10035
10036 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
10037
10038         * function.c (put_var_into_stack): Change bool parameter to int.
10039         (gen_mem_addressof): Likewise.
10040         * rtl.h (gen_mem_addressof): Likewise.
10041         * tree.h (put_var_into_stack): Likewise.
10042         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
10043         gen_mem_addressof or put_var_into_stack.
10044         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
10045         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
10046
10047 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
10048
10049         * config/h8300/h8300.md (a peephole2): New.
10050
10051 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
10052
10053         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
10054
10055 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10056
10057         * doc/contrib.texi (Contributors): Update Janis Johnson.
10058
10059 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
10060
10061         PR target/10072
10062         * combine.c (simplify_if_then_else): Check that the mode
10063         has MODE_INT class before applying the (OP Z (mult COND C2))
10064         transformation.
10065
10066 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
10067
10068         PR optimization/9414
10069         * config/sparc/sparc.md (widening peepholes): Use
10070         widen_memory_access instead of change_address.
10071
10072 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
10073
10074         PR c++/7086
10075         * c-typeck.c (c_mark_addressable): Adjust calls to
10076         put_var_into_stack.
10077         * expr.c (expand_expr): Likewise.
10078         * function.c (put_var_into_stack): Add rescan parameter.  Do not
10079         call fixup_var_refs when rescan is false.
10080         (gen_mem_addressof): Likewise.
10081         (assign_parms): Adjust calls to put_var_into_stack.
10082         (setjmp_protect): Likewise.
10083         (setjmp_protect_args): Likewise.
10084         * rtl.h (gen_mem_addressof): Change prototype.
10085         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
10086         * tree.h (put_var_into_stack): Change prototype.
10087
10088 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
10089
10090         PR middle-end/9967
10091         * builtins.c (expand_builtin_fputs): When optimizing for size,
10092         don't transform fputs into fwrite.
10093
10094 2003-03-23  Glen Nakamura <glen@imodulo.com>
10095
10096         PR c/8224
10097         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
10098         when signedness changes for division or modulus.
10099
10100 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
10101
10102         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
10103         globalize_label.
10104
10105 2003-03-23  Roger Sayle  <roger@eyesopen.com>
10106
10107         PR c/10178
10108         * stmt.c (expand_end_case_type): Check for overflow in range when
10109         determining whether to use a bit-test implementation.
10110
10111 2003-03-23  Richard Henderson  <rth@redhat.com>
10112
10113         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
10114         before flow2.
10115         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
10116
10117 2003-03-23  Richard Henderson  <rth@redhat.com>
10118
10119         PR opt/10116
10120         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
10121         from then_bb or else_bb after flow2.
10122
10123 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
10124
10125         * configure.in: Check whether it is necessary to link against
10126         libm to use ldexp.
10127         * configure: Regenerate.
10128         * Makefile.in: Add LDEXP_LIB substitution variable.
10129
10130 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
10131
10132         * config/h8300/h8300.md: Fix comment typos.
10133
10134 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10135
10136         * pa.c (output_cbranch): Fix typo in comment.
10137
10138 2003-03-22  Richard Henderson <rth@redhat.com>
10139
10140         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
10141         after reload.
10142
10143 2003-03-22  DJ Delorie  <dj at redhat dot com>,
10144         Bruce Korb  <bkorb at gnu dot org>
10145
10146         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
10147         buggy Solaris 2.6 mutex/cond initializers.
10148         (solaris_mutex_init): Rename to solaris_mutex_init_2.
10149         * fixinc/fixincl.x: Regenerate.
10150         * fixinc/tests/base/pthread.h: Update.
10151         * fixinc/fixincl.c(initialize): be explicit about the default case
10152         and indicate verbose level when being very, very verbose.
10153         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
10154
10155 2003-03-22  Andreas Jaeger  <aj@suse.de>
10156
10157         * config/i386/i386.c (ix86_init_machine_status): Return value.
10158
10159 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10160
10161         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
10162         conditional branch to the following instruction.  Use next_real_insn
10163         instead of next_active_insn.
10164         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
10165         instead of next_active_insn.
10166
10167 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
10168
10169         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
10170         instead of 'm' constraint in forced-split alternatives.
10171         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
10172         VALIDATE_ADDRESS parameter to operand_subword.
10173
10174 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
10175
10176         * config/h8300/h8300.c (notice_update_cc): Correctly handle
10177         the case where the set destination is STRICT_LOW_PART.
10178
10179 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
10180
10181         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
10182         c30 instead of a c40 processor.
10183
10184 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
10185
10186         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
10187
10188 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
10189
10190         * c-common.c: Include intl.h.
10191         (shadow_warning): Rewrite to allow better diagnostic translations.
10192         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
10193         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
10194         use it throughout.
10195         * Makefile.in (c-common.o): Add intl.h.
10196
10197 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
10198
10199         * config.gcc: Remove 'float_format'.
10200
10201         * fixproto: Define NULL and size_t in generated stdlib.h and
10202         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
10203         Rearrange file generation loop for readability.  Generate time.h,
10204         string.h if missing.
10205         * tsystem.h: Include <string.h>, <time.h> unconditionally.
10206         * config.gcc: Blow away POSIX defines.
10207
10208 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
10209
10210         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
10211
10212 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
10213
10214         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
10215         writing .interrupt command.
10216         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
10217         if it's a far or near function.
10218         ("call_value"): Likewise.
10219         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
10220         near attributes.
10221         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
10222         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
10223         (m68hc11_initial_elimination_offset): Set current_function_far
10224         according to attributes.
10225         (expand_prologue): Likewise.
10226         (trap_handler_symbol): New global to keep track of trap handlers.
10227         (m68hc11_encode_section_info): Mark symbol as far if needed; set
10228         trap symbol.
10229         (m68hc11_is_far_symbol): New function.
10230         (m68hc11_is_trap_symbol): New function.
10231         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
10232         (m68hc11_is_trap_symbol): Declare.
10233
10234 2003-03-21  Jan Hubicka  <jh@suse.cz>
10235
10236         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
10237         only when amount of saved regs changed.
10238         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
10239         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
10240
10241 2003-03-21  Jan Hubicka  <jh@suse.cz>
10242
10243         PR inline-asm/7916
10244         * function.c (instantiate_virtual_regs_lossage): New function.
10245         (instantiate_virtual_regs_1): Use it.
10246         (instantiate_virtual_regs): Do not continue in substition when insn has
10247         been deleted.
10248
10249 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
10250
10251         * combine.c (make_field_assignment): Fix a warning.
10252
10253 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
10254
10255         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
10256
10257 2003-03-21  Dale Johannesen  <dalej@apple.com>
10258
10259         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
10260         priority for R2 on Darwin.
10261         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
10262
10263 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
10264
10265         * combine.c (make_field_assignment): Remove unnecessary AND
10266         when storing into zero_extract.
10267
10268 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
10269
10270         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
10271         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
10272         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
10273         in comment.
10274
10275 2003-03-21  DJ Delorie  <dj@redhat.com>
10276
10277         * optabs.c (init_integral_libfuncs): Make sure we init at least up
10278         to "long long" size words.
10279
10280 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
10281
10282         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
10283         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
10284         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
10285
10286 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
10287
10288         PR doc-bug/9813
10289         * doc/extend.texi: Move misplaced paragraph about underscores in
10290         variables in macros.
10291
10292 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
10293             Richard Henderson  <rth@redhat.com>
10294
10295         PR optimization/8366
10296         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
10297         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
10298         PIC+SYMBOLIC_CONST in other modes than Pmode.
10299         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
10300         the form PIC+SYMBOLIC_CONST as mode dependent.
10301
10302 2003-03-21  DJ Delorie  <dj@redhat.com>
10303
10304         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
10305         sure we always emit at least one insn.
10306
10307 2003-03-21  Christopher Faylor  <cgf@redhat.com>
10308
10309         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
10310         stub t-cygming. Use common target header cygming.h. Add extra
10311         c_target_obj and cxx_target_obj file. Default cygwin to posix
10312         threading. Enforce i386 as float format.
10313         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
10314         Remove cygwin.h as target header. Use common target header
10315         cygming.h  Enforce i386 as float format. Correct typo.
10316         * config/i386/cygming.h: New file, containing definitions
10317         common to mingw32 and cygwin.
10318         * config/i386/cygwin.h: Remove definitions common to cygwin and
10319         mingw.  Simplify special spec logic.  Define "wrappers" around
10320         certain include path defines to accommodate -mno-cygwin.
10321         Remove some #if 0'ed code.
10322         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
10323         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
10324         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
10325         * config/i386/mingw32.h: Remove definitions common to cygwin and
10326         mingw.
10327         (EXTRA_OS_CPP_BUILTINS): Adjust.
10328         (TARGET_VERSION): Define.
10329         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
10330         mingw32.h definitions.
10331         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
10332         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
10333         Add compilation rules for cygwin1.o cygwin2.o.
10334         * config/i386/cygwin1.c: New file.
10335         * config/i386/cygwin2.c: New file.
10336         * config/i386/t-cygming: New makefile stub.
10337
10338 2003-03-20  Richard Henderson  <rth@redhat.com>
10339
10340         * fold-const.c (extract_muldiv_1): Revert changing order of
10341         operands in case MULT_EXPR of 2003-02-16 patch.
10342
10343 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
10344         Merge changes from new-regalloc-branch
10345
10346         From Michael Matz  <matz@suse.de>
10347         * df.c (df_ref_record_1): Move init of loc to safe point.
10348         Only recurse on interesting things in parallels.
10349         Handle CLASS_CANNOT_CHANGE_MODE smarter.
10350         (df_uses_record): Ditto.
10351
10352         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
10353         it's already okay to use memory operands in (IE doesn't require
10354         adding another insn or anything).
10355
10356 2003-03-20  Richard Henderson  <rth@redhat.com>
10357
10358         PR middle-end/6348
10359         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
10360         different from word_mode.
10361
10362 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10363
10364         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
10365         source operand to those that can be extracted with bld.
10366
10367 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
10368
10369         PR 10066
10370         * arm.md (UNSPEC_PIC_BASE): New constant.
10371         (pic_add_dot_plus_four): Wrap with unspec.
10372         (pic_add_dot_plus_eight): Likewise.
10373
10374 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10375
10376         * config/h8300/h8300.md (*insv_si_1_n): New.
10377         (*insv_si_1_n_lshiftrt): Likewise.
10378
10379 2003-03-20  Roger Sayle  <roger@eyesopen.com>
10380
10381         * fold-const.c (fold_mathfn_compare): New function to simplify
10382         comparisons against built-in math functions.  Fold comparisons
10383         of sqrt against constants.
10384         (fold): Call fold_mathfn_compare when appropriate.
10385
10386 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
10387
10388         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
10389         information.
10390
10391 2003-03-20  Per Bothner  <pbothner@apple.com>
10392
10393         Various cleanups to help compile server.
10394
10395         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
10396         and pass that to _cpp_init_hashtable.
10397         (cpp_read_main_file):  Drop hash_table* argument; don't call
10398         _cpp_init_hashtable.
10399         * cpplib.h:  Update declarations to match.
10400         * c-opts.c (c_common_init_options):  Pass ident_hash to
10401         cpp_create_reader.
10402         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
10403         * fix-header.c (read_scan_file):  Likewise pass NULL table to
10404         cpp_create_reader rather than cpp_read_main_file.
10405
10406         * cppfiles.c (cpp_rename_file):  Generalized and renamed
10407         to cpp_change_file.
10408         * cpplib.h:  Update declaration to match.
10409         * c-opts.c (push_command_line_line, finish_options):  Change
10410         cpp_rename_file calls to cpp_change_file.
10411
10412         * line-map.c (add_line_map):  Allow leaving the outermost file.
10413         Allowing entering an outermost-file after the initial time.
10414
10415         * toplev.c (pop_srcloc):  Allow popping from initial file.
10416
10417 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
10418
10419         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
10420
10421 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10422
10423         * config/h8300/h8300.md (a peephole2): New.
10424
10425 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10426
10427         * config/h8300/h8300.md (*addsi3_and_r_1): New.
10428         (*addsi3_and_not_r_1): Likewise.
10429
10430 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
10431
10432         * Makefile.in (STRICT2_WARN): Add @WERROR@.
10433         (GCC_WARN_CFLAGS): Remove $(WERROR).
10434         (fixinc.sh-warn): New.
10435         * ada/Make-lang.in (ada-warn): Add $(WERROR).
10436         * cp/Make-lang.in (cp-warn): Add $(WERROR).
10437         * f/Make-lang.in (f-warn): Add $(WERROR).
10438         * java/Make-lang.in (java-warn): Add $(WERROR).
10439         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
10440
10441 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
10442
10443         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
10444         langhooks-def.h (lhd_tree_dump_dump_tree),
10445         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
10446         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
10447         true and false in return statements.
10448
10449 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
10450
10451         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
10452         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
10453         DWARF_INITIAL_LENGTH_SIZE.
10454         (output_compilation_unit_header, output_pubnames, output_aranges)
10455         (output_line_info): Output 0xffffffff escape value for 64-bit
10456         DWARF extension.
10457         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
10458
10459 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
10460
10461         * config/s390/s390.c (s390_preferred_reload_class): Do not
10462         force constants to the pool unless necessary.
10463         (s390_decompose_address): Prefer to use pointer as base,
10464         not index register.
10465         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
10466         Q alternative.
10467         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
10468         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
10469         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
10470         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
10471         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
10472
10473 2003-03-19  Jan Hubicka  <jh@suse.cz>
10474
10475         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
10476         * i386.c (use_fast_prologue_epilogue): Remove.
10477         (ix86_frame): New field save_regs-using_mov;
10478         (ix86_compute_frame_layout):  Decide on fast prologues;
10479         allocate saved registers in red zone.
10480         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
10481
10482 2003-03-19  Nick Clifton  <nickc@redhat.com>
10483
10484         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
10485
10486 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10487
10488         PR 10062
10489         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
10490         * pa-protos.h (output_lbranch): New prototype.
10491         * pa.c (compute_frame_size): Change size of the frame marker on the
10492         64-bit ports to 48 bytes.
10493         (pa_output_function_prologue): Document why SAVE_SP is set.
10494         (hppa_expand_prologue): Save previous stack pointer into frame marker
10495         on targets which use the hpux unwind library.
10496         (output_cbranch): Use output_lbranch.
10497         (output_lbranch): New function to output long unconditional branches.
10498         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
10499         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
10500         64-bit ports.
10501         * pa.md (jump): Use output_lbranch.
10502         (allocate_stack): New expander for dynamic stack allocation.
10503
10504 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
10505
10506         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
10507         when debugging on XCOFF targets.  Delete "abi" temp.
10508
10509         PR target/10073
10510         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
10511
10512 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
10513
10514         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
10515         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
10516         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
10517
10518         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
10519         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
10520         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
10521
10522 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
10523
10524         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
10525         the result of machopic_function_base_name.
10526         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
10527         string rather than a static array.
10528
10529         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
10530
10531         * gengtype.c: Include rtl.h.
10532         (enum rtx_code): Don't define.
10533         (rtx_format): Make declaration match rtl.h.
10534         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
10535         users.
10536         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
10537         * Makefile.in (gengtype.o): Update dependencies.
10538
10539 2003-03-18  Andreas Schwab  <schwab@suse.de>
10540
10541         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
10542         martin@blom.org.
10543
10544 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
10545
10546         * function.c (next_block_index): Mark with GTY.
10547
10548         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
10549
10550 2003-03-18  Richard Henderson  <rth@redhat.com>
10551
10552         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
10553         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
10554         until after reload.
10555
10556 2003-03-18  Richard Henderson  <rth@redhat.com>
10557
10558         * builtins.c (expand_builtin_unop): New target_mode operand;
10559         use it to convert the result to the correct mode.
10560         (expand_builtin): Update all callers.
10561
10562 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
10563
10564         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
10565
10566 2003-03-18  Jan Hubicka  <jh@suse.cz>
10567
10568         * i386.md:  Fix previous commit that mistakely applied the patch
10569         twice.
10570
10571         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
10572         canonicalized.
10573         (memrefs_conflict_p): Likewise.
10574         (addr_side_effect_eval): Canonicalize the constructed address.
10575
10576 2003-03-18  Jan Hubicka  <jh@suse.cz>
10577
10578         * i386.md (cvtts?2si peep2): New.
10579
10580 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
10581
10582         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
10583
10584 2003-03-18  Andreas Schwab  <schwab@suse.de>
10585
10586         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
10587         for format.
10588
10589 2003-03-17  Jason Merrill  <jason@redhat.com>
10590
10591         PR c++/10091
10592         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
10593         an unaligned member of TREE_ADDRESSABLE type.
10594
10595 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
10596
10597         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
10598         (TARGET_PROFILE_KERNEL): Define.
10599         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
10600         (PROFILE_BEFORE_PROLOGUE): Don't define.
10601         (PROFILE_KERNEL): Remove hacks.
10602         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
10603         (rs6000_stack_info): No need to save lr if just for profiling when
10604         TARGET_PROFILE_KERNEL.
10605         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
10606         (output_function_profiler): Localize label generation.  Emit code
10607         for kernel profiling.
10608
10609 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
10610
10611         * config/h8300/h8300-protos.h: Add a prototype for
10612         byte_accesses_mergeable_p.
10613         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
10614         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
10615         (a splitter): Likewise.
10616         (*iorsi3_ashift_16_ashift_24): Likewise.
10617         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
10618
10619 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10620
10621         * dwarf2asm.h: Delete obsolete comment.
10622         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
10623         dw2_asm_output_pcrel, dw2_asm_output_addr,
10624         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
10625         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
10626         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
10627         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
10628
10629 2003-03-17  Zack Weinberg <zack@codesourcery.com>
10630
10631         * c-tree.h (struct lang_identifier): Remove error_locus field.
10632         (IDENTIFIER_ERROR_LOCUS): Kill.
10633         (record_function_scope_shadow): New prototype.
10634         * c-typeck.c (build_external_ref): Don't complain if
10635         decl is error_mark_node.  When not at file scope, bind the
10636         decl's local value to error_mark_node to suppress further
10637         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
10638
10639         * c-decl.c (get_function_binding_level): New static function.
10640         (record_function_scope_shadow): New exported function.
10641         (c_make_fname_decl): Use get_function_binding_level.
10642
10643 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
10644
10645         * stmt.c (tail_recursion_args): Call promote_mode to set
10646         unsignedp flag correctly before calling convert_move.
10647
10648 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10649
10650         * loop-unroll.c (decide_peel_completely,
10651         decide_unroll_constant_iterations, decide_unroll_stupid,
10652         decide_unroll_runtime_iterations, decide_peel_simple): Set
10653         loop->has_desc.
10654
10655 2003-03-17  Jan Hubicka  <jh@suse.cz>
10656
10657         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
10658
10659 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
10660
10661         * function.c (assign_parms): For a struct value address passed as
10662         first argument, delay the function's result RTL setup code until
10663         after the emission of parameter conversions.
10664
10665 2003-03-17  Dave Love  <fx@gnu.org>
10666             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10667
10668         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
10669         __arch64__ to match Compaq cc.
10670
10671 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
10672
10673         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
10674         (c_common_init): Set EBCDIC in cpp options.
10675         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
10676         not conditional compilation.
10677         * cpplib.h (struct cpp_options): New entry EBCDIC.
10678
10679 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
10680
10681         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
10682
10683 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10684
10685         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
10686         argument to 0 for redirect_jump.
10687
10688 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
10689
10690         PR c++/8805
10691         * except.c (eh_region_u_cleanup): Add prev_try.
10692         (expand_eh_region_end_cleanup): Set it.
10693         (reachable_handlers): Use it to skip over cleanup blocks.
10694
10695 2003-03-17  Andreas Jaeger  <aj@suse.de>
10696
10697         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
10698
10699 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
10700
10701         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
10702         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
10703         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
10704         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
10705
10706 2003-03-16  Richard Henderson  <rth@redhat.com>
10707
10708         * simplify-rtx (simplify_binary_operation): Don't abort for
10709         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
10710
10711 2003-03-16  Richard Henderson  <rth@redhat.com>
10712
10713         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
10714         optimize_size as well.
10715
10716 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
10717
10718         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
10719         for D register to specify the low part of it, aka B.
10720         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
10721         the register if we are loading 1 or -1 to it; avoid using temp
10722         register when moving X/Y to Y/X.
10723         (m68hc11_gen_movqi): Likewise.
10724         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
10725
10726 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
10727
10728         PR optimization/9016
10729         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
10730         into the constant pool.
10731
10732 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
10733
10734         PR target/9164
10735         * tree.c (get_narrower): For extensions with unchanged bit number,
10736         return the unsignedness of the outer mode.
10737
10738 2003-03-16  Roger Sayle  <roger@eyesopen.com>
10739
10740         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
10741         to avoid "may be used uninitialized" warning on ia64-hpux.
10742         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
10743
10744 2003-03-16  Andreas Jaeger  <aj@suse.de>
10745
10746         * configure.in: Improve check for memcheck.h.
10747         * configure: Regenerated.
10748
10749 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
10750
10751         * doc/cppopts.texi: Remove documentation of -A-.
10752
10753 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
10754
10755         * doc/libgcc.texi: Remove @tie.
10756
10757 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
10758
10759         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
10760         (rtx_pair): Added new element update_label_nuses, renamed to
10761         replace_label_data.
10762         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
10763         replace_label_data instead of rtx_pair.
10764         * loop.c (load_mems): Likewise.
10765         * rtlanal.c (replace_label): Replace label in pool constants and in
10766         INSN_LIST (in REG_LABEL note).
10767         (subrtx_p): Renamed to rtx_referenced_p.
10768         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
10769         LABEL_REF with CODE_LABEL, traverse constants from pool.
10770
10771 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
10772             Zack Weinberg  <zack@codesourcery.com>
10773
10774         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
10775         * doc/libgcc.texi: New file.
10776         * doc/interface.texi: Delete paragraph about libgcc interface.
10777         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
10778
10779 2003-03-15  Jason Merrill  <jason@redhat.com>
10780
10781         PR debug/9039
10782         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
10783
10784         PR debug/6387
10785         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
10786         function DIEs at toplevel.
10787         (decls_for_scope): At -g1, don't descend into subblocks.
10788
10789 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
10790
10791         * varasm.c (struct rtx_const): Change type of un.addr member
10792         to struct holding an additional 'symbol' member.
10793         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
10794         with equal string addresses as equal.
10795         (simplify_subtraction): Adapt to struct rtx_const change.
10796
10797 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
10798
10799         * fix-header.c (read_scan_file): Read main file before handling -D.
10800
10801 2003-03-15  Roger Sayle  <roger@eyesopen.com>
10802
10803         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
10804         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
10805         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
10806         (find_sub_basic_blocks): Likewise.
10807         * cgraphunit.c (cgraph_expand_functions): Likewise.
10808         * dwarf2out.c (prune_unused_types): Likewise.
10809         * expr.c (store_field): Likewise.
10810         * genextract.c (print_path): Likewise.
10811         * haifa-sched.c (schedule_insn): Likewise.
10812         * lcm.c (compute_antinout_edge): Likewise.
10813         * loop-unroll.c (decide_peel_once_rolling): Likewise.
10814         * ra-colorize.c (ra_colorize_free_all): Likewise.
10815         * ra-debug.c (dump_igraph): Likewise.
10816         (debug_hard_reg_set): Likewise.
10817         * reg-stack.c (reg_to_stack): Likewise.
10818         * rtlanal.c (refers_to_regno_p): Likewise.
10819         * tracer.c (layout_superblocks): Likewise.
10820
10821 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
10822
10823         * fix-header.c (read_scan_file): Fix thinko.
10824
10825 2003-03-15  Glen Nakamura  <glen@imodulo.com>
10826
10827         * reload1.c (choose_reload_regs): Use && instead of ||
10828         with REG_CANNOT_CHANGE_MODE_P condition.
10829
10830 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
10831
10832         * Makefile.in: Update.
10833         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
10834         * c-lex.c (init_c_lex): Register builtins hook is dead.
10835         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
10836         (c_common_decode_option): Don't call cpp_handle_option.
10837         Handle -A, -D and -U.
10838         (handle_deferred_opts): Simplify.
10839         (finish_options): Define builtins and command line macros.
10840         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
10841         * cppinit.c: Don't include intl.h.
10842         (init_builtins): Rename cpp_init_builtins.  No hook to call.
10843         (init_library): Don't need to sort options.
10844         (cpp_create_reader): Don't set pending.
10845         (cpp_destroy): Don't free pending.
10846         (struct pending_option, cl_directive_handler, struct cpp_pending,
10847         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
10848         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
10849         cl_options, cpp_handle_option): Remove.
10850         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
10851         cpp_finish_options): Remove.
10852         (cpp_init_builtins): New.
10853         * fix-header.c (read_scan_file): Update to handle -D.  Fix
10854         handling of -I.  Replace call to cpp_finish_options.
10855
10856 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10857
10858         PR optimization/9387
10859         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
10860         for conditional returns.
10861
10862 2003-03-14  Jason Merrill  <jason@redhat.com>
10863
10864         PR optimization/6871
10865         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
10866
10867 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
10868
10869         * c-opts.c (finish_options): New.
10870         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
10871         (missing_arg): Handle OPT_include and OPT_imacros.
10872         (c_common_init, c_common_parse_file): Use finish_options.
10873         (handle_deferred_opts): Update.
10874         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
10875         (cpp_finish_options): Don't handle -imacros here.
10876         (no_fil): Remove.
10877         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
10878
10879 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
10880
10881         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
10882         rs6000_maybe_dead if !fromprolog.
10883
10884 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
10885
10886         * Makefile.in: Update.
10887         * c-common.h (fe_file_change, pp_file_change): New.
10888         * c-lex.c (init_c_lex): Don't set cb_file_change.
10889         (c_common_parse_file): Move to c-opts.c.
10890         (cb_file_change): Rename fe_file_change.
10891         * c-opts.c: Include debug.h.
10892         (warn_unused_macros, include_cursor): New.
10893         (push_command_line_include, cb_file_change): New.
10894         (COMMAND_LINE_OPTIONS): Handle -include.
10895         (c_common_decode_option): Use local warn_unused_macros.
10896         Handle OPT_include.
10897         (c_common_post_options): Set file change callback.
10898         (handle_deferred_opts): Skip -include.  Don't free the array.
10899         (c_common_init): Call cpp_finish_options here, and push an
10900         initial -include file.
10901         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
10902         (preprocess_file): Don't call cpp_finish_options.
10903         (init_pp_output): Don't set the file change callback.
10904         (pp_file_change): Return if no line commands or no output.
10905         * cpphash.h (next_include_file, first_unused_line): Remove.
10906         * cppinit.c (include_head, include_tail): Remove.
10907         (cpp_destroy): Don't free -include chain.
10908         (cpp_finish_options): Don't handle -include, or worry about
10909         -Wunused-macros.
10910         (_cpp_maybe_push_include_file): Remove.
10911         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
10912         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
10913         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
10914         Used flag is set based upon the state of the warn_unused_macros
10915         flag, and so use of first_unused_line is unnecessary.
10916
10917 2003-03-13  Jan Hubicka  <jh@suse.cz>
10918
10919         * cselib.c (clear_table): Do not take argument; always clear just
10920         used slots.
10921         (cselib_process_insn):  Update call of clear_table
10922         (cselib_init): Do not call clear_table.
10923         (cselib_finish): Clear table.
10924
10925         * cse.c (count_reg_usage): Do not check side_effects_p.
10926         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
10927         like noop.
10928         (find_reg_equal_equiv_note): Do not use find_reg_note.
10929
10930 2003-03-14  Richard Henderson  <rth@redhat.com>
10931
10932         PR target/9700
10933         * config/alpha/alpha.c (alpha_va_start): Account for
10934         current_function_pretend_args_size in the AP offset.
10935
10936         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
10937         (INITIAL_ELIMINATION_OFFSET): Move out of line.
10938         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
10939         (alpha_initial_elimination_offset) New.
10940         * config/alpha/alpha-protos.h: Update.
10941
10942 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
10943
10944         * stmt.c (expand_start_case): Call emit_queue ().
10945
10946 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
10947             Alexandre Oliva  <aoliva@redhat.com>
10948
10949         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
10950         words in new abis.
10951
10952 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
10953
10954         PR optimization/8396
10955         * tree-inline.c (initialize_inlined_parameters): Make sure the value
10956         of read-only constant arguments is passed with the right type.
10957
10958 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
10959
10960         * doc/extend.texi (Function Names): Make the example compilable.
10961
10962 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
10963
10964         * config/rs6000/rs6000.c (processor_target_table): Really allow
10965         GP optional instructions on Power4.
10966
10967 2003-03-13  Roger Sayle  <roger@eyesopen.com>
10968
10969         * calls.c (flags_from_decl_or_type): Factor and remove redundant
10970         conditional tests.
10971
10972 2003-03-13  Mike Stump  <mrs@apple.com>
10973
10974         * ggc-page.c (struct page_entry): Remove varray.h header.
10975         Add index_by_depth field.
10976         Remove save_in_use_p field.
10977         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
10978         by_depth_max, by_depth, and save_in_use fields.
10979         (INITIAL_PTE_COUNT): Add.
10980         (save_in_use_p_i): Add.
10981         (save_in_use_p): Add.
10982         (adjust_depth): Add.
10983         (move_ptes_to_front): Add.
10984         (push_depth): Add.
10985         (push_by_depth): Add.
10986         (prefetch): Add.
10987         (free_page): Add support for and use faster data structures.
10988         (ggc_alloc): Likewise.
10989         (init_ggc): Likewise.
10990         (ggc_recalculate_in_use_p): Likewise.
10991         (ggc_pop_context): Likewise.
10992         (clear_marks): Likewise.
10993         (ggc_pch_read): Likewise.
10994         * Makefile.in (ggc-page.o): Remove varray.h.
10995
10996 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
10997
10998         * ChangeLog: Rotated last year's entries to...
10999         * ChangeLog.8: New.
11000
11001         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
11002         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
11003         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
11004         config/ia64/ia64-protos.h, config/ia64/ia64.c,
11005         config/ia64/ia64.h, config/ia64/ia64.md,
11006         config/ia64/itanium1.md, config/ia64/itanium2.md,
11007         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
11008         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
11009
11010 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
11011
11012         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
11013         Differentiate endianness.
11014         (s6000_override_options): Use cpu type instead of TARGET_SPE.
11015
11016 2003-03-13  Nick Clifton  <nickc@redhat.com>
11017
11018         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
11019         LDM instructions with writeback enabled.
11020         (output_return_instruction): Likewise.
11021
11022         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
11023         (CALL_USED_REGISTERS): Remove definition.
11024         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
11025
11026 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
11027
11028         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
11029         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
11030         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
11031         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
11032         (rs6000_legitimize_address): Formatting.
11033         (rs6000_emit_move): Likewise.
11034         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
11035         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
11036         (rs6000_elf_select_section): Comment reason for shlib being
11037         set for ABI_AIX.
11038         (rs6000_elf_unique_section): Likewise.
11039         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
11040         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
11041         as well as flag_pic.
11042         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
11043         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
11044         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
11045
11046 2003-03-13  Richard Henderson  <rth@redhat.com>
11047
11048         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
11049
11050         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
11051         (ia64_gp_save_reg): Remove.
11052         (struct ia64_frame_info): Move to the beginning of the file;
11053         add reg_save_gp.
11054         (ia64_expand_call): Rearrange for new call patterns.
11055         (ia64_reload_gp): New.
11056         (ia64_split_call): New.
11057         (ia64_compute_frame_size): Allocate reg_save_gp.
11058         (ia64_expand_prologue): Save reg_save_gp.
11059         (ia64_expand_epilogue): Don't restore gp.
11060         (ia64_hard_regno_rename_ok): Remove R4 hack.
11061         (ia64_function_ok_for_sibcall): New.
11062         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
11063         call try_split on sibcall pattern.
11064         * config/ia64/ia64-protos.h: Update.
11065         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
11066         Rename from nopic versions.  Confiscate 2nd argument to call as
11067         a marker.
11068         (call_pic, call_value_pic, sibcall_pic): Remove.
11069         (call_gp, call_value_gp, sibcall_gp): New.
11070         (builtin_setjmp_setup): Remove.
11071         (builtin_setjmp_receiver): Call ia64_reload_gp.
11072
11073 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
11074
11075         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
11076         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
11077         "GNU CC" with "GCC".
11078
11079         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
11080         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
11081         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
11082         GCC, not GNU CC.
11083
11084         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
11085         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
11086
11087         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
11088         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
11089         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
11090         "GNU CC" with "GCC".
11091
11092         * config/v850/lib1funcs.asm, config/v850/rtems.h,
11093         config/v850/v850-c.c, config/v850/v850-protos.h,
11094         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
11095         GCC, not GNU CC.
11096
11097         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
11098         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
11099         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
11100         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
11101         GNU CC.
11102
11103 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
11104
11105         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
11106
11107 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
11108
11109         * fixinc/fixinc.interix: Remove dead code (most of it).
11110         * fixinc/fixinc.dgux: Remove.
11111
11112         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
11113         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
11114
11115 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11116
11117         * pa.c (pa_init_builtins): Fix warning.
11118
11119 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
11120
11121         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
11122         (ASM_OUTPUT_XDATA_SHORT): Remove.
11123         (ASM_OUTPUT_XDATA_INT): Remove.
11124         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
11125         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
11126         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
11127         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
11128
11129 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
11130
11131         PR c++/7050
11132         * expr.c (store_expr): Don't attempt to store void-typed trees,
11133         just evaluate them for side effects.
11134
11135 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
11136
11137         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
11138         * cppinit.c (push_include): Move with changes to cppfiles.c.
11139         (cpp_read_main_file): Mark named operators here...
11140         (cpp_finish_options): ...not here.  Update.
11141         (_cpp_maybe_push_include_file): Update.
11142         * cpplib.h (cpp_push_include, cpp_rename_file): New.
11143
11144 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
11145
11146         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
11147         _gcc_COMPUTE_GAS_VERSION.
11148         * configure.in: Use them.
11149         * configure: Regenerate.
11150
11151 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
11152
11153         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
11154         to detect carry.
11155         (subdi3): Reorder emitted instructions.
11156
11157 2003-03-12  Andreas Jaeger  <aj@suse.de>
11158
11159         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
11160         NETBSD_OS_CPP_BUILTINS_LP64.
11161
11162 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
11163
11164         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
11165         Rearrange.  Reorganize.
11166         * configure.in: Rearrange.
11167         * configure: Regenerate.
11168
11169 2003-03-12  Andreas Jaeger  <aj@suse.de>
11170
11171         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
11172         LP64 targets.
11173
11174         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
11175         _LP64.
11176
11177         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
11178         _LP64 macros here.
11179         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
11180
11181         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
11182         NETBSD_OS_CPP_BUILTINS_LP64.
11183         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
11184         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
11185
11186         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
11187
11188 2003-03-12  Jan Hubicka  <jh@suse.cz>
11189
11190         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
11191
11192 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
11193
11194         Fix PR target/9797 and PR c/9853.
11195         * stmt.c (expand_decl_init): Call push_temp_slots () and
11196         pop_temp_slots ().
11197
11198 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
11199
11200         * sh.c: Include basic-block.h.
11201         (sh_output_mi_thunk, emit_load_ptr): New functions.
11202         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
11203
11204 2003-03-12  Nick Clifton  <nickc@redhat.com>
11205
11206         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
11207         (CALL_USED_REGISTERS): Likewise.
11208         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
11209         describing how this value is calculated.
11210
11211 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
11212
11213         * configure.in (rlim_t): Define to long if no valid definition
11214         found in sys/resource.h.
11215         * config.in, configure: Regenerate.
11216
11217 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
11218
11219         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
11220         TARGET_OS_CPP_BUILTINS.
11221         * config/mcore/mcore-pe.h: Similarly.
11222         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
11223         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
11224
11225 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
11226
11227         PR c/9928
11228         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
11229         only if it is a VAR_DECL.
11230
11231 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
11232
11233         PR optimization/9888
11234         * config/i386/i386.md (jcc_1): Fix range.
11235         (jcc_2): Likewise.
11236         (jump): LIkewise.
11237         (doloop_end_internal): Likewise.
11238
11239 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
11240
11241         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
11242         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
11243         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
11244         DLL_IMPORT_EXPORT_PREFIX and "i."
11245         (i386_pe_dllexport_name_p): Here.
11246         (i386_pe_dllimport_name_p): Here.
11247         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
11248         not 9 chars when getting identifier name.
11249         (i386_pe_mark_dllimport): Here.
11250         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
11251         not 9 chars when getting identifier name. Correct comment.
11252         (i386_pe_strip_name_encoding): Here. Add comments for different
11253         cases.
11254         (gen_fastcall_suffix): Break down xmalloc() argument to
11255         components.
11256         (gen_stdcall_suffix): Likewise.
11257         Update copyright year.
11258
11259 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
11260
11261         PR optimization/9888
11262         * config/i386/i386.md (movsi_1): Remove special alternatives
11263         for %eax register.
11264         (movsi_1_nointernunit): Likewise.
11265         (movhi_1): Likewise.
11266         * config/i386/i386.c (memory_address_length): Do not use
11267         short displacement when there is no base.
11268         (ix86_attr_length_address_default): Handle LEA instructions.
11269
11270 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
11271
11272         * c-cppbuiltin.c (builtin_define_std): Make non-static.
11273
11274 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
11275
11276         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
11277         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
11278         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
11279         * config/freebsd.h (CPP_PREDEFINES): Remove.
11280         (TARGET_OS_CPP_BUILTINS): New.
11281         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
11282         instead of TARGET_OS_CPP_BUILTINS.
11283         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
11284
11285 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
11286
11287         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
11288
11289 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
11290
11291         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
11292         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
11293
11294         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
11295
11296 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
11297
11298         * toplev.c (independent_decode_option): Return success for --help,
11299         --target-help and --version.
11300
11301 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
11302
11303         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
11304         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
11305         specified.
11306         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
11307         DRIVER_SELF_SPECS.
11308         (LINK_SPEC): Let endian options affect the linker emulation name.
11309
11310 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
11311
11312         * sh.md (reload_inqi): Fix mode for source in second set.
11313
11314 2003-03-11  Jan Hubicka  <jh@suse.cz>
11315
11316         * cselib.c (cselib_invalidate_mem_1): Move too ...
11317         (cselib_invalidate_mem): ... here; use new list
11318         (dummy_val, first_containing_mem): New static variables.
11319         (clear_table): Initialize first_containing_mem.
11320         (discard_useless_values):  Compact the containing_mem list.
11321         (add_mem_for_addr): Add to the list.
11322         * cselib.h (cselib_val): Add next_containing_mem.
11323
11324 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
11325
11326         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
11327         instructions for e500.
11328
11329 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
11330
11331         * Makefile.in: Update.
11332         * c-cppbuiltin.c: Include tm_p.h.
11333
11334 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
11335
11336         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
11337
11338         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
11339         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
11340         (_Unwind_SetGR): Same.
11341         (_Unwind_GetGRPtr): New.
11342         (_Unwind_SetGRPtr): New.
11343         (uw_update_context_1): Use accesor functions instead of accessing
11344         context->reg[] directly.
11345         (uw_install_context_1): Same.
11346         (execute_cfa_program): Same.
11347         (__frame_state_for): Same.
11348
11349         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
11350         the synthetic register offset.
11351
11352         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
11353
11354 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
11355
11356         * config/cris/cris.md: Remove lingering EGCS reference.
11357         ("*extopqihi_side_biap"): For HI operation, match
11358         cris_additive_operand_extend_operator, not
11359         cris_operand_extend_operator.  Adjust condition.
11360         ("*extopqihi_side", "*extopqihi"): Ditto.
11361         ("*extopqisi_side_biap"): Correct operand numbers in condition.
11362         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
11363         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
11364         ("*extophisi_swap"): Ditto.
11365         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
11366         PLUS, not cris_operand_extend_operator.  Adjust condition and
11367         output template.
11368         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
11369         * config/cris/cris.h (PREDICATE_CODES): Add
11370         cris_additive_operand_extend_operator.
11371         * config/cris/cris.c (cris_additive_operand_extend_operator):
11372         New predicate.
11373
11374 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
11375
11376         * df.c (read_modify_subreg_p): Change from static to global.
11377         * df.h (read_modify_subreg_p): Add prototype.
11378         * sched-deps.c (sched_analyze_1): Generate true dependency for
11379         strict_low_part, certain subregs and zero/sign_extract.
11380
11381 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
11382
11383         * Makefile.in: Update.
11384         * c-common.c: Don't include real.h or except.h.
11385         (REGISTER_PREFIX): Remove.
11386         (builtin_define_std, builtin_define_with_value,
11387         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
11388         builtin_define_type_max, builtin_define_type_precision,
11389         builtin_define_float_constants): Move to c-cppbuiltin.c.
11390         (c_stddef_cpp_builtins): New.
11391         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
11392         * c-cppbuiltin.c: New, extracted from c-common.c.
11393         (define__GNUC__): New.
11394         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
11395         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
11396         (cpp_unique_options): Don't support no-gcc.
11397         (do_spec_1): Remove support of version specs.
11398         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
11399         * doc/passes.texi: Update.
11400         * doc/tm.texi: Update.
11401
11402 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
11403
11404         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
11405
11406 2003-03-10  Andrew Pinski  <apinski@apple.com>
11407
11408         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
11409         is on should not get here.
11410         (machopic_indirect_data_reference): If dynamic-no-pic is on just
11411         generate high/low parts of the address.
11412         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
11413         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
11414         symbol and labels with a new reg.  Dynamic-no-pic does not have a
11415         pic_offset_table_rtx.
11416         (machopic_select_section): Change references of flag_pic to
11417         MACHOPIC_INDIRECT.
11418         (machopic_asm_out_destructor): Likewise.
11419         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
11420         reference of flag_pic to MACHOPIC_INDIRECT.
11421         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
11422         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
11423         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
11424         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
11425         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
11426         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
11427         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
11428         (TARGET_DYNAMIC_NO_PIC): Define.
11429         (SUBTARGET_SWITCHES): Define, have sub-target switches for
11430         dynamic-no-pic.
11431         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
11432         rs6000_override_options to here. Dynamic-no-pic overrides
11433         pic.
11434         (CC1_SPEC): Change from not static then pic to not static and not
11435         dynamic-no-pic then pic.
11436         * config/rs6000/rs6000.c (rs6000_override_options): Move the
11437         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
11438         (rs6000_legitimize_reload_address): Add case for loading floating in
11439         dynamic-no-pic.
11440         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
11441         of flag_pic to MACHOPIC_INDIRECT.
11442         (secondary_reload_class): Conditional change the reference of
11443         flag_pic to MACHOPIC_INDIRECT.
11444         (rs6000_output_mi_thunk): Change reference of flag_pic to
11445         MACHOPIC_INDIRECT.
11446         (output_profile_hook): Likewise.
11447         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
11448         * config/rs6000/rs6000.md (movdf_low): Add the case for
11449         MACHO_DYNAMIC_NO_PIC_P.
11450         (call): Change references for flag_pic in TARGET_MACHO to
11451         MACHOPIC_INDIRECT.
11452         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
11453         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
11454         * doc/invoke.texi (-mdynamic-no-pic): Document.
11455
11456 2003-03-10  Devang Patel  <dpatel@apple.com>
11457
11458         PR c++/9394
11459         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
11460         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
11461         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
11462         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
11463         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
11464         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
11465
11466 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
11467
11468         PR optimization/7189
11469         * toplev.c (rest_of_compilation):  Move
11470         check_function_return_warnings up to just after
11471         delete_unreachable_blocks.
11472
11473 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
11474
11475         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
11476         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
11477         Declare.
11478         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
11479         for reg rename optimization to avoid using Z and Y registers.
11480
11481 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
11482
11483         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
11484         when adding to X and Y since leax/leay are fast.
11485         ("*addhi3"): Accept 'I' constraint when adding to address register.
11486         ("rotlhi3"): Operand 1 must be a register_operand.
11487         (peephole2): New peephole to optimize some adds.
11488         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
11489         to represent -2 .. 2 small integer range.
11490
11491 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
11492
11493         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
11494         each 16-bit rotation.
11495
11496 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
11497
11498         * c-opts.c (add_prefixed_path): Don't use concat.  When
11499         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
11500         cpp_GCC_INCLUDE_DIR_len characters.
11501
11502 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
11503
11504         * testsuite/gcc.dg/altivec-9.c: New file.
11505
11506         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
11507         (rs6000_emit_prologue): Use rs6000_frame_related instead.
11508
11509 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
11510
11511         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
11512         vectors.
11513         (__ev_convert_u64): Remove macro.  Define as inline.
11514         (__ev_convert_s64): Same.
11515
11516 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
11517
11518         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
11519         (rs6000_stack_t): Add spe_64bit_regs_used.
11520
11521         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
11522         spe_64bit_regs_used, and use it to determine the size of the
11523         frame.
11524         (spe_func_has_64bit_regs_p): New.
11525         (spe_synthesize_frame_save): New.
11526         (rs6000_frame_related): Handle SPE synthetic registers.
11527         (rs6000_emit_prologue): Only save in 64-bits if the function used
11528         any registers in 64-bit mode.
11529         (rs6000_emit_epilogue): Same, but for restore.
11530
11531 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
11532
11533         * arm.h (enum floating_point_type): Delete.  Replace with...
11534         (enum fputype): ... new.
11535         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
11536         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
11537         * arm.md (attr fpu): Reworked for new underlying enum values.
11538         * arm.c (arm_fpu_arch): Now enum fputype.
11539         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
11540         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
11541         Update uses of arm_fpu_arch and arm_fpu_tune.
11542
11543 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
11544
11545         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
11546         (try_crossjump_to_edge): Replace refereces to one jump table by
11547         references to identical jump table.
11548         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
11549         (replace_label): Moved to rtlanal.c.
11550         (struct rtx_pair): Moved to rtl.h.
11551         * rtl.h (struct rtx_pair): Moved from loop.c.
11552         (replace_label): New extern function.
11553         (subrtx_p): New extern function.
11554         (tablejump_p): New extern function.
11555         * rtlanal.c (replace_label): Moved from loop.c.
11556         (subrtx_p_1): New static function.
11557         (subrtx_p): New function.
11558         (tablejump_p): New function.
11559
11560 2003-03-10  Jan Hubicka  <jh@suse.cz>
11561
11562         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
11563
11564         * cfgcleanup.c (merge_blocks): Return where to iterate next.
11565         (try_optimize_cfg): Use return value of merge_blocks
11566
11567 2003-03-10  Michael Matz  <matz@suse.de>
11568
11569         * cfg.c (unchecked_make_edge): New.
11570         (cached_make_edge): Use it.
11571         * basic-block.h (unchecked_make_edge): Declare.
11572         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
11573
11574 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
11575
11576         * fpa.md: New file.  Move all patterns relating to FPA co-processor
11577         to here...
11578         * arm.md: ... from here.
11579         (cirrus.md, fpa.md): Include at end of description.
11580         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
11581         (pic_load_addr_based): Remove register constraint from expander.
11582         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
11583         (sordered, sungt, sunle, sunge, sunlt): Likewise.
11584         (eh_epilogue, tablejump): Likewise.
11585
11586 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11587
11588         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
11589         on operands if it has a PLACEHOLDER_EXPR.
11590
11591 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
11592             Mostafa Hagog
11593
11594         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
11595         condition.
11596
11597 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
11598
11599         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
11600         * config/ip2k/ip2k.h: Similarly.
11601         * config/m32r/m32r.h: Similarly.
11602         * config/m68hc11/m68hc11.h: Similarly.
11603         * config/mn10200/mn10200.h: Similarly.
11604         * config/mn10300/mn10300.h: Similarly.
11605         * config/pdp11/pdp11.h: Similarly.
11606         * config/v850/v850.h: Similarly.
11607         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
11608         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
11609         * config/mips/iris3.h: Remove #if 0 block.
11610
11611 2003-03-09  Roger Sayle  <roger@eyesopen.com>
11612             Joern Rennecke <joern.rennecke@superh.com>
11613
11614         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
11615         pending argument upon return from handle_braces here.
11616         (do_spec_2): Instead handle it upon return from do_spec_1 here.
11617
11618 2003-03-09  Roger Sayle  <roger@eyesopen.com>
11619             Joern Rennecke <joern.rennecke@superh.com>
11620
11621         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
11622         pending argument upon return from handle_braces here.
11623         (do_spec_2): Instead handle it upon return from do_spec_1 here.
11624
11625 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11626
11627         * varasm.c (make_decl_one_only): Use declare_weak().
11628
11629 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11630
11631         PR middle-end/9986
11632         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
11633         after the common builtins.
11634         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
11635         * pa.c (TARGET_INIT_BUILTINS): Define.
11636         (pa_init_builtins): New function.
11637
11638         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
11639         space has been allocated for the outgoing arguments, set the arg
11640         pointer for a call emitted after virtuals have been instantiated
11641         using the stack pointer offset, otherwise abort.
11642
11643 2003-03-09  DJ Delorie  <dj@redhat.com>
11644
11645         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
11646
11647 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
11648
11649         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
11650         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
11651         conversion to integer.
11652         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
11653
11654 2003-03-09  Roger Sayle  <roger@eyesopen.com>
11655
11656         * builtins.def: Fix typo and improve grammar.
11657         * loop-unroll.c (decide_peel_completely): Tidy log message.
11658
11659 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
11660
11661         * config/h8300/h8300.md (*tstsi_upper_bit): New.
11662         (*iorsi3_e2f): Likewise.
11663
11664 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
11665
11666         * config/h8300/h8300.c (h8300_and_costs): Return the number of
11667         assembly instructions needed.
11668         (h8300_shift_costs): Likewise.
11669
11670 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
11671
11672         * config/cris/aout.h (ENDFILE_SPEC): Undef.
11673
11674         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
11675         moves from here ...
11676         * expr.c (emit_move_insn_1): ... to here.
11677
11678         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
11679         (TARGET_OS_CPP_BUILTINS): New macro.
11680         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
11681         (TARGET_OS_CPP_BUILTINS): New macro.
11682         (CPP_PREDEFINES): Don't define.  Move old definitions and...
11683         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
11684         (TARGET_CPU_CPP_BUILTINS): New macro.
11685         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
11686         definitions and the optional __PIC__, __pic__ and
11687         __NO_UNDERSCORES__ definitions to...
11688         (TARGET_OS_CPP_BUILTINS): New macro.
11689
11690         * flags.h (flag_leading_underscore): Declare.
11691
11692         * c-opts.c (c_common_post_options): On fopen failure, return
11693         false, not NULL.
11694
11695 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
11696
11697         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
11698         config.h.
11699         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
11700         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
11701
11702 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
11703
11704         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
11705         CPP_PREDEFINES.
11706         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
11707         CPP_PREDEFINES.
11708
11709 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
11710
11711         * c-common.h (c_common_init, c_common_post_options): Update.
11712         * c-objc-common.c (c_objc_common_init): Update for new prototype.
11713         * c-opts.c (saved_lineno): New.
11714         (c_common_post_options, c_common_init): Update prototypes,
11715         move call to cpp_read_main_file from latter to former.
11716         * c-tree.h (c_ojbc_common_init): Update.
11717         * langhooks-def.h (lhd_post_options): New.
11718         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
11719         * langhooks.c (lhd_post_options): New.
11720         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
11721         * toplev.c (no_backend): New.
11722         (process_options): Call post_options hook and set main_input_filename
11723         and input_filename here.
11724         (lang_dependent_init, do_compile): post_options hook moved to
11725         process_options.
11726         * objc/objc-act.c (objc_init): Update prototype.
11727         * objc/objc-act.h (objc_init): Update prototype.
11728
11729 2003-03-08  Roger Sayle  <roger@eyesopen.com>
11730
11731         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
11732         a complex or vector type, using a load in the original mode.
11733
11734 2003-03-08  Jan Hubicka  <jh@suse.cz>
11735
11736         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
11737         * gt-cgraph.h: New GC file.
11738         * cgraph.c (known_fns): New static variable.
11739         (cgraph_node): Add the decl into varray.
11740
11741 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
11742
11743         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
11744
11745 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
11746
11747         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
11748         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
11749         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
11750         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
11751         All callers changed.
11752         * arm.md, arm.h, arm-protos.h: Updated.
11753
11754         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
11755         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
11756         * arm.c (arm_regno_class, f_register_operand): Updated.
11757
11758 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
11759
11760         * config/cris/cris.h: Remove EGCS references.
11761         (CPP_SPEC): Remove "-$".
11762         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
11763
11764 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
11765
11766         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
11767         preference to CPP_PREDEFINES.
11768
11769 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
11770
11771         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
11772
11773 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
11774
11775         * config/h8300/h8300.md (*extzv_16_8): New.
11776
11777 2003-03-08  Jan Hubicka  <jh@suse.cz>
11778
11779         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
11780         * cgraph.h: (cgraph_local_info): Add can_inline_once
11781         (cgraph_global_info): Add inline_once.
11782         (cgraph_node): Add previous.
11783         (cgraph_remove_node): New.
11784         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
11785         function.
11786         (cgraph_optimize): Call it.
11787         (cgraph_finalize_function):  Set inlinable flags.
11788         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
11789         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
11790         (cgraph_expand_function): Likewise.
11791         * cgraph.c
11792         (cgraph_node): Put nodes into doubly linked chain.
11793         (cgraph_remove_node): New function.
11794         * flags.h (flag_inline_functions_called_once): Declare.
11795         * tree-inline.c: Include cgraph.h
11796         (inlinable_functions_p): Add extra argument to bypass limits.
11797         (expand_call_inline):  Obey cgraph flag.
11798         * tree-inline.h (tree_inlinable_function_p): Update prototype.
11799
11800 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11801
11802         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
11803         irreducible loops.
11804
11805         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
11806         loops info correctly.
11807
11808 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
11809
11810         PR middle-end/7796
11811         * unroll.c (calculate_giv_inc): Handle constants being
11812         loaded with LSHIFTRT.
11813
11814 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
11815
11816         * config/rs6000/rs6000.c (processor_target_table): Do not disable
11817         GP optional instructions on Power3, Power4, 620, and 630.
11818
11819 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
11820
11821         * calls.c: Fix comment formatting.
11822         * cfgloopanal.c: Likewise.
11823         * cfgloopmanip.c: Likewise.
11824         * combine.c: Likewise.
11825         * dwarf2out.c: Likewise.
11826         * ggc-common.c: Likewise.
11827         * langhooks.c: Likewise.
11828         * loop-unroll.c: Likewise.
11829         * loop.c: Likewise.
11830         * ra-build.c: Likewise.
11831         * sbitmap.c: Likewise.
11832         * toplev.c: Likewise.
11833
11834 2003-03-07  James E Wilson  <wilson@tuliptree.org>
11835
11836         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
11837
11838 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
11839
11840         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
11841         support -no-integrated-cpp.
11842
11843         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
11844         than langhooks.name.
11845
11846 2003-03-07  Michael Matz  <matz@suse.de>
11847
11848         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
11849         (DF_FOR_REGALLOC): New.
11850         * df.c (df_ref_record): Set DF_REF_STRIPPED.
11851         (read_modify_subreg_p): Simplify.
11852         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
11853         Use DF_FOR_REGALLOC.
11854         * ra.h (struct web): New member subreg_stripped.
11855         (invalid_mode_change_regs): Declare.
11856         * ra.c (invalid_mode_change_regs): New.
11857         (init_ra): Initialize it.
11858         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
11859         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
11860         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
11861         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
11862         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
11863
11864 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
11865
11866         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
11867         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
11868         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
11869         machine description file from ...
11870         * cirrus.md: ... here.
11871
11872 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
11873
11874         * config/h8300/h8300.md (a peephole2): Don't use
11875         reg_overlap_mentioned_p.
11876
11877 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
11878
11879         * c-pch.c: Include langhooks.h.
11880         (IDENT_LENGTH): New.
11881         (get_ident): New.
11882         (pch_ident): Delete.
11883         (pch_init): Use get_ident, IDENT_LENGTH.
11884         (c_common_valid_pch): Likewise.  Also, use actual language
11885         in warning message.
11886         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
11887
11888         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
11889         c-parse.in.
11890         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
11891         gt-objc-objc-act.h.
11892         (gt-objc-objc-act.h): New rule.
11893         * objc/lang-specs.h: Support PCH.
11894         * objc/objc-act.c: Include gt-objc-objc-act.h.
11895         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
11896         (build_selector_reference_decl): Move idx out, mark for PCH.
11897         (build_class_reference_decl): Likewise.
11898         (build_objc_string_decl): Move *_idx out, mark for PCH.
11899         (build_tmp_function_decl): Move xxx out, mark for PCH.
11900
11901 2003-03-06  Dale Johannesen  <dalej@apple.com>
11902
11903         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
11904         global functions for inlining on Darwin.
11905
11906 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
11907
11908         * haifa-sched.c (schedule_block): Don't call reorder when sorting
11909         is prohibited.
11910
11911 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
11912
11913         * Makefile.in (c-ppoutput.o): Update.
11914         * c-common.h (init_pp_output): New.
11915         (preprocess_file): Update.
11916         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
11917         Register builtins.
11918         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
11919         Make call to cpp_read_main_file common to whether preprocessing
11920         or not.  Don't register builtins.
11921         * c-ppoutput.c: Include c-pragma.h.
11922         (setup_callbacks): Rename init_pp_output.
11923         (preprocess_file): No longer setup callbacks or call
11924         cpp_read_main_file.
11925         * cpphash.h (_cpp_init_mbchar): New.
11926         * cppinit.c (init_library): Call _cpp_init_mbchar.
11927         * cpplex.c (_cpp_init_mbchar): New.
11928
11929 2003-03-06  Roger Sayle  <roger@eyesopen.com>
11930
11931         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
11932         MEM, try loading the MEM into a register and taking the low-part
11933         of that, to help CSE see the use of the MEM in its true mode.
11934
11935 2003-03-05  Tom Tromey  <tromey@redhat.com>
11936
11937         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
11938         Define.
11939
11940 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
11941
11942         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
11943         operand 2.
11944         ("*ineqbranchsi"): Likewise.
11945
11946 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
11947
11948         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
11949         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
11950         register store followed by a stack increment.
11951
11952 2003-03-05  Chris Moller  <cmoller@redhat.com>
11953
11954         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
11955         to inhibit saving CARRY_REGS.
11956
11957         * config/stormy16/stormy16.c (xs_hi_general_operand):
11958         added predicate to detect and error-out on out-of-range
11959         const_ints for movhi.
11960         * config/stormy16/stormy16.md (movhi): use
11961         xs_hi_general_operand.
11962
11963         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
11964         added a check for local vbl size overflow.
11965         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
11966         added predicate to detect and error-out on out-of-range
11967         const_ints for addhi and subhi.
11968         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
11969         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
11970
11971         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11972         add a term to accept PRE_MODIFY addresses.
11973         * config/stormy16/stormy16.c (xstormy16_expand_move):
11974         add code to expand PRE_MODIFY addresses to an add followed
11975         by a move.
11976
11977 2003-03-06  Jason Merrill  <jason@redhat.com>
11978
11979         * tree-inline.c (inlinable_function_p): Revert earlier change
11980         pending investigation.
11981
11982 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
11983
11984         * config/h8300/h8300.md (a new peephole2): New.
11985
11986 2003-03-06  Jan Hubicka  <jh@suse.cz>
11987
11988         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
11989
11990 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11991
11992         * dwarf2out.c (size_of_die): Compute size of external reference to
11993         die correctly.
11994
11995 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
11996
11997         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
11998         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
11999         expanders.
12000
12001 2003-03-05  Roger Sayle  <roger@eyesopen.com>
12002
12003         * expr.h (lang_expand_expr): Delete obsolete prototype.
12004
12005 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
12006
12007         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
12008
12009 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
12010
12011         * config/h8300/h8300.md (a peephole2): Generalize to
12012         accept a memory operand.
12013
12014 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
12015
12016         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
12017         * config/alpha/alpha.c (print_operand, case '+'): New.
12018         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
12019         (call_value_osf_1_noreturn): Likewise.
12020
12021 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12022
12023         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
12024         (expand_end_bindings): Likewise.
12025
12026 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12027
12028         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
12029         (epilogue): Don't generate return_external_pic when emitting PA 2.0
12030         code.
12031
12032 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
12033
12034         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
12035
12036         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
12037
12038         * hooks.c (hook_rtx_rtx_null): New.
12039
12040         * hooks.h (hook_rtx_rtx_null): Protoize.
12041
12042         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
12043         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
12044
12045         * target.h (struct gcc_target): Add dwarf_register_span.
12046
12047         * dwarf2out.c (multiple_reg_loc_descriptor): New.
12048         (one_reg_loc_descriptor): New.
12049         (reg_loc_descriptor): Add support for values that span more than
12050         one register.
12051
12052 2003-03-05  Jan Hubicka  <jh@suse.cz>
12053
12054         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
12055         * alias.c:  Include cgraph.h
12056         (mark_constant_function): Use cgraph_rtl_info.
12057         * calls.c:  Include cgraph.h
12058         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
12059         calls.
12060         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
12061         * cgraph.c (cgraph_rtl_info): New function.
12062         * cgraph.h (cgraph_rtl_info): Declare
12063         (cgraph_rtl_info): Likewise.
12064         * function.h (struct function): Add recursive_call_emit.
12065         * toplev.c: Include cgraph.h.
12066         (rest_of_compilation): Set preferred_incoming_stack_boundary.
12067
12068 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
12069
12070         * config/h8300/h8300.c (output_simode_bld): Clear the
12071         destination first if possible.
12072         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
12073         alternative.
12074         (extzv_1_r_inv_h8300hs): Likewise.
12075
12076 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12077
12078         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
12079         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
12080         * cfgloop.c (flow_loop_free): Made global.
12081         (establish_preds): New static function.
12082         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
12083         (get_loop_exit_edges): New.
12084         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
12085         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
12086         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
12087         loops.
12088         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
12089         removability of an edge.
12090         (fix_irreducible_loops): New static function.
12091         (find_path, remove_path): Add ability to remove enclosing loops.
12092         (unloop): New.
12093         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
12094         flags.
12095         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
12096         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
12097         not neccessary.
12098         (decide_peel_completely, peel_loops_completely): Allow complete peeling
12099         of non-duplicable once rolling loops.
12100         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
12101
12102 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
12103
12104         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
12105         for align_jumps is 4.
12106
12107         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
12108         use GENERAL_REGS.
12109
12110 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
12111
12112         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
12113         according to va_arg type.
12114         (EXPAND_BUILTIN_VA_ARG): Remove.
12115         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
12116         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
12117
12118 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
12119
12120         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
12121         else clauses.
12122
12123 2003-03-05  Michael Matz  <matz@suse.de>
12124
12125         * i386/i386.c (ix86_save_reg): Also test
12126         current_function_uses_const_pool.
12127
12128 2003-03-05  Michael Matz  <matz@suse.de>
12129
12130         * unwind.h: Add the GPL exception.
12131         * Makefile.in (USER_H): Add unwind.h.
12132
12133 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
12134
12135         PR c/9799
12136         * c-typeck.c (push_init_level): Add sanity check.
12137
12138 2003-03-05  Jan Hubicka  <jh@suse.cz>
12139
12140         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
12141         RTL inlining is done.
12142
12143         * cgraphunit.c (cgraph_mark_local_functions): New local function.
12144         (cgraph_optimize): Mark local functions.
12145         * i386-protos.h (init_cumulative_args): Update prototype.
12146         * i386.c (init_cumulative_args): Use register passing convention for
12147         local functions.
12148
12149         * cgraph.c (cgraph_global_info_ready): New global variable
12150         (cgraph_local_info, cgraph_global_info): New functions.
12151         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
12152         structures.
12153         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
12154         Declare.
12155         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
12156         (cgraph_mark_functions_to_output): Use inline_many.
12157         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
12158         (cgraph_expand_functions): Expand inline functions last.
12159         (cgraph_optimize): Do not emit uneeded functions.
12160
12161 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
12162
12163         * expr.c (convert_modes): Check for legal hard register.
12164
12165 2003-03-04  Tom Tromey  <tromey@redhat.com>
12166
12167         * doc/sourcebuild.texi (Front End Directory): Document tags.
12168         * configure: Rebuilt.
12169         * configure.in (target_list): Added tags.
12170         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
12171         TAGS files by reference.
12172         * objc/Make-lang.in (objc.tags): New target.
12173
12174 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12175
12176         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
12177         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
12178         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
12179         gcov_read_string, gcov_write_length): Modified to enable reading/
12180         writing of whole .da file just once.
12181         (da_file_open, da_file_close, da_file_eof, da_file_error,
12182         da_file_position, da_file_seek, da_file_write, da_file_read): New
12183         functions.
12184         (actual_da_file, actual_da_file_position, actual_da_file_length,
12185         actual_da_file_buffer, actual_da_file_buffer_size): New static
12186         functions.
12187         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
12188         just once.
12189
12190
12191 2003-03-04  Andreas Schwab  <schwab@suse.de>
12192
12193         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
12194         offset without frame pointer.
12195
12196 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
12197
12198         * expr.c (expand_expr): Call promote_mode to set unsignedp.
12199
12200 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
12201
12202         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
12203         * configure: Regenerated.
12204         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
12205
12206 2003-03-04  Andreas Jaeger  <aj@suse.de>
12207
12208         * configure.in: Check for <memcheck.h>.
12209         * configure: Regenerated.
12210
12211         * config.in: Define HAVE_MEMCHECK_H.
12212
12213         * ggc-common.c: Use <memcheck.h> if available instead of
12214         <valgrind.h>.
12215         * ggc-page.c: Likewise.
12216         * cppfiles.c: Likewise.
12217
12218 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
12219
12220         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
12221
12222 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
12223
12224         PR c/9262
12225         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
12226         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
12227
12228 2003-03-04  Jan Hubicka  <jh@suse.cz>
12229
12230         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
12231         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
12232         for -O3.
12233
12234 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
12235
12236         * configure.in: Delete three unused variables.  Move a variable
12237         definition closer to its use.  Simplify use_collect2 logic.  Start to
12238         organize.  Simplify tests for in-tree gas and ld.
12239         * configure: Regenerate.
12240
12241 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
12242
12243         * Makefile.in: Update.
12244         * c-common.c (flag_no_line_commands, flag_no_output,
12245         flag_dump_macros, flag_dump_includes): New.
12246         * c-common.h (flag_no_line_commands, flag_no_output,
12247         flag_dump_macros, flag_dump_includes, preprocess_file): New.
12248         (init_c_lex): Update prototype.
12249         * c-lex.c (init_c_lex): Update prototype; move some code to
12250         c_common_init.
12251         * c-opts.c (preprocess_file): Subsume into c_common_init.
12252         (c_common_decode_option): Update flags.
12253         (c_common_init): Move code from preprocess_file and init_c_lex.
12254         (sanitize_cpp_opts): Update.
12255         * c-ppoutput.c: New, cppmain.c almost verbatim.
12256         * cpphash.h (struct printer): Remove.
12257         (struct cpp_reader): Remove print.
12258         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
12259         cpp_preprocess_file): Remove.
12260         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
12261         and dump_includes.
12262         * cppmain.c: Remove.
12263         * doc/passes.texi: Update.
12264
12265 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12266
12267         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
12268         (assign_stack_local_1): Perform overall stack alignment only when
12269         STACK_ALIGNMENT_NEEDED is nonzero.
12270         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
12271
12272         * pa.c (compute_frame_size): Rename fsize to size.  Account for
12273         alignment to a word boundary before general register save block.  Only
12274         account for double-word alignment before floating point register save
12275         block if one or more are saved.  Don't allocate space for %r3 when
12276         frame pointer is needed.
12277         (hppa_expand_prologue): Include alignment to word boundary in local
12278         frame size.
12279         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
12280         (STACK_ALIGNMENT_NEEDED): Define.
12281
12282 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
12283
12284         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
12285         global register variables.
12286
12287 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
12288
12289         * reload.c (reload_adjust_reg_for_mode): New function.
12290         (subst_reloads): Call it.
12291         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
12292         * reload.h (reload_adjust_reg_for_mode): Declare.
12293         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
12294         Call it.
12295
12296 2003-03-03  James E Wilson  <wilson@tuliptree.org>
12297
12298         * optabs.c (add_equal_note): Delete SUBREG_REG use.
12299         Fixes PR c/7872.
12300
12301 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
12302
12303         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
12304         (*ixorsi3_lshiftrt_16): New.
12305         (*iorsi3_ashift_16): Remove.
12306
12307 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
12308
12309         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
12310         pattern.
12311
12312 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
12313
12314         * doc/install.texi (Specific): Update entry for powerpc-darwin.
12315
12316 2003-03-03  Richard Henderson  <rth@redhat.com>
12317
12318         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
12319
12320 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
12321
12322         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
12323         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
12324         (rs6000_variable_issue): Do not return negative value.
12325         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
12326         scheduling pass.
12327
12328 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12329
12330         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
12331         prune_unused_types calls.
12332
12333 2003-03-03  Jason Merrill  <jason@redhat.com>
12334
12335         * tree-inline.c (find_builtin_longjmp_call): Save and restore
12336         lineno and input_filename.
12337         (find_alloca_call): Likewise.
12338         (inlinable_function_p): Run the langhook earlier.
12339
12340         * calls.c (compute_argument_addresses): Give the new MEMs a
12341         minimum alignment of PARM_BOUNDARY.
12342
12343 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
12344
12345         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
12346         subtarget_asm_isa_spec.
12347         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
12348         (ASM_SPEC): Define as SH_ASM_SPEC.
12349         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
12350         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
12351         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
12352         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
12353
12354         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
12355         and align_jumps if not set.
12356         Force align_jumps to be at least 2.
12357         When relaxing, force align_functions to be at least the maximum of
12358         align_loops, align_jumps and 4.
12359         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
12360         (sh_loop_align): Honour align_loops_log.
12361
12362         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
12363         to check for indirect_jump_scratch.
12364         (indirect_jump_scratch): Add second set.
12365         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
12366         when looking for indirect_jump_scratch.
12367         Extract scratch register taking new structure of indirect_jump_scratch
12368         into account.
12369         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
12370
12371 2003-03-03  Jan Hubicka  <jh@suse.cz>
12372
12373         * calls.c (rtx_for_function_call): Take the address as an argument
12374         (expand_call): Do not modify the expression.
12375
12376         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
12377         optimizing.
12378
12379 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
12380
12381         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
12382         TARGET_H8300H and TARGET_H8300S.
12383
12384 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
12385
12386         * config/h8300/h8300.md (a peephole2): New.
12387
12388 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
12389
12390         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
12391         operands[0] and operands[1] are different.
12392
12393 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
12394
12395         * reload1.c (reload_cse_move2add): Remove variable success.
12396
12397 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12398
12399         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
12400         warnings.
12401
12402 2003-03-02  Richard Henderson  <rth@redhat.com>
12403
12404         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
12405         * config.in, configure: Rebuild.
12406         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
12407         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
12408         paired ldtoffx and ldxmov annotations.
12409         (load_symptr_internal1): Remove.
12410         (load_symptr_high, load_symptr_low): New.
12411
12412 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
12413
12414         * c-incpath.c (add_path): Fix sysp assignment.
12415
12416 2003-03-02  Kurt Garloff  <garloff@suse.de>
12417
12418         * params.def: Introduce parameter max-inline-insns-rtl for
12419         a separate limit for the RTL inliner.
12420         * params.h: Likewise.
12421         * integrate.c (function_cannot_inline_p): Use it.
12422         * toplev.c (decode_f_option): Set multiple parameters
12423         controlling inlining with -finline-limit.
12424         * params.def: Fix orthographic and typographic errors.
12425         * doc/invoke.texi: Document parameters controlling inlining
12426         and the way -finline-limit sets multiple of them.
12427
12428         * tree.h (struct tree_decl): Introduce inlined_function_flag,
12429         recording whether the function became eligible for inlining
12430         by a compiler flag rather than the declaration.
12431         Provide DID_INLINE_FUNC macro to access it.
12432         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
12433         * cp/decl.c (grokfndecl): Likewise.
12434         * toplev.c (rest_of_compilation): Likewise.
12435         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
12436         * print-tree.c (print_node): Report it.
12437         * params.def: Introduce new max-inline-insns-auto limit.
12438         * params.h: Likewise.
12439         * tree-inline.c (inlinable_function_p): Apply it to functions
12440         with DID_INLINE_FUNC set.
12441         * toplev.c (decode_f_option): Initialize it from -finline-limit
12442         value.
12443         * doc/invoke.texi: Document new parameter.
12444
12445 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
12446
12447         * fix-header.c (read_scan_file): Don't reference simplify_path.
12448
12449 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12450
12451         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
12452         min/max instructions by default as may result in reload errors.
12453
12454 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12455
12456         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
12457         avoid reload problems; define split for it.
12458
12459 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12460
12461         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
12462         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
12463         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
12464         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
12465         rotatert and rotate.
12466         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
12467         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
12468         ("*rotrhi3_addr"): New split for shift insns on address register.
12469         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
12470         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
12471         (___rotrhi3): Likewise.
12472         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
12473
12474 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
12475
12476         * toplev.c (aux_base_name): Moved from toplev.h.
12477         (filename): Constify.
12478         (lang_dependent_init): Don't duplicate name.
12479         (process_options): Set aux_base_name here, not...
12480         (do_compile): ...here.  Change protoype.
12481         (toplev_main): Move some code from do_compile.
12482         * toplev.h: Remove aux_base_name.
12483
12484 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
12485
12486         * config/h8300/h8300-protos.h: Add a prototype for
12487         iorxor_operator.
12488         * config/h8300/h8300.c (print_operand): Handle 'c'.
12489         (iorxor_operator): New.
12490         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
12491         * config/h8300/h8300.md (*iorhi3_zext): Remove.
12492         (*iorsi3_zexthi): Likewise.
12493         (*iorsi3_zextsi): Likewise.
12494         (*xorhi3_zextqi): Likewise.
12495         (*xorsi3_zexthi): Likewise.
12496         (*xorsi3_zextsi): Likewise.
12497         (*ixorhi3_zext): New.
12498         (*ixorsi3_zext_qi): Likewise.
12499         (*ixorsi3_zext_hi): Likewise.
12500
12501 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
12502
12503         * c-incpath.c (remove_component_p, simplify_path): Move back to
12504         cppfiles.c.
12505         (remove_duplicates): Use cpp_simplify_path.
12506         * c-incpath.h (simplify_path): Remove.
12507         * c-lex.c: Don't include c-incpath.h.
12508         (init_c_lex): Remove simplify_path.
12509         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
12510         (find_or_create_entry, validate_pch): Revert.
12511
12512 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
12513
12514         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
12515           an external cpp during compilation.
12516         (option_map): Likewise.
12517         * objc/lang-specs.h (default_compilers): Similarly.
12518         * doc/invoke.texi: Document -no-integrated-cpp flag.
12519
12520 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
12521
12522         * config/h8300/h8300.md (zero_extendqisi2): Change to an
12523         expander.
12524         (*zero_extendqisi2_h8300): New.
12525         (*zero_extendqisi2_h8300hs): New.
12526         (two splitters): New.
12527
12528 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12529
12530         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
12531
12532 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
12533
12534         * config/h8300/h8300.md (a peephole2): Remove dead code.
12535
12536 2003-03-01  Roger Sayle  <roger@eyesopen.com>
12537
12538         PR c++/9367
12539         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
12540         (BT_FN_INT_CONST_STRING_VALIST_ARG,
12541         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
12542         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
12543         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
12544         BT_FN_INT_STRING_CONST_STRING_VAR,
12545         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
12546         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
12547         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
12548         ATTR_NONNULL_3): Also include the nothrow attribute.
12549         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
12550         vsnprintf, vscanf, vsscanf): Don't define attributes here.
12551         * builtins.def (putchar, puts): Make full C89 built-ins.
12552         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
12553         vsscanf, vsnprintf, vsprintf): New built-ins.
12554         * c-common.c (c_common_nodes_and_builtins): Handle new macro
12555         DEF_FUNCTION_TYPE_VAR_3.
12556
12557         * doc/extend.texi: Document these new built-in functions.
12558
12559 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
12560
12561         * config/h8300/h8300.md (a peephole2): New.
12562
12563 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
12564
12565         * predict.c (estimate_bb_frequencies): Correctly set
12566         real_values_initialized after initialization.
12567
12568 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
12569
12570         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
12571         cppinit.o, cppdefault.o, fix-header): Update.
12572         * c-incpath.c: New file.
12573         * c-incpath.h: New file.
12574         * c-lex.c: Include c-incpath.h.
12575         (init_c_lex): Register path simplifier.
12576         * c-opts.c: Include cppdefault.h and c-incpath.h.
12577         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
12578         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
12579         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
12580         (missing_arg, c_common_decode_option): Handle them.
12581         (c_common_post_options): Register include chains.
12582         (print_help): Update.
12583         * cppdefault.h (struct default include): Update.
12584         Move some macros to ...
12585         * cppdefault.c: ... here.
12586         (cpp_include_defaults): Add extra field add_sysroot.
12587         * cppfiles.c (include_file, search_from, find_or_create_entry,
12588         cpp_included, find_include_file, remap_filename): Update for
12589         renaming of search_path to cpp_path, and of the chain headers.
12590         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
12591         * cpphash.h (struct search_path): Move to cpplib.h.
12592         (struct cpp_buffer, struct cpp_reader): Update.
12593         (_cpp_simplify_pathname): Remove.
12594         * cppinit.c: Don't include prefix.h and cppdefault.h.
12595         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
12596         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
12597         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
12598         no_pth, cpp_handle_options): Remove.
12599         (struct pending_option): Remove chain members.
12600         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
12601         cpp_handle_option): Update.
12602         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
12603         (struct cpp_options): Remove quote_include, bracket_include,
12604         include_prefix, include_prefix_len, verbose, ignore_srcdir,
12605         no_standard_includes, no_standard_cplusplus_includes.
12606         (struct cpp_callbacks): Add simplify_path.
12607         (cpp_handle_options): Remove.
12608         * fix-header.c: Include c-incpath.h.
12609         (read_scan_file): Update to use c-incpath functionality.
12610         * doc/passes.texi: Update.
12611
12612 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
12613
12614         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
12615         satisfies EXTRA_CONSTRAINT 'U'.
12616
12617 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
12618
12619         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
12620         register.
12621         (*tst_extzv_memqi_1_n): Change to a splitter.
12622         (a peephole2): Update.
12623
12624 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
12625
12626         * predict.c (estimate_bb_frequencies): Initialize the sreal
12627         constants once per compilation.
12628
12629 2003-02-28  Richard Henderson  <rth@redhat.com>
12630
12631         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
12632
12633 2003-02-28  scott snyder  <snyder@fnal.gov>
12634
12635         * flags.h: Add flag_eliminate_unused_debug_types.
12636         * toplev.c: Add flag_eliminate_unused_debug_types.
12637         (f_options): Add -feliminate-unused-debug-types.
12638         * dwarf2out.c (struct file_table): Add emitted member.
12639         (splice_child_die): Fix the parent pointer for the child being
12640         spliced.
12641         (lookup_filename): Maintain file_table.emitted array.  Don't
12642         output .file directive here.
12643         (maybe_emit_file): (new)
12644         (init_file_table): Set up file_table.emitted.
12645         (dwarf2out_source_line): Use maybe_emit_file.
12646         (dwarf2out_start_source_file): Use maybe_emit_file.
12647         (dwarf2out_init): Use maybe_emit_file.
12648         (prune_unused_types_walk_attribs): (new)
12649         (prune_unused_types_mark): (new)
12650         (prune_unused_types_walk): (new)
12651         (prune_unused_types_prune): (new)
12652         (prune_unused_types): (new)
12653         (dwarf2out_finish): Call prune_unused_types if
12654         flag_eliminate_unused_debug_types is set.
12655         * doc/invoke.texi (Option Summary): Add
12656         -feliminate-unused-debug-types.
12657         (Debugging Options): Likewise.
12658
12659 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
12660
12661         * doc/invoke.texi: Change .pch to .gch.
12662         * cppfiles.c (open_file_pch): Likewise.
12663         * gcc.c (default_compilers): Likewise.
12664
12665 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
12666
12667         * floatlib.c: Remove.
12668
12669 2003-02-28  Jason Merrill  <jason@redhat.com>
12670
12671         * stor-layout.c (variable_size): Leave a "minus 1" outside the
12672         SAVE_EXPR.
12673
12674 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
12675
12676         * config/rs6000/power4.md: Add compare bypass.
12677
12678 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
12679
12680         * config/netbsd.h: Update copyright years.
12681         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
12682         -pthread is specified on the command line.
12683
12684 2003-02-28  Dale Johannesen <dalej@apple.com>
12685
12686         * loop.c (struct movable): Add insert_temp, shrink savemode.
12687         (scan_loop): Accept invariants that require copying; mark as
12688         insert_temp.
12689         (combine_movables): Don't combine insert_temp movables.
12690         (move_movables): Insert copies for insert_temp movables.
12691         Don't record the info based on regno for insert_temp's.
12692
12693 2003-02-28  Joel Sherrill <joel@OARcorp.com>
12694
12695         PR 9638/other
12696         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
12697         this constant defaults to 1.
12698
12699 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
12700
12701         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
12702
12703 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
12704
12705         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
12706         ARMv5e processor, not just for XScale.  Instructions are predicable.
12707         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
12708
12709 2003-02-28  Nick Clifton  <nickc@redhat.com>
12710
12711         * config/arm/arm.c (note_invalid_constants): Change parameter type
12712         from bool to int.
12713
12714 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
12715
12716         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
12717         test of bit 7.
12718         (*tst_extzv_memqi_1_n): Likewise.
12719         (a peephole2): New.
12720
12721 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
12722
12723         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
12724         #ifndef __mips16.
12725
12726 2003-02-28  Jan Hubicka  <jh@suse.cz>
12727
12728         * combine.c (gen_lowpart_for_combine): Update handling of
12729         subregs_of_mode
12730         * flow.c (life_analysis, mark_used_regs): Likewise.
12731         * regclass.c (subregs_of_mode): Turn into single bitmap.
12732         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
12733         dealing with subregs_of_mode
12734         * regs.h (subregs_of_mode): Update prototype.
12735
12736 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
12737
12738         * emit-rtl.c (set_reg_attrs_for_parm): New function.
12739         * rtl.h (set_reg_attrs_for_parm): New exported function.
12740         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
12741         set_reg_attrs_from_mem.
12742
12743 2003-02-27  Roger Sayle  <roger@eyesopen.com>
12744             Zack Weinberg <zack@codesourcery.com>
12745
12746         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
12747
12748 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
12749
12750         * reload1.c (sext_for_mode): Remove.
12751         (reload_cse_move2add): Use trunc_int_for_mode instead of
12752         sext_for_mode.
12753         (move2add_note_store): Likewise.
12754         Reset register information if we see a set in non-integer
12755         mode.
12756
12757 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
12758
12759         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
12760         option.
12761         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
12762         * config/rs6000/aix51.h: Same.
12763         * config/rs6000/aix52.h: Same.
12764         * config/rs6000/power4.md: Additional VMX bypasses.
12765
12766 2003-02-27   Geert Bosch <bosch@gnat.com>
12767
12768         * toplev.c (print_version): Add indentation for GGC heuristics and
12769         output after printing version information.
12770
12771 2003-02-27  James E Wilson  <wilson@tuliptree.org>
12772
12773         * combine.c (simplify_comparison): Require integral mode when
12774         permuting SUBREG with AND.
12775
12776 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
12777
12778         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
12779
12780 2003-02-27  Nick Clifton  <nickc@redhat.com>
12781
12782         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
12783         deleted when cirrus instructions were added.
12784
12785 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
12786
12787         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
12788         POSIX thread support by default.
12789
12790 2003-02-27  Roger Sayle  <roger@eyesopen.com>
12791
12792         * config/i386/cygwin.h: Don't include any other files directly.
12793         * config/i386/mingw32.h: Don't include cygwin.h directly.
12794         * config.gcc (cygwin, mingw32, uwin): Instead make these files
12795         explicit in the tm_files variable.
12796
12797 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
12798
12799         * config/rs6000/rs6000.md: Add TI constant splitter.
12800
12801 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
12802
12803         * builtins.c (purge_builtin_constant_p): Handle subreg of
12804         constant_p_rtx too.
12805
12806         * function.c (assign_stack_local_1): Truncate constant added to
12807         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
12808
12809 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
12810
12811         * config.gcc: Add power4 to PowerPC with_cpu list.
12812
12813 2003-02-26  Jan Hubicka  <jh@suse.cz>
12814
12815         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
12816
12817 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12818
12819         * gcov-dump.c (print_prefix): Fix signedness warning.
12820         * gcov-io.h (struct counter_section, struct counter_section_data): New.
12821         (struct function_info): n_arc_counts field removed, n_counter_sections,
12822         counter_sections fields added.
12823         (struct gcov_info): arc_counts, n_arc_counts fields removed,
12824         n_counter_sections, counter_sections fields added.
12825         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
12826         profile sections.
12827         * profile.h (MAX_COUNTER_SECTIONS): New.
12828         (struct section_info): New.
12829         (struct profile_info): count_instrumented_edges,
12830         count_edges_instrumented_now fields removed, n_sections, section_info
12831         fields added.
12832         (find_counters_section): Declare.
12833         * profile.c (struct function_list): count_edges field removed,
12834         n_counter_sections, counter_sections fields added.
12835         (set_purpose, label_for_tag, build_counter_section_fields,
12836         build_counter_section_value, build_counter_section_data_fields,
12837         build_counter_section_data_value, build_function_info_fields,
12838         build_function_info_value, build_gcov_info_fields,
12839         build_gcov_info_value): New static functions.
12840         (find_counters_section): New function.
12841         (instrument_edges, get_exec_counts, compute_branch_probabilities,
12842         branch_prob, create_profiler): Modified to support multiple profile
12843         sections.
12844
12845 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12846
12847         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
12848         is 8 * STACK_BOUNDARY.
12849         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
12850
12851 2003-02-26  Michael Matz  <matz@suse.de>
12852
12853         * ra-colorize.c (merge_moves): Fix list handling.
12854
12855 2003-02-26  Nick Clifton  <nickc@redhat.com>
12856
12857         * config/arm/arm.c (is_load_address): Rename to...
12858         (arm_memory_load_p) ... this and make it check for SUBREGs and
12859         constant loads that will be converted into loads from the
12860         minipool.
12861         (is_cirrus_insn): Rename to ...
12862         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
12863         of CIRRUS_NO with CIRRUS_NOT.
12864         (cirrus_reorg): Use renamed functions.
12865         (note_invalid_constants): Change from a void function to bool.
12866         Add an extra parameter, saying whether the fixups should be
12867         pushed.  Return true if fixups are needed.
12868         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
12869         of CIRRUS_NO with CIRRUS_NOT.
12870         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
12871         other floating point co-processors can also affect this.
12872         * config/arm/arm.md ("type" attribute): Add mav_farith and
12873         mav_dmult.  Replace references to "cirrus_type" attribute with
12874         "type".
12875         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
12876         ("cirrus_type" attribute): Delete - use "type" instead.
12877         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
12878         'normal'.
12879
12880 2003-02-25  Jan Hubicka  <jh@suse.cz>
12881
12882         * objc-act.c: Include cgraph.h
12883         (mark_referenced_methods): New function.
12884         (objc_init): Call it.
12885         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
12886
12887         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
12888         mode.
12889
12890         * optabs.c (expand_fix): Do not widen the input operand.
12891
12892         * expr.c (emit_group_store):  Fix crash when converting single
12893         register into complex register.
12894
12895         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
12896         * alias.c: Include timevar.h
12897         (init_alias_analysis):  Set timevar
12898         * jump.c: Include timevar.h
12899         (rebuild_jump_labels):  Set timevar
12900         * regcalss.c: Include timevar.h
12901         (reg_scan):  Set timevar
12902         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
12903
12904 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12905
12906         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
12907
12908         * Makefile.in (loop-unroll.o): New.
12909         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
12910         (unroll_and_peel_loops): Declare.
12911         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
12912         flag_old_unroll_loops.
12913         * loop.c (loop_invariant_p): Ditto.
12914         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
12915         flag_old_unroll_all_loops.
12916         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
12917         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
12918         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
12919         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
12920         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
12921         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
12922         PARAM_MAX_ONCE_PEELED_INSNS): New.
12923         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
12924         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
12925         instead of old one.
12926         (flag_peel_loops): New.
12927         (lang_independent_options): The new flags added.
12928         (rest_of_compilation): Call new unroller.
12929         (process_options): Setup flags for coexistence of old and new unroller.
12930         * doc/invoke.texi: Document new options.
12931         * doc/passes.texi: Document new unroller pass.
12932
12933 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
12934
12935         * fixinc/fixincl.x: Regenerate
12936
12937 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
12938
12939         * function.c (assign_parms): Set reg_attrs for parameters passed in
12940         registers.
12941
12942 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
12943
12944         PR target/9681
12945         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
12946
12947 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
12948
12949         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
12950         pseudo-op.
12951
12952 2003-02-25  Roger Sayle  <roger@eyesopen.com>
12953
12954         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
12955         * cse.c (invalidate_skipped_set):  Likewise.
12956         * integrate.c (subst_constants):  Likewise.
12957         * jump.c (reversed_comparison_code_parts):  Likewise.
12958         * loop.c (canonicalize_condition):  Likewise.
12959         * simplify-rtx.c (simplify_relational_operation):  Likewise.
12960
12961 2003-02-25  Roger Sayle  <roger@eyesopen.com>
12962
12963         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
12964         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
12965         the appropriate macro to define built-in function.
12966         (fmod,fmodf,fmodl): New built-in functions.
12967
12968         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
12969
12970 2003-02-25  Richard Henderson  <rth@redhat.com>
12971
12972         * config/i386/i386.c (function_arg): Pass variable sized
12973         structures correctly on the stack.
12974
12975 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
12976
12977         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
12978         does not reduce the cost of SET.
12979
12980 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12981
12982         PR target/9732
12983         * config/rs6000/rs6000.c (first_reg_to_save): Handle
12984         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
12985         (rs6000_emit_prologue): Likewise.
12986         (rs6000_emit_epilogue): Likewise.
12987         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
12988         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
12989
12990 2003-02-25  Richard Henderson  <rth@redhat.com>
12991
12992         * real.c (real_to_integer2): Force overflow result only for
12993         unsigned overflow.
12994
12995 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
12996
12997         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
12998
12999 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
13000             Richard Henderson  <rth@redhat.com>
13001
13002         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
13003         there is no similar load.
13004
13005 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
13006             Richard Henderson  <rth@redhat.com>
13007
13008         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
13009         sched-rgn.c.
13010         (add_forward_dependence): New function prototype.
13011
13012         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
13013         sched-init.h.
13014         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
13015         them to haifa-sched.c.
13016
13017         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
13018         haifa_classify_insn): Move them from sched-rgn.c.
13019
13020         * sched-deps.c (add_dependence): Return flag of creating a new
13021         entry.
13022         (add_forward_dependence): New function.
13023         (compute_forward_dependences): Use the function.
13024
13025         * sched-ebb.c (earliest_block_with_similiar_load): New function.
13026         (add_deps_for_risky_insns): New function.
13027         (schedule_ebb): Call the function.
13028
13029 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
13030
13031         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
13032         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
13033
13034         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
13035         opaque types fail.
13036
13037         * c-typeck.c (comptypes): Change call to vector_types_compatible
13038         to vector_opaque_p.
13039         (convert_for_assignment): Call vector_opaque_p instead of
13040         vector_types_compatible.
13041         (really_start_incremental_init): Disallow initialization of opaque
13042         types.
13043
13044         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
13045         Define TARGET_VECTOR_OPAQUE_P.
13046         (TARGET_INITIALIZER): Same.
13047
13048         * target.h (struct gcc_target): Remove vector_types_compatible.
13049         Add vector_opaque_p.
13050
13051         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
13052         Remove.
13053         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
13054         a vector type.  Change return type to bool.
13055         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
13056         (TARGET_VECTOR_OPAQUE_P): Define.
13057
13058         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
13059         target hook.
13060         Include target.h.
13061         (cp_parser_init_declarator): Fix typo in function comments.
13062
13063 2003-02-25  Jan Hubicka  <jh@suse.cz>
13064
13065         * Makefile.in (lcm.o):  Add dependency on function.h
13066         * lcm.c (function.h): Include.
13067         * i386.c (machine_function, ix86_stack_locals,
13068         * ix86_save_varrargs_registers) : Move to
13069         ...
13070         * i386.h (machine_function, ix86_stack_locals,
13071         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
13072         (ix86_optimize_mode_switching): New.
13073         * i386.md (fix patterns): Set ix86_optimize_mode_switching
13074
13075 2003-02-25  Nick Clifton  <nickc@redhat.com>
13076
13077         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
13078         of fourth arg is 'fndecl' not 'indirect'.  Update comment
13079         describing the function's parameters.
13080
13081 2003-02-24  Jan Hubicka  <jh@suse.cz>
13082
13083         * combine.c (simplify_shift_const):  Fix previous patch.
13084
13085 2003-02-24  Jeff Law  <law@redhat.com>
13086
13087         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
13088         alternative.
13089         (testsi_1, testhi_1, testqi_1): Likewise.
13090
13091 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13092
13093         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
13094         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
13095         * doc/extend.texi (Tru64 Pragmas): Reflect this.
13096
13097         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
13098         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
13099         * fixinc/fixincl.x: Regenerate.
13100         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
13101         testcase.
13102         Fixes PR c/5059, c/6126, other/9671.
13103
13104 2003-02-24  Roger Sayle  <roger@eyesopen.com>
13105
13106         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
13107         from handle_braces in "%{...}".
13108
13109 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
13110
13111         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
13112         (prepare_move_operands): Handle TLS operands.
13113         (tls_symbolic_operand): New.
13114         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
13115         (legitimize_pic_address): Do nothing for the TLS symbol.
13116         (sh_encode_section_info): Handle TLS case.
13117         (sh_strip_name_encoding): Drop TLS encoding.
13118         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
13119         * config/sh/sh.h (SH_TLS_ENCODING): Define.
13120         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
13121         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
13122         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
13123         * config/sh/sh.md: Define TLS UNSPEC constants.
13124         (type): Add tls_load.
13125         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
13126         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
13127         ("tls_initial_exec"): New insn.
13128         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
13129         ("load_gbr"): New insn.
13130
13131         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
13132         * configure: Regenerate.
13133
13134 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
13135
13136         PR 9297, PR 9722
13137         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
13138         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
13139         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
13140         (enum block_op_methods): Reorder for better store_expr optimization.
13141         * expr.c (store_expr): Test bit 1 of "want_value" for call param
13142         stores, test bit 0 for original want_value meaning.  Pass
13143         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
13144         recursive calls, and calls to expand_param.
13145         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
13146         expected, set target to 0 rather than to subtarget.  Formatting.
13147
13148 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
13149
13150         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
13151
13152 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13153
13154         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
13155         new default behavior.
13156         * ggc-common.c: Include sys/resource.h.
13157         (ggc_rlimit_bound): New function.
13158         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
13159         defaults to account for rlimits.
13160
13161 2003-02-22  Richard Henderson  <rth@redhat.com>
13162
13163         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
13164
13165 2003-02-22  Kelley Cook <kelley@dwhoops.info>
13166
13167         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
13168         (ix86_tune_string): Rename from ix86_cpu_string.
13169
13170 2003-02-22  Kelley Cook <kelleycook@comcast.net>
13171
13172         * config/i386/i386.c: Replace "mcpu" with "mtune".
13173         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
13174         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
13175         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
13176         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
13177
13178 2003-02-23  Andreas Schwab  <schwab@suse.de>
13179
13180         * config.gcc: Delete references to m68k/t-linux and
13181         m68k/t-linux-aout.
13182         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
13183
13184 2003-02-22  Jan Hubicka  <jh@suse.cz>
13185
13186         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
13187         of track scheduling patch.
13188
13189 2003-02-22  Jan Hubicka  <jh@suse.cz>
13190
13191         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
13192         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
13193
13194 2003-02-22  Jan Hubicka  <jh@suse.cz>
13195
13196         * c-decl.c (c_expand_body_1): Fix.
13197
13198 2003-02-22  Jan Hubicka  <jh@suse.cz>
13199
13200         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
13201
13202         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
13203         when not optimizing.
13204         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
13205         when not expensive.
13206         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
13207         optimizing;  Delete trivially dead insns early; fix optimize check.
13208
13209         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
13210         dependency on cgraph.h
13211         * c-decl.c: Include cgraph.h
13212         (finish_function): Update call of tree_inlinable_function_p.
13213         * c-objc-common.c: Include cgraph.h
13214         * cgraph.h: New file.
13215         * cgraphunit.c: New file.
13216         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
13217         (cgraph_nodes, cgraph_n_nodes): Globalize.
13218         (cgraph_finalize_function, cgraph_finalize_compilation_unit
13219         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
13220         Move into cgraphunit.c
13221         * tree-inline.c: Include cgraph.h
13222         * tree-inline.c: Include cgraph.h
13223
13224 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
13225
13226         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
13227         for copying a register.
13228
13229 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
13230
13231         PR other/3782
13232         * toplev.c (process_options): If flag_detailed_statistics is set,
13233         then set time_report as well.
13234
13235         PR c/8828
13236         * jump.c (never_reached_warning): Don't fall through BARRRIER
13237         insns.  Update comments to reflect what the function really does.
13238
13239 2003-02-21  Roger Sayle  <roger@eyesopen.com>
13240
13241         * fold-const.c (omit_one_operand): No longer static.
13242         * tree.h (omit_one_operand): Prototype here.
13243         (div_and_round_double): Keep fold-const.c prototypes together.
13244         * builtins.c (builtin_mathfn_code): Handle binary built-in
13245         funtions, such as "pow" and "atan2".
13246         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
13247         Simplify optimizations using "type" the builtin's return type.
13248
13249 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
13250
13251         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
13252         Fix functionalization typo.
13253
13254         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
13255         in an asm.
13256
13257 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13258
13259         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
13260         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
13261         documentation.
13262         * ggc-common.c: Include params.h
13263         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
13264         init_ggc_heuristics): New functions.
13265         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
13266         init_ggc_heuristics): Prototype.
13267         * toplev.c (print_version):  Output GGC heuristics.
13268         (parse_options_and_default_flags): Call init_ggc_heuristics.
13269
13270 2003-02-22  Jan Hubicka  <jh@suse.cz>
13271
13272         * i386.c (def_builtin):  Special case 64bit builtins.
13273         (MASK_SSE164, MASK_SSE264): New constants.
13274         (builtin_description): Add 64bit builtins.
13275         (ix86_init_mmx_sse_builtins): Likewise.
13276         * i386.h (enum ix86_builtins): Likewise.
13277         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
13278         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
13279         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
13280         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
13281         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
13282         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
13283         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
13284
13285 2003-02-22  Jan Hubicka  <jh@suse.cz>
13286
13287         * i386.c (builtin_description): Add __builtin_ia32_paddq and
13288         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
13289          and __builtin_ia32_psubq128.
13290         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
13291         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
13292         (mmx_adddi3, mmx_subdi3): New.
13293         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
13294         * xmmintrin.h (_mm_movepi64_pi64): New.
13295         (_mm_add_epi64, _mm_sub_epi64): fix.
13296         (_mm_mul_pu16): Rename to...
13297         (_mm_mul_su32): ... this one.
13298
13299         * builtins.c (expand_builtin_expect):  Do not predict
13300         flag_guess_branch_prob is not set.
13301         * c-semantics.c (expand_stmt): Likewise.
13302         * predict.c (predict_insn): Likewise.
13303         * stmt.c (expand_continue_loop): Likewise.
13304         * toplev.c (rest_of_compilation): Do not call
13305         note_prediction_to_br_prob and note_prediction_to_br_prob
13306         when not optimizing.
13307
13308 2003-02-21  Jan Hubicka  <jh@suse.cz>
13309
13310         * cfgrtl.c (commit_edge_insertions):  Call
13311         find_many_sub_basic_block only when some code has been emitted.
13312         (commit_edge_insertions_watch_calls): Bring into sync with
13313         commit_edge_insertions
13314
13315 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
13316
13317         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
13318
13319         * sh.md (binary_sf_op): Use extra constant operand instead of
13320         negating constant operand 4.
13321         * sh.c (sh_expand_binop_v2sf): Supply it.
13322
13323 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
13324
13325         * cpphash.h (struct lexer_state): Add directive_wants_padding.
13326         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
13327         for directives of type INCL.
13328         (glue_header_name, parse_include): Use get_token_no_padding.
13329         * cppmacro.c (replace_args): If directive_wants_padding,
13330         provide padding tokens.
13331
13332 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
13333
13334         * config/h8300/h8300.md (a peephole2): New.
13335
13336 2003-02-21  Jan Hubicka  <jh@suse.cz>
13337
13338         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
13339         (commit_edge_insertions): Call find_many_sub_basic_blocks
13340
13341         * reg-stack.c (convert_regs): Cleax aux for blocks.
13342
13343 2003-02-21  Jan Hubicka  <jh@suse.cz>
13344
13345         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
13346
13347 2003-02-21  Glen Nakamura  <glen@imodulo.com>
13348
13349         PR optimization/8613
13350         * builtins.c (expand_builtin): Emit postincrements before expanding
13351         builtin functions.
13352
13353 2003-02-21  Ben Elliston  <bje@redhat.com>
13354
13355         PR other/5634
13356         * doc/install.texi (Configuration): Explain using $HOME instead of
13357         the ~ metacharacter when referring to home directories.
13358
13359 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
13360
13361         * configure.in (TARGET_SYSTEM_ROOT): Set default to
13362         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
13363         '${exec_prefix}' (in addition to the expansion thereof) as
13364         relocatable.
13365         * configure: Rebuilt.
13366
13367 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
13368
13369         * config/h8300/h8300.md (addhi3_incdec): Change the name to
13370         *addhi3_incdec.
13371         (addsi3_incdec): Change the name to *addsi3_incdec.
13372
13373 2003-02-20  Roger Sayle  <roger@eyesopen.com>
13374
13375         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
13376
13377 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
13378
13379         PR fortran/9038
13380         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
13381         options to be ignored.
13382         (c_common_decode_option): Ignore them when preprocessing.
13383
13384 2003-02-20  Jan Hubicka  <jh@suse.cz>
13385
13386         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
13387         global variables.
13388         (lang_independent_options):  Add -fsched2-use-superblocks
13389         -fsced2-use-traces.
13390         (rest_of_compilation): Deal with it.
13391         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
13392         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
13393         Declare.
13394         * rtl.h (reg_to_stack):  Update prototype.
13395         * reg-stack.c (reg_to_stack): Return when something has changed;
13396         update liveness when executing after superblock scheduling.
13397
13398         * combine.c (simplify_shift_const):  Simplify few special cases
13399         into constants.
13400
13401 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
13402
13403         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
13404         (add.,subf.,neg.): Change attribute to fast_compare.
13405         All DFA descriptions updated.
13406
13407 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
13408
13409         Change base class access representation.
13410         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
13411         TREE_VIA_PRIVATE): Remove.
13412         (BINFO_BASEACCESSES): New binfo elt.
13413         (BINFO_BASEACCESS): New accessor.
13414         (BINFO_ELTS): Increase.
13415         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
13416         (access_public_node, access_protected_node,
13417         access_private_node): New global nodes.
13418         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
13419         * dbxout.c (dbxout_type): Adjust.
13420         * dwarf2out.c (gen_inheritance_die): Add access parameter.
13421         (gen_member_die): Adjust.
13422         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
13423         (output_type): Adjust.
13424         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
13425
13426         Change base class access representation. Share virtual base
13427         binfos.
13428         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
13429         call.
13430         * cp/class.c (build_base_path): Likewise.
13431         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
13432         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
13433         (make_new_vtable): Adjust.
13434         (force_canonical_binfo_r): Delete.
13435         (force_canonical_binfo): Delete.
13436         (mark_primary_virtual_base): Delete.
13437         (dfs_unshared_virtual_bases): Delete.
13438         (mark_primary_bases): Adjust.
13439         (maybe_warn_about_overly_private_class): Adjust.
13440         (dfs_base_derived_from): Delete.
13441         (base_derived_from): Follow the inheritance chain.
13442         (struct find_final_overrider_data): Add vpath member.
13443         (dfs_find_final_overrider): Adjust.
13444         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
13445         (find_final_overrider): Adjust.
13446         (update_vtable_entry_for_fn): Adjust.
13447         (modify_all_vtables): Adjust.
13448         (walk_subobject_offsets): Adjust.
13449         (layout_nonempty_base_or_field): Adjust.
13450         (layout_empty_base): Remove last parameter. Adjust.
13451         (build_base_field): Adjust.
13452         (build_base_fields): Adjust.
13453         (propagate_binfo_offsets): Remove last parameter. Adjust.
13454         (dfs_set_offset_for_unshared_vbases): Delete.
13455         (layout_virtual_bases): Adjust.
13456         (finish_struct_1): Adjust.
13457         (init_class_processing): Don't init access nodes.
13458         (dfs_get_primary_binfo): Delete.
13459         (get_primary_binfo): Adjust.
13460         (dump_class_hierarchy_r): Remove most derived arg, add IGO
13461         parameter. Adjust.
13462         (dump_class_hierarchy): Adjust.
13463         (finish_vtbls): Adjust.
13464         (get_original_base): Delete.
13465         (build_vtt_inits): Adjust.
13466         (dfs_build_secondary_vptr_vtt_inits): Adjust.
13467         (dfs_ctor_vtable_bases_queue_p): Adjust.
13468         (build_ctor_vtbl_group): Adjust.
13469         (dfs_accumulate_vtbl_inits): Adjust.
13470         (build_vtbl_initializer): Adjust.
13471         (build_vbase_offset_vtbl_entries): Adjust.
13472         (add_vcall_offset_vtbl_entries_1): Adjust.
13473         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
13474         (access_*_node): Remove.
13475         (CANONICAL_BINFO): Delete.
13476         (BINFO_UNSHARED_MARKED): Remove.
13477         (BINFO_MARKED): Set LANG_FLAG_0 directly.
13478         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
13479         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
13480         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
13481         Delete.
13482         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
13483         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
13484         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
13485         Delete.
13486         (BINFO_DEPENDENT_BASE_P): New.
13487         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
13488         index.
13489         (markedp, unmarkedp): Adjust.
13490         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
13491         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
13492         find_vbase_instance, binfo_for_vbase): Delete.
13493         (copied_binfo, original_binfo): Declare.
13494         (finish_base_specifier): Add virtual_p arg.
13495         (unshare_base_binfos): Delete.
13496         (copy_base_binfos): Declare.
13497         (reverse_path): Delete.
13498         * cp/decl.c (xref_basetypes): Access and virtuality passed
13499         differently. Don't copy direct base binfos here. Call
13500         copy_base_binfos.
13501         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
13502         (initialize_vtbl_ptrs): Adjust.
13503         (expand_member_init): Adjust.
13504         * cp/parser.c (cp_parser_base_specifier): Adjust.
13505         * cp/pt.c (instantiate_class_template): Adjust.
13506         (get_template_base_recursive): Adjust.
13507         * cp/rtti.c (get_pseudo_ti_init): Adjust.
13508         (get_pseudo_ti_desc): Adjust.
13509         * cp/tree.c (unshare_base_binfos): Rename to ...
13510         (copy_base_binfos): ... here, reimplement.
13511         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
13512         (reverse_path): Remove.
13513         * cp/typeck.c (get_delta_difference): Adjust error messages.
13514         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
13515         * cp/search.c (lookup_base_r): Adjust.
13516         (dynamic_cast_base_recurse): Adjust.
13517         (canonical_binfo): Remove.
13518         (dfs_canonical_queue): Remove.
13519         (dfs_assert_unmarked_p): Remove.
13520         (assert_canonical_unmarked): Remove.
13521         (shared_marked_p, shared_unmarked_p): Remove.
13522         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
13523         (dfs_access_in_type): Adjust.
13524         (access_in_type): Adjust.
13525         (dfs_accessible_queue_p): Adjust.
13526         (dfs_accessible_p): Adjust.
13527         (is_subobject_of_p_1, is_subobject_of_p): Remove.
13528         (struct lookup_field_info): Remove from_dep_base_p field.
13529         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
13530         (lookup_field_r): Remove dependent base code.
13531         (lookup_member): Likewise.
13532         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
13533         (dfs_unmarked_real_bases_queue_p): Remove.
13534         (dfs_marked_real_bases_queue_p): Remove.
13535         (dfs_skip_vbases): Remove.
13536         (dfs_get_pure_virtuals): Adjust.
13537         (markedp, unmarkedp): Adjust.
13538         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
13539         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
13540         (dfs_unmark): Adjust.
13541         (dfs_get_vbase_types):Remove.
13542         (dfs_build_inheritance_graph_order): Remove.
13543         (get_vbase_types): Remove
13544         (dfs_find_vbase_instance): Remove.
13545         (find_vbase_instance): Remove.
13546         (dfs_debug_unmarkedp): Adjust.
13547         (dependent_base_p): Remove.
13548         (dfs_push_type_decls): Adjust.
13549         (dfs_push_decls): Adjust.
13550         (dfs_no_overlap_yet): Adjust.
13551         (copied_binfo): New function.
13552         (original_binfo): New function.
13553         (binfo_for_vbase): Remove.
13554
13555         Change base class access representation.
13556         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
13557         (add_interface_do): Likewise.
13558
13559 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
13560
13561         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13562         * config/rs6000/power4.md (power4-store,power4-vecstore): New
13563         insn reservations.
13564         (power4-fpstore): Compact.
13565
13566 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
13567
13568         * config/h8300/h8300.md (*iorsi3_w): New.
13569
13570 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
13571
13572         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
13573         * rtl.c (reg_note_name): Likewise.
13574         * rtl.h (enum reg_note): Likewise.
13575         * doc/invoke.texi: Likewise.
13576         * doc/rtl.texi: Likewise.
13577
13578 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
13579
13580         * bb-reorder.c (find_traces_1_round): Fix comment typo.
13581
13582 2003-02-19  Roger Sayle  <roger@eyesopen.com>
13583
13584         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
13585         addition in the presence of signaling NaNs.
13586
13587 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
13588
13589         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
13590
13591 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
13592
13593         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
13594         ORing with 0xffff??00 with the highest bit of the ?? part set.
13595         (compute_logical_op_length): Update.
13596         (compute_logical_op_cc): Likewise.
13597
13598 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
13599
13600         * bb-reorder.c (find_traces_1_round): Fixed condition for small
13601         destination block with multiple predecessors.
13602         (connect_traces): Check whether the block is a start of trace.
13603
13604 2003-02-19  Jan Hubicka  <jh@suse.cz>
13605
13606         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
13607         * function.c (assign_params): Likewise.
13608         * arm-protos.h (arm_init_cumulative_args): Update prototype.
13609         * arm.c (arm_init_cumulative_args): Update function.
13610         * arm.h (INIT_CUMULATIVE_ARGS): Update.
13611         * avr-protos.h (init_cumulative_args): Update prototype.
13612         * avr.c (init_cumulative_args): Update function.
13613         * avr.h (INIT_CUMULATIVE_ARGS): Update.
13614         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
13615         * d30v.c (d30v_init_cumulative_args): Update function.
13616         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
13617         * frv-protos.h (frv_init_cumulative_args): Update prototype.
13618         * frv.c (frv_init_cumulative_args): Update function.
13619         * frv.h (INIT_CUMULATIVE_ARGS): Update.
13620         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
13621         * pa.h (INIT_CUMULATIVE_ARGS): Update.
13622         * sparc-protos.h (init_cumulative_args): Update prototype.
13623         * sparc.c (init_cumulative_args): Update function.
13624         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
13625         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
13626
13627 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
13628
13629         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
13630         (*ashiftsi_sextqi_7): Likewise.
13631
13632 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13633
13634         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
13635         ISO C99 and C++.
13636
13637         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
13638         for C++ on IRIX 6.5.1[89].
13639         * fixinc/tests/base/internal/sgimacros.h: New file.
13640
13641         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
13642         * fixinc/tests/base/internal/wchar_core.h: New file.
13643
13644         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
13645         socklen_t definition.
13646         * fixinc/fixincl.x: Regenerate.
13647         * fixinc/tests/base/sys/socket.h: New file.
13648         Fixes PR libgcj/9652.
13649
13650 2003-02-19  Jan Hubicka  <jh@suse.cz>
13651
13652         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
13653
13654 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
13655
13656         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
13657         align_jumps_max_skip and align_loops_max_skip.
13658
13659 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
13660
13661         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
13662         test size if named section.
13663
13664 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
13665
13666         * expr.c (expand_expr): Use gen_int_mode for the argument
13667         to gen_rtx_MULT.
13668
13669 2003-02-19  Jan Hubicka  <jh@suse.cz>
13670
13671         * i386.md (cosxf2):  Fix conditional.
13672
13673 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
13674
13675         * config/h8300/h8300.md (extendqisi2): Change to an expander.
13676         (*extendqisi2_h8300): New.
13677         (*extendqisi2_h8300hs): Likewise.
13678
13679 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
13680
13681         * config/h8300/h8300-protos.h: Update the prototype for
13682         split_adds_subs.  Remove the prototypes for
13683         const_int_le_2_operand and const_int_le_6_operand.
13684         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
13685         (const_int_le_2_operand): Remove.
13686         (const_int_le_6_operand): Likewise.
13687         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
13688         for const_int_le_2_operand and const_int_le_6_operand.
13689         * config/h8300/h8300.md: Update all uses of split_adds_subs.
13690         (a peephole2): New.
13691
13692 2003-02-18  Jan Hubicka  <jh@suse.cz>
13693
13694         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
13695         (cgraph_expand_function): Rewrite.
13696
13697 2003-02-18  Matt Austern <austern@apple.com>
13698
13699         * toplev.c, langhooks.c, langhooks-def.h: Move
13700         write_global_declarations from toplev.c to langhooks.c.
13701
13702 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
13703
13704         * config/h8300/h8300.c (general_operand_src): Always check
13705         MODE.
13706         (general_operand_dst): Likewise.
13707
13708 2003-02-18  Roger Sayle  <roger@eyesopen.com>
13709
13710         * convert.c (convert_to_real): Also optimize (float)log(x) into
13711         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
13712
13713 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
13714
13715         * config/sh/sh.c (unspec_caller_rtx_p): New.
13716         (sh_cannot_copy_insn_p): New.
13717         (TARGET_CANNOT_COPY_INSN_P): New.
13718
13719 2003-02-18  Richard Henderson  <rth@redhat.com>
13720
13721         * c-common.c (handle_used_attribute): Accept static data too.
13722
13723 2003-02-18  Nick Clifton  <nickc@redhat.com>
13724             Aldy Hernandez  <aldyh@redhat.com>
13725
13726         * testsuite/gcc.dg/20030218-1.c: New.
13727
13728         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
13729
13730         * target-def.h (TARGET_INITIALIZER): Add
13731         TARGET_VECTOR_TYPES_COMPATIBLE.
13732         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
13733
13734         * target.h (struct gcc_target): Add field vector_types_compatible.
13735
13736         * c-typeck.c (comptypes): Take into account
13737         TARGET_VECTOR_TYPES_COMPATIBLE.
13738         (convert_for_assignment): Same.
13739
13740         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
13741         (rs6000_spe_vector_types_compatible): New.
13742         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
13743
13744 2003-02-19  Andreas Schwab  <schwab@suse.de>
13745
13746         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
13747         * toplev.c: Include langhooks-def.h.
13748
13749 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
13750
13751         * config/mips/mips.h (enum processor_type): Sort entries
13752         alphabetically.
13753         * config/mips/mips.md (define_attr cpu): Sync with processor_type
13754         enum values, including adding entries that were missing.
13755
13756 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
13757
13758         * sh.c (calc_live_regs): Also check GET_CODE when checking if
13759         initial value for PR_REG is still the PR_REG register.
13760
13761 2003-02-18  Jim Wilson  <wilson@redhat.com>
13762
13763         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
13764         instruction in output template.
13765         (bsp_value): Change output template from string to C code, add %,
13766         before actual instruction.
13767         (flushrs): Mark as not predicable.
13768
13769 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
13770
13771         * inclhack.def (netbsd_bogus_semicolon): New fix.
13772         * fixincl.x: Rebuilt.
13773         * tests/base/ctype.h: Update.
13774
13775 2003-02-18  Roger Sayle  <roger@eyesopen.com>
13776
13777         * fold-const.c (negate_expr_p): New function to determine whether
13778         an expression can be negated cheaply.
13779         (fold) [MINUS_EXPR]: Use it to determine whether to transform
13780         -A - B into -B - A for floating point types.
13781
13782 2003-02-18  Roger Sayle  <roger@eyesopen.com>
13783
13784         * sbitmap.c (sbitmap_resize): New function.
13785         * sbitmap.h (sbitmap_resize): Prototype here.
13786         * recog.c (split_all_insns): Use sbitmap_resize.
13787
13788 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
13789
13790         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
13791         insn length.
13792         (extendqisi2): Likewise.
13793         (*extendhisi2_h8300): Likewise.
13794
13795 2003-02-18  Matt Austern <austern@apple.com>
13796
13797         * langhooks.h, langhooks-def.h: introduce new langhook,
13798         final_write_globals, with write_global_declarations as default.
13799         * toplev.c: Move invocation of wrapup_global_declarations from
13800         compile_file to new function, write_global_declarations.  Change
13801         compile_file to use final_write_globals hook.  Change
13802         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
13803         conditional.
13804
13805 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13806
13807         * pa.md: Correct and enhance comment.
13808
13809 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
13810
13811         * gcc.c (validate_switches): Don't scan past closing '}'.
13812
13813 2003-02-18  Ben Elliston  <bje@redhat.com>
13814
13815         PR c++/1607
13816         * doc/extend.texi (Function Attributes): Document the effect of
13817         the C++ "this" parameter on the counting of arguments for the
13818         "format" and "format_arg" attributes.
13819
13820 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
13821
13822         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
13823         (__ev_stdw): Same.
13824         (__ev_stdh): Same.
13825
13826 2003-02-17  Jan Hubicka  <jh@suse.cz>
13827
13828         * recog.c (split_all_insns):  Fix memory overflow.
13829
13830 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
13831
13832         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
13833         (cmphi): Likewise.
13834         (*cmphi_h8300): Likewise.
13835         (*cmphi_h8300hs): Likewise.
13836         (cmpsi): Likewise.
13837         (7 peephole2): Likewise.
13838
13839 2003-02-16  Jan Hubicka  <jh@suse.cz>
13840
13841         * c-typeck.c (build_c_cast):  Fold constant variables into
13842         initial values.
13843
13844 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13845
13846         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
13847         (Binaries): Ditto for Sinix/Reliant Unix.
13848
13849 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
13850
13851         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
13852         not overlap the final result register.
13853
13854 2003-02-16 Arend Bayer <arend.bayer@web.de>
13855            Richard Henderson  <rth@redhat.com>
13856
13857         PR c/8068
13858         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
13859         rearrange mult arguments for less recursion.
13860         (extract_muldiv): New.  Prevent runaway recursion.
13861
13862 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
13863
13864         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
13865         MASK_ALIGN_DOUBLE.
13866
13867 2003-02-15  Roger Sayle  <roger@eyesopen.com>
13868
13869         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
13870         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
13871         (ext_80387_constants_table): Global table of 80387 special constants
13872         guarded by ext_80387_constants_init flag when not initialized.
13873         (init_ext_80387_constants): New function to initialize this table.
13874         (standard_80387_constant_p): Extend to recognize extra 80387
13875         constants, in XFmode, on processors where this is a win.
13876         (standard_80387_constant_opcode): New function to return the
13877         opcode associated with standard_80387_constant_p.
13878         (standard_80387_constant_rtx): New function to return the XFmode
13879         CONST_DOUBLE associated with standard_80387_constant_p.
13880         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
13881
13882         * config/i386/i386-protos.h (standard_80387_constant_opcode):
13883         Prototype here.
13884         (standard_80387_constant_rtx): Likewise.
13885
13886         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
13887         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
13888         *movtf_integer): Simplify using new standard_80387_constant_opcode.
13889
13890 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
13891
13892         * doc/invoke.texi (Optimize Options): Correct @option syntax.
13893
13894 2003-02-15  Richard Henderson  <rth@redhat.com>
13895
13896         * Makefile.in (cfglayout.o): Depend on TARGET_H.
13897         * cfglayout.c: Include target.h.
13898         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
13899         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
13900         * target.h (struct gcc_target): Add cannot_copy_insn_p.
13901
13902         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
13903         (TARGET_CANNOT_COPY_INSN_P): New.
13904         (override_options): Revert 2003-02-08 hack.
13905
13906 2003-02-15  Richard Henderson  <rth@redhat.com>
13907
13908         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
13909         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
13910
13911 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
13912
13913         * config/rs6000/rs6000.h (processor_type): Add PPC440.
13914         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
13915         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
13916         TARGET_SCHED_VARIABLE_ISSUE): Define.
13917         (rs6000_use_dfa_pipeline_interface): New function.
13918         (rs6000_multipass_dfa_lookahead): New Function.
13919         (rs6000_variable_issue): New function.
13920         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
13921         (rs6000_issue_rate): Add PPC440.
13922         * config/rs6000/rs6000.md (unspec list): Correct typo.
13923         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
13924         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
13925         cmp, delayed_cr, mfcr, mtcr.
13926         (automata_option): Set "ndfa".
13927         (extendMMNN2): Update attributes.
13928         (movcc_internal1): Discourage move to non-cr0.  Update
13929         attributes.
13930         (movMM_update): Update attributes.
13931         (cmpMM_internal): Update attributes.
13932         (sCC CR materialization): Update attributes.
13933         (branch patterns): Do not discourage non-cr0.
13934         (cr logical patterns): Prefer destructive register allocation.
13935         Update attributes.
13936         (movesi_from_cr): Update attribute.
13937         (mtcrf_operation): Update attribute.
13938         (mtcrfsi): Update attribute.
13939         * config/rs6000/40x.md: New file.
13940         * config/rs6000/603.md: New file.
13941         * config/rs6000/6xx.md: New file.
13942         * config/rs6000/7450.md: New file.
13943         * config/rs6000/7xx.md: New file.
13944         * config/rs6000/mpc.md: New file.
13945         * config/rs6000/power4.md: New file.
13946         * config/rs6000/rios1.md: New file.
13947         * config/rs6000/rios2.md: New file.
13948         * config/rs6000/rs64.md: New file.
13949         [Some DFA descriptions based on work by Michael Hayes]
13950
13951 2003-02-15  Richard Henderson  <rth@redhat.com>
13952
13953         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
13954         successors with multiple predecessors.
13955         (connect_traces): Try harder to copy traces of length 1.
13956
13957         * function.h (struct function): Add computed_goto_common_label,
13958         computed_goto_common_reg.
13959         * function.c (free_after_compilation): Zap them.
13960         * stmt.c (expand_computed_goto): Use them to produce one
13961         indirect branch per function.
13962
13963 2003-02-15  Richard Henderson  <rth@redhat.com>
13964
13965         * cfgcleanup.c: Include params.h.
13966         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
13967         too many outgoing edges from a block.
13968         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
13969         * params.def (max-crossjump-edges): New.
13970         * doc/invoke.texi: Document it.
13971
13972 2003-02-15  Richard Henderson  <rth@redhat.com>
13973
13974         * recog.c (split_all_insns): Include new blocks in life update;
13975         do a global life update.
13976
13977 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
13978
13979         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
13980         Update copyright.
13981         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
13982         -mno-cygwin case.
13983
13984 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
13985
13986         PR optimization/7702
13987         * reload1.c (reload_cse_simplify_set): Honor
13988         CANNOT_CHANGE_MODE_CLASS.
13989
13990 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
13991
13992         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
13993         function.
13994         * config/mn10300/mn10300-protos.h: Declare it.
13995         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
13996         attribute cc of instructions that may use clr.
13997
13998 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
13999
14000         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
14001         (x - (x & y)) is found.
14002
14003 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14004
14005         * configure.in: Fix typo.
14006         * configure: Regenerate.
14007
14008 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
14009
14010         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
14011
14012 2003-02-13  Adam Nemet  <anemet@lnxw.com>
14013
14014         PR opt/2391
14015         * combine.c: Fix spelling in comment.
14016         (cached_nonzero_bits): New function.
14017         (cached_num_sign_bit_copies): New function.
14018         (nonzero_bits_with_known): New macro.
14019         (num_sign_bit_copies_with_known): New macro.
14020         (nonzero_bits1): Rename from nonzero_bits.  Add three new
14021         arguments.  Change calls from nonzero_bits to
14022         nonzero_bits_with_known.
14023         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
14024         three new arguments.  Change calls from num_sign_bit_copies to
14025         num_sign_bit_copies_with_known.
14026         (nonzero_bits): New macro.
14027         (num_sign_bit_copies): New macro.
14028         (update_table_tick): Don't traverse identical subexpression more
14029         than once.
14030         (get_last_value_validate): Likewise.
14031
14032 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
14033
14034         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
14035         * function.h (struct emit_status): Length of regno_pointer_align
14036         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
14037         not regno_pointer_align_length (i.e. length actually used, not
14038         length as allocated)
14039
14040         * config/i386/i386.c (struct stack_local_entry): New.
14041         (struct machine_function): Replace huge array with alist.
14042         (assign_386_stack_local): Change to match.
14043
14044 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
14045
14046         * inclhack.def (hpux_long_double): Tighten select and add bypass
14047         regexp.
14048         * fixincl.x: Rebuilt.
14049
14050 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
14051
14052         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
14053         edge and block ends with a jump insn it must be simple jump.
14054
14055 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
14056
14057         * Makefile.in (PREPROCESSOR_DEFINES): Add
14058         @TARGET_SYSTEM_ROOT_DEFINE@.
14059         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
14060         is specified or if building a cross compiler.
14061         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
14062         if the sysroot is under $exec_prefix.
14063         * configure: Regenerated.
14064         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
14065         defined.
14066         (struct default_include): Add add_sysroot field.
14067         (cpp_SYSROOT): Declare.
14068         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
14069         field.
14070         (cpp_SYSROOT): New variable.
14071         * cppinit.c (cpp_create_reader): Initialize
14072         CPP_OPTION (pfile, sysroot).
14073         (init_standard_includes): Handle add_sysroot.  Do not
14074         add unrelocated copies of relocated directories.
14075         (COMMAND_LINE_OPTIONS): Add -isysroot.
14076         (cpp_handle_option): Handle -isysroot.
14077         * cpplib.h (struct cpp_options): Add sysroot member.
14078         * gcc.c (The Specs Language): Update description of %I.
14079         (target_system_root_changed): New variable.
14080         (process_command): Conditionalize make_relative_prefix call
14081         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
14082         target_system_root_changed.
14083         (do_spec_1): Add -isysroot to %I.
14084         * doc/invoke.texi (Spec Files): Update description of %I.
14085         * doc/install.texi (--with-sysroot): Update comment about
14086         relocation.
14087
14088 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
14089
14090         * config/h8300/h8300.md (a peephole2): New.
14091
14092 2003-02-13  Robert Lipe <robertlipe@usa.net>
14093             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14094
14095         * doc/install.texi (Specific): Update three SCO-related URLs.
14096
14097 2003-02-13  Andreas Schwab  <schwab@suse.de>
14098
14099         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
14100         Parenthesize properly.
14101         (NPREDECESORS): Parenthesize properly.
14102
14103 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14104
14105         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
14106
14107 2003-02-12  Roger Sayle  <roger@eyesopen.com>
14108
14109         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
14110         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
14111
14112         * reg-stack.c (subst_stack_regs_pat): Add support for binary
14113         UNSPEC instructions (e.g. "fpatan").
14114
14115 2003-02-12  Mike Stump  <mrs@apple.com>
14116
14117         * varray.c (element_size): Remove.
14118         (uses_ggc): Remove.
14119         (element): Add.
14120         (varray_init): Use new interface.
14121         (varray_grow): Use new interface.
14122         (varray_clear): Use new interface.
14123
14124 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
14125
14126         * config/rs6000/spe.h: Add casts to the arguments of the following
14127         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
14128         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
14129         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
14130         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
14131         __ev_get_u16, __ev_get_s16.
14132
14133 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
14134
14135         * config/h8300/h8300.md (a peephole2): New.
14136
14137 2003-02-12  Jan Hubicka  <jh@suse.cz>
14138
14139         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
14140         (OBJS): Add callgraph.o
14141         (callgraph.o): New.
14142         * c-decl.c (expand_body_1): Break out from ...
14143         (expand_body): This one;  change calling convention
14144         (finish_function): Move some of expand_body logic here.
14145         (c_expand_deferred_function): Update call of expand_body
14146         (c_expand_stmt): Use c_expand_body_1.
14147         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
14148         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
14149         * c-tree.h (c_expand_body): Declare.
14150         * callgraph.c: New file.
14151         * flags.h (flag_unit_at_a_time): Declare.
14152         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
14153         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
14154         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
14155         * langhooks.h (struct lang_hooks_for_callgraph): New.
14156         (struct lang_hooks): Add callgraph field.
14157         * toplev.c (flag_unit_at_a_time): New.
14158         (lang_independent_options): Add flag_unit_at_a_time.
14159         (process_options): Disable unit-at-a-time mode for frontends not
14160         supporting callgraph.
14161         * tree-inline.c (typedef struct inline_data): Add "decl"
14162         (expand_call_inline): Update callgraph.
14163         (optimize_inline_calls): Set id.decl.
14164         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
14165         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
14166         cgraph_calls_p): Declare.
14167         * invoke.texi (-funit-at-a-time): Document
14168
14169 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
14170
14171         * config/rs6000/spe.h: Fix misc formatting.
14172         (__ev_create_ufix32_fs): Cast ev argument.
14173         (__ev_create_sfix32_fs): Same.
14174         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
14175         (__ev_get_ufix32_fs_internal): Same.
14176
14177 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
14178
14179         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
14180         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
14181
14182 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
14183
14184         * cpplib.c (do_include_common): Move warnings for
14185         #include_next and #import out to callers.  Use early-return
14186         instead of nested ifs.  Don't do check_eol here.
14187         (parse_include): Do check_eol here with the rest of the
14188         parsing stuff.
14189         (do_include_next, do_import): Now handle warnings.
14190
14191 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14192
14193         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
14194
14195 2003-02-12  Jan Hubicka  <jh@suse.cz>
14196
14197         * predict.c (estimate_probability):  Fix roundoff error.
14198
14199 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
14200
14201         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
14202         (two peephole2): New.
14203
14204 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
14205
14206         * config/h8300/h8300.md (several peephole2): Replace
14207         find_regno_note with peep2_reg_dead_p.
14208
14209 2003-02-11  Richard Henderson  <rth@redhat.com>
14210
14211         * gcse.c (lookup_set): Remove unused argument PAT.  Update
14212         both callers.
14213
14214 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
14215
14216         * diagnostic.c (real_abort): New.
14217         (diagnostic_report_diagnostic): Call real_abort on error.
14218         * diagnostic.h (diagnostic_abort_on_error): New.
14219         (struct diagnostic_context): Add abort_on_error field.
14220         * toplev.c (setup_core_dumping): New.
14221         (decode_d_option): Handle 'H' case.
14222         * doc/invoke.texi (Debugging Options): Document -dH.
14223
14224 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
14225
14226         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
14227         which refers to obsolete directories.
14228
14229 2003-02-11  Richard Henderson  <rth@redhat.com>
14230
14231         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
14232
14233 2002-10-21  Jan Hubicka  <jh@suse.cz>
14234
14235         * i386.c (contains_128bit_aligned_vector_p): New function.
14236         (ix86_function_arg_boundary): Properly align vector modes.
14237
14238 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
14239
14240         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
14241         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
14242         as a SET pattern.
14243
14244 2003-02-11  Roger Sayle  <roger@eyesopen.com>
14245
14246         * builtins.c:  Fix failure caused by commiting wrong patch.
14247
14248 2003-02-11  Dale Johannesen  <dalej@apple.com>
14249         * ra-build.c (compare_and_free_webs):  Relax checking.
14250         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
14251         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
14252
14253 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
14254
14255         PR optimization/9651
14256         * rtlanal.c (may_trap_p): Handle FIX.
14257
14258 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
14259
14260         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
14261         * doc/invoke.texi: Extra alias.
14262
14263 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
14264
14265         * config/rs6000/host-darwin.c: Fix comment.
14266
14267 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
14268
14269         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
14270         predicate for mod result.
14271
14272 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14273
14274         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
14275         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
14276         * fixincl.x: Rebuilt.
14277         * tests/base/stdlib.h: Update.
14278         * tests/base/ctype.h: New file.
14279
14280 2003-02-11  Jan Hubicka  <jh@suse.cz>
14281
14282         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
14283
14284 2003-02-11  Richard Henderson  <rth@redhat.com>
14285
14286         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
14287         appropriated as globals.
14288         (ix86_expand_clrstr): Similarly.
14289         * config/i386/i386.md (cmpstrsi): Similarly.
14290
14291 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
14292
14293         * config/h8300/h8300.md (a peephole2): Add a case of 255.
14294
14295 2003-02-11  Roger Sayle  <roger@eyesopen.com>
14296
14297         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
14298         (pow_optab, atan2_optab): Define corresponding macros.
14299         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
14300         * genopinit.c (optabs): Implement pow_optab and atan2_optab
14301         using pow?f3 and atan2?f3 patterns.
14302         * builtins.c (expand_errno_check): New function to update errno
14303         if necessary, split out from expand_builtin_mathfn.
14304         (expand_builtin_mathfn): Use expand_errno_check.
14305         (expand_builtin_mathfn_2): New function to handle expanding binary
14306         math functions, reusing the code in expand_errno_check.
14307         (expand_builtin): Handle the pow and atan2 math built-ins,
14308         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
14309         expand_builtin_mathfn_2.
14310
14311         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
14312
14313 2003-02-11  Jan Hubicka  <jh@suse.cz>
14314
14315         * combine.c (combine_simplify_rtx): Fix folding of
14316         nested float_truncates.
14317
14318 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
14319
14320         * config/h8300/h8300.md (a peephole2): Fix a typo.
14321
14322 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
14323
14324         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
14325         register number.
14326
14327 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
14328
14329         * config/h8300/h8300-protos.h: Add a prototype for
14330         gtuleu_operator.
14331         * config/h8300/h8300.c (gtuleu_operator): New.
14332         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
14333         * config/h8300/h8300.md (a peephole2): New.
14334
14335 2003-02-11  Jan Hubicka  <jh@suse.cz>
14336
14337         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
14338
14339 2003-02-11  Jan Hubicka  <jh@suse.cz>
14340
14341         * predict.c (choose_function_section): Choose sections correctly.
14342
14343 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14344
14345         * reload1.c (first_label_num): New.
14346         (reload): Index offsets_known_at and offsets_at using difference of
14347         label number and first label number.  Don't use offset pointers.
14348         (set_label_offsets, set_initial_label_offsets): Likewise.
14349
14350 2003-02-10  Roger Sayle  <roger@eyesopen.com>
14351
14352         * mips-tfile.c (init_file): Add missing initializers in the
14353         "#ifdef __alpha" case.
14354         (file_offset, max_file_offset): Declare as unsigned long.
14355         (write_varray): Cast to "unsigned long" in comparisons against
14356         either file_offset or max_file_offset.
14357         (write_object): Likewise.
14358         (read_seek): Likewise.
14359         (copy_object): Likewise. Declare "ifd" as int to match its use
14360         in add_ext_symbol, and avoid signed/unsigned conditional warning.
14361
14362 2003-02-10  Nick Clifton  <nickc@redhat.com>
14363             Aldy Hernandez  <aldyh@redhat.com>
14364
14365         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
14366         override options which have been specified on the command line.
14367
14368 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
14369
14370         * config/h8300/h8300.md (abssf2): New.
14371         (*abssf2_h8300): Likewise.
14372         (*abssf2_h8300hs): Likewise.
14373
14374 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
14375
14376         * tree.c (build_tree_list):  Fix parameter names in comment.
14377
14378 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
14379
14380         * config/rs6000/ppc64-fp.c: New file.
14381         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
14382
14383 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
14384
14385         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
14386         * bb-reorder.c (make_reorder_chain): Deleted.
14387         (make_reorder_chain_1): Deleted.
14388         (find_traces): New function.
14389         (rotate_loop): New function.
14390         (mark_bb_visited): New function.
14391         (find_traces_1_round): New function.
14392         (copy_bb): New function.
14393         (bb_to_key): New function.
14394         (better_edge_p): New function.
14395         (connect_traces): New function.
14396         (copy_bb_p): New function.
14397         (get_uncond_jump_length): New function.
14398         (reorder_basic_blocks): Use new functions (Software Trace Cache).
14399         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
14400         boundaries.
14401
14402 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
14403
14404         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
14405
14406 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
14407
14408         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
14409         (DECL_LIVE_RANGE_RTL): Remove.
14410
14411 2003-02-10  Nick Clifton  <nickc@redhat.com>
14412
14413         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
14414         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
14415         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
14416         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
14417         config/arm/freebsd.h, config/arm/linux-elf.h,
14418         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
14419         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
14420         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
14421         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
14422         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
14423         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
14424         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
14425         and reformat as appropriate.
14426
14427 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
14428
14429         * config/h8300/clzsi2.c: Remove.
14430         * config/h8300/ctzsi2.c: Likewise.
14431         * config/h8300/paritysi2.c: Likewise.
14432         * config/h8300/popcountsi2.c: Likewise.
14433         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
14434         ctzsi2, paritysi2, and popcountsi2.
14435
14436 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
14437             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
14438
14439         PR c/7741
14440         * c-decl.c (duplicate_decls): Discard the initializer of the
14441         new decl when the types are conflicting.
14442
14443 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
14444
14445         * Makefile.in (sreal.o): Added.
14446         (predict.o): Depends on sreal.h instead of real.h.
14447         * sreal.c: New file.
14448         * sreal.h: New file.
14449         * predict.c: Use sreal.c instead of real.c.
14450
14451 2003-02-10  Nick Clifton  <nickc@redhat.com>
14452
14453         * Contributed support for the Cirrus EP9312 "Maverick"
14454         floating point co-processor.  Written by Aldy Hernandez
14455         <aldyh@redhat.com>.
14456         (config/arm/arm.c): Add Cirrus support.
14457         (config/arm/arm.h): Likewise.
14458         (config/arm/aout.h): Likewise.
14459         (config/arm/arm.md): Likewise.
14460         (config/arm/arm-protos.h): Likewise.
14461         (config.gcc): Likewise.
14462         (doc/invoke.texi): Describe new -mcpu value and new
14463         -mcirrus-fix-invalid-insns switch,
14464         (cirrus.md): New file.
14465
14466 2003-02-10  Jan Hubicka  <jh@suse.cz>
14467
14468         * combine.c (combine_simplify_rtx): Simplify using
14469         (float_truncate (float x)) is (float x)
14470         (float_extend (float_extend x)) is (float_extend x).
14471
14472 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
14473
14474         * calls.c (try_to_integrate): Tidy stack_usage_map access.
14475         (emit_library_call_value_1): Likewise.  Formatting.
14476         (store_one_arg): Likewise.
14477
14478 2003-02-09  Nick Clifton  <nickc@redhat.com>
14479             Aldy Hernandez  <aldyh@redhat.com>
14480
14481         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
14482         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
14483         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
14484         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
14485         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
14486         docs.  Add range test for immediate value.
14487
14488 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
14489
14490         Rename spe_evxor to xorv2si3.
14491         (xorv4hi3): New.
14492         (xorv1di3): New.
14493
14494 2003-02-10  Glen Nakamura  <glen@imodulo.com>
14495
14496         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
14497         tag.
14498
14499 2003-02-10  Jan Hubicka  <jh@suse.cz>
14500
14501         * i386.c (vector_move_operand): New predicate.
14502         (ix86_expand_vector_move): Be happy about 0.
14503         * i386.h (PREDICATE_CODES): Add sse-move_operand.
14504         * i386.md (mov*_internal): Add 'C' alternative.
14505
14506 2003-02-09  Jan Hubicka  <jh@suse.cz>
14507
14508         * i386.md (floathi*): Deal with SSE.
14509
14510 2003-02-09  Jan Hubicka  <jh@suse.cz>
14511
14512         * simplify-rtx.c (simplify_unary_operation,
14513         simplify_binary_operation):  Deal with vector modes
14514         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
14515
14516 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
14517
14518         * toplev.c (rest_of_compilation): Recompute register usage after
14519         split_all_insns.
14520
14521 2003-02-09  Richard Henderson  <rth@redhat.com>
14522
14523         * libgcc-std.ver (__clztf2): New.
14524         (__ctztf2, __popcounttf2, __paritytf2): New.
14525         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
14526         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
14527         adjust code to match the different type sizes.
14528         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
14529         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
14530
14531         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
14532         TImode; select word_mode and twice that.
14533         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
14534         select the modes from float, double, and long double.
14535         (init_optabs): Remove duplicate initializations.
14536
14537 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
14538
14539         * doc/install.texi: Squeeze and streamline section on
14540         testing and regression checking.
14541
14542 2003-02-09  Jan Hubicka  <jh@suse.cz>
14543
14544         * i386.md (ahi?v*3): Set third operand type to TImode.
14545         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
14546
14547         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
14548         integer mode.
14549
14550         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
14551         Change code so they are arithmetic expressions now.
14552         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
14553         simplify_ternary_operation): Deal with VEC_* expressions.
14554
14555         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
14556
14557 2003-02-08  Jan Hubicka  <jh@suse.cz>
14558
14559         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
14560         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
14561         possibly got duplicated.
14562
14563 2003-02-08  Richard Henderson  <rth@redhat.com>
14564
14565         * config/alpha/alpha.c (override_options): Turn off explicit
14566         relocs until post-peep2 code duplication resolved.
14567
14568 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
14569
14570         * optabs.c (expand_unop): Widen clz properly when clz is done
14571         via libcall.
14572
14573 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
14574
14575         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
14576         * config/h8300/crti.asm: Likewise.
14577         * config/h8300/crtn.asm: Likewise.
14578         * config/h8300/ctzsi2.c: Likewise.
14579         * config/h8300/fixunssfsi.c: Likewise.
14580         * config/h8300/h8300-protos.h: Likewise.
14581         * config/h8300/h8300.c: Likewise.
14582         * config/h8300/h8300.h: Likewise.
14583         * config/h8300/h8300.md: Likewise.
14584         * config/h8300/paritysi2.c: Likewise.
14585         * config/h8300/popcountsi2.c: Likewise.
14586         * config/h8300/rtems.h: Likewise.
14587
14588 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14589
14590         * doc/invoke.texi: Documentation for my previous commit.
14591         * doc/passes.texi: Ditto.
14592
14593 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14594
14595         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
14596         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
14597         Declare.
14598         (DLTHE_FLAG_UPDATE_FREQ): New.
14599         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
14600         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
14601         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
14602         fix_bb_placement, fix_bb_placements, place_new_loop,
14603         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
14604         New static functions.
14605         (fix_loop_placement, can_duplicate_loop_p,
14606         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
14607         New functions.
14608
14609         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
14610         unswitch_loops): Declare.
14611         * loop-init.c: New file.
14612         * loop-unswitch.c: New file.
14613         * Makefile.in (loop-init.o, loop-unswitch.o): New.
14614         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
14615         * toplev.c (DFI_loop2): New dump.
14616         (flag_unswitch_loops): New.
14617         (lang_independent_options): Add it.
14618         (rest_of_compilation): Call new loop optimizer.
14619         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
14620
14621 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
14622
14623         * config/h8300/clzsi2.c: New.
14624         * config/h8300/ctzsi2.c: Likewise.
14625         * config/h8300/paritysi2.c: Likewise.
14626         * config/h8300/popcountsi2.c: Likewise.
14627         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
14628
14629 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
14630
14631         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
14632         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
14633         (ctzsi2): New pattern.
14634         (ffssi2): Use clz instead of unspec.
14635         (clzdi2): Rename from cntlzd2.
14636         (ctzdi2): New pattern.
14637         (ffsdi2): Use clz instead of unspec.
14638
14639 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
14640
14641         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
14642         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
14643         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
14644         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
14645
14646 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
14647
14648         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
14649
14650 2003-02-07  Richard Henderson  <rth@redhat.com>
14651
14652         PR 9226
14653         * gcse.c (local_cprop_find_used_regs): New.
14654         (local_cprop_pass): Use it.
14655
14656 2003-02-07  Fred Fish  <fnf@intrinsity.com>
14657
14658         * mips-tfile.c (parse_def): Parenthesize assignments to fix
14659         precedence bugs.
14660
14661 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
14662
14663         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
14664
14665 2003-02-07  Roger Sayle  <roger@eyesopen.com>
14666
14667         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
14668         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
14669         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
14670         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
14671         builtin functions (and their __builtin_* variants).
14672         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
14673         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
14674         when not optimizing.
14675
14676         * doc/extend.texi: Document new pow and atan2 builtins, and
14677         their float and long double variants.  Realphabetize builtins.
14678
14679 2003-02-07  Jan Hubicka  <jh@suse.cz>
14680
14681         * i386.md (sse2_nandv2di3): Fix.
14682
14683 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
14684
14685         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
14686         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
14687         definition.
14688         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
14689         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
14690
14691 2003-02-07  Jan Hubicka  <jh@suse.cz>
14692
14693         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
14694
14695 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
14696
14697         * cfg.c (dump_flow_info): Add back accidently deleted line.
14698
14699 2003-02-07  Andrey Petrov <petrov@netbsd.org>
14700
14701         * optabs.c (expand_float): Search wider integer modes first.
14702
14703 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
14704
14705         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
14706         based on preprocessor flag.
14707
14708 2003-02-07  Roger Sayle  <roger@eyesopen.com>
14709             Richard Henderson  <rth@redhat.com>
14710
14711         * gcse.c (implicit_sets): New.
14712         (compute_hash_table_work): Include them in hash table.
14713         (find_implicit_sets, fis_get_condition): New.
14714         (one_cprop_pass): Allocate and free implicit_sets; call
14715         find_implicit_sets before building hash table.
14716
14717 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
14718
14719         * config/t-netbsd (USER_H): Revert previous change.
14720
14721 2003-02-07  Gabor Greif  <ggreif@lucent.com>
14722
14723         * doc/c-tree.texi (Namespaces): Fix typo.
14724
14725 2003-02-07  Jan Hubicka  <jh@suse.cz>
14726
14727         * regrename.c (do_replace, find_oldest_value_reg,
14728         copyprop_hardreg_forward_1): Update register attributes.
14729
14730 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
14731
14732         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
14733         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
14734         variables starting with underscore.
14735         (struct unit_usage): New structure.
14736         (unit_usages, cycle_alt_unit_usages): New global variables.
14737         (check_unit_distribution_in_reserv): Remove it.
14738         (store_alt_unit_usage): New function.
14739         (check_regexp_units_distribution): Rewrite it.
14740
14741 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14742
14743         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
14744         target_cpu_default.
14745         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
14746         if not MASK_NO_SPACE_REGS.
14747         (output_call): Adjust return pointer, don't load new space register
14748         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
14749         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
14750         TARGET_NO_SPACE_REGS is true.
14751         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
14752         conditions.
14753         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
14754         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
14755         true.  Use bve when TARGET_64BIT is true.
14756
14757 2003-02-06  Richard Henderson  <rth@redhat.com>
14758
14759         * combine.c (nonzero_bits): Fix double break.
14760
14761 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
14762             Richard Henderson <rth@redhat.com>
14763
14764         PR c/9530
14765         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
14766         from functions that return a float to functions that don't.
14767
14768 2003-02-06  Jan Hubicka  <jh@suse.cz>
14769
14770         * i386.c (x86_inter_unit_moves): New variable.
14771         (ix86_secondary_memory_needed): Fix 64bit case, honor
14772         TARGET_INTER_UNIT_MOVES
14773         * i386.h (x86_inter_unit_moves): Declare.
14774         (TARGET_INTER_UNIT_MOVES): New macro.
14775         * i386.md (movsi_1): Cleanup constraints; disable
14776         when not doing inter-unit moves.
14777         (movsi_1_nointernunit): New.
14778         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
14779         (movdi_1_rex64_nointerunit): New.
14780         (mivsf_1): disable when not doing inter-unit moves.
14781         (movsf_1_nointerunit): New.
14782
14783         * basic-block.h (inside_basic_block_p):  Declare.
14784         * cfgbuild.c (inside_basic_block_p): Make global.
14785         * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
14786         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
14787         update CFG.
14788         (fix_basic_block_boundaries, add_missing_bbs): New.
14789         (rank): Use profile.
14790         (scheudle_ebbs): Rely on CFG; update coments.
14791
14792 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
14793
14794         * Makefile.in (host_hook_obj): New.
14795         (OBJS): Add $(host_hook_obj).
14796         (host_default.o): New rule.
14797         * config.gcc (host_hook_obj): New, default to host-default.o.
14798         (powerpc-*-darwin*): Use host-darwin.o.
14799         (out_host_hook_obj): New.
14800         * configure: Regenerate.
14801         * configure.in: Print information about out_host_hook_obj, substitute
14802         into output files.
14803         * host-default.c: New file.
14804         * hosthooks.h: New file.
14805         * toplev.c (general_init): Call host_hooks.extra_signals.
14806         * config/rs6000/host-darwin.c: New file.
14807         * config/rs6000/x-darwin: New file.
14808         * doc/hostconfig.texi: Add documentation for new host hook.
14809         Rearrange existing documentation.
14810
14811 2003-02-05  Roger Sayle  <roger@eyesopen.com>
14812
14813         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
14814         with *targetm.delegitimize_address.
14815         (rtl_for_decl_location): Likewise.
14816         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
14817         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
14818
14819         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
14820         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
14821         prototype.
14822         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
14823         i386_simplify_dwarf_addr.  Made static.  Prototyped.
14824         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
14825         i386_simplify_dwarf_addr to ix86_delegitimize_address.
14826         (ix86_find_base_term): Likewise.
14827         (maybe_get_pool_constant): Likewise.
14828
14829         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
14830         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
14831         prototype.
14832         * config/s390/s390.c (s390_delegitimize_address): Renamed from
14833         s390_simplify_dwarf_addr.  Made static.  Prototyped.
14834         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
14835
14836 2003-02-05  Richard Henderson  <rth@redhat.com>
14837
14838         PR c/8602
14839         * integrate.c (output_inline_function): Reset input_filename
14840         and lineno from the decl before rest_of_compilation.
14841
14842 2003-02-05  Richard Henderson  <rth@redhat.com>
14843
14844         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
14845         (CTZ_DEFINED_VALUE_AT_ZERO): New.
14846         * doc/rtl.texi, doc/tm.texi: Document them.
14847
14848         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
14849         of the value at zero properly.
14850         * fold-const.c (tree_expr_nonnegative_p): Likewise.
14851         * simplify-rtx.c (simplify_unary_operation): Likewise.
14852
14853         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
14854         (CTZ_DEFINED_VALUE_AT_ZERO): New.
14855
14856         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
14857         (TARGET_EXPAND_BUILTIN): Remove.
14858         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
14859         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
14860         (enum arm_builtins): Remove.
14861         * config/arm/arm.md (UNSPEC_CLZ): Remove.
14862         (clzsi2): Rename from clz; use clz instead of unspec.
14863         (ctzsi2): New.
14864         * config/arm/arm-protos.h: Update.
14865
14866 2003-02-05  Jan Hubicka  <jh@suse.cz>
14867
14868         * i386-protos.h (x86_emit_floatuns):  Declare.
14869         * i386.c (x86_emit_floatuns): New global function.
14870         * i386.md (floatunssisf2, floatunsdisf2,
14871         floatunsdidf2):  New patterns.
14872
14873 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14874
14875         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
14876
14877 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
14878
14879         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
14880           config/ia64/linux.h
14881
14882 2003-02-05  Roger Sayle  <roger@eyesopen.com>
14883
14884         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
14885
14886 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
14887
14888         PR optimization/8555
14889         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
14890         instead of aborting.
14891
14892 2003-02-04  Richard Henderson  <rth@redhat.com>
14893
14894         * config/i386/i386.md (UNSPEC_BSF): Remove.
14895         (ffssi2): Split into cmove and no_cmove insns and splitters;
14896         lose pentium float trick for now.
14897         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
14898         (ctzsi2, clzsi2, bsr): New.
14899
14900 2003-02-04  Richard Henderson  <rth@redhat.com>
14901
14902         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
14903         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
14904         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
14905         (ffsdi2): Use popcount instead of unspec.
14906         (popcountdi2): Rename from *popcnt.
14907         (ctzdi2, clzdi2, getf_exp_tf): New.
14908
14909 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
14910
14911         * genconfig.c (main): Generate CC0_P.
14912         * rtl.h (CC0_P): Remove.
14913
14914 2003-02-04  Richard Henderson  <rth@redhat.com>
14915
14916         * libgcc2.h, libgcc2.c (__ffsSI2): New.
14917         (__ffsDI2): Rename from __ffsdi2.
14918         * mklibgcc.in (lib2funcs): Add _ffssi2.
14919
14920 2003-02-04  Richard Henderson  <rth@redhat.com>
14921
14922         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
14923         rounds with a "bit table" lookup.
14924
14925 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14926
14927         * reload.c (find_reloads): Do not use the mode specified in the insn
14928         pattern as reload mode for address operands.  Do not generate optional
14929         reloads for operands where a mandatory reload was already pushed.
14930
14931 2003-02-04  Richard Henderson  <rth@redhat.com>
14932
14933         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
14934         builtins instead of inline assembly.
14935
14936 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
14937
14938         PR c/9376
14939         * libgcc2.c (__subvdi3): Fix typo.
14940
14941 2003-02-04  Jan Hubicka  <jh@suse.cz>
14942
14943         * i386.md (movti_rex64):  Fix constraint.
14944
14945 2003-02-04  Jan Hubicka  <jh@suse.cz>
14946
14947         * i386.md (vector push splitters):  Fix typo in resolving conflict.
14948
14949 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
14950
14951         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
14952
14953 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
14954
14955         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
14956         for recent libstdc++.  Remove formatting cruft.
14957
14958 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
14959
14960         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
14961         attribute even if input file name is absolute, but one of the
14962         includes is relative.
14963
14964 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
14965
14966         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
14967         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
14968         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
14969
14970 2003-02-03  Richard Henderson  <rth@redhat.com>
14971
14972         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
14973         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
14974         return type to "int".  Shuffle declarations and undef int trap.
14975         * libgcc2.h: Remove their declarations.
14976         * optabs.c (expand_unop): Force outmode to int for bitops.
14977
14978 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
14979
14980         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
14981         coprocessor registers before floating-point registers.
14982         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
14983         to account for a previously removed register.
14984         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
14985         Delete unused macros.
14986
14987 2003-02-03  Jan Hubicka  <jh@suse.cz>
14988
14989         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
14990         (mov*_internal): Fix predicates; require one of operands to not be
14991         memory.
14992         (SSE?MMX move expanders):  Fix predicates; force one of operands to
14993         register.
14994         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
14995         (movups/movupd/movdqu patterns): Force one of operands to not be
14996         memory.
14997
14998 2003-02-03  Roger Sayle  <roger@eyesopen.com>
14999
15000         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
15001         takes a single rtx and returns it unmodified.
15002         * hooks.h (hook_rtx_rtx_identity): Prototype here.
15003         * target.h (struct gcc_target): Add "delegitimize_address"
15004         field to target structure.
15005         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
15006         for delegitimize_address target using hook_rtx_rtx_identity.
15007         (TARGET_INITIALIZER): Initialize delegitimize_address field
15008         using TARGET_DELEGITIMIZE_ADDRESS macro.
15009         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
15010         extensions of constant pool references.  Use delegitimize_address
15011         to undo the obfuscation of "-fpic".
15012         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
15013
15014         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
15015         i386_simplify_dwarf_addr.
15016         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
15017         (maybe_get_pool_constant): Likewise.
15018
15019 2003-02-03  Jan Hubicka  <jh@suse.cz>
15020
15021         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
15022
15023 2003-02-03  Jan Hubicka  <jh@suse.cz>
15024
15025         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
15026
15027 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15028
15029         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
15030         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
15031
15032 2003-02-02  Andreas Schwab  <schwab@suse.de>
15033
15034         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
15035
15036 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
15037
15038         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
15039         (epilogue_insns): Likewise.
15040
15041 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15042
15043         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
15044
15045 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15046
15047         * pa-protos.h (attr_length_millicode_call): Remove second argument.
15048         (attr_length_indirect_call, attr_length_indirect_call,
15049         attr_length_save_restore_dltp): New prototypes.
15050         * pa.c (attr_length_millicode_call): Remove second argument.  Check
15051         INSN_ADDRESSES_SET_P in distance calculation.
15052         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
15053         INSN_ADDRESSES.
15054         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
15055         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
15056         Call attr_length_call directly.
15057         (attr_length_indirect_call, output_indirect_call,
15058         attr_length_save_restore_dltp): New functions.
15059         * pa.md (attr_length_millicode_call): Drop second argument from all
15060         patterns.
15061         (return_internal_pic): Delete.
15062         (return_external_pic): Remove use of PIC register and pic operand and
15063         flag checks.
15064         (epilogue): Use return_internal for both normal and pic code.
15065         (call, call_value): Emit new 32-bit pic patterns for symref and
15066         indirect calls.  Remove uses for arg pointer and pic register.
15067         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
15068         call_reg_pic_post_reload, call_val_symref_pic,
15069         call_val_symref_pic_post_reload, call_val_reg_pic,
15070         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
15071         Implement define_split and define_peephole2 patterns for pre reload
15072         patterns.
15073         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
15074         call_value_internal_reg_64bit): Shorten names.
15075         (all call patterns): Explicitly indicate registers used and clobbered.
15076         Use attr_length_indirect_call and attr_length_save_restore_dltp for
15077         attribute length calculation.  Move code generation for indirect calls
15078         to output_indirect_call.
15079         (sibcall, sibcall_value): Don't restore PIC register.
15080         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
15081         register retore.
15082
15083 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15084
15085         * doc/install.texi (Testing): Simplify and compress instructions
15086         concerning Dejagnu.
15087
15088 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15089
15090         * collect2.c (pexecute_pid): Rename to pid.
15091         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
15092         pid.
15093
15094 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
15095
15096         * doc/extend.texi (Function Attributes): Remove documentation
15097         for PowerPC Windows NT function attributes..
15098
15099 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
15100
15101         * dwarf2out.c (gen_type_die): Check for typedefs before calling
15102         for TYPE_MAIN_VARIANT.
15103
15104 2003-02-01  Richard Henderson  <rth@redhat.com>
15105
15106         * libgcc2.c: Include auto-host.h.
15107         (ATTRIBUTE_HIDDEN): New.
15108         (__clz_tab): Don't declare here for clz and ctz.
15109         (__clzsi2, __clzdi2): Use count_leading_zeros.
15110         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
15111         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
15112         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
15113         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
15114
15115 2003-02-01  Richard Henderson  <rth@redhat.com>
15116
15117         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
15118         to the conditional.
15119         (ashlsi3_1_zext splitter): Likewise.
15120
15121 2003-02-01  Richard Henderson  <rth@redhat.com>
15122
15123         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
15124         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
15125         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
15126         return type to Wtype.
15127
15128         * libgcc-std.ver (GCC_3.4): Fix inheritance.
15129
15130         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
15131         expander input constraint.
15132
15133 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
15134
15135         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
15136         OTI_parity.
15137         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
15138         * optabs.c (widen_clz, expand_parity): New.
15139         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
15140         for libcalls to clz, ctz, popcount, and parity.
15141         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
15142         parity_optab, and set up libfunc handlers.
15143         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
15144         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
15145         __popcount_tab): New.
15146         * libgcc2.h: Declare them.
15147         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
15148         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
15149         and parity_optab.
15150         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
15151         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
15152         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
15153         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
15154         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
15155         BUILT_IN_PARITYLL): New.
15156         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
15157         and add optab argument.
15158         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
15159         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
15160         * expr.c (expand_expr): Handle them.
15161         * fold-const.c (tree_expr_nonnegative_p): Likewise.
15162         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
15163         * reload1.c (eliminate_regs): Handle them.
15164         (elimination_effects): Likewise.
15165         * function.c (instantiate_virtual_regs_1): Likewise
15166         * genattrtab.c (check_attr_value): Likewise.
15167         * simplify-rtx.c (simplify_unary_operation): Likewise.
15168         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
15169         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
15170         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
15171         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
15172         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
15173         __builtin_arm_clz.
15174         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
15175         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
15176         * doc/extend.texi (Other Builtins): Add new builtins.
15177         * doc/md.texi (Standard Names): Add new patterns.
15178
15179 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
15180
15181         * reload.c: Revert 2003-01-31 change.
15182
15183 2003-02-01  Jan Hubicka  <jh@suse.cz>
15184
15185         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
15186
15187 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
15188
15189         * flags.h (flag_volatile): Remove declaration.
15190         (flag_volatile_global, flag_volatile_static): Likewise.
15191         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
15192         * toplev.c (flag_volatile): Remove definition.
15193         (flag_volatile_global, flag_volatile_static): Likewise.
15194         (f_options): Remove corresponding entries here.
15195         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
15196         or flag_volatile_static.
15197         * doc/invoke.texi: Remove documentation of -fvolatile,
15198         -fvolatile-global and -fvolatile-static.
15199
15200 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15201
15202         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
15203         updating of total_code_bytes from prologue to epilogue.
15204
15205 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
15206
15207         * reload.c (find_reloads): Do not use the mode specified in the insn
15208         pattern as reload mode for address operands.  Do not generate optional
15209         reloads for operands where a mandatory reload was already pushed.
15210         Generate optional reloads only in the final pass though find_reloads.
15211         (have_replacement_p): New function.
15212
15213 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15214
15215         * doc/install.texi (Testing): Remove a reference to our obsolete
15216         /testresults web pages and strip redundant information concerning
15217         test results.
15218         (Binaries): Refer to Microsoft Windows instead of listing all
15219         possible variants.
15220
15221 2003-02-01  Jan Hubicka  <jh@suse.cz>
15222
15223         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
15224         RTL chain.
15225
15226         * combine.c (simplify_set): Reverse order of ragumetns to
15227         REG_CANNOT_CHANGE_MODE_P
15228         * df.c (df_def_record_1): Likewise.
15229         * recog.c (register_operand): Likewise.
15230         * simplify-rtx.c (simplify_subreg): Likewise.
15231         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
15232         CANNOT_CHANGE_MODE_CLASS.
15233         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
15234         Likewise.
15235         * reload.c (push_reload): Likewise.
15236         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
15237         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
15238         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
15239         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
15240         * mips.c (mips_cannot_change_mode_class): Update.
15241         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
15242         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
15243         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
15244         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
15245         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
15246         * sh.c (sh_cannot_change_mode_class): Update.
15247         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
15248         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
15249
15250 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
15251
15252         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
15253         change to LINK_COMMAND_SPEC in gcc.c.
15254
15255 2003-01-31  Jan Hubicka  <jh@suse.cz>
15256
15257         PR c/9506
15258         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
15259
15260 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15261
15262         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
15263         duplicated code.
15264
15265 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
15266
15267         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
15268         (BINFO_ELTS): New #define.
15269         * stor-layout.c (finalize_record_size): Don't set them.
15270         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
15271         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
15272         (BINFO_LANG_ELTS): New #define.
15273         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
15274         * java/class.c (make_class): Use BINFO_ELTS.
15275         (set_super_info): Likewse.
15276         (add_interface_do): Likewise.
15277         * objc/objc-act.c (start_class): Use BINFO_ELTS.
15278
15279 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
15280
15281         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
15282         (times): Don't ever declare if not HAVE_TIMES.
15283         (clock): Don't ever declare if not HAVE_CLOCK.
15284
15285 2003-01-30  Richard Henderson  <rth@redhat.com>
15286
15287         * flow.c (update_life_info): Zap life info after cleanup_cfg.
15288         (regno_uninitialized): Use correct live at function entry set.
15289         (regno_clobbered_at_setjmp): Likewise.
15290
15291         * expr.c (store_expr): Promote all MEM intermediates to regs.
15292
15293 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
15294
15295         * config/arm/arm.c: Fix comment typos.
15296         * config/arm/arm.h: Likewise.
15297         * config/arm/netbsd-elf.h: Likewise.
15298         * config/arm/netbsd.h: Likewise.
15299
15300 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
15301
15302         * gengtype.c (struct walk_type_data): Add needs_cast_p.
15303         (walk_type): Set needs_cast_p in walk_type_data.
15304         (write_types_process_field): Supply casts when required to suppress
15305         warnings.
15306         (write_root): Cast gt_pch_n_S to suppress warning.
15307         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
15308         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
15309         when they might exist.
15310         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
15311         insn-conditions.o, and rs6000.o.
15312
15313 2003-01-30  Richard Henderson  <rth@redhat.com>
15314
15315         * ggc-page.c (G.context_depth_allocations): New.
15316         (G.context_depth_collections): New.
15317         (alloc_page): Set G.context_depth_allocations.
15318         (ggc_collect): Set G.context_depth_collections.
15319         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
15320         (ggc_pop_context): Early exit for no allocations or collections.
15321
15322 2003-01-30  Richard Henderson  <rth@redhat.com>
15323
15324         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
15325
15326 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
15327
15328         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
15329         size, the link register is always saved if any other register is
15330         saved.
15331
15332 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
15333
15334         * config/h8300/h8300-protos.h: Update the prototype for
15335         compute_plussi_cc.
15336         (cpp_reader): Declare before it is used.
15337         * config/h8300/h8300.c (compute_plussi_cc): Change the return
15338         type to int.
15339         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
15340         see an unknown H8 variant.
15341
15342 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
15343
15344         PR target/9316
15345         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
15346         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
15347         * config/rs6000/t-rtems: New file. multilib variants to match OS.
15348         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
15349         rs6000/t-ppcgas so we get the desired multilibs.
15350
15351 2003-01-30  Nick Clifton  <nickc@redhat.com>
15352
15353         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
15354         when popping saved IP register off the stack.
15355
15356 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
15357
15358         * config/rs6000/aix43.h: Fix comment typos.
15359         * config/rs6000/aix51.h: Likewise.
15360         * config/rs6000/aix52.h: Likewise.
15361         * config/rs6000/altivec.h: Likewise.
15362         * config/rs6000/rs6000.c: Likewise.
15363         * config/rs6000/rs6000.h: Likewise.
15364         * config/rs6000/rs6000.md: Likewise.
15365         * config/rs6000/spe.md: Likewise.
15366
15367 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
15368
15369         * c-common.c (builtin_define_float_constants): Define
15370         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
15371
15372 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
15373
15374         * config/sh/lib1funcs.asm: Fix comment typos.
15375         * config/sh/linux.h: Likewise.
15376         * config/sh/sh.c: Likewise.
15377         * config/sh/sh.md: Likewise.
15378
15379 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
15380
15381         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
15382
15383 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
15384
15385         * config/fp-bit.h (__make_dp): Declare if TMODES.
15386
15387 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
15388
15389         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
15390         general_operand_src and general_operand_dst.
15391
15392 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
15393
15394         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
15395         Return true for variable sized types.
15396         (rs6000_va_arg): Handle variable sized types passed by reference
15397         on non-SVR4 ABI.
15398
15399 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
15400
15401         * arm.c (arm_legtimize_address): New function.
15402         * arm-protos.h (arm_legtimize_address): Add prototype.
15403         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
15404         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
15405         do ... while (0)
15406
15407 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
15408
15409         PR bootstrap/9296
15410         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
15411         depended on it being defined until now.
15412
15413 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
15414
15415         PR target/9295
15416         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
15417         RTEMS code knows which C++ initialization style the toolset
15418         configuration is using.
15419
15420 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
15421
15422         PR bootstrap/9293
15423         * config/m68k/t-crtstuff: Replace spaces with tabs, add
15424          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
15425
15426 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
15427
15428         PR bootstrap/9292
15429         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
15430         RTEMS threads.
15431         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
15432
15433 2003-01-29  Nick Clifton  <nickc@redhat.com>
15434
15435         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
15436         not $(srcdir).
15437
15438 2003-01-29  Andrew Haley  <aph@redhat.com>
15439
15440         * tree-inline.c (walk_tree): Add CHAR_TYPE.
15441
15442 2003-01-29  Jan Hubicka  <jh@suse.cz>
15443
15444         * i386.md (subdi3_carry_rex64): Fix typo.
15445
15446 2003-01-28  Stan Shebs  <shebs@apple.com>
15447
15448         * coretypes.h (cpp_reader): Forward declare struct.
15449         * c-pragma.h (cpp_reader): Remove forward declaration.
15450         * hashtable.h (cpp_reader): Likewise.
15451         * scan.h (cpp_reader): Likewise.
15452         * tree.h (cpp_reader): Likewise.
15453         * config/darwin-protos.h (cpp_reader): Likewise.
15454         * config/arm/arm-protos.h (cpp_reader): Likewise.
15455         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
15456         struct cpp_reader in prototypes.
15457
15458 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
15459
15460         * doc/install.texi: Add documentation for installation into
15461         tooldirs and with DESTDIR.
15462
15463 2003-01-28  Richard Henderson  <rth@redhat.com>
15464
15465         * config.gcc (ia64*-*-aix*): Remove.
15466         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
15467         * config/ia64/unwind-aix.c: Remove file.
15468
15469 2003-01-28  Andreas Schwab  <schwab@suse.de>
15470
15471         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
15472         register.
15473         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
15474         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
15475         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
15476         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
15477         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
15478         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
15479         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
15480
15481 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
15482
15483         * combine.c (nonzero_bits): Fix check for negative divide operands.
15484
15485 2003-01-28  Richard Henderson  <rth@redhat.com>
15486
15487         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
15488         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
15489
15490 2003-01-28  Richard Henderson  <rth@redhat.com>
15491
15492         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
15493
15494         * config/cris/cris.c (cris_address_cost): Make static.
15495         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
15496         * config/cris/cris.h (ADDRESS_COST): Remove.
15497         * config/cris/cris-protos.h: Update.
15498
15499 2003-01-23  Mike Stump  <mrs@apple.com>
15500
15501         * regclass.c (init_reg_autoinc): New function.
15502         (regclass): Move initialization of forbidden_inc_dec_class from
15503         here...
15504         (init_regs): to here.  Avoids reinitialization for each function,
15505         saving compilation time.
15506
15507 2003-01-28  Jason Merrill  <jason@redhat.com>
15508
15509         * cpplib.h (struct cpp_options): Add warn_deprecated field.
15510         * cppinit.c (cpp_create_reader): Turn it on by default.
15511         * c-opts.c (c_common_decode_option): Set it.
15512         * cpplib.c (do_pragma_once): Only complain about #pragma once
15513         if warn_deprecated is set.
15514
15515 2003-01-28  Dale Johannesen  <dalej@apple.com>
15516
15517         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
15518         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
15519         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
15520
15521 2003-01-28  Richard Henderson  <rth@redhat.com>
15522
15523         * target.h (targetm.address_cost): New.
15524         * target-def.h (TARGET_ADDRESS_COST): New.
15525         (TARGET_RTX_COSTS): Uncomment.  Oops.
15526         * cse.c (address_cost): Use new target hook.
15527         (default_address_cost): New.
15528         * output.h (default_address_cost): Declare.
15529         * hooks.c (hook_int_rtx_0): New.
15530         * hooks.h (hook_int_rtx_0): Declare.
15531         * loop.c (combine_givs_p): Remove if 0 code.
15532         * system.h (ADDRESS_COST): Poison.
15533
15534         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
15535         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
15536         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
15537         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
15538         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
15539         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
15540         config/xtensa/xtensa.c, config/xtensa/xtensa.h
15541         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
15542         (ADDRESS_COST): Remove.
15543
15544         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
15545         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
15546         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
15547         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
15548         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
15549         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
15550         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
15551         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
15552         config/mips/mips.c, config/mips/mips.h,
15553         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
15554         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
15555         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
15556         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
15557         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
15558         config/vax/vax.c, config/vax/vax.h
15559         (foo_address_cost): Make static.
15560         (TARGET_ADDRESS_COST): New.
15561         (ADDRESS_COST): Remove.
15562
15563         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
15564         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
15565         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
15566         config/stormy16/stormy16.h
15567         (ADDRESS_COST): Move code ...
15568         (foo_address_cost): ... here.
15569         (TARGET_ADDRESS_COST): New.
15570
15571         * config/m32r/m32r.c (m32r_address_cost): Remove.
15572         * config/m32r/m32r-protos.h: Update.
15573
15574         * config/mmix/mmix.c (mmix_address_cost): Remove.
15575         * config/mmix/mmix-protos.h: Update.
15576
15577         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
15578         mn10300_address_cost; move unsig allocation ...
15579         (mn10300_address_cost): ... here.
15580         (TARGET_ADDRESS_COST): New.
15581         * config/mn10300/mn10300-protos.h: Update.
15582         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
15583
15584         * doc/tm.texi: Update.
15585
15586 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
15587
15588         * haifa-sched.c (schedule_insn): Return necessary cycle advance
15589         after issuing the insn.
15590         (rank_for_schedule): Make a insn with /S the highest priority
15591         insn.
15592         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
15593         (choose_ready): Check SCHED_GROUP_P.
15594         (schedule_block): Advance cycle after issuing insn if it is
15595         necessary.  Don't reorder insns if there is an insn with /S.
15596         (set_priorities): Ignore schedule groups.
15597
15598         * sched-deps.c (remove_dependence, group_leader): Remove the
15599         functions.
15600         (add_dependence): Ignore schedule groups.
15601         (set_sched_group_p): Don't make copy of dependencies from previous
15602         insn of the schedule group.  Add anti-dependency to the previous
15603         insn of the schedule group.
15604         (compute_forward_dependences): Ignore schedule groups.
15605
15606         * sched-ebb.c (init_ready_list): Ignore schedule groups.
15607
15608         * sched-rgn.c (init_ready_list): Ditto.
15609         (can_schedule_ready_p): Ditto.
15610
15611 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
15612
15613         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
15614         register to another one.
15615
15616 2003-01-28  Richard Henderson  <rth@redhat.com>
15617
15618         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
15619
15620 2003-01-28  Roger Sayle  <roger@eyesopen.com>
15621
15622         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
15623
15624 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
15625
15626         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
15627         class contains a floating-point register, return the size of the
15628         mode in half words.
15629
15630 2003-01-28  Jan Hubicka  <jh@suse.cz>
15631
15632         * i386.c (ix86_carry_flag_operator):  New predicate.
15633         (fcmov_operator): Fix whitespace.
15634         (ix86_expand_carry_flag_compare):  Deal with floating point.
15635         (ix86_expand_int_movcc): Deal with fp; update insn expansion
15636         (ix86_expand_int_addcc): Likewise.
15637         (ix86_expand_strlensi_unroll_1): likewsie.
15638         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
15639         * i386.md (add?i_carry_rex64): Use new predicate.
15640         (sub?i3_carry_rex64): Likewise.
15641         (x86_mov?icc_0_m1*): Likewise.
15642
15643 2003-01-28  Andreas Schwab  <schwab@suse.de>
15644
15645         * cfgloopmanip.c (create_preheader): Initialize src to avoid
15646         warning.
15647
15648         * expmed.c (emit_store_flag): Fix cast to avoid sign
15649         comparison warning.
15650
15651         * combine.c (force_to_mode): Add cast to fix warning when
15652         STORE_FLAG_VALUE is negative.
15653
15654 2003-01-27  Richard Henderson  <rth@redhat.com>
15655
15656         * Makefile.in (cse.o): Depend on TARGET_H.
15657         * cse.c (rtx_cost): Use targetm.rtx_costs.
15658         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
15659         * doc/tm.texi: Update.
15660
15661         * target.h (targetm.rtx_costs): New.
15662         * target-def.h (TARGET_RTX_COSTS): New.
15663         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
15664         * hooks.h: Update.
15665
15666         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
15667         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
15668         * config/alpha/alpha.h (PROCESSOR_MAX): New.
15669         (CONST_COSTS, RTX_COSTS): Remove.
15670
15671         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
15672         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
15673         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
15674         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
15675         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
15676         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
15677         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
15678         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
15679         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
15680         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
15681         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
15682         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
15683         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
15684         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
15685         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
15686         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
15687         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
15688         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
15689         config/v850/v850.c, config/v850/v850.h,
15690         config/xtensa/xtensa.c, config/xtensa/xtensa.h
15691         (CONST_COSTS, RTX_COSTS): Move code ...
15692         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
15693
15694         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
15695         (arm_rtx_costs, TARGET_RTX_COSTS): New.
15696         * config/arm/arm-protos.h: Update.
15697         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
15698
15699         * config/avr/avr.h (CONST_COSTS): Move code ...
15700         * config/avr/avr.c (avr_rtx_costs): ... here.
15701         (default_rtx_costs): Make static.
15702         * config/avr/avr-protos.h: Update.
15703
15704         * config/h8300/h8300.c (const_costs): Make static.
15705         (h8300_and_costs, h8300_shift_costs): Likewise.
15706         * config/h8300/h8300-protos.h: Update.
15707
15708         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
15709         (CONST_COSTS): Move code ...
15710         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
15711         default_rtx_costs; update for signature change.
15712         * config/ip2k/ip2k-protos.h: Update.
15713
15714         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
15715         (CONST_COSTS): Move code ...
15716         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
15717         (TARGET_RTX_COSTS): New.
15718         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
15719         * config/m68hc11/m68hc11-protos.h: Update.
15720
15721         * config/m68k/m68k.c (const_int_cost): Make static.
15722         * config/m68k/m68k-protos.h: Update.
15723
15724         * config/mcore/mcore.c (mcore_const_costs): Make static.
15725         (mcore_and_cost, mcore_ior_cost): Likewise.
15726         * config/mcore/mcore-protos.h: Update.
15727
15728         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
15729         (mmix_rtx_cost_recalculated): Remove.
15730         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
15731         * config/mmix/mmix-protos.h: Update.
15732
15733         * config/sh/sh.c (shiftcosts): Make static.
15734         (addsubcosts, andcosts, multcosts): Likewise.
15735         * config/sh/sh-protos.h: Update.
15736
15737         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
15738         (sparc_rtx_costs): Make static; update for change in signature.
15739         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
15740         * config/sparc/sparc-protos.h: Update.
15741
15742         * config/v850/v850.c (const_costs): Make static.
15743         * config/v850/v850-protos.h: Update.
15744
15745         * config/vax/vax.h (RTX_COSTS): Remove.
15746         (CONST_COSTS): Move code ...
15747         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
15748         from vax_rtx_cost.
15749         (vax_rtx_costs, TARGET_RTX_COSTS): New.
15750
15751 2003-01-27  Richard Henderson  <rth@redhat.com>
15752
15753         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
15754         * config/vax/vax-protos.h: Update.  Really.
15755
15756 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
15757
15758         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
15759         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
15760         zero if no hardware floating point.
15761         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
15762         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
15763         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
15764         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
15765         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
15766         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
15767         even FP registers on N32 and N64.
15768         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
15769         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
15770         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
15771         even-register-like alignment to 128-bit arguments.
15772         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
15773         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
15774         on N32 or N64.
15775         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
15776         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
15777         (TPBIT): Set to tp-bit.c.
15778         (tp-bit.c): Create out of fp-bit.c.
15779
15780 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15781
15782         * c-parse.in: Remove '%expect 32' directive in objc mode.
15783
15784 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
15785
15786         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
15787         (LIBGCOV): New variable.
15788         (libgcc.mk): Add LIBGCOV.
15789         (LIBGCC_DEPS): Add libgcov.c.
15790         (libgcov.a): New target.
15791         (clean): Remove libgcov.a.
15792         (install-libgcc): Do libgcov too.
15793         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
15794         with libgcov.a.
15795         * libgcc2.c (L_gcov): Move into ...
15796         * libgcov.c: ... here. New file.
15797         * mklibgcc.in: Add libgcov rules.
15798         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
15799
15800         * doc/invoke.texi (profile-arcs, test-coverage): Update and
15801         clarify.
15802
15803         * profile.c (index_counts_file): Remove duplicate check for open file.
15804
15805 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
15806
15807         * gcc/doc/invoke.texi (Optimization Options): Group together
15808         optional and experimental flags.  Move trapv and bounds-check
15809         out of this section.  Group floating point flags together.
15810         (Code Gen Options): Move trapv and bounds-check to here.
15811
15812 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
15813
15814         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
15815
15816 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
15817
15818         PR optimization/9090
15819         * function.c (purge_addressof_1): After pushing an addressed register
15820         onto the stack, simplify the result.
15821
15822 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15823
15824         * doc/extend.texi: Fix typo.
15825
15826 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15827
15828         * doc/cppopts.texi: Fix typo.
15829         * doc/objc.texi: Likewise.
15830         * doc/passes.texi: Likewise.
15831
15832 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
15833
15834         * real.c (ibm_extended_format): Add 53 to minimum exponent.
15835         (encode_ibm_extended): Adjust.
15836
15837 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
15838
15839         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
15840         timevar_id enumerations.
15841
15842 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
15843
15844         * combine.c: Fix formatting.
15845
15846 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
15847
15848         * doc/gccint.texi: Update the copyright.
15849
15850 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
15851
15852         * doc/cpp.texi: Fix typos.
15853         * doc/extend.texi: Likewise.
15854         * doc/gty.texi: Likewise.
15855         * doc/install.texi: Likewise.
15856         * doc/passes.texi: Likewise.
15857         * doc/rtl.texi: Likewise.
15858         * doc/tm.texi: Likewise.
15859
15860 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
15861
15862         * config/ia64/fde-glibc.c: Fix comment typos.
15863         * config/ia64/hpux.h: Likewise.
15864         * config/ia64/ia64.c: Likewise.
15865         * config/ia64/ia64.h: Likewise.
15866         * config/ia64/unwind-ia64.c: Likewise.
15867
15868 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
15869
15870         * config/i386/i386-modes.def: Fix comment typos.
15871         * config/i386/i386.c: Likewise.
15872         * config/i386/i386.md: Likewise.
15873
15874 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
15875
15876         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
15877         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
15878         ASM_FINISH_DECLARE_OBJECT before defining it.
15879         * toplev.c (rest_of_decl_compilation):  Don't define
15880         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
15881         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
15882         parameters for DWARF2 targets because they _are_ used.
15883
15884 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
15885
15886         * fp-bit.h: Define macros for TFmode floating-point constants
15887         in IBM-extended TFmode types.
15888         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
15889         widths.
15890         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
15891         TFmode type.
15892
15893         * config/fp-bit.h: Define macros for TFmode floating-point
15894         constants in IEEE quad TFmode type.  Declare functions according
15895         to L_ macros.
15896         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
15897         (TFtype, TItype, UTItype): Define if TMODES is defined.
15898         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
15899         (F_T_BITOFF, D_T_BITOFF): Define.
15900         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
15901         guaranteed to be wide enough.
15902         * config/fp-bit.c: Check for L_ macros for tf functions.
15903         (__thenan_tf): New.
15904         (nan): Adjust.
15905         (pack_d, unpack_d): Support IEEE 854 quad type.
15906         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
15907         from FRAC_NBITS, FRAC_BITS and NGARDS.
15908         (usi_to_float): Cast constants to be shifted to fractype
15909         instead of assuming long long is wide enough.
15910         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
15911
15912 2003-01-26  Andreas Jaeger  <aj@suse.de>
15913
15914         * df.c: Remove prototype of unused function df_regno_rtl_debug.
15915
15916 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
15917
15918         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
15919         (DBBIT_FUNCS): Added _df_to_tf.
15920         (TPBIT_FUNCS): New.
15921         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
15922         (LIBGCC_DEPS): Added TPBIT.
15923         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
15924
15925         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
15926         been able to move the result to target.
15927
15928         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
15929         for the appropriate mode.
15930
15931         * calls.c (emit_library_call_value_1): Handle return values
15932         in a PARALLEL.
15933
15934         * rtl.c (get_mode_alignment): Moved to...
15935         * stor-layout.c: ... here.
15936
15937         * print-rtl.c (print_rtx): Don't print MEM details in
15938         GENERATOR_FILEs.
15939
15940 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
15941
15942         * df.h: Update comments, tidy formatting.
15943         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
15944         REVERSE, UNION, INTERSECTION.  All uses updated.
15945         (OLD_DF_INTERFACE): Remove.
15946         (struct insn_info): Remove commented out insn field.
15947         * df.c: Update comments, tidy formatting.
15948         (df_def_table_realloc): Remove.
15949
15950
15951 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
15952
15953         * calls.c (save_fixed_argument_area): Tidy.
15954         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
15955         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
15956         call chain loop at 1 if !try_tail_call.  Formatting.
15957         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
15958         Use save_fixed_argument_area and restore_fixed_argument_area.
15959
15960 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15961
15962         * df.c (df_uses_record): Handle CC0.
15963
15964 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
15965
15966         * reload.c (maybe_memory_address_p): New function.
15967         (find_reloads_address): Use it instead of memory_address_p.
15968
15969 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
15970
15971         * final.c (shorten_branches): Align the address of code label
15972         when computing initial lengths and addresses.
15973
15974 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
15975
15976         * config/m68hc11/m68hc11.md: Fix a comment typo.
15977
15978 2003-01-25  Andreas Jaeger  <aj@suse.de>
15979
15980         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
15981         TARGET_MACHO.
15982
15983 2003-01-25  Roger Sayle  <roger@eyesopen.com>
15984
15985         * gcse.c (bypass_last_basic_block): New global variable.
15986         (bypass_block):  Use redirect_edge_and_branch_force to redirect
15987         fall-through edges.  Use bypass_last_basic_block to determine
15988         which blocks have valid PRE information.
15989         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
15990
15991 2003-01-25  Jan Hubicka  <jh@suse.cz>
15992
15993         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
15994
15995 2003-01-25  Jan Hubicka  <jh@suse.cz>
15996                               Eric Botcazou <ebotcazou@libertysurf.fr>
15997         PR opt/8492
15998         * gcse.c (one_cprop_pass): Delete unreachable blocks.
15999
16000 2003-01-25  Richard Henderson  <rth@redhat.com>
16001
16002         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
16003         from ia64_aix_select_rtx_section.
16004         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
16005         instead of saving and restoring flag_pic.
16006         (ia64_rwreloc_unique_section): Similarly.
16007         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
16008         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
16009         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
16010         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
16011
16012 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
16013
16014         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
16015         comment.
16016
16017 2003-01-25  Richard Henderson  <rth@redhat.com>
16018
16019         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
16020
16021 2003-01-25  Kelley Cook <kelleycook@comcast.net>
16022
16023         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
16024
16025 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
16026
16027         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
16028         type for bitmaps.  Use unsigned long.
16029         (nBITMAP_WORD_BITS): New macro.
16030         (BITMAP_WORD_BITS): New macro.
16031         (rest of file): Use it.
16032         * bitmap.c: Use it.
16033
16034 2003-01-25  Richard Henderson  <rth@redhat.com>
16035
16036         2002-02-19  Robert Lipe  <robertlipe@usa.net>
16037         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
16038
16039 2003-01-25  Roger Sayle  <roger@eyesopen.com>
16040
16041         * builtins.c (purge_builtin_constant_p): Scan insn stream
16042         sequentially rather than by basic block.
16043         * function.c (purge_addressof): Simplify test with INSN_P.
16044
16045 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
16046
16047         * combine.c (simplify_comparison, case AND): Remove a redundant test.
16048
16049 2003-01-25  Roger Sayle  <roger@eyesopen.com>
16050
16051         * function.h (struct function): New field calls_constant_p.
16052         (current_function_calls_constant_p): New macro for above.
16053         * function.c (prepare_function_start): Initialize calls_eh_return
16054         and calls_constant_p.
16055         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
16056         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
16057         when the current_function_calls_constant_p.
16058         * integrate.c (expand_inline_function): Set calls_constant_p if
16059         the function being inlined has calls_constant_p set.
16060
16061 2003-01-25  Roger Sayle  <roger@eyesopen.com>
16062
16063         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
16064         optimizing, even if flag_gcse is true.
16065         * toplev.c (rest_of_compilation): purge_builtin_constant_p
16066         only needs to be called when "optimize > 0 && flag_gcse".
16067
16068 2003-01-25  Roger Sayle  <roger@eyesopen.com>
16069
16070         * stmt.c (emit_case_bit_tests): New routine to implement suitable
16071         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
16072         (case_bit_test_cmp): New comparison function for "qsort" to order
16073         case_bit_tests by decreasing number of destination nodes.
16074         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
16075         (expand_end_case_type): Use emit_case_bit_tests to implement
16076         suitable switch statments.
16077         (CASE_USE_BIT_TESTS): New target macro to disable the above.
16078         * Makefile.in (stmt.o): Add dependency on optab.h.
16079         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
16080
16081 2003-01-23  Andreas Schwab  <schwab@suse.de>
16082
16083         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
16084         __do_global_ctors_aux hidden global and don't put it in
16085         .init_array.
16086         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
16087         instead so that it comes first.
16088
16089 2003-01-25  Jan Hubicka  <jh@suse.cz>
16090
16091         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
16092         subreg is read/modify.
16093
16094 2003-01-25  Jan Hubicka  <jh@suse.cz>
16095
16096         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
16097         do libcall for large blocks.
16098         * i386.md (comi patterns): Set type to ssecomi.
16099         (sse2_unpck?pd): Fix mode of vec_select.
16100
16101         * cse.c: Include except.h
16102         (cse_set_around_loop):  Do not create new basic blocks.
16103         * Makefile.in (cse.o): Add dependnecy on except.h
16104
16105 2003-01-25  Jan Hubicka  <jh@suse.cz>
16106
16107         * builtins.c (fold_trunc_transparent_mathfn): New function.
16108         (fold_builtin): Use it.
16109         * convert.c (convert_to_real): Re-enable code to convert
16110         math functions; add support for floor familly functions.
16111
16112 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16113
16114         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
16115         dependencies on coretypes.h and $(TM_H).
16116
16117 2003-01-25  Jan Hubicka  <jh@suse.cz>
16118
16119         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
16120
16121 2003-01-24  Stuart Hastings  <stuart@apple.com>
16122
16123         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
16124
16125 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16126
16127         * config/c4x/c4x.md (UNSPEC_BU): New constants.
16128         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
16129         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
16130         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
16131         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
16132         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
16133         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
16134         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
16135
16136 2003-01-24  Jan Hubicka  <jh@suse.cz>
16137
16138         * emit-rtl.c (reg_attrs_htab): New static variable.
16139         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
16140         functions.
16141         (reg_rtx): Do not maintain regno_decl.
16142         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
16143         set_mem_attrs_from_reg): New global function.
16144         (init_emit): Do not initialize regno_decl.
16145         (init_emit_once): initialize reg_attrs_htab.
16146         * final.c (alter_subreg): Do not replace REG by SUBREG.
16147         (gen_mem_expr_from_op): Improve output.
16148         (output_asm_operands): Likewise.
16149         * function.c (assign_params): Do not set REGNO_DECL.
16150         * function.h (struct function): Kill regno_decl.
16151         (REGNO_DECL): Kill.
16152         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
16153         * print_rtl.c (print_rtx): Output REG information.
16154         * regclass.c (reg_scan_mark_refs): Update attrs.
16155         * reload1.c (alter_reg): Likewise.
16156         * simplify_rtx.c (simplify_subreg): Likewise.
16157         * stmt.c (expand_decl): Likewise.
16158         * rtl.def (REG): Add new field.
16159         * rtl.h (struct reg_attrs): New.
16160         (rtunion_def): At rtreg.
16161         (X0MEMATTR): Add checking.
16162         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
16163         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
16164         Declare.
16165         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
16166
16167 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
16168
16169         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
16170         (xtensa_emit_call, print_operand): Fix printf format strings
16171         to avoid compile warnings.
16172         (xtensa_function_prologue, xtensa_function_epilogue): Change type
16173         of "size" argument to HOST_WIDE_INT to fix compile warnings.
16174         * config/xtensa/xtensa-protos.h
16175         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
16176
16177 2003-01-24  Jan Hubicka  <jh@suse.cz>
16178
16179         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
16180         (implicit_built_in_decls): New global array.
16181         (mathfn_built_in): New global function.
16182         (fold_trunc_transparent_mathfn): New static function
16183         (expand_builtin_strstr, expand_bultin_strchr,
16184         expand_builtin_strpbrk, expand_builtin_strcpy,
16185         expand_builtin_strncpy, expand_bultin_strcmp,
16186         expand_bultin_strncat, expand_builtin_fputs): Use
16187         implicint_built_in_decls.
16188         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
16189         * builtins.def: Fix comments.
16190         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
16191         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
16192         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
16193         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
16194         (DEF_C99_C90RES_BULTIN): New.
16195         (*f, *l builtins): Update.
16196         * c-common.c (DEF_BUILTIN): Initialize implicit array.
16197         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
16198         * convert.c (strip_float_extensions): New global function.
16199         * tree.h (DEF_BUILTIN): Accept 10 arguments.
16200         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
16201         Declare.
16202         * java/builtins.c (define_builtin): Handle implicit.
16203         (DEF_BUILTIN): Update.
16204         * tm.texi (TARGET_C99_FUNCTIONS): Document.
16205         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
16206         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
16207         when using glibc2.
16208
16209 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
16210
16211         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
16212         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
16213         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
16214         * config/xtensa/crti.asm: New file.
16215         * config/xtensa/crtn.asm: New file.
16216         * config/xtensa/t-elf: New file.
16217         * config/xtensa/t-linux: New file.
16218         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
16219         Move various CFLAGS settings to new t-elf file.
16220
16221 2003-01-24  Richard Henderson  <rth@redhat.com>
16222
16223         PR optimization/4382
16224         * tree-inline.c (find_builtin_longjmp_call_1): New.
16225         (find_builtin_longjmp_call): New.
16226         (inlinable_function_p): Use it.
16227
16228 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16229
16230         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
16231         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
16232         * config/i386/i386.c (function_arg_pass_by_reference): New.
16233         (ix86_va_arg): Support arguments passed by reference.
16234
16235 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16236
16237         * cfgloopanal.c: New file.
16238         * cfgloopmanip.c: New file.
16239         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
16240         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
16241         cfglayout.o): Add dependency on cfgloop.h.
16242         (cfgloop.o): Add flags.h dependency.
16243         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
16244         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
16245         (struct loop, struct loops, flow_loops_find, flow_loops_update,
16246         flow_loops_free, flow_loops_dump, flow_loop_dump,
16247         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
16248         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
16249         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
16250         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
16251         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
16252         find_common_loop, verify_loop_structure): Declarations moved to ...
16253         * cfgloop.h: New file.
16254         * bb-reorder.c (reorder_basic_blocks): Modified.
16255         * cfglayout.c: Include cfgloop.h.
16256         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
16257         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
16258         (break_superblocks): New static function.
16259         (cfg_layout_finalize): Use it.
16260         (cfg_layout_split_block): New function.
16261         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
16262         fields.
16263         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
16264         changed.
16265         (cfg_layout_split_block): Declare.
16266         * cfgloop.c: Include cfgloop.h and flags.h.
16267         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
16268         get_loop_body): Avoid signed versus unsigned comparison warnings.
16269         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
16270         loop_latch_edge): Modified.
16271         (verify_loop_structure): Modified to use flags stored in loop structure;
16272         check irreducible loops.
16273         (cancel_loop, cancel_loop_tree): New functions.
16274         (estimate_probability): Use loop analysis code for predictions.
16275         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
16276         warnings.
16277         * doloop.c: Include cfgloop.h.
16278         * loop.c: Include cfgloop.h.
16279         * predict.c: Include cfgloop.h.
16280         * toplev.c: Include cfgloop.h.
16281         * unroll.c: Include cfgloop.h.
16282         * tracer.c (tracer): Modified.
16283
16284 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
16285
16286         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
16287
16288 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
16289
16290         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
16291         * configure: Regenerate.
16292
16293         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
16294         (tls_symbolic_reference_mentioned_p): Add prototype.
16295         (s390_tls_get_offset): Add prototype.
16296         (emit_pic_move): Remove prototype, replace by ...
16297         (emit_symbolic_move): .. this new prototype.
16298
16299         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
16300         (tls_model_chars): New global variable.
16301         (s390_encode_section_info): Encode TLS model.
16302         Use targetm.binds_local_p to check for local symbols.
16303         (s390_strip_name_encoding): New function.
16304         (TARGET_STRIP_NAME_ENCODING): Define.
16305
16306         (get_thread_pointer): New function.
16307         (legitimize_tls_address): New function.
16308         (legitimize_address): Call it.
16309         (emit_pic_move): Remove, replace by ...
16310         (emit_symbolic_move): ... this new function.
16311
16312         (larl_operand): Handle TLS operands.
16313         (legitimate_constant_p): Likewise.
16314         (s390_decompose_address): Likewise.
16315         (s390_cannot_force_const_mem): New function.
16316         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
16317
16318         (s390_output_symbolic_const): Handle TLS unspecs.
16319         (print_operand): New code 'J'.
16320         (machine_function): Add struct member 'some_ld_name'.
16321         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
16322
16323         (enum s390_builtin): New type.
16324         (code_for_builtin_64, code_for_builtin_31): New global variables.
16325         (s390_init_builtins, s390_expand_builtin): New functions.
16326         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
16327
16328         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
16329         (ASM_OUTPUT_LABELREF): Define.
16330         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
16331
16332         * config/s390/s390.md: Define TLS UNSPEC constants.
16333         ("movdi", "movsi"): Handle TLS operands.
16334         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
16335         ("*tls_load_64", "*tls_load_31"): New insns.
16336         ("call_value_tls", "call_value_tls_exp"): New expanders.
16337         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
16338         "bas_tls_64", "bas_tls_31"): New insns.
16339
16340 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
16341
16342         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
16343         spe ABI is configured, if requested.
16344
16345 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
16346
16347         * doc/passes.texi: Fix typo.
16348
16349 2003-01-24  Andreas Schwab  <schwab@suse.de>
16350
16351         * stor-layout.c (excess_unit_span): Only define if used.
16352
16353 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
16354
16355         * gcc/doc/invoke.texi (Optimization Options): List -O levels
16356         for each optimization flag.
16357
16358 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
16359
16360         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
16361
16362 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
16363
16364         * doc/bugreport.texi: Use @command instead of @code for commands.
16365         * doc/collect2.texi: Likewise.
16366         * doc/headerdirs.texi: Likewise.
16367         * doc/invoke.texi: Likewise.
16368         * doc/standards.texi: Likewise.
16369         * doc/tm.texi: Likewise.
16370         * doc/trouble.texi: Likewise.
16371
16372 2003-01-24  Nick Clifton  <nickc@redhat.com>
16373
16374         * config/arm/arm.c (use_return_insn): Do not use a single return
16375         instruction for interrupt handelrs which have to create a stack
16376         frame.
16377         (arm_expand_prologue): Do not pre-bias the return address of
16378         interrupt handlers which create a stack frame.
16379
16380 2003-01-24  Nick Clifton  <nickc@redhat.com>
16381
16382         * Add sh2e support:
16383
16384         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
16385
16386                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
16387                 med_cbranches.  Fix logic in short_cbranches.
16388
16389         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
16390
16391                 * config/sh/sh.md (delay for cbranch): Don't annul delay
16392                 slots on SH2e.
16393                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
16394                 cbranch with unfilled delay slot on SH2e.
16395                 (output_branch): Fill with a nop the delay slot of a
16396                 branch that required a delay slot but didn't get one.
16397
16398         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
16399
16400                 * doc/invoke.texi (SH options): Document -m2e.
16401                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
16402                 * config/sh/lib1funcs.asm: Likewise.
16403                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
16404                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
16405                 not __sh1__.
16406                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
16407                 SH2E up.
16408                 (SH3E_BIT): Renamed to...
16409                 (SH_E_BIT): ... this.  Replace all uses.
16410                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
16411                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
16412                 (TARGET_SWITCHES): Added 2e.
16413                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
16414                 (processor_type): Added PROCESSOR_SH2E.
16415                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
16416                 TARGET_SH2E, except in sqrtsf2_i.
16417                 (attribute cpu): Added sh2e.
16418                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
16419                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
16420                 * config.gcc: Add sh2e target support.
16421
16422 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
16423
16424         Rename -W to -Wextra.
16425         * c-decl.c:  Update comments.
16426         * c-typeck.c:  Likewise.
16427         * flags.h:  Likewise.
16428         * function.c:  Likewise.
16429         * stmt.c:  Likewise.
16430         * toplev.c:  Update comments.
16431         (W_options):  Add 'extra'.
16432         (display_help):  Remove '-W'.
16433         (decode_W_option):  Special warn_uninitialized treatment in the case
16434         of -Wextra.
16435         * doc/invoke.texi:  Update with new entries.
16436
16437 2003-01-23  Richard Henderson  <rth@redhat.com>
16438
16439         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
16440         in no-else-block case.  Add commentary.
16441
16442 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16443
16444         * configure.in: Revert last change.
16445
16446 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16447
16448         * configure.in: Don't include ansidecl.h in tconfig.h.
16449         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
16450         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
16451         ATTRIBUTE_UNUSED.
16452
16453         * configure: Regenerate.
16454
16455 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16456
16457         PR java/6748
16458         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
16459         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
16460         kernels.
16461
16462 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16463
16464         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
16465
16466 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
16467
16468         * genattrtab.c (write_attr_get): Mark 'insn' paramter
16469         as ATTRIBUTE_UNUSED.
16470
16471 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
16472
16473         * arm.c (thumb_base_register_rtx_p): New function.
16474         (thumb_index_register_rtx_p): New function.
16475         (thumb_legitimate_address_p): New function.
16476         (thumb_legitimate_offset_p): New function.
16477         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
16478         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
16479         definitions.
16480         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
16481         (THUMB_LEGITIMATE_OFFSET): Delte.
16482         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
16483         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
16484         (thumb_legitimate_offset_p): Likewise.
16485
16486 2003-01-23  Andreas Schwab  <schwab@suse.de>
16487
16488         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
16489
16490 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16491
16492         * fixinc/Makefile.in (FL_LIST): Revert last change.
16493
16494 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
16495
16496         PR other/7341
16497         * invoke.texi (ftest-coverage): Fix broken cross-reference.
16498         Change @code to @command for gcov command.
16499
16500         * gcc.texi: Adjust title of gcov section.
16501         Adjust copyright.
16502         * gcov.texi: Likewise.
16503
16504 2003-01-22  Roger Sayle  <roger@eyesopen.com>
16505
16506         PR optimization/8423
16507         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
16508         its argument is constant, or 0 if !flag_gcse.
16509         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
16510         if it's argument is constant.
16511         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
16512         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
16513         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
16514         * builtins.c (purge_builtin_constant_p): New function to force
16515         instantiation of any remaining CONSTANT_P_RTX nodes.
16516         * rtl.h (purge_builtin_constant_p): Prototype here.
16517         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
16518         pass after GCSE and before loop.
16519         (flag_gcse): No longer static.
16520         * flags.h (flag_gcse): Prototype here.
16521
16522 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
16523
16524         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
16525         introduced by last change.
16526
16527 2003-01-22  Andreas Schwab  <schwab@suse.de>
16528
16529         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
16530
16531 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
16532
16533         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
16534         request a scratch reg on H8S when the shift count is 8.
16535
16536 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
16537
16538         * config/s390/s390-protos.h (preferred_la_operand_p):
16539         Remove second parameter.
16540         * config/s390/s390.c (preferred_la_operand_p): Likewise.
16541         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
16542         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
16543         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
16544         Add peepholes to transform ADD to LOAD ADDRESS.
16545
16546 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
16547
16548         * arm.c (arm_address_register_rtx_p): New function.
16549         (arm_legitimate_address_p): New function.
16550         (arm_legitimate_index_p): New function.
16551         (legitimize_pic_address): Use arm_legitimate_index_p.
16552         * arm-protos.h (arm_legtimate_address_p): Add prototype.
16553         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
16554         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
16555
16556 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
16557
16558         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
16559         * config/s390/2064.md (define_bypass): Correct 'Load' and
16560         'Load-address' bypass values.
16561
16562 2003-01-22  Andreas Schwab  <schwab@suse.de>
16563
16564         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
16565
16566 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
16567
16568         * genautomata.c (output_internal_insn_latency_func,
16569         output_print_reservation_func): Short circuit when there is no
16570         automaton to generate code for.
16571
16572 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16573
16574         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
16575         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
16576
16577 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
16578
16579         * config/rs6000/rs6000.md: Remove warning.
16580         (builtin_setjmp_receiver): Likewise.
16581         * config/darwin.c (update_stubs): Slightly improve terrible hack
16582         with identifiers.  Add comment pointing out problems with it.
16583         (update_non_lazy_ptrs): Likewise.
16584
16585 2003-01-21  Richard Henderson  <rth@redhat.com>
16586
16587         * dwarf2out.c (lookup_filename): Fix printf format warning.
16588         * system.h (fread_unlocked, fwrite_unlocked): Undef.
16589
16590         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
16591         (fixincl.o-warn, gnu-regex.o-warn): New.
16592         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
16593         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
16594         * fixinc/fixincl.c (process): Fix printf format warning.
16595
16596 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
16597
16598         * dwarf2out (output_file_names): Don't crash if called
16599         with empty file_table.
16600
16601 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
16602
16603         * genautomata.c (output_internal_insn_latency_func): Add
16604         missing break statement to generated code.
16605
16606 2003-01-21  Roger Sayle  <roger@eyesopen.com>
16607
16608         * stmt.c (same_case_target_p): New function to determine whether
16609         two case labels branch to the same target.  Split out from...
16610         (group_case_nodes): ... here.  Use same_case_target_p instead.
16611         (strip_default_case_nodes): Remove explicit case nodes
16612         that branch to the default destination.
16613         (expand_end_case_type): Call strip_default_case_nodes after
16614         group_case_nodes, to simplify the case-list before we count it.
16615         Only generate table_label RTX when actually needed.  Try to share
16616         thiscase->exit_label and thiscase->data.case_stmt.default_label
16617         when a switch has no explicit default case.  Simplify test for
16618         constant index.
16619
16620 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
16621
16622         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
16623         \t.
16624         (*negsf2_h8300hs): Likewise.
16625         (*addsi3_lshiftrt_16_zexthi): Likewise.
16626         (*iorhi3_lshiftrt_8): Likewise.
16627
16628 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
16629
16630         * dwarf2out.c (fde_table_in_use): Mark GTY.
16631         (dwarf2out_cfi_label_num): New variable, marked GTY.
16632         (dwarf2out_cfi_label): Use it instead of static label_num.
16633         * emit-rtl.c (label_num): Mark GTY.
16634
16635 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
16636
16637         * config/h8300/h8300.c (output_plussi): Support H8/300.
16638         (compute_plussi_length): Likewise.
16639         (compute_plussi_cc): Likewise.
16640         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
16641         output assembly instructions.
16642
16643 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16644
16645         * calls.c (fix_unsafe_tree): Prototype.
16646
16647         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
16648         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
16649         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
16650         c-parse.o-warn): Add -Wno-error.
16651         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
16652
16653         * configure.in (--enable-werror): Add new flag.
16654         * doc/install.texi (--enable-werror): Document.
16655         * configure: Regenerate.
16656
16657         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
16658
16659 2003-01-21  Andreas Schwab  <schwab@suse.de>
16660
16661         * genautomata.c (output_internal_insn_latency_func): Fix missing
16662         close paren in output.
16663
16664 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
16665
16666         * genautomata.c: Space savings in generated code:
16667         (output_dfa_insn_code_func): Split out the table-enlargement
16668         path to an out-of-line static function, dfa_insn_code_enlarge.
16669         (output_internal_insn_latency_func): Use a lookup table for the
16670         default latencies.
16671         (output_print_reservation_func): Use a lookup table for the
16672         strings.
16673
16674 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
16675
16676         PR opt/7507
16677         * calls.c (fix_unsafe_tree): Split out from ...
16678         (expand_call): ... here.  Use it on the function address too.
16679
16680 2003-01-20  Richard Henderson  <rth@redhat.com>
16681
16682         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
16683
16684 2003-01-20  Richard Henderson  <rth@redhat.com>
16685
16686         PR opt/7154
16687         * stmt.c (expand_asm_operands): Validize memory operands.
16688
16689 2003-01-20  Richard Henderson  <rth@redhat.com>
16690
16691         PR opt/8848
16692         * ifcvt.c (noce_process_if_block): Correct arguments to
16693         modified_between_p for no-else-block case.
16694
16695 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
16696
16697         * config/h8300/h8300.c (const_costs): Remove a warning.
16698         (output_plussi): Likewise.
16699         (compute_plussi_length): Likewise.
16700         (compute_plussi_cc): Likewise.
16701
16702 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
16703
16704         * config/h8300/h8300.md (addsi_h8300): Remove the last
16705         alternative.
16706
16707 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
16708
16709         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
16710
16711 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16712
16713         * system.h (__NO_STRING_INLINES): Define.
16714
16715 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16716
16717         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
16718         is not a scalar int mode.
16719
16720 2003-01-20  Roger Sayle  <roger@eyesopen.com>
16721
16722         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
16723         insn's notes following a substitution inside a libcall.
16724
16725 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
16726
16727         * configure.in: Check for system-provided 'uchar' type.
16728         * configure, config.in: Regenerate.
16729         * cpphash.h: Only typedef 'uchar' if the system doesn't.
16730
16731 2003-01-20  Richard Henderson  <rth@redhat.com>
16732
16733         * expr.h (MUST_PASS_IN_STACK): Move implementation...
16734         * calls.c (default_must_pass_in_stack): ... here.
16735
16736 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
16737
16738         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
16739
16740         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
16741
16742         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
16743         Wrap up definition of `insn_alts'.
16744
16745         * genattrtab.c (main): Wrap up `insn_alts'.
16746
16747 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16748
16749         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
16750         prototyping.
16751         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
16752
16753         * config.in, configure: Regenerate.
16754
16755 2003-01-20  Nick Clifton  <nickc@redhat.com>
16756
16757         * config/arm/arm.md (sibcall_epilogue): Add an
16758         UNSPEC_PROLOGUE_USE to prevent the link register from being
16759         considered dead.
16760
16761 2003-01-20  Jan Hubicka  <jh@suse.cz>
16762
16763         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
16764
16765 2003-01-20  Andreas Schwab  <schwab@suse.de>
16766
16767         * system.h: Don't declare strsignal if the decl test hasn't been
16768         run yet.
16769
16770 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
16771
16772         * config/h8300/h8300.c (notice_update_cc): Don't assume that
16773         recog_data.operands[0] is always associated with cc0.
16774
16775 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
16776
16777         * collect2.c (ldgetname): Expand declaration to prototype.
16778         * read-rtl.c (atoll): Add prototype.
16779         * system.h (strsignal): Also declare if no declaration found.
16780
16781 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
16782
16783         * config.gcc (mips64*-*-linux*): Added.
16784         * config/mips/linux64.h, config/mips/t-linux64: New file.
16785         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
16786         * config/mips/mips.c (override_options): Use it.
16787         * config/mips/mips.h (TARGET_SWITCHES): Added...
16788         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
16789         * Makefile.in (SPECS): New.
16790         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
16791         * gcc.c (process_command): Move self-spec processing past spec
16792         file loading.
16793         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
16794         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
16795         CRTSTUFF_T_CFLAGS.
16796         (SPECS): Document.
16797         * doc/invoke.texi (-mabi-fake-default): Document.
16798
16799 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
16800
16801         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
16802         z_reg, z_reg_qi): Declare static and GTY().
16803         (da_reg): Remove.
16804         (create_regs_rtx): Don't create da_reg.
16805         ("gt-m68hc11.h"): Include for GTY roots.
16806         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
16807         and GTY() here.
16808         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
16809         (m68hc11_soft_tmp_reg): Likewise.
16810         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
16811
16812 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
16813
16814         * basic-block.h: Fix comment formatting.
16815         * calls.c: Likewise.
16816         * combine.c: Likewise.
16817         * convert.c: Likewise.
16818         * gcov.c: Likewise.
16819         * haifa-sched.c: Likewise.
16820         * libgcc2.c: Likewise.
16821         * loop.c: Likewise.
16822         * profile.c: Likewise.
16823         * system.h: Likewise.
16824
16825 2003-01-18  Roger Sayle  <roger@eyesopen.com>
16826
16827         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
16828
16829 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16830
16831         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
16832
16833 2003-01-17  Dale Johannesen  <dalej@apple.com>
16834
16835         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
16836           (*floatunssidf2_internal):  Ditto.
16837
16838 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
16839
16840         * alias.c: Fix comment typos.
16841         * basic-block.h: Likewise.
16842         * c-common.c: Likewise.
16843         * c-common.h: Likewise.
16844         * c-decl.c: Likewise.
16845         * c-opts.c: Likewise.
16846         * c-pragma.c: Likewise.
16847         * c-pretty-print.h: Likewise.
16848         * cfg.c: Likewise.
16849         * cfganal.c: Likewise.
16850         * cfgbuild.c: Likewise.
16851         * cfgcleanup.c: Likewise.
16852         * cfglayout.c: Likewise.
16853         * cfgrtl.c: Likewise.
16854         * convert.c: Likewise.
16855         * cpphash.h: Likewise.
16856         * cpplex.c: Likewise.
16857         * cpplib.h: Likewise.
16858         * df.h: Likewise.
16859         * diagnostic.c: Likewise.
16860         * diagnostic.h: Likewise.
16861         * dwarf2.h: Likewise.
16862
16863 2003-01-17  Stan Shebs  <shebs@apple.com>
16864
16865         * config/darwin-protos.h: Forward-declare struct cpp_reader.
16866
16867 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
16868
16869         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
16870         mistake in last checkin.
16871
16872 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
16873
16874         * et-forest.c: Fix comment typos.
16875         * et-forest.h: Likewise.
16876         * except.c: Likewise.
16877         * expr.c: Likewise.
16878         * flags.h: Likewise.
16879         * flow.c: Likewise.
16880         * gcc.c: Likewise.
16881         * gcse.c: Likewise.
16882         * genattrtab.c: Likewise.
16883         * genautomata.c: Likewise.
16884         * gengtype.c: Likewise.
16885         * genrecog.c: Likewise.
16886         * global.c: Likewise.
16887         * gthr-rtems.h: Likewise.
16888
16889 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16890
16891         * i386.c (x86_function_profiler): Fix format specifier.
16892
16893 2003-01-17  Richard Henderson  <rth@redhat.com>
16894
16895         * gengtype.c (walk_type): Allow paramN_is.
16896
16897 2003-01-17  Nick Clifton  <nickc@redhat.com>
16898
16899         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
16900
16901 2003-01-16  Richard Henderson  <rth@redhat.com>
16902
16903         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
16904
16905 2003-01-16  Richard Henderson  <rth@redhat.com>
16906
16907         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
16908         (alpha_next_sequence_number): Likewise.
16909         (alpha_this_literal_sequence_number): Likewise.
16910         (alpha_this_gpdisp_sequence_number): Likewise.
16911         (struct alpha_funcs, alpha_funcs_num): Likewise.
16912         (struct alpha_links): Fix branch merge error.
16913         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
16914
16915 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
16916
16917         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
16918         R. Ghazi.
16919
16920 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
16921
16922         * ifcvt.c: Fix comment typos.
16923         * lcm.c: Likewise.
16924         * libgcc2.c: Likewise.
16925         * local-alloc.c: Likewise.
16926         * loop.c: Likewise.
16927         * predict.c: Likewise.
16928         * ra-build.c: Likewise.
16929         * ra.c: Likewise.
16930         * ra-colorize.c: Likewise.
16931         * ra.h: Likewise.
16932         * ra-rewrite.c: Likewise.
16933         * regmove.c: Likewise.
16934         * reload.h: Likewise.
16935         * rtlanal.c: Likewise.
16936         * toplev.c: Likewise.
16937         * tree.h: Likewise.
16938         * unwind-dw2-fde-glibc.c: Likewise.
16939         * vmsdbgout.c: Likewise.
16940
16941 2003-01-16  Richard Henderson  <rth@redhat.com>
16942
16943         * dwarf2out.c (struct file_table): Remove.
16944         (FILE_TABLE_INCREMENT): Remove.
16945         (file_table): Make a varray; mark for GC.  Update all users.
16946         (file_table_last_lookup_index): Extract from struct file_table.
16947         (output_file_names): Fix unsigned compare warnings.
16948         (add_name_attribute): Remove inline marker.
16949         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
16950         (lookup_filename): Don't manage size of file_table.
16951         (init_file_table): Allocate file_table with GC.
16952         (dwarf2out_init): Don't record main_input_filename here.
16953         (dwarf2out_finish): Do it here instead.
16954
16955 2003-01-16  Bruce Korb  <bkorb@gnu.org>
16956
16957         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
16958
16959 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
16960
16961         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
16962         instead of rotldi3_mextr.
16963
16964 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
16965
16966         * haifa-sched.c (move_insn): Restore moving all schedule group.
16967         (set_priorities): Restore taking SCHED_GROUP_P into account.
16968
16969         * sched-deps.c (add_dependence): Restore processing the last group
16970         insn.
16971         (remove_dependence, group_leader): Restore the functions.
16972         (set_sched_group_p): Restore adding dependencies from previous insn
16973         in the group.
16974         (compute_forward_dependences): Restore usage of group_leader.
16975
16976         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
16977         account.
16978
16979         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
16980         account.
16981         (can_schedule_ready_p): Ditto.
16982         (add_branch_dependences): Restore skipping over the group insns.
16983
16984 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
16985
16986         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
16987         68HC12 pre/post inc/dec side effects.
16988
16989 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
16990
16991         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
16992
16993 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
16994
16995         * sh.md (mshflo_w_x): Fix description of operation.
16996
16997 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
16998
16999         * config/rs6000/rs6000.h: Mention Altivec registers in
17000         commentary.  Fix typo.
17001
17002 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
17003
17004         * config/rs6000/rs6000.md (movti_string): Remove clobber.
17005         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
17006         generate PARALLEL with clobber for TARGET_POWER.
17007
17008 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17009
17010         * ra-colorize.c (colorize_one_web): Initialize variable.
17011         * regmove.c (fixup_match_1): Likewise.
17012         * reload1.c (reload_as_needed): Likewise.
17013         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
17014
17015 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17016
17017         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
17018
17019 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17020
17021         * dbxout.c (lastfile, cwd): Fix `unused' warning.
17022         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
17023         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
17024         is_main_source, file_table, decl_die_table_in_use,
17025         abbrev_die_table_in_use, line_info_table_in_use,
17026         separate_line_info_table_in_use, pubname_table_in_use,
17027         arange_table_in_use, ranges_table_in_use,
17028         current_function_has_inlines): Likewise.
17029         * flow.c (life_analysis): Likewise.
17030         * genemit.c (gen_insn): Likewise.
17031         * protoize.c (cplus_suffix): Likewise.
17032
17033         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
17034         * arm.h (ROUND_UP_WORD): Likewise.
17035
17036         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
17037         warning.
17038         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
17039         init_emit_once): Likewise.
17040         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
17041         Likewise.
17042         * function.c (assign_stack_temp_for_type): Likewise.
17043         * loop.c (loop_invariant_p): Likewise.
17044         * recog.c (push_operand): Likewise.
17045         * regclass.c (init_reg_sets_1): Likewise.
17046         * reload.c (update_auto_inc_notes): Likewise.
17047         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
17048         * stmt.c (expand_asm_operands): Likewise.
17049         * stor-layout.c (start_record_layout): Likewise.
17050
17051 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
17052
17053         * config/c4x/c4x.md (epilogue): Correct last patch.
17054
17055 2003-01-15  Richard Henderson  <rth@redhat.com>
17056
17057         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
17058         also check that GP is being used.
17059         (alpha_find_lo_sum_using_gp): New.
17060         (alpha_does_function_need_gp): Use get_attr_usegp.
17061         * config/alpha/alpha-protos.h: Update.
17062         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
17063         as needed.
17064
17065 2003-01-15  Roger Sayle  <roger@eyesopen.com>
17066
17067         * gcse.c (one_cprop_pass): Change function arguments to take both
17068         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
17069         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
17070         (bypass_jumps): New function to perform separate jump bypassing pass.
17071         * rtl.h (bypass_jumps): Add function prototype.
17072         * timevar.def (TV_BYPASS): New timing variable.
17073         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
17074         (dump_file): New entry for the bypass RTL dump file.
17075         (rest_of_compilation): Insert new jump bypassing optimization
17076         pass after loop.
17077         * doc/passes.texi: Document new pass.
17078
17079 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17080
17081         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
17082         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
17083         * pa.h (TARGET_SOM_SDEF): Define.
17084         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
17085
17086 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
17087
17088         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
17089         allocate 4-bytes of locals on 68HC11.
17090         (expand_epilogue): Likewise.
17091         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
17092
17093 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
17094
17095         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
17096         and -mshort-double to the assembler to specify the ABI.
17097         (LINK_SPEC): Likewise.
17098         (CPP_SPEC): Pass HCS12 specific define.
17099         (MASK_M68S12): New define.
17100         (TARGET_M68S12): Likewise.
17101         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
17102         (TARGET_VERSION): Update.
17103         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
17104         (LINK_SPEC): Update.
17105         (ASM_SPEC): Update.
17106         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
17107         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
17108
17109 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
17110
17111         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
17112         the return code.
17113
17114 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
17115
17116         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
17117         flag before setting it.
17118
17119 2003-01-15  Roger Sayle  <roger@eyesopen.com>
17120
17121         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
17122         when loop condition is known true, i.e.  "while (1) { ... }".
17123         (genrtl_for_stmt): Similarly for "for" statements.
17124
17125 2003-01-15  Roger Sayle  <roger@eyesopen.com>
17126
17127         * real.c (real_sqrt): Return a bool result indicating whether
17128         a floating point exception or trap should be raised.
17129         * real.h (real_sqrt): Update function prototype.
17130         * builtins.c (fold_builtin): Only fold non-trapping square
17131         roots unless we're ignoring errno and trapping math.
17132
17133 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
17134
17135         * expr.h (emit_conditional_add): Add PARAMS to declaration.
17136         * gengtype-lex.l (malloc, realloc): Move defines after include of
17137         system.h.  Remove duplicate include of system.h.
17138
17139 2003-01-15  Roger Sayle  <roger@eyesopen.com>
17140
17141         PR middle-end/9009
17142         * optabs.c (expand_unop):  When manipulating the FP sign bit
17143         using integer operations, account for targets with different
17144         integer and FP word orders.
17145         (expand_abs): Likewise.
17146
17147 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
17148
17149         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
17150         file extension in section name.
17151
17152 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
17153
17154         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
17155         constant offset.
17156
17157 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
17158
17159         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
17160         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
17161         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
17162         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
17163
17164 2003-01-15  Jan Hubicka  <jh@suse.cz>
17165
17166         PR f/9258
17167         * global.c (struct allocno): Add no_stack_reg.
17168         (global_conflicts): Set no_stack_reg.
17169         (find_reg): Use it.
17170
17171         * convert.c (convert_to_real): Fold - and abs only when profitable.
17172         * fold-const.c (fold): Fold truncates in - and abs.
17173
17174 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
17175
17176         Segher Boessenkool  <segher@koffie.nl>
17177
17178         * predict.c (real_inv_br_prob_base): New variable.
17179         (propagate_freq): Use multiply by reciprocal instead of
17180         division.  Don't divide by 1.0 at all.
17181         (estimate_bb_frequencies): Similar.
17182
17183 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
17184
17185         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
17186         * configure: Rebuilt.
17187
17188 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
17189
17190         * config/s390/s390.c (s390_safe_attr_type): New function.
17191         (s390_use_dfa_pipeline_interface): New function, return true for z900.
17192         (s390_issue_rate): New function.
17193         (s390_agen_dep_p): New function.
17194         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
17195         (s390_adjust_cost): Return 'cost' if new DFA is used.
17196         (s390_adjust_priority): Delete function.
17197         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
17198         * config/s390/s390.md (atype attribute): Attribute 'atype' default
17199         determined by 'op_type'.
17200         (type attribute): Added more type attributes.
17201         * config/s390/2064.md: New DFA description for z900 pipeline.
17202
17203 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
17204
17205         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
17206         forced to memory.  Fixes PR bootstrap/9036.
17207
17208         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
17209         to set $gp before the call.
17210
17211 2003-01-14  Richard Henderson  <rth@redhat.com>
17212
17213         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
17214         for force_const_mem.
17215
17216 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17217
17218         * genattr.c (main): Rearrange output to avoid prototype warning.
17219         * genautomata.c (transform_3): Fix ambiguous-else warning.
17220         * local-alloc.c (requires_inout): Add parentheses around
17221         assignment used as truth-value.
17222         * timevar.c: Move system includes above local includes.  Include
17223         toplev.h
17224         * Makefile.in (timevar.o): Depend on toplev.h.
17225
17226 2003-01-14  Denis Chertykov  <denisc@overta.ru>
17227
17228         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
17229         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
17230
17231         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
17232         attributes.
17233         (TARGET_ATTRIBUTE_TABLE): New macro.
17234         (valid_machine_type_attribute): Remove.
17235         (valid_machine_decl_attribute): Remove.
17236         (ip2k_handle_progmem_attribute): New function.
17237         (ip2k_handle_fndecl_attribute): New function.
17238
17239 2003-01-10  Andrew Haley  <aph@redhat.com>
17240
17241         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
17242         registers to be in correct order.  Add rip.
17243
17244 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
17245
17246         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
17247         (*iorsi3_and_lshiftrt_9_sb): Likewise.
17248
17249 2003-01-14  Jan Hubicka  <jh@suse.cz>
17250
17251         * convert.c (strip_float_extensions):  Look for narrowest type handling
17252         FP constants.
17253
17254         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
17255         float1 CMP float2.
17256         * convert.c (strip_float_extensions): Make global.
17257         * tree.h (strip_float_extensions): Declare.
17258
17259 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17260
17261         * timevar.def: define TV_NAME_LOOKUP.
17262         * timevar.c (timevar_pop): Be verbose when aborting.
17263
17264 2003-01-13  Andreas Schwab  <schwab@suse.de>
17265
17266         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
17267         $(parsedir), just move the temporary file at the end.
17268         ($(parsedir)/gengtype-yacc.c): Likewise.
17269
17270 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
17271
17272         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
17273         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
17274         splitting.
17275         * configure: Rebuilt.
17276
17277 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17278
17279         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
17280         internal_mcount): Don't use PARAMS.
17281         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
17282         ISO C style.
17283         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
17284
17285 2003-01-13  Andreas Schwab  <schwab@suse.de>
17286
17287         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
17288         directive.
17289
17290 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
17291
17292         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
17293         (*iorsi3_and_lshiftrt_n_sb): Likewise.
17294
17295 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
17296
17297         PR c++/9264
17298         * c-lex.c (c_lex): Set the token value to error_mark_node for
17299         invalid numeric constants.
17300
17301 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17302
17303         * c-pch.c (asm_file_startpos): Change to `long'.
17304         (pch_init): Use ftell, not ftello.
17305         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
17306         Use `long' instead of `off_t'.
17307         (c_common_read_pch): Likewise.
17308         * ggc-common.c (gt_pch_save): Use long/ftell instead of
17309         off_t/ftello.
17310
17311 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
17312
17313         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
17314
17315 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
17316
17317         * arm-protos.h (struct cpp_reader): Add declaration.
17318
17319 2003-01-11  Jan Hubicka  <jh@suse.cz>
17320
17321         PR target/9068
17322         * i386.c (output_fp_compare): Fix typo.
17323
17324 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
17325
17326         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
17327
17328 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
17329
17330         * Makefile.in (parsedir): New variable.
17331         (docobjdir): New variable.
17332         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
17333         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
17334         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
17335         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
17336         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
17337         Use docobjdir.
17338         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
17339         objc.maintainer-clean): Use parsedir.
17340
17341         * varasm.c (struct constant_descriptor_rtx): Remove unused
17342         `label' field.
17343
17344         * toplev.c (documented_lang_options): Document -Winvalid-pch.
17345
17346 2003-01-10  Richard Henderson  <rth@redhat.com>
17347
17348         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
17349         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
17350
17351 2003-01-10  Richard Henderson  <rth@redhat.com>
17352
17353         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
17354         not INTEGRAL_MODE_P when widening extensions.
17355
17356 2003-01-10  Richard Henderson  <rth@redhat.com>
17357
17358         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
17359
17360 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
17361
17362         * ggc-page.c (ggc_collect): Avoid overflow computing
17363         min_expand.
17364
17365         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
17366         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
17367         Remove calls.
17368         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
17369
17370 2003-01-10  Jan Hubicka  <jh@suse.cz>
17371
17372         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
17373         with weird operands.
17374
17375 2003-01-10  Dale Johannesen <dalej@apple.com>
17376
17377         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
17378         parameters.  Call check_sibcall_argument_overlap if indicated.
17379         (check_sibcall_argument_overlap):  Add mark_stored_args_map
17380         parameter.  Don't mark parameter area as clobbered if not set.
17381         (expand_call):  Adjust calls to above.
17382
17383 2003-01-10 Kelley Cook <kelleycook@comcast.net>
17384
17385         * configure.in (linker read-only and read-write section mixing):
17386         Squelch some assembler warnings.
17387         * configure: Likewise.
17388
17389 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
17390
17391         * doc/invoke.texi: Document -mtune, delete -mcpu
17392         option for S/390 and zSeries.
17393         * config/s390/s390.c (s390_tune_string) New variable.
17394         (s390_cpu_string) Delete variable.
17395         (override_options): Use s390_tune_string instead of
17396         s390_cpu_string.
17397         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
17398
17399 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
17400
17401         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
17402
17403 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
17404
17405         * jump.c (next_nonnote_insn_in_loop): New function.
17406         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
17407         next_nonnote_insn.
17408         (duplicate_loop_exit_test). Likewise.
17409
17410 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
17411
17412         Merge from pch-branch:
17413
17414         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
17415
17416         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
17417         load.
17418
17419         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
17420
17421         * cpplib.c (count_registered_pragmas): New function.
17422         (save_registered_pragmas): New function.
17423         (_cpp_save_pragma_names): New function.
17424         (restore_registered_pragmas): New function.
17425         (_cpp_restore_pragma_names): New function.
17426         * cpphash.h (_cpp_save_pragma_names): Prototype.
17427         (_cpp_restore_pragma_names): Likewise.
17428         * cpppch.c (struct save_macro_item): Split from save_macro_data.
17429         (struct save_macro_data): New field 'saved_pragmas'.
17430         (save_macros): Update for changes to struct save_macro_data.
17431         (cpp_prepare_state): Call _cpp_save_pragma_names, update
17432         for changes to struct save_macro_data.
17433         (cpp_read_state): Call _cpp_restore_pragma_names, update
17434         for changes to struct save_macro_data.
17435
17436         * cpppch.c (cpp_read_state): Restore the hashtable references
17437         in the cpp_reader.
17438
17439         * tree.h (built_in_decls): Mark for PCH.
17440
17441         * dbxout.c (lastfile): Don't mark for PCH.
17442
17443         * ggc.h: Document PCH calls into memory managers.
17444
17445         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
17446
17447         * doc/invoke.texi (Precompiled Headers): Document the
17448         directory form of PCH.
17449         * cppfiles.c (validate_pch): New function.
17450         (open_file_pch): Search suitably-named directories for PCH files.
17451
17452         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
17453
17454         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
17455         reorder options.
17456         (Type Information): Mention that the information is also
17457         used to implement PCH.
17458         * doc/passes.texi (Passes): Improve documentation of
17459         language-specific files.
17460
17461         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
17462
17463         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
17464         (struct walk_type_data): Add reorder_fn field.
17465         (walk_type): Process 'reorder' option.
17466         (write_types_process_field): Reorder parameters to gt_pch_note_object,
17467         call reorder_note_routine.
17468         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
17469         (ggc_wtd): Update for change to struct write_types_data.
17470         (pch_wtd): Likewise.
17471         * ggc.h (gt_pch_note_object): Reorder parameters.
17472         (gt_handle_reorder): New definition.
17473         (gt_pch_note_reorder): New prototype.
17474         * ggc-common.c (struct ptr_data): Add reorder_fn.
17475         (gt_pch_note_object): Reorder parameters.
17476         (gt_pch_note_reorder): New.
17477         (gt_pch_save): Call reorder_fn.
17478         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
17479
17480         * dbxout.c (cwd): Don't mark for PCH.
17481
17482         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
17483
17484         * gengtype.c (finish_root_table): Fix some warnings.
17485         (write_root): Handle TYPE_STRING.
17486         * ggc.h (gt_ggc_m_S): Add prototype.
17487         * stringpool.c (gt_ggc_m_S): New function.
17488
17489         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
17490
17491         * dwarf2out.c (dw2_string_counter): New.
17492         (AT_string_form): Use it.
17493         (same_dw_val_p): Update for removal of hashtable.h hash tables.
17494
17495         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
17496
17497         * dbxout.c: Include gt-dbxout.h.
17498         (lastfile): Mark for PCH/GGC.
17499         (cwd): Likewise.
17500         (struct typeinfo): Likewise.
17501         (typevec): Likewise.
17502         (typevec_len): Likewise.
17503         (next_type_number): Likewise.
17504         (struct dbx_file): Likewise.
17505         (current_file): Likewise.
17506         (next_file_number): Likewise.
17507         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
17508         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
17509         (dbxout_end_source_file): Don't free struct dbx_file.
17510         (dbxout_type): Use GGC to allocate typevec.
17511         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
17512         (GTFILES): Add dbxout.c.
17513         (gt-dbxout.h): New rule.
17514
17515         * Makefile.in (c-pch.o): Add debug.h as dependency.
17516         * c-pch.c: Include debug.h.
17517         (pch_init): Call start_source_file to keep nesting right.
17518         (c_common_read_pch): Add orig_name parameter.  Call
17519         start_source_file debug hook.  Call end_source_file debug hook.
17520         * c-common.h (c_common_read_pch): Update prototype.
17521         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
17522         callback.
17523         * cppfiles.c (struct include_file): Add new field `header_name'.
17524         (find_or_create_entry): Default it to `name'.
17525         (open_file_pch): Set it to the original header file searched for.
17526         (stack_include_file): Don't stack an empty buffer, just handle
17527         PCH files immediately.  Pass header_name field to read_pch callback.
17528
17529         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
17530
17531         * function.c (funcdef_no): Mark to be saved in a PCH.
17532
17533         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
17534
17535         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
17536
17537         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
17538
17539         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
17540
17541         * optabs.h (code_to_optab): Add GTY marker.
17542
17543         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
17544
17545         * Makefile.in (GTFILES): Add cpplib.h.
17546         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
17547         * c-decl.c (build_compound_literal): Don't use var_labelno.
17548         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
17549         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
17550         * varasm.c (const_labelno): Use gengtype to mark.
17551         (var_labelno): Likewise.
17552         (in_section): Likewise.
17553         (in_named_name): Likewise.
17554         (struct in_named_entry): Likewise.
17555         (in_named_htab): Likewise.
17556         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
17557         (init_varasm_once): Use GGC to allocate in_named_htab.
17558         * config/darwin.c (current_pic_label_num): Mark for PCH.
17559
17560         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
17561
17562         * ggc-simple.c (init_ggc_pch): New stub procedure.
17563         (ggc_pch_count_object): Likewise.
17564         (ggc_pch_total_size): Likewise.
17565         (ggc_pch_this_base): Likewise.
17566         (ggc_pch_alloc_object): Likewise.
17567         (ggc_pch_prepare_write): Likewise.
17568         (ggc_pch_write_object): Likewise
17569         (ggc_pch_finish): Likewise.
17570         (ggc_pch_read): Likewise.
17571
17572         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
17573
17574         * c-pch.c (c_common_write_pch): Write the macro definitions after
17575         the GCed data.
17576         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
17577         definitions after the GCed data.
17578         * cpplib.c (save_macros): New.
17579         (reset_ht): New.
17580         (cpp_write_pch_deps): Split out of cpp_write_pch.
17581         (cpp_write_pch_state): Split out of cpp_write_pch.
17582         (cpp_write_pch): Delete.
17583         (struct save_macro_data): Delete.
17584         (cpp_prepare_state): New.
17585         (cpp_read_state): Erase and restore initial macro definitions.
17586         * cpplib.h (struct save_macro_data): Forward-declare.
17587         (cpp_write_pch_deps): Prototype.
17588         (cpp_write_pch_state): Prototype.
17589         (cpp_write_pch): Delete prototype.
17590         (cpp_prepare_state): Prototype.
17591         (cpp_read_state): Add fourth argument.
17592
17593         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
17594
17595         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
17596         (write_array): Remove warning.
17597
17598         * gengtype.c (contains_scalar_p): New.
17599         (finish_root_table): Add the table to all languages, even if it's
17600         empty.
17601         (write_roots): Output gt_pch_scalar_rtab.
17602         * ggc-common.c (gt_pch_save): Write out scalars.
17603         (gt_pch_restore): Read scalars back.
17604
17605         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
17606         (struct page_entry): Delete pch_page field.
17607         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
17608         (clear_marks): Likewise.
17609         (sweep_pages): Likewise.
17610         (poison_pages): Likewise.
17611         (ggc_print_statistics): Likewise.
17612         (ggc_pch_read): Don't free objects read from a PCH.
17613         Properly set up in_use_p and page_tails.
17614
17615         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
17616
17617         * gengtype.c (struct write_types_data): New.
17618         (struct walk_type_data): Make `cookie' const; add extra
17619         prev_val item; add `orig_s' field.
17620         (walk_type): Update prev_val[3].
17621         (write_types_process_field): New.
17622         (write_func_for_structure): Take write_types_data structure.
17623         (write_types): New.
17624         (ggc_wtd): New.
17625         (pch_wtd): New.
17626         (write_types_local_process_field): New.
17627         (gc_mark_process_field): Delete.
17628         (write_local_func_for_structure): New.
17629         (gc_mark_func_name): Delete.
17630         (write_gc_types): Delete.
17631         (write_local): New.
17632         (finish_root_table): Don't include 'ggc_' in PFX.
17633         (write_root): Rename from write_root.  Fill pchw field of structures.
17634         (write_array): New.
17635         (write_roots): Rename from write_gc_roots.  Split out to write_array.
17636         Update to changes to other routines.  Write gt_pch_cache_rtab table.
17637         (main): Write PCH walking routines.
17638         * ggc-common.c: Include toplev.h, sys/mman.h.
17639         (ggc_mark_roots): For cache hashtables, also mark the hash table
17640         and the array of entries.
17641         (saving_htab): New.
17642         (struct ptr_data): New.
17643         (POINTER_HASH): New.
17644         (gt_pch_note_object): New.
17645         (saving_htab_hash): New.
17646         (saving_htab_eq): New.
17647         (struct traversal_state): New.
17648         (call_count): New.
17649         (call_alloc): New.
17650         (compare_ptr_data): New.
17651         (relocate_ptrs): New.
17652         (write_pch_globals): New.
17653         (struct mmap_info): New.
17654         (gt_pch_save): New.
17655         (gt_pch_restore): New.
17656         * ggc-page.c (ROUND_UP_VALUE): New.
17657         (ROUND_UP): New.
17658         (struct page_entry): Add field `pch_page'.
17659         (init_ggc): Use ROUND_UP.
17660         (struct ggc_pch_data): Declare.
17661         (init_ggc_pch): New.
17662         (ggc_pch_count_object): New.
17663         (ggc_pch_total_size): New.
17664         (ggc_pch_this_base): New.
17665         (ggc_pch_alloc_object): New.
17666         (ggc_pch_prepare_write): New.
17667         (ggc_pch_write_object): New.
17668         (ggc_pch_finish): New.
17669         (ggc_pch_read): New.
17670         * ggc.h (gt_pointer_operator): New.
17671         (gt_note_pointers): New.
17672         (gt_pch_note_object): New prototype.
17673         (gt_pointer_walker): New.
17674         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
17675         (LAST_GGC_ROOT_TAB): Update.
17676         (gt_pch_cache_rtab): Declare.
17677         (gt_pch_scalar_rtab): Declare.
17678         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
17679         (LAST_GGC_CACHE_TAB): Update.
17680         (gt_pch_save_stringpool): Declare.
17681         (gt_pch_restore_stringpool): Declare.
17682         (gt_pch_p_S): Declare.
17683         (gt_pch_n_S): Declare.
17684         (struct ggc_pch_data): Forward-declare.
17685         (init_ggc_pch): Declare.
17686         (ggc_pch_count_object): Declare.
17687         (ggc_pch_total_size): Declare.
17688         (ggc_pch_this_base): Declare.
17689         (ggc_pch_alloc_object): Declare.
17690         (ggc_pch_prepare_write): Declare.
17691         (ggc_pch_write_object): Declare.
17692         (ggc_pch_finish): Declare.
17693         (ggc_pch_read): Declare.
17694         (gt_pch_save): Declare.
17695         (gt_pch_restore): Declare.
17696         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
17697         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
17698         const_double_htab, mem_attrs_htab using GGC.
17699         * c-pch.c: Include ggc.h.
17700         (pch_init): Allow reading PCH file back.
17701         (c_common_write_pch): Call gt_pch_save.
17702         (c_common_read_pch): Call gt_pch_restore.
17703         * c-parse.in (init_reswords): Delete now-untrue comment.
17704         Allocate ridpointers using GGC.
17705         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
17706         calling expand_deferred_fns.
17707         * c-common.h (ridpointers): Mark for GTY machinery.
17708         * Makefile.in (stringpool.o): Update dependencies.
17709         (c-pch.o): Update dependencies.
17710         (ggc-common.o): Update dependencies.
17711         * stringpool.c: Include gt-stringpool.h.
17712         (gt_pch_p_S): New.
17713         (gt_pch_n_S): New.
17714         (struct string_pool_data): New.
17715         (spd): New.
17716         (gt_pch_save_stringpool): New.
17717         (gt_pch_restore_stringpool): New.
17718         * tree.c (init_ttree): Make type_hash_table allocated using GC.
17719
17720         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
17721
17722         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
17723         (output_mangled_typename): Don't pass size_t to printf.
17724
17725         * tree.h (union tree_type_symtab): Add tag to `address' field.
17726         (union tree_decl_u2): Add tag to 'i' field.
17727         * varasm.c (union rtx_const_un): Add tags to all fields.
17728         * gengtype.c (struct walk_type_data): New.
17729         (output_escaped_param): Take struct walk_type_data parameter.
17730         (write_gc_structure_fields): Delete.
17731         (walk_type): New.
17732         (write_gc_marker_routine_for_structure): Delete.
17733         (write_func_for_structure): New.
17734         (gc_mark_process_field): New.
17735         (gc_mark_func_name): New.
17736         (gc_counter): Delete.
17737         (write_gc_types): Use write_func_for_structure.
17738         (write_gc_roots): Use walk_type.
17739
17740         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
17741
17742         * ggc-common.c (ggc_mark_roots): Delete 'x'.
17743         (ggc_splay_dont_free): Fix warning about unused 'x'.
17744         (ggc_print_common_statistics): Remove warnings.
17745
17746         2002-10-01  Mike Stump  <mrs@apple.com>
17747
17748         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
17749         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
17750
17751         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
17752             Catherine Moore  <clm@redhat.com>
17753
17754         * Makefile (c-pch.o): Update dependencies.
17755         (LIBCPP_OBJS): Add cpppch.o.
17756         (cpppch.o): New.
17757         * c-common.c (c_common_init): Don't call pch_init here.
17758         * c-common.h (c_common_read_pch): Update prototype.
17759         * c-lex.c (c_common_parse_file): Call pch_init here.
17760         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
17761         (c_common_decode_option): Handle them.
17762         * c-pch.c: Include c-pragma.h.
17763         (save_asm_offset): Delete.
17764         (pch_init): Move contents of save_asm_offset into here, call
17765         cpp_save_state.
17766         (c_common_write_pch): Call cpp_write_pch.
17767         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
17768         cpp_valid_state.
17769         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
17770         * cppfiles.c (stack_include_file): Update for change to
17771         parameters of cb.read_pch.
17772         * cpphash.h (struct cpp_reader): Add `savedstate' field.
17773         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
17774         `restore_pch_deps' fields.
17775         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
17776         (cpp_save_state): Prototype.
17777         (cpp_write_pch): Prototype.
17778         (cpp_valid_state): Prototype.
17779         (cpp_read_state): Prototype.
17780         * cpppch.c: New file.
17781         * flags.h (version_flag): Remove prototype.
17782         * mkdeps.c (deps_save): New.
17783         (deps_restore): New.
17784         * mkdeps.h (deps_save): Prototype.
17785         (deps_restore): Prototype.
17786         * toplev.c (late_init_hook): Delete.
17787         (version_flag): Make static again.
17788         (compile_file): Don't call late_init_hook.
17789         * toplev.h (late_init_hook): Delete.
17790         * doc/cppopts.texi: Document -fpch-deps.
17791         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
17792
17793         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
17794
17795         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
17796         callers.
17797         (c_common_valid_pch): Rename from c_valid_pch, change callers.
17798         (c_common_read_pch): Rename from c_read_pch, change callers.
17799
17800         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
17801         a space between it and its argument.
17802
17803         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
17804
17805         * c-pch.c: New file.
17806         * toplev.h (late_init_hook): Declare.
17807         * toplev.c (late_init_hook): Define.
17808         (version_flag): Make globally visible.
17809         (compile_file): Call late_init_hook.
17810         (init_asm_output): Make output file seekable.
17811         * gcc.c (default_compilers): Update c-header rule.
17812         * flags.h (version_flag): Declare.
17813         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
17814         fields.
17815         * cppfiles.c (struct include_file): Add 'pch' field.
17816         (INCLUDE_PCH_P): New.
17817         (open_file_pch): New.
17818         (stack_include_file): Handle PCH files specially.
17819         (find_include_file): Call open_file_pch instead of open_file.
17820         (_cpp_read_file): Explain why open_file is used instead of
17821         open_file_pch.
17822         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
17823         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
17824         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
17825         in cpplib callbacks.
17826         * c-common.c (pch_file): Correct comment.
17827         (allow_pch): Define.
17828         (c_common_init): Call pch_init.
17829         * c-common.h (allow_pch): Declare.
17830         (pch_init): Declare.
17831         (c_valid_pch): Declare.
17832         (c_read_pch): Declare.
17833         (c_write_pch): Declare.
17834         * Makefile.in (c-pch.o): New.
17835         (C_AND_OBJC_OBJS): Add c-pch.o.
17836         * doc/invoke.texi (Precompiled Headers): Add index entries,
17837         complete truncated paragraph.
17838
17839         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
17840
17841         * c-common.c: (pch_file): Define.
17842         * c-common.h (pch_file): Declare.
17843         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
17844         (missing_arg): Require --output-pch= to have an argument.
17845         (c_common_decode_option): Handle --output-pch=.
17846         * gcc.c: Document new %V.
17847         (default_compilers): Handle compiling C header files.
17848         (do_spec_1): Implement %V.
17849         (main): Handle "gcc foo.h" without trying to run linker.
17850         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
17851         (Overall Options): Document what the driver does with header files,
17852         document new -x option possibilities.
17853         (Invoking G++): More documentation for PCH.
17854         (Precompiled Headers): New.
17855
17856         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
17857
17858         * ggc.h: Don't include varray.h.  Rearrange functions to be more
17859         organized.
17860         (ggc_add_root): Delete.
17861         (ggc_mark_rtx): Delete.
17862         (ggc_mark_tree): Delete.
17863         (struct ggc_statistics): Remove contents.
17864         * ggc-common.c: Remove unneeded includes.
17865         (struct ggc_root): Delete.
17866         (roots): Delete.
17867         (ggc_add_root): Delete.
17868         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
17869         (ggc_print_common_statistics): Remove most of the contents.
17870         * Makefile.in (GGC_H): No longer uses varray.h.
17871         (ggc-common.o): Update dependencies.
17872         (c-parse.o): Add varray.h to dependencies.
17873         (c-common.o): Add varray.h.
17874         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
17875         (mark_ident_hash): Rename to ggc_mark_stringpool.
17876         (init_stringpool): Don't use ggc_add_root.
17877         * c-parse.in: Include varray.h.
17878         * c-common.c: Include varray.h.
17879         * objc/Make-lang.in (objc-act.o): Add varray.h.
17880         * objc/objc-act.c: Include varray.h.
17881
17882         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
17883
17884         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
17885         (dw_cfi_oprnd1_desc): Likewise.
17886
17887         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
17888
17889         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
17890         move out of ifdef.
17891         (alpha_links): Use gengtype to mark; move out of ifdef.
17892         (mark_alpha_links_node): Delete.
17893         (mark_alpha_links): Delete.
17894         (alpha_need_linkage): Use GGC to allocate splay tree, struct
17895         alpha_links, strings.  Don't use ggc_add_root.
17896         * ggc-common.c (ggc_splay_alloc): New.
17897         (ggc_splay_dont_free): New.
17898         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
17899         (ggc_mark_tree): Likewise.
17900         (splay_tree_new_ggc): New.
17901         (ggc_splay_alloc): Declare.
17902         (ggc_splay_dont_free): Declare.
17903         * dwarf2asm.c: Include gt-dwarf2asm.h.
17904         (mark_indirect_pool_entry): Delete.
17905         (mark_indirect_pool): Delete.
17906         (indirect_pool): Use gengtype to mark.
17907         (dw2_force_const_mem): Don't use ggc_add_root.
17908         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
17909         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
17910         (gt-dwarf2asm.h): Depend on s-gtype.
17911
17912         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
17913
17914         * tree.h (union tree_type_symtab): Mark `die' field.
17915         * Makefile.in (dwarf2out.o): Update dependencies.
17916         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
17917         hash tables.
17918         (dw_cfi_oprnd1_desc): New function.
17919         (dw_cfi_oprnd2_desc): New function.
17920         (indirect_string_alloc): Delete.
17921         (debug_str_do_hash): New function.
17922         (debug_str_eq): New function.
17923         (mark_limbo_die_list): Delete.
17924         (dwarf2out_init): Don't call ggc_add_root.
17925
17926 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
17927
17928         The following changes are merged from itanium-sched-branch:
17929
17930         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
17931
17932         * doc/md.texi: Clarify assignment of units to automata description.
17933
17934         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
17935
17936         * genautomata.c (unit_decl): Remove members
17937         `the_same_automaton_unit' and
17938         `the_same_automaton_message_reported_p'.
17939         (process_unit_to_form_the_same_automaton_unit_lists,
17940         form_the_same_automaton_unit_lists_from_regexp,
17941         form_the_same_automaton_unit_lists, the_same_automaton_lists):
17942         Remove them.
17943         (annotation_message_reported_p): New global variable.
17944         (check_unit_distribution_in_reserv,
17945         check_regexp_units_distribution): New functions.
17946         (check_unit_distributions_to_automata): Rewrite it.
17947
17948         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
17949
17950         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
17951         Use continue instead of break if cycle is too big.
17952
17953         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
17954
17955         * genautomata.c (check_unit_distributions_to_automata): Output at
17956         most one message for a unit.
17957         (process_unit_to_form_the_same_automaton_unit_lists): Check
17958         automaton of units instead of units themself.
17959
17960         * doc/md.texi: Describe the constraint about assigning unit to
17961         automata.
17962
17963         2002-12-20  Jan Hubicka  <jH@suse.cz>
17964                     Vladimir Makarov  <vmakarov@redhat.com>
17965
17966         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
17967         and `in_set_p'.
17968         (gen_cpu_unit): Initialize the new members.
17969         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
17970         up `min_occ_cycle_num'.
17971         (evaluate_max_reserv_cycles): Change the function call.
17972         (CLEAR_BIT): New macro.
17973         (states_union, state_shift): Use the mask.
17974         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
17975         (form_reservs_matter): New function.
17976         (make_automaton): Call the function and use the mask.
17977         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
17978         account.
17979
17980         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
17981
17982         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
17983
17984         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
17985
17986         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
17987         for Itanium.
17988
17989         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
17990
17991         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
17992         default cpu.
17993
17994         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
17995                 2002-10-31  Dale Johannesen <dalej@apple.com>
17996
17997         * haifa-sched.c (find_set_reg_weight): New function.
17998         (find_insn_reg_weight): Use the new function.
17999         (schedule_block): Do sorting ready queue always
18000         after insn issue.
18001
18002         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
18003
18004         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
18005
18006         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
18007
18008         * haifa-sched.c (choice_entry): New structure.
18009         (choice_stack, cycle_issued_insns): New variables.
18010         (max_issue): Rewrite it.
18011         (choose_ready): Set up ready_try for unknown insns too.
18012         (schedule_block): Allocate and free choice_stack.  Set up
18013         and modify cycle_issued_insns.
18014
18015         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
18016         with and without filling the bundle.
18017         (bundling): Combine calls of issue_nops_and_insn.
18018
18019         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
18020
18021         * config/ia64/itanium1.md: New file.
18022
18023         * config/ia64/itanium2.md: New file.
18024
18025         * config/ia64/ia64.md: Move DFA descriptions into the new files.
18026         Remove the old pipeline description.
18027
18028         * config/ia64/ia64.c (ia64_override_options): Add aliases of
18029         itanium processor names.
18030
18031         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
18032
18033         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
18034         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
18035
18036         * config/ia64/ia64.md: Add descriptions for Itanium2.
18037
18038         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
18039
18040         * config/ia64/ia64.h (processor_type): New enumeration.
18041         (ia64_tune, ia64_tune_string): New external declarations.
18042         (TARGET_OPTIONS): Add option `tune='.
18043
18044         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
18045         variables.
18046         (ia64_override_options): Set up `ia64_tune'.
18047         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
18048         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
18049         (bundling): Add nops for MM-insns only for Itanium.
18050         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
18051         Itanium.
18052
18053         * config/ia64/ia64.md (cpu): New attribute.
18054         (DFA description): Enable it only for Itanium.
18055
18056         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
18057                     Richard Henderson  <rth@redhat.com>
18058
18059         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
18060         MASK_EARLY_STOP_BITS.
18061         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
18062         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
18063         `early-stop-bits'.
18064
18065         * config/ia64/ia64.c (ia64_dfa_new_cycle,
18066         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
18067         instead of TARGET_TUNE_STOP_BITS.
18068
18069         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
18070         `-mearly-stop-bits'.
18071
18072         * config/ia64/ia64.c (automata_option "v"): Comment it.
18073
18074         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
18075
18076         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
18077         New macros.
18078         (TARGET_SWITCHES): Add entries for the new option.
18079
18080         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
18081         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
18082         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
18083         global variables.
18084         (ia64_sched_reorder2): Set up `clocks'.
18085         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
18086         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
18087         queue when TARGET_TUNE_STOP_BITS.
18088         (bundling): Insert additional nops for MM-insns.
18089         (final_emit_insn_group_barriers): Add insertion of stop bits
18090         according `stops_p'.
18091         (ia64_reorg): Initiate the new varibales.
18092
18093         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
18094
18095         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
18096
18097         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
18098         insns at the end of block insn scheduling.
18099
18100         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
18101
18102         * sched-deps.c (remove_dependence, group_leader): Remove it.
18103         (add_dependence): Add dependence to group leader to.
18104         (set_sched_group_p): Add dependence to the first insn of the
18105         schedule group too.
18106         (sched_analyze_insn): Make dependence to jump as anti-dependence.
18107         Change true dependence by anti-dependence when
18108         `reg_pending_barrier'.
18109
18110         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
18111         add_branch_dependences): Ignore schedule groups.
18112
18113         * sched-ebb.c (init_ready_list): Ditto.
18114
18115         * (move_insn, set_priorities): Ditto.
18116
18117         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
18118         flag is clear after reload.
18119         (adjust_cost): Change cost only for output dependencies.
18120
18121         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
18122
18123         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
18124
18125         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
18126
18127         * target.h (gcc_target): Add member
18128         `dependencies_evaluation_hook'.
18129
18130         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
18131         macro.
18132         (TARGET_SCHED): Add initiatialization of the new member.
18133
18134         * sched-ebb.c: Include `target.h'.
18135         (schedule_ebb): Call `dependencies_evaluation_hook'.
18136
18137         * sched-rgn.c (schedule_region): Call
18138         `dependencies_evaluation_hook'.
18139
18140         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
18141         New macro.
18142         (ia64_dependencies_evaluation_hook): New function.
18143
18144         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
18145         Describe the new hook.
18146
18147         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
18148
18149         * target.h (gcc_target): Add members
18150         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
18151
18152         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
18153         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
18154         macros.
18155         (TARGET_SCHED): Add initiatialization of the new members.
18156
18157         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
18158         insn scheduling too.
18159         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
18160         initialize `ready_try'.
18161         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
18162         `dfa_new_cycle' says not to do it.
18163
18164         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
18165         bundling.
18166
18167         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
18168
18169         * config/ia64/ia64.c: Include `hashtab.h'.
18170         (ia64_first_cycle_multipass_dfa_lookahead_guard,
18171         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
18172         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
18173         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
18174         bundle_state_eq_p, insert_bundle_state,
18175         initiate_bundle_state_table, finish_bundle_state_table,
18176         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
18177         get_template, get_next_important_insn, bundling): New functions.
18178         (ia64_internal_sched_reorder): Remove it.
18179         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
18180         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
18181         (ia64_safe_itanium_requires_unit0): Remove it.
18182         (group_barrier_needed_p): Place group barrier right before a real
18183         insn.
18184         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
18185         Remove them.
18186         (bundle_name): New variable.
18187         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
18188         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
18189         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
18190         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
18191         temp_dfa_state, prev_cycle_state): New global variables.
18192         (insn_matches_slot, maybe_rotate, finish_last_head,
18193         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
18194         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
18195         find_best_packet, itanium_reorder, dump_current_packet,
18196         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
18197         (sched_data, sched_ready, sched_types): Remove them.
18198         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
18199         `init_insn_group_barriers'.
18200         (ia64_sched_reorder, ia64_sched_reorder2): Call
18201         ia64_dfa_sched_reorder.
18202         (ia64_variable_issue): Rewrite it.
18203         (bundle_state): New structure.
18204         (index_to_bundle_states, bundle_states_num,
18205         allocated_bundle_states_chain, free_bundle_state_chain): New
18206         global variables.
18207         (ia64_sched_finish): Add stop bits and call `bundling' after the
18208         2nd insn scheduling.
18209         (ia64_use_dfa_pipeline_interface): Return zero always.
18210         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
18211         insn scheduling.
18212         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
18213         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
18214         (ia64_reorg): Add bundling insns.
18215
18216         * doc/tm.texi
18217         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
18218         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
18219
18220         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
18221
18222         * config/ia64/ia64.md: Add Itanium1 DFA description.
18223         (itanium_class): Add `nop' and `pre_cycle'.  Add
18224         define_function_unit for `nop'.
18225         (nop): Change attribute `itanium_class'.
18226         (pre_cycle): New define_insn.
18227
18228         * config/ia64/ia64-protos.h (bundling_p): New external variable.
18229         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
18230         ia64_produce_address_p): New function prototypes.
18231
18232         * config/ia64/ia64.c (bundling_p): New global variable.
18233         (ia64_use_dfa_pipeline_interface,
18234         ia64_first_cycle_multipass_dfa_lookahead,
18235         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
18236         functions.
18237         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
18238         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
18239         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
18240         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
18241         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
18242         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
18243         (dfa_pre_cycle_insn): New variable.
18244
18245         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
18246
18247         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
18248         constructions.
18249
18250         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
18251         New function prototypes.
18252
18253         * genattrtab.c (main): Process the new constructions.
18254
18255         * genautomata.c (gen_presence_absence_set,
18256         process_presence_absence_names, process_presence_absence_patterns,
18257         add_presence_absence, check_absence_pattern_sets): Add parameter
18258         `final_p'.
18259         (unit_decl): Add new members `final_presence_list' and
18260         `final_absence_list'.
18261         (unit_pattern_rel_decl): Add new member `final_p'.
18262         (gen_final_presence_set, gen_final_absence_set): New functions.
18263         (process_decls): Use member `final_p'.
18264         (temp_reserv): New global variable.
18265         (reserv_sets_are_intersected): Add processing `final_presence_set'
18266         and `final_absence_set'.
18267         (initiate_states): Allocate `temp_reserv'.
18268         (unit_final_presence_set_table, unit_final_absence_set_table): New
18269         gloabal variables.
18270         (initiate_presence_absence_pattern_sets): Initiate them.
18271         (NDFA_to_DFA): Fix typo.
18272         (output_description): Output `final_presence_set' and
18273         `final_absence_set'.
18274
18275         * doc/md.texi (final_presence_set, final_absence_set): Describe
18276         them.
18277
18278         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
18279
18280         * genautomata.c (transform_3): Process a missing case (nothing on
18281         unit place).
18282
18283         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
18284
18285         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
18286         comments about queried units and the minimization.
18287
18288         * doc/md.texi: Ditto.
18289
18290         * genautomata.c (create_composed_state): Return nonzero if the new
18291         state has been created.
18292         (first_cycle_unit_presence): New function.
18293         (state_is_differed): Add new parameter.  Use the new function.
18294         Take queried units into account.
18295         (partition_equiv_class): Pass additional parameter to
18296         `state_is_differed'.
18297         (merge_states): Process composed states too.
18298         (build_automaton, create_automata, output_min_issue_delay_table,
18299         output_tables, output_statistics): Output more information.
18300         (output_reserved_units_table): Use function
18301         `first_cycle_unit_presence'.
18302         (output_tables): Output table of queried units even if the
18303         minimization is switched on.
18304         (write_automata): Output code for querying units even if the
18305         minimization is switched on.
18306
18307         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
18308
18309         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
18310         syntax of the constructions.
18311
18312         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
18313         extended syntax of the constructions.
18314
18315         * genautomata.c (unit_rel_decl): Rename it to
18316         `unit_pattern_rel_decl'.
18317         (pattern_set_el, pattern_reserv): New structures.
18318         (pattern_set_el_t, pattern_reserv_t): New types.
18319         (gen_presence_absence_set): New function.
18320         (process_presence_absence): Remove it.
18321         (process_presence_absence_names,
18322         process_presence_absence_patterns): New functions.
18323         (get_presence_absence_set): Remove it.
18324         (initiate_presence_absence_sets): Rename it on
18325         `initiate_presence_absence_pattern_sets'.  Use new function
18326         `form_reserv_sets_list'.
18327         (form_reserv_sets_list, check_presence_pattern_sets,
18328         check_absence_pattern_sets, output_pattern_set_el_list): New
18329         functions.
18330         (unit_decl): Change types of members `presence_list' and
18331         `absence_list'.
18332         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
18333         (decl): Change types of members `excl', `presence', and `absence'.
18334         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
18335         at the end of the vector.
18336         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
18337         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
18338         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
18339         (gen_presence_set, gen_absence_set): Use new function
18340         `gen_presence_absence_set'.
18341         (add_presence_absence): Process `pattern_list' instead of
18342         `source_list'.
18343         (process_decls): USe new functions
18344         `process_presence_absence_names' and
18345         `process_presence_absence_patterns'.
18346         (reserv_sets_are_intersected): Use new function
18347         `check_presence_pattern_sets'.
18348         (presence_set, absence_set): Remove them.
18349         (unit_presence_set_table, unit_absence_set_table): New global
18350         variables.
18351         (output_description): Use new function
18352         `output_pattern_set_el_list'.
18353         (generate): Use `initiate_presence_absence_pattern_sets'.
18354
18355         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
18356
18357         * genattr.c (main): Add output of prototype of new interface
18358         function `dfa_clean_insn_cache'.
18359
18360         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
18361         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
18362         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
18363         the generated code.
18364         (write_automata): Call the new function.
18365
18366 2003-01-09  Jan Hubicka  <jh@suse.cz>
18367
18368         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
18369         correctly.
18370
18371 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
18372
18373         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
18374
18375 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
18376
18377         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
18378         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
18379         (CONSTRAINT_LEN): Provide default definition.
18380         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
18381         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
18382         (EXTRA_CONSTRAINT_STR): Likewise.
18383         (REG_CLASS_FROM_CONSTRAINT): Define.
18384         * genoutput.c (check_constraint_len, constraint_len): New functions.
18385         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
18386         constraint / modifier.
18387         (gen_insn): Call check_constraint_len.
18388         * local-alloc.c (block_alloc): Update to use new macros / pass
18389         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
18390         * ra-build.c (handle_asm_insn): Likewise.
18391         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18392         (constrain_operands, peep2_find_free_register): Likewise.
18393         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
18394         * regmove.c (find_matches): Likewise.
18395         * reload.c (push_secondary_reload, find_reloads): Likewise.
18396         (alternative_allows_memconst): Likewise.
18397         * reload1.c (maybe_fix_stack_asms): Likewise.
18398         (reload_cse_simplify_operands): Likewise.
18399         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
18400         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
18401         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
18402         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
18403         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
18404         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
18405
18406         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
18407
18408 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
18409
18410         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
18411         length.
18412         (*extzv_1_r_h8300hs): Likewise.
18413         (*extzv_1_r_inv_h8300): Likewise.
18414         (*extzv_1_r_inv_h8300hs): Likewise.
18415
18416 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
18417
18418         * config/h8300/h8300.h (PREDICATE_CODES): New.
18419
18420 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
18421
18422         * config/h8300/h8300.md (*addsi3_upper): New.
18423         (*iorsi3_shift): Likewise.
18424         (two splitters): Likewise.
18425         (*addsi3_shift): Likewise.
18426         (two splitters): Likewise.
18427
18428 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
18429
18430         * Makefile.in (optabs.o): Add dependency on basic-block.h.
18431         * basic-block.h (control_flow_insn_p): Fuction was exported.
18432         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
18433         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
18434         notes only when the region is contained in a single basic block.
18435
18436 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
18437
18438         PR inline-asm/8832
18439         * tree.h (expand_asm): New prototype.
18440         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
18441         to do so.
18442         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
18443         down to expand_asm.
18444         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
18445         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
18446         (volatile_refs_p) [ASM_INPUT]: Likewise.
18447         (side_effects_p) [ASM_INPUT]: Likewise.
18448
18449 2003-01-09  Jan Hubicka  <jh@suse.cz>
18450
18451         * i386.md (*mul*): FIx constraints; remove confused comment; fix
18452         athlon_decode attributes
18453         (imul/k8 optimization peep2s): New.
18454
18455         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
18456         * i386.md (type attribute): Add ssecomi.
18457         (unit, memory, prefix attributes): Handle ssecomi.
18458         (cvt?2? patterns): Fix athlon_decode attribute
18459         (comi patterns): Set attribute to ssecomi.
18460
18461         PR target/8343
18462         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
18463
18464 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
18465
18466         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
18467         that match register_operands.
18468         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
18469         register_operand the default case.
18470
18471 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
18472
18473         PR c/8032
18474         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
18475         an empty element, do not advance the pointer to unfilled
18476         fields if there are pending initializers.
18477
18478 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
18479
18480         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
18481         (install-gcc-tooldir, install-cpp, installdirs,
18482         install-common, install-driver, install-info, install-man,
18483         install-headers, install-include-dir, install-headers-tar,
18484         install-headers-cpio, install-headers-cp, install-mkheaders,
18485         install-collect2, uninstall): Prepend $(DESTDIR) to
18486         destination paths in all (un)installation commands.
18487         (install-driver): Rewrite $(LN) commands to support DESTDIR
18488         with "ln" as well as with "ln -s".
18489         (installdirs): Simply use mkinstalldirs.
18490         (install-libgcc, install-multilib): Also pass DESTDIR.
18491         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
18492         installation destination variable ldir.
18493         * config/alpha/t-osf4, config/arm/t-netbsd,
18494         config/ia64/t-hpux, config/mips/t-iris5-6,
18495         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
18496         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
18497         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
18498         in the definition of SHLIB_INSTALL.
18499         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
18500         $(libsubdir) in the installation commands.
18501
18502 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18503
18504         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
18505         non-optimizing compile.
18506         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
18507         compile.
18508
18509 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
18510
18511         * config/i386/i386.c (ix86_attribute_table): Add new attributes
18512         ms_struct and gcc_struct.
18513         (ix86_handle_struct_attribute): New function.
18514         (ix86_ms_bitfield_layout_p): Update to take new attributes
18515         into account.
18516         * doc/extend.texi: Document new attributes.
18517         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
18518
18519 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
18520
18521         PR optimization/8750
18522         * config/i386/i386.c (ix86_expand_prologue): Don't allow
18523         scheduling pass to move insns across __alloca call.
18524
18525 2003-01-08  Dale Johannesen  <dalej@apple.com>
18526
18527         * config/rs6000/rs6000.md:  Replace *store_multiple_string
18528         with *stmsi[3-8].
18529
18530 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
18531
18532         PR target/9210
18533         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
18534         Set SYMBOL_REF_FLAG on local data sym_ref.
18535
18536 2003-01-08  Dale Johannesen  <dalej@apple.com>
18537
18538         * function.c (assign_parms):  Don't set pretend_args_size if
18539           REG_PARM_STACK_SPACE.
18540           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
18541           pretend_args_size.
18542
18543 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
18544
18545         * gcc.hlp: Delete.
18546
18547 2003-01-09  Jan Hubicka  <jh@suse.cz>
18548
18549         * i386.c  (ix86_expand_int_addcc): Fix thinko.
18550
18551 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
18552
18553         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
18554         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
18555         as hook_bool_tree_hwi_hwi_tree_true.
18556         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
18557         (rs6000_emit_epilogue): Same.
18558         (rs6000_output_mi_thunk): Re-implement as RTL.
18559         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
18560         xcoffout_declare_function if any debugging enabled.
18561
18562 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
18563
18564         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
18565         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
18566         * config/mips/mips.h (enum processor_type): Rename
18567         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
18568         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
18569         Add PROCESSOR_M4K.
18570         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
18571         (ISA_MIPS32R2): New define.
18572         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
18573         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
18574         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
18575         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
18576         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
18577         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
18578         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
18579         compiling MIPS16 code.
18580         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
18581         comment.
18582         (ISA_HAS_SEB_SEH): New define.
18583         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
18584         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
18585         processor_type value renaming.  Add support for MIPS32R2.
18586         Clean up comments, and move "sb1" entry with other MIPS64 CPU
18587         entries.
18588         (override_options): Reimplement -mipsN option handling so that
18589         it will work correctly for -mips32r2.  Avoid branch-likely
18590         instructions on MIPS32R2.
18591         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
18592         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
18593         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
18594         (extendhisi2_hw, extendqisi2_hw): New.
18595         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
18596         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
18597         MIPS32R2, and MIPS64.
18598         (LINK_SPEC): Pass -mips32r2 to linker.
18599         * config/mips/t-isa3264: Built -mips32r2 multilibs.
18600         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
18601         for mips32r2 in the -march description.  Alphabetically sort
18602         CPU names in the -march description.  Add long-missed -mips32
18603         and -mips64 to MIPS option summary.
18604
18605         * config.gcc: Update copyright years to include 2003.
18606         * config/mips/mips.c: Likewise.
18607         * config/mips/mips.h: Likewise.
18608         * config/mips/mips.md: Likewise.
18609         * config/mips/netbsd.h: Likewise.
18610         * doc/invoke.texi: Likewise.
18611
18612 2003-01-08  Andreas Schwab  <schwab@suse.de>
18613
18614         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
18615         variable.
18616         * configure: Regenerated.
18617
18618 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
18619
18620         * config/h8300/h8300.c (output_logical_op): Replace byte/word
18621         extraction of det with b0, b1, w0, w2, etc.
18622         (compute_logical_op_length): Likewise.
18623         (compute_logical_op_cc): Likewise.
18624
18625 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
18626
18627         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
18628         HIGH on all variants.
18629
18630 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
18631
18632         * Makefile.in (PARTITION_H): New.
18633         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
18634         * basic-block.h: Include hard-reg-set.h.
18635
18636 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
18637
18638         * arm.h (ENABLE_XF_PATTERNS): Delete.
18639         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
18640         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
18641         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
18642         (cmpxf_trap): Delete.
18643         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
18644
18645 2003-01-08  Jan Hubicka  <jh@suse.cz>
18646
18647         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
18648         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
18649         (add??cc): New expanders.
18650         * i386.c (expand_int_addcc): New function.
18651         * i386-protos.h (expand_int_addcc): Declare.
18652
18653         * alias.c (memory_modified_1): New static function.
18654         (memory_modified): New static varaible.
18655         (memory_modified_in_insn_p): New global function.
18656         * rtl.h (memory_modified_in_insn_p): Declare.
18657         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
18658         references.
18659
18660         * expr.h (emit_conditional_add): Declare.
18661
18662 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
18663
18664         PR other/8947
18665         * doc/invoke.texi (-malign-double): Explain that the option breaks
18666         binary compatibility.
18667
18668 2003-01-08  Andreas Schwab  <schwab@suse.de>
18669
18670         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
18671         should come from the generic *-*-linux* entry.
18672
18673 2003-01-07  Jan Hubicka  <jh@suse.cz>
18674
18675         * cselib.c (cselib_current_insn_in_libcall): New static variable.
18676         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
18677         we are inside libcall.
18678         * cselib.h (elt_loc_list): Add in_libcall.
18679         * gcse.c (do_local_cprop): Do not copy propagate using insns
18680         in libcalls.
18681
18682 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
18683
18684         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
18685         not normally affect to issue rate.
18686
18687 2003-01-07  Jan Hubicka  <jh@suse.cz>
18688
18689         * genopinit.c (optabs): Add addc_optab.
18690         * ifcvt.c (noce_try_store_flag): Rename to ...
18691         (noce_try_addcc): ... this one; handle generic conditional increment.
18692         (noce_process_if_block): Update noce_try_addcc call.
18693         * optabs.c (emit_conditional_add): New.
18694         (init_obtabs): Initialize addc_optab.
18695         * optabs.h (optab_index): Add OTI_addcc.
18696         (addcc_optab): New macro.
18697         * md.texi: Document addMcc
18698
18699         PR target/8322
18700         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
18701         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
18702         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
18703
18704         * reload1.c (delete_output_reload): Avoid repeated attempts
18705         to delete insn.
18706
18707 2003-01-07  Andreas Schwab  <schwab@suse.de>
18708
18709         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
18710         Move --enable-initfini-array check ...
18711         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
18712         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
18713         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
18714         * configure: Rebuild.
18715
18716 2003-01-07  Richard Henderson  <rth@redhat.com>
18717
18718         * alias.c (find_base_value): Only use new_reg_base_value shortcut
18719         if the register is set once.
18720
18721 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
18722
18723         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
18724         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
18725         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
18726
18727 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
18728             Sunil Davasam  <sunil.k.davasam@intel.com>
18729
18730         PR libstdc++/9076
18731         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
18732         DW_CFA_same_value, read next and ignore.
18733
18734 2003-01-07  Richard Henderson  <rth@redhat.com>
18735
18736         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
18737
18738 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
18739
18740         * cfg.c: Include alloc-pool.h
18741         (edge_pool): New pool.
18742         (bb_pool): New pool.
18743         (first_deleted_edge): Remove.
18744         (first_deleted_block): Remove.
18745         (init_flow): Alloc/free the pools.
18746         (free_edge): Use pools.
18747         (alloc_block): Ditto.
18748         (expunge_block): Ditto.
18749         (cached_make_edge): Ditto.
18750
18751         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
18752
18753 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
18754
18755         * et-forest.c: Include alloc-pool.h.
18756         (struct et_forest): Add node_pool and occur_pool.
18757         (et_forest_create): Create the new pools.
18758         (et_forest_delete): Delete them.
18759         (et_forest_add_node): Allocate and free using pools.
18760         (et_forest_add_edge): Ditto.
18761         (et_forest_remove_node): Ditto.
18762         (et_forest_remove_edge): Ditto.
18763
18764         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
18765
18766 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
18767
18768         * config/h8300/h8300.c (output_logical_op): Simplify and
18769         optimize the handling of SImode.
18770         * config/h8300/h8300.c (compute_logical_op_length): Update
18771         accordingly.
18772         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
18773
18774 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
18775
18776         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
18777         big-endian correction to indirect arguments too.
18778
18779 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
18780
18781         Segher Boessenkool  <segher@koffie.nl>
18782
18783         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
18784         (alt_reg_names): Ditto, fix formatting.
18785         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
18786
18787 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
18788
18789         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
18790         (output_logical_op): Constify intval and det.
18791         (compute_logical_length): Likewise.
18792         (compute_logical_cc): Likewise.
18793         (output_a_shift): Constify mask.
18794         (h8300_encode_label): Constify len.
18795
18796 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
18797
18798         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
18799         (h8300_expand_epilogue): Likewise.
18800
18801 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
18802
18803         Segher Boessenkool  <segher@koffie.nl>
18804
18805         * config/rs6000/altivec.md: Remove spaces from assembler
18806         instruction argument lists.
18807
18808 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18809
18810         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
18811         c4x_assembler_function_p.
18812         (c4x_null_epilogue_p): Complement return value, all uses updated.
18813         (c4x_insert_attributes): Add naked.
18814         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
18815         * doc/extend.texi: Update C4x function attributes.
18816
18817 2003-01-06  Richard Henderson  <rth@redhat.com>
18818
18819         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
18820         properly when changing "local-ness".
18821         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
18822
18823 2003-01-06  Dale Johannesen  <dalej@apple.com>
18824
18825         * config/darwin-protos.h:  Add prototypes for new section functions.
18826
18827 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
18828
18829         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
18830         to EABI.
18831
18832 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
18833
18834         * hwint.h: If the current compiler has no 64-bit type at all,
18835         make HOST_WIDEST_INT 32 bits.
18836
18837 2003-01-06  Eric Christopher  <echristo@redhat.com>
18838
18839         * config/mips/mips.md (movdf_internal2): Fix constraints.
18840
18841 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
18842
18843         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
18844
18845 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
18846
18847         * config/mips/mips.md (leadi): Use dla rather than la.
18848
18849 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
18850
18851         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
18852         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
18853
18854 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
18855
18856         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
18857         redefinition.
18858
18859 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
18860
18861         * config/h8300/h8300.md (*extzv_8_23): New.
18862
18863 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18864
18865         * pa64-hpux.h (JCR_SECTION_NAME): Define.
18866         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
18867         USE_EH_FRAME_REGISTRY when defining.
18868
18869 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
18870
18871         * config/h8300/h8300.c (output_a_shift): Do not output a
18872         variable shift.
18873         * config/h8300/h8300.md (two splitters): New.
18874
18875 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
18876
18877         * config/mips/mips.md: Disable the movstrsi define_split.
18878
18879 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18880
18881         * alloc-pool.c: Don't include "libiberty.h".
18882         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
18883         * convert.c (convert_to_real): Hide unused variable.
18884
18885 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18886
18887         * Makefile.in (gtyp-gen.h): Const-ify.
18888         * gcov-dump.c (tag_table): Likewise.
18889
18890 2003-01-04  Bruce Korb  <bkorb@gnu.org>
18891
18892         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
18893         of *both* the file name and the fix name.
18894
18895 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
18896
18897         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
18898         collect2.
18899         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
18900         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
18901         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
18902         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
18903         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
18904         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
18905         elfos.h.
18906         (EH_FRAME_IN_DATA_SECTION): Delete define.
18907         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
18908         (STARTFILE_SPEC): Use crtbegin.o.
18909         (ENDFILE_SPEC): Use crtend.o.
18910         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
18911         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
18912         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
18913         DTOR_LIST_BEGIN): Define.
18914         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
18915         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
18916         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
18917
18918 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
18919
18920         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
18921         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
18922         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
18923         Cleanup handling of replacement text.
18924         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
18925
18926 2003-01-04  Bruce Korb  <bkorb@gnu.org>
18927
18928         * fixinc/tests/base/math.h: removed obsolete results
18929         * fixinc/tests/base/stdlib.h: ditto
18930         * fixinc/tests/base/sys/param.h: ditto
18931         * fixinc/tests/base/sys/stat.h: ditto
18932         * fixinc/tests/base/time.h: ditto
18933         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
18934         * fixinc/tests/base/sys/byteorder.h: ditto
18935         * fixinc/inclhack.def: Remove superfluous backslashes
18936
18937 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
18938
18939         * config/h8300/h8300-protos.h: Add prototypes for
18940         the new functions defined below.
18941         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
18942         define.
18943         (dosize): Emit RTL instead of assembly code.
18944         (push): Likewise.
18945         (pop): Likewise.
18946         (h8300_output_function_prologue): Remove.
18947         (h8300_expand_prologue): New.
18948         (h8300_expand_epilogue): New.
18949         (h8300_output_function_epilogue): Do only the reset of
18950         pragma_saveall.
18951         * config/h8300/h8300.md (push_h8300): New.
18952         (push_h8300hs): Likewise.
18953         (pop_h8300): Likewise.
18954         (pop_h8300hs): Likewise.
18955         (*stm_h8300s_2): Change the name to stm_h8300s_2.
18956         (*stm_h8300s_3): Change the name to stm_h8300s_3.
18957         (*stm_h8300s_4): Change the name to stm_h8300s_4.
18958         (*ldm_h8300s_2): New.
18959         (*ldm_h8300s_3): Likewise.
18960         (*ldm_h8300s_4): Likewise.
18961         (return): Likewise.
18962         (*return_1): Likewise.
18963         (prologue): Likewise.
18964         (epilogue): Likewise.
18965         (monitor_prologue): Likewise.
18966
18967 2003-01-03  Dale Johannesen  <dalej@apple.com>
18968
18969         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
18970           machopic_picsymbol_stub1.
18971           (EXTRA_SECTION_FUNCTIONS):  Ditto.
18972         * rs6000/rs6000.c:  Update copyright.
18973           (machopic_output_stub):  Use them.  Remove an insn from stub code.
18974
18975 2003-01-02  Jason Merrill  <jason@redhat.com>
18976
18977         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
18978
18979         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
18980         static/external decls.
18981
18982         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
18983         outermost scope.
18984         * c-decl.c (c_make_fname_decl): Push the decls there, too.
18985
18986 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
18987
18988         * config/h8300/h8300-protos.h: Add a prototype for
18989         h8300_current_function_interrupt_function_p.
18990         * config/h8300/h8300.c (interrupt_handler): Remove.
18991         (os_task): Likewise.
18992         (monitor): Likewise.
18993         (pragma_interrupt): New.
18994         (WORD_REG_USED): Use
18995         h8300_current_function_interrupt_function_p.
18996         (dosize): Likewise.
18997         (h8300_output_function_prologue): Likewise.
18998         Do not set interrupt_handler, os_task, monitor.
18999         (h8300_output_function_prologue): Use
19000         h8300_current_function_interrupt_function_p.
19001         Do not set interrupt_handler, os_task, monitor.
19002         (h8300_current_function_interrupt_function_p): New.
19003         (h8300_pr_interrupt): Set pragma_interrupt.
19004         (h8300_insert_attributes): Reset pragma_interrupt.
19005
19006 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19007
19008         * doc/install.texi (Configuration): Fix markup for reference to
19009         gcc/config.gcc.
19010
19011 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
19012
19013         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
19014         (*iorhi3_two_qi): Likewise.
19015         (*iorsi3_zexthi): Likewise.
19016         (*xorhi3_zextqi): Likewise.
19017         (*xorsi3_zexthi): Likewise.
19018         (*xorsi3_zextqi): Likewise.
19019
19020 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
19021
19022         * config/h8300/h8300.c (stack_pointer_operand): New.
19023         (const_int_gt_2_operand): Likewise.
19024         (const_int_ge_8_operand): Likewise.
19025         * config/h8300/h8300.md (a splitter): Likewise.
19026         (a peephole2): Likewise.
19027         * config/h8300/h8300-protos.h: Add prototypes for the new
19028         functions above.
19029
19030 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
19031
19032         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
19033         objc/objc-act.h: Fix copyright years.
19034
19035 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
19036
19037         * doc/passes.texi: Fix documentation for -fssa-ccp
19038
19039 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
19040
19041         * gccbug.in: Update for new categories.
19042
19043 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
19044
19045         * config/h8300/h8300.md: Reorder some patterns.
19046
19047 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
19048
19049         * config/h8300/h8300.c (output_logical_op): Fix a warning.
19050
19051 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
19052
19053         * config/darwin-protos.h, config/c4x/c4x-protos.h,
19054         config/cris/cris-protos.h, config/i370/i370-protos.h,
19055         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
19056         config/v850/v850-protos.h: Use struct, and don't conditionally
19057         compile on GCC_C_PRAGMA_H.
19058
19059 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
19060
19061         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
19062         * config/h8300/h8300-protos.h: Likewise.
19063         * config/sh/sh-protos.h: Likewise.
19064
19065 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
19066
19067         * config/arm/arm-protos.h: Use struct cpp_reader instead of
19068         cpp_reader.
19069         * config/h8300/h8300-protos.h: Likewise.
19070         * config/sh/sh-protos.h: Likewise.
19071
19072 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
19073
19074         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
19075         arm_pr_long_calls_off): Use struct.
19076         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
19077         : Similarly.
19078         Don't include cpplib.h.
19079         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
19080         sh_pr_nosave_low_regs): Similarly.
19081
19082 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
19083
19084         * config/h8300/h8300.c: Include cpplib.h.
19085
19086 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
19087
19088         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
19089           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
19090           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
19091           "GCC" in the copyright header.
19092
19093 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
19094
19095         * c-pragma.c (c_register_pragma): New.
19096         (init_pragma): Use it.
19097         * c-pragma.h (cpp_register_pragma): Don't declare.
19098         (c_register_pragma): New.
19099         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
19100         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
19101         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
19102         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
19103         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
19104         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
19105         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
19106         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
19107         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
19108         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
19109         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
19110         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
19111
19112 See ChangeLog.8 for earlier changes.