* doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
[official-gcc.git] / gcc / ChangeLog
blob3202bf815361521cb395879e66671e6f8d67e9d1
1 2003-06-17  Ranjit Mathew  <rmathew@hotmail.com>
2             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3         
4         * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
5         to run Java runtime tests separately.
7 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
9         * config/h8300/h8300-protos.h: Update a comment.
11 2003-06-17  J"orn Rennecke <joern.rennecke@superh.com>
13         * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
14         are aligned like integral modes.
15         (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
17         * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
18         (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
19         * sh.md (*pt): Remove.
21         * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
23         * sh.md (return_media_rte): New pattern.
24         (return_media): Use it.
26 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
28         * doc/contrib.texi: Replace Hitachi with Renesas.
29         * doc/install.texi: Likewise.
30         * doc/invoke.texi: Likewise.
32 2003-06-17  J"orn Rennecke <joern.rennecke@superh.com>
34         * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
35         behaviour.
37 2003-06-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
39         * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
41         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
42         2003-01-23 patch. Corrected to handle kernels with changed ucontext.
44         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
45         -msdata=eabi usages.
47         * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
49 2003-06-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
51         * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
52         * fixinc/gnu-regex.c: Don't define `volatile'.
53         * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
54         * ggc-simple.c: Likewise.
55         * system.h: Don't define `volatile'.
57         * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
58         * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
59         call these macros.
60         * config.in, configure: Regenerated.
62 2003-06-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
64         * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
65         Handle POINTERS_EXTEND_UNSIGNED.
67 2003-06-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
69         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
70         !TARGET_IRIX6]: Define as NULL.
72 2003-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
74         * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
76 2003-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
78         * dbxout.c (dbxout_source_line_counter): New global variable.
79         Mark it with GTY(()).
80         (dbxout_source_line): Increment dbxout_source_line_counter
81         and pass it to ASM_OUTPUT_SOURCE_LINE.
82         * sdbout.c (sdbout_source_line_counter): New global variable.
83         Mark it with GTY(()).
84         (unnamed_struct_number): Mark it with GTY(()).
85         (sdbout_source_line): Increment sdbout_source_line_counter
86         and pass it to ASM_OUTPUT_SOURCE_LINE.
87         * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
88         (xcoffout_source_line): Pass 0 as third argument to
89         ASM_OUTPUT_SOURCE_LINE.
90         (xcoffout_begin_prologue): Likewise.
91         * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
92         Use it instead of 'sym_lineno' but without incrementing it.
93         * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
94         * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
95         * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
96         * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
97         argument to ASM_OUTPUT_SOURCE_LINE.
98         * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
99         * config/arm/aout.h: Remove useless comment.
100         * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
101         * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
102         * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
103         Use it instead of 'sym_lineno' but without incrementing it.
104         * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
105         * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
106         parameter. Use it instead of 'sym_lineno' but without incrementing it.
107         * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
108         argument to ASM_OUTPUT_SOURCE_LINE.
109         * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
110         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
111         * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
112         Use it instead of 'sym_lineno' but without incrementing it.
113         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
114         * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
115         * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
116         * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
117         * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
119 2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
121         * config/mips/mips-protos.h (mips_expand_block_move): Declare.
122         (expand_block_move, output_block_move): Remove.
123         * config/mips/mips.h (enum block_move_type): Remove.
124         * config/mips/mips.c (block_move_call, output_block_move): Remove.
125         (mips_block_move_straight, mips_adjust_block_mem): New function.
126         (mips_block_move_loop): Renamed and reworked from block_move_loop.
127         (mips_expand_block_move): Likewise expand_block_move.  Return false
128         to fall back on the target-independent code.
129         * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
130         (movstrsi_internal*): Remove.
132 2003-06-16  Zack Weinberg  <zack@codesourcery.com>
134         * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
135         * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
136         * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
137         ISO C: new-style function declarations, no need for PARAMS,
138         no special punctuation on indirect function calls, use string
139         constant concatenation where convenient.
141 2003-06-17  Andreas Jaeger  <aj@suse.de>
143         * rtl.h: Remove declarations from coverage.h.
144         * toplev.c: Include coverage.h.
145         * Makefile.in (toplev.o): Depend on coverage.h.
147         * toplev.h: Remove extra declaration of print_time.
149         * gengtype.c (close_output_files): Remove duplicated declaration.
151 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
153         * config/sparc/sysv4.h: Remove target-independent comment;
154         replace "GNU CC" with "GCC".
155         * config/vxworks.h: Replace "GNU compiler" with "GCC".
156         * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
157         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
158         config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
159         config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
160         config/sparc/rtemself.h, config/sparc/sol2-64.h,
161         config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
162         config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
163         config/sparc/sol2.h, config/sparc/sp64-aout.h,
164         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
165         config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
166         "GNU compiler", "GNU CC" with "GCC".
167         * config/sparc/cypress.md, config/sparc/hypersparc.md,
168         config/sparc/sparc-modes.def, config/sparc/sparc.c,
169         config/sparc/sparc.md, config/sparc/sparclet.md,
170         config/sparc/supersparc.md, config/sparc/ultra1_2.md,
171         config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
172         "GNU C Compiler" with "GCC".
173         * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
175 2003-06-16  Aldy Hernandez  <aldyh@redhat.com>
177         * simplify-rtx.c (simplify_subreg): Do not over-extend vector
178         constants.
180         * testsuite/gcc.c-torture/execute/simd-4.c: New.
182 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
184         * config/ip2k/ip2k.h: Remove target-independent comments.
186         * config.gcc: Explicitly mention elfos.h in ip2k entry.
187         * config/ip2k/ip2k.h: Don't #include it here.
189 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
191         * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
192         config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
193         dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
194         function.c, gcc.c, genoutput.c, gensupport.c, global.c,
195         haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
196         loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
197         read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
198         stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
199         the PTR macro.
201         * gengtype.c: Don't use UNION_INIT_ZERO.
202         * system.h (UNION_INIT_ZERO): Delete.
204 2003-06-16  Richard Henderson  <rth@redhat.com>
206         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
207         GET_MODE_UNIT_SIZE when simplifying constant vectors.
209 2003-06-16  Andreas Jaeger  <aj@suse.de>
211         * timevar.c (get_run_time): Remove function provided also by
212         libiberty.
213         * timevar.h: Remove get_run_time declaration.
215 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
217         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
218         unreachable code.
220 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
222         * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
223         cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
224         use macros from "symcat.h", instead rely on ISO C.
226         * system.h: Don't include "symcat.h".
227         * configure.in (AC_C_STRINGIZE): Delete.
228         * config.in, configure: Regenerate.
230 2003-06-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
232         * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
234         * tree.h (STMT_CHECK): New macro.
235         Also upper-case argument names on all checking macros and
236         fix some whitespace problems; assume CODE argument does not
237         have side-effects.
239 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
241         * scan.h: Convert to ISO C.
242         * system.h: Likewise.
244         * c-format.c (dynamic_format_types): New pointer for dynamic data.
245         (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
246         New functions split out of...
247         (handle_format_attribute): ...here.
249 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
251         * sh.h (REG_CLASS_FROM_LETTER): Change to:
252         (REG_CLASS_FROM_CONSTRAINT).
253         (CONST_OK_FOR_I): Rename to:
254         (CONST_OK_FOR_I08).  Changed all users.
255         (CONST_OK_FOR_J): Rename to:
256         (CONST_OK_FOR_I16).  Changed all users.
257         (CONST_OK_FOR_K): Rename to:
258         (CONST_OK_FOR_P27).  Changed all users.
259         (CONST_OK_FOR_L): Rename to:
260         (CONST_OK_FOR_K08).  Changed all users.
261         (CONST_OK_FOR_O): Rename to:
262         (CONST_OK_FOR_I06).  Changed all users.
263         (CONST_OK_FOR_P): Rename to:
264         (CONST_OK_FOR_I10).  Changed all users.
265         (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
266         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
267         (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
268         (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
269         (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
270         (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
271         (CONST_OK_FOR_LETTER_P): Replace with
272         (CONST_OK_FOR_CONSTRAINT_P).
273         (EXTRA_CONSTRAINT_S): Rename to:
274         (EXTRA_CONSTRAINT_C16).  Changed all users.
275         (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
276         (EXTRA_CONSTRAINT_T): Rename to:
277         (EXTRA_CONSTRAINT_Csy).  Changed all users.
278         (EXTRA_CONSTRAINT_Z): Remove.
279         (EXTRA_CONSTRAINT): Replace with:
280         (EXTRA_CONSTRAINT_STR).
281         (EXTRA_CONSTRAINT_U): Rename to:
282          (EXTRA_CONSTRAINT_Z).  Changed all users.
283         * sh.c (and_operand): Use CONST_OK_FOR_J16.
284         * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
285         (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
286         (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
287         (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
288         (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
289         (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
290         (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
291         (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
292         (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
293         (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
294         (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
295         (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
296         (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
297         (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
298         (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
299         (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
300         (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
301         (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
302         (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
303         (sssubv4hi3): Likewise.
304         (movsf_i): Change I[08]/r to G/r.
305         (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
307         * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
309 2003-06-16  Vladimir Makarov  <vmakarov@redhat.com>
311         * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
313 2003-06-16  Andreas Jaeger  <aj@suse.de>
315         * basic-block.h: Remove duplicate prototype of
316         note_prediction_to_br_prob.
318         * tree.h: Remove duplicate prototype of strip_float_extensions.
320 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
322         * config/c4x/c4x.c: Don't include "c-tree.h".
323         * config/pa/pa.c: Likewise.
324         * langhooks.c: Likewise.
325         * tree.h (poplevel): Declare.
327 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
329         * config/h8300/h8300.c (const_costs): Move this to ...
330         (h8300_rtx_costs): ... here.
332 2003-06-16  Roger Sayle  <roger@eyesopen.com>
334         * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
335         (tan_optab, atan_optab): Define corresponding macros.
336         * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
337         * genopinit.c (optabs): Implement tan_optab and atan_optab
338         using tan?f2 and atan?f2 patterns.
339         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
340         using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
341         Change the default value of errno_set to false.
342         (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
343         using expand_builtin_mathfn.
345         * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
346         expander patterns implemented using existing atan2?f3 patterns.
348 2003-06-16  Roger Sayle  <roger@eyesopen.com>
350         * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
351         both operands of the addition equal, reuse the expanded RTL.
352         (expand_expr <MULT_EXPR>): Likewise for multiplication.
354 2003-06-16  Roger Sayle  <roger@eyesopen.com>
355             Jeff Law  <law@redhat.com>
357         * fold-const.c (operand_equal_p): Consider two calls to "const"
358         functions with identical non-volatile arguments to be equal.
359         Consider the FUNCTION_DECL for the "__builtin_foo" form of a
360         built-in function to be equal to the "foo" form.
362 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
364         * config/rs6000/sysv4le.h: Remove target-independent comment.
365         Replace "GNU compiler" with "GCC" in comment.
367 2003-06-16  Andreas Jaeger  <aj@suse.de>
369         * tracer.c: Remove duplicate declaration.
371         * toplev.c: Remove extra declaration of decode_d_option.
373         * ssa.c: Remove duplicate declaration.
375         * sreal.c: Remove extra declaration of dump_sreal.
377         * reload1.c: Remove duplicate declarations.
379         * integrate.c: Remove extra declaration of
380         set_decl_abstract_flags.
382         * flow.c: Remove extra declaration of dump_flow_info.
384         * alias.c: Remove extra declaration of get_addr.
386 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
388         * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
389         config/vxworks.h: GNU CC -> GCC.
391         * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
392         lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
393         stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
394         ssa.h, tree.def: Replace overly specific references to "GNU C"
395         and "GNU C Compiler" with references to "GCC".
397 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
399         * sh.c (prepare_move_operand): Check if operand 0 is an invalid
400         memory reference.  Fix test that checks if operand 1 is using r0.
401         * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
403         * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
404         defined.
406 2003-06-15  Nathan Sidwell  <nathan@codesourcery.com>
408         * function.h (struct emit_status): Remove x_last_linenum,
409         x_last_filename. Add x_last_location.
410         * rtl.h: #include "input.h".
411         (NOTE_DATA): New.
412         * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
413         number notes.
414         * emit-rtl.c (last_linenum, last_filename): Remove.
415         (last_location): New.
416         (emit_line_note_after): LINE must always be >= 0.
417         (emit_line_note): Likewise. Check not duplicate here...
418         (emit_note): ... rather than here.
419         (emit_line_note_force, force_next_line_note, init_emit): Adjust.
420         * integrate.c (expand_inline_function): Use emit_line_note for
421         line number notes.
422         (copy_insn_list): Likewise.
423         * unroll.c (copy_loop_body): Likewise.
424         * Makefile.in (RTL_H): Add input.h.
426 2003-06-16  Richard Sandiford  <rsandifo@redhat.com>
428         * optabs.c (emit_libcall_block): Don't hoist insns past a label.
430 2003-06-16  Richard Henderson  <rth@redhat.com>
432         * config/alpha/alpha-protos.h, config/alpha/elf.h,
433         config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
434         config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
435         * config/alpha/alpha.c: Likewise.  Move targetm init to end of file.
436         Remove unneeded static function decls.
438 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
440         * c-opts.c (c_common_handle_option): s/on/value/.
441         (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
442         directly rather than converting the argument.
443         * c.opt: Update docs.  Use UInteger where appropriate.
444         * common.opt: Use UInteger where appropriate.
445         * opts.c (integral_argument): New.
446         (handle_argument): Handle integral arguments, and optional
447         joined arguments.
448         (common_handle_option): Update.
449         * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
450         * opts.sh: Handle JoinedOrMissing and UInteger flags.
452 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
454         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
455         unnecessary extern declaration.
457 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
459         * config/gofast.h, config/interix.h, config/interix3.h,
460         config/libgloss.h, config/linux-aout.h, config/linux.h,
461         config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
462         * config/kaos.h: "GNU compiler" -> GCC.
463         * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
465         * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
466         config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
467         GNU CC -> GCC.
469         * config/svr3.h: Remove #if 0 code, misleading comments.
470         GNU CC -> GCC.
472 2003-06-15  Zack Weinberg  <zack@codesourcery.com>
474         * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
475         main_input_filename to avoid conflict with input_filename macro.
477 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
479         * config/mips/mips.h (asm_file_name, g_switch_set,
480         g_switch_value): Remove.
481         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
482         unnecessary extern declarations.
484 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
486         * config/frv/frv.h: Remove declaration of g_switch_value.
487         * config/m32r/m32r.h: Remove declaration of g_switch_value.
488         * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
490 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
492         * opts.sh: Quote '+' in regex.
494 2003-06-15  Andrew Pinski <pinskia@physics.uc.edu>
496         * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
497         * config/rs6000/rs6000.c: Include cfglayout.h.
498         * config/alpha/alpha.c: Likewise.
499         * config/ia64/ia64.c: Likewise.
500         * config/sparc/sparc.c: Likewise.
501         * config/sh/sh.c: Likewise.
503 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
505         * opts.sh: Quote '+' in regex.
507 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
509         * c-opts.c (lang_flags): Update for new spelling of flags.
510         (write_langs): Similarly.
511         * c.opt: Specify languages.
512         * opts.h: Remove languages.
513         * opts.sh: Recognise front-end defined languages.
514         * doc/sourcebuild.texi: Update.
516 2003-06-15  Andreas Jaeger  <aj@suse.de>
518         * alloc-pool.c: Convert to ISO C90 prototypes.
519         * alloc-pool.h: Likewise.
520         * alias.c: Likewise.
521         * attribs.c: Likewise.
522         * bb-reorder.c: Likewise.
523         * bitmap.h: Likewise.
524         * bitmap.c: Likewise.
525         * builtins.c: Likewise.
527         * tree.h: Convert prototypes of attribs.c to ISO C90.
528         * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
529         * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
530         * expr.h: Convert prototypes of builtins.c to ISO C90.
532 2003-06-15  Roger Sayle  <roger@eyesopen.com>
534         * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
535         implement exp, expf and expl built-ins as inline x87 intrinsics.
536         (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
537         represent x87's fscale, frndint and f2xm1 insns respectively.
538         (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
539         to encode x87's "fscale" instruction followed by a pop.
540         (*frndintxf2): New insn pattern for "frndint".
541         (*f2xm1xf2): New insn pattern for "f2xm1".
543         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
544         UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
545         UNSPEC_FPATAN.
547 2003-06-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
549         * gencheck.c (main): Avoid generating duplicate macros.
551         * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
552         knowing names of language subdirectories.
554 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
556         * c-pch.c (asm_file_name): Remove.
557         * common.opt: Add more switches.
558         * flags.h (g_switch_set): Boolify.
559         * opts.c (g_switch_value, g_switch_set, exit_after_options,
560         version_flag): Move from toplev.c.
561         (common_handle_option): Handle more switches from toplev.c.
562         * toplev.c (display_help, display_target_options, decode_d_option,
563         print_version): Make non-static, remove prototypes.
564         (aux_base_name, asm_file_name, aux_info_file_name): Constify.
565         (version_flag, g_switch_value, g_switch_set, exit_after_options):
566         Remove.
567         (independent_decode_option): Move some handlers to opts.c.
568         * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
569         exit_after_options, version_flag, display_help, display_target_options,
570         print_version, decode_d_option): New.
572 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
574         * config/alpha/alpha.md: Follow spelling conventions.
575         * config/arm/arm.c: Likewise.
576         * config/arm/arm.h: Likewise.
577         * config/arm/arm.md: Likewise.
578         * config/arm/crtn.asm: Likewise.
579         * config/m32r/m32r.c: Likewise.
580         * config/m32r/m32r.md: Likewise.
581         * config/rs6000/rs6000.c: Likewise.
583 2003-06-15  Richard Henderson  <rth@redhat.com>
585         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
586         insn_locators_initialize.
587         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
588         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
589         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
590         * config/sh/sh.c (sh_output_mi_thunk): Do it later.
592 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
594         * builtins.c (expand_builtin_expect_jump): Remove redundant
595         tests that are also in any_condjump_p().
597 2003-06-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
599         * libgcc2.c: Delete sysV68 L_trampoline section.
600         * config/m68k/mot3300-crt0.S: Delete file.
601         * config/m68k/mot3300Mcrt0.S: Likewise.
603 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
605         * config/aoutos.h: Remove.
606         * config.gcc: Remove reference to aoutos.h.
607         * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
609 2003-06-14  Kazu Hirata  <kazu@cs.umass.edu>
611         * doc/install.texi: Follow spelling conventions.
612         * doc/tm.texi: Likewise.
613         * config/fp-bit.c: Likewise.
614         * config/arm/arm.c: Likewise.
615         * config/frv/frv.c: Likewise.
616         * config/ns32k/NOTES: Likewise.
617         * config/ns32k/STATUS: Likewise.
619 2003-06-14  Roger Sayle  <roger@eyesopen.com>
620             Zack Weinberg  <zack@codesourcery.com>
622         * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
623         * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
624         * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
626         * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
627         * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
628         * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
629         * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
630         * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
631         * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
632         * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
633         * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
634         * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
635         * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
636         * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
637         * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
638         * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
639         * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
640         * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
641         * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
642         * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
643         * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
644         * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
645         * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
647 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
649         * opts.sh (POSIXLY_CORRECT): Unset it.
651         * tree.h (init_function_start): Remove filename and line paramters.
652         * function.c (init_function_start): Remove filename and line
653         parameters. Use DECL_SOURCE_LOCATION.
654         * c-decl.c (store_parm_decls): Adjust init_function_start call.
655         (c_expand_body_1): Likewise.
656         * coverage.c (create_coverage): Likewise.
657         * objc/objc-act.c (build_tmp_function_decl): Set line number to
658         zero.
659         (hack_method_prototype): Adjust init_function_start call.
661 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
663         PR target/3724
664         * arm/linux-elf.h (PROFILE_HOOK): Define.
666 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
668         PR target/11183
669         * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
671 2003-06-14  Roger Sayle  <roger@eyesopen.com>
673         * opts.sh: Work around a mysterious feature in cygwin's gawk
674         where specifying the input files explicitly has a different
675         behavior to piping them via stdin.
677 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
679         * doc/sourcebuild.texi: Update.
681 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
683         PR target/11183
684         * arm.c (output_move_double): Pass SImode to adjust_address.
686 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
688         * Makefile.in: Update to use common.opt and lang_opt_files.
689         (c-options.c, c-options.h): Remove.
690         (options.c, options.h): Add.
691         * c-opts.c: Include options.h not c-options.h.
692         * common.opt: New file.
693         * configure, configure.in: Add lang_opt_files.
694         * opts.c: Include flags.h and diagnostic.h.
695         (common_handle_option): New.
696         (handle_option): Update to recognize common options and all
697         language-dependent options.
698         * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
699         (struct cl_option): Make flags of type int.
700         * opts.h: Flag option with front ends to which it applies.
701         Handle duplicate options.
702         * toplev.c (filename): Remove.
703         (independent_decode_option): Don't handle filenames and -quiet.
704         (process_options, do_compile): Update.
706 2003-06-14  Nick Clifton  <nickc@redhat.com>
708         * doc/install.texi (Specific): Add description of different
709         ARM supported file format targets.
711 Sat Jun 14 11:12:04 CEST 2003  Jan Hubicka  <jh@suse.cz>
713         * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
714         inside delay slots.
716 2003-06-13  Matt Kraai  <kraai@alumni.cmu.edu>
718         * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
719         * unwind-pe.h (size_of_encoded_value): Do not define if
720         NO_SIZE_OF_ENCODED_VALUE is defined.
722 2003-06-13  Roger Sayle  <roger@eyesopen.com>
724         * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
725         expanding a complex constant into a CONCAT target.
727 2003-06-13  Zack Weinberg  <zack@codesourcery.com>
729         * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
730         (ASM_FILE_START_1): Delete.
731         * config/i386/att.h, config/i386/sco5.h,
732         config/i386/sysv3.h
733         (ASM_FILE_START_1): Delete.
735 2003-06-13  Kelley Cook  <kelleycook@wideopenwest.com>
737         * config/i386/bsd.h: Remove ASM_FILE_START.
738         * config/i386/djgpp.h: Likewise.
739         * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
741         * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
742         * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
744 2003-06-13  Vladimir Makarov  <vmakarov@redhat.com>
746         PR bootstrap/10835
747         * haifa-sched.c (max_lookahead_tries,
748         cached_first_cycle_multipass_dfa_lookahead,
749         cached_issue_rate): New variables.
750         (max_issue): Check the number of tries.
751         (choose_ready): Calculate max_lookahead_tries.
752         (sched_init): Check cached_issue_rate.
754 2003-06-13  Richard Henderson  <rth@redhat.com>
756         * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
757         * cfgrtl.c (purge_dead_edges): Expect it too.
759 2003-06-13  Jim Wilson  <wilson@tuliptree.org>
760             Eric Botcazou  <ebotcazou@libertysurf.fr>
762         PR bootstrap/10983
763         * combine.c (make_extraction): Use gen_lowpart_for_combine
764         when extracting from a REG and not in the destination of a SET.
766 2003-06-13  Doug Evans  <dje@sebabeach.org>
768         * tsystem.h (abort): Declare in inhibit_libc case to remove build
769         warnings for addvsi3, et.al.
771 2003-06-13  Aldy Hernandez  <aldyh@redhat.com>
773         * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
775         * simplify-rtx.c (simplify_subreg): Same.
777         * emit-rtl.c (gen_lowpart_common): Same.
779 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
781         * builtins.c: Fix comment typos.
782         * fold-const.c: Likewise.
784 2003-06-13  Doug Evans  <dje@sebabeach.org>
785             Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
787         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
788         * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
789         (m32r_va_arg): Use it.
790         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
791         (RETURN_IN_MEMORY): Ditto.
793 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
795         * c-typeck.c: Remove #if 0 clauses.
797         PR other/1494
798         * config/alpha/openbsd.h, config/i386/openbsd.h,
799         config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
800         residual reference to EGCS.
802 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
804         * arm.c (output_call_mem): If the address references the link-register
805         use an instruction sequence that avoids early-clobbering IP.
806         (eliminate_lr2ip): Delete.
808 2003-06-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
810         * c-format.c (format_types_orig): Disallow '*' width/precision in
811         asm_fprintf format checks.
813 2003-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
815         * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
816         non-integral types from integer register save area slots.
818 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
820         * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
822 2003-06-13  Florian Weimer  <fw@deneb.enyo.de>
824         * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
826 2003-06-13  Kaz Kojima  <kkojima@gcc.gnu.org>
828         * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
829         to file_end_indicate_exec_stack.
831 2003-06-12  Richard Henderson  <rth@redhat.com>
833         PR target/11089
834         * config/i386/i386.md (sse_movaps): Use an expander to force
835         one operand to be a register.
836         (sse_movups): Likewise.
838 2003-06-13  Doug Evans  <dje@sebabeach.org>
840         Remove some build warnings.
841         * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
842         (__do_global_ctors,__do_global_dtors): Ditto.
844 2003-06-12  Richard Henderson  <rth@redhat.com>
846         PR middle-end/10557
847         * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
849 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
851         * config/m32r/m32r.md: Fix a comment typo.
853 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
854             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
856         PR target/10142
857         * config/sparc/sparc.c (function_arg_record_value_parms): Add
858         new 'stack' field.
859         (function_arg_record_value_1): Set 'stack' to 1 if we run out of
860         integer slots for an integer field.
861         (function_arg_record_value_3): Shift vector index.
862         (function_arg_record_value_2): Likewise.
863         (function_arg_record_value): Initialize 'stack' to 0.
864         Set 'stack' to 1 if we run out of integer slots for an integer field.
865         Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
867 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
869         PR optimization/10955
870         * unroll.c (unroll_loop): Fix off-by-one bug.
872 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
874         * config/rs6000/rs6000.c (function_arg): Remove typo.
876 2003-06-12  Richard Henderson  <rth@redhat.com>
878         * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
879         and UNSPEC_DTPOFF.
881 2003-06-12  Richard Henderson  <rth@redhat.com>
883         PR middle-end/10475
884         * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
885         for extracting sub-words.
887 2003-06-12  Richard Henderson  <rth@redhat.com>
889         PR target/7594
890         * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
891         (zero_extendqihi2, zero_extendqisi2): Likewise.
893 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
895         * config/rs6000/rs6000.c (function_arg): Always split vectors for
896         e500 if it's a stdarg function.
897         (function_arg_advance): Advance 2 registers for vectors in a
898         stdarg function.
899         (init_cumulative_args): Initialize stdarg.
900         (rs6000_spe_function_arg): New.
902         * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
904 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
906         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
908 2003-06-12  Roger Sayle  <roger@eyesopen.com>
910         PR middle-end/168
911         * fold-const.c (tree_expr_nonnegative_p):  Handle addition
912         and multiplication of zero extensions, floating point division,
913         and integer<->fp, fp<->fp and zero extension conversions.
914         The built-in ceil and floor functions preserve signedness.
916 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
918         * ChangeLog: Follow spelling conventions.
919         * ChangeLog.2: Likewise.
920         * c-decl.c: Likewise.
921         * cfgloop.h: Likewise.
922         * cgraph.c: Likewise.
923         * coverage.c: Likewise.
924         * cppcharset.c: Likewise.
925         * cpphash.h: Likewise.
926         * cpplex.c: Likewise.
927         * cpplib.c: Likewise.
928         * dbxout.c: Likewise.
929         * df.c: Likewise.
930         * dwarf2out.c: Likewise.
931         * dwarfout.c: Likewise.
932         * emit-rtl.c: Likewise.
933         * explow.c: Likewise.
934         * gcov-io.c: Likewise.
935         * gcov-io.h: Likewise.
936         * gcov.c: Likewise.
937         * gengtype.c: Likewise.
938         * ggc.h: Likewise.
939         * opts.c: Likewise.
940         * real.c: Likewise.
941         * reload.c: Likewise.
942         * stmt.c: Likewise.
944 2003-06-12  Janis Johnson  <janis187@us.ibm.com>
946         * doc/install.texi (m32r-*-elf): Change company to Renesas.
948 Thu Jun 12 20:00:55 CEST 2003  Jan Hubicka  <jh@suse.cz>
950         * basic-block.h (flow_delete_block_noexpunge): Kill.
951         * cfgrtl.c (flow_delete_block_noexpunge): Merge to
952         rtl_delete_block.
954 2003-06-10  Richard Henderson  <rth@redhat.com>
956         PR inline-asm/4823
957         * reg-stack.c (any_malformed_asm): New.
958         (check_asm_stack_operands): Set it.
959         (convert_regs_1): Check it before aborting.
961 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
963         * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
965 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
967         * c-opts.c (complain_wrong_lang): Add on argument.
968         Print no- switch if on is false.
969         (c_common_decode_option): Adjust caller.
971 2003-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
973         * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
974         to initialize GOT register.
976 2003-06-12  Roger Sayle  <roger@eyesopen.com>
978         * fold-const.c (tree_expr_nonnegative_p): Add support for
979         floating point constants, addition and multiplication.
981 2003-06-12  J"orn Rennecke <joern.rennecke@superh.com>
983         * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
984         constraint modifier for operand 0.
986 2003-06-12  Hans-Peter Nilsson  <hp@axis.com>
988         Don't warn on dollars in builtin macro definitions,
989         e.g. __REGISTER_PREFIX__.
990         * cpphash.h (struct cpp_reader): Move member warn_dollars...
991         * cpplib.h (struct cpp_options): ...to here.  Change type to
992         unsigned char.
993         * cppinit.c (cpp_create_reader): Set it to 1 here.
994         (post_options): Don't set it here.
995         * c-opts.c (c_common_init_options): Reset it to 0 here.
996         (finish_options): Set it here.
997         * cpplex.c (forms_identifier_p): Tweak for new location of
998         warn_dollars.
1000         * configure.in (assembler dwarf2 debug_line support): Define insn
1001         for cris-*-* and mmix-*-*.
1002         * configure: Regenerate.
1004 2003-06-11  Uwe Stieber  <uwe@kaos-group.de>
1006         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
1007         powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
1008         (sh-*-elf*): Add sh*-*-kaos* support.
1009         * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
1010         config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
1011         config/sh/kaos-sh.h: New files.
1013 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
1015         * gcse.c (fis_get_condition): Make it a global function.
1016         * reload1.c (reload_cse_move2add): Detect implicit sets.
1017         * rtl.h: Add a prototype for fis_get_condition.
1019 2003-06-11  Richard Henderson  <rth@redhat.com>
1021         * stmt.c (expand_asm_operands): Don't warn for memories with
1022         queued addresses.
1024 2003-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
1026         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
1027         brackets.
1029 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
1031         * hooks.c (hook_int_size_t_constcharptr_int_0): New.
1032         * hooks.h (hook_int_size_t_constcharptr_int_0): New.
1033         * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
1034         (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
1035         * langhooks.c (lhd_decode_option): Remove.
1036         * langhooks.h (struct lang_hooks): Remove decode_option.
1037         * opts.c (handle_option): No longer use decode_option.
1039 2003-06-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1041         * cfgloopanal.c (variable_initial_value): Update the set of altered
1042         registers correctly.
1044 2003-06-11  Roger Sayle  <roger@eyesopen.com>
1045             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1047         * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
1048         * config/i386/netbsd-elf.h: Likewise.
1049         * config/m32r/m32r.h: Likewise.
1050         * config/mn10300/mn10300.h: Likewise.
1051         * config/stormy16/stormy16.h: Likewise.
1052         * config/v850/v850.h: Likewise.
1053         * config/vax/netbsd-elf.h: Likewise.
1054         * config/xtensa/elf.h: Likewise.
1055         * config/xtensa/linux.h: Likewise.
1057 2003-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1059         * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
1060         DWARF 2 default.
1062         * config/mips/dbxmdebug.h: New file.
1063         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
1064         gas and --with-stabs.
1066 2003-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1068         * expr.c (can_move_by_pieces): align argument may be unused.
1070 2003-06-11  J"orn Rennecke <joern.rennecke@superh.com>
1072         * expr.c (convert_move): Handle moves between two CONCATs.
1074 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
1076         * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
1077         !TARGET_H8300.
1079 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
1081         * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
1082         * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
1083         (TARGET_RTL_DUMP): Likewise.
1084         (TARGET_SWITHCES): Remove -mrtl-dump.
1086 2003-06-10  Richard Henderson  <rth@redhat.com>
1088         * optabs.c (gen_cond_trap): Fix prepare_operand typo.
1090 2003-06-10  Richard Henderson  <rth@redhat.com>
1092         * config/ia64/ia64.md (call_gp): Fix memory mode.
1094 2003-06-10  James E Wilson  <wilson@tuliptree.org>
1096         PR target/8812
1097         * reload1.c (choose_reload_regs): For equiv reg, add loop over all
1098         hard regs for reload_reg_used_at_all and reg_class_contents checks.
1100 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
1102         * config/h8300/h8300.c (print_operand): Remove support for
1103         operand character 'b'.
1104         Add the AND case to operand character 'c'.
1105         * config/h8300/h8300.md (two anonymous patterns): Replace
1106         operand character 'b' with 'c'.
1108 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
1110         * config/h8300/h8300.c (print_operand): Remove support for
1111         operand character 'u'.
1113 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
1115         * configure.in: Fix typo.
1116         * configure: Regenerate.
1118 2003-06-10  Loren James Rittle  <ljrittle@acm.org>
1120         * config/alpha/alpha.c (unicosmk_file_end): Add conditional
1121         compilation guard.
1123 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
1125         * sh-protos.h (function_symbol): Declare.
1126         * sh.c (expand_block_move, expand_ashiftrt): Use it.
1127         (sh_expand_prologue, sh_expand_epilogue): Likewise.
1128         (sh_initialize_trampoline): Likewise.
1129         (function_symbol): New function.
1130         * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
1131         (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
1132         (call_value_pop, shcompact_return_tramp): Likewise.
1134         * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
1136         * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
1137         target register.
1139 2003-06-10  DJ Delorie  <dj@redhat.com>
1141         * doc/md.texi (Machine Constraints): Document stormy's Z
1142         constraint.
1144 2003-06-10  Geoffrey Keating  <geoffk@apple.com>
1146         * except.c (call_site_base): Mark with GTY.
1148 2003-06-10  Richard Earnshaw  <rearnsha@arm.com>
1150         * arm-proto.h: Convert to ISO C90 prototypes.
1151         * arm.c: Likewise.
1153 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
1155         * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
1157 2003-06-10  Steve Ellcey  <sje@cup.hp.com>
1159         * calls.c (expand_call): Convert structure_value_addr to Pmode if
1160         necessary.
1162 2003-06-10  Andrew Haley  <aph@redhat.com>
1164         * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
1165         (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
1166         (lhd_decl_ok_for_sibcall): New.
1167         * langhooks.c (lhd_decl_ok_for_sibcall): New.
1168         * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
1169         * calls.c (expand_call): Check lang_hook before generating a
1170         sibcall.
1172 2003-06-10  DJ Delorie  <dj@redhat.com>
1174         * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
1175         which matches (const_int 0) for addhi3.
1176         * config/stormy16/stormy16.md: Document known constraints.
1177         (addhi3): Handle adding zero.
1179 2003-06-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1181         * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
1182         * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
1183         * config/m32r/m32r-protos.h: Prototype it.
1185 2003-06-10  Janis Johnson  <janis187@us.ibm.com>
1187         * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
1188         common to rs6000 sysv targets.
1189         * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
1190         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
1192 2003-06-10  Nick Clifton  <nickc@redhat.com>
1194         * config.gcc: Add arm-wince-pe target.
1195         * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
1196         Add comment about default apcs26 support.
1197         * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
1198         multilib.
1199         (MULTILIB_DIRNAMES): Add 'apcs32'.
1200         * config/arm/t-wince-pe: New makefile fragment.
1201         * config/arm/wince-pe.h: New file.  Overrides a few definitions
1202         in arm/pe.h
1204 2003-06-10  Roger Sayle  <roger@eyesopen.com>
1206         * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
1207         * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
1208         when x is easily negated and f is sin, tan or atan.
1209         (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
1210         sin(x) with flag_unsafe_math_optimizations.
1211         (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
1212         sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
1214 2003-06-10  Roger Sayle  <roger@eyesopen.com>
1216         * fold-const.c (fold <EQ_EXPR>):  Don't fold x == x only if x
1217         is a floating point type *and* we currently honor NaNs.
1218         (fold <NE_EXPR>): Likewise.
1220 2003-06-10  Mark Mitchell  <mark@codesourcery.com>
1222         PR c++/11131
1223         * tree-inline.c (inlinable_function_p): Call the language-specific
1224         hook early.
1226 2003-06-09  David Taylor  <dtaylor@emc.com>
1228         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg):  Skip over
1229         the f_res field.
1231 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
1233         * configure.in: Remove references to host_truncate_target.
1234         * configure: Regenerate.
1235         * config.gcc: Remove references to truncate_target,
1236         host_truncate_target.
1238         * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
1239         Replace "build_canonical" with build, "host_canonical" with host.
1240         * configure.in: Use GCC_TOPLEV_SUBDIRS.
1241         * aclocal.m4: Include ../config/acx.m4.
1242         * configure: Regenerate.
1244 2003-06-09  David Taylor  <dtaylor@emc.com>
1246         * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
1247         bytes of padding in the __va_list_tag structure a name (reserved).
1249 2003-06-09  Jason Merrill  <jason@redhat.com>
1251         * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
1253 2003-06-09  Osku Salerma  <osku@iki.fi>
1255         * c-format.c (check_format_string, get_constant): New.
1256         (handle_format_attribute, handle_format_arg_attribute,
1257         decode_format_attr): Change to use above functions.
1259 2003-06-09  Richard Henderson  <rth@redhat.com>
1261         * stmt.c (expand_asm_operands): Re-word warning.
1263 2003-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
1265         PR target/8787
1266         * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
1267         if -masm=intel.
1269 2003-06-09  James E Wilson  <wilson@tuliptree.org>
1271         * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
1272         config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
1273         Add libgcc exception.
1275 2003-06-09  David Edelsohn  <edelsohn@gnu.org>
1276             Ayal Zaks  <gcchaifa@us.ibm.com>
1278         * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
1279         (insvsi*): Add insert_word attribute.
1280         * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
1281         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
1282         power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
1284 2003-06-09  Kazu Hirata  <kazu@cs.umass.edu>
1286         * fold-const.c (fold): Fix a comment typo.
1288 2003-06-09  Nathan Sidwell  <nathan@codesourcery.com>
1290         * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
1291         removed.
1293 2003-06-09  J"orn Rennecke <joern.rennecke@superh.com>
1295         * sh.c (gen_block_redirect): Use locators.
1297 2003-06-09  Richard Earnshaw  <rearnsha@arm.com>
1299         * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
1300         cast to int.
1302 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
1304         * configure.in: Assume gas 2.14 and above can handle MIPS relocation
1305         operators.
1306         * configure: Regenerated.
1308 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
1309             Alexandre Oliva  <aoliva@redhat.com>
1311         * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
1312         (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
1313         (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
1314         n32/64 PIC.
1315         (MUST_SAVE_REGISTERS): Delete.
1316         * config/mips/mips.c (mips_frame_info): Remove extra_size field.
1317         (machine_function): Add global_pointer field.
1318         (mips_classify_constant): Check for (const $gp) using pointer equality
1319         with pic_offset_table_rtx.
1320         (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
1321         (mips_restore_gp): Use current_function_outgoing_args_size.
1322         (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
1323         GP_REG_FIRST + 28.  Handle relocation strings that have
1324         more than one '('.
1325         (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
1326         (mips_global_pointer): New function.
1327         (mips_save_reg_p): New function, mostly split out from...
1328         (compute_frame_size): ...here.  Remove handling of extra_size.
1329         Reclaim args_size if no variables depend on it.  Don't treat gp
1330         as a special case: handle it in the main GPR loop.
1331         (mips_initial_elimination_offset): Fix comment.
1332         (save_restore_insns): Save every register in the GPR mask,
1333         removing distinction between mask and real_mask.
1334         (mips_output_function_prologue): Update .frame psuedo-op after
1335         the removal of extra_size.  Move the SVR4 PIC stack allocation
1336         and cprestore instructions to mips_expand_prologue.
1337         (mips_gp_insn): New function.
1338         (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
1339         the chosen global pointer.  Handle SVR4 PIC stack allocation
1340         in the same way as other ABIs.  Adjust varargs code accordingly.
1341         Emit a cprestore insn after allocating the stack.  Use mips_gp_insn
1342         to emit the loadgp sequence.  Follow it with a loadgp_blockage
1343         if not using explicit relocs.
1344         (mips_output_function_epilogue): Reinstate the default gp register.
1345         (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
1346         (mips16_optimize_gp): Likewise.
1347         * config/mips/mips.md (UNSPEC_LOADGP): Remove.
1348         (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
1349         (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
1350         (loadgp): Remove.
1351         (loadgp_blockage, cprestore): New instructions.
1352         (builtin_setjmp_setup): Implement using emit_move_insn.  Use
1353         pic_offset_table_rtx.
1354         (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
1355         (builtin_longjmp): Use gen_raw_REG to force use of $28.
1357 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
1359         * config/mips/mips-protos.h (mips_output_division): Declare.
1360         * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
1361         (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
1362         (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
1363         (TARGET_CHECK_ZERO_DIV): New macro.
1364         (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
1365         * config/mips/mips.c (mips_output_division): New function.
1366         * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
1367         account when calculating the default length of a division.
1368         (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
1369         Enable regardless of optimization level.  Use mips_output_division.
1370         (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
1371         udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
1372         divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
1373         modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
1374         udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
1375         umoddi3_internal): Remove.
1377 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
1379         * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
1380         (mips_sw_reg_names): Likewise.
1381         (mips_regno_to_class): Change hilo entry to NO_REGS.
1382         (hilo_operand): Use MD_REG_P.
1383         (extend_operator): New predicate.
1384         (override_options): Remove 'a' constraint.
1385         (mips_secondary_reload_class): Remove hilo handling.  Also remove
1386         handling of (plus sp reg) reloads for mips16.
1387         (mips_register_move_cost): Remove hilo handling.
1388         * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
1389         (MD_REG_LAST): Remove hilo from range.
1390         (HILO_REGNUM): Delete.
1391         (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
1392         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1393         (PREDICATE_CODES): Add entry for extend_operator.
1394         (DEBUG_REGISTER_NAMES): Change hilo entry to "".
1395         * config/mips/mips.md: Remove hilo clobbers wherever they occur.
1396         Remove constraints from multiplication define_expands.  Remove
1397         clobbers from "decorative" define_expand patterns.
1398         (UNSPEC_HILO_DELAY): Delete.
1399         (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
1400         (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
1401         Adjust C code to just emit insns for !TARGET_64BIT.
1402         (mulsidi3_internal): Rename to mulsidi3_32bit.
1403         (mulsidi3_64bit): Use a "d" constraint for the destination.
1404         Use extend_operator so that the pattern can handle umulsidi3 as well.
1405         Split the instruction after reload.
1406         (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
1407         (umulsidi3_internal): Rename to umulsidi3_32bit.
1408         (umulsidi3_64bit): Remove.
1409         (*smsac_di, *umsac_di): Line-wrap fixes.
1410         (udivsi3_internal): Don't allow operand 2 to be constant.
1411         (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
1412         (movdi_internal2, movsi_internal): Remove hilo alternatives.
1413         (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
1415 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
1417         PR target/10913
1418         * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
1419         PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
1420         PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
1421         PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
1422         SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
1423         (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
1424         PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
1425         asm_out_text_file with asm_out_file.
1426         * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
1427         * config/mips/elf.h (TEXT_SECTION): Undefine.
1428         * config/mips/elf64.h (TEXT_SECION): Undefine.
1429         * config/mips/openbsd.h (TEXT_SECION): Undefine.
1430         * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
1431         (override_options): Disable small-data optimizations unless using
1432         gas or explicit relocations.
1433         (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
1434         iris6_asm_named_section, iris6_asm_file_start): Remove code for
1435         handling TARGET_FILE_SWITCHING.
1436         (copy_file_data): Move into TARGET_IRIX6 block.
1438 2003-06-08  Richard Henderson  <rth@redhat.com>
1440         * expr.h (EXPAND_MEMORY): New.
1441         * expr.c (expand_expr): Check it.
1442         * stmt.c (expand_asm_operands): Provide it when the constraint
1443         requires a memory.  Warn for memory input constraints without
1444         a memory operand.
1446 2003-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1448         * varasm.c: Don't include c-tree.h.
1450 2003-06-08  Andreas Jaeger  <aj@suse.de>
1452         * predict.h: Convert to ISO C90 prototypes.
1453         * predict.c: Likewise.
1454         * tree-dump.h: Likewise.
1455         * tree-dump.c: Likewise.
1456         * diagnostic.h: Likewise.
1457         * diagnostic.c: Likewise.
1458         * combine.c: Likewise.
1460         * rtl.h: Convert prototypes of combine.c to ISO C90.
1462 Sun Jun  8 21:27:41 CEST 2003  Jan Hubicka  <jh@suse.cz>
1464         * cfglayout.c (insn_scope): New static function
1465         (block_locators_*, line_locators*, file_locators*): New static varrays.
1466         (scope_to_insns_initialize): Use them.
1467         (insn_line, insn_file): New functions.
1468         (scope_to_insns_finalize): Use insn_scope.
1469         (prologue_locator, epilogue_locator): New global variables.
1470         * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
1471         make_call_insn_raw, emit_copy_of_insn_after): Use locators.
1472         (emit_insn_after_scope, emit_insn_before_scope
1473         emit_jump_insn_after_scope, emit_jump_insn_before_scope
1474         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
1475         (emit_insn_after_setloc, emit_insn_before_setloc
1476         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
1477         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
1478         use locators.
1479         * final.c (notice_source_line): Use locators.
1480         (final_start_function): Set initial source file and line.
1481         (final_scan_insn): Use locators.
1482         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1483         noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
1484         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
1485         noce_process_if_block, find_cond_trap): Likewise.
1486         * integrate.c (copy_insn_list): Likewise.
1487         * jump.c (duplicate_loop_exit_test): LIkewise.
1488         * print-rtl.c (print_rtx): Print locators.
1489         * recog.c (peephole2_optimize): Likewise.
1490         * rtl.h (INSN_SCOPE): Remove.
1491         (emit_insn_after_scope, emit_insn_before_scope
1492         emit_jump_insn_after_scope, emit_jump_insn_before_scope
1493         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
1494         (emit_insn_after_setloc, emit_insn_before_setloc
1495         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
1496         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
1497         (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
1498         * unroll.c (copy_loop_body): Use locators.
1499         * function.c (set_insn_locators): New function.
1500         (thread_prologue_and_epilogue_insns): Set the locators accordingly.
1502 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
1504         * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
1505         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
1506         _fixsfdi _fixunssfdi.
1507         (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
1508         popcounthi2.
1509         (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
1510         * config/h8300/clzhi2.c: New.
1511         * config/h8300/ctzhi2.c: Likewise.
1512         * config/h8300/parityhi2.c: Likewise.
1513         * config/h8300/popcounthi2.c: Likewise.
1515 Sun Jun  8 15:52:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
1517         * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
1518         * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
1520         * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
1521         (dump_bb): New based on old dump_bb in cfgrtl.c
1522         (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
1523         * cfghooks.h (cfgh_verify_flow_info): Return status.
1524         * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
1525         * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
1526         (dump_bb): Remove generic parts.
1527         (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
1528         (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
1530 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
1532         * Makefile.in: Rename options.c and options.h to c-options.c and
1533         c-options.h.
1534         (OBJS): Remove options.o.
1535         * c-opts.c: Don'tInclude c-options.h instead of options.h.
1536         * opts.c: Don't include options.h.
1537         (find_opt): Can't use enum opt_code or N_OPTS.
1538         * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
1539         * opts.sh: ... here.
1541 2003-06-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1542             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1544         PR pch/9830
1545         * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
1546         if HAVE_MINCORE is defined.
1547         (MAP_FAILED): Define if not defined.
1548         (gt_pch_save): Test against MAP_FAILED.
1549         (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
1550         the mapping address to the preferred base after checking it
1551         is possible to do so. Test against MAP_FAILED.
1552         * configure.in: Test for the presence of mincore in libc.
1553         * config.in: Regenerate.
1554         * configure: Regenerate.
1556 2003-06-07  Richard Henderson  <rth@redhat.com>
1558         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
1559         conditional compilation guard.
1561 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
1563         * optabs.c (expand_abs): Set result_unsignedp to 1 if
1564         flag_trav is zero.
1566 2003-06-07  Richard Henderson  <rth@redhat.com>
1568         * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
1570 2003-06-07  Richard Henderson  <rth@redhat.com>
1572         * basic-block.h (EDGE_SIBCALL): New.
1573         (EDGE_ALL_FLAGS): Update.
1574         * cfg.c (dump_edge_info): Add sibcall name.
1575         * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
1576         * cfgrtl.c (purge_dead_edges): Handle sibcalls.
1578 2003-06-07  Andreas Jaeger  <aj@suse.de>
1580         * mklibgcc.in (lib2funcs): Remove _exit.
1581         * libgcc2.c: Remove L_exit.
1582         * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
1584         * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
1586         * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
1588         * ggc.h: Convert to ISO C90 prototypes.
1589         * ggc-none.c: Likewise.
1590         * ggc-common.c: Likewise.
1591         * ggc-page.c: Likewise.
1592         * ggc-simple.c: Likewise.
1594         * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
1596         * system.h: Poison INIT_SECTION_PREAMBLE.
1598 2003-06-07  Zack Weinberg  <zack@codesourcery.com>
1600         * config.gcc (with_cpu handling): Translate sparc64 in
1601         $machine to --with-cpu=v9.
1602         * config/alpha/alpha.c
1603         (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
1604         (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
1606         * target.h: New hook asm_out.file_end.
1607         * target.h: Update to match.  New hook macro TARGET_ASM_FILE_END.
1608         * toplev.c (compile_file): Use targetm.asm_out.file_end.
1609         * system.h: Poison ASM_FILE_END.
1610         * varasm.c (file_end_indicate_exec_stack): New.
1611         * output.h: Prototype it.
1612         * doc/tm.texi: Document TARGET_ASM_FILE_END and
1613         file_end_indicate_exec_stack.  Delete references to attasm.h.
1615         * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
1616         (ASM_FILE_END): Delete; move code...
1617         * config/darwin.c (darwin_file_end): Here; new function.
1618         * config/darwin-protos.h: Prototype it.
1619         * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
1620         rename unicosmk_file_end.
1621         * config/arm/aof.h (ASM_FILE_END): Delete; move code...
1622         * config/arm/arm.c (aof_file_end): ... here; new static function.
1623         Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
1624         Make aof_dump_imports and aof_dump_pic_table static.
1625         * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
1626         Set TARGET_ASM_FILE_END to avr_file_end.
1627         * config/c4x/c4x.c (c4x_file_end): Make static.  Take no arguments.
1628         Set TARGET_ASM_FILE_END to c4x_file_end.
1629         * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
1630         make static. Take no arguments.  Set TARGET_ASM_FILE_END to
1631         h8300_file_end.
1632         * config/i370/i370.h (ASM_FILE_END): Delete; move code...
1633         * config/i370/i370.c (i370_file_end): ... here; new static function.
1634         Set TARGET_ASM_FILE_END to i370_file_end.
1635          * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
1636          Take no arguments.  Call file_end_indicate_exec_stack if
1637          NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
1638         * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
1639         Define NEED_INDICATE_EXEC_STACK to 0.
1640         * config/i386/linux.h, config/i386/linux64.h: Redefine
1641         NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
1642         * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
1643         i386_pe_file_end.  Take no arguments.  Use ix86_file_end.
1644         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
1645         ia64_hpux_file_end, make static.  Take no arguments.
1646         * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
1647         commands_in_prologues, commands_in_epilogues): Delete.
1648         (function_epilogue): Update to match.
1649         * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
1650         make static.  Take no arguments.
1651         (iris6_asm_file_end): Rename iris6_file_end, make static, use
1652         mips_file_end, take no arguments.
1653         Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
1654         appropriate.
1655         * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
1656         make static, take no arguments. Set TARGET_ASM_FILE_END to
1657         mmix_file_end.
1658         * config/pa/pa.c (output_deferred_plabels): Make static, take
1659         no arguments.  Set TARGET_ASM_FILE_END to output_deferred_plabels.
1660         * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
1661         (ASM_FILE_END): Delete; move code...
1662         * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
1663         new static function.
1665         * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
1666         * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
1667         Don't set ASM_FILE_END.
1668         * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
1669         * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
1670         * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
1671         file_end_indicate_exec_stack; don't set ASM_FILE_END.
1672         * config/alpha/unicosmk.h, config/i386/cygming.h
1673         * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
1674         * config/arm/arm-protos.h, config/alpha/alpha-protos.h
1675         * config/avr/avr-protos.h, config/c4x/c4x-protos.h
1676         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
1677         * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
1678         * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
1680 Sat Jun  7 18:32:13 CEST 2003  Jan Hubicka  <jh@suse.cz>
1682         * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
1683         specified.
1685 Sat Jun  7 15:20:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
1687         * Makefile.in (stageprofile_build): Kill redundant target.
1688         * i386.c (mdep_reorg): Don't pad jumps for Athlon.
1690 2003-06-07  Andreas Jaeger  <aj@suse.de>
1692         * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
1694         * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
1695         * config/dsp16xx/dsp16xx.h: Likewise.
1696         * config/i386/i386.h: Likewise.
1697         * config/ip2k/ip2k.h: Likewise.
1699 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
1701         * Makefile.in (OJBS, c-opts.o): Update.
1702         (c-options.c, c-options.h): Rename options.h and options.c.
1703         (options.h): Rename options_.h.
1704         (opts.o): New.
1705         * c-common.h (c_common_handle_option): Replace c_common_decode_option.
1706         (c_common_init_options): Update prototype.
1707         * c-lang.c (c_init_options): Update prototype.
1708         (LANG_HOOKS_HANDLE_OPTION): Override.
1709         (LANG_HOOKS_DECODE_OPTION): Drop.
1710         * c-opts.c: Include opts.h and options.h instead of c-options.h
1711         and c-options.c.
1712         (lang_flags): Move to file scope.
1713         (find_opt, c_common_decode_option): Remove.
1714         (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
1715         CL_REJECT_NEGATIVE): Move to opts.h.
1716         (missing_arg): Update prototype.
1717         (c_common_init_options): Update for new prototype.
1718         (c_common_handle_options): Filenames are passed as N_OPTS.
1719         * hooks.c (hook_int_void_0): New.
1720         * hooks.h (hook_int_void_0): New.
1721         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
1722         (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
1723         (LANG_HOOKS_INITIALIZER): Update.
1724         * langhooks.h (init_options): Update.
1725         (handle_option): New.
1726         * opts.c, opts.h: New files.
1727         * opts.sh: Update c file to include opts.h and options.h.
1728         * toplev.c: Include opts.h; change options.h to options_.h.
1729         (parse_options_and_default_flags): Get lang_mask, use
1730         handle_option for language-specific handling.
1731         * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
1732         (LANG_HOOKS_HANDLE_OPTION): Override.
1733         (objc_init_options): Update.
1735 2003-06-07  Magnus Kreth <magnus.kreth@gmx.de>
1736             Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
1738         PR other/7031
1739         * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
1740         gcov.
1742 2003-06-07  Kelley Cook  <kelleycook@wideopenwest.com>
1744         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
1745         section names.
1746         * configure: Regenerate.
1748 2003-06-07  Alan Modra  <amodra@bigpond.net.au>
1750         * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
1752 2003-06-06  James E Wilson  <wilson@tuliptree.org>
1754         PR inline-asm/10890
1755         * reload1.c (merge_assigned_reloads): Abort only if two reloads have
1756         different in fields.
1758 2003-06-06  Nathanael Nerode  <neroden@gcc.gnu.org>
1760         * configure.in: Make $(target_subdir) correspond with top level usage.
1761         * Makefile.in: Likewise.
1762         * configure: Regenerate.
1764 2003-06-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1766         * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
1767         ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
1768         unsigned HOST_WIDE_INT.
1769         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
1770         Likewise.
1771         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
1772         Likewise.
1774 2003-06-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1776         * doc/install.texi (Prerequisites): New section documenting
1777         tools and packages necessary prior to building and/or
1778         modifying GCC.
1779         * doc/install.texi2html: Also generate prerequisites.html.
1781 2003-06-06  Richard Earnshaw  <rearnsha@arm.com>
1783         PR target/11052
1784         * ifcvt.c (noce_process_if_block): Fail if the destination has
1785         side-effects.
1787 2003-06-06  Jason Merrill  <jason@redhat.com>
1789         * stmt.c (resolve_asm_operand_names): Rename from
1790         resolve_operand_names.  No longer static.  Avoid needless copying.
1791         Don't build array of constraints.
1792         (expand_asm_operands): Build it here.
1793         * tree.h: Declare resolve_asm_operand_names.
1795         * stmt.c (expand_decl): Put artificial vars into registers even
1796         when not optimizing, and don't mark the regs as user vars.
1798 2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
1800         * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
1801         of the generated register.
1803 2003-06-06  Daniel Jacobowitz  <drow@mvista.com>
1805         * config.gcc: Add a missing sparc64 case.
1807 2003-06-06  Jakub Jelinek  <jakub@redhat.com>
1809         * mklibgcc.in: Propagate .note.GNU-stack section if needed into
1810         the .hidden assembly stubs.
1812 2003-06-06  H.J. Lu <hongjiu.lu@intel.com>
1814         * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
1815         and x86_64-*-*.
1817         * config/i386/mmintrin.h: Update version and add alternate
1818         intrinsic names.
1819         * config/i386/xmmintrin.h: Likewise.
1821         * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
1822         intrinsics to ...
1823         * config/i386/emmintrin.h: Here. New file.
1825 2003-06-06  Roger Sayle  <roger@eyesopen.com>
1827         * fold-const.c (fold <ABS_EXPR>):  Re-fold the result of folding
1828         fabs(-x) into fabs(x).  Use tree_expr_nonnegative_p to determine
1829         when the ABS_EXPR (fabs or abs) is not required.
1830         (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
1831         always nonnegative from fold to here.  Additionally, cabs and fabs
1832         are always non-negative, and pow and atan are non-negative if
1833         their first argument is non-negative.
1835         * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
1836         Evaluate cabs of a constant at compile-time.  Convert cabs of a
1837         non-complex argument into fabs.  Convert cabs(z) into
1838         sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
1839         -funsafe-math-optimizations or -ffast-math.
1840         (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
1841         Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
1843 Thu Jun  5 20:51:09 CEST 2003  Jan Hubicka  <jh@suse.cz>
1845         * sourcebuild.texi (Front End Directory): Document new hooks.
1847 Fri Jun  6 11:02:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
1849         * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
1850         * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
1851         stack frames.
1852         (pro_epilogue_adjust_stack_rex64_2): New pattern
1854 Fri Jun  6 11:03:14 CEST 2003  Jan Hubicka  <jh@suse.cz>
1855                                Pop Sebastian
1856                                Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1858         * cfghooks.h, cfghooks.c: New files.
1859         * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
1860         (OBJS): Add cfghooks.o.
1861         (cfghooks.o): New rule.
1862         * basic-block.h (split_edge): Rename to rtl_split_edge.
1863         (verify_flow_info): Rename to rtl_verify_flow_info.
1864         (cfghooks.h): Included here.
1865         * cfgrtl.c (split_edge): Renamed rtl_split_edge.
1866         (verify_flow_info): Renamed rtl_verify_flow_info.
1867         * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
1869         * basic-block.h (split_block, split_edge, flow_delete_block,
1870         redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
1871         (flow_delete_block_noexpunge):  Return void.
1872         * cfg.c (verify_flow_info): New function.
1873         * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
1874         try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
1875         Use delete_block.
1876         * cfglayout.c (function_footer): Rename to...
1877         (cfg_layout_function_footer): ... this variable
1878         (unlink_insn_chain): Make global.
1879         (fixup_reorder_chain, record_effective_endpoints): Update.
1880         (cleanup_unconditional_jumps): Use delete_block.
1881         (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
1882         (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
1883         (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
1884         * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block):  Delete.
1885         (cfg_layout_function_footer): Declare.
1886         * cfgloopmanip (split_loop_bb): Do not update RBI.
1887         (remove_bbs): Use delete_block.
1888         (loop_reidrect_edge, loop_delete_branch_edge): Use
1889         redirect_edge_and_branch.
1890         (create_preheader): Use split_block and redirect_edge_and_branch_force.
1891         (split_edge_with): Likewise.
1892         * cfgrtl.c: Include cfglayout.h
1893         (split_edge): Rename to ...
1894         (rtl_split_edge) ... this one; make local.
1895         (redirect_edge_and_branch): Rename to ...
1896         (rtl_redirect_edge_and_branch) ... this one; make local.
1897         (redirect_edge_and_branch_force): Rename to ...
1898         (rtl_redirect_edge_and_branch_force) ... this one; make local.
1899         (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
1900         (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
1901         cfglayout.c; update to directly call RTL counterparts.
1902         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
1903         * ifcvt.c (find_cond_trap): Use delete_block.
1904         (find_if_case_1): Use delete_block.
1905         (find_if_case_2): Use delete_block.
1906         * rtl.h (unlink_insn_chain): Declare.
1907         * toplev.c (rtl_reigster_cfg_hooks): New.
1909 2003-06-05  Richard Henderson  <rth@redhat.com>
1911         * recog.c (peephole2_optimize): Revert last change.
1913 2003-06-05  Richard Henderson  <rth@redhat.com>
1915         * recog.c (peephole2_optimize): Don't split block unless
1916         can_throw_internal.
1918 2003-06-06  Kazu Hirata  <kazu@cs.umass.edu>
1920         * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
1921         * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
1923 2003-06-05  Kelley Cook  <kelleycook@wideopenwest.com>
1925         PR optimization/4490
1926         * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
1927         * doc/invoke.texi (m96bit-long-double, m128bit-long-double):  Reword
1928         documentation to accurately reflect what these options do.
1930 2003-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
1932         * config/sh/linux.h (STARTFILE_SPEC): Handle -pie.  Simplify.
1933         (ENDFILE_SPEC): Redefine to handle -pie.
1935 2003-06-05  Phil Edwards <phil@jaj.com>
1937         * Makefile.in (qmtest-g++): Use target_alias, not target.
1939 2003-06-05  Per Bothner  <pbothner@apple.com>
1941         * toplev.c (push_srcloc):  Simplify behavior to save current location
1942         and set current location to parameters.
1943         (pop_srcloc):  Simplify semantics.
1944         (lang_dependent_init):  Remove now-useless initial push_srcloc.
1946 2003-05-06  Richard Henderson  <rth@redhat.com>
1948         * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
1949         language-specific tree codes.
1951 2003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1953         PR middle-end/9986
1954         * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
1955         BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
1957 Thu Jun  5 18:32:46 CEST 2003  Jan Hubicka  <jh@suse.cz>
1959         * install.tex: Document profiledbootstrap.
1961         * configure.in:  Add support for lang.stageprofile and
1962         lang.stagefeedback
1963         * Makefile.in (clean, distclean): Kill new stages
1964         (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
1965         (STAGE2_FLAGS_TO_PASS): ... this one.
1966         (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
1967         (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
1968         (stageprofile_build, stageprofile_copy, stagefeedback_build,
1969         stagefeedback_copy): New.
1970         (restageprofile, restagefeedback, stageprofile-start,
1971         stageprofile, stagefeedback-start): Likewise.
1973 2003-06-05  David Miller  <davem@redhat.com>
1974             Richard Henderson  <rth@redhat.com>
1976         * optabs.c (HAVE_conditional_trap): Provide default.
1977         (gen_conditional_trap): Likewise.
1978         (init_optabs): Merge init_traps.
1979         (gen_cond_trap): Use prepare_operand.  Restructure and avoid ifdef.
1981 Thu Jun  5 14:59:44 CEST 2003  Jan Hubicka  <jh@suse.cz>
1983         * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
1984         is REG for nonzero_bits (REG) == 8.
1986 Thu Jun  5 13:23:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
1988         * i386.md (align): Fix warning; clarify what to do when no p2align
1989         is available.
1991 2003-06-05  Nick Clifton  <nickc@redhat.com>
1993         * config.gcc (m32r-elf): Revert previous delta.
1994         * config/m32r/t-m32r (crtinit.o): Fix rule to work with
1995         multilibs.  Remove m32rx specific version.
1996         (crtfini.o): Likewise.
1997         (EXTRA_MULTILIB_PARTS): Define.
1999 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
2001         * doc/md.texi (Machine Constraints): Correct the meaning of
2002         constraints related to floating-point registers on SPARC.
2004 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
2005             Paolo Bonzini  <bonzini@gnu.org>
2007         PR target/10663
2008         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
2009         assembler and linker output to /dev/null.
2010         Use a 'sed' construct instead of 'grep -A1'.
2011         * configure: Regenerate.
2013 2003-06-04  Richard Henderson  <rth@redhat.com>
2015         * config/i386/i386.c (struct ix86_address): Add seg.
2016         (no_seg_address_operand): New.
2017         (ix86_decompose_address): Restructure PLUS loop.  Accept one
2018         UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS.  Adjust ESP swap test
2019         to test for a regnum, not stack_pointer_rtx.
2020         (ix86_address_cost): Reduce cost if non-default segment.
2021         (legitimate_address_p): Remove UNSPEC_TP check.
2022         (get_thread_pointer): Add to_reg argument.  Don't represent
2023         the thread pointer as a memory load.
2024         (legitimize_tls_address): Split out of ...
2025         (legitimize_address): ... here.
2026         (print_operand_address): Handle parts.seg.
2027         (ix86_expand_move): Use legitimize_tls_address.
2028         (ix86_rtx_costs): Handle UNSPEC_TP.
2029         * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
2030         (TARGET_TLS_DIRECT_SEG_REFS): New.
2031         (TARGET_SWITCHES): Add tls-direct-seg-refs.
2032         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
2033         (PREDICATE_CODES): Add no_seg_address_operand.
2034         * config/i386/i386.md (lea_1): Use it.
2035         (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
2036         (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
2037         * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
2038         * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
2039         * doc/invoke.texi: Add -mtls-direct-seg-refs.
2041 2003-06-04  Mark Mitchell  <mark@codesourcery.com>
2043         * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
2044         (QMTEST_GPP_TESTS): Use "g++" by default.
2045         (stamp-qmtest): Tweak database creation.
2046         (QMTEST_DIR/context): Update context file format.
2047         (qmtest-g++): Tweak command-line.
2049 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2051         * Makefile.in (varasm.o): Don't set -Wno-error.
2052         * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
2054 2003-06-04  Zack Weinberg  <zack@codesourcery.com>
2056         PR bootstrap/3163
2057         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
2058         (gcc_AC_FUNC_MMAP_BLACKLIST): New.
2059         * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
2060         and AC_CHECK_FUNCS lists, respectively.  Use
2061         gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
2062         AC_FUNC_MMAP_FILE.
2063         * configure, config.in: Regenerate.
2065 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2067         * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
2068         * arm.c (arm_output_function_prologue): Fix format specifiers.
2069         * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
2070         * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
2071         HOST_WIDE_INT_PRINT_DEC.
2072         * vax.c (vax_output_function_prologue): Fix format specifiers.
2074 2003-06-04  Richard Henderson  <rth@redhat.com>
2076         * cse.c (find_best_addr): Consider binary operators even if second
2077         argument is not CONST_INT.
2079 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2081         * doc/invoke.texi (max-cse-path-length): Document.
2083 2003-06-04  Richard Henderson  <rth@redhat.com>
2085         * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
2087 2003-06-04  Andrew Pinski <pinskia@physics.uc.edu>
2089         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
2090         Remove semi-colon at the end of the expression.
2092 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2094         * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
2095         * i370.h (mvs_function_name_length): Likewise.
2096         * i960.h (CONSTANT_ALIGNMENT): Likewise.
2097         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2098         * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2099         * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2100         * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
2101         variable.
2103 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
2105         * config.gcc: Reorganize --with-cpu logic.  Set
2106         configure_default_options according to the default CPU, --with-cpu,
2107         --with-arch, --with-tune, --with-schedule, --with-abi, and
2108         --with-float.  Check for legal values of various options.
2109         * configure.in: Define configure_default_options in configargs.h.
2110         * configure: Regenerated.
2111         * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
2112         (TARGET_DEFAULT_FLOAT_P): New macros.
2113         * gcc.c (do_option_spec): New function.
2114         (struct default_spec, option_default_specs): New.
2115         (main): Call do_option_spec.
2116         * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
2117         config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
2118         config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
2120         * doc/install.texi: Update --with-cpu documentation.  Mention
2121         --with-arch, --with-schedule, --with-tune, --with-abi, and
2122         --with-float.
2123         * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
2125 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
2127         * config.gcc: Only process --with-cpu logic in the third pass.
2129 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
2131         * config.gcc: Reorganize --with-cpu section.  Remove an
2132         obsolete comment about the default CPU for x86-64.  Fix
2133         a typo for the ep9312.  Update the list of supported PowerPC
2134         CPUs.  Support a limited set of new --with-cpu options
2135         for i386.
2137 2003-06-04  Aldy Hernandez  <aldyh@redhat.com>
2139         * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
2140         complex numbers <= 32 bits into two registers.
2142 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2144         * alpha.c (print_operand_address): Fix format specifier warnings.
2145         * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2146         * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2147         * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2148         * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
2149         * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
2150         ASM_OUTPUT_SKIP): Likewise.
2151         * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2152         * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2153         * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
2154         Likewise.
2155         * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2156         * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
2157         * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
2158         * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2159         * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
2160         * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2161         * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2162         * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2163         * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2164         * svr3.h (ASM_OUTPUT_COMMON): Likewise.
2166 2003-06-04  J"orn Rennecke <joern.rennecke@superh.com>
2168         * c-decl.c (c_init_decl_processing): Clear input_file_name
2169         while building common nodes.
2170         * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
2171         Don't add working directory for strings like <built-in> .
2173 2003-06-04  David Edelsohn  <edelsohn@gnu.org>
2175         * doc/install.texi (*-ibm-aix*): Native as and ld required
2176         to bootstrap on AIX 5L.
2178 2003-06-04  Richard Henderson  <rth@redhat.com>
2180         * c-common.c (handle_cleanup_attribute): New.
2181         (c_common_attributes): Add it.
2182         * c-decl.c (finish_decl): Honor the cleanup attribute.
2183         * doc/extend.texi (Variable Attributes): Document it.
2185         * unwind-c.c: New file.
2186         * Makefile.in (LIB2ADDEH): Add it.
2187         * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
2188         config/ia64/t-ia64: Likewise.
2190 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
2192         * function.c (trampolines_created): New variable.
2193         (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
2194         * function.h (trampolines_created): Add.
2195         * config/s390/linux.h (ASM_FILE_END): Define.
2196         * config/alpha/linux-elf.h (ASM_FILE_END): Define.
2197         * config/m68k/linux.h (ASM_FILE_END): Define.
2198         * config/rs6000/linux.h (ASM_FILE_END): Define.
2199         * config/rs6000/linux64.h (ASM_FILE_END): Define.
2200         * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
2201         * config/sparc/linux.h (ASM_FILE_END): Define.
2202         * config/sparc/linux64.h (ASM_FILE_END): Define.
2203         * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
2204         * config/i386/linux.h (SUBTARGET_FILE_END): Define.
2205         * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
2207 Wed Jun  4 18:39:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
2209         * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
2210         (ix86_reorg): Use it.
2211         * i386.md (align): New insn pattern.
2213 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2215         * toplev.c (rest_of_type_compilation): Fix typo.
2217 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
2218             Alan Modra  <amodra@bigpond.net.au>
2220         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
2221         * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
2222         * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
2223         * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
2224         * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
2225         * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
2226         (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
2227         * config/rs6000/rs6000.c (output_profile_hook): Likewise.
2229         * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
2230         Pass it to $gcc_cv_as.
2231         * configure: Rebuilt.
2233         * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
2234         (print_operand): Allow TARGET_AIX to be non-constant.
2235         (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
2236         Define unconditionally.
2237         (rs6000_elf_declare_function_name): New function.
2238         * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
2239         non-constant.
2240         * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
2241         to 1.
2242         (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
2243         [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
2244         is defined.
2245         (TARGET_AIX): Define to 1 if TARGET_64BIT.
2246         (PROCESSOR_DEFAULT): Remove.
2247         (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
2248         INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
2249         [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
2250         (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
2251         -m32 and -m64.
2252         (MULTILIB_DEFAULTS): Define.
2253         (SUBSUBTARGET_EXTRA_SPECS): Define.
2254         (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
2255         (TARGET_TOC): Define only if !RS6000_BI_ARCH.
2256         (TARGET_NO_TOC): Remove.
2257         [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
2258         TARGET_PROTOTYPE): Define to 0.
2259         (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
2260         (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
2261         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
2262         if !TARGET_64BIT.
2263         (USER_LABEL_PREFIX): Remove.
2264         (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
2265         (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
2266         if TARGET_64BIT.
2267         (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
2268         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
2269         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
2270         (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
2271         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
2272         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
2273         TARGET_64BIT.
2274         (RS6000_CALL_GLUE): Likewise.
2275         (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
2276         RESTORE_FP_SUFFIX): Likewise.
2277         (ASM_DECLARE_FUNCTION_NAME): Remove.
2278         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
2279         DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
2280         name if TARGET_64BIT.
2281         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
2282         !TARGET_64BIT.
2283         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
2284         (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
2285         (DRAFT_V4_STRUCT_RET): Define.
2286         (SIGNAL_FRAMESIZE): New enum value.
2287         (MD_FALLBACK_FRAME_STATE_FOR): Define.
2288         * config/rs6000/default64.h: New file.
2289         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
2290         options.
2291         (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
2292         to RS6000_ABI_NAME.  Only disallow mixing of -fPIC with -mcall-aixdesc
2293         if !TARGET_64BIT.
2294         [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
2295         (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
2296         function.
2297         (TARGET_OS_SYSV_CPP_BUILTINS): Define.
2298         (TARGET_OS_CPP_BUILTINS): Use it.
2299         (CPP_SYSV_SPEC): Remove.
2300         (CPP_SPEC): Remove cpp_sysv.
2301         (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
2302         Add SUBSUBTARGET_EXTRA_SPECS.
2303         (SUBSUBTARGET_EXTRA_SPECS): Define.
2304         * config/rs6000/biarch64.h: New file.
2305         * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
2306         New prototype.
2307         * config/rs6000/x-linux64: New file.
2308         * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
2309         multilibs.
2310         * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
2311         * config/rs6000/eabi-cn.asm: Likewise.
2312         * config/rs6000/tramp.asm: Likewise.
2313         * config/rs6000/sol-ci.asm: Likewise.
2314         * config/rs6000/sol-cn.asm: Likewise.
2315         * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
2316         (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
2317         * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
2318         _CALL_AIXDESC section.
2319         * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
2320         defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
2321         or default32.
2323 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
2325         * config.gcc: Revert accidentally committed ARM changes.
2327 2003-06-04  Roger Sayle  <roger@eyesopen.com>
2329         * builtins.c (dconstpi, dconste): New mathematical constants.
2330         (init_builtin_dconsts): New function to initialize dconstpi
2331         and dconste.
2332         (fold_builtin): Optimize exp(1.0) = e.  Evaluate exp(x) at
2333         compile time with -ffast-math when x is an integer constant.
2334         Optimize tan(0.0) = 0.0.  Optimize atan(0.0) = 0.0,
2335         atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
2337 2003-06-04  Roger Sayle  <roger@eyesopen.com>
2339         * calls.c (expand_call): Avoid calling pure or const functions
2340         when the result is ignored (or void) and none of the arguments
2341         are volatile.  Move warning diagnostic earlier in function.
2343 2003-06-04  Andreas Jaeger  <aj@suse.de>
2345         * system.h: Do not poison TDESC_SECTION_ASM_OP,
2346         RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
2348 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2350         * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
2351         optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
2352         handle %ll, optimize regular character case.
2354 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2356         * Makefile.in (cse.o): Add params.h dependency.
2357         * cse.c: Include params.h.
2358         (PATHLENGTH): Removed.
2359         (struct cse_basic_block_data): Make path array dynamic.
2360         (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
2361         of PATHLENGTH.
2362         (cse_main, cse_basic_block): Allocate path array.
2363         * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
2365 Wed Jun  4 09:49:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
2367         * i386.c (ix86_reorg): Replace the jump instead of adding nop.
2368         * i386.md (UNSPEC_REP): New constant.
2369         (return_internal_long): New pattern.
2371 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2373         PR optimization/11018
2374         * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
2375         consistently to decide whether the scratch register is really
2376         required.
2378 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2380         PR optimization/10876
2381         * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
2382         new 'O' constraint for constant 4096.
2383         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
2384         * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
2385         Do not transform into MINUS insn for constant 4096.
2386         (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
2387         for constant 4096 as third operand.
2388         (addsi3 expander): Remove.
2389         (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
2390         new alternative for constant 4096 as third operand.
2391         (subdi3 expander): Do not transform into PLUS insn for constant 4096.
2392         (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
2393         operand.
2394         (subsi3 expander): Remove.
2395         (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
2396         constant 4096 as third operand.
2397         * doc/md.texi (Machine Constraints): Document new 'O' constraint for
2398         the SPARC port.
2400 2003-06-03  Chris Demetriou  <cgd@broadcom.com>
2402         * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
2404 2003-06-04  Andreas Jaeger  <aj@suse.de>
2406         * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
2408         * config/i386/i386.c (ix86_expand_prologue): Do not use
2409         SUBTARGET_PROLOGUE.
2411         * system.h: Poision SUBTARGET_PROLOGUE.
2413         * config/arm/arm-protos.h: Remove unused rdate_section prototype.
2415         * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
2416         dependend code.
2418         * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
2420         * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
2421         INSN_CACHE_LINE_WIDTH.
2423         * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
2424         (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
2425         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
2427         * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
2428         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
2430         * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
2431         (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
2432         (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
2433         (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
2434         (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
2435         (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
2437         * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
2438         DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
2439         DBX_WORKING_DIRECTORY.
2441         * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
2442         DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
2444         * config/frv/frv-protos.h: Remove unused const_section
2445         declaration.
2446         * config/vax/vax-protos.h: Likewise.
2448         * output.h: Remove CONST_SECTION_ASM_OP usage.
2450         * system.h: Poison CONST_SECTION_ASM_OP.
2452         * crtstuff.c (__do_global_dtors_aux): Remove usage of
2453         CRT_GET_RFIB_TEXT.
2454         (frame_dummy): Likewise.
2455         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
2456         * system.h: Poison CRT_GET_RFIB_TEXT.
2458         * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
2460         * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
2461         (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
2462         (recognized_function): Likewise.
2463         (read_scan_file): Likewise.
2465 2003-06-03  Roger Sayle  <roger@eyesopen.com>
2467         * optabs.c (expand_binop): Optimize complex multiplication for
2468         the case of squaring a complex argument.
2470 2003-06-03  Roger Sayle  <roger@eyesopen.com>
2472         * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
2473         non-volatile operands of binary operations.
2474         (prepare_cmp_insn): Likewise.
2476 2003-06-03  Roger Sayle  <roger@eyesopen.com>
2478         * varasm.c (force_const_mem): Handle alignment of constants not
2479         representable as a type in the front-end language.
2481 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
2483         * flow.c (initialize_uninitialized_subregs): Use
2484         emit_move_insn instead of emitting a hardcoded move.
2486 2003-06-03  Richard Henderson  <rth@redhat.com>
2488         * optabs.c (expand_abs_nojump): Split out from ...
2489         (expand_abs): ... here.
2490         * optabs.h (expand_abs_nojump): Declare.
2491         * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
2492         * Makefile.in (ifcvt.o): Depend on optabs.h.
2494 2003-06-03  Alan Modra  <amodra@bigpond.net.au>
2496         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
2498 2003-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
2500         * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
2501         (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
2502         to yes.
2503         * configure.in: Allow default_use_cxa_atexit to determine the
2504         value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
2505         disabled.
2506         * configure: Regenerate.
2508 2003-06-03  Douglas B Rupp  <rupp@gnat.com>
2510         * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
2511         * doc/gcc.texi: Remove vms.texi section.
2512         * doc/vms.texi: Remove obsolete file.
2514 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
2516         * configure.in (inhibit_libc): Don't define when configuring
2517         with --with-newlib --with-headers.
2518         * configure: Regenerate.
2520         * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
2522 2003-06-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2524         * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
2525         IRIX 6 without GNU ld.
2526         * configure: Regenerate.
2528 2003-06-03  Roger Sayle  <roger@eyesopen.com>
2530         * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
2531         of a complex number rather than invoke mov_optab directly.
2533 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
2535         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
2536         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
2538 2003-06-03  Nathanael Nerode  <neroden@gcc.gnu.org>
2540         * config/i386/x86-64.h: Remove two target-independent comments;
2541          replace "GNU CC" with "GCC".
2543 2003-06-03  Anthony Green  <green@redhat.com>
2545         * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
2547 2003-06-03  Roger Sayle  <roger@eyesopen.com>
2549         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
2550         New builtins representing ISO C99's cabs, cabsf and cabsl.
2551         * builtins.c (expand_builtin_fabs): New function.
2552         (expand_builtin_cabs): New function.
2553         (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
2554         using expand_builtin_fabs and expand_builtin_cabs respectively.
2556         * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
2558 2003-06-03  Aldy Hernandez  <aldyh@redhat.com>
2560         * function.c (assign_parms): Split complex arguments.
2562         * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
2564         * expr.h (SPLIT_COMPLEX_ARGS): Define.
2565         (split_complex_types): Protoize.
2566         (split_complex_values): Protoize.
2568         * calls.c (expand_call): Split complex arguments on architectures
2569         that require it.
2570         (split_complex_values): New.
2571         (split_complex_types): New.
2573         * config/rs6000/rs6000.c (rs6000_libcall_value): New.
2574         (rs6000_function_value): Handle complex values on AIX.
2575         (rs6000_complex_function_value): New.
2577         * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
2579         * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
2580         (SPLIT_COMPLEX_ARGS): New.
2582 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
2584         * configure.in (HAVE_LD_PIE): Check for ld -pie.
2585         * config.in: Rebuilt.
2586         * configure: Rebuilt.
2587         * toplev.c (flag_pie, flag_shlib): New variables.
2588         (f_options): Add -fpie and -fPIE.
2589         (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
2590         Set flag_shlib if flag_pic and not -fpie/-fPIE.
2591         * flags.h (flag_pic, flag_shlib): Add.
2592         * varasm.c (default_binds_local_p): Use flag_shlib instead of
2593         flag_pic.
2594         * gcc.c (LINK_PIE_SPEC): Define.
2595         (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
2596         (option_map): Add --pie -> -pie mapping.
2597         * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
2598         and -fPIE the same way as -fPIC.
2599         * config/openbsd.h (ASM_SPEC): Likewise.
2600         * config/frv/frv.h (ASM_SPEC): Likewise.
2601         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
2602         * config/arm/semi.h (ASM_SPEC): Likewise.
2603         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
2604         * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
2605         * config/i386/beos-elf.h (CC1_SPEC): Likewise.
2606         * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
2607         * config/m68k/linux.h (CPP_SPEC): Likewise.
2608         * config/m68k/netbsd.h (ASM_SPEC): Likewise.
2609         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
2610         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
2611         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
2612         * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
2613         * config/pa/pa-linux.h (CPP_SPEC): Likewise.
2614         * config/netbsd-aout.h (ASM_SPEC): Likewise.
2615         * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
2616         * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
2617         * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
2618         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
2619         * config/sparc/sparc.h (ASM_SPEC): Likewise.
2620         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
2621         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
2622         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
2623         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
2624         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
2625         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
2626         Simplify.
2627         * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2628         * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2629         * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2630         * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2631         * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2632         * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2633         * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2634         * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
2636 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
2638         * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
2639         != 0 handling.  Pass 0 to store_by_pieces.
2640         (expand_builtin_mempcpy): Add endp argument.  Don't call
2641         expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
2642         directly.  If ignoring result, only do expand_call.
2643         (expand_builtin_stpcpy): Likewise.  Call expand_builtin_mempcpy
2644         otherwise.
2645         (expand_builtin_strncpy, expand_builtin_memset): Adjust
2646         store_by_pices callers.
2647         (expand_builtin): Adjust expand_builtin_memcpy and
2648         expand_builtin_mempcpy callers.
2649         * expr.c (can_move_by_pieces): New function.
2650         (move_by_pieces): Add endp argument, return to resp. memory at end
2651         or one byte earlier depending on endp.
2652         (store_by_pieces): Likewise.
2653         (emit_block_move): Adjust call to move_by_pieces.
2654         (emit_push_insn): Adjust move_by_pieces caller.
2655         * expr.h (can_move_by_pieces): New prototype.
2656         (store_by_pieces): Adjust prototypes.
2657         * rtl.h (move_by_pieces): Adjust prototype.
2658         * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
2659         caller.
2661 2003-06-03  Ben Elliston  <bje@wasabisystems.com>
2663         * doc/md.texi (Processor pipeline description): Improve wording.
2665 2003-06-03  Neil Booth  <neil@daikokuya.co.uk>
2667         * c-opts.c (c_common_handle_option): New, pulled out of
2668         c_common_decode_option.  Substitute uses of argv.
2669         (c_common_decode_option): Broken into two.
2671 2003-06-02  Roger Sayle  <roger@eyesopen.com>
2672             Zack Weinberg  <zack@codesourcery.com>
2674         * emit-rtl.c (gen_complex_constant_part):  Remove unnecessary
2675         test of TREE_CONSTANT_POOL_ADDRESS_P.
2677 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2679         * mips.c: Don't include output.h twice.
2680         * stormy16.c: Likewise.
2681         * xtensa.c: Likewise.
2682         * output.h: Protect against multiple inclusion.
2684 2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
2686         * sh.h (OLD_ARG_MODE): New macro.
2687         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
2688         (FUNCTION_ARG_1): Break out of:
2689         (FUNCTION_ARG).  Use OLD_ARG_MODE.
2691 2003-06-02  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2693         * gcc/config.gcc Add support multilib parts for m32rx processor.
2695 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2697         * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
2698         (mostlyclean): Delete c-options.c and c-options.h.
2700 2003-06-02  Neil Booth  <neil@daikokuya.co.uk>
2702         * c-opts.c (CL_REJECT_NEGATIVE): New.
2703         (c_common_decode_option): Update to use it.
2704         * c.opt: Update documentation; use RejectNegative.
2705         * opts.sh: Handle RejectNegative.
2707 2003-06-01  Zack Weinberg  <zack@codesourcery.com>
2709         * ggc-page.c (init_ggc): Give better diagnostics on failure to
2710         open /dev/zero.
2711         * toplev.c (crash_signal): Reset handling for received signal
2712         to SIG_DFL.
2714 2003-06-02  Ben Elliston  <bje@wasabisystems.com>
2716         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
2717         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
2718         (arm_use_dfa_pipeline_interface): Implement.
2719         * config/arm/arm.md (arm): New automaton.
2720         (write_buf): Remove function units; new cpu unit.
2721         (write_blockage): Remove function units; new cpu unit.
2722         (core): Remove function units; new cpu unit.
2723         (r_mem_f_wbuf): New instruction reservation.
2724         (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
2725         (store1_ldsched, store2, store3, store4): Likewise.
2726         (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
2727         (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
2728         (multi_cycle, single_cycle): Likewise.
2729         * config/arm/fpa.md (armfp): New automaton.
2730         (fpa): Remove function units; new cpu unit.
2731         (fpa_mem): Remove function unit; new cpu unit.
2732         (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
2733         (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
2735 2003-06-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2737         * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
2738         * c-format.c (enum format_type): Add asm_fprintf_format_type.
2739         (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
2740         asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
2741         (format_types_orig): Renamed from format_types.  Add new data.
2742         (format_types): Declare as pointer.
2743         (handle_format_attribute): Move later in file so we have all
2744         necessary declarations.  Add section to capture HOST_WIDE_INT.
2745         * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
2746         (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
2748 2003-06-01  Andreas Jaeger  <aj@suse.de>
2750         * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
2751         ROUND_TYPE_SIZE_UNIT.
2753         * stor-layout.c (finalize_record_size): Remove usages of
2754         ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
2755         (finalize_type_size): Likewise.
2756         (layout_type): Likewise.
2758         * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
2760         * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
2762         * config/d30v/d30v.h: Remove text copied from the manual.
2764 2003-06-01  Roger Sayle  <roger@eyesopen.com>
2765             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2766             Geoffrey Keating  <geoffk@apple.com>
2768         * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
2769         constants as condition code values.
2771 2003-06-01  DJ Delorie  <dj@redhat.com>
2773         * cppmacro.c (warn_of_redefinition): Handle cases where the two
2774         definitions have different numbers of tokens.
2776 2003-06-01  Andreas Jaeger  <aj@suse.de>
2778         * gen-protos.c (main): Readd unused attribute for argc.
2780 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
2782         * Makefile.in (c-options.c, c-options.h): Parallel make safe.
2783         * c.opt: End in blank line.
2784         * opts.sh: Take AWK from environment if available; use C locale.
2786 2003-06-01  Andreas Schwab  <schwab@suse.de>
2788         * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
2790 2003-06-01  Andreas Jaeger  <aj@suse.de>
2792         * gen-protos.c (main): Revert patch to check for argument.
2794 2003-06-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
2796         PR target/11044
2797         * config/i386/i386.md (length attribute): Set length to 4
2798         for instructions of type "fcmp".
2800 2003-06-01  Andreas Jaeger  <aj@suse.de>
2802         * toplev.c: Use ISO C90 prototypes.
2804         * toplev.h: Use ISO C90 prototypes.
2806         * genrecog.c: Use ISO C90 prototypes.
2807         (nodes_identical): Correct declaration to match prototype.
2808         (maybe_both_true): Likewise.
2809         (merge_trees): Likewise.
2811         * genpeep.c (gen_peephole): Remove #if 0 code.
2812         Use ISO C90 prototypes.
2814         * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
2815         Remove #if 0'ed function simplify_by_alternatives.
2816         (optimize_attrs): Remove #if 0'ed code.
2817         Remove ^L.
2818         Use ISO C90 prototypes.
2819         (make_canonical): Remove #if 0'ed code.
2820         (convert_const_symbol_ref): Remove #if 0'ed function.
2822         * gen-protos.c (main): Check for argument.
2824         * rtl.h: Use ISO C90 prototypes for functions from lists.c.
2826         * params.h: Use ISO C90 prototypes.
2827         * params.c: Likewise.
2828         * intl.c: Likewise.
2829         * intl.h: Likewise.
2830         * lists.c: Likewise.
2831         * errors.c: Likewise.
2832         * errors.h: Likewise.
2833         * gencodes.c: Likewise.
2834         * genpreds.c: Likewise.
2835         * genattr.c: Likewise.
2836         * gen-protos.c: Likewise.
2837         * genflags.c: Likewise
2838         * genconditions.c: Likewise.
2839         * genautomata.c: Likewise.
2840         * gencheck.c: Likewise.
2841         * genconfig.c: Likewise.
2842         * genconstants.c: Likewise.
2843         * genemit.c: Likewise.
2844         * genextract.c: Likewise.
2845         * gengenrtl.c: Likewise.
2846         * gengtype.c: Likewise.
2847         * gengtype.h: Likewise.
2848         * genopinit.c: Likewise.
2849         * genoutput.c: Likewise.
2850         * gensupport.c: Likewise.
2851         * gensupport.h: Likewise.
2853         * sdbout.h: Use ISO C90 prototypes.
2855         * sdbout.c (CONTIN): Removed empty macro.
2856         (sdbout_one_type): Remove CONTIN usages.
2857         Remove ^Ls.
2858         (tag_of_ru_type): Remove #if 0'ed function.
2859         (sdbout_symbol): Remove #if 0'ed code.
2860         (sdbout_one_type): Remove a #if 1.
2861         (sdbout_one_type): Remove #if 0'ed code.
2862         (sdbout_init): Remove RMS_QUICK_HACK_1 code.
2863         Remove PARAMS, use ISO C90 prototypes for all functions.
2865 2003-06-01  Josef Zlomek  <zlomekj@suse.cz>
2867         * rtl.def (CONST_DOUBLE): Update comment.
2869 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
2871         * opts.sh: Remove path from sort.
2873 2003-06-01  Aldy Hernandez  <aldyh@redhat.com>
2875         PR/9680
2876         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
2877         TARGET_SPE for SPE_VECTOR_MODE.
2879 2003-05-31  Aldy Hernandez  <aldyh@redhat.com>
2881         * toplev.c (botch): Remove.
2882         (do_abort): Remove.
2883         (set_Wunused): Comment.
2884         (set_Wextra): Comment.
2885         Remove ^L's.
2886         (rest_of_compilation): Factor out common code into functions.
2887         (rest_of_handle_inlining): New.
2888         (rest_of_handle_ssa): New.
2889         (rest_of_handle_cse): New.
2890         (rest_of_handle_gcse): New.
2891         (rest_of_handle_loop_optimize): New.
2892         (rest_of_handle_jump_bypass): New.
2893         (rest_of_handle_sibling_calls): New.
2894         (rest_of_handle_null_pointer): New.
2895         (rest_of_handle_addresof): New.
2896         (rest_of_handle_flow): New.
2897         (rest_of_handle_branch_prob): New.
2898         (rest_of_handle_if_conversion): New.
2899         (rest_of_handle_tracer): New.
2900         (rest_of_handle_loop2): New.
2901         (rest_of_handle_cse2): New.
2902         (rest_of_handle_life): New.
2903         (rest_of_handle_combine): New.
2904         (rest_of_handle_if_after_combine): New.
2905         (rest_of_handle_regmove): New.
2906         (rest_of_handle_sched): New.
2907         (rest_of_handle_old_regalloc): New.
2908         (rest_of_handle_new_regalloc): New.
2909         (rest_of_handle_regrename): New.
2910         (rest_of_handle_reorder_blocks): New.
2911         (rest_of_handle_sched2): New.
2912         (rest_of_handle_new_regalloc): New.
2913         (rest_of_handle_old_regalloc): New.
2914         (rest_of_handle_regrename): New.
2915         (rest_of_handle_reorder_blocks): New.
2916         (rest_of_handle_stack_regs): New.
2917         (rest_of_handle_machine_reorg): New.
2918         (rest_of_handle_delay_slots): New.
2919         (rest_of_handle_final): New.
2921         * toplev.h (botch): Remove prototype.
2922         (do_abort): Same.
2924 2003-05-31  Neil Booth  <neil@daikokuya.co.uk>
2926         * Makefile.in (c-opts.o, c-options.h): Update dependencies.
2927         * c-opts.c: Include c-options.h and c-options.c.
2928         (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
2929         Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
2930         (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
2931         OPT, opt_comp): Remove.
2932         (missing_arg, c_common_init_options, c_common_decode_option,
2933         write_langs): Update for macro redefinitions and enumeration
2934         name changes.
2935         * c.opt, opts.sh: New files.
2936         * doc/passes.texi: Update.
2938 2003-05-31  Andreas Jaeger  <aj@suse.de>
2940         * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
2941         usage.
2943         * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
2945         * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
2947         * system.h: Poison ALLOCATE_TRAMPOLINE.
2949         * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
2950         * system.h: Poison HANDLE_PRAGMA.
2952 2003-05-31  Kazu Hirata  <kazu@cs.umass.edu>
2954         * doc/invoke.texi: Update dump file names.
2956 2003-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2958         * c-format.c (format_length_info, format_char_info,
2959         format_flag_spec, format_flag_pair, format_kind_info):
2960         De-const-ify structure members.
2962 2003-05-31  Roger Sayle  <roger@eyesopen.com>
2964         * flags.h (flag_wrapv): New flag controlling overflow semantics.
2965         * toplev.c (flag_wrapv): Declare the variable with default false.
2966         (lang_independent_options): New option "-fwrapv" to set the above.
2968         * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
2969         as x, when signed arithmetic overflow wraps around.
2970         (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
2971         * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
2972         overflow when flag_wrapv is true.
2974         * doc/invoke.texi: Document new -fwrapv command line option.
2975         * doc/c-tree.texi: Mention that the overflow semantics of
2976         NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
2977         upon both flag_wrapv and flag_trapv.
2979 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
2981         * doc/install.texi (mips-sgi-irix5): Add missing
2982         HTML <hr> marker.
2984 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
2986         * doc/md.texi (Machine Constraints): Document
2987         missing SPARC constraints.
2989 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
2991         * doc/md.texi (Automaton pipeline description): Use
2992         "type" instead of "cpu" as the attribute in the examples.
2994 2003-05-30  Stan Shebs  <shebs@apple.com>
2996         * system.h: Poison OBJC_PROLOGUE.
2998 2003-05-30  Roger Sayle  <roger@eyesopen.com>
3000         * emit-rtl.c (gen_complex_constant_part): New function for getting
3001         the constant real or imaginary part of a complex constant.
3002         (gen_realpart): Use it.
3003         (gen_imagpart): Likewise.
3005 2003-05-30  Kazu Hirata  <kazu@cs.umass.edu>
3007         * doc/invoke.texi: Fix typos.
3008         * doc/rtl.texi: Likewise.
3010 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
3012         * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
3013         mode.
3014         * config/h8300/crtn.asm: Likewise.
3015         * config/h8300/lib1funcs.asm: Likewise.
3016         * config/h8300/h8300.c (asm_file_start): Likewise.
3017         * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
3018         h8300snelf emulations for normal mode.
3019         * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
3020         emulations for normal mode.
3022 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
3024         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
3025         true if TARGET_NORMAL_MODE.
3027 2003-05-30  Roger Sayle  <roger@eyesopen.com>
3029         * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
3030         making a substitution.
3031         (dead_libcall_p): If directly replacing a libcall with a
3032         constant value produces an invalid instruction, also try forcing
3033         the constant into the constant pool.
3034         * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
3035         obvious that the source is a constant.
3036         (compress_float_constant): Use set_unique_reg_note to place
3037         REG_EQUAL notes on instructions.
3039 2003-05-30  Eric Christopher  <echristo@redhat.com>
3041         * config/mips/mips.c (extern_list): Add GTY marker.
3042         (extern_head): Separate out definition. Add marker.
3043         (mips_output_external): Use ggc_alloc for extern_list
3044         allocation.
3045         (mips_output_external_libcall): Ditto.
3047 2003-05-30  Florian Weimer  <fw@deneb.enyo.de>
3049         * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
3050         later.
3052 2003-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3054         * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
3055         warnings.
3056         (PRINT_OPERAND): Likewise.
3058 2003-05-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3060         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
3061         -mdebug/-no-mdebug switches ...
3062         (MDEBUG_ASM_SPEC): ... here.
3063         Use only with gas.
3064         (EXTRA_SPECS): Initialize mdebug_asm_spec.
3066 2003-05-29  Matt Kraai  <kraai@alumni.cmu.edu>
3068         * gthr-gnat.c: Remove #undef UNUSED.
3069         (__gnat_default_lock, __gnat_default_unlock): Prototype.
3070         (__gnat_task_lock, __gnat_task_unlock): Make declarations
3071         prototypes.
3072         (__gnat_install_locks): Convert declaration to ISO C90, make
3073         parameter declarations prototypes, and remove blank line.
3074         * gthr-gnat.h (__gnat_install_locks): Make parameter
3075         declarations prototypes.
3077 2003-05-29  Jason Merrill  <jason@redhat.com>
3079         * Makefile.in (unstrap): Remove stage_last after make unstage1.
3081 2003-05-29  Roger Sayle  <roger@eyesopen.com>
3083         * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
3085 2003-05-29  Roger Sayle  <roger@eyesopen.com>
3086             Kaveh Ghazi  <ghazi@caip.rutgers.edu>
3088         PR bootstrap/10169
3089         * mips-tfile.c (main): Use getopt_long instead of getopt.
3090         Add new command line option --version to display version.
3091         Treat --verbose like -v to report a single line version.
3092         (options): New global variable for getopt_long.
3093         * mips-tdump.c (main): Use getopt_long instead of getopt.
3094         New command line options -v, --version and -verbose to display
3095         the program version number (to match mips-tfile's behavior).
3096         (options): New global variable for getopt_long.
3098         * gcov.c (options): Zero-terminate getopt_long array.
3099         * gcov-dump.c (options): Likewise.
3101         * Makefile.in (mips-tdump.o): Add dependency on version.h.
3103 2003-05-29  Stan Shebs  <shebs@apple.com>
3105         Remove OBJC_PROLOGUE everywhere.
3106         * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
3107         * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
3108         * config/d30v/d30v.h: Similarly.
3109         * config/ip2k/ip2k.h: Similarly.
3110         * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
3112 2003-05-29  Roger Sayle  <roger@eyesopen.com>
3114         * c-semantics.c (genrtl_do_stmt_1): New function split out from...
3115         (gen_rtl_do_stmt): ... here.  Call genrtl_do_stmt_1.
3116         (expand_unreachable_stmt): Expand unreachable while statements
3117         using genrtl_do_stmt_1.
3119 2003-05-29  Richard Sandiford  <rsandifo@redhat.com>
3121         * config/mips/mips-protos.h (mips_output_load_label): Declare.
3122         * config/mips/mips.c (mips_output_load_label): New function.
3123         (mips_output_conditional_branch): Use it.
3124         * config/mips/mips.md (jump): And here.
3126 2003-05-28  Bob Wilson  <bob.wilson@acm.org>
3128         * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
3129         (xtensa_split_operand_pair): New proto.
3130         * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
3131         (smalloffset_double_mem_p): Delete.
3132         (gen_float_relational, printx, print_operand, xtensa_va_arg):
3133         Fix whitespace.
3134         (xtensa_split_operand_pair): New.
3135         (xtensa_dbx_register_number): Fix formatting.
3136         * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
3137         * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
3138         instead of splitting them into single-word moves.  Remove unnecessary
3139         checks for reload_in_progress and reload_completed.
3140         (movdi_internal, movdf_internal): Change to post-reload split patterns.
3141         Add constraints to allow constant operands.
3142         (movsf_internal): Allow CONST_INT operands.
3144 2003-05-27  Danny Smith   <dannysmith@users.sourceforge.net>
3146         * config.gcc (i[34567]86-*-mingw32*): Add host makefile
3147         fragment i386/x-mingw32.
3148         * config/i386/x-mingw32: New file. Make local_includedir
3149         relative to EXEC_PREFIX.
3151 2003-05-27  Aaron W. LaFramboise  <awlaframboise@aol.com>
3153         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
3154         (MD_STARTFILE_PREFIX): Define.
3156 2003-05-27  Denis Chertykov  <denisc@overta.ru>
3158         * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
3159         VOIDmode.
3160         * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
3161         call of cselib_invalidate_regno.
3163 2003-05-28  Daniel Jacobowitz  <drow@mvista.com>
3165         * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
3166         -lthread to -lpthread.
3168 2003-05-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
3169             Bruce Korb  <bkorb@gnu.org>
3170             Arno Klaassen  <arno@heho.snv.jussieu.fr>
3172         * fixinc/inclhack.def: Add missing declaration of getpagesize()
3173         to unistd.h on Solaris 2.5.1.
3174         Fix prototype of recv() and send() in sys/socket.h on
3175         Solaris 2.5.1 and 2.6.
3176         * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
3177         * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
3178         * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
3179         * fixinc/fixincl.x: Regenerate.
3181 2003-05-27  Jason Merrill  <jason@redhat.com>
3183         * tree.c (expr_first, expr_length): New fns.
3184         * tree.h: Declare them.
3186         * tree.c (iterative_hash_expr): Hash commutative expressions
3187         consistently.
3189 2003-05-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3191         * tree.h (contains_placeholder_p): Now returns bool.
3192         (CONTAINS_PLACEHOLDER_P): New macro.
3193         (type_contains_placeholder_p): New function.
3194         * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
3195         (contains_placeholder_p): Now returns bool.
3196         Rework to use CONTAINS_PLACEHOLDER_P macro.
3197         (type_contains_placeholder_p): New function.
3198         * fold-const.c (fold, case COMPONENT_REF): Don't fold if
3199         type_contains_placeholder_p.
3200         (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
3201         Use CONTAINS_PLACEHOLDER_P macro.
3202         * builtins.c (fold_builtin): Likewise.
3203         * calls.c (initialize_argument_information): Likewise.
3204         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3205         * explow.c (expr_size): Likewise.
3206         * expr.c (store_constructor, get_inner_reference): Likewise.
3207         * function.c (assign_parms): Likewise.
3208         * stor-layout.c (variable_size): Likewise.
3210 2003-05-25  Gabriel Dos Reis <gdr@integrable-solutions.net>
3212         * diagnostic.h (output_verbatim, verbatim):  Remove  printf
3213         attribute.
3215 2003-05-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3217         * doc/contrib.texi (Contributors): Update Kean Johnston.
3219 2003-05-24  David Edelsohn  <edelsohn@gnu.org>
3221         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
3223 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
3225         * config/rs6000/440.md, config/stormy16/stormy16protos.h,
3226         config/stormy16/stormy16.c, config/stormy16/stormy16.md:
3227         Replace "GNU CC" with "GCC".
3229 2003-05-24  Matt Kraai  <kraai@alumni.cmu.edu>
3231         * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
3232         intermediate computation.
3234 2003-05-23  Eric Christopher  <echristo@redhat.com>
3236         * config/mips/mips.md (clzsi, clzdi): New patterns.
3238 2003-05-23  Geoffrey Keating  <geoffk@apple.com>
3240         * gcc.c (default_compilers): Use -o to specify preprocessor's output
3241         file.  Make -no-integrated-cpp work when building PCH files.
3242         * objc/lang-specs.h: Likewise.
3244 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
3246         * fixinc/Makefile.in: Correct description.
3247         * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
3248         fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
3249         fixinc/genfixes: Replace "GNU CC" with "GCC".
3251 2003-05-23  Roger Sayle  <roger@eyesopen.com>
3253         * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
3254         builtin functions (and their __builtin_* variants).
3255         * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
3256         (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
3257         optimizing.
3259         * doc/extend.texi: Document new tan and atan builtins, and
3260         their float and long double variants.
3262 2003-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
3264         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
3265         __sparcv9 in the TARGET_ARCH64 case.
3267 Fri May 23 22:17:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
3269         * i386.c (ix86_reorg): Calls are also jumps.
3271 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
3273         * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
3274         note containing an EXPR_LIST, process all the arguments.
3276 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
3277                                Andreas Jaeger  <aj@suse.de>
3279         * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
3280         do not use assertion.
3282 2003-05-23  Mike Stump  <mrs@apple.com>
3284         * tlink.c (scan_linker_output): Add support for darwin linker, as it
3285         emits unresolved symbols one per line, consuming the entire line.
3287 2003-05-23  Larin Hennessy <larin@science.oregonstate.edu>
3288             Zack Weinberg <zack@codesourcery.com>
3290         * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
3291         * config/m68k/m68k.c (m68k_output_function_prologue):
3292         Remove code under #if NEED_PROBE.
3293         * config/m68k/m68k.h: Don't define NEED_PROBE.
3294         * config/m68k/m68k.md: Remove "probe" insn.
3295         * doc/md.texi: Remove documentation of "probe" pattern.
3297 2003-05-23  Dorit Naishlos  <gcchaifa@il.ibm.com>
3299         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
3301 2003-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
3303         * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
3304         Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
3306 2003-05-22  Roger Sayle  <roger@eyesopen.com>
3308         * real.c (real_maxval): New function to return the largest finite
3309         value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
3310         * real.h (real_maxval): Prototype here.
3311         * fold-const.c (fold_inf_compare): Transform comparisons against
3312         +-Infinity into comparisons against DBL_MAX (or equivalent).
3314 2003-05-22  Mike Stump  <mrs@apple.com>
3316         * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
3317         default.
3319 2003-05-22  DJ Delorie  <dj@redhat.com>
3321         * calls.c (expand_call): If the arg block is going to grow
3322         downward, we need argblock to point to the top of the block,
3323         not the bottom.
3325 2003-05-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3327         * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
3329         * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
3330         constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
3332 2003-05-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3334         * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
3335         * m68k.c: Likewise.
3336         * m68k.h: Likewise.
3338 2003-05-22  Zack Weinberg  <zack@codesourcery.com>
3340         PR other/2873
3341         * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
3342         expressions to prevent triggering on recent curses.h,
3343         linux/nls.h, or X11/Xlib.h.
3344         (stdio_va_list): Add _G_va_list to bypass pattern.
3345         (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
3346         * fixinc/fixincl.x: Regenerate.
3348 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
3350         * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
3351         switches when --target-help option is specified.
3353 2003-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
3355         PR bootstrap/10805
3356         * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
3357         failure with Sun assembler 5.0 Alpha 03/27/98.
3359 2003-05-21  Loren James Rittle  <ljrittle@acm.org>
3361         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
3362         to match system compiler convention.
3364 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
3366         * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
3367         value, not just if defined.
3368         Update copyright year.
3370 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3372         PR target/6428
3373         * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
3374         directories from LIB_SPEC to LINK_SPEC.  Emit warning if `-p' or `-pg'
3375         option is used without `-static'.
3376         * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
3377         * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
3379 2003-05-21  Bob Wilson  <bob.wilson@acm.org>
3381         * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
3382         TARGET_SERIALIZE_VOLATILE): Delete.
3383         (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
3384         (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
3385         (TARGET_SWITCHES): Remove "-mserialize-volatile" and
3386         "-mno-serialize-volatile".
3387         * config/xtensa/xtensa.c (print_operand): Remove checks of
3388         TARGET_SERIALIZE_VOLATILE.
3389         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
3390         * doc/invoke.texi (Option Summary, Xtensa Options): Remove
3391         "-mserialize-volatile" and "-mno-serialize-volatile" options.
3393 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
3395         * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
3396         (nested_function): Likewise.
3397         (notype_nested_function): Likewise.
3399 2003-05-21  Nick Clifton  <nickc@redhat.com>
3401         * config/stormy16/stormy-abi: Update overflow type for
3402         R_XSTORMY16_16 reloc.
3404 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
3406         * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
3407         * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
3408         (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
3409         * print-tree.c (print_node): Remove ambient-boundedness.
3410         * tree.h (tree_common): Remove bounded_flag.
3411         (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
3412         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
3413         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
3414         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
3415         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
3416         Remove.
3417         (TYPE_QUALS): Remove BOUNDED.
3418         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
3419         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
3420         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
3421         TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
3422         VA_LIST_POINTER_DEPTH): Remove.
3423         (struct tree_type): Remove pointer_depth.
3425 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3427         * c-pretty-print.c (pp_c_integer_literal): Use
3428         HOST_WIDE_INT_PRINT_DOUBLE_HEX.
3430 2003-05-20  Roger Sayle  <roger@eyesopen.com>
3431             Kazu Hirata  <kazu@cs.umass.edu>
3432             Joern Rennecke  <joern.rennecke@superh.com>
3434         * gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
3435         setcc and jump, if they exist.  If substituted instruction
3436         fails to validate, store current effort in a REG_EQUAL note.
3437         (cprop_insn): Don't attempt further substitutions if the
3438         current instruction has been deleted.
3439         (local_cprop_pass): Likewise.
3441         * jump.c (redirect_jump):  Also update REG_EQUAL note, if
3442         one is attached to the jump instruction.
3443         (invert_jump): Delete REG_EQUAL note on jump, if one exists.
3445 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
3447         PR c++/9738
3448         * config/i386/winnt.c (i386_pe_encode_section_info): Enable
3449         even if not first.
3451 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3453         * genautomata.c (output_description, output_automaton_units,
3454         output_state_arcs): Add missing specifiers.
3456 2003-05-20  Bob Wilson  <bob.wilson@acm.org>
3458         * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
3459         (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
3460         (__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
3461         (nsau): Rename to do_nsau.  Provide alternate version for use when
3462         the NSAU instruction is available.
3463         (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
3464         (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
3465         * config/xtensa/xtensa-config.h: Update comments to match binutils.
3466         (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
3467         * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
3468         (TARGET_ABS, TARGET_ADDX): Define.
3469         (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
3470         (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
3471         * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
3472         *subx8): Set predicate condition to TARGET_ADDX.
3473         (abssi2): Set predicate condition to TARGET_ABS.
3474         * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
3475         "-maddx", and "-mno-addx" options.
3476         (Xtensa Options): Likewise.  Also tag some opcode names with @code.
3478 2003-05-20  Kevin Ryde <user42@zip.com.au>
3479             Wolfgang Bangerth <bangerth@dealii.org>
3481         PR/10355
3482         * doc/extend.texi: Put a warning into the documentation
3483         of attribute regparm.
3485 2003-05-20  Jason Merrill  <jason@redhat.com>
3487         * tree.c (expr_last): New fn.
3488         * tree.h: Declare it.
3489         * objc/objc-act (expr_last): Rename to objc_expr_last.
3491 2003-05-20  J"orn Rennecke <joern.rennecke@superh.com>
3493         * sh.c (sh_register_move_cost): Add clase for moving between
3494         FP registers and MAC registers.
3496 2003-05-19  John David Anglin  <dave.anglin@nrc-gnrc.gc.ca>
3498         * pa/milli64.S ($$mulI): Fix typo.
3500 2003-05-19  Matt Kraai  <kraai@alumni.cmu.edu>
3502         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
3503         (nonlocal_set_p): Remove initial blank line.
3504         * dwarf2out.c (simple_type_size_in_bits): Likewise.
3505         * et-forest.c (et_forest_create): Likewise.
3506         * explow.c (stabilize): Likewise.
3507         * fix-header.c (write_lbrac): Likewise.
3508         * graph.c (start_fct, node_data): Likewise.
3509         * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
3510         * rtlanal.c (global_reg_mentioned_p): Likewise.
3511         * tree.c (bit_position): Likewise.
3513 2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
3515         * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
3516         -lthread to -lpthread.
3518 2003-05-19  Neil Booth  <neil@daikokuya.co.uk>
3520         * c-opts.c (c_common_decode_option): Don't accept dollars
3521         as identifier characters in assembly.
3522         * doc/cpp.texi: Document this.
3524 2003-05-19  Seth Arnold  <sarnold@wirex.com>
3525             Aldy Hernandez  <aldyh@redhat.com>
3527         * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
3528         vrsave_size twice.
3530 2003-05-19  Aldy Hernandez  <aldyh@redhat.com>
3532         * doc/tm.texi (function_arg): Fix typo.
3534 2003-05-19  Matt Austern  <austern@apple.com>
3536         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
3537         * c-common.h (warn_invalid_offsetof): Declare.
3538         * c-common.c (warn_invalid_offsetof): Define.
3539         * doc/invoke.texi: Document -Winvalid-offsetof.
3540         * testsuite/g++.dg/other/offsetof3.C: New.
3541         * testsuite/g++.dg/other/offsetof4.C: New.
3543 2003-05-19  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
3544             David Edelsohn  <edelsohn@gnu.org>
3546         * config/rs6000/rs6000.c (rs6000_alignment_string,
3547         rs6000_alignment_flags): New variables.
3548         (rs6000_parse_alignment_option): New function.
3549         (rs6000_override_options): Call it.
3550         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
3551         (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
3552         macros.
3553         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
3554         natural alignment if TARGET_NATURAL_ALIGNMENT
3555         (ROUND_TYPE_ALIGN): Always use default record alignment if
3556         TAGET_NATURAL_ALIGNMENT.
3557         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
3558         (ROUND_TYPE_ALIGN): Same.
3559         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
3560         (ROUND_TYPE_ALIGN): Same.
3561         * doc/invoke.texi (Option Summary, PowerPC Options): Document
3562         new options.
3564 2003-05-19  J"orn Rennecke <joern.rennecke@superh.com>
3566         * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
3567         of a function using ASMSPEC, prepend a star.
3569 2003-05-19  Jason Merrill  <jason@redhat.com>
3571         * tree-inline.c (copy_body_r): Avoid generating &* during inline
3572         substitution.
3574 2003-05-19  Andrew Macleod  <amacleod@redhat.com>
3576         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
3577         not mark assignments to the hard frame pointer as being stack
3578         frame related.
3579         (xstormy16_expand_epilogue): Mark adjustments to the stack
3580         pointer as being stack frame related.
3582 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
3584         * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
3585         ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
3586         (PREDICATE_CODES): Add hilo_operand.
3587         * config/mips/mips.c (hilo_operand): New predicate.
3588         (mips_adjust_insn_length): Account for the number nops that might
3589         be needed to avoid hardware hazards.
3590         * config/mips/mips.md (dslot): Remove attribute.
3591         (hazard): New attribute.
3592         (can_delay): Use it.  Check for calls, branches & jumps.
3593         (muldi3): Use the standard dmult pattern for mips16 code.
3594         (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
3596 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
3598         * config/mips/mips-protos.h (final_prescan_insn,
3599         mips_count_memory_refs, mips_fill_delay_slot): Remove.
3600         * config/mips/mips.h (delay_type, dslots_load_total,
3601         dslots_load_filled, dslots_jump_total, dslots_jump_filled,
3602         dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
3603         mips_load_reg3, mips_load_reg4): Remove.
3604         (MASK_STATS): Remove.
3605         (MASK_EXPLICIT_RELOCS): Reuse its value.
3606         (TARGET_STATS): Remove.
3607         (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
3608         Warn that -mstats is now ignored.
3609         (FINAL_PRESCAN_INSN): Undefine.
3610         (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
3611         (ASM_OUTPUT_REG_POP): Likewise.
3612         * config/mips/mips.c (dslots_load_total, dslots_load_filled,
3613         dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
3614         mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
3615         mips_fill_delay_slot, mips_count_memory_refs,
3616         final_prescan_insn): Remove.
3617         (output_block_move): Remove calls to mips_count_memory_refs.
3618         (print_operand): Remove printing of #nop for TARGET_STATS.
3619         (mips_output_function_epilogue): Remove TARGET_STATS code.
3620         Reorganize setting of fnnmae.
3621         * config/mips/mips.md: Remove handling of dslot statistics
3622         throughout file.  Change all fcmp patterns into normal asm
3623         templates, removing calls to mips_fill_delay_slot.
3624         * doc/invoke.texi: Remove documentation of -mstats.
3626 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
3628         * config/mips/mips.c (mips_class_max_nregs): Return the number of
3629         words in the mode.
3631 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
3633         * config/mips/mips.c (override_options): Disable explicit
3634         relocs for old ABIs unless using gas.
3636 2003-05-18  Eric Christopher  <echristo@redhat.com>
3638         * config/mips/mips.h: Remove definition of g_switch_value.
3640 2003-05-18  Matt Kraai  <kraai@alumni.cmu.edu>
3642         * flags.h (g_switch_value): Change to an unsigned
3643         HOST_WIDE_INT.
3644         * toplev.c (g_switch_value): Likewise.
3646         * config/alpha/alpha.c (small_symbolic_operand): Remove
3647         g_switch_value cast.
3648         (alpha_in_small_data_p): Cast size to an unsigned
3649         HOST_WIDE_INT.
3651         * config/frv/frv.c (frv_in_small_data_p): Cast size to an
3652         unsigned HOST_WIDE_INT.
3653         * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
3654         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
3656         * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
3657         unsigned HOST_WIDE_INT.
3658         (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
3659         * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
3660         (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
3662         * config/rs6000/rs6000.c (rs6000_file_start): Use
3663         HOST_WIDE_INT_PRINT_UNSIGNED.
3664         (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
3665         (rs6000_elf_in_small_data_p): Cast size to unsigned
3666         HOST_WIDE_INT.
3667         * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
3668         Remove.
3669         (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
3670         g_switch_set.
3671         (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
3672         g_switch_value cast.
3674 2003-05-18  Roger Sayle  <roger@eyesopen.com>
3675             Zack Weinberg  <zack@codesourcery.com>
3677         PR middle-end/10472
3678         * builtins.c (expand_builtin_memcpy):  Call force_operand on
3679         expressions and use simplify_gen_binary to create the addition.
3681 2003-05-18  Andreas Schwab  <schwab@suse.de>
3683         * config/m68k/m68k.md: Use define_constants for unspec numbers.
3685 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
3687         * config/sparc/sparc.h: Define sparc for now.
3688 2003-05-18  Nathanael Nerode  <neroden@gcc.gnu.org>
3690         * config.gcc: Clear xm_file, md_file at the beginning of each pass.
3692         * config/stormy16/stormy16.h: Remove about 3000 lines of
3693         target-independent comments.  Update copyright notice.
3695         * doc/collect2.texi: GNU CC -> GCC.
3696         * doc/headerdirs.texi: GNU CC -> GCC.
3698 2003-05-18  Gabriel Dos Reis <gdr@integrable-solutions.net>
3700         * hashtable.h (struct ht_identifier): Add data member "hash_value".
3701         * hashtable.c (ht_lookup): Use it when searching, remember.
3702         (ht_expand): Do not recompute.
3703         * tree.h (IDENTIFIER_HASH_VALUE): New macro.
3705 2003-05-18  Nathan Sidwell  <nathan@codesourcery.com>
3707         * gcov-io.c (gcov_read_bytes): Fix fread thinko.
3709 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
3711         * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
3712         Default here.
3713         (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
3714         * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
3715         * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
3716         * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
3717         config/arm/linux-elf.h, config/arm/rtems-elf.h,
3718         config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
3719         config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
3720         config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
3721         config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
3722         config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
3723         config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
3724         config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
3725         config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
3726         config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
3727         config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
3728         config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
3729         Don't define __ELF__.
3730         * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
3731         Define __ELF__.
3732         * doc/cpp.texi: Document __ELF__.
3733         * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS.     *
3735 2003-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3737         * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
3738         always use stdarg.
3739         * c-errors.c (pedwarn_c99): Likewise.
3740         * c-format.c (status_warning): Likewise.
3741         * c-semantics.c (build_stmt): Likewise.
3742         * calls.c (emit_library_call, emit_library_call_value): Likewise.
3743         * collect2.c (notice, fatal_perror, fatal, error): Likewise.
3744         * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
3745         * diagnostic.c (build_message_string, output_printf,
3746         output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
3747         fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
3748         error_with_decl, fnotice): Likewise.
3749         * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
3750         dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
3751         dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
3752         dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
3753         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
3754         dw2_asm_output_encoded_addr_rtx): Likewise.
3755         * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
3756         * errors.c (warning, error, fatal, internal_error): Likewise.
3757         * final.c (output_operand_lossage, asm_fprintf): Likewise.
3758         * fix-header.c (fatal): Likewise.
3759         * gcc.c (fatal, error, notice): Likewise.
3760         * gcov.c (fnotice): Likewise.
3761         * genattrtab.c (attr_rtx, attr_printf): Likewise.
3762         * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
3763         * gensupport.c (message_with_line): Likewise.
3764         * mips-tfile.c (fatal, error): Likewise.
3765         * protoize.c (notice): Likewise.
3766         * ra-debug.c (ra_debug_msg): Likewise.
3767         * read-rtl.c (fatal_with_file_and_line): Likewise.
3768         * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
3769         * tree.c (build, build_nt, build_function_type_list): Likewise.
3771 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
3773         * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
3774         * gcc.c (cpp_predefines): Remove.
3775         (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
3776         (static_specs): Remove predefines.
3777         * system.h: Poison CPP_PREDEFINES.
3778         * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
3779         config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
3781 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
3783         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
3784         config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
3785         config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
3786         use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
3788 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
3790         PR c/9209
3791         * c-common.c, c-common.h (dollars_in_ident): Remove.
3792         * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
3793         (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
3794         * cpphash.h (warned_dollar): Rename warn_dollars.
3795         * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
3796         Permit dollars regardless of -std=.
3797         (post_options): Set warn_dollars.
3798         * cpplex.c (forms_identifier_p): Use warn_dollars.
3799         * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
3800         Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
3801         * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
3802         Update documentation.
3804 2003-05-17  Andreas Schwab  <schwab@suse.de>
3806         * config/m68k/m68k.c (m68k_output_function_prologue): Use
3807         HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
3808         formatting a HOST_WIDE_INT.
3809         (m68k_output_function_epilogue): Likewise.
3811 2003-05-17  Zack Weinberg  <zack@codesourcery.com>
3813         * doc/install.texi: Remove information about desupported targets.
3815 2003-05-17  Andreas Schwab  <schwab@suse.de>
3817         * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
3818         * config/m68k/linux.h: Likewise.
3819         * config/m68k/m68k-none.h: Likewise.
3820         * config/m68k/netbsd-elf.h: Likewise.
3821         * config/m68k/sgs.h: Likewise.
3822         * config/m68k/m68k.h: Likewise.
3823         * config/m68k/m68k.md: Likewise.
3824         * config/m68k/m68k.c: Likewise.
3825         * doc/md.texi (Machine Constraints): Remove Sun FPA specific
3826         constraints.
3827         * doc/invoke.texi (Option Summary): Remove -mfpa.
3828         (M680x0 Options): Likewise.
3830 2003-05-17  David Edelsohn  <edelsohn@gnu.org>
3832         * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
3834 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
3836         * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
3837         * config/sparc/liteelf.h, config/sparc/openbsd64.h,
3838         config/sparc/rtemself.h, config/sparc/sol2-64.h,
3839         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
3840         Update for use of TARGET_SUB_OS_CPP_BUILTINS.
3842 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
3844         * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
3845         TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
3847 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
3849         * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
3850         * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
3851         sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
3852         sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
3853         sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
3854         sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
3855         sparc/sysv4.h,
3856         * sparc/sysv4-only.h: New.
3858 2003-05-17  Alan Modra  <amodra@bigpond.net.au>
3860         * function.c (assign_parms): Check for zero size args.
3862 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3864         * cfgloopanal.c (test_for_iteration): Use string concatentation on
3865         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
3866         function calls into one.
3867         * dbxout.c (dbxout_symbol): Likewise.
3868         * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
3869         * dwarf2asm.c (dw2_asm_output_data_uleb128,
3870         dw2_asm_output_data_sleb128): Likewise.
3871         * genrecog.c (debug_decision_2): Likewise.
3872         * loop.c (emit_prefetch_instructions): Likewise.
3873         * print-rtl.c (print_rtx): Likewise.
3874         * print-tree.c (print_node_brief, print_node): Likewise.
3875         * ra-debug.c (dump_igraph, dump_graph_cost,
3876         dump_static_insn_cost): Likewise.
3877         * ra-rewrite.c (dump_cost): Likewise.
3878         * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
3879         * sreal.c (dump_sreal): Likewise.
3880         * unroll.c (unroll_loop, precondition_loop_p): Likewise.
3881         * varasm.c (assemble_vtable_entry): Likewise.
3883         * avr.c (avr_output_function_prologue,
3884         avr_output_function_epilogue, print_operand): Fix format specifier
3885         warnings.
3886         (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
3887         * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
3889 2003-05-16  Geoffrey Keating  <geoffk@apple.com>
3891         * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
3892         and ! TARGET_STRING cases.
3894         * doc/cppopts.texi (-undef): Fix texinfo warning.
3896         * doc/cppopts.texi (-H): Document that -H works for PCH files too.
3897         * cppfiles.c (validate_pch): When -H is used, print some information
3898         about PCH files found.
3900 2003-05-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3902         * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
3903         * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
3904         * config/mips/t-sr71k: Likewise.
3906 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3908         * arc.c (arc_output_function_prologue,
3909         arc_output_function_epilogue): Fix format specifier warnings.
3910         * arc.h (LARGE_INT): Fix signed/unsigned warnings.
3912         * v850.c (print_operand): Fix format specifier warnings.
3914         * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
3915         specifier warnings.
3917         * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
3918         format specifier warnings.
3920         * ip2k.c (function_prologue, function_epilogue, print_operand):
3921         Fix format specifier warnings.
3922         * ip2k.md: Likewise.
3924         * i960.c (i960_output_function_prologue, i960_print_operand,
3925         i960_print_operand_addr): Fix format specifier warnings.
3927         * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
3928         (i370_output_function_prologue): Fix format specifier warnings.
3929         * i370.h (PRINT_OPERAND): Likewise.
3931         * fr30.c (fr30_print_operand): Fix format specifier warnings.
3933         * dsp16xx.c (print_operand_address): Fix format specifier warning.
3934         * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
3936         * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
3937         specifier warnings.
3939         * alpha.c (print_operand_address, alpha_start_function,
3940         unicosmk_output_ssib): Use string concatentation on
3941         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
3942         function calls into one.
3943         * arm.c (arm_print_operand): Likewise.
3944         * cris.c (cris_asm_output_mi_thunk): Likewise.
3945         * frv.c (frv_asm_output_mi_thunk): Likewise.
3946         * ia64.c (ia64_print_operand, process_set): Likewise.
3947         * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
3948         Likewise.
3949         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
3950         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
3951         * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
3952         * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
3953         * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
3954         * s390.c (s390_assemble_integer): Likewise.
3955         * sparc.c (sparc_flat_function_prologue,
3956         sparc_flat_function_epilogue): Likewise.
3957         * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
3958         * vax.c (vax_output_mi_thunk): Likewise.
3960         * frv.c (frv_print_operand_memory_reference): Fix format specifier
3961         warning.
3962         (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
3964         * m68k.c (m68k_output_function_epilogue): Fix format specifier
3965         warnings.
3967         * stormy16-protos.h (xs_hi_general_operand,
3968         xs_hi_nonmemory_operand): Prototype.
3969         * stormy16.c (xstormy16_output_shift): Fix format specifier
3970         warnings.
3972         * cris.c: Fix format specifier warnings.
3974 2003-05-16  Nick Clifton  <nickc@redhat.com>
3976         * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
3978 2003-05-16  Wolfgang Bangerth <bangerth@dealii.org>
3980         * doc/bugreport.texi: Remove most of the of the preface of the
3981         bugs section.
3983 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
3985         * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
3986         .save XX, r0.
3988 2003-05-15  Roger Sayle  <roger@eyesopen.com>
3990         * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
3992 2003-05-15  Eric Christopher  <echristo@redhat.com>
3994         * cfgcleanup.c (merge_blocks): Fix return value.
3996 2003-05-15 Eric Christopher <echristo@redhat.com>
3998         * combine.c (expand_compound_operation): Make sure
3999         that zero_extend operation is profitable.
4001 2003-05-15  Richard Henderson  <rth@redhat.com>
4003         * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
4004         code protected by USE_GNULIBC_1.
4006 2003-05-15  Zack Weinberg  <zack@codesourcery.com>
4008         * config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
4009         remove hppa*-*-mpeix* which could not be built, and prune
4010         files from tmake_file= or tm_file= lists that don't exist.
4012         * config/alpha/alpha-interix.h, config/alpha/alpha32.h
4013         * config/alpha/t-interix, config/arm/conix-elf.h
4014         * config/arm/t-arm-aout, config/arm/t-strongarm-coff
4015         * config/arm/unknown-elf-oabi.h, config/i386/win32.h
4016         * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
4017         * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
4018         * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
4019         * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
4020         * config/m68k/m68k-psos.h, config/m68k/mot3300.h
4021         * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
4022         * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
4023         * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
4024         * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
4025         * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
4026         * config/m68k/tower-as.h, config/m68k/tower.h
4027         * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
4028         * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
4029         * config/m88k/m88k-protos.h, config/m88k/m88k.c
4030         * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
4031         * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
4032         * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
4033         * config/mips/rtems64.h, config/mips/sni-gas.h
4034         * config/mips/sni-svr4.h, config/mips/t-ecoff
4035         * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
4036         * config/mn10200/mn10200.c, config/mn10200/mn10200.h
4037         * config/mn10200/mn10200.md, config/mn10200/t-mn10200
4038         * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
4039         * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
4040         * config/romp/romp-protos.h, config/romp/romp.c
4041         * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
4042         * config/rs6000/aix3newas.h, config/rs6000/mach.h
4043         * config/sparc/bsd.h, config/sparc/hal.h
4044         * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
4045         * config/sparc/lynx.h, config/sparc/netbsd.h
4046         * config/sparc/sp86x-aout.h, config/sparc/splet.h
4047         * config/sparc/sun4gas.h, config/sparc/sun4o3.h
4048         * config/sparc/sunos4.h, config/sparc/t-chorus-elf
4049         * config/sparc/t-halos, config/sparc/t-sparcbare
4050         * config/sparc/t-splet, config/sparc/t-sunos41
4051         * config/v850/rtems.h: Delete file.
4053 2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
4055         * config/rs6000/rs6000-protos.h (function_value): Protoize.
4057         * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
4059         * config/rs6000/rs6000.c (rs6000_function_value): New.
4061 2003-05-15  Philip Blundell  <philb@gnu.org>
4063         * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
4064         All uses updated.
4065         (arm_tune_xscale): New variable.
4066         (arm_override_options): Set it.
4067         (arm_adjust_cost): Use it in place of arm_arch_xscale.
4068         (arm_gen_load_multiple): Likewise.
4069         (arm_gen_store_multiple): Likewise.
4070         * config/arm/arm.md (is_xscale): Likewise.
4071         * config/arm/arm.h (arm_tune_xscale): Declare.
4073 2003-05-15  Philip Blundell  <philb@gnu.org>
4075         PR target/10730
4076         * config/arm/arm.c (adjacent_mem_locations): Reject offsets
4077         involving invalid constants.
4079 2003-05-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4081         * pa.c (hppa_expand_prologue): Remove blockage.
4083 2003-05-15  Wolfgang Bangerth <bangerth@dealii.org>
4085         * doc/bugreport.texi: Remove most of the bug reporting
4086         instructions and merge them into bugs.html.
4088 2003-05-14  Matt Kraai  <kraai@alumni.cmu.edu>
4090         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
4091         g_switch_value to unsigned HOST_WIDE_INT.
4093 2003-05-14  Eric Christopher  <echristo@redhat.com>
4095         * combine.c: Fix header comments.
4096         (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
4097         to all calls and prototype.
4099 2003-05-14  Roger Sayle  <roger@eyesopen.com>
4101         PR optimization/10764
4102         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
4103         Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
4104         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
4105         add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
4106         (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
4107         the corresponding *fyl2x_?fxf3 instructions.
4109 2003-05-14  Bob Wilson  <bob.wilson@acm.org>
4111         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
4112         * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
4113         XCHAL_HAVE_L32R): New.
4114         * config/xtensa/xtensa-protos.h (non_const_move_operand,
4115         xtensa_load_constant, xtensa_function_prologue,
4116         xtensa_function_epilogue): Delete prototypes.
4117         (xtensa_expand_prologue): New.
4118         * config/xtensa/xtensa.c (frame_size_const,
4119         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
4120         non_const_move_operand, xtensa_load_constant, xtensa_reorg,
4121         xtensa_function_prologue): Delete.
4122         (add_operand, xtensa_mem_offset): Formatting.
4123         (move_operand): If the const16 option is available, allow any SFmode
4124         and SImode constants.
4125         (xtensa_emit_move_sequence): Inline the former contents of
4126         xtensa_load_constant with modifications to handle the const16 option.
4127         (override_options): Add xtensa_char_to_class['W'] and set it to
4128         the general register class only if the const16 option is enabled.
4129         Fix formatting.  Disallow PIC when using the const16 option.
4130         (print_operand): Reorganize to switch on "letter" instead of the
4131         RTL code.  Add output_operand_lossage calls for invalid cases.
4132         Add support for 't' and 'b' letters.
4133         (xtensa_expand_prologue): New function to replace
4134         xtensa_function_prologue and xtensa_reorg.
4135         (xtensa_function_epilogue): Declare this as static.  Delete code
4136         to print the retw.n or retw instruction.
4137         (xtensa_return_addr): Use A0_REG instead of 0.
4138         (xtensa_rtx_costs): Add costs for using the const16 option.
4139         * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
4140         (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
4141         (TARGET_SWITCHES): Add "const16" and "no-const16".
4142         (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
4143         (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
4144         using the const16 option.
4145         (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
4146         (TRAMPOLINE_SIZE): Change from 49 to 59.
4147         (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
4148         (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
4149         when using the const16 option.
4150         (PREDICATE_CODES): Delete non_const_move_operand.
4151         * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
4152         UNSPECV_ENTRY.
4153         (movdi, movdf): If the source is a constant, always expand to a
4154         sequence of movsi insns.
4155         (movdi_internal, movdf_internal): Remove alternative using l32r insns.
4156         (movsi_internal, movsf_internal): Add alternative using const16 insns.
4157         (movsf): Add const16 support.
4158         (entry, prologue, epilogue): New.
4159         (set_frame_ptr): Add missing mode for unspec_volatile operation.
4160         Likewise for subsequent split pattern.
4161         * doc/invoke.texi (Option Summary, Xtensa Options): Document new
4162         "-mconst16" and "-mno-const16" options.
4164 2003-05-14  Richard Henderson  <rth@redhat.com>
4166         * config/ia64/ia64.c (ia64_expand_load_address): Force destination
4167         to be DImode register.  Merge load_symptr.
4168         * config/ia64/ia64.md (load_symptr): Remove.
4170 2003-05-14  Richard Henderson  <rth@redhat.com>
4172         * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
4173         DEFERRED_CONSTANT_P.
4174         * integrate.c (copy_rtx_and_substitute): Update use.
4175         * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
4176         to the copy generated.
4177         (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
4178         of the constant to see if we should emit.
4179         (mark_constant): Similarly.
4180         (output_constant_def_contents): Set TREE_ASM_WRITTEN.
4182 2003-05-14  David Edelsohn  <edelsohn@gnu.org>
4184         * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
4185         move record condition.
4186         (movdi_internal2): Same.
4188 2003-05-14  Nathan Sidwell  <nathan@codesourcery.com>
4190         * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
4191         (GCOV_TAG_*) Force type to gcov_unsigned_t.
4192         (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
4193         (struct gcov_var): Remove modified. Add start, length, offset,
4194         overread. Have buffer array for libgcov.
4195         (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
4196         (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
4197         * gcov-io.c (gcov_open): Set mode, do not read anything.
4198         (gcov_close): Write final block.
4199          (gcov_write_block, gcov_allocate): New.
4200         (gcov_write_bytes): Make static. Write or allocate buffer.
4201         (gcov_write_unsigned, gcov_write_counter): Buffer can never be
4202         null.
4203         (gcov_write_string): Adjust.
4204         (gcov_write_tag)
4205         (gcov_write_length): Adjust. Flush the block.
4206         (gcov_write_tag_length): Buffer can never be null.
4207         (gcov_read_bytes): Make static. Read in block.
4208         (gcov_sync): Moved here. Adjust.
4209         (gcov_seek): Moved here. Adjust.
4210         * coverage.c (read_counts_file): Adjust.
4211         * gcov-dump.c (print_prefix): Add position parameter.
4212         (flag_dump_positions): New flag.
4213         (options, main, print_usage): Add it.
4214         (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
4215         tag_summary): Adjust.
4216         * gcov.c (read_graph_file, read_count_file): Adjust.
4217         * libgcov.c (gcov_exit): Adjust.
4219         * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
4220         (libgcov.a): Depend on libgcc.a.
4221         (gcov.o, gcov-dump.o): Add gcov-io.c.
4222         * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
4224         * loop.c (check_dbra_loop): Factor common test.
4226 2003-05-14  Ben Elliston  <bje@wasabisystems.com>
4228         * doc/md.texi (Automaton pipeline description): Grammar fixes.
4230 2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
4232         * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
4233         (TARGET_INITIALIZER): Include it.
4234         * target.h (struct gcc_target): Add machine_dependent_reorg field.
4235         * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
4236         * system.h: Poison MACHINE_DEPENDENT_REORG.
4238         * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
4239         * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
4240         * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4241         (alpha_handle_trap_shadows): Remove "first insn" parameter.
4242         (alpha_align_insns): Likewise.
4243         (alpha_reorg): Likewise.  Make static.  Update calls to above
4244         functions.
4246         * config/arm/arm-protos.h (arm_reorg): Remove declaration.
4247         * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
4248         * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4249         (arm_reorg): Remove parameter.  Make static.
4251         * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
4252         * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
4253         * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4254         (avr_reorg): Renamed from machine_dependent_reorg.  Make static.
4255         Remove parameter.
4257         * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
4258         * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
4259         * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4260         (c4x_reorg): Renamed from c4x_process_after_reload.  Make static.
4261         Remove parameter.
4263         * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
4264         * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
4265         * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
4267         * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
4268         * config/frv/frv.c: Remove orphaned comment.
4270         * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
4271         * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
4272         * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4273         (ix86_reorg): Renamed from x86_machine_dependent_reorg.  Make static.
4274         Remove parameter.
4276         * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
4277         * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
4278         * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4279         (emit_insn_group_barriers): Remove "first insn" parameter.
4280         (emit_all_insn_group_barriers): Likewise.
4281         (ia64_reorg): Likewise.  Make static.  Update calls to above functions.
4282         (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
4284         * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
4285         * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
4286         * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4287         (ip2k_reorg): Renamed from machine_dependent_reorg.  Make static.
4288         Remove parameter.
4290         * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
4291         * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
4292         * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4293         (m68hc11_reorg): Make static.  Remove parameter.
4295         * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
4296         * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
4297         * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4298         (conditionalize_optimization): Remove parameter.
4299         (mcore_reorg): Renamed from mcore_dependent_reorg.  Remove parameter.
4300         Make static.  Update call to conditionalize_optimization.
4302         * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
4303         * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
4304         * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4305         (mips_reorg): Renamed from machine_dependent_reorg.  Remove parameter.
4306         Make static.
4308         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
4309         * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
4310         * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4311         (mmix_reorg): Renamed from mmix_machine_dependent_reorg.  Make static.
4312         Remove parameter.
4314         * config/pa/pa-protos.h (pa_reorg): Remove declaration.
4315         * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
4316         * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4317         (pa_combine_instructions): Remove "first insn" parameter.
4318         (remove_useless_addtr_insns): Likewise.
4319         (pa_reorg): Likewise.  Make static.  Update calls to above functions.
4321         * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
4322         commented-out definition.
4324         * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
4325         * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
4326         * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4327         (s390_reorg): Renamed from s390_machine_dependent_reorg.  Make static.
4328         Remove parameter.
4330         * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
4331         * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
4332         * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4333         (sh_reorg): Renamed from machine_dependent_reorg.  Make static.
4334         Remove parameter.
4335         (sh_output_mi_thunk): Call sh_reorg directly.
4336         * config/sh/sh.md: Update comment.
4338         * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
4339         commented-out definition.
4341         * config/v850/v850-protos.h (v850_reorg): Remove declaration.
4342         * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
4343         * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4344         (v850_reorg): Make static.  Remove parameter.
4346         * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
4347         * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
4348         * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4349         (xtensa_reorg): Make static.  Remove parameter.
4351         * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
4352         (TARGET_MACHINE_DEPENDENT_REORG): Document.
4354 2003-05-13  Richard Henderson  <rth@redhat.com>
4356         * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
4357         the old decl had instantiated DECL_RTL.
4359 2003-05-13  Mike Stump  <mrs@apple.com>
4361         * doc/invoke.texi (Option Summary): Kill off documentation for -$.
4363 2003-05-13  Janis Johnson  <janis187@us.ibm.com>
4365         * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
4366         HOST_WIDE_INT argument.
4368 2003-05-13  Jason Merrill  <jason@redhat.com>
4370         * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
4372         * tree.c (iterative_hash_expr): New fn.
4374         * c-semantics.c (emit_local_var): Don't mess with temp slots if
4375         there's no initializer.
4377 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
4379         * final.c (final_scan_insn): Apply the effects of frame-related
4380         delay slot insns before emitting a delayed branch.
4382 2003-05-13  Nick Clifton  <nickc@redhat.com>
4384         * config/mcore/mcore.md (jump): Use emit_jump_insn.
4386 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
4388         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
4389         parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
4391 2003-05-12  DJ Delorie  <dj@redhat.com>
4393         * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
4394         (emit_push_insn): Don't use push when the source alignment is less
4395         than the stack's push rounding.
4397 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
4399         * diagnostic.c (output_format): Add support for %m.
4400         (output_printf, output_verbatim, diagnostic_set_info,
4401         verbatim): Set err_no field of the text_info structure being
4402         initialized.
4403         (fatal_io_error): Delete function.
4404         * diagnostic.h (text_info): Add err_no field.
4405         * toplev.h (fatal_io_error): Delete prototype.
4407         * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
4408         * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
4409         * objc/objc-act.c: Replace all calls to fatal_io_error with
4410         calls to fatal_error; add ": %m" to the end of all the affected
4411         error messages.
4413 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
4415         * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
4416         * rtl.h: Prototype it.
4417         * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
4418         when appropriate.
4420 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
4422         * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
4423         ("*iorsi3_oi"): Likewise.
4425 2003-05-13  Richard Earnshaw  <rearnsha@arm.com>
4427         * arm.md (compare_scc): Use shorter sequence for EQ case.
4428         (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
4429         (and_scc_scc): Ensure split only applies when there is a dominance
4430         of the comparisons.
4431         (and_scc_scc_nodom): New insn-and-split pattern.
4433 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
4435         * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
4436         to _Unwind_SetGRPtr().
4438 2003-05-13  Michael Eager <eager@mvista.com>
4440         * Makefile.in: Initialize program_transform_cross_name from
4441         @program_transform_name@ instead of target_alias.
4443 2003-05-12  Janis Johnson  <janis187@us.ibm.com>
4444             Alan Modra  <amodra@bigpond.net.au>
4445             Jakub Jelinek  <jakub@redhat.com>
4447         * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
4448         * configure: Rebuild.
4449         * config/rs6000/rs6000-protos.h: Update.
4450         * config/rs6000/rs6000.c (rs6000_tls_size): New.
4451         (rs6000_tls_size_string): New.
4452         (rs6000_parse_tls_size_option): New.
4453         (rs6000_legitimize_tls_address): New.
4454         (rs6000_tls_get_addr): New.
4455         (rs6000_got_sym): New.
4456         (rs6000_tls_symbol_ref): New.
4457         (rs6000_tls_symbol_ref_1): New.
4458         (rs6000_get_some_local_dynamic_name): New.
4459         (rs6000_get_some_local_dynamic_name_1): New.
4460         (TARGET_HAVE_TLS): New.
4461         (TARGET_CANNOT_FORCE_CONST_MEM): New.
4462         (rs6000_override_options): Handle -mtls-size option.
4463         (constant_pool_expr_1): Handle TLS symbols.
4464         (rs6000_legitimize_address): Handle TLS symbols.
4465         (rs6000_tls_referenced_p): New.
4466         (rs6000_legitimate_address): Handle TLS symbols.
4467         (rs6000_emit_move): Handle TLS symbols.
4468         (print_operand): Handle TLS symbols.
4469         (uses_TOC): Handle TLS symbols.
4470         (rs6000_emit_prologue): Use symbol for unspec constant.
4471         * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
4472         (some_ld_name): New.
4473         (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
4474         (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
4475         (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
4476         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
4477         Support TLS.
4478         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
4479         tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
4480         tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
4481         tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
4482         tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
4483         tls_tls_64): New.
4484         * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
4486 2003-05-12  Neil Booth  <neil@cat.daikokuya.co.uk>
4488         * Makefile.in (stage2_build, stage3_build, stage4_build):
4489         Set BUILD_CC to the same as CC.
4491 2003-05-12  Neil Booth  <neil@daikokuya.co.uk>
4493         * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
4495 2003-05-12  Andreas Schwab  <schwab@suse.de>
4497         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
4498         as unused.
4499         (bundling): Initialize 'pos'.
4500         (ia64_expand_builtin): Initialize 'rmode'.
4502 2003-05-12  David Edelsohn  <edelsohn@gnu.org>
4504         * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
4505         (ASM_OUTPUT_ALIGNED_COMMON): Same.
4506         (ASM_OUTPUT_LOCAL): Same.
4508 Mon May 12 21:53:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
4510         * varasm.c (output_constant):  Fix underflow.
4512 2003-05-12  Mark Mitchell  <mark@codesourcery.com>
4514         PR other/10745
4515         * configure.in: Correct detection of GNU ld version number.
4516         * configure: Regenerated.
4518 2003-05-12  Zack Weinberg  <zack@codesourcery.com>
4520         * diagnostic.c (diagnostic_for_decl): Take a
4521         diagnostic_context argument.  Restructure to be consistent
4522         with diagnostic_report_diagnostic.
4523         (diagnostic_count_diagnostic): Now static.  Take a
4524         diagnostic_info argument, not just a diagnostic_t.  Some code
4525         moved here from internal_error.  Move a case label for
4526         clarity.
4527         (diagnostic_action_after_output): New function.  Code moved
4528         here from internal_error and fatal_error.
4529         (bug_report_request): New #define so that this text appears in
4530         only one place.
4531         (diagnostic_report_diagnostic): Update to match changes to
4532         diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
4533         (diagnostic_set_info): Call gettext here.
4535         (pedwarn): Update comment.  Don't call gettext here.
4536         (sorry): Use report_diagnostic.  Don't call gettext here.
4537         (fatal_error): Remove final fnotice and exit, but call
4538         real_abort to prevent warnings about noreturn function returning.
4539         (internal_error): Likewise.  Don't do ICE suppression here nor
4540         call context->internal_error.
4541         (warning_with_decl): Suppress for decls in system headers.
4542         Adjust call to diagnostic_for_decl.
4543         (pedwarn_with_decl): Likewise.
4544         (error_with_decl): Adjust call to diagnostic_for_decl.
4545         (error_recursion): Use bug_report_request.
4547         * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
4548         * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
4549         diagnostic_count_diagnostic.
4551 2003-05-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4553         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
4555 Mon May 12 15:57:54 CEST 2003  Jan Hubicka  <jh@suse.cz>
4557         * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
4558         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
4559         * mips/mips.h (ASM_OUTPUT_SKIP):  Fix typo in the previous patch.
4561 2003-05-12  Roger Sayle  <roger@eyesopen.com>
4563         * doc/rtl.texi: Document zero_extract as a valid destination
4564         of a set insn.
4566 2003-05-12  Richard Earnshaw  <rearnsha@arm.com>
4568         * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
4569         '.'.  Change all local symbol definitions and references to use LSYM.
4571 Mon May 12 11:32:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
4573         * expr.h (assemble_static_space): Update prototype.
4574         * output.h (assemble_zeros, output_constant): Likewise.
4575         * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
4576         * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
4577         it 64bit clean.
4578         * elf.h (ASM_OTUPUT_SKIP): Likewise.
4579         * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
4580         * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
4581         Expect HOST_WIDE_INT operand.
4582         * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
4583         Expect HOST_WIDE_INT operand.
4584         * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
4585         Expect HOST_WIDE_INT operand.
4586         * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
4587         HOST_WIDE_INT operand.
4588         * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
4589         ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
4590         * aout.h (ASM_OTUPUT_SKIP): Likewise.
4591         * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
4592         * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
4593         * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
4594         * frv.h (ASM_OTUPUT_SKIP): Likewise.
4595         * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
4596         * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
4597         Make it 64bit
4598         clean.
4599         * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
4600         * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
4601         Make it 64bit clean.
4602         * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
4603         * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
4604         HOST_WIDE_INT operand
4605         * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
4606         Expect HOST_WIDE_INT operand
4607         * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
4608         * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
4609         ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
4610         * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
4611         Likewise.
4612         * m32r.h (ASM_OUTPUT_COMMON): Likewise.
4613         * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
4614         Likewise.
4615         * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
4616         * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
4617         * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
4618         ASM_OUTPUT_SKIP): Likewise.
4619         * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
4620         Likewise.
4621         * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
4622         ASM_OUTPUT_SKIP): Likewise.
4623         * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
4624         ASM_OUTPUT_SKIP): Likewise.
4625         * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
4626         * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
4627         ASM_OUTPUT_SKIP): Likewise.
4628         * sgs.h (ASM_OUTPUT_SKIP): Likewise.
4629         * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
4630         ASM_OUTPUT_SKIP): Likewise.
4631         * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
4632         Likewise.
4633         * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
4634         * iris.h (ASM_OUTPUT_LOCAL): Likewise.
4635         * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
4636         * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
4637         ASM_OUTPUT_SKIP): Make it 64bit clean.
4638         * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
4639         Make it 64bit clean.
4640         * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
4641         ASM_OUTPUT_SKIP): Make it 64bit clean.
4642         * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
4643         64bit clean.
4644         * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
4645         HOST_WIDE_INT argument
4646         * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
4647         * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
4648         HOST_WIDE_INT argument
4649         * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
4650         * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
4651         * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
4652         * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
4653         HOST_WIDE_INT argument
4654         * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
4655         * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
4656         * varasm.c (asm_output_bss, asm_output_aligned_bss,
4657         asm_emit_uninitialized, assemble_zeros, assemble_static_space):
4658         HOST_WIDE_INT argument
4660 2003-05-10  Steven Bosscher  <steven@gcc.gnu.org>
4662         * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
4663         favor of walk_tree_without_duplicates.  Add comments.
4665 2003-05-12  Josef Zlomek  <zlomekj@suse.cz>
4667         * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
4668         (struct alloc_pool_def): New element 'id'.
4669         * alloc-pool.c (fancy_abort): Extern function prototype.
4670         (abort): Macro which uses fancy_abort.
4671         (struct allocation_object_def): New structure.
4672         (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
4673         (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
4674         (last_id): New variable.
4675         (create_alloc_pool): Add the offset of u.data to size of element,
4676         increase and use last_id.
4677         (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
4678         (pool_alloc): Likewise. Set ID for elements.
4679         (pool_free): Check whether the PTR was allocated from POOL.
4681 2003-05-11  Richard Henderson  <rth@redhat.com>
4683         PR c/10675
4684         * c-decl.c: Include hashtab.h.
4685         (detect_field_duplicates): New.
4686         (finish_struct): Use it.
4687         * Makefile.in (c-decl.o): Update.
4688         * c-parse.in (structsp_attr): Nreverse component_decl_list results.
4689         (component_decl_list, component_decl_list2,
4690         components, components_notype): Build list in reverse order.
4691         (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
4693         * tree.c (chainon): Special case op2 null as well.
4694         Reorg for clarity.
4696 2003-05-11  Roger Sayle  <roger@eyesopen.com>
4698         * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
4699         to implement log, logf and logl built-ins as inline x87 intrinsics.
4700         (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
4701         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
4702         patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
4704         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
4705         UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
4707 2003-05-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4709         * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
4711         * sparc.c (print_operand): Fix uninitialized warning.
4713 2003-05-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4715         * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
4716         real insns.
4717         * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
4718         condition.
4720 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
4722         * doc/cpp.texi: Fix typos.
4724 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4726         * config/s390/s390.c (s390_function_arg_float): New function.
4727         (s390_function_arg_pass_by_reference): Use it.
4728         (s390_function_arg_advance): Likewise.
4729         (s390_function_arg): Likewise.
4730         (s390_va_arg): Likewise
4732 2003-05-11  Nathan Sidwell  <nathan@codesourcery.com>
4734         * coverage.h (coverage_counter_alloc): New function.
4735         * function.h (struct function): Remove arc_profile flag.
4736         * coverage.c (fn_ident): Remove.
4737         (fn_b_ctrs, no_coverage): New.
4738         (get_coverage_counts): Use current_function_funcdef_no.
4739         (coverage_counter_alloc): New.
4740         (coverage_counter_ref): Adjust.
4741         (coverage_begin_output): Check no_coverage. Use
4742         current_function_funcdef_no.
4743         (coverage_end_function): Likewise.
4744         (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
4745         than clearing flag_inline_functions. Do not clear arc_profile
4746         flag.
4747         * function.c (prepare_function_start): Do not set arc_profile
4748         flag.
4749         * profile.c (instrument_edges): Return number of instrumented
4750         edges. Use a for loop.
4751         (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
4752         local to here and simplify. Use profile_arc_flag not arc_profile
4753         flag.
4754         (find_spanning_tree): Reformat.
4755         * toplev.c (rest_of_compilation): Use profile_arc_flags and
4756         flag_test_coverage rather than arc_profile flag.
4758 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
4760         * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
4762 2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4764         * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
4766 2003-05-11  Bruno Haible  <bruno@clisp.org>
4768         * cppfiles.c (find_or_create_entry): Preserve errno.
4770 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
4772         * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
4773         cpplib as it's a Standard Predefined Macro.
4774         * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
4775         * cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
4776         __STDC_HOSTED__ appropriately.
4777         * cpplib.h (_cpp_init_builtins): Update.
4778         * fix-header.c (read_scan_file): Update.
4779         * doc/cpp.texi, doc/cppopts.texi: Update documentation.
4781 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4783         PR C++/689
4784         PR C++/9257
4785         * c-opts.c (c_common_decode_option): Don't set
4786         warn_ctor_dtor_privacy wen -Wall.
4787         * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
4789 2003-05-10  Alexandre Oliva  <aoliva@redhat.com>
4791         * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
4792         patch.
4794 2003-05-10  Zack Weinberg  <zack@codesourcery.com>
4796         * diagnostic.c: Reorder functions for clarity, putting all the
4797         functions in the "error" family next to each other, and
4798         likewise all the functions in the "error_with_decl" family.
4799         Some other routines were moved too.  Add comments.
4800         (vbuild_message_string): Fold into sole caller.
4803 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4805         * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
4806         (EH_RETURN_HANDLER_RTX): Likewise.
4807         (expand_builtin_eh_return): Do not copy stack adjustment
4808         if EH_RETURN_STACKADJ_RTX is not defined.
4809         (expand_eh_return): Likewise.  Also, do not pass stack
4810         adjustment as argument to the eh_return pattern.
4811         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
4812         because EH_RETURN_STACKADJ_RTX is not defined.
4813         * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
4814         is not defined, treat stack pointer like a regular register.
4815         (uw_init_context_1): Set up fake initial stack pointer register.
4816         (uw_install_context_1): Do not compute stack adjustment if
4817         EH_RETURN_STACKADJ_RTX is not defined.
4819         * config/i386/i386.md ("eh_return"): Remove first argument.
4820         * config/mips/mips.md ("eh_return"): Likewise.
4821         * config/rs6000/rs6000.md ("eh_return"): Likewise.
4822         * config/sh/sh.md ("eh_return"): Likewise.
4824         * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
4826 2003-05-10  Alexander Aganichev  <aaganichev@yandex.ru>
4828         * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
4830 2003-05-10  Nathan Sidwell  <nathan@codesourcery.com>
4832         * defaults.h (GCOV_TYPE_SIZE): Remove.
4833         * gcov-io.h (gcov_type): Set to specific mode int on target.
4834         (gcov_unsigned_t, gcov_position_t): New.
4835         (GCOV_TYPE_NODE): New.
4836         (GCOV_TAG_SUMMARY_LENGTH): Adjust.
4837         (GCOV_COUNTERS_SUMMABLE): New.
4838         (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
4839         gcov_ctr_info, gcov_info): Adjust types.
4840         (gcov_var): Adjust types.
4841         (gcov_write_unsigned, gcov_write_tag,
4842         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
4843         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
4844         (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
4845         * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
4846         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
4847         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
4848         * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
4849         __gcov_init, __gcov_merge_add): Adjust gcov types.
4850         * coverage.c (ctr_merge_functions): Constify.
4851         (ctr_names): New.
4852         (read_counts_file): Adjust gcov types. Only summarize & merge
4853         summable counters.
4854         (coverage_counter_ref): Use GCOV_TYPE_NODE.
4855         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
4856         build_ctr_info_value, build_gcov_info): Adjust types.
4857         * profile.c (branch_prob): Adjust gcov types.
4858         * gcov_dump (dump_file): Adjust gcov types.
4860 2003-05-10  Richard Earnshaw  <rearnsha@arm.com>
4862         * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
4863         constants.
4864         (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
4865         * arm.c (arm_select_dominance_cc_mode): Renamed from
4866         select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
4867         Callers updated.
4868         * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
4870 2003-05-09  Roger Sayle  <roger@eyesopen.com>
4872         * config/alpha/alpha.c (alpha_start_function): Declare frame_size
4873         as unsigned to avoid signed/unsigned comparison warnings.
4875 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
4877         * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
4878         instruction if the Xtensa density option is enabled.
4880 2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>
4882        * mklibgcc.in: Remove extra quotes.
4884 2003-05-09  Mark Mitchell  <mark@codesourcery.com>
4886         * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
4887         of int_ftype_void.
4889 2003-05-09  Alexandre Oliva  <aoliva@redhat.com>
4891         * reload1.c (reload_cse_move2add): Don't turn an implicit
4892         truncation into a self-set in the narrow mode.
4894 2003-05-09  Richard Earnshaw  <rearnsha@arm.com>
4896         * arm.md (clzsi2): The CLZ instruction is predicable.
4898 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
4900         * config/xtensa/xtensa.c: Formatting.
4902 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
4904         * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
4905         instead of TREE_OPERAND to access the operand of a
4906         CONSTRUCTOR node.
4908 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
4910         * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
4911         one operand.
4913 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
4915         * toplev.h (warning_with_file_and_line): Don't declare.
4916         (error_with_file_and_line): Likewise.
4917         * diagnostic.c (error_with_file_and_line): Remove.
4918         (warning_with_file_and_line): Likewise.
4920 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
4922         * c-parse.in (if_stmt_locus): New object.
4923         (if_prefix rule): Use it.  Don't use warning_with_file_and_line.
4924         (select_or_iter_stmt rule): Likewise.
4925         (if_stmt_file): Remove.
4926         (if_stmt_line): Likewise.
4927         * jump.c: include "diagnostic.h"
4928         (never_reached_warning): Don't use warning_with_file_and_line.
4929         * Makefile.in (jump.o): Add dependce on diagnostic.h
4931 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
4933         * expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
4934         Move code handling pieces not larger than a word to..
4935         * function.c (assign_parms): ..here, but use change_address instead
4936         of adjust_address and operand_subword, and expand_binop instead of
4937         expand_shift.  Adjust calls to move_block_from_reg.
4938         * expr.h (move_block_from_reg): Update declaration.
4939         (copy_blkmode_from_reg): Formatting.
4940         * Makefile.in (function.o): Add $(OPTABS_H) to deps.
4941         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
4942         move_block_from_reg calls.
4943         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
4944         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
4945         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
4946         * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
4947         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
4948         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
4949         * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
4950         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
4951         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
4953 2003-05-08  DJ Delorie  <dj@redhat.com>
4955         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
4956         to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
4957         variable-sized types).
4958         (xstormy16_function_arg): New.  Pass them that way too.
4959         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
4960         * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
4962 2003-05-08  Aldy Hernandez  <aldyh@redhat.com>
4964         * mklibgcc.in: Use mkinstalldirs when installing multilib
4965         directories.
4967 2003-05-08  J"orn Rennecke <joern.rennecke@superh.com>
4969         * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
4970         instead of CODE_FOR_jump
4972 2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>
4974         * objc/objc-act.c (error_with_ivar): Don't use
4975         error_with_file_and_line.
4976         (warn_with_method): Don't use warning_with_file_and_line.
4978 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4980         * stmt.c (emit_locus): New macro.
4981         (emit_filename): Remove.
4982         (emit_lineno): Likewise.
4983         (struct stmt_status): Replace members x_emit_filename and
4984         x_emit_lineno with x_emit_locus.
4985         (set_file_and_line_for_stmt): Adjust.
4986         (expand_expr_stmt_value): Don't use warning_with_file_and_line.
4987         (warn_if_unused_value): Likewise.
4988         (check_seenlabel): Likewise.
4990 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4992         * c-decl.c (define_label): Tidy.  Don't use any of
4993         error_with_file_and_line or warning_with_file_and_file.
4994         (pending_xref_error): Likewise.
4995         (store_parm_decls): Likewise.
4996         (current_function_prototype_locus): New object.  Package from
4997         current_function_prototype_file and current_function_prototype_line.
4998         (start_function): Use it.
4999         (current_function_prototype_file): Remove.
5000         (current_function_prototype_line): Remove;
5002 2003-05-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5004         * builtins.c (readonly_data_expr): New function.
5005         (expand_builtin_memmove): Optimize any rodata source, not just
5006         strings.
5008 2003-05-07  David Mosberger <davidm@hpl.hp.com>
5010         * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
5012 2003-05-07  Richard Henderson  <rth@redhat.com>
5014         * config/i386/i386.c (ix86_split_long_move): Fix base register
5015         mode for XFmode splits for TARGET_64BIT.
5017 2003-05-07  Richard Henderson  <rth@redhat.com>
5019         * sched-ebb.c (schedule_ebb): Supply the correct starting
5020         block number to save_line_notes.
5022 2003-05-07  Richard Henderson  <rth@redhat.com>
5024         * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
5025         (dump_file): Likewise.
5027 2003-05-07  David Mosberger <davidm@hpl.hp.com>
5029         * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
5030         forget to preserve gp.
5031         * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
5033         * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
5034         .prologue directive.
5035         Use .skip instead of data8 for .bss section to make Intel
5036         Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
5037         explicit in the .mib bundles and remove the unnecessary stop
5038         bits.  Replace local labels with normal labels, to make ias
5039         happy.  Don't register __do_global_ctors_aux here, do it in
5040         crtend.asm instead.
5042         * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
5043         __do_global_ctors_aux in .init_array section instead of
5044         declaring it as a hidden global.  Replace local labels with
5045         ordinary labels to make ias happy.
5047 2003-05-07  Richard Henderson  <rth@redhat.com>
5049         PR c++/10570
5050         * except.c: Revert 04-01 and 04-02 forced-unwind changes.
5051         * flags.h, toplev.c, doc/invoke.texi: Likewise.
5053         * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
5054         * unwind.inc (_Unwind_DeleteException): Check for null
5055         exception_cleanup.
5057         * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
5058         * unwind.inc (_Unwind_Resume_or_Rethrow): New.
5059         * unwind.h: Declare them.
5060         * libgcc-std.ver (GCC_3.3): Export them.
5062 2003-05-07  Richard Henderson  <rth@redhat.com>
5064         * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
5065         not _Unwind_Word.
5067 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
5069         * stmt.c (force_label_rtx): New function, based on logic
5070         formerly found in expand_expr.
5071         * expr.h: Prototype it.
5072         * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
5073         appropriate.
5074         * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
5076         * print-tree.c (debug_tree): Free the table after we're done
5077         with it.  Use putc.
5079 2003-05-07  Aldy Hernandez  <aldyh@redhat.com>
5081         * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
5082         Unreverse arguments for __ev_subw.
5084         * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
5086 2003-05-07  Nick Clifton  <nickc@redhat.com>
5088         * config/stormy16/stormy-abi: Update to include
5089         R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
5090         R_XSTORMY16_12 relocs.
5092 2003-05-07  Alan Modra  <amodra@bigpond.net.au>
5094         * function.c (assign_parms): Correct reversed reg_parm_stack_space
5095         test.  Add partial in-regs size to stack_args_size.
5097 2003-05-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5099         * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
5100         as a C only option.
5102 2003-05-07  Nathan Sidwell  <nathan@codesourcery.com>
5104         * gcov-io.h (GCOV_LOCKED): New #define.
5105         (GCOV_LINKAGE): Make sure it is #defined.
5106         (gcov_write_string, gcov_write_tag, gcov_write_length,
5107         gcov_read_string, gcov_time): Poison in libgcov.
5108         (gcov_seek_end): Remove.
5109         (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
5110         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
5111         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
5112         GCOV_TAG_SUMMARY_LENGTH): New #defines.
5113         (gcov_write_tag, gcov_write_length): Not in libgcov.
5114         * gcov-io.c (gcov_open): Use GCOV_LOCKED.
5115         (gcov_write_tag, gcov_write_length): Not in libgcov.
5116         (gcov_write_tag_length): New.
5117         (gcov_write_summary): Use gcov_write_tag_length.
5118         * libgcov.c: Always #include gcov-io.h.
5119         (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
5120         (GCOV_LINKAGE): Define to nothing for L_gcov.
5121         (gcov_exit): Replace gcov_write_tag, gcov_write_length with
5122         gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
5123         * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
5124         (read_count_file): Likewise.
5125         * gcov-dump.c (dump_file): Likewise.
5126         * coverag.c (read_counts_file): Likewise.
5128 2003-05-06  Mark Mitchell  <mark@codesourcery.com>
5130         PR other/10658
5131         * gcc.c (process_command): Update copyright date.
5133 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
5135         * doc/install.texi (mips-*-*):  Add note about libstdc++.
5137 2003-05-06  DJ Delorie  <dj@redhat.com>
5139         * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
5140         * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
5141         * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
5143 2003-05-06    <neil@cat.daikokuya.co.uk>
5145         * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
5146         and -Wstrict-prototypes if C++.
5148 2003-05-06  Aldy Hernandez  <aldyh@redhat.com>
5150         * config/rs6000/linuxspe.h: New file.
5152         * config.gcc: Add powerpc-*-linux-gnuspe* target.
5154 2003-05-06  Richard Henderson  <rth@redhat.com>
5156         * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
5157         previous frame didn't save sp.  Clear sp for next frame.
5158         (uw_install_context_1): Honor saved sp from frame.
5160 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
5162         * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
5163         (mips_move_1word, mips_move_2words): Remove declaration.
5164         (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
5165         (mips_restore_gp): Remove insn argument.
5166         * config/mips/mips.h (FP_REG_RTX_P): New macro.
5167         * config/mips/mips.c (volatile_buffer): Remove.
5168         (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
5169         (mips_move_1word, mips_move_2words): Remove, replacing with...
5170         (mips_output_move): ...this new function.
5171         (mips_restore_gp): Remove insn argument.  Adjust for above changes.
5172         (print_operand): Make '%h' print %hi(op) for HIGH operands.  Remove
5173         handling of floating-point constants.  Handle zero CONST_DOUBLE
5174         arguments.
5175         (mips_annotate_frame_insn): Replace with...
5176         (mips_set_frame_expr): ...this, which just takes one argument.
5177         (mips_frame_set): Change the register argument to an rtx.
5178         (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
5179         check whether moves should be split.  Use mips_split_64bit_move
5180         to split them.  Use mips_subword to generate the high and low
5181         parts of a paired FPR.  Adjust calls to frame_set and
5182         mips_set_frame_expr.
5183         (mips_expand_prologue): Simplify due to above changes.
5184         * config/mips/mips.md:  Add splitters for 64-bit moves on 32-bit
5185         targets, replacing xisting register-only versions.
5186         (UNSPEC_STORE_DF_HIGH): New unspec.
5187         (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
5188         (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
5189         (*paradoxical_extendhidi2): Remove.
5190         (movdi_internal, movdi_internal2): Use mips_output_move.
5191         (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
5192         (movsf_internal1, movsf_internal2): Likewise.
5193         (movdf_internal1a): Likewise.  Fix length and type of f <- G case.
5194         (movdf_internal1b): Use mips_output_move.  Fix type of f <- G case.
5195         (movdf_internal2): Use mips_output_move.  Fix lengths of FPR moves.
5196         Add m <- G alternative.
5197         (load_df_low, load_df_high, store_df_low): New patterns.
5198         (movhi_internal): Use @ template instead of calling a function.
5199         Remove unnecessary 'z' alternatives.
5200         (movqi_internal): Likewise.
5201         (exception_receiver): Update call to mips_restore_gp.
5203 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
5205         * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
5206         (mips_delegitimize_address): Declare.
5207         * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
5208         (FIND_BASE_TERM): Define.
5209         * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
5210         (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
5211         Handle small-data addresses.
5213 2003-05-05  Roger Sayle  <roger@eyesopen.com>
5215         * real.c (real_powi): New function to calculate the value of
5216         a real raised to an integer power, i.e. pow(x,n) for int n.
5217         (real_sqrt): Convert to using the faster do_add, do_multiply
5218         and do_divide API for consistency with the rest of real.c.
5219         * real.h (real_powi): Prototype here.
5220         * builtins.c (fold_builtin):  Avoid local variable mode when
5221         evaluating sqrt at compile time.  Attempt to evaluate pow at
5222         compile-time, by checking for an integral exponent.
5224 2003-05-05  Richard Henderson  <rth@redhat.com>
5226         * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
5228 2003-05-05  David O'Brien  <obrien@FreeBSD.org>
5230         * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
5231         other FreeBSD ports.
5232         (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
5233         (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
5235 2003-05-05  Janis Johnson  <janis187@us.ibm.com>
5237         * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
5238         expanded variables.
5239         * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
5241 2003-05-05  Zack Weinberg  <zack@codesourcery.com>
5243         * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
5244         * varasm.c (struct varasm_status): Add deferred_constants field.
5245         (n_deferred_strings): Delete variable.
5246         (n_deferred_constants): New #define.
5247         (struct constant_descriptor_tree): Kill next and label fields.
5248         (const_hash_table, MAX_HASH_TABLE): Delete.
5249         (const_desc_htab): New static variable.
5250         (const_hash): Rename const_desc_hash, and make it fit the
5251         hashtab.h interface.
5252         (const_desc_eq): New.
5253         (const_hash_1, compare_constant): Const-ify arguments.
5254         (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
5255         SYMBOL_REFs.  Clarify comments.  Don't set desc->label.
5256         (output_constant_def): Do the lookup/insert using the
5257         hashtab.h interface.  Don't muck with n_deferred_constants or
5258         DEFERRED_CONSTANT_P here.
5259         Always call maybe_output_constant_def_contents.
5260         (maybe_output_constant_def_contents): Take a pointer to the
5261         descriptor, not the EXP and RTL separately.  Return
5262         immediately if this constant is not deferred.  Defer output of
5263         everything, except writable string constants.  Update
5264         n_deferred_constants here.
5265         (output_constant_def_contents): Now takes just one argument,
5266         an rtx.  Clear DEFERRED_CONSTANT_P here.
5267         (mark_constant_pool): Update for rename of n_deferred_strings.
5268         (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
5270         (init_varasm_status): Clear p->deferred_constants.
5271         (init_varasm_once): Call htab_create_ggc for const_desc_htab.
5273 2003-05-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5275         * builtins.c (expand_builtin_stpcpy): Only expand when the length
5276         of the source string can be evaluated at compile-time.
5278 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
5280         * testsuite/gcc.c-torture/compile/simd-6.c: New.
5282         * c-typeck.c (digest_init): Handle arrays of vector constants.
5284 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
5286         * builtins.c (expand_builtin_mempcpy): New function.
5287         (expand_builtin_stpcpy): Optimize stpcpy whose return value is
5288         ignored into strcpy no matter what arguments it has.
5289         (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
5290         expand_builtin_mempcpy.
5292 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
5294         * testsuite/gcc.dg/20030505.c: New.
5296         * c-typeck.c (convert_for_assignment): Opaque pointers can
5297         interconvert.
5299         * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
5300         (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
5301         (spe_init_builtins): Rename all pv2si_type_node to
5302         opaque_p_V2SI_type_node.
5303         Remove declaration of pv2si_type_node.
5304         (is_ev64_opaque_type): Accept opaque pointers.
5306 2003-05-05  Geoffrey Keating  <geoffk@apple.com>
5308         * config/rs6000/rs6000.c (validate_condition_mode): Use
5309         flag_finite_math_only.
5310         (rs6000_reverse_condition): Never return UNKNOWN; use
5311         flag_finite_math_only.
5312         (rs6000_generate_compare): Use flag_finite_math_only.
5313         (rs6000_emit_cmove): Handle UNLE.  Support UNEQ under -ffast-math.
5314         Use HONOR_* rather than flag_unsafe_math_optimizations.  Correct
5315         UNGE and GT cases.  Handle UNEQ and LTGT when ! HONOR_NANS.
5317         * toplev.c (check_global_declarations): Suppress not-used warning
5318         for volatile variables.
5320 2003-05-05  Olivier Hainque  <hainque@act-europe.fr>
5322         * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
5323         usage of bitfield instructions for mode1 != BLKmode, only ignoring
5324         SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
5325         (store_field): Likewise.
5327 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
5329         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
5330         evsubifw to builtins accepting 5-bit unsigned constants.
5331         (easy_vector_constant): Return if V1DImode.  Fix typo.
5333 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
5335         * config/rs6000/spe.h: Revert licensing change from last patch.
5337 2003-05-05  DJ Delorie  <dj@redhat.com>
5339         * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
5340         before reload, but defer the split until after.
5341         * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
5342         to match.
5344 2003-05-05  David Edelsohn  <edelsohn@gnu.org>
5346         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
5347         * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
5349 2003-05-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5351         * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
5352         is defined.
5354 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5356         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
5357         ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
5358         ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
5360         (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
5361         ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
5362         ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
5363         New.
5365         * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
5366         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
5368         (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
5369         BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
5370         BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
5371         BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
5372         BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
5373         BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
5374         BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
5375         BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
5376         BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
5377         BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
5378         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
5379         BUILT_IN_STRDUP): Add "nonnull" attribute.
5381 2003-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5383         * expr.c (store_field): Don't clobber TEMP in shift: it might be
5384         a variable.
5385         (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
5386         whose purpose is to step up the alignment.
5387         (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
5389         * stor-layout.c (compute_record_mode): Relax restriction
5390         on fields crossing word boundaries forcing BLKmode.
5392 2003-05-04  Neil Booth  <neil@daikokuya.co.uk>
5394         * cppinit.c (cpp_create_reader, post_options): Warn about
5395         trigraphs unless explicity set or -trigraphs.
5396         * cpplex.c (warn_in_comment): New.
5397         (_cpp_process_line_notes): Better handling of -Wtrigraphs.
5398         (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
5399         * doc/cppopts.texi, doc/cpp.texi: Update.
5401 2003-05-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5403         * Makefile.in (LIBGCOV): Add _gcov_merge_add.
5404         * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
5405         namespace clash.
5406         (GCOV_MERGE_FUNCTIONS): New.
5407         (gcov_merge_fn): Declare.
5408         (struct gcov_ctr_info): New field "merge".
5409         (__gcov_merge_add): Declare.
5410         * coverage.c (ctr_merge_functions): New.
5411         (build_ctr_info_type, build_ctr_info_value): Initialize merge field
5412         of gcov_ctr_info type.
5413         * libgcov.c (__gcov_merge_add): New.
5414         (gcov_exit): Call a hook to merge values of counters.
5416 2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
5418         * toplev.h (pedwarn_with_file_and_line): Don't declare.
5419         * diagnostic.c (pedwarn_with_file_and_line): Remove.
5421 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5423         * varasm.c (assemble_variable): Don't use error_with_file_and_line.
5425 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5427         * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
5428         expand_builtin_frame_address): Update prototypes.
5429         (expand_builtin_constant_p, expand_builtin_strlen,
5430         expand_builtin_strcpy, expand_builtin_memset,
5431         expand_builtin_bzero, expand_builtin_args_info,
5432         expand_builtin_frame_address): Pass in just the argument(s)
5433         needed, not the entire expression `exp'.
5434         (expand_builtin): Update all calls to these functions.
5436 2003-05-03  Richard Henderson  <rth@redhat.com>
5438         * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
5439         <BUILT_IN_DWARF_SP_COLUMN>: New.
5440         * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
5441         (BUILT_IN_DWARF_SP_COLUMN): New.
5442         * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
5443         (expand_builtin_dwarf_sp_column): New.
5444         * except.h: Update to match.
5445         * unwind-dw2.c (execute_stack_op): Correct stack push typo.
5446         (execute_cfa_program): Record location expression address
5447         before extracting length.
5448         (uw_update_context_1): Install old CFA into stack pointer column.
5449         (uw_init_context_1): Set cfa_reg to stack pointer column.
5451 2003-05-03  Richard Henderson  <rth@redhat.com>
5453         * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
5454         return bool.
5455         (toc_relative_expr_p): Likewise.
5456         (SPE_CONST_OFFSET_OK): Move from rs6000.h.
5457         (legitimate_constant_pool_address_p): Move from rs6000.h, change
5458         into a function, downcase all users.
5459         (legitimate_small_data_p): Likewise.
5460         (legitimate_offset_address_p): Likewise.
5461         (legitimate_indexed_address_p): Likewise.
5462         (legitimate_indirect_address_p): Likewise.
5463         (legitimate_lo_sum_address_p): Likewise.
5464         (rs6000_mode_dependent_address): Likewise.
5465         * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
5466         (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
5467         LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
5468         LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
5469         LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
5470         (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
5471         (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
5472         * config/rs6000/rs6000-protos.h: Update.
5474 2003-05-03  Geoffrey Keating  <geoffk@apple.com>
5476         * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
5477         (REVERSE_CONDITION): Define.
5479         * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
5480         to branch_positive_comparison_operator.
5481         (ccr_bit): Check that sCOND conditions are actually a positive bit.
5482         (print_operand): Remove %D substitution.
5483         (rs6000_emit_sCOND): Generate complement operation to ensure that
5484         sCOND input is a positive bit.
5485         * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
5486         same order as bCOND, and add the missing ones.  Remove the %D
5487         substitutions from the scc patterns.
5489         * simplify-rtx.c (simplify_relational_operation): Add case for
5490         ! (fabs(x) < 0.0).
5492 2003-05-03  Bruce Korb  <bkorb@gnu.org>
5494         * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
5495         in fixincl.x
5496         * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
5498 2003-05-03  Aldy Hernandez  <aldyh@redhat.com>
5500         * config/rs6000/spe.h: Remove unecessary casts.  Misc cleanups.
5502 2003-05-03  Zack Weinberg  <zack@codesourcery.com>
5504         PR c/10604
5505         * c-common.c (warn_sign_compare): Initialize to -1.
5506         * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
5507         (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
5508         for C++ only.
5509         (c_common_post_options): Set warn_sign_compare from extra_warnings
5510         if it's still -1 at this point.
5512         * toplev.c (maybe_warn_unused_parameter): New static variable.
5513         (set_Wextra): New static function.
5514         (W_options): Remove "extra".
5515         (decode_W_option): Call set_Wextra.
5516         (independent_decode_option): Likewise.
5517         (set_Wunused): Cooperate with set_Wextra in setting
5518         warn_unused_parameter.
5519         (rest_of_compilation): No need to check extra_warnings as
5520         well as warn_uninitialized.
5522         * c-typeck.c (build_binary_op, build_conditional_expr):
5523         No need to check extra_warnings as well as warn_sign_compare.
5524         (internal_build_compound_expr): No need to check extra_warnings
5525         as well as warn_unused_value.
5526         * function.c (expand_function_end): No need to check extra_warnings
5527         as well as warn_unused_parameter.
5528         * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
5529         as well as warn_unused_value.
5531         * doc/invoke.texi: Clarify documentation of -Wsign-compare.
5533         * Makefile.in: Disable -Werror for gengtype-lex.o.
5535 2003-05-03  Olivier Hainque  <hainque@act-europe.fr>
5537         * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
5538         * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
5539         * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
5540         * calls.c (emit_call_1): Likewise.
5541         (expand_call): For calls initializing constant memory, replace
5542         emission of standalone mem /u clobber with function usage entry.
5543         * expr.c (emit_block_move_via_libcall): Likewise.
5544         * cse.c (count_reg_usage, case EXPR_LIST): New case.
5545         * flow.c (propagate_one_insn): Pass entire operand of
5546         CALL_INSN_FUNCTION_USAGE to mark_used_regs.
5547         * integrate.c (try_constants): For CALL_INSNs, substitute constants
5548         within the FUNCTION_USAGE also.
5549         * loop.c (prescan_loop): Note clobbers of const mem mentioned in
5550         FUNCTION_USAGE lists.
5551         * reload1.c (replace_pseudos_in): Renamed.
5552         (reload): Use it for clobbers surviving until the end of the reload.
5554 2003-05-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5556         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
5557         gen_lowpart on non-integer modes.
5559         * stor-layout.c (place_field): When adjusting offset_align, use
5560         desired_align, not DECL_ALIGN.
5562 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
5564         * c-decl.c (pending_invalid_xref_file): Remove.
5565         (pending_invalid_xref_line): Remove.
5566         (pending_invalid_xref_location): New.
5567         (lookup_label): Use location_t and input_location directly.
5568         (lookup_tag): Likewise.
5569         (pending_xref_error): Likewise.
5570         (c_expand_body_1): Likewise.
5571         * c-common.c (x_expand_start_cond): Likewise.
5572         * c-semantics.c (genrtl_for_stmt): Likewise.
5573         (find_reachable_label): Likewise.
5574         * expr.c (expand_expr): Likewise.
5575         * integrate.c (output_inline_function): Likewise.
5576         * tree-inline.c (find_alloca_call): Likewise.
5577         (find_builtin_longjmp_call): Likewise.
5578         * gcc.c (input_filename): Make static.
5580 2003-05-03  Richard Sandiford  <rsandifo@redhat.com>
5582         * config/mips/mips.md: Fix comment typo.
5584         * config/mips/mips.c (mips_integer_op): New structure.
5585         (MIPS_MAX_INTEGER_OPS): Define.
5586         (mips_const_insns): Use mips_build_integer to determine the number
5587         of instructions needed to load a CONST_INT.
5588         (move_operand): Reject compound CONST_INTs.
5589         (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
5590         (mips_move_integer): New fn.
5591         (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
5592         (mips_legitimize_move): Only legitimize constants when moving
5593         word or subword values.
5595 2003-05-02  Matt Kraai  <kraai@alumni.cmu.edu>
5597         * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
5599 2003-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5601         * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
5602         modifying it.
5604 2003-05-03  Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5605             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5607         * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
5608         Hernandez, and Kazu Hirata.  Update Richard Henderson.
5610 2003-05-02  Geoffrey Keating  <geoffk@apple.com>
5612         * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
5613         to tentative declaration.
5615         * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
5616         (SYMBOL_FLAG_SMALL_V4): Delete.
5617         * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
5618         (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
5619         (rs6000_elf_in_small_data_p): Add extra section names.  Add
5620         comment about TREE_PUBLIC test.
5622         * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
5623         expand_stmt on result of expand_unreachable_stmt.
5625 2003-05-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5627         * doc/contrib.texi (Contributors): Add Daniel Berlin.
5629 2003-05-02  David Edelsohn  <edelsohn@gnu.org>
5631         * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
5632         number of automata.
5634         * config/rs6000/rs6000.c (symbol_ref_operand): Check
5635         SYMBOL_REF_FUNCTION_P on AIX.
5636         (current_file_function_operand): Same.
5637         * config/rs6000/rs6000.md (call,call_value): Force non-function
5638         symbol_ref into register on AIX.
5640 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
5642         * calls.c (struct arg_data): Move offset, slot_offset, size and
5643         alignment_pad to struct locate_and_pad_arg_data.  Update all refs.
5644         (initialize_argument_information): Adjust call to locate_and_pad_parm.
5645         Delete alignment_pad var.  Don't calculate slot_offset here.
5646         (emit_library_call_value_1): Delete alignment_pad, offset and size
5647         vars.  Use struct locate_and_pad_arg_data instead.  Adjust refs.
5648         Adjust call to locate_and_pad_parm.  Don't tweak arg size for
5649         partial in-regs here.  Formatting fixes.
5650         * expr.h (struct locate_and_pad_arg_data): New struct.
5651         (locate_and_pad_parm): Adjust declaration.
5652         * function.c (assign_parms): Localize vars.  Use "locate" instead of
5653         other arg location vars.  Don't invoke FUNCTION_ARG or
5654         FUNCTION_INCOMING_ARG unless pretend_named is different from
5655         named_arg.  Heed MUST_PASS_IN_STACK and set up "partial" before
5656         calling locate_and_pad_parm.  Adjust locate_and_pad_parm call.
5657         Use slot_offset for stack home of reg parms.  Correct test for
5658         parm passed in memory.  Formatting fixes.
5659         (locate_and_pad_parm): Add "partial" to params.  Replace offset_ptr
5660         arg_size_ptr and alignment pad with "locate".  Set slot_offset here.
5661         Correct initial_offset_ptr handling.  Localize vars.  Always pad
5662         locate->offset even when in_regs.
5664 2003-05-02  Nathan Sidwell  <nathan@codesourcery.com>
5666         * Makefile.in (TREE_H): Replace location.h with input.h.
5667         (GTFILES) Remove location.h
5668         (gt-lists.h): Replace gt-location.h with gt-input.h
5669         * input.h (input_filename, input_line): Remove variables.
5670         (location_s, location_t): Move from location.h.
5671         (input_location): New.
5672         (input_filename, input_line): New #defines.
5673         * location.h: Remove.
5674         * tree.h: Replace location.h with input.h.
5675         (input_filename, input_line): Remove.
5676         * diagnostic.h: Replace location.h with input.h.
5677         * gcc.h (input_filename, input_filename_length): Remove declarations.
5678         * toplev.c (input_filename, input_line): Remove.
5679         (input_location): Define.
5680         (push_srcloc, pop_srcloc): Adjust.
5681         * diagnostic.c (diagnostic_report_current_module): Adjust.
5683 2003-05-02  Nick Clifton  <nickc@redhat.com>
5685         * configure.in: Add xstormy16 to list of targets that has a nop
5686         instruction and hence which can be tested to see if the
5687         assembler supports the --gdwarf2 switch.
5688         * configure: Regenerate.
5690 2003-05-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
5692         PR target/8257
5693         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
5694         alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
5695         Avoid undefined shifts by making the shift operand unsigned.
5697 2003-05-01  DJ Delorie  <dj@redhat.com>
5699         * reload.c (find_reloads): Also check that all of a multi-reg
5700         value is in the class.
5702 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
5704         * scan.h (lineno): Revert the rename here.
5706 2003-05-01  Stan Shebs  <shebs@apple.com>
5708         * config/darwin.c (darwin_encode_section_info): Call
5709         default_encode_section_info.
5711 2003-05-01  David Edelsohn  <edelsohn@gnu.org>
5713         * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
5714         (movsi_internal1): Use new mfjmpr attribute.
5715         (movhi_internal): Same.
5716         (movqi_internal): Same.
5717         (movcc_internal1): Same.
5718         (movdi_internal64): Same.
5719         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
5720         power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
5721         * config/rs6000/40x.md: Add fpu_405.
5722         * config/rs6000/power4.md: Merge power4lsu and power4disp automata
5723         into power4misc automata.  Remove extraneous parentheses.
5724         * config/rs6000/440.md: New file.
5725         * config/rs6000/rs6000.c (processor_target_table): Add 440,
5726         440fp.  Rename 405f to 405fp.
5727         (function_arg_padding): Correct formatting.
5728         (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
5730 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
5732         * input.h (lineno): Rename to ...
5733         (input_line): ... here.
5734         * tree.h (lineno): Rename to ...
5735         (input_line): ... here.
5736         * scan.h (lineno): Rename to ...
5737         (input_line): ... here.
5738         * toplev.c (lineno): Rename to ...
5739         (input_line): ... here.
5740         (push_srcloc, pop_srcloc):  Rename lineno to input_line.
5741         * c-common.c (c_expand_start_cond, fname_decl): Likewise.
5742         * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
5743         store_parm_decls, c_expand_body_1): Likewise.
5744         * c-errors.c (pedwarn_c99): Likewise.
5745         * c-format.c (status_warning): Likewise.
5746         * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
5747         * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
5748         * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
5749         * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
5750         gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
5751         genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
5752         genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
5753         build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
5754         prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
5755         * coverage.c (create_coverage): Likewise.
5756         * diagnostic.c (pedwarn, sorry, error, fatal_error,
5757         internal_error, warning, diagnostic_report_current_module,
5758         inform): Likewise.
5759         * expr.c (expand_expr): Likewise.
5760         * integrate.c (expand_inline_function,
5761         output_inline_function): Likewise.
5762         * rtl-error.c (file_and_line_for_asm): Likewise.
5763         * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
5764         walk_tree): Likewise.
5765         * tree.c (make_node): Likewise.
5766         * ada, cp, f, java, objc, treelang: Likewise.
5767         * objc/objc-act.c (objc_init): Rename lineno to input_line.
5768         (build_module_descriptor, build_selector_translation_table,
5769         build_protocol_template, build_method_prototype_list_template,
5770         build_category_template, build_selector_table,
5771         build_class_template, build_super_template, build_ivar_template,
5772         build_ivar_list_template, build_method_list_template,
5773         build_method_template, add_instance_variable): Likewise.
5775         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
5776         name from input_filename.
5778 2003-04-30  Eric Christopher  <echristo@redhat.com>
5779             Richard Sandiford <rsandifo@redhat.com>
5781         * configure: Regenerate from patches below.
5782         * combine.c (gen_lowpart_for_combine): Fix comment and add tests
5783         for all symbolic operands.
5784         * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
5785         to function.
5786         * config/mips/linux.h: Fix typo.
5787         * Merge from mips-3_4-rewrite branch:
5789         2003-04-07  Richard Sandiford  <rsandifo@redhat.com>
5791                 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
5792                 handling local labels when TARGET_ABICALLS.
5794         2003-04-04  Richard Sandiford  <rsandifo@redhat.com>
5796                 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
5797                 integer argument.
5798                 (mips_expand_call): Likewise.
5799                 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
5800                 (FIXED_REGISTERS): Clear $31 entry.
5801                 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
5802                 (EPILOGUE_USES): Define.
5803                 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
5804                 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
5805                 (override_options): Add a 'j' register class.
5806                 (mips_expand_call): Handle sibcalls
5807                 (mips_expand_epilogue): Handle epilogues for sibcalls.
5808                 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
5809                 (sibcall_epilogue): New pattern.
5810                 (call, call_value): Adjust calls to mips_expand_call.
5811                 (sibcall, sibcall_value): New expanders.
5812                 (sibcall_internal, sibcall_value_internal): New patterns.
5813                 (sibcall_value_multiple_internal): New pattern.
5815         2003-03-25  Richard Sandiford  <rsandifo@redhat.com>
5817                 * config/mips/mips.md (extended_mips16): New attribute.
5818                 (define_attr length): Default to 8 if extended_mips16 == yes.
5819                 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
5820                 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
5821                 (call_internal): Set extended_mips16 to yes for direct jumps.
5822                 Remove redundant mode attribute.
5823                 (call_value_internal, call_value_multiple_internal): Likewise.
5824                 (call_split): Remove redundant mode attribute.
5825                 (call_value_split, call_value_multiple_split): Likewise.
5827                 * config/mips/mips.c (mips_symbol_insns): Rework.  Fix handling
5828                 of unaligned offsets.
5830                 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
5831                 of SYMBOL_GENERAL.
5833         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
5835                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
5836                 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
5837                 for mips16 code.
5839         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
5841                 * config/mips/mips.h (ADDRESS_COST): Define.
5843         2003-03-20  Richard Sandiford  <rsandifo@redhat.com>
5845                 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
5846                 'R' to 'U'.  Make 'R' mean a single-instruction memory reference.
5847                 * config/mips/mips.md: Replace 'R' constraints with 'U'.
5849         2003-03-18  Richard Sandiford  <rsandifo@redhat.com>
5851                 * config/mips/mips.md (truncdisi2): Add commentary.  Use sll instead
5852                 of a two-instruction sequence.  Add register->memory alternative.
5853                 (truncdihi2, truncdiqi2): Likewise.
5854                 Rework shift/truncate instructions so that they only handle right
5855                 shifts of 32 (or more, in the case of arithmetic shifts).
5856                 Add patterns for truncate/sign-extend.
5858         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
5860                 * configure.in (mips*-*-*): Check for explicit relocation support.
5861                 * configure: Regenerate.
5863         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
5865                 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
5866                 and -mno-explicit-relocs.
5867                 (MASK_EXPLICIT_RELOCS): Define.
5868                 (TARGET_EXPLICIT_RELOCS): Use it.
5869                 (mips_split_addresses): Remove declaration.
5870                 * config/mips/mips.c (override_options): Update comment for
5871                 mips_split_addresses.  Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
5873         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
5875                 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
5876                 a CONST as identity.  Check the return value of gen_lowpart_common.
5878         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
5880                 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
5881                 references for TARGET_EXPLICIT_RELOCS.
5882                 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
5883                 !TARGET_MIPS16.
5885         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
5887                 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
5888                 (addsi3): Remove redundant constraints.
5889                 (addsi3_internal): Use separate register & constant alternatives.
5890                 Use a 'Q' constraint and "addiu" insn for the latter.
5891                 (adddi3_internal_3, addsi3_internal_2): Likewise.
5893         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
5895                 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
5896                 (mips_expand_unaligned_store): Declare.
5897                 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
5898                 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
5899                 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
5900                 (UNSPEC_ULD, UNSPEC_USD): Remove.
5901                 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
5902                 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
5903                 (extv, extzv): Use mips_expand_unaligned_load.
5904                 (insv): Use mips_expand_unaligned_store.  Use a reg_or_0_operand
5905                 predicate for operand 3.
5906                 (movsi_ulw, movsi_usw): Replace with...
5907                 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
5908                 (movdi_uld, movdi_usd): Likewise replace with...
5909                 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
5911         2003-02-26  Richard Sandiford  <rsandifo@redhat.com>
5913                 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
5914                 * config/mips/mips.h (LEA_REGS): New register class.
5915                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
5916                 (GR_REG_CLASS_P): Include LEA_REGS.
5917                 (DANGEROUS_FOR_LA25_P): New macro.
5918                 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
5919                 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
5920                 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
5921                 entries to LEA_REGS.
5922                 (mips_global_pic_constant_p): New function.
5923                 (override_options): Add 'e' register constraint.
5924                 (mips_secondary_reload_class): Return LEA_REGS when reloading
5925                 a dangerous constant into a class containing $25.
5926                 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
5927                 (movsi_internal): Likewise.
5929         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
5931                 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
5932                 * config/mips/mips.md (call_split): New insn.
5933                 (call_value_split, call_value_multiple_split): New insns.
5934                 (call_internal): Turn into a define_insn_and_split.  Split the
5935                 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
5936                 (call_value_internal, call_value_multiple_internal): Likewise.
5938         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
5940                 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
5941                 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
5942                 (mips_encode_section_info): Don't take symbol visibility into
5943                 account if TARGET_ABICALLS.  Add more commentary.
5944                 * config/mips/mips.md: Add commentary above reloc constants.
5946         2003-02-12  Richard Sandiford  <rsandifo@redhat.com>
5948                 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
5949                 from mips_legitimize_move.  Legitimize constant pool references.
5950                 (mips_legitimize_move): Call mips_legitimize_const_move.  Attach
5951                 a REG_EQUAL note to the last instruction.
5953         2003-02-11  Richard Sandiford  <rsandifo@redhat.com>
5955                 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
5956                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
5957                 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
5958                 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
5959                 * config/mips/mips.md (UNSPEC_HIGH): New constant.
5960                 (UNSPEC_RELOC_GPREL16): Rename to...
5961                 (RELOC_GPREL16): ...this.
5962                 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
5963                 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
5964                 (macro_calls): New attribute.
5965                 (length): Use it to set the default length of calls.  Don't allow
5966                 calls to have delay slots if macro_calls is "yes".
5967                 (luisi, luidi): New patterns.
5968                 (lowsi, lowdi): Use '%R' to print the relocation.
5969                 (lowdi_extend): Remove.
5970                 (loadgp): Remove mode from operand 0.  Use '%0' instead of '%a0'.
5971                 (call_internal): Merge alternatives.  Always use "jal".
5972                 (call_value_internal, call_value_multiple_internal): Likewise.
5973                 (reloc_gprel16): Remove.
5974                 * config/mips/mips.c (mips_got_alias_set): New variable.
5975                 (mips_classify_constant): Handle the new relocation constants.
5976                 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
5977                 (mips_symbolic_address_p): Return false if generating explicit relocs.
5978                 Otherwise allow local PIC symbols to have an offset.
5979                 (mips_splittable_symbol_p): New function.
5980                 (mips_classify_address): Use it to check whether a LO_SUM is valid.
5981                 (mips_const_insns): Always accept HIGH.
5982                 (call_insn_operand): Don't accept global symbols if using explicit
5983                 relocs.
5984                 (move_operand): Don't accept HIGH when generating PIC.
5985                 (mips_reloc, mips_lui_reloc): New functions.
5986                 (mips_force_temporary): Remove MODE argument.  Expect VALUE to
5987                 be a valid right-hand-side for a SET pattern.
5988                 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
5989                 (mips_emit_high): New function.
5990                 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
5991                 case.  Use mips_splittable_symbol_p to check whether a LO_SUM
5992                 address should be used.  Use mips_emit_high to generate the
5993                 high part of such an address.  Adjust the global symbol + offset
5994                 case to match the change to mips_force_temprorary.
5995                 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
5996                 If generating explicit-reloc PIC, load the address of global
5997                 symbols from the GOT.  Use mips_emit_high to emit the high part
5998                 of an address.
5999                 (mips_simplify_dwarf_addr): New function.
6000                 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
6001                 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
6002                 (mips_expand_call): Load the addresses of global functions using
6003                 %call* relocs if generating explicit-reloc PIC.  Don't generate
6004                 an exception_receiver pattern.
6005                 (override_options): Initialize mips_got_alias_set.
6006                 (print_relocation): Remove in favor of...
6007                 (mips_reloc_string): ...this new function.
6008                 (print_operand): Handle '%R'.  Use mips_reloc_string.
6009                 (print_operand_address): Use print_operand to print the symbolic
6010                 part of a LO_SUM address.
6011                 (mips_output_function_prologue): Use .cprestore, reverting last patch.
6012                 (mips_encode_section_info): Factor out DECL_RTL accesses.  Reverse
6013                 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
6014                 for local symbols.
6016         2003-02-02  Eric Christopher  <echristo@redhat.com>
6018                 * config/mips/mips.c (mips_sign_extend): Remove.
6019                 * config/mips/mips-protos.h: Ditto.
6020                 * config/mips/mips.md (movdi_internal2_extend): Remove.
6021                 (extendsidi2): Fix mode of convert_memory_address.
6023         2003-01-24  Eric Christopher  <echristo@redhat.com>
6025                 * config/mips/mips.md: Rewrite zero_extend* and extend*
6026                 patterns. Use explicit instructions and split after reload
6027                 for register extensions.
6028                 (ashlsi3_internal1_extend): New combiner pattern for
6029                 shift and extend combinations.
6030                 * config/mips/mips.h: Change Pmode back to ptr_mode
6031                 for performance enhancement.
6032                 * combine.c (expand_compound_operation): Make sure
6033                 that zero_extend operation is profitable.
6035         2003-01-14  Richard Sandiford  <rsandifo@redhat.com>
6037                 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
6038                 addresses depend on ptr_mode rather than Pmode.
6039                 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
6040                 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
6041                 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
6042                 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
6043                 * config/mips/mips.md (tablejump): Likewise.  Remove Pmode
6044                 condition for selecting cpaddsi or cpadddi: use cpadd instead.
6045                 (tablejump_internal1): Remove condition.
6046                 (tablejump_internal2): Change condition to TARGET_64BIT.
6047                 (cpaddsi): Rename to...
6048                 (cpadd): ...this.
6049                 (cpadddi): Remove.
6051         2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
6053                 * config/mips/mips-protos.h (mips16_constant_after_function_p,
6054                 mips_address_cost, mips_check_split, double_memory_operand,
6055                 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
6056                 pic_address_needs_scratch, symbolic_operand): Remove declarations.
6057                 (mips_legitimate_address_p): Return bool.
6058                 (mips_address_insns, mips_fetch_insns, mips_const_insns,
6059                 mips_legitimize_address, mips_legitimize_move,
6060                 mips_expand_call): Declare.
6061                 (mips_return_addr): Move outside #ifdef RTX_CODE.
6063                 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
6064                 (PIC_FN_ADDR_REG): New reg_class.
6065                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
6066                 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
6067                 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
6068                 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
6069                 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
6070                 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
6071                 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
6072                 (LEGITIMATE_PIC_OPERAND): Undefine.
6073                 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
6074                 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
6075                 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
6076                 (FUNCTION_MODE): Change to SImode.
6077                 (CONST_COSTS): Use mips_const_insns to calculate the cost of
6078                 most constants.  Treat const_artih_operands specially if they
6079                 occur in a PLUS or MINUS.
6080                 (CONSTANT_POOL_COST): New macro.
6081                 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
6082                 Add LO_SUM handling.
6083                 (ADDRESS_COST): Undefine.
6084                 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
6085                 Add CONST to the list of codes for arith_operand.  Add LABEL_REF
6086                 to call_insn_operand and remove CONST_INT.
6088                 * config/mips/mips.c: Include integrate.h.
6089                 (SINGLE_WORD_MODE_P): New macro.
6090                 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
6091                 (mips_constant_info, mips_address_info): New structs.
6092                 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
6093                 (mips_classify_constant, mips_classify_symbol,
6094                 mips_valid_base_register_p, mips_symbolic_address_p,
6095                 mips_classify_address, mips_symbol_insns,
6096                 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
6097                 mips_fetch_insns, mips_force_temporary, mips_add_offset,
6098                 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
6099                 mips_print_relocation): New functions.
6100                 (const_arith_operand): New operand predicate.
6101                 (arith_operand): Use it.
6102                 (mips_const_double_ok, mips16_simple_memory_operand,
6103                 simple_memory_operand, double_memory_operand, mips_check_split,
6104                 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
6105                 mips16_gp_offset_p, mips16_output_gp_offset,
6106                 mips16_constant_after_function_p, mips16_constant): Remove.
6107                 (call_insn_operand): Be more fussy about symbolic constants.
6108                 Use register_operand.
6109                 (move_operand): Use mips_symbolic_address_p to check symbolic
6110                 operands and general_operand to check the rest.
6111                 (symbolic_operand): Use mips_classify_constant.
6112                 (mips_legitimate_address_p): Use mips_classify_address.
6113                 (mips_move_1word): Combine handling of symbolic addresses.
6114                 Remove special treatment of gp-relative loads for TARGET_MIPS16.
6115                 (move_move_2words): Likewise.  Assume addresses are offsettable
6116                 if they need to refer to more than one word.  Add HIGH handling.
6117                 (mips_restore_gp): Use ptr_mode for the GP save slot.
6118                 (mips_expand_call): New function, combining the old mips.md
6119                 call and call_internal define_expands.  If the address isn't
6120                 a call_insn_operand, force it into a register.  For SVR4 PIC,
6121                 emit an exception_receiver instruction after the call.
6122                 (override_options): Only override flag_pic for TARGET_ABICALLS
6123                 if it is currently zero.  Allow mips_split_addresses when
6124                 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
6125                 Add new register class letter, 'c'.
6126                 (print_operand): Use mips_classify_constant for constant operands.
6127                 (print_operand_address): Use mips_classify_address.
6128                 (mips_output_function_prologue): Don't use .cprestore.
6129                 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
6130                 via the frame pointer if current_function_calls_eh_return.
6131                 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
6132                 to mark whether a symbol is local or global.
6133                 (build_mips16_call_stub): Expect the address of the function rather
6134                 than a MEM reference to it.  Update call generation sequences.
6135                 (mips16_optimize_gp): Remove Pmode checks.  Temporarily disable
6136                 small-data adjustments.
6138                 * config/mips/mips.md: Remove 'R'/'m' memory distinction.  Use default
6139                 length for loads and stores.
6140                 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
6141                 (define_attr type): Add const and prefetch.
6142                 (define_attr length): Use mips_const_insns for const instructions.
6143                 Use mips_fetch_insns for load and store instructions.
6144                 (define_attr single_insn): New.
6145                 (define_attr can_delay): Use it.
6146                 (define_attr abicalls): Remove.
6147                 (define_delay): Use can_delay.  Always allow calls to have delay slots.
6148                 (addsi3_internal_2): Add 'Q' constraint.
6149                 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
6150                 (high): Remove.
6151                 (lowsi): Renamed from low.
6152                 (lowdi): New pattern.
6153                 (movdi, movsi): Use mips_legitimize_move.  Remove define_split.
6154                 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
6155                 (loadgp): Change operand 0 to an immediate_operand.
6156                 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
6157                 beforehand.
6158                 (cpaddsi, cpadddi): New patterns.
6159                 (tablejump_internal3, tablejump_internal4): Remove define_expands
6160                 and associated define_splits.
6161                 (call, call_value): Use mips_expand_call.
6162                 (call_internal): New, replacing all existing call_internal* insns.
6163                 (call_value_internal): Likewise call_value_internal*.
6164                 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
6165                 (untyped_call): Remove if (operands[0]) magic.
6166                 (prefetch_si_address, prefetch_si): Change type to "prefetch".
6167                 (prefetch_di_address, prefetch_di): Likewise.
6168                 (leasi, leadi): Remove.
6169                 (reloc_gprel16): New.
6171                 * config/mips/5400.md (ir_vr54_hilo): Include const type.
6172                 * config/mips/5500.md (ir_vr55_hilo): Likewise.
6173                 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
6175         2003-01-08  Eric Christopher  <echristo@redhat.com>
6177                 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
6178                 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
6179                 configure check for libgloss.
6180                 * config/mips/elf64.h: Ditto.
6181                 * config/mips/mips.c: Remove ABI_MEABI.
6182                 * config/mips/mips.h: Ditto.
6184         2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
6186                 Fix merge fallout.
6187                 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
6188                 (muldi3_internal): Remove outdated comment.
6189                 (*muls_di, *umuls_di): Fix comment and 64-bitness.
6190                 (*smsac_di, *umsac_di): Likewise.  Reformat.
6191                 (umulsi3_highpart): Minor formatting tweaks.
6192                 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.  Remove
6193                 redundant scratch operand.  Minor formatting tweak.
6194                 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
6195                 (umulsi3_highpart_neg_mulhi_internal): Likewise.  Fix asm template.
6196                 (smulsi3_highpart): As for the unsigned version.
6197                 (smulsi3_highpart_internal): Likewise.
6198                 (smulsi3_highpart_mulhi_internal): Likewise.
6199                 (smulsi3_highpart_neg_mulhi_internal): Likewise.
6200                 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
6201                 (*smul_acc_di): Remove duplicated pattern.
6202                 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
6203                 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
6204                 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
6206         2002-10-22  Eric Christopher  <echristo@redhat.com>
6208                 * config/mips/mips-protos.h (mips_return_addr): New.
6209                 * config/mips/mips.c (mips_return_addr): New.
6210                 (movdi_operand): Remove.
6211                 (se_register_operand): Ditto.
6212                 (se_reg_or_0_operand): Ditto.
6213                 (se_uns_arith_operand): Ditto.
6214                 (se_arith_operand): Ditto.
6215                 (se_nonmemory_operand): Ditto.
6216                 (extend_operator): Ditto.
6217                 (highpart_shift_operator): Ditto.
6218                 (mips_initial_elimination_offset): Remove return address pointer
6219                 elimination.
6220                 (mips_reg_names): Remove $ra.
6221                 (mips_regno_to_class): Ditto.
6222                 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
6223                 and TARGET_64BIT.
6224                 (POINTER_BOUNDARY): Remove.
6225                 (POINTERS_EXTEND_UNSIGNED): Define to 0.
6226                 (PROMOTE_MODE): Promote to Pmode.
6227                 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
6228                 (Pmode): Define to TARGET_64BIT.
6229                 (FUNCTION_MODE): Define as Pmode.
6230                 (mips_args): Remove deleted functions.
6231                 (SIZE_TYPE): Depend on POINTER_SIZE.
6232                 (PTRDIFF_TYPE): Ditto.
6233                 (FIXED_REGISTERS): Fix extra registers.
6234                 (CALL_USED_REGISTERS): Ditto.
6235                 (CALL_REALLY_USED_REGISTERS): Ditto.
6236                 (RAP_REG_NUM): Remove.
6237                 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
6238                 (RETURN_ADDR_RTX): Define to mips_return_addr.
6239                 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
6240                 (CAN_ELIMINATE): Ditto.
6241                 * config/mips/mips.md: For DImode patterns, take into account
6242                 deletions above. Split mulsidi patterns into sign_extend and
6243                 zero_extend.
6245         2002-10-16  Richard Sandiford  <rsandifo@redhat.com>
6246                     Michael Meissner  <meissner@redhat.com>
6248                 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
6249                 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
6250                 mop up unnecessarly moves through LO.
6251                 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
6252                 (*macc): New pattern for ISA_HAS_MACC.  Add define_peephole2s to
6253                 change mtlo/macc sequences into mul/add sequences when a three-
6254                 address mul is available.
6255                 (*macc2): New pattern.  Add a define_peephole2 to generate it.
6256                 (*mul_sub_si): Fix contraint for operand 5.
6257                 (*muls): Use in 32-bit code as well.
6258                 (*msac): Likewise.  Use msub instead of msac in vr5500 code
6259                 if the destination is LO.  Remove duplicate define_split.
6260                 (*muls_di): Use only in 32-bit code.  Adjust rtl accordingly.
6261                 (*msac_di): Likewise.  Fix formatting.
6262                 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
6263                 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
6264                 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
6265                 (*xmulsi3_neg_highpart_mulhi): Likewise.
6266                 (*mul_acc_64bit_di): Remove.
6267                 (*mul_acc_di): Use only in 32-bit code.  Handle ISA_HAS_MACC as well.
6269         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
6271                 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
6272                 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
6273                 (MULTILIB_DIRNAMES): Remove long32.
6274                 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
6275                 (MULTILIB_REDUNDANT_DIRS): Remove.
6277         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
6279                 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
6280                 * gcc.c (driver_self_specs): New variable.
6281                 (do_self_spec): New function.
6282                 (main): Use it to process driver_self_specs.
6284         2002-10-09  Richard Sandiford  <rsandifo@redhat.com>
6286                 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
6287                 Remove DImode define_split for !TARGET_64BIT.
6288                 (anddi3): Remove !TARGET_64BIT support from here as well.
6289                 Change operand 2's predicate to se_uns_arith_operand.
6290                 Add constant alternatives to define_insn.
6291                 (iordi3, xordi3, *nordi3): Likewise.
6292                 (anddi3_internal1, xordi3_immed): Remove.
6294         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
6296                 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
6297                 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
6298                 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
6299                 * config/mips/mips.md: Apply same renaming here.
6301         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
6303                 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
6304                 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
6305                 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
6306                 * config/mips/mips.md (define_attr cpu): Remove r4320.
6307                 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
6309         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
6311                 * config/mips/mips.c (mips16_strings): New variable.
6312                 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
6313                 symbol in mips16_strings.  Free the list.
6314                 (mips_encode_section_info): Keep track of local strings.
6316         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
6318                 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
6319                 (sordered_df, sordered_sf): Remove.
6320                 * config/mips/mips.c (get_float_compare_codes): New fn.
6321                 (gen_int_relational, gen_conditional_move): Use it.
6323         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
6325                 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
6326                 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
6327                 * config/mips/mips.c (fcc_register_operand): New function.
6328                 (mips_emit_fcc_reload): New function, extracted from reload_incc.
6329                 (override_options): Allow TFmode values in float registers
6330                 if ISA_HAS_8CC.
6331                 * cnfig/mips/mips.md (reload_incc): Change destination prediate
6332                 to fcc_register_operand.  Remove misleading source constraint.
6333                 Use mips_emit_fcc_reload.
6334                 (reload_outcc): Duplicate reload_incc.
6337 2003-04-30  Diego Novillo  <dnovillo@redhat.com>
6339         * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
6341 2003-04-30  Geoffrey Keating  <geoffk@apple.com>
6343         * tree-inline.c (inlinable_function_p): Back out last change, it's
6344         unnecessary.
6346 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
6348         * ggc-page.c (TREE_EXP_SIZE): Define.
6349         (extra_order_size_table): New entry for expr trees with
6350         two operands.
6352 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
6354         * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
6355         (c_expand_start_cond): Adjust.
6356         (c_expand_end_cond): Don't use warning_with_file_and_file.
6357         (shadow_warning): Likewise.
6359 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
6361         * tree.h (DECL_POINTER_DEPTH): Remove.
6362         (struct tree_decl): Remove pointer_depth.
6364 2003-04-30  Janis Johnson  <janis187@us.ibm.com>
6366         * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
6367         * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
6368         (rs6000_xcoff_encode_section_info): Remove.
6369         (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
6370         (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
6371         (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
6372         Use SYMBOL_REF_FLAGS.
6373         (rs6000_elf_encode_section_info): Call default_encode_section_info for
6374         generic flags, use SYMBOL_REF_FLAGS; code cleanups.
6375         * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
6376         (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
6377         * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
6378         (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
6380 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
6382         * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
6384 2003-04-30  Andreas Schwab  <schwab@suse.de>
6386         * doc/extend.texi (Other Builtins): Enclose multiple word data
6387         type in braces for @deftypefn.
6389 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6391         * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
6393         * doc/install.texi (--enable-threads): Document "gnat" option.
6395 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
6397         * diagnostic.h (output_formatted_scalar): Tweak.
6398         * diagnostic.c (output_long_decimal): Likewise.
6399         (output_unsigned_decimal): Likewise.
6400         (output_long_unsigned_decimal): Likewise.
6401         (output_octal): Likewise.
6402         (output_long_octal): Likewise.
6403         (output_hexadecimal): Likewise.
6404         (output_long_hexadecimal): Likewise.
6405         (output_pointer): New function.
6406         (output_format): Use it.  Recognize "%p" format specifier.
6408 2003-04-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6410         * function.c (purge_addressof_1): Postpone insn in fewer cases.
6412 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
6414         * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
6415         call abort() after running out of stack space.
6417         * c-typeck.c (function_types_compatible_p): Ignore incompatible
6418         'volatile' qualifiers on a function's return type in GNU mode.
6420 2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
6422         * expr.c (emit_group_load): Dump parallels of simd types to
6423         memory.
6425 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
6427         * genautomata.c (add_vect): Check undefined value for range type
6428         too.
6430 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
6432         * configure.in:  More general test for cmp --ignore-initial.
6433         * configure:  Regenerate.
6435 2003-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6437         * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
6438         (layout_decl, place_field): Likewise.
6439         Also make minor type and whitespace changes.
6441         * tree.c (save_expr): Don't fold a COMPONENT_REF.
6443 2003-04-29  Olivier Hainque <hainque@act-europe.fr>
6445         * calls.c (expand_call): When modes of target and valreg match, force
6446         sibcall failure when target is a MEM.
6448 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
6450         * tree-inline.c (inlinable_function_p): Don't support inlining
6451         functions using varargs.
6453         * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
6455         * dwarf2out.c (output_call_frame_info): No need to output EH
6456         unwind information if all_throwers_are_sibcalls.
6458         * c-semantics.c (expand_unreachable_stmt): Return a tree.
6459         (expand_stmt): Update for change to expand_unreachable_stmt.
6460         (expand_unreachable_if_stmt): Likewise.
6462         * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
6464 2003-04-29  Jason Merrill  <jason@redhat.com>
6466         PR middle-end/10336
6467         * jump.c (never_reached_warning): Really stop looking if we reach
6468         the beginning of the function.
6470 2003-04-29  Bob Wilson  <bob.wilson@acm.org>
6472         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
6473         Remove redundant macros.
6474         (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
6475         (LOCAL_LABEL_PREFIX): Define unconditionally.
6476         (NO_DOT_IN_LABEL): Clarify comment.
6477         * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
6478         definition to "long int".
6480 2003-04-29  Alexander Kabaev  <kan@FreeBSD.ORG>
6482         bootstrap/10452
6483         * gengtype-yacc.y: Improve portability.
6485 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
6487         * config.gcc: Install obsolete target list for GCC 3.3.
6488         * doc/install.texi: Mention in specific-target instructions
6489         that certain configurations are deprecated.
6491 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
6493         * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
6495 2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
6497         * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
6498         * gcc.c (display_help): Likewise.
6499         * toplev.c (f_options): Likewise.
6500         * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
6501         * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
6502         * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
6503         * config/s390/s390.h (TARGET_SWITCHES): Likewise.
6504         * config/v850/v850.h (TARGET_SWITCHES): Likewise.
6506 2003-04-29  J"orn Rennecke <joern.rennecke@superh.com>
6508         * varasm.c (default_assemble_visibility): Use assemble_name.
6510 2003-04-29  David O'Brien  <obrien@FreeBSD.org>
6512         * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
6513         * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
6514         (SIZE_TYPE): New macro.
6515         * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
6516         (SET_ASM_OP): New macro.
6517         (HANDLE_SYSV_PRAGMA): New macro.
6518         (ASM_WEAKEN_LABEL): New macro.
6520 2003-04-28  Mark Mitchell  <mark@codesourcery.com>
6522         PR c++/10180
6523         * tree-inline.c (expand_call_inline): Call push_srcloc when
6524         encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.
6526 2003-04-28  Mike Stump  <mrs@apple.com>
6528         * gdbinit.in: Update to reflect new identifier structure.
6530 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
6532         * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
6533         (struct tree_int_cst, struct tree_real_cst, struct tree_string,
6534         struct tree_complex, struct tree_vector): Remove RTL field.
6535         (CONSTRUCTOR_ELTS): Use elt 0.
6536         * tree.def (CONSTRUCTOR): Delete first of its two operands.
6537         * varasm.c (output_constant_def): Remove early exit if
6538         TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
6539         (decode_addr_const): Don't mention TREE_CST_RTL in comment.
6540         * target.h (select_section): Don't mention TREE_CST_RTL in comment.
6541         * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
6543 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
6545         * c-decl.c (finish_decl): When prototype with asmspec is found
6546         for built-in, adjust built_in_decls as well as expr.c decls.
6547         * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
6548         (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
6549         * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
6551 2003-04-28  Richard Henderson  <rth@redhat.com>
6553         * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
6554         * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
6555         integral constant mult operand.
6556         (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
6557         (const_smulsi3_highpart_v8plus): Likewise.
6558         (const_smulsi3_highpart): Likewise.
6559         (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
6560         (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
6561         (const_umulsi3_highpart_v8plus): Likewise.
6562         (const_umulsi3_highpart): Likewise.
6564 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
6566         * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
6567         Define as 1.
6569 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
6571         * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
6573 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
6575         * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
6576         * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
6577         * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
6578         functions.
6579         (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
6581 2003-04-28  Nick Clifton  <nickc@redhat.com>
6583         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
6585 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
6587         * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
6588         output_constant_def, use its result instead of TREE_CST_RTL (exp).
6589         Can assume it has the form (mem (symbol_ref ".LCxxx")).
6590         (expand_expr <COMPONENT_REF>): Can always just extract the
6591         relevant field of a CONSTRUCTOR.
6592         (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
6593         ARRAY_RANGE_REF>): Make control flow explicit.
6594         * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
6595         an INTEGER_CST.
6597 2003-04-27  Kazu Hirata  <kazu@cs.umass.edu>
6599         * reload1.c (reg_set_luid): Fix a comment typo.
6601 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
6603         * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
6604         struct deferred_string, const_str_htab): Kill.
6605         (n_deferred_strings): New static variable.
6606         (build_constant_desc): Set SYMBOL_REF_DECL of the new
6607         symbol_ref to point to the constant.
6608         (output_constant_def): When a deferred string is forced out,
6609         just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
6610         (mark_constant): Likewise.
6611         (maybe_output_constant_def_contents): When deferring a string
6612         constant, just set STRING_POOL_ADDRESS_P and increment
6613         n_deferred_strings.
6614         (mark_constant_pool): Check n_deferred_strings, not the size
6615         of const_str_htab.
6616         (init_varasm_once): No need to create const_str_htab.
6618         * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
6619         SYMBOL_REF_DECL points to a constant.
6621 2003-04-26  Zack Weinberg  <zack@codesourcery.com>
6623         * varasm.c (output_constant_def): Split out two new static
6624         functions, build_constant_desc and maybe_output_constant_def_contents.
6625         Restructure for comprehensibility.  Don't call
6626         output_addressed_constants.  Treat defstr being non-NULL for
6627         STRING_POOL_ADDRESS_P constants as an invariant.
6628         (struct deferred_string): Remove labelno field.
6629         (output_constant_def_contents): Kill labelno argument. Call
6630         output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
6631         asm_out.internal_label.
6632         (mark_constant): Update call to output_constant_def_contents.
6633         Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
6634         constants as an invariant.
6636 2003-04-26  Richard Henderson  <rth@redhat.com>
6638         * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
6639         (ix86_expand_call, ix86_rtx_consts): Likewise.
6641 2003-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6643         * doc/md.texi (cmpstr): Document additional restrictions.
6645 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
6647         * flags.h (time_report): Remove.
6648         * timevar.c (timevar_enable): New.
6649         (TIMEVAR_ENABLE): Remove, use timevar_enable.
6650         (timevar_init): Rename from init_timevar.
6651         * timevar.h (timevar_init): Rename from init_timevar.
6652         * toplev.c (time_report): Make static.
6653         (do_compile): Conditionally call init_timevar first.
6654         (preprocess_options): Move some code to do_compile.
6656 2003-04-26  Stephane Carrez  <stcarrez@nerim.fr>
6658         * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
6660 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
6662         * _cpp_lex_direct: Remove pointless code.
6664 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
6666         * doc/extend.texi (Function Attributes): Document "near" and "far"
6667         for 68HC11 and 68HC12.
6669 2003-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6671         * expr.c (store_field): When making temporary for store, don't
6672         make it TYPE_QUAL_CONST.
6674 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
6676         * toplev.c (read_integral_parameter):  Use "argument" in error
6677         message to distinguish it from actual invalid options.
6679 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
6681         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
6682         addition of __PIC__ and __pic__ macros.
6683         * config/xtensa/xtensa.h: Clean up indentation.
6685 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
6687         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
6688         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
6689         (SUBTARGET_CPP_SPEC): Define.
6690         (LIB_SPEC): Delete.
6691         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
6692         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
6693         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
6694         Define.
6695         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6696         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
6698 2003-04-25  H.J. Lu <hjl@gnu.org>
6700         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
6701         for return mode.
6702         (ia64_expand_builtin): Set rmode to SImode for
6703         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
6704         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
6705         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
6706         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
6708 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
6710         * configure.in (make_compare_target):  Test for GNU cmp and set this
6711         variable appropriately.
6712         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
6713         compare4-lean): Rename actual targets to slowcompare*.  New compare*
6714         targets depend on names based on make_compare_target.
6715         * configure:  Regenerated.
6717 2003-04-25  Richard Henderson  <rth@redhat.com>
6719         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
6720         to clobber ar.pfs and ar.unat.
6721         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
6722         fix test for spilling ar.pfs to the stack.
6724 2003-04-25  Richard Henderson  <rth@redhat.com>
6726         PR opt/10315
6727         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
6728         checks during reload; use validize_mem instead of adjust_address.
6730 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
6732         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
6733         return values from recog_memoized().
6735 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6737         PR opt/8705
6738         * gcse.c (try_replace_reg): On a successful substitution of a constant
6739         into a single set, try to simplify the source of the set.
6740         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
6741         constant source.
6743 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
6745         * cpplex.c (cpp_token_len): Tighten up.
6746         (cpp_token_as_text): Need extra byte now.
6747         * cpplib.c (glue_header_name): Need extra 2 bytes.
6748         * cppmacro.c (cpp_macro_definition): Need extra byte.
6750 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
6752         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
6753         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
6754         where they might be not present. Use their _sp64 equivalent
6755         instead.
6757 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
6759         * i386.md (cvtsi2sdq): Fix typo in previous patch.
6761 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
6763         * configure.in: Check whether mbstowcs works.
6764         * configure, config.in: Regenerate.
6765         * intl.c: Use HAVE_WORKING_MBSTOWCS.
6767 2003-04-24  H.J. Lu <hjl@gnu.org>
6769         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
6770         for __sync_bool_compare_and_swap_di for int return type.
6772         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
6773         Change return type to int.
6774         (__sync_bool_compare_and_swap): Likewise.
6776 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
6778         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
6779         looking for fallthru edge.
6781         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
6782         Fix.
6783         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
6784         athlon-fvector): New.
6785         (athlon_*): Revisit to match new optimization guide.
6786         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
6787         * i386.md (cvt??2?? patterns): Fix modes.
6788         (fistp patterns): Set modes.
6790         Accidentaly commited with my earlier reload patch:
6791         PR c/10308
6792         * reload.c (find_reloads_address_1): Reload plus at the place of
6793         index register.
6795 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
6797         New GCOV_TAG_FUNCTION layout
6798         * coverage.c (struct function_list): Replace name with ident.
6799         (struct counts_entry): Likewise.
6800         (fn_ident): New.
6801         (htab_counts_entry_hash, htab_counts_entry_eq,
6802         htab_counts_entry_del): Adjust.
6803         (reads_count_file, get_coverage_counts,
6804         coverage_begin_output, coverage_end_function): Adjust.
6805         (build_fn_info_type, build_fn_info_value): Likewise.
6806         * gcov-dump.c (tag_function): Adjust.
6807         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
6808         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
6809         * gcov.c (struct function_info): Add ident.
6810         (read_graph_file, read_count_file): Adjust.
6811         * libgcov.c (gcov_exit): Adjust.
6813 2003-04-23  Richard Henderson  <rth@redhat.com>
6815         PR opt/8300
6816         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
6817         after initialize_uninitialized_subregs; update reg info assuming
6818         new pseudos were created.
6820 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
6822         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
6823         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
6824         (lex_string): Take cpp_string with full spelling.
6825         (cb_ident): Update.
6826         (c_lex): Update diagnostics.
6827         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
6828         (create_literal): New.
6829         (lex_string): Unterminated literals have type CPP_OTHER.
6830         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
6831         for CPP_OTHER.
6832         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
6833         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
6834         * cpplib.c (parse_include, do_line, do_linemarker,
6835         destringize_and_run): Update for token storing full spelling.
6836         * cpplib.h: Update token spelling types.
6837         * cppmacro.c (stringify_arg, check_trad_stringification):
6838         Update for token storing full spelling.
6840 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
6842         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
6844 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
6846         * arm.h (TARGET_OPTIONS): Add value field.
6848 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
6850         * doc/extend.texi: Remove duplicate 2003 copyright date.
6852 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
6854         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
6855         (libgcov.a): Depends on LIBGCC_DEPS.
6856         * basic-block.h (profile_info): Moved here from coverage.h. Made
6857         a pointer.
6858         * coverage.c (struct function_list): Fixed array of counter types.
6859         (struct counts_entry): Keyed by counter type, contains summary.
6860         (profile_info): Moved to profile.c.
6861         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
6862         vars.
6863         (profiler_label): Remove.
6864         (ctr_labels): New.
6865         (set_purpose, label_for_tag, build_counter_section_fields,
6866         build_counter_section_value, build_counter_section_data_fields,
6867         build_counter_section_data_values, build_function_info_fields,
6868         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
6869         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
6870         build_ctr_info_value, build_gcov_info): New.
6871         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
6872         (reads_counts_file): Adjust.
6873         (get_coverage_counts): Takes counter number. Add summary
6874         parameter. Adjust.
6875         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
6876         create counter array labels.
6877         (coverage_end_function): Adjust.
6878         (create_coverage): Adjust.
6879         (find_counters_section): Remove.
6880         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
6881         (struct section_info, struct profile_info): Remove.
6882         (profile_info): Moved to basic-block.h.
6883         (coverage_counter_ref): Takes a counter number.
6884         (get_coverage_counts): Takes a counter number. Added summary
6885         parameter.
6886         (find_counters_section): Remove.
6887         * gcov-dump.c (tag_arc_counts): Rename to ...
6888         (tag_counters): ... here. Adjust.
6889         (tag_table): Move tag_counters to 3rd entry. Remove
6890         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
6891         (dump_file): Check for counter tag values here.
6892         (tag_summary): Adjust.
6893         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
6894         * gcov-io.h (GCOV_LOCKED): New.
6895         (GCOV_TAG_ARC_COUNTS): Rename to ...
6896         (GCOV_TAG_COUNTS_BASE): ... here.
6897         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
6898         Remove.
6899         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
6900         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
6901         GCOV_TAG_IS_COUNTER): New.
6902         (struct gcov_ctr_summary): New.
6903         (struct gcov_summary): Adjust.
6904         (struct gcov_counter_section): Remove.
6905         struct gcov_counter_section_data): Remove.
6906         (struct gcov_function_info): Rename to ...
6907         (struct gcov_fn_info): ... here. Adjust.
6908         (struct gcov_ctr_info): New.
6909         (struct gcov_info): Adjust.
6910         * gcov.c (read_count_file): Adjust.
6911         (output_lines): Adjust.
6912         * libgcov.c (gcov_exit): Adjust.
6913         (__gcov_flush): Adjust.
6914         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
6915         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
6916         probably_never_executed_bb_p, compute_frequency_function): Adjust
6917         profile_info use.
6918         * profile.c (struct counts_entry): Remove.
6919         (profile_info): Define here.
6920         (get_exec_counts): Adjust get_coverage_counts call.
6921         (compute_branch_probablilities): Remove find_counters_section
6922         call.
6923         (gen_edge_profiler): Adjust coverage_counter_ref call.
6924         * tracer.c (tail_duplicate): Adjust profile_info use.
6926 2003-04-23  Roger Sayle  <roger@eyesopen.com>
6928         PR optimization/10339
6929         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
6930         directly instead of unsafely transforming call into a memcmp.
6931         (expand_builtin_strncmp): Likewise.
6933 2003-04-22  Roger Sayle  <roger@eyesopen.com>
6935         * alias.c (mark_constant_function):  Check for constancy and
6936         purity even of void functions.  Update both the function decl
6937         and the cgraph RTL info with the results.
6939 2003-04-22  Roger Sayle  <roger@eyesopen.com>
6941         * real.c (do_add): Change to return a bool indicating that the
6942         result of the operation may be inexact due to loss of precision.
6943         (do_multiply): Likewise.
6944         (do_divide): Likewise.
6946 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
6947             Loren James Rittle  <ljrittle@acm.org>
6949         * dwarf2out.c (fde_table_allocated): Mark with GTY.
6950         (decl_die_table_allocated): Likewise.
6951         (abbrev_die_table_allocated): Likewise.
6952         (line_info_table_allocated): Likewise.
6953         (separate_line_info_table_allocated): Likewise.
6954         (pubname_table_allocated): Likewise.
6955         (arange_table_allocated): Likewise.
6956         (ranges_table_allocated): Likewise.
6957         (decl_die_table_in_use): Unconditionalize; mark with GTY.
6958         (abbrev_die_table_in_use): Likewise.
6959         (line_info_table_in_use): Likewise.
6960         (separate_line_info_table_in_use): Likewise.
6961         (pubname_table_in_use): Likewise.
6962         (arange_table_in_use): Likewise.
6963         (ranges_table_in_use): Likewise.
6964         (have_location_lists): Likewise.
6965         (emitcount): New GTY-marked static, moved...
6966         (maybe_emit_file): ...from here.
6967         (label_num): New GTY-marked static, moved...
6968         (gen_internal_sym): ...from here.
6970 2003-04-22  Richard Henderson  <rth@redhat.com>
6972         PR 8866
6973         * rtl.h (MEM_NOTRAP_P): New.
6974         (MEM_COPY_ATTRIBUTES): Copy it.
6975         * rtlanal.c (may_trap_p): Check it.
6976         * expr.c (do_tablejump): Set it.
6977         * doc/rtl.texi (Flags): Document it.
6979         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
6981 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
6983         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
6984         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
6986 2003-04-22  Vincent Celier <celier@gnat.com>
6988         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
6989         --enable-threads=gnat.
6990         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
6991         * configure.in: Add gnat to the list of thread packages
6992         * configure: Rebuild.
6993         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
6995 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
6997         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
6999 2003-04-22  Devang Patel  <dpatel@apple.com>
7001         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
7002         parameter count.
7003         (_cpp_copy_replacement_text): Same.
7005 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
7007         * c-lex.c (c_lex): Handle CPP_OTHER differently.
7008         * cppexp.c (_cpp_parse_expr): Similarly.
7009         * cpplex.c (SPELL_CHAR): Remove.
7010         (_cpp_lex_direct): Stray chars are saved as byte strings.
7011         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
7012         handle SPELL_CHAR.
7013         (cpp_avoid_paste): Update handling of CPP_OTHER.
7014         * cpplib.h: Spell CPP_OTHER like a number.
7015         (struct cpp_token): Remove member c.
7016         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
7018 2003-04-22  David Turner <novalis@gnu.org>
7020         * gbl-ctors.h: Add special license exception.
7021         * libgcc2.h: Likewise.
7022         * tsystem.h: Likewise.
7023         * gcov-io.h: Likewise.
7025 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
7027         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
7028         macro defaulting to original BRANCH_COST heuristic.
7029         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
7031         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
7033 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
7035         * config/rs6000/t-spe: Merge in t-fprules into file.
7037         * config.gcc: Add t-spe to powerpc-eabispe.
7039 2003-04-22  Kean Johnston  <jkj@sco.com>
7041         * tlink.c (recompile_files): Add missing '=' to putenv calls
7043 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
7045         * ginclude/stddef.h: Provide C++ safe offsetof.
7047 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
7049         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
7050         for reg notes, if there are no substitutions, just use a SUBREG.
7052 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
7054         * Makefile.in (calls.o): Depend on except.h.
7055         * calls.c: Include except.h.
7056         (emit_call_1): Call note_eh_region_may_contain_throw if
7057         appropriate.
7058         * except.c (eh_region): Add may_contain_throw.
7059         (expand_eh_region_end_cleanup): Do not include handler code when
7060         it cannot be reached.
7061         (note_eh_region_may_contain_throw): New function.
7062         * except.h (note_eh_region_may_contain_throw): New function.
7064 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
7066         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
7067         changes.
7069 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
7071         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
7072         64-bit long doubles.
7074 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
7076         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
7077         a number of conversions required for type consistency and previously
7078         stripped off by STRIP_NOPS.
7080         * calls.c (expand_call): Prevent sibcall optimization for calls to
7081         nested subprograms.
7083         * expmed.c (extract_bit_field): Reverse operands of && condition to
7084         prevent a potential division by zero in the previously first branch.
7085         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
7087 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
7089         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
7090         (subrange_type_die): Likewise.
7091         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
7092         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
7094 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
7096         Break out coverage routines to new file.
7097         * Makefile.in (COVERAGE_H): New variable
7098         (C_OBJS): Add coverage.o
7099         (coverage.o): New target.
7100         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
7101         dependencies.
7102         (GTFILES): Adjust.
7103         (gt-coverage.h): New target.
7104         (gt-profile.h): Remove.
7105         * profile.h: Remove. Move to ...
7106         * coverage.h: ... here. New. #include gcov-io.h.
7107         * gcov-io.h: Move function definitions to ...
7108         * gcov-io.c: ... here. New.
7109         * profile.c: Move coverage routines to coverage.c.
7110         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
7111         end_branch_prob): Adjust.
7112         * coverage.c: New. Coverage routines from profile.c
7113         (coverage_counter_ref, coverage_init, coverage_finish,
7114         coverage_end_function, coverage_begin_output,
7115         coverage_counter_ref, get_coverage_counts): Define.
7116         * gcov-dump.c, gcov.c: #include gcov-io.c.
7117         * libgcov.c: Likewise. Adjust.
7118         * loop-init.c: Don't #include profile.h
7119         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
7120         * rtl.h: Add coverage prototypes.
7121         * toplev.c (compile_file): Init coverage, not branch_prob.
7122         Always call coverage_finish.
7123         (rest_of_compilation): Call coverage_end_function.
7125 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
7127         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
7129 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
7131         * c-ppoutput.c (cb_include): Don't take a cpp_token.
7132         * cppfiles.c: Don't undef strcmp.
7133         (find_include_file): Don't take a cpp_token.  Check for empty
7134         file names.
7135         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
7136         (cpp_push_include): Simplify.
7137         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
7138         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
7139         (parse_include): Similary.  Don't check for zero-length filenames.
7140         (do_include_common, do_pragma_dependency): Update accordingly.
7141         * cpplib.h (struct cpp_callbacks): Change prototype of include.
7143 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7145         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
7146         details of conflict handling.
7148         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
7149         when conversion overflows.
7151         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
7153         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
7154         before clearing.
7156 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
7158         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
7159         have the same form as the old RTL.
7161 2003-04-21  Andreas Jaeger  <aj@suse.de>
7163         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
7165 2003-04-20  Chris Lattner  <sabre@nondot.org>
7166             Zack Weinberg  <zack@codesourcery.com>
7168         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
7169         genrtl_cleanup_stmt.  Correct comment at head of
7170         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
7172         * stmt.c (struct nesting): Kill n_function_calls.
7173         (expand_start_bindings): Don't set
7174         thisblock->data.block.n_function_calls.
7175         (expand_end_bindings): Compare function_call_count against 0.
7176         (expand_cleanups): Kill DONT_DO argument; all callers passed
7177         NULL_TREE. All callers updated to match.
7179 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
7181         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
7182         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
7183         (output_constant_def): Remove code predicated on
7184         defer_addressed_constants_flag.
7186         * output.h: Remove prototypes of deleted functions.
7187         * c-typeck.c (constructor_subconstants_deferred): Kill.
7188         (struct initializer_stack): Remove 'deferred' field.
7189         (start_init): Remove all references to the above.
7190         (finish_init): Likewise. Also remove never-executed call to
7191         output_deferred_addressed_constants.  Pull assignment to
7192         defstr out of if expression.
7194 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
7196         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
7197         NOTE_NEWLINE): Remove.
7198         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
7199         to handle new form of line note type.
7201 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
7203         * target.h (encode_section_info): Add new argument carrying
7204         the RTL to be modified by the hook.
7206         * varasm.c (make_decl_rtl, output_constant_def): Update calls
7207         to encode_section_info.
7208         (default_encode_section_info): Take and use RTL argument,
7209         don't use TREE_CST_RTL or DECL_RTL.
7210         * output.h: Update prototype of default_encode_section_info.
7211         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
7212         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
7213         Update calls to encode_section_info.
7215         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
7216         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
7217         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
7218         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
7219         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
7220         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
7221         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
7222         except for PE dllimport/dllexport.  Update calls to
7223         default_encode_section_info.
7225         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
7226         Update prototypes.
7228         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
7230 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7232         PR/8705
7233         * pa.md (movccfp): New expander.
7234         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
7235         Reverse fcmp conditions.
7237 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7239         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
7240         of operand 1 correctly.
7242 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
7244         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
7245         * gcov.c (output_lines): Don't be so fussy about going past EOF.
7247 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
7249         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
7250         (cppcharset.o): New target.
7251         * c-lex.c (is_extended_char): Move to cppcharset.c.
7252         (utf8_extend_token): Delete.
7253         * cppcharset.c: New file.
7254         * cpphash.h (_cpp_valid_ucn): New.
7255         * cpplex.c (lex_identifier): Update prototype.
7256         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
7257         escapes.
7258         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
7259         in cppcharset.c.
7260         (lex_number, lex_identifier, cpp_parse_escape): Update.
7261         (_cpp_lex_direct): Update to handle UCNs.
7262         (cpp_avoid_paste): Don't paste to form a UCN.
7264 2003-04-19  Roger Sayle  <roger@eyesopen.com>
7266         * builtins.c (expand_builtin):  Don't expand a pure or const
7267         built-in function if the result will be ignored and none of
7268         its arguments are volatile.
7270 2003-04-19  Kean Johnston  <jkj@sco.com>
7272         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
7273         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
7274         target fragment now: t-sco5; dont compile crti.o.
7275         * config/i386/sco5.h: major overhaul to remove all COFF remnants
7276         and to use elfos.h for most definitions.
7277         (BSS_SECTION_ASM_OP): set correct segment attributes.
7278         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
7279         (DWARF2_UNWIND_INFO): Always set to 1.
7280         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
7281         (MD_STARTFILE_PREFIX_1): Define.
7282         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
7283         (DEFAULT_LINKER): Define if not specified to configure.
7284         (CTORS_SECTION_ASM_OP): Remove COFF crud.
7285         (DTORS_SECTION_ASM_OP): Remove COFF crud.
7286         (WINT_TYPE): Define.
7287         (SDB_DEBUGGING_INFO): Remove.
7288         (EXTRA_SECTIONS): Likewise.
7289         (EXTRA_SECTION_FUNCTIONS): Likewise.
7290         (CTOR_LIST_BEGIN): Likewise.
7291         (CTOR_LIST_END): Likewise.
7292         (INIT_SECTION_FUNCTION): Likewise.
7293         (FINI_SECTION_FUNCTION): Likewise.
7294         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
7295         (LOCAL_LABEL_PREFIX): Likewise.
7296         (NON_SAVING_SETJMP): Likewise.
7297         (RETURN_POPS_ARGS): Likewise.
7298         (ASM_OUTPUT_SKIP): Likewise.
7299         (TARGET_ASM_NAMED_SECTION): Likewise.
7300         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
7301         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
7302         (ASM_OUTPUT_IDENT): Likewise.
7303         (ASM_OUTPUT_CASE_LABEL): Likewise.
7304         (ASM_OUTPUT_ASCII): Likewise.
7305         (ASM_OUTPUT_LIMITED_STRING): Likewise.
7306         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7307         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
7308         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
7309         (ASM_FINISH_DECLARE_OBJECT): Likewise.
7310         (ASM_DECLARE_OBJECT_NAME): Likewise.
7311         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
7312         (ASM_DECLARE_FUNCTION_NAME): Likewise.
7313         (ASM_DECLARE_RESULT): Likewise.
7314         (ASM_WEAKEN_LABEL): Likewise.
7315         (SUPPORTS_WEAK): Likewise.
7316         (APPLY_RESULT_SIZE): Likewise.
7317         (LPREFIX): Likewise.
7318         (ALIGN_ASM_OP): Likewise.
7319         (ASCII_DATA_ASM_OP): Likewise.
7320         (IDENT_ASM_OP): Likewise.
7321         (ASM_SHORT): Likewise.
7322         (ASM_LONG): Likewise.
7323         (TYPE_ASM_OP): Likewise.
7324         (SIZE_ASM_OP): Likewise.
7325         (STRING_ASM_OP): Likewise.
7326         (SKIP_ASM_OP): Likewise.
7327         (EH_FRAME_SECTION_ASM_OP): Likewise.
7328         (READONLY_DATA_SECTION_ASM_OP): Likewise.
7329         (INIT_SECTION_ASM_OP): Likewise.
7330         (FINI_SECTION_ASM_OP): Likewise.
7331         (TEXT_SECTION_ASM_OP): Likewise.
7332         (DATA_SECTION_ASM_OP): Likewise.
7333         (TYPE_OPERANT_FORMAT): Likewise.
7334         (ASM_SPEC): Remove COFF code.
7335         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
7336         cause -pg to emit an error; use pcrt1elf.o with -pp
7337         (ENDFILE_SPEC): Likewise.
7338         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
7339         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
7340         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
7341         add -z alt_resolve to support weak symbols the way GCC wants them.
7342         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
7343         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
7344         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
7345         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
7346         (CRTSTUFF_T_CFLAGS_S): Define.
7347         (MULTILIB_OPTIONS): Likewise.
7348         (MULTILIB_DIRNAMES): Likewise.
7349         (MULTILIB_MATCHES): Likewise.
7350         (MULTILIB_EXTRA_OPTS): Likewise.
7351         (LIBGCC): Likewise.
7352         (INSTALL_LIBGCC): Likewise.
7353         (crti.o): Remove.
7354         * config/i386/t-sco5gas: Remove.
7355         * doc/install.texi: Updated for new OpenServer instructions.
7356         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
7358 2003-04-19  Kean Johnston  <jkj@sco.com>
7360         * fixinc/check.tpl: Allow user to over-ride diff program.
7361         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
7362         (sco_math): Added test for SCO math header files.
7363         (sco_regset): Added check for conflicts with ieeefp.h.
7364         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
7365         * fixinc/fixincl.x: Regenerated
7366         * fixinc/tests/base/math.h: Added sco_math tests.
7367         * fixinc/tests/base/string.h: New file.
7368         * fixinc/tests/base/sys/regset.h: New file.
7370 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
7372         * cpphash.h (struct cpp_buffer): Remove backup_to.
7373         * cpplex.c (BACKUP, get_effective_char): Die.
7374         (_cpp_skip_block_comment): Assume '*' is location on entry.
7375         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
7376         (IF_NEXT_IS): Update.
7377         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
7379 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
7381         * README.Portability: Move to a new section and obsolete K+R
7382         portability issues.
7384 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
7386         * rtlanal.c (subreg_offset_representable_p):  Fix call of
7387         subreg_lowpart.
7389 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
7391         * cpphash.h (struct cpp_reader): New member warned_dollar.
7392         * cpplex.c (continues_identifier_p): New function.
7393         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
7394         lex_number and lex_string, and simplify.
7395         (parse_slow, unescaped_terminator_p): Die.
7396         (_cpp_lex_direct): Update.
7398 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7400         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
7402 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
7404         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
7405         fork behavior.
7407 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
7409         * cppexp.c (eval_token): Permit true and false even if pedantic.
7411 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
7413         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
7415 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
7417         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
7418         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
7419         (struct include_file): Remove fefcnt, mapped members.
7420         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
7421         (read_include_file): Don't use mmap, terminate buffers in '\r'.
7422         (purge_cache): Don't use munmap.
7423         * cpphash.h (CPP_BUF_COLUMN): Update.
7424         (lexer_state): Remove lexing_comment.
7425         (struct _cpp_line_note): New.
7426         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
7427         next_line and need_line.  Remove col_adjust and saved_flags.
7428         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
7429         _cpp_skip_block_comment, scan_out_logical_line): New.
7430         (_cpp_init_mbchar): Remove.
7431         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
7432         (cpp_read_main_file): Set line to 1 earlier.
7433         (post_options): -traditional-cpp doesn't want trigraphs.
7434         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
7435         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
7436         _cpp_get_fresh_line): New.
7437         (handle_newline, skip_escaped_newlines, trigraph_p,
7438         continue_after_nul, _cpp_init_mbchar): Remove.
7439         (get_effective_char): Update.
7440         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
7441         (skip_line_comment): Simplify.
7442         (skip_whitespace, parse_identifier, parse_slow, parse_number,
7443         parse_string): Update.
7444         (cpp_lex_direct): Use clean lines and process line notes.  Update.
7445         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
7446         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
7447         directly.
7448         (_cpp_handle_directive): Don't set saved_flags.
7449         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
7450         cpp_undef, handle_assertion, cpp_push_buffer): Update.
7451         (_cpp_pop_buffer): Free notes.
7452         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
7453         * cpppch.c (cpp_read_state): \n terminate buffer.
7454         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
7455         (copy_comment): Use _cpp_skip_block_comment.
7456         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
7457         Simplify.
7458         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
7459         save_replacement_text): Update.
7460         (scan_out_logical_line): Update to use clean lines and process
7461         line notes.
7462         * fix-header.c (read_scan_file): Update.
7464 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
7466         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
7467         null begin parameter (as well as pointer to null).
7468         (__deregister_frame_info_bases): Likewise.
7470 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7472         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
7473         hard or virtual register and copy into pseudo if replacement fails.
7475         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
7477         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
7479 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
7481         * calls.c (expand_call): Move special case for constructor calls
7482         to right place. Ensures constructor calls used to initialize
7483         arguments get a clean outgoing argument block for themselves.
7484         Move check for stack deallocation completeness until after last
7485         deallocation.  Add stack_pointer_delta to set of state
7486         variables saved and restored along with current stack_level.
7488         * integrate.c (expand_inline_function): Ensure non-const actuals
7489         don't end up const in the caller's flow after conversion to possibly
7490         const formal type.
7492 2003-04-18  Vincent Celier  <celier@gnat.com>
7494         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
7495         and *_DIV_EXPR as TRUNC_*_EXPR.
7497 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
7499         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
7500         for orphaned jump tables.
7502 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
7504         * reload1.c: Revert my previous patch on 2002-04-17.
7506 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7508         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
7509         Add Segher Boessenkool.
7511 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
7513         PR c/9177
7514         * c-decl.c (c_expand_body): Don't garbage collect the function
7515         body if we are going to dump it later.
7517 2003-04-18  Richard Henderson  <rth@redhat.com>
7519         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
7520         (alpha_end_function): Don't set them.
7521         (decl_in_text_section): Remove.
7522         (alpha_encode_section_info): Remove.
7523         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
7524         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
7525         sections, rather than decl_in_text_section results.
7527 2003-04-18  Roger Sayle  <roger@eyesopen.com>
7529         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
7530         and SIGN_EXTRACT.
7532 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
7534         PR optimization/7675
7535         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
7536         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
7537         nested functions if they refer to declarations from parent functions.
7538         * stmt.c (expand_decl): Don't put automatic variables in registers
7539         if the DECL_NONLOCAL flag is set.
7541 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
7543         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
7544         consider those to be movable where the source matches
7545         want_to_gcse_p.
7546         (update_ld_motion_stores): In comment, refer to
7547         compute_ld_motion_mems for validity of replacement.
7549 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
7551         * gcov-dump.c (tag_summary): Remove max_sum
7552         * gcov-io.h (gcov_summary, gcov_write_summary,
7553         gcov_read_summary): Kill max_sum.
7554         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
7555         message more verbose.
7557         * emit-rtl.c (subreg_hard_regno):  Check that register is
7558         representable.
7560         * reload.c (reload_inner_reg_of_subreg):  When register is not
7561         representable, reload the whole thing.
7562         (find_reloads): Likewsie.
7563         * rtlanal.c (subreg_representable_p):  New function.
7565         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
7566         allow negative probabilities for edges from the call to exit.
7567         (branch_prob): Do not add fake edges for functions that may return
7568         twice.
7570 2003-04-17  DJ Delorie  <dj@redhat.com>
7572         * toplev.c (target_options): Add value field.
7573         (set_target_switch): Handle target options with values.
7574         * doc/tm.texi: Document how fixed vs variable target
7575         options work.
7576         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
7577         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
7578         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7579         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
7580         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
7581         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
7582         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
7583         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
7584         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
7585         Add value initializer to target options.
7587 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
7589         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
7591 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
7593         * reload1.c (move2add_last_cc0): New.
7594         (reload_cse_move2add): Detect implicit sets.
7595         (move2add_note_store): Notice a store into cc0.
7597 2003-04-17  Roger Sayle  <roger@eyesopen.com>
7599         PR c/10375
7600         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
7601         function attributes.
7603 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
7605         * doc/sourcebuild.texi (Test Suites): Document support for testing
7606         binary compatibility (moved from testsuite/README.compat).
7608 2003-04-17  Richard Henderson  <rth@redhat.com>
7610         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
7612 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
7614         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
7615         the one provided by the FSF.
7617 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7619         * doc/install.texi (Binaries): Update URL and list of platforms
7620         provided by ftp.thewrittenword.com.
7622 2003-04-17  Richard Henderson  <rth@redhat.com>
7624         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
7625         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
7626         * config/xtensa/xtensa.md (call, call_value): Likewise.
7628 2003-04-17  Richard Henderson  <rth@redhat.com>
7630         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
7631         (print_operand_address): Likewise.
7632         (ep_memory_operand): Likewise.
7633         (special_symbolref_operand): Likewise.
7634         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
7635         (v850_encode_section_info): Call default_encode_section_info.
7636         (v850_strip_name_encoding): Remove.
7637         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
7638         (ASM_OUTPUT_LABELREF): Remove.
7639         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
7640         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
7641         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
7642         (ENCODED_NAME_P): Remove.
7643         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
7644         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
7645         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
7647 2003-04-17  Richard Henderson  <rth@redhat.com>
7649         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
7650         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
7651         SYMBOL_REF_FUNCTION_P.
7653 2003-04-17  Richard Henderson  <rth@redhat.com>
7655         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
7656         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
7657         (text_segment_operand): Likewise.
7659 2003-04-17  Richard Henderson  <rth@redhat.com>
7661         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
7662         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
7663         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
7664         (sh_encode_section_info): Remove.
7665         (sh_strip_name_encoding): Remove.
7666         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
7667         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
7668         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
7669         (ASM_OUTPUT_LABELREF): Remove.
7670         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
7671         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
7673 2003-04-17  Richard Henderson  <rth@redhat.com>
7675         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
7676         (tls_model_chars): Remove.
7677         (larl_operand): Use SYMBOL_REF_FLAGS.
7678         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
7679         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
7680         (s390_output_mi_thunk): Likewise.
7681         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
7682         (s390_function_profiler): Likewise.
7683         (s390_encode_section_info): Use default_encode_section_info
7684         and SYMBOL_FLAG_ALIGN1.
7685         (s390_strip_name_encoding): Remove.
7686         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
7687         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
7688         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
7690 2003-04-17  Richard Henderson  <rth@redhat.com>
7692         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
7693         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
7694         (print_operand_address): Likewise.
7696         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
7697         * config/ns32k/ns32k.c (expand_block_move): Don't check
7698         flag_unroll_loops.
7700 2003-04-17  Richard Henderson  <rth@redhat.com>
7702         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
7703         SYMBOL_REF_FLAG.
7705 2003-04-17  Richard Henderson  <rth@redhat.com>
7707         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
7709         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
7710         (SYMBOL_REF_MODEL): New.
7711         (LIT_NAME_P): Move from m32r.h.
7712         (m32r_select_section): Remove.
7713         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
7714         (m32r_strip_name_encoding): Remove.
7715         (m32r_in_small_data_p): New.
7716         (small_data_operand): Use SYMBOL_REF_SMALL_P.
7717         (addr24_operand): Use SYMBOL_REF_MODEL.
7718         (call26_operand): Likewise.
7719         (addr32_operand): Tidy.
7720         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
7721         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
7722         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
7723         (READONLY_DATA_SECTION_ASM_OP): Remove.
7724         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
7725         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
7726         (TARGET_ASM_SELECT_SECTION): Remove.
7727         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
7728         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
7729         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
7730         (ASM_OUTPUT_LABELREF): Remove.
7732 2003-04-17  Richard Henderson  <rth@redhat.com>
7734         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
7735         (encode_section_info): Remove.
7736         * config/ip2k/ip2k-protos.h: Update.
7738 2003-04-17  Richard Henderson  <rth@redhat.com>
7740         * varasm.c (default_encode_section_info): Don't set
7741         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
7742         * config/i370/i370.c (i370_encode_section_info): Remove.
7743         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
7744         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
7745         * config/i370/i370.md (movsi): Likewise.
7747         * config/i370/t-i370: Add missing backslash.
7749 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
7751         * doc/invoke.texi (inline-limit): Fix pasto.
7753 2003-04-17  Richard Henderson  <rth@redhat.com>
7755         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
7756         (small_call_insn_operand): Use it.
7757         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
7758         (h8300_eightbit_constant_address_p): Use it.
7759         (SYMBOL_FLAG_TINY_DATA): New.
7760         (h8300_tiny_constant_address_p): Use it.
7761         (h8300_encode_label, h8300_strip_name_encoding): Remove.
7762         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
7763         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
7764         (ASM_OUTPUT_LABELREF): Remove.
7766 2003-04-16  Richard Henderson  <rth@redhat.com>
7768         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
7769         all users with SYMBOL_REF_SMALL_P.
7770         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
7771         (frv_encode_section_info): Remove.
7772         (frv_strip_name_encoding): Remove.
7773         (frv_in_small_data_p): Merge tests from encode_section_info.
7774         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
7775         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
7776         (SDATA_NAME_P): Remove.
7777         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
7778         (ASM_OUTPUT_LABELREF): Remove.
7779         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
7781         * config/frv/frv.c (frv_asm_out_constructor): New.
7782         (frv_asm_out_destructor): New.
7783         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
7784         (DTORS_SECTION_ASM_OP): New.
7785         (ASM_OUTPUT_CONSTRUCTOR): Remove.
7786         (ASM_OUTPUT_DESTRUCTOR): Remove.
7788 2003-04-16  Richard Henderson  <rth@redhat.com>
7790         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
7791         SYMBOL_REF_LOCAL_P; abort if not pic.
7792         (cris_encode_section_info): Remove.
7794 2003-04-16  Richard Henderson  <rth@redhat.com>
7796         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
7797         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
7799         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
7800         flag_inline_trees.
7802 2003-04-16  Richard Henderson  <rth@redhat.com>
7804         * config/avr/avr.c (avr_encode_section_info): Remove.
7805         (avr_insert_attributes): New.
7806         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
7807         (avr_assemble_integer): Likewise.
7809 2003-04-16  Richard Henderson  <rth@redhat.com>
7811         * arc.c (arc_encode_section_info): Remove.
7812         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
7813         (arc_print_operand, arc_print_operand_address): Likewise.
7814         * arc.h (EXTRA_CONSTRAINT): Likewise.
7816 2003-04-16  Roger Sayle  <roger@eyesopen.com>
7818         * c-semantics.c (find_reachable_label): New function to find a
7819         potentially reachable label in an expression.
7820         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
7821         assumes the start of the IF_STMT is unreachable (dead) code.
7822         (expand_unreachable_stmt): Similar to expand_stmt but assumes
7823         the start of the statement list is unreachable (dead) code.
7824         (genrtl_if_stmt):  If the controlling expression of the IF
7825         is constant, use expand_unreachable_stmt for the THEN or ELSE
7826         clause as appropriate.
7827         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
7828         the body of a SWITCH statement.
7829         (expand_stmt): The code immediately following a "return",
7830         "break", "continue" or "goto" is unreachable.
7831         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
7833 2003-04-16  Richard Henderson  <rth@redhat.com>
7835         * rtl.h (MEM_ALIAS_SET): Update documentation.
7836         * doc/rtl.texi (Special Accessors): New node.
7837         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
7839 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
7841         * reload1.c (reload_cse_noop_set_p): Return false if mode of
7842         SET_DEST is not the same as that returned by...
7843         * cselib.h (cselib_reg_set_mode): ... new function.
7844         * cselib.c (cselib_reg_set_mode): Define it.
7845         (REG_VALUES): Document semantics of first element as set mode.
7846         (cselib_subst_to_values): Skip first element if ELT is NULL.
7847         (cselib_lookup): Likewise.  Insert past the first element.
7848         (cselib_invalidate_regno): NULLify first element.
7849         (cselib_record_set): Set first element.
7851 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
7853         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
7854         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
7855         * tree.h: Add prototypes for the two new functions.
7856         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
7857         updates introduced in the previous revision by call to saved_expr_p.
7858         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
7860         * expr.c (store_field): Force usage of bitfield instructions when
7861         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
7862         (expand_expr, case BIT_FIELD_REF): likewise.
7864 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
7866         PR middle-end/8866
7867         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
7868         jumptables.
7870 2003-04-16  Richard Henderson  <rth@redhat.com>
7872         * config/ia64/ia64.c (sdata_symbolic_operand): Use
7873         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
7874         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
7875         (function_operand): Use SYMBOL_REF_FUNCTION_P.
7876         (ia64_expand_load_address): Likewise.
7877         (ia64_assemble_integer): Likewise.
7878         (ia64_encode_section_info): Remove.
7879         (ia64_strip_name_encoding): Remove.
7880         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
7881         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
7883 2003-04-16  Richard Henderson  <rth@redhat.com>
7885         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
7886         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
7887         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
7888         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
7889         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
7890         (global_symbolic_operand): Similarly.
7891         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
7892         (tls_symbolic_operand_type): Likewise.
7893         (alpha_encode_section_info): Use default_encode_section_info.
7894         (alpha_strip_name_encoding): Remove.
7895         (get_tls_get_addr): Split out from ...
7896         (alpha_legitimize_address): ... here.
7897         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
7898         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
7899         (alpha_initialize_trampoline): Use init_one_libfunc.
7900         (alpha_setup_incoming_varargs): Mark unused parameters.
7901         (alpha_initial_elimination_offset): Likewise.
7902         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
7903         (unicosmk_unique_section): Use default_strip_name_encoding.
7904         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
7906 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
7908         * config.gcc: Add t-spe for eabispe.
7910         * config/rs6000/t-spe: New.
7912 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
7914         Re-apply this patch:
7916         2002-05-16  Dale Johannesen  <dalej@apple.com>
7917           * combine.c (cant_combine_insn_p):  Reenable combinations
7918           involving hard regs unless CLASS_LIKELY_SPILLED_P.
7920 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7922         PR/10271
7923         * pa-protos.h (function_arg): Remove last argument.
7924         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
7925         * pa.h (struct hppa_args): Add member incoming.
7926         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
7927         member incoming.
7928         (FUNCTION_ARG): Revise call to function_arg.
7929         (FUNCTION_INCOMING_ARG): Delete.
7931 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
7933         * configure.in: Unify the code which creates symlinks to a
7934         just-built as, ld, objdump, and nm with the code that detects
7935         their presence for purposes of feature tests.
7936         * configure: Regenerate.
7938 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
7940         * varasm.c (output_constant_def): Do not consult
7941         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
7942         (after_function_constants, output_after_function_constants): Delete.
7943         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
7944         * config/mips/mips-protos.h, config/mips/mips.c
7945         (mips16_constant_after_function_p): Delete.
7946         * config/mips/mips.h: Delete #if-0-ed definition of
7947         CONSTANT_AFTER_FUNCTION_P.
7948         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
7949         mention of CONSTANT_AFTER_FUNCTION_P in comment.
7951 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
7953         * tree.c (next_decl_uid): Mark with GTY.
7954         (next_type_uid): Likewise.
7956 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
7958         PR target/9594:
7959         * sh.c (barrier_align): Also recognize stuff_delay_slot as
7960         an indicator that a barrier was created by branch splitting.
7962 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
7964         * c-decl.c (implicitly_declare): Copy declarations that are going
7965         to be placed in a local scope.
7967 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
7969         * invoke.texi (Spec Files): Wrap if-exists-else example.
7970         (MCore): Remove duplicate @itemx entries and @opindex entries.
7972 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
7974         * unwind.inc (_Unwind_Backtrace): New function.
7975         * unwind.h (_Unwind_Backtrace): Declare it.
7976         * libgcc-std.ver (_Unwind_Backtrace): Export it.
7978 2003-04-14  Jason Merrill  <jason@redhat.com>
7980         PR middle-end/10336, c++/10401
7981         * jump.c (never_reached_warning): Also stop looking if we reach the
7982         beginning of the function.
7984 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7986         PR target/10338
7987         PR bootstrap/10198
7988         PR bootstrap/10140
7989         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
7991 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
7993         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
7995 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7997         * optabs.c (expand_binop): In multi-word add cases, ensure
7998         XTARGET is copied to TARGET if they are different.
8000 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
8002         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
8003         to region, possible after integration of function with unreachable
8004         regions that were optimized away.
8006 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
8008         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
8009         instead of TOC_REGISTER in epilogue in
8010         current_function_calls_eh_return functions.
8012 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
8014         * doc/extend.texi (Empty Structures): Correct description of G++'s
8015         handling of these structures.
8017         * c-decl.c (grokdeclarator): Reject extern redeclarations of
8018         static variables.
8020 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
8022         * config/rs6000/rs6000.md (define_constants): Define constants for
8023         all UNSPEC usage, including new values for TLS support.
8024         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
8025         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
8026         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
8027         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
8028         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
8029         eh_set_lr_di): Use them.
8030         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
8031         rs6000_emit_epilogue) Use them.
8033         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
8035 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
8037         * Makefile.in (c-opts.o): Use custom action.
8039 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
8041         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
8043 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8045         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
8046         handle "superflat arrays" in Ada.
8048         * integrate.c (expand_inline_function): Don't inline if would
8049         lose /u on a BLKmode TARGET.
8051 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
8053         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
8054         extracted from dbxout_type.
8055         (dbxout_range_type): print large bounds in octal format.
8056         (dbxout_type): Replace extracted code by call to
8057         print_int_cst_bounds_in_octal_p.
8059         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
8060         of DW_LANG_Ada83 for Ada units.
8062 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
8064         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
8065         temporary used to round CONST_INT sizes.
8067         * tree.c (int_fits_type_p): Extract generic checks from the case
8068         of constant type bounds. Refine the checks against constant type
8069         bounds to allow for possible decisions against each of these bounds
8070         without requiring both bounds to be constant.
8071         (tree_int_cst_msb): Put back.
8072         * tree.h (tree_int_cst_msb): Likewise.
8074         * global.c (global_conflicts): Prevent allocation of call clobbered
8075         hard regs to pseudos live across abnormal edges, as later passes are
8076         not ready to handle them.
8078         * fold-const.c (fold): Reorder tests for conditional expressions.
8080         * expr.c (highest_pow2_factor): Return unsigned.
8081         * expr.h (offset_address): Likewise.
8082         * emit-rtl.c (offset_address): POW2 argument now unsigned.
8084 2003-04-14  Roger Sayle  <roger@eyesopen.com>
8086         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
8087         string literals at compile-time.
8089 2003-04-14  Roger Sayle  <roger@eyesopen.com>
8091         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
8092         comparison operation and c1/c2 are floating point constants into
8093         x swap(cmp) (c1 - c2).
8095 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
8097         * genautomata.c (output_translate_vect): Fix a typo in loop
8098         condition.
8100 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
8102         PR target/10377
8103         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
8104         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
8105         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
8106         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
8107         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
8108         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
8109         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
8110         ("*extopqihi_swap_side", "*extopqisi_swap_side")
8111         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
8112         When next to constraint R, replace constraint i with n.
8114 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
8116         PR opt/10024
8117         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
8119 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
8121         * doc/contrib.texi (Contributors): Correct my entry.
8123 2003-04-13  Roger Sayle  <roger@eyesopen.com>
8125         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
8126         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
8127         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
8128         implies DECL_BUILT_IN to simplify logic.
8129         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
8131 2003-04-13  Roger Sayle  <roger@eyesopen.com>
8133         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
8134         (BT_FN_PTR_SIZE_SIZE): Likewise.
8135         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
8136         New built-in functions for malloc, calloc and strdup respectively.
8137         * calls.c (special_function_p): No need to handle malloc-like
8138         functions any longer.  ECF_MALLOC is set via built-in attributes.
8140         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
8142         * doc/extend.texi: Document these new built-in functions.
8144 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8146         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
8147         (expand_builtin_stpcpy): New.
8148         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
8149         * builtins.def: Add mempcpy & stpcpy support.
8150         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
8152 2003-04-13  Nick Clifton  <nickc@redhat.com>
8154         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
8155         "GCC".
8156         * config/rs6000/40x.md, config/rs6000/603.md,
8157         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
8158         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
8159         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
8160         config/rs6000/aix43.h, config/rs6000/aix51.h,
8161         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
8162         config/rs6000/altivec.h, config/rs6000/altivec.md,
8163         config/rs6000/beos.h, config/rs6000/darwin.h,
8164         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
8165         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
8166         config/rs6000/freebsd.h, config/rs6000/gnu.h,
8167         config/rs6000/host-darwin.c, config/rs6000/linux.h,
8168         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
8169         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
8170         config/rs6000/netbsd.h, config/rs6000/power4.md,
8171         config/rs6000/rios1.md, config/rs6000/rios2.md,
8172         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
8173         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
8174         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
8175         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
8176         config/rs6000/spe.md, config/rs6000/sysv4.h,
8177         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
8178         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
8180 2003-04-13  Nick Clifton  <nickc@redhat.com>
8182         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
8183         support for -mcall-aix switch.
8184         * config/rs6000/eabiaix.h: Delete.
8185         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
8186         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
8187         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
8188         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
8189         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
8190         debug_stack_info, output_function_profiler,
8191         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
8192         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
8193         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
8194         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
8195         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
8196         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
8197         multilibs.
8198         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
8199         (MULTILIB_EXCEPTIONS): Delete.
8200         (MULTILIB_MATCHES): Remove mcall-aix matches.
8202         * doc/fragments.texi: Replace -mcall-aix example with an ARM
8203         one.
8204         * doc/install.texi: Delete powerpc-*-eabiaix target.
8205         * doc/invoke.texi: Remove documentation of mcall-aix switch.
8206         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
8207         * config.gcc: Delete powerpc-*-eabiaix target.
8209 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
8211         * doc/invoke.texi: Fix typos.
8212         * doc/tm.texi: Likewise.
8214 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
8216         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
8218 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
8220         * tree.c (build_constructor): New function.
8221         * tree.h: Prototype it.
8223         * c-typeck.c (build_c_cast, pop_init_level)
8224         * profile.c (build_function_info_value, build_gcov_info_value)
8225         (create_profiler):
8226         Use build_constructor.
8228         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
8230         * objc/objc-act.c (build_constructor):
8231         Rename objc_build_constructor. Use build_constructor.
8232         (build_objc_string_object, objc_add_static_instance)
8233         (init_def_list, init_objc_symtab, init_module_descriptor)
8234         (generate_static_references, build_selector_translation_table)
8235         (build_descriptor_table_initializer, generate_descriptor_table)
8236         (build_protocol_initializer, build_ivar_list_initializer)
8237         (generate_ivars_list, build_dispatch_table_initializer)
8238         (generate_dispatch_table, generate_protocol_list)
8239         (build_category_initializer, build_shared_structure_initializer):
8240         Update to match.
8242 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
8244         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
8246 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
8248         * config/m68hc11/m68hc11-protos.h
8249         (m68hc11_eq_compare_operator): Declare
8250         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
8251         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
8252         (d_register_operand): Check the operand mode.
8253         (hard_addr_reg_operand): Likewise.
8255 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
8257         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
8258         pattern for dbcc/ibcc generation for 68HC12.
8259         ("doloop_end"): New pattern.
8260         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
8261         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
8262         ("m68hc12_dbcc_dec_qi"): New pattern.
8263         ("m68hc12_dbcc_inc_qi"): New pattern.
8264         (split): Add split for the above when we can't use dbcc/ibcc due to
8265         reloading.
8266         (peephole2): Add peephole2 to generate the above when possible.
8268 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
8270         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
8271         mode of operand 0.
8272         (peephole2 optimize const load): Likewise for operand 2.
8273         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
8274         clobbers CC_REGNUM.
8275         ("*rotrhi3_with_carry"): Likewise.
8276         (ashift:DI 1 split): Update pattern to create the above rotate.
8277         (lshiftrt:DI 1 split): Likewise.
8279 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
8281         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
8282         ("tstqi_z_used" split): Use it.
8283         ("cmphi_z_used"): Likewise.
8284         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
8285         ("cmpqi_z_used"): Likewise.
8287 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
8289         PR c++/7910
8290         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
8292 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
8294         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
8295         * configure, config.in: Regenerate.
8296         * intl.c (gcc_gettext_width): New function.
8297         * intl.h: Prototype it.
8299 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
8301         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
8302         recognize -mnorelax.
8303         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
8304         (REG_CLASS_NAMES): Add its name.
8305         (REG_CLASS_CONTENTS): Define its content.
8307 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
8309         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
8310         parameters so that offsets are valid for far definition.
8311         (__mulsi3): Likewise and use ret to return.
8312         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
8314 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
8316         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
8318 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
8320         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
8321         containing a libgcc.a, move lib* to the corresponding stage dir.
8323         * Makefile.in (stage1-start, stage2-start, stage3-start,
8324         stage4-start): Move $(SPECS) to specs in stage dir.
8325         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
8326         back as $(SPECS).
8328         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
8329         object files from the non-libgcc/ multilib directories as well.
8331 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
8333         * profile.c (read_counts_file): Initialise 'checksum'.
8335         * emit-rtl.c (gen_rtx): Really correct typo.
8337         PR c++/9393
8338         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
8339         * configure.in: Check for gettimeofday.
8340         * tree.c (flag_random_seed): Define.
8341         (default_flag_random_seed): New.
8342         (append_random_chars): Use flag_random_seed rather than trying
8343         to acquire randomness here.
8344         * tree.h (default_flag_random_seed): Declare.
8345         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
8346         descriptions.
8347         (decode_f_option): Handle -frandom-seed.
8348         (print_switch_values): Call default_flag_random_seed.
8349         * flags.h (flag_random_seed): Declare.
8350         * configure: Regenerate.
8351         * config.in: Regenerate.
8352         * config/alpha/t-crtfm: Use -frandom-seed.
8354         * doc/extend.texi (Empty Structures): New.
8356         * c-pch.c: Include flags.h.  Add comments to routines.
8357         (struct c_pch_validity): New.
8358         (get_ident): Update PCH file version number.
8359         (pch_init): Output current debugging type.
8360         (c_common_valid_pch): Check debugging type.
8361         * Makefile.in (c-pch.o): Update dependencies.
8362         * flags.h (debug_type_names): Declare.
8363         * toplev.c (debug_type_names): Move out of decode_g_option.
8365 2003-04-11  Eric Christopher  <echristo@redhat.com>
8367         * emit-rtl.c (gen_rtx): Fix typos.
8369 2003-04-11  Richard Henderson  <rth@redhat.com>
8371         * emit-rtl.c (gen_rtx): Zero '0' fields.
8373 2003-04-11  Richard Henderson  <rth@redhat.com>
8375         PR c++/10202
8376         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
8377         not COMPLETE_TYPE_P for re-invoking layout_decl.
8379 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
8381         * doc/bugreport.texi: Fix paragraph breaking between sections
8382         in preparation for TeXinfo's paragraph indentation fixes.
8383         * doc/extend.texi: Ditto.
8384         * doc/invoke.texi: Ditto.
8385         * doc/objc.texi: Ditto.
8386         * doc/gcov.texi: Wrap 'gcov' in @command{}.
8387         * doc/invoke.texi (Darwin Options): Add a preamble.
8389 2003-04-11  Richard Henderson  <rth@redhat.com>
8391         * config/i386/i386.c (tls_model_chars): Remove.
8392         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
8393         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
8394         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
8395         (tls_symbolic_operand_1): Likewise.
8396         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
8397         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
8398         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
8399         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
8400         bits "copied from i386.h" with default_encode_section_info.
8402 2003-04-11  Richard Henderson  <rth@redhat.com>
8404         * rtl.def (SYMBOL_REF): Add two 0 fields.
8405         * gengtype.c (adjust_field_rtx_def): Handle them.
8406         * print-rtl.c (print_rtx): Print them.
8407         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
8408         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
8409         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
8410         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
8411         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
8412         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
8413         (SYMBOL_FLAG_MACH_DEP): New.
8414         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
8415         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
8416         (assemble_static_space): Set SYMBOL_REF_FLAGS.
8417         (assemble_trampoline_template): Likewise.
8418         (output_constant_def, force_const_mem): Likewise.
8419         (default_encode_section_info): New.
8420         * output.h: Declare it.
8421         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
8423 2003-04-11  Richard Henderson  <rth@redhat.com>
8425         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
8426         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
8427         * optabs.c (init_optabs): Initialize them.
8428         (init_libfuncs): Use init_one_libfunc.
8429         * calls.c (expand_call): Use gcov_flush_libfunc.
8430         * expr.c (store_constructor): Use setbits_libfunc.
8431         * function.c (expand_main_function): Use init_one_libfunc.
8432         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
8434 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
8436         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
8437         documentation; add DECL_FRIEND_CONTEXT.
8439 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8441         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
8442         notes on linker selection and configuration for 64-bit HP-UX port.
8443         * doc/invoke.texi (hppa): Remove hppa text from description for
8444         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
8445         and -threads options.
8447         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
8448         libc.a on libdld.sl when -static is specified and -nolibdld is not
8449         specified.
8450         * pa64-hpux.h (LIB_SPEC): Likewise.
8451         * pa-hpux11.h (LIB_SPEC): Likewise.
8452         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
8453         is not specified.
8455 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
8457         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
8458         not IDENTIFIER_LOCAL_VALUE.
8460 2003-04-11  Richard Henderson  <rth@redhat.com>
8462         PR c/10201
8463         * expr.c (expand_expr): Move DECL_RTL frobbing ...
8464         * stor-layout.c (layout_decl): ... here.
8466 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
8468         * doc/invoke.texi: Eliminate extra white-space caused by
8469         @gccoptlist{ on its own line.
8470         * doc/invoke.texi: Ensured there are two spaces between each option.
8471         * doc/invoke.texi: Re-wrapped option lines that were too wide.
8472         Added @gol to options that didn't have them.
8474 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
8476         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
8477         gcov-iov.h.
8479         Simplify interface to gcov reading and writing.
8480         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
8481         gcov_alloc, gcov_modified, gcov_errored): Move into ...
8482         (struct gcov_var gcov_var): ... this static structure.
8483         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
8484         Return void.
8485         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
8486         read object.
8487         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
8488         (gcov_reserve_length): Remove.
8489         (gcov_write_tag): New.
8490         (gcov_write_length): Adjust.
8491         (gcov_read_summary, gcov_write_summary): Adjust.
8492         (gcov_eof, gcov_ok): Rename to ...
8493         (gcov_is_eof, gcov_is_error): ... here. Return error code.
8494         (gcov_save_position, gcov_resync): Rename to ...
8495         (gcov_position, gcov_seek): ... here.
8496         (gcov_skip, gcov_skip_string): Remove.
8497         (gcov_error): Remove.
8498         (gcov_open, gcov_close): Adjust.
8499         * gcov.c (find_source): Take const char *, copy it on allocation.
8500         (read_graph_file): Adjust.
8501         (read_count_file): Adjust.
8502         * libgcov.c (gcov_exit): Adjust.
8503         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
8504         tag_arc_counts, tag_summary): Return void. Adjust.
8505         (struct tag_format): Adjust proc member.
8506         (dump_file): Adjust gcov calls.
8508 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
8510         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
8511         mkfixinc.sh.
8512         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
8513         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
8514         build != host sysrooted builds.
8515         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
8516         TARGET_SYSTEM_ROOT even on sysrooted natives.
8517         * configure: Rebuilt.
8519 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
8521         * c-decl.c (struct binding_level): Add shadowed_tags and
8522         function_body; remove this_block, tag_transparent, and
8523         subblocks_tag_transparent; update comments.
8524         (clear_binding_level, lookup_tag_reverse): Kill.
8525         (make_binding_level): Use ggc_alloc_cleared or memset.
8526         (lookup_tag): Remove struct binding_level* parameter.  All
8527         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
8528         current_binding_level->tags if asked for thislevel_only or if
8529         we might have to diagnose "struct foo; union foo;"
8530         (pushlevel): Ignore argument.  Do not push another binding
8531         level on the transition from the parameters to the top level
8532         of the function body; just tweak the flags and proceed.
8533         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
8534         a function body, separate the parameter list from the
8535         top-level local variables.
8536         (set_block): Do nothing.
8537         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
8538         shadowed_tags if necessary.
8539         (warn_if_shadowing): Nuke the special case for local shadowing
8540         parameter.
8541         (pushdecl): Do not create a shadow entry if we are replacing
8542         an older decl in the same binding level.
8543         (pushdecl_function_level): Tweak for new way of indicating
8544         function scope.
8545         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
8546         (start_function): Don't set subblocks_tag_transparent.
8547         (finish_function): Fix up the binding_level stack for totally
8548         empty functions.  Otherwise, don't call poplevel.
8550         * c-common.c (shadow_warning): MANDATORY argument is no longer
8551         necessary.  Always use plain warning.
8552         * c-common.h: Update to match.
8554         * cfglayout.c (scope_to_insns_initialize): Clear block when we
8555         hit the FUNCTION_DECL.
8556         * function.c: Do not create cyclic tree structure.
8558 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
8560         * c-tree.h (struct lang_identifier): Replace global_value,
8561         local_value members with symbol_value, tag_value.  Kill
8562         implicit_decl and limbo_value.
8563         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
8564         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
8565         C_MISSING_PROTOTYPE_WARNED): Kill.
8566         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
8567         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
8568         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
8569         (implicit_decl_warning, lookup_name_current_level,
8570         record_function_scope_shadow): Don't prototype.
8571         (pushdecl_function_level): Prototype.
8573         * c-decl.c (truly_local_externals): New variable.
8574         (struct binding_level): Adjust commentary.
8575         (get_function_binding_level, clear_limbo_values,
8576         record_function_scope_shadow): Kill.
8577         (lookup_name_current_level, implicit_decl_warning): Are now static.
8578         (any_external_decl, record_external_decl): New static functions.
8579         (clone_underlying type): Split out of pushdecl.
8580         (c_print_identifier): Update to match changes to struct
8581         lang_identifier.
8582         (poplevel): Delete #if 0 block.  Make externals invisible
8583         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
8584         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
8585         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
8586         (duplicate-decls): For real parm decl after a forward decl,
8587         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
8588         foo(...) { } with only a warning.  Say whether a previous
8589         declaration was implicit.
8590         (warn_if_shadowing): Now handles all shadowing, not just
8591         local-over-local.  Clarify comments.
8592         (pushdecl): Rewritten.  There is no longer a distinction
8593         between global and local symbol values; they're all
8594         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
8595         DECL_EXTERNAL decls, and use any_external_decl to check
8596         against previous externals.  Kill #if 0 blocks.  Don't
8597         tolerate error_mark_node being NULL.
8598         (pushdecl_top_level): Handle only those cases which
8599         Objective C (the only user) needs.
8600         (pushdecl_function_level): New function.
8601         (implicitly_declare): Create ordinary decls with
8602         C_DECL_IMPLICIT set.  Recycle old decls, however they got
8603         created.
8604         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
8605         for C_DECL_INVISIBLE symbols.
8606         (lookup_name_current_level): Likewise.  Use chain_member.
8607         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
8608         Use pushdecl_function_level.
8609         (builtin_function): Use C_DECL_INVISIBLE.
8610         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
8611         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
8612         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
8613         (identifier_global_value): Same.  Must scan
8614         global_binding_level in extremis.
8616         * c-typeck.c (undeclared_variable): New static function, split
8617         from build_external_ref.
8618         (build_external_ref): Use DECL_CONTEXT, not
8619         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
8620         an instance variable.  Restructure for clarity.
8621         * objc/objc-act.c: Use identifier_global_value, not
8622         IDENTIFIER_GLOBAL_VALUE.
8624 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
8626         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
8627         not Working Paper.
8628         * doc/invoke.texi (C++ Dialect Options): Same.
8630 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
8632         * tree.c (tree_operand_check_failed): New function.
8633         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
8634         TREE_RTL_OPERAND_CHECK): New checking macros.
8635         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
8636         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
8637         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
8638         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
8639         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
8640         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
8641         checking macros.
8643 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
8645         PR inline-asm/8803
8646         * function.c (instantate_virtual_regs):  Verify that all ASM statements
8647         match after the virutal regs instantiation.
8649 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
8651         * ia64-protos.h (addp4_optimize_ok): New.
8652         * ia64.c (addp4_optimize_ok): New.
8653         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
8654         (*ptr_extend_plus_2): Ditto.
8656 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
8658         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
8659         not with convert_memory_address.
8660         (store_constructor): Ditto, and same for copy_size_rtx.
8661         (expand_expr): Ditto.
8663 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
8665         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
8667 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
8669         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
8670         even if it is configured to be write-through.
8672 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
8674         * config/s390/s390.c (larl_operand): Do not allow symbols
8675         marked with '@'.
8676         (s390_encode_section_info): Mark symbols with forced 1-byte
8677         alignment with '@'.
8678         (s390_strip_name_encoding): Strip '@'.
8679         (legitimize_pic_address): Handle symbols that are not valid
8680         LARL operands in 64-bit mode.
8682 2003-04-10  Andrew Haley  <aph@redhat.com>
8684         * tree-inline.c (inlinable_function_p): Disable inlining for
8685         synchronized methods.
8687 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
8689         * c-common.h (lang_statement_code_p): Remove declaration.
8690         (statement_code_p): Ditto.
8691         (c_common_stmt_codes): Define; list of c-common statement codes.
8692         (statement_code_p): New extern declaration.
8693         (STATEMENT_CODE_P): Define.
8694         (INIT_STATEMENT_CODES): Define.
8695         * c-common.c (statement_code_p): Kill the function, declare
8696         as an array of bools instead.
8697         (lang_statement_code_p): Remove.
8698         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
8699         (c_safe_from_p): Ditto.
8700         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
8701         to initialize the statement_code_p array.
8702         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
8703         statement_code_p.
8704         (copy_tree_r): Ditto.
8705         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
8706         statement tree codes.
8707         * cp/lex.c (cxx_init): Add missing print line break.  Use
8708         INIT_STATEMENT_CODES to initialize the statement_code_p array.
8709         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
8710         instead of statement_code_p.
8711         * cp/pt.c (tsubst_expr): Ditto.
8712         * cp/tree.c (verify_stmt_tree_r): Ditto.
8713         (cp_statement_code_p): Remove.
8714         (init_tree): Don't set lang_statement_code_p, it's gone.
8716 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
8717             Zack Weinberg  <zack@codesourcery.com>
8719         * regrename.c (struct du_chain): Use a bitfield for reg_class.
8720         * cse.c (struct qty_table_elem, struct table_elt, struct set):
8721         Use bitfields for fields holding enum rtx_code or
8722         enum machine_mode values.  Add comments explaining size choices.
8724 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
8726         * config/fp-bit.c (unpack_d): Handle pair of doubles with
8727         different signs correctly.
8729 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
8731         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
8732         (reg_pending_barrier): Make it of the enumeration type.
8733         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
8734         TRUE_BARRIER.
8735         (sched_analyze): Ditto.
8736         (sched_analyze_insn): Ditto.  Use anti-dependencies for
8737         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
8738         (init_deps_global): Initialize the barrier as NO_BARRIER.
8740 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
8742         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
8743         Check that asm insn starts on a new cycle.  Add nops after asm
8744         insn to end bundle.
8745         (bundling): Move insn type evaluation from the loop.  Call
8746         issue_nops_and_insn with the new parameter.  Ignore changing
8747         position for nops after asm insn.
8749 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
8751         * optabs.c: Comment that gen_add2_insn and others may actually
8752         return emitted insns, if the gen functions turn out to return
8753         emitted insns.
8754         * reload1.c (reload_cse_move2add): Cope with emitted insns from
8755         gen_add2_insn.
8757 2003-04-09  Richard Henderson  <rth@redhat.com>
8759         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
8760         but not tls_symbolic_operand.
8761         (ia64_expand_load_address): Remove scratch operand.
8762         (ia64_expand_tls_address): Split out from ia64_expand_move.
8763         (ia64_expand_move): Split symbolics only after reload.
8764         (ia64_emit_cond_move): New.
8765         * config/ia64/ia64-protos.h: Update.
8766         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
8767         (symbolic splitter): Accept SImode operands too.
8768         (cmove splitter): Use ia64_emit_cond_move.
8770 2003-04-09  Nick Clifton  <nickc@redhat.com>
8772         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
8773         newer.
8774         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
8775         instead of -mno-fpu.
8776         * config/arm/semi.h (ASM_SPEC): Likewise.
8777         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
8778         but only if -msoft-float is specified pass.  Otherwise pass
8779         -mfpu=softvfp.
8781 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8783         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
8784         free_EXPR_LIST_node.
8786 2003-04-08  Roger Sayle  <roger@eyesopen.com>
8788         * fold-const.c (fold):  Use "fold" following build in more places.
8789         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
8790         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
8792 2003-04-08  Roger Sayle  <roger@eyesopen.com>
8794         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
8795         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
8796         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
8797         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
8798         Delete function scope "fcode" variable to avoid shadowing.
8800 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
8802         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
8803         Take into account DWARF_INITIAL_LENGTH_SIZE.
8805 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
8807         * reorg.c (fill_slots_from_thread): When considering changing the
8808         insn following a reg-to-reg copy insn to use the source reg of the
8809         copy, bail out if there's overlap between the registers.
8811 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8813         * function.c (postponed_insns): New.
8814         (purge_addressof_1): Postpone processing of insns if addressofs
8815         are not put into stack.
8816         (purge_addressof): Process postponed insns.
8818 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
8820         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
8821         this is FP_MODE_DOUBLE .
8822         * sh.c (ra.h): #include.
8823         (push_regs): Add second parameter.  Changed all callers.
8824         If necessary, set fpscr before saving floating point registers.
8825         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
8826         do saves / restores with SZ == 1.
8827         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
8828         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
8829         registers are being restored, restore FPSCR only after restoring them.
8831 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
8833         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
8834         regardless of architecture.
8835         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
8837 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
8839         * sh.c (push_regs, calc_live_regs): Return int.  Take single
8840         HARD_REG_SET * parameter.  Changed all callers.
8842 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
8844         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
8845         GOTOFF operand.
8846         (legitimize_pic_address): Move plus outside the unspec.
8847         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
8848         for validity.
8850 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
8852         * gcov-io.h (gcov_save_position): Remove __inline__ from
8853         declaration.
8855 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
8857         * doc/install.texi: Use @command and @samp for single- and
8858         multi-word commands respectively.
8859         * doc/makefile.texi: Likewise.
8860         * doc/sourcebuild.texi: Likewise.
8862 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
8863             Richard Henderson  <rth@redhat.com>
8865         PR c/9516
8866         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
8867         favor of looping and tail recursion for TREE_LIST and binops.
8869 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8871         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
8872         for insns without luid.
8874 2003-04-07  Glen Nakamura  <glen@imodulo.com>
8876         PR opt/8634
8877         * explow.c (maybe_set_unchanging): Don't flag non-static const
8878         aggregate type initializers with RTX_UNCHANGING_P.
8880 2003-04-07  Richard Henderson  <rth@redhat.com>
8882         PR opt/8634
8883         * function.c (purge_addressof_1): Don't try arithmetics for
8884         unchanging memories.
8886 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
8888         * doc/sourcebuild.texi (Test Suites): Document testing support for
8889         gcov and profile-directed optimizations; describe gcc.misc-tests.
8891 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
8893         PR target/10077
8894         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
8896 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
8898         * doc/rtl.texi (Comparison operations): Update to
8899         record the allowed comparison modes.
8901 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
8903         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
8904         V2SI_type_node to opaque_V2SI_type_node.  Rename all
8905         V2SF_type_node to opaque_V2SF_type_node.
8906         (rs6000_init_builtins): Define opaque_V2SI_type_node and
8907         opaque_V2SF_type_node.
8908         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
8909         opaque_V2SF_type_node are opaque types.
8911 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
8913         * gcse.c (replace_store_insn): Use single_set.
8915 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
8917         Change gcov file interface to single file at a time.
8918         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
8919         Convert to C89 prototypes.
8920         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
8921         gcov_error, gcov_modified): New static variables.
8922         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
8923         functions.
8924         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
8925         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
8926         (gcov_read_summary, gcov_write_summary): Adjust.
8927         (gcov_save_position, gcov_reserve_length, gcov_write_length):
8928         Adjust.
8929         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
8930         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
8931         (da_file_position, da_file_seek, da_file_write, da_file_read):
8932         Remove.
8933         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
8934         * gcov.c (gcov_type): Don't typedef here.
8935         (IN_GCOV): #define
8936         (read_graph_file, read_count_file): Adjust.
8937         * gcov-dump.c (gcov_type): Don't typedef here.
8938         (IN_GCOV): #define.
8939         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
8940         Remove FILE parameter, adjust.
8941         (struct tag_format): Adjust proc member.
8942         (dump_file): Adjust.
8943         * libgcov.c (IN_LIBGCOV): #define.
8944         (gcov_exit): Adjust.
8945         * loop-init.c: Don't #include gcov-io.h
8946         * profile.c (struct counts_entry): New structure to hold counter
8947         values.
8948         (struct section_reference, struct da_index_entry): Remove.
8949         (bbg_file, da_file): Remove.
8950         (htab_counts_index_hash, htab_counts_index_eq,
8951         htab_counts_index_del): Replace with ...
8952         (htab_counts_entry_hash, htab_counts_entry_eq,
8953         htab_counts_entry_del): ... these.
8954         (cleanup_counts_index, index_counts_file): Remove.
8955         (read_counts_file): New function.
8956         (get_exec_counts): Adjust.
8957         (compute_branch_probabilities): Don't free the exec counts here.
8958         (branch_prob): Adjust.
8959         (init_branch_prob): Adjust.
8960         (end_branch_prob): Adjust.
8962 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
8964         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8965         -mfloat-gprs.
8967         * config/rs6000/rs6000.c: Delete rs6000_fprs.
8968         Declare rs6000_float_gprs.
8969         Declare rs6000_float_gprs_string.
8970         (rs6000_parse_float_gprs_option): New.
8971         (rs6000_override_options): Genericize rs6000_parse_* calls to use
8972         rs6000_parse_yes_no_option.
8973         Change check for cpu=8540, to use TARGET_E500.
8974         (rs6000_parse_isel_option): Delete.
8975         (rs6000_parse_spe_option): Delete.
8976         (rs6000_parse_vrsave_option): Delete.
8978         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
8979         Define rs6000_float_gprs_string.
8980         (TARGET_OPTIONS): Add rs6000_float_gprs option.
8982         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
8984         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
8986 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
8988         PR opt/10024
8989         * cfglayout.c (cfg_layout_redirect_edge):
8990         Redirect any branch edges unified with the fallthru one.
8991         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
8992         case fallthru edges when called via cfglayout.c
8994 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
8996         * c-typeck.c (output_init_element): Check for type == error_mark_node.
8998 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
9000         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
9001         split.
9002         (a splitter): Do zero-extension via HImode.
9004 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
9006         * doc/invoke.texi: Eliminate extra white-space caused by
9007         @gccoptlist{ on its own line.
9008         * doc/invoke.texi: Ensured there are two spaces between each option.
9009         * doc/invoke.texi: Re-wrapped option lines that were too wide.
9010         Added @gol to options that didn't have them.
9012 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
9014         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
9016 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
9018         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
9019         at the sizes of the relevant structures, rather than relying
9020         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
9021         sizes of any such we don't know about.  Use
9022         lang_hooks.identifier_size for IDENTIFIER_NODE.
9024         (initializer_zerop): Use CONSTRUCTOR_ELTS.
9025         * tree.def: Update commentary.  Make fourth element of
9026         the definition for all 'c' and 'x' nodes zero.
9028         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
9029         * langhooks-def.h: Update to match.
9030         * langhooks.c: New default, lhd_tree_size.
9032         * c-common.def (SRCLOC): Kill.
9033         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
9034         Remove entirely - was already #if-ed out.
9037 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
9039         * mklibgcc.in: Use a here document to avoid running afoul of
9040         shells that generate control-A from "echo \1".
9042 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
9044         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
9045         option.
9047         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
9048         rs6000_spe.
9050         * config/rs6000/eabi.h (TARGET_E500): Define.
9052         * config/rs6000/rs6000.h (TARGET_E500): Define.
9053         (TARGET_OPTIONS): Add spe= option.
9054         Declare rs6000_spe and rs6000_spe_string extern.
9056         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
9057         Change TARGET_SPE to TARGET_E500.
9058         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
9059         !TARGET_FPRS.
9060         (print_operand): Same.
9061         (rs6000_generate_compare): Same.
9062         (output_cbranch): Same.
9063         (rs6000_spe): Declare.
9064         (rs6000_spe_string): Declare.
9065         (rs6000_override_options): Call rs6000_parse_spe_option.
9066         (rs6000_parse_spe_option): New.
9068 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
9070         * hashtable.c (gcc_obstack_init): Delete this function
9071         and everything related to it.
9072         * hashtable.h: Remove prototype.
9073         * bitmap.c (bitmap_element_allocate): Cleanup redundant
9074         defines.  Cleanup some unnecessary whitespace.
9075         * defaults.h (obstack_chunk_alloc): Redefine with
9076         appropriate casts for libiberty obstacks.
9077         (obstack_chunk_free): Ditto.
9078         (OBSTACK_CHUNK_SIZE): Define, default to 0.
9079         (gcc_obstack_init): Define as a call to _obstack_begin.
9080         * tree.c (print_obstack_statistics): Delete this unused
9081         function.
9082         * tree.h (obstack): Don't forward-declare.
9083         (print_obstack_statistics): Delete prototype.
9084         (print_obstack_name): Ditto.
9085         (gcc_obstack_init): Ditto.
9086         * rtl.h (gcc_obstack_init): Ditto.
9087         * java/jv-scan.c (gcc_obstack_init): Delete this
9088         function, its prototype and related defines.
9089         * java/jvgenmain.c (gcc_obstack_init): Delete this
9090         function, and related defines.
9091         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
9092         (obstack_chunk_free): Ditto
9094 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
9096         * dbxout.c (dbxout_handle_pch): Move prototype out from
9097         #if defined DBX_DEBUGGING_INFO.
9099 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
9101         * gcov.c (struct arc_info): Replace local_span with cycle.
9102         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
9103         (solve_flow_graph): Set is_call_return.
9104         (add_line_counts): Adjust. In block mode, blocks attach to last line.
9105         (accumulate_line_counts): Find graph cycles, not spanning tree.
9106         (output_branch_count): Adjust.
9107         (output_lines): Adjust.
9108         * doc/gcov.texi: Update.
9110 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
9112         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
9113         the second alternative to "#".
9115 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
9117         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
9118         (single_zero_operand): Likewise.
9120 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
9122         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
9123         * df.c: Include alloc-pool.h, not obstack.h.
9124         (df_ref_obstack): Remove.
9125         (df_ref_pool, df_link_pool): Add pools.
9126         (df_alloc): Init the new pools.
9127         (df_free): And free them.
9128         (df_link_create): Use the pools.
9129         (df_ref_create): Ditto.
9131 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
9133         * simplify-rtx.c: Fix formatting.
9135 2003-04-05  Andrew Pinski  <apinski@apple.com>
9137         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
9138         reg with reg1 == reg2 and offset1 = -8.
9140 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
9142         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
9143         multiply costs.  Correct Power4 divide costs.
9144         * config/rs6000/power4.md: Restore multiply and FP latency.
9146 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9148         * alias.c (find_base_term): Export.
9149         * rtl.h (find_base_term): Declare.
9150         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
9151         instead of flag_exceptions.  Move test for parameter passing ...
9152         (store_killed_in_insn): ... here.
9154 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9156         PR bootstrap/10267
9157         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
9158         for configuring.
9160 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
9162         * dbxout.c (scope_labelno): Add GTY.
9163         (have_used_extensions): Add GTY.
9164         (source_label_number): Add GTY.
9165         (lastfile): Add GTY.
9166         (lastfile_is_base): New.
9167         (base_input_file): New.
9168         (dbxout_handle_pch): New.
9169         (dbx_debug_hooks): Add handle_pch.
9170         (xcoff_debug_hooks): Likewise.
9171         (dbxout_function_end): Remove scope_labelno.
9172         (dbxout_init): Set base_input_file.
9173         (dbxout_handle_pch): New.
9174         (dbxout_source_file): Honour lastfile_is_base.
9175         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
9176         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
9177         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
9178         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
9179         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
9180         * debug.h (struct gcc_debug_hooks): Add handle_pch.
9181         * c-pch.c (pch_init): Don't call start_source_file, but do call
9182         handle_pch.
9183         (c_common_write_pch): Call handle_pch.
9184         (c_common_read_pch): Don't call start_source_file,
9185         or end_source_file.
9187 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
9189         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
9190         use of default attributes to agree MEM_ALIGN macro.
9192 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
9194         * dbxout.c (dbxout_type): When printing type index of range type
9195         whose bounds are printed in octal format, print type of parent type if
9196         it exists so enumerated type descriptions are not transformed
9197         into unsigned types.
9199 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
9201         * config/h8300/h8300-protos.h: Add a prototype for
9202         compute_a_shift_cc.
9203         * config/h8300/h8300.c (shift_one): Update the CC status.
9204         (shift_two): Likewise.
9205         (output_a_shift_cc): Set cc_inline and cc_special.
9206         (compute_a_shift_cc): New.
9207         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
9209 2003-04-04  Richard Henderson  <rth@redhat.com>
9211         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
9213 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
9215         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
9216         * fixinc/fixincl.x: Rebuilt.
9217         * fixinc/tests/base/stdio.h: Regenerated.
9219 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
9221         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
9223 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
9225         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
9226         (NORMAL_MODE).
9227         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
9229 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9231         * doc/contrib.texi (Contributors): Add entries for Wolfgang
9232         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
9233         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
9234         Danny Smith, and Ulrich Weigand.
9235         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
9236         entry.
9238 2003-04-04  Nick Clifton  <nickc@redhat.com>
9240         * config/sparc/sol2-bi.h: Revert previous delta.
9241         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
9243 2003-04-04  Nick Clifton  <nickc@redhat.com>
9245         * config/v850/v850.c (expand_prologue): Only use register save
9246         helper functions if long calls are not being used.
9247         Add a clobber of r11 id using long calls.
9248         (pattern_is_ok_for_prologue): Account for the extra clobber.
9249         (construct_save_jarl): Likewise.
9250         * config/v850/v850.md (prolog pattern): Do not use this pattern
9251         for v850e's.
9253 2003-04-04  Andreas Schwab  <schwab@suse.de>
9255         * stor-layout.c (layout_decl): Avoid syntax error in last change
9256         when PCC_BITFIELD_TYPE_MATTERS is defined but not
9257         EMPTY_FIELD_BOUNDARY.
9259 2003-04-03  Jason Merrill  <jason@redhat.com>
9261         PR c/10175
9262         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
9263         Look backwards for a line note.
9265 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
9267         * fix-header.c (read_scan_file): Defer switch processing.
9269 2003-04-03  Matt Austern  <austern@apple.com>
9271         * cpppch.c (reset_ht): Remove.
9272         (cpp_read_state): Remove loop to reset hashtable identifiers.
9273         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
9274         after pch file is written.
9275         * ggc.h (gt_pch_fixup_stringpool): Declare.
9276         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
9277         hashnode's value to another hashtable, then clear the original.
9278         (saved_ident_hash): Define.
9279         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
9280         store definitions in ident_hash, and clear ident_hash.
9281         (gt_pch_fixup_stringpool): Define.  Restore definitions from
9282         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
9284 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
9286         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
9288 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
9290         PR optimization/10157
9291         * gcse.c (can_copy_p): Rename it to can_copy.
9292         (can_copy_init_p): Remove.
9293         (compute_can_copy): Use can_copy instead of can_copy_p.
9294         (can_copy_p): New exported function. Call compute_can_copy.
9295         (hash_scan_set): Use it.
9296         (gcse_main): Don't call compute_can_copy.
9297         (bypass_jumps): Don't call compute_can_copy.
9298         * rtl.h (can_copy_p): Declare.
9299         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
9300         copy if the mode doesn't support copy operations.
9302 2003-04-03  Jason Merrill  <jason@redhat.com>
9304         * Makefile.in (unstrap): Also remove stage_last.
9306         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
9307         (dwarf2out_source_line): Don't do anything if line==0.
9309         * stor-layout.c (do_type_align): New fn, split out from...
9310         (layout_decl): ...here.  Do all alignment calculations for
9311         FIELD_DECLs here.
9312         (update_alignment_for_field): Not here.
9313         (start_record_layout, debug_rli): Remove unpadded_align.
9314         * tree.h (struct record_layout_info_s): Remove unpadded_align.
9315         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
9316         or DECL_MODE on the CONST_DECLs.
9317         (finish_struct): Don't mess with DECL_ALIGN.
9319 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
9321         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
9323 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
9325         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
9326         function is an interrupt handler.
9328         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
9329         restoring target registers with EH_RETURN_STACKADJ_RTX; use
9330         multiple registers in round-robin fashion.
9332 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9334         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
9335         * system.h (CHAR_BITFIELD): New.
9337 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
9339         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
9340         and LE.
9341         (another peephole2): Likewise.
9343 2003-04-03  Nick Clifton  <nickc@redhat.com>
9345         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
9346         (DEF_ARCH64_SPEC): Likewise.
9348 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
9350         * i386.c (constant_address_p): Use legitimate_constant_p.
9351         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
9353 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
9355         * config/h8300/h8300-protos.h: Add a prototype for
9356         gtle_operator.
9357         * config/h8300/h8300.c (gtle_operator): New.
9358         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
9359         gtle_operator.
9360         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
9361         and LE.
9363 2003-04-02  Richard Henderson  <rth@redhat.com>
9365         * libgcc-std.ver (_Unwind_GetCFA): New.
9366         * unwind-dw2.c (_Unwind_GetCFA): New.
9367         * unwind-libunwind.c (_Unwind_GetCFA): New.
9368         * unwind-sjlj.c (_Unwind_GetCFA): New.
9369         * unwind.h: Declare it.
9371 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
9373         PR inline-asm/8088
9374         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
9375         when MMX/SSE is not available.
9377 2003-04-02  Mike Stump  <mrs@apple.com>
9379         * doc/install.texi (Specific): Update pointers to apple.com.
9381 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
9383         * i386.c (override_options):  Disable red zone by default on i386.
9384         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
9385         Do not test TARGET_64BIT together with TARGET_RED_ZONE
9387 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
9389         * config/h8300/h8300.md (a peephole2): Tighten the condition.
9391 2003-04-02  Richard Henderson  <rth@redhat.com>
9393         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
9395 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
9397         * config/h8300/h8300.md (a peephole2): New.
9399 2003-04-02  Richard Henderson  <rth@redhat.com>
9401         * except.c (sjlj_find_directly_reachable_regions): Recognize when
9402         must-not-throw region has been deleted.
9404 2003-04-02  Richard Henderson  <rth@redhat.com>
9406         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
9407         optimization when flag_exceptions not enabled.
9409 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
9411         * config/rs6000/rs6000.c
9412         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
9413         macros.
9414         (rs6000_issue_rate): Add case for 8540.
9415         (rs6000_use_sched_lookahead): New function.
9417         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
9418         units into MU ones.
9419         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
9420         reservation before retirement.
9421         (ppc8540_multiply, ppc8540_load, ppc8540_store,
9422         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
9423         Remove additional cycle in the reservation before retirement.
9424         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
9425         reservation of ppc8540_issue.
9427 2003-04-02  Andreas Schwab  <schwab@suse.de>
9429         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
9431 2003-04-01  Richard Henderson  <rth@redhat.com>
9433         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
9434         notes for nothrow calls if flag_forced_unwind_exceptions.
9435         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
9436         (sjlj_find_directly_reachable_regions): Likewise.
9437         (reachable_handlers): Likewise.
9438         (can_throw_external): Likewise.
9439         (collect_one_action_chain): Record cleanups after catch-all and
9440         must-not-throw if flag_forced_unwind_exceptions.
9441         * flags.h (flag_forced_unwind_exceptions): Declare.
9442         * toplev.c (flag_forced_unwind_exceptions): New.
9443         (lang_independent_options): Add it.
9444         * doc/invoke.text: Add it.
9446 2003-04-01  David Mosberger <davidm@hpl.hp.com>
9448         * config/ia64/crti.asm: Clean up trailing whitespace.
9449         Remove trailing hashes (#) from identifiers.
9451         * config/ia64/crtn.asm: Ditto.
9453         * config/ia64/crtend.asm: Remove trailing hashes (#) from
9454         identifiers.
9455         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
9456         directives.  Drop explicit bundling---it just makes the code
9457         harder to read.  Don't save/restore gp needlessly.
9459         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
9460         identifiers (they're only needed if the identifier would clash
9461         with a register name otherwise).
9462         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
9463         directives.  Drop explicit bundling---it just makes the code
9464         harder to read.
9465         (__do_jv_register_classes): Ditto.
9466         (.fini_array): Remove "progbits" (newer
9467         assemblers don't like wrong section-types).
9468         (.init_array): Ditto.
9470 2003-04-01  Roger Sayle  <roger@eyesopen.com>
9472         PR fortran/9974
9473         * gcse.c (reg_killed_on_edge): New function to test whether the
9474         given reg is overwritten by any instruction queued on an edge.
9475         (bypass_block): Ignore substitutions killed on incoming edges.
9476         Don't bypass outgoing edges that have queued instructions.
9478 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
9480         * real.h (EXP_BITS): Make room for...
9481         (struct real_value): ... added canonical bit.
9482         (struct real_format): Added pnan.
9483         (mips_single_format, mips_double_format, mips_extended_format,
9484         mips_quad_format): New.
9485         * real.c: Copy p to pnan in all formats.
9486         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
9487         (real_nan): Use pnan to compute significand's shift.
9488         (real_identical): Disregard significand in canonical
9489         NaNs.
9490         (real_hash): Likewise.  Take signalling into account.
9491         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
9492         Disregard significand bits in canonical NaNs.  Set all bits of
9493         canonical NaN if !qnan_msb_set.
9494         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
9495         qnan_msb_set to tell the base double format.
9496         (ibm_extended_format): Use 53 as pnan.
9497         (mips_single_format, mips_double_format, mips_extended_format,
9498         mips_quad_format): Copied from the corresponding ieee/ibm
9499         formats, with qnan_msb_set false.
9500         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
9501         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
9502         * config/mips/mips.c (override_options): Use mips_single_format
9503         and mips_double_format.  Default TFmode to mips_quad_format.
9504         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
9505         * config/mips/t-irix6: Likewise.
9506         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
9507         * config/fp-bit.c (pack_d, unpack_d): Obey it.
9509 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
9511         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
9512         (live_image_destructor): Reset image to initial state.
9513         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
9515 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
9517         * config/sparc/sparc.c (input_operand): Accept bare
9518         CONSTANT_P_RTX operands.
9520 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9522         * gcse.c (struct ls_expr): Added pattern_regs field.
9523         (ldst_entry): Initialize it.
9524         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
9525         (store_ops_ok): Use regs precomputed by them.
9526         (find_loads, store_killed_in_insn, load_kills_store): Change return
9527         type to bool.
9528         (store_killed_before, store_killed_after): Take position of register
9529         set in account.
9530         (reg_set_info): Store position of the setter.
9531         (gcse_main): Enable store motion.
9532         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
9533         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
9534         sharing.
9535         (simple_mem): Enable store motion of non-symbol mems.
9536         (regvec): Type changed.
9537         (LAST_AVAIL_CHECK_FAILURE): New.
9538         (compute_store_table_current_insn): New.
9539         (build_store_vectors): Computation of availability and anticipatability
9540         moved ...
9541         (compute_store_table, find_moveable_store): ... here.
9542         (delete_store): Remove senseless comment.
9543         (store_motion): Reorganize.
9545 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
9547         * config/mips/mips.c (override_options): Provide mappings for
9548         HI_REGNUM and LO_REGNUM.
9549         * config/mips/mips.h (MD_DBX_FIRST): Define.
9551 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9553         * combine.c (merge_outer_ops): Fix typo.
9555         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
9557 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
9559         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
9560         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
9561         imul_compare.  Add lmul_compare.
9562         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
9563         in second pair of dispatch slots.  Model stores more accurately.
9564         Tweak multiply model.  Add bypasses for CR instructions dependent
9565         on complicated compares.
9566         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
9567         (muldi3): Add lmul_compare patterns.
9568         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
9569         and FPSTORE_UX to split instructions and add COMPARE,
9570         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
9571         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
9572         (rs6000_rtx_costs): Separate POWER4 multiply case.
9574 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
9576         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
9577         Do nothing if __builtin_return_address was not used.
9579 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
9581         * i386.md (test patterns):  Allow memory operand in operand1.
9583 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
9585         * testsuite/gcc.c-torture/execute/simd-3.c: New.
9587         * expr.c (expand_expr): Handle VECTOR_CST.
9588         (const_vector_from_tree): New.
9590         * varasm.c (output_constant): Handle VECTOR_CST.
9592         * c-typeck.c (digest_init): Build a vector constant from a
9593         VECTOR_TYPE.
9595         * config/rs6000/rs6000.c: Remove prototype for
9596         easy_vector_constant.
9597         (easy_vector_constant): Add mode parameter.  Rewrite to handle
9598         more easy constants.
9599         (rs6000_emit_move): Pass mode to easy_vector_constant.
9600         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
9601         (emit_easy_vector_insn): New.
9602         (easy_vector_same): New.
9603         (EASY_VECTOR_15): New macro.
9604         (EASY_VECTOR_15_ADD_SELF): New macro.
9605         (bdesc_2arg): Rename to xorv2si3.
9606         (easy_vector_constant_add_self): New.
9607         (input_operand): Allow vector constants.
9609         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
9610         easy_vector_constant, easy_vector_constant_add_self.
9611         (EXTRA_CONSTRAINT): Add 'W'.
9613         * config/rs6000/rs6000-protos.h: Add prototype for
9614         easy_vector_constant, emit_easy_vector_insn.
9616         * config/rs6000/altivec.md (xorv8hi3): New.
9617         (xorv16qi3): New.
9618         Remove all _const0 patterns.
9619         (movv4si_internal): Rewrite to use code.  Add vector constant to
9620         vector alternative.  Add splitter.
9621         (movv8hi_internal): Same.
9622         (movv16qi_internal): Same.
9623         (movv4sf_internal): Same.
9624         Change the unspecs for vspltis* to use constants.
9626         * config/rs6000/spe.md ("xorv4hi3"): New.
9627         ("spe_evxor"): Rename to xorv2si3.
9628         ("xorv1di3"): New.
9629         Remove all _const0 patterns.
9630         (movv2si_internal): Rewrite to use code.  Add vector constant to
9631         alternatives.  Add splitter.
9632         (movv4hi_internal): Add vector constant to alternatives.
9633         (movv1di_internal): Same.
9634         (movv2sf_internal): Same.
9636 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
9638         PR c/9936
9639         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
9640         variably-sized arrays in parameters.
9641         (set_save_expr_context): New function.
9642         (c_expand_body): Use it, via walk_tree.
9644 2003-03-31  Eric Christopher  <echristo@redhat.com>
9646         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
9647         (combinable_i3pat): Remove call to expand_field_assignment and
9648         #if 0'd code.
9650 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
9652         PR c++/10278
9653         * c-common.c (finish_label_address_expr): Handle the
9654         error_mark_node.
9656 2003-03-31  Richard Henderson  <rth@redhat.com>
9658         * real.c (real_identical): Reorg so as to not compare
9659         signalling for normals.
9661 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
9663         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
9665 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
9667         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
9668         notes as they are boggus.
9669         (m68hc11_gen_movqi): Likewise.
9671 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
9673         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
9674         save the soft registers after the frame pointer so that gdb can unwind
9675         the frame more easily.
9676         (expand_epilogue): Likewise in opposite order; allow to use X register
9677         as scratch if the return value is by reference.
9679 2003-03-31  Jason Merrill  <jason@redhat.com>
9681         PR java/10145
9682         * stor-layout.c (update_alignment_for_field): Respect
9683         DECL_USER_ALIGN for zero-length bitfields, too.
9684         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
9685         fields.
9687 2003-03-31  Matt Austern  <austern@apple.com>
9689         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
9690         (count_defs): Keep track of number of defs as well as total size.
9691         (write_defs): Put every definition in cpp_savedstate's defs array.
9692         (comp_hashnode): Define.  Comparison function for qsort.
9693         (cpp_write_pch_deps): Sort definitions before writing them.
9694         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
9695         (collect_ht_nodes): Define.
9696         (cpp_valid_state): When verifying that undefined identifiers in
9697         the pch file are still undefined, read a sorted list of undefined
9698         identifiers, collect all defined identifiers into a sorted list,
9699         and walk through both lists to make sure there's no match.
9701 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
9703         * config/h8300/h8300.md (a peephole2): New.
9705 2003-03-31  Michael Matz  <matz@suse.de>
9707         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
9709 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
9711         PR target/10177
9712         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
9713         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
9714         all call-clobbered registers as used.
9716 2003-03-31  Michael Matz  <matz@suse.de>
9718         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
9719         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
9721 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
9723         * gcov.c: Add -a & -u options.
9724         (struct arc_info): Add local_span, is_call_non_return,
9725         is_nonlocal_return, is_unconditional flags, remove is_call flag.
9726         (struct block_info): Add flags, is_call_site, is_nonlocal_return
9727         members. Make encodings a union with span member.
9728         (struct function_info): Add blocks_executed, line, src, line_next
9729         members.
9730         (struct coverage_info): Make branches a union with blocks member.
9731         (struct source_info): Add functions member.
9732         (object_summary, program_count): New global variables.
9733         (flag_all_blocks, flag_unconditional): New flags.
9734         (find_source, output_branch_count): New functions.
9735         (print_usage): Adjust.
9736         (options): Adjust.
9737         (process_args): Adjust.
9738         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
9739         <GCOV_TAG_BLOCKS>: Read flags.
9740         <GCOV_TAG_LINES>: Adjust.
9741         (read_count_file): Process SUMMARY tags.
9742         (solve_flow_graph): Set is_unconditional and clear is_call_site
9743         appropriately.
9744         (add_branch_counts): Adjust. Don't count unconditional branches.
9745         (add_line_counts): Deal with all-blocks mode, accumulate block
9746         coverage.
9747         (accumulate_line_counts): Adjust, generate local spanning tree for
9748         all-blocks mode.
9749         (output_lines): Adjust.
9750         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
9751         * doc/gcov.texi: Document.
9753 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
9755         * config/h8300/h8300.md: Organize peephole2's that transform
9756         (compare (reg:HI) (const_int)).
9758 2003-03-31  Roger Sayle  <roger@eyesopen.com>
9760         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
9761         (init_emit_once): Initialize dconstm2 and dconsthalf here.
9762         * real.h (dconstm2, dconsthalf): Add prototypes here.
9763         * real.c (real_sqrt): Use dconsthalf rather than local copy.
9764         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
9765         exp(x/2.0) remember to fold the division if possible.
9766         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
9767         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
9768         1.0/(x*x) and pow(x,0.5) as sqrt(x).
9770 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
9772         * config/h8300/h8300.md (a new peephole2): New.
9774 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
9776         * gcse.c (simple_mem): Return false for floating-point accesses
9777         if flag_float_store is true.
9779 2003-03-30  Roger Sayle  <roger@eyesopen.com>
9781         * gcse.c (gcse_constant_p): New function to identify constants
9782         suitable for constant propagation, including COMPARE with two
9783         integer constant arguments.
9784         (hash_scan_set): Use gcse_constant_p.
9785         (find_avail_set): Likewise.
9786         (cprop_insn): Likewise.
9787         (do_local_cprop): Likewise.
9788         (find_implicit_sets): Likewise.
9789         (find_bypass_set): Likewise.
9791 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
9793         * except.h: Remove definition of varray_type.
9795 2003-03-30  Richard Henderson  <rth@redhat.com>
9797         PR opt/10011, opt/10252:
9798         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
9799         before post-gcse cse pass.
9801 2003-03-30  Roger Sayle  <roger@eyesopen.com>
9803         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
9805 2003-03-30  DJ Delorie  <dj@redhat.com>
9807         * profile.c (instrument_edges): Make sure any newly created
9808         jump insns have correct jump label info.
9810 2003-03-30  Richard Henderson  <rth@redhat.com>
9812         * cfgbuild.c (make_edges): Use tablejump_p.
9813         * cfgcleanup.c (label_is_jump_target_p): Likewise.
9814         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
9815         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
9816         (try_redirect_by_replacing_jump): Likewise.
9817         (redirect_edge_and_branch): Likewise.
9818         * cse.c (fold_rtx): Likewise.
9819         * jump.c (delete_related_insns): Likewise.
9820         * rtlanal.c (get_jump_table_offset): Likewise.
9821         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
9823 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9825         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
9826         (STRICT2_WARN): Likewise.
9828 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9830         PR other/6955
9831         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
9832         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
9834 2003-03-30  Richard Henderson  <rth@redhat.com>
9836         PR c/10083
9837         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
9838         don't zero_extend const inputs.
9840 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
9842         * reload1.c (reload_cse_move2add): Fix a comment typo.
9844 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
9846         * config/h8300/h8300.md (a peephole2): Remove useless code.
9848 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
9850         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
9851         (*iorsi3_and_lshiftrt): Likewise.
9852         (*iorsi3_zero_extract): Likewise.
9854 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
9856         * config/h8300/h8300.md (*insv_si_8_8): New.
9857         (*insv_si_8_8_lshiftrt_8): Likewise.
9858         (a peephole2): Likewise.
9860 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9862         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
9863         Uniformly use bugfix instead of bug fix.
9865 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9867         PR doc/895
9868         * ONEWS: Remove those items that already appear in the EGCS
9869         release notes on our web pages.
9871 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
9873         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
9874         TARGET_HARD_FLOAT.  Reformat.
9875         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
9877 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
9879         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
9880         work on Solaris 2.5.1.
9882 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
9884         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
9885         section of h8300.md
9886         (*addsi3_and_nor_r_1): Likewise.
9888 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
9890         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
9891         set up before any trapping memory access if flag_non_call_exceptions.
9893 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
9895         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
9897         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
9899 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
9901         * configure.in: Clarify comments.
9902         * configure: Regenerate.
9904 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
9906         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
9907         label even if pool empty when generating PIC.
9908         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
9910 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
9911             Dhananjay Deshpande  <dhananjayd@kpit.com>
9913         PR target/10205
9914         * config/h8300/h8300.c (h8300_initial_elimination_offset):
9915         Correct the offset computation when TARGET_NORMAL.
9917 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
9919         PR target/10067
9920         * config/sparc/sparc.md (jump pattern): Correct order
9921         when issuing the annuling marker.
9923 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
9925         PR c/8281
9926         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
9927         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
9929 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
9931         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
9932         globalize_label.
9933         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9934         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9935         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9936         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9937         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9938         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9939         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
9941 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
9943         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
9944         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
9945         notes after hoisting.
9946         (load_mems): Adjust replace_loop_mems call.
9948 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
9949             Richard Henderson  <rth@redhat.com>
9951         PR target/10114 and PR target/10084
9952         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
9954 2003-03-27  Richard Henderson  <rth@redhat.com>
9956         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
9958 2003-03-27  Roger Sayle  <roger@eyesopen.com>
9960         * fold-const.c (fold_inf_compare):  New function to simplify FP
9961         comparisons against +Infinity or -Infinity.
9962         (fold):  Optimize floating point comparisons against Infs and NaNs.
9964 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
9966         * libgcov.c: Provide only dummy functions if libc is not available.
9968 2003-03-27  Richard Henderson  <rth@redhat.com>
9970         * real.h (struct real_value): Add signalling.
9971         (EXP_BITS): Decrement.
9972         * real.c (get_canonical_qnan): Don't set MSB-1.
9973         (get_canonical_snan): Likewise.  Set signalling.
9974         (real_identical): Compare signalling.
9975         (round_for_format): Remove force-one-bit on code.
9976         (real_nan): Likewise.  Set signalling.
9977         (encode_ieee_single): Add force-one-bit code; honor signalling.
9978         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
9979         (decode_ieee_single): Set signalling.
9980         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
9982 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
9984         PR ada/9953
9985         * ada/Makefile.in (gnatlib configuration for HPUX): Split
9986         the general section for HPUX into specific sections for
9987         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
9988         11 case.
9990 2003-03-27  Glen Nakamura  <glen@imodulo.com>
9992         PR opt/10087
9993         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
9994         while incrementing giv.
9995         (record_biv): Check for duplicate biv locations and
9996         set (struct induction *) v->same if found.
9998 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
10000         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
10001         v0.9 API change: replace read of UNW_REG_HANDLER with
10002         unw_get_proc_info().
10003         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
10004         with unw_get_proc_info().
10005         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
10006         unw_get_proc_info().
10008 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
10010         * config/rs6000/8540.md: Use presence_set instead of absence_set.
10012 2003-03-26  Richard Henderson  <rth@redhat.com>
10014         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
10016 2003-03-26  Roger Sayle  <roger@eyesopen.com>
10018         PR bootstrap/10051, PR bootstrap/10169.
10019         * mips-tfile.c (init_file): Don't provide a static initializer.
10020         (initialize_init_file): Initialize the contents of init_file.
10021         (add_file): Call initialize_init_file if not already initialized.
10023 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
10025         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
10026         registers used for global asm variables.
10027         (s390_frame_info, s390_arg_frame_offset): Likewise.
10028         (s390_emit_prologue, s390_emit_epilogue): Likewise.
10030 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
10032         * config/rs6000/8540.md: New file.
10034         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
10035         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
10036         reservations for imul.
10038         * config/rs6000/rs6000.md: Include 8540.md.  Change
10039         delayed_compare onto mult_compare for insns generating
10040         multiplication.
10041         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
10042         New type attribute values.
10044         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
10045         fpsimple instead of fp.
10046         (*divsf3_gpr): Use type vecfdiv instead of fp.
10047         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
10048         instead of vecfloat.
10049         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
10050         (spe_brinc): Use type brinc instead of veccomplex.
10051         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
10052         veccomplex.
10053         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
10054         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
10055         *movv2sf_internal): Define type attribute values for all
10056         alternatives.
10057         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
10058         of fpcompare.
10059         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
10060         instead of fpcompare.
10062 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
10064         * config/rs6000/power4.md: Allow delay between dispatch and
10065         function units for simple instructions.  Correct store units.
10066         Allow branch to occupy as many dispatch slots as necessary.
10068 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
10070         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
10071         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
10072         zero extend old to it.
10073         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
10074         operand.
10076 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
10078         PR target/7784
10079         * reload.c (find_reloads_address): Handle
10080         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
10081         all base registers.
10083 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
10085         PR other/10203
10086         * version.c: Reference the GCC web site in the URL.
10088 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
10090         * c-incpath.c (add_standard_paths): Add both "translated" and
10091         non-translated header paths.
10093 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
10095         * doc/install.texi (*-*-freebsd*): Update with known status.
10097 2003-03-21  Jason Merrill  <jason@redhat.com>
10099         PR optimization/10171
10100         * unroll.c (unroll_loop): Don't delete the jump at the end unless
10101         we also delete a jump at the beginning.
10103 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
10105         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
10106         contributor.
10108 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
10110         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
10111         constants are not expensive.
10113 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
10115         PR opt/10056
10116         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
10117         jump jumping to the next instruction.
10118         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
10120 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10122         * doc/passes.texi (Passes): Properly document that we do not
10123         perform jump2 any longer; remove command-line option -dJ.
10125 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
10127         PR optimization/8746
10128         * config/i386/i386.md (and promoting splitters): Disable HImode to
10129         SImode promoting when the sign bit matters and is not preserved, or
10130         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
10131         for size.
10133 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
10135         * config/h8300/h8300.md (a peephole2): Extend to support loads
10136         in QImode and HImode.
10138 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
10140         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
10141         _return_far
10142         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
10143         (MULTILIB_EXCEPTIONS): Likewise.
10144         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
10145         by calling some board support routine.
10146         ("call_value"): Likewise.
10147         ("*return_void"): Likewise for return.
10148         ("*return_16bit"): Likewise.
10149         ("*return_32bit"): Likewise.
10150         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
10151         for 68HC11 too.
10152         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
10153         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
10154         -mlong-calls for 68HC11.
10155         * config/m68hc11/larith.asm (declare_near): New macro.
10156         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
10157         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
10158         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
10159         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
10160         (__mulhi32): Likewise.
10161         (ret): Update macro for 68HC11.
10162         (__far_trampoline): Implement for 68HC11.
10163         (__call_a16, __call_a32, __return_void, __return_16): New support
10164         routines for 68HC11 memory bank switching calling support.
10165         (__return_32): Likewise.
10167 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
10169         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
10171 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
10173         * doc/install.texi (Testing): Mention test result links from build
10174         status pages.
10176 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
10178         * function.c (put_var_into_stack): Change bool parameter to int.
10179         (gen_mem_addressof): Likewise.
10180         * rtl.h (gen_mem_addressof): Likewise.
10181         * tree.h (put_var_into_stack): Likewise.
10182         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
10183         gen_mem_addressof or put_var_into_stack.
10184         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
10185         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
10187 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
10189         * config/h8300/h8300.md (a peephole2): New.
10191 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
10193         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
10195 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10197         * doc/contrib.texi (Contributors): Update Janis Johnson.
10199 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
10201         PR target/10072
10202         * combine.c (simplify_if_then_else): Check that the mode
10203         has MODE_INT class before applying the (OP Z (mult COND C2))
10204         transformation.
10206 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
10208         PR optimization/9414
10209         * config/sparc/sparc.md (widening peepholes): Use
10210         widen_memory_access instead of change_address.
10212 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
10214         PR c++/7086
10215         * c-typeck.c (c_mark_addressable): Adjust calls to
10216         put_var_into_stack.
10217         * expr.c (expand_expr): Likewise.
10218         * function.c (put_var_into_stack): Add rescan parameter.  Do not
10219         call fixup_var_refs when rescan is false.
10220         (gen_mem_addressof): Likewise.
10221         (assign_parms): Adjust calls to put_var_into_stack.
10222         (setjmp_protect): Likewise.
10223         (setjmp_protect_args): Likewise.
10224         * rtl.h (gen_mem_addressof): Change prototype.
10225         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
10226         * tree.h (put_var_into_stack): Change prototype.
10228 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
10230         PR middle-end/9967
10231         * builtins.c (expand_builtin_fputs): When optimizing for size,
10232         don't transform fputs into fwrite.
10234 2003-03-23  Glen Nakamura <glen@imodulo.com>
10236         PR c/8224
10237         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
10238         when signedness changes for division or modulus.
10240 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
10242         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
10243         globalize_label.
10245 2003-03-23  Roger Sayle  <roger@eyesopen.com>
10247         PR c/10178
10248         * stmt.c (expand_end_case_type): Check for overflow in range when
10249         determining whether to use a bit-test implementation.
10251 2003-03-23  Richard Henderson  <rth@redhat.com>
10253         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
10254         before flow2.
10255         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
10257 2003-03-23  Richard Henderson  <rth@redhat.com>
10259         PR opt/10116
10260         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
10261         from then_bb or else_bb after flow2.
10263 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
10265         * configure.in: Check whether it is necessary to link against
10266         libm to use ldexp.
10267         * configure: Regenerate.
10268         * Makefile.in: Add LDEXP_LIB substitution variable.
10270 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
10272         * config/h8300/h8300.md: Fix comment typos.
10274 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10276         * pa.c (output_cbranch): Fix typo in comment.
10278 2003-03-22  Richard Henderson <rth@redhat.com>
10280         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
10281         after reload.
10283 2003-03-22  DJ Delorie  <dj at redhat dot com>,
10284         Bruce Korb  <bkorb at gnu dot org>
10286         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
10287         buggy Solaris 2.6 mutex/cond initializers.
10288         (solaris_mutex_init): Rename to solaris_mutex_init_2.
10289         * fixinc/fixincl.x: Regenerate.
10290         * fixinc/tests/base/pthread.h: Update.
10291         * fixinc/fixincl.c(initialize): be explicit about the default case
10292         and indicate verbose level when being very, very verbose.
10293         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
10295 2003-03-22  Andreas Jaeger  <aj@suse.de>
10297         * config/i386/i386.c (ix86_init_machine_status): Return value.
10299 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10301         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
10302         conditional branch to the following instruction.  Use next_real_insn
10303         instead of next_active_insn.
10304         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
10305         instead of next_active_insn.
10307 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
10309         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
10310         instead of 'm' constraint in forced-split alternatives.
10311         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
10312         VALIDATE_ADDRESS parameter to operand_subword.
10314 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
10316         * config/h8300/h8300.c (notice_update_cc): Correctly handle
10317         the case where the set destination is STRICT_LOW_PART.
10319 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
10321         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
10322         c30 instead of a c40 processor.
10324 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
10326         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
10328 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
10330         * c-common.c: Include intl.h.
10331         (shadow_warning): Rewrite to allow better diagnostic translations.
10332         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
10333         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
10334         use it throughout.
10335         * Makefile.in (c-common.o): Add intl.h.
10337 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
10339         * config.gcc: Remove 'float_format'.
10341         * fixproto: Define NULL and size_t in generated stdlib.h and
10342         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
10343         Rearrange file generation loop for readability.  Generate time.h,
10344         string.h if missing.
10345         * tsystem.h: Include <string.h>, <time.h> unconditionally.
10346         * config.gcc: Blow away POSIX defines.
10348 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
10350         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
10352 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
10354         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
10355         writing .interrupt command.
10356         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
10357         if it's a far or near function.
10358         ("call_value"): Likewise.
10359         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
10360         near attributes.
10361         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
10362         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
10363         (m68hc11_initial_elimination_offset): Set current_function_far
10364         according to attributes.
10365         (expand_prologue): Likewise.
10366         (trap_handler_symbol): New global to keep track of trap handlers.
10367         (m68hc11_encode_section_info): Mark symbol as far if needed; set
10368         trap symbol.
10369         (m68hc11_is_far_symbol): New function.
10370         (m68hc11_is_trap_symbol): New function.
10371         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
10372         (m68hc11_is_trap_symbol): Declare.
10374 2003-03-21  Jan Hubicka  <jh@suse.cz>
10376         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
10377         only when amount of saved regs changed.
10378         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
10379         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
10381 2003-03-21  Jan Hubicka  <jh@suse.cz>
10383         PR inline-asm/7916
10384         * function.c (instantiate_virtual_regs_lossage): New function.
10385         (instantiate_virtual_regs_1): Use it.
10386         (instantiate_virtual_regs): Do not continue in substition when insn has
10387         been deleted.
10389 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
10391         * combine.c (make_field_assignment): Fix a warning.
10393 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
10395         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
10397 2003-03-21  Dale Johannesen  <dalej@apple.com>
10399         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
10400         priority for R2 on Darwin.
10401         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
10403 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
10405         * combine.c (make_field_assignment): Remove unnecessary AND
10406         when storing into zero_extract.
10408 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
10410         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
10411         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
10412         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
10413         in comment.
10415 2003-03-21  DJ Delorie  <dj@redhat.com>
10417         * optabs.c (init_integral_libfuncs): Make sure we init at least up
10418         to "long long" size words.
10420 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
10422         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
10423         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
10424         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
10426 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
10428         PR doc-bug/9813
10429         * doc/extend.texi: Move misplaced paragraph about underscores in
10430         variables in macros.
10432 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
10433             Richard Henderson  <rth@redhat.com>
10435         PR optimization/8366
10436         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
10437         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
10438         PIC+SYMBOLIC_CONST in other modes than Pmode.
10439         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
10440         the form PIC+SYMBOLIC_CONST as mode dependent.
10442 2003-03-21  DJ Delorie  <dj@redhat.com>
10444         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
10445         sure we always emit at least one insn.
10447 2003-03-21  Christopher Faylor  <cgf@redhat.com>
10449         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
10450         stub t-cygming. Use common target header cygming.h. Add extra
10451         c_target_obj and cxx_target_obj file. Default cygwin to posix
10452         threading. Enforce i386 as float format.
10453         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
10454         Remove cygwin.h as target header. Use common target header
10455         cygming.h  Enforce i386 as float format. Correct typo.
10456         * config/i386/cygming.h: New file, containing definitions
10457         common to mingw32 and cygwin.
10458         * config/i386/cygwin.h: Remove definitions common to cygwin and
10459         mingw.  Simplify special spec logic.  Define "wrappers" around
10460         certain include path defines to accommodate -mno-cygwin.
10461         Remove some #if 0'ed code.
10462         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
10463         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
10464         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
10465         * config/i386/mingw32.h: Remove definitions common to cygwin and
10466         mingw.
10467         (EXTRA_OS_CPP_BUILTINS): Adjust.
10468         (TARGET_VERSION): Define.
10469         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
10470         mingw32.h definitions.
10471         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
10472         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
10473         Add compilation rules for cygwin1.o cygwin2.o.
10474         * config/i386/cygwin1.c: New file.
10475         * config/i386/cygwin2.c: New file.
10476         * config/i386/t-cygming: New makefile stub.
10478 2003-03-20  Richard Henderson  <rth@redhat.com>
10480         * fold-const.c (extract_muldiv_1): Revert changing order of
10481         operands in case MULT_EXPR of 2003-02-16 patch.
10483 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
10484         Merge changes from new-regalloc-branch
10486         From Michael Matz  <matz@suse.de>
10487         * df.c (df_ref_record_1): Move init of loc to safe point.
10488         Only recurse on interesting things in parallels.
10489         Handle CLASS_CANNOT_CHANGE_MODE smarter.
10490         (df_uses_record): Ditto.
10492         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
10493         it's already okay to use memory operands in (IE doesn't require
10494         adding another insn or anything).
10496 2003-03-20  Richard Henderson  <rth@redhat.com>
10498         PR middle-end/6348
10499         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
10500         different from word_mode.
10502 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10504         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
10505         source operand to those that can be extracted with bld.
10507 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
10509         PR 10066
10510         * arm.md (UNSPEC_PIC_BASE): New constant.
10511         (pic_add_dot_plus_four): Wrap with unspec.
10512         (pic_add_dot_plus_eight): Likewise.
10514 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10516         * config/h8300/h8300.md (*insv_si_1_n): New.
10517         (*insv_si_1_n_lshiftrt): Likewise.
10519 2003-03-20  Roger Sayle  <roger@eyesopen.com>
10521         * fold-const.c (fold_mathfn_compare): New function to simplify
10522         comparisons against built-in math functions.  Fold comparisons
10523         of sqrt against constants.
10524         (fold): Call fold_mathfn_compare when appropriate.
10526 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
10528         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
10529         information.
10531 2003-03-20  Per Bothner  <pbothner@apple.com>
10533         Various cleanups to help compile server.
10535         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
10536         and pass that to _cpp_init_hashtable.
10537         (cpp_read_main_file):  Drop hash_table* argument; don't call
10538         _cpp_init_hashtable.
10539         * cpplib.h:  Update declarations to match.
10540         * c-opts.c (c_common_init_options):  Pass ident_hash to
10541         cpp_create_reader.
10542         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
10543         * fix-header.c (read_scan_file):  Likewise pass NULL table to
10544         cpp_create_reader rather than cpp_read_main_file.
10546         * cppfiles.c (cpp_rename_file):  Generalized and renamed
10547         to cpp_change_file.
10548         * cpplib.h:  Update declaration to match.
10549         * c-opts.c (push_command_line_line, finish_options):  Change
10550         cpp_rename_file calls to cpp_change_file.
10552         * line-map.c (add_line_map):  Allow leaving the outermost file.
10553         Allowing entering an outermost-file after the initial time.
10555         * toplev.c (pop_srcloc):  Allow popping from initial file.
10557 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
10559         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
10561 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10563         * config/h8300/h8300.md (a peephole2): New.
10565 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10567         * config/h8300/h8300.md (*addsi3_and_r_1): New.
10568         (*addsi3_and_not_r_1): Likewise.
10570 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
10572         * Makefile.in (STRICT2_WARN): Add @WERROR@.
10573         (GCC_WARN_CFLAGS): Remove $(WERROR).
10574         (fixinc.sh-warn): New.
10575         * ada/Make-lang.in (ada-warn): Add $(WERROR).
10576         * cp/Make-lang.in (cp-warn): Add $(WERROR).
10577         * f/Make-lang.in (f-warn): Add $(WERROR).
10578         * java/Make-lang.in (java-warn): Add $(WERROR).
10579         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
10581 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
10583         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
10584         langhooks-def.h (lhd_tree_dump_dump_tree),
10585         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
10586         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
10587         true and false in return statements.
10589 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
10591         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
10592         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
10593         DWARF_INITIAL_LENGTH_SIZE.
10594         (output_compilation_unit_header, output_pubnames, output_aranges)
10595         (output_line_info): Output 0xffffffff escape value for 64-bit
10596         DWARF extension.
10597         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
10599 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
10601         * config/s390/s390.c (s390_preferred_reload_class): Do not
10602         force constants to the pool unless necessary.
10603         (s390_decompose_address): Prefer to use pointer as base,
10604         not index register.
10605         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
10606         Q alternative.
10607         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
10608         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
10609         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
10610         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
10611         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
10613 2003-03-19  Jan Hubicka  <jh@suse.cz>
10615         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
10616         * i386.c (use_fast_prologue_epilogue): Remove.
10617         (ix86_frame): New field save_regs-using_mov;
10618         (ix86_compute_frame_layout):  Decide on fast prologues;
10619         allocate saved registers in red zone.
10620         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
10622 2003-03-19  Nick Clifton  <nickc@redhat.com>
10624         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
10626 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10628         PR 10062
10629         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
10630         * pa-protos.h (output_lbranch): New prototype.
10631         * pa.c (compute_frame_size): Change size of the frame marker on the
10632         64-bit ports to 48 bytes.
10633         (pa_output_function_prologue): Document why SAVE_SP is set.
10634         (hppa_expand_prologue): Save previous stack pointer into frame marker
10635         on targets which use the hpux unwind library.
10636         (output_cbranch): Use output_lbranch.
10637         (output_lbranch): New function to output long unconditional branches.
10638         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
10639         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
10640         64-bit ports.
10641         * pa.md (jump): Use output_lbranch.
10642         (allocate_stack): New expander for dynamic stack allocation.
10644 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
10646         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
10647         when debugging on XCOFF targets.  Delete "abi" temp.
10649         PR target/10073
10650         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
10652 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
10654         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
10655         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
10656         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
10658         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
10659         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
10660         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
10662 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
10664         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
10665         the result of machopic_function_base_name.
10666         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
10667         string rather than a static array.
10669         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
10671         * gengtype.c: Include rtl.h.
10672         (enum rtx_code): Don't define.
10673         (rtx_format): Make declaration match rtl.h.
10674         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
10675         users.
10676         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
10677         * Makefile.in (gengtype.o): Update dependencies.
10679 2003-03-18  Andreas Schwab  <schwab@suse.de>
10681         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
10682         martin@blom.org.
10684 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
10686         * function.c (next_block_index): Mark with GTY.
10688         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
10690 2003-03-18  Richard Henderson  <rth@redhat.com>
10692         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
10693         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
10694         until after reload.
10696 2003-03-18  Richard Henderson  <rth@redhat.com>
10698         * builtins.c (expand_builtin_unop): New target_mode operand;
10699         use it to convert the result to the correct mode.
10700         (expand_builtin): Update all callers.
10702 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
10704         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
10706 2003-03-18  Jan Hubicka  <jh@suse.cz>
10708         * i386.md:  Fix previous commit that mistakely applied the patch
10709         twice.
10711         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
10712         canonicalized.
10713         (memrefs_conflict_p): Likewise.
10714         (addr_side_effect_eval): Canonicalize the constructed address.
10716 2003-03-18  Jan Hubicka  <jh@suse.cz>
10718         * i386.md (cvtts?2si peep2): New.
10720 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
10722         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
10724 2003-03-18  Andreas Schwab  <schwab@suse.de>
10726         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
10727         for format.
10729 2003-03-17  Jason Merrill  <jason@redhat.com>
10731         PR c++/10091
10732         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
10733         an unaligned member of TREE_ADDRESSABLE type.
10735 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
10737         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
10738         (TARGET_PROFILE_KERNEL): Define.
10739         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
10740         (PROFILE_BEFORE_PROLOGUE): Don't define.
10741         (PROFILE_KERNEL): Remove hacks.
10742         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
10743         (rs6000_stack_info): No need to save lr if just for profiling when
10744         TARGET_PROFILE_KERNEL.
10745         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
10746         (output_function_profiler): Localize label generation.  Emit code
10747         for kernel profiling.
10749 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
10751         * config/h8300/h8300-protos.h: Add a prototype for
10752         byte_accesses_mergeable_p.
10753         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
10754         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
10755         (a splitter): Likewise.
10756         (*iorsi3_ashift_16_ashift_24): Likewise.
10757         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
10759 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10761         * dwarf2asm.h: Delete obsolete comment.
10762         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
10763         dw2_asm_output_pcrel, dw2_asm_output_addr,
10764         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
10765         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
10766         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
10767         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
10769 2003-03-17  Zack Weinberg <zack@codesourcery.com>
10771         * c-tree.h (struct lang_identifier): Remove error_locus field.
10772         (IDENTIFIER_ERROR_LOCUS): Kill.
10773         (record_function_scope_shadow): New prototype.
10774         * c-typeck.c (build_external_ref): Don't complain if
10775         decl is error_mark_node.  When not at file scope, bind the
10776         decl's local value to error_mark_node to suppress further
10777         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
10779         * c-decl.c (get_function_binding_level): New static function.
10780         (record_function_scope_shadow): New exported function.
10781         (c_make_fname_decl): Use get_function_binding_level.
10783 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
10785         * stmt.c (tail_recursion_args): Call promote_mode to set
10786         unsignedp flag correctly before calling convert_move.
10788 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10790         * loop-unroll.c (decide_peel_completely,
10791         decide_unroll_constant_iterations, decide_unroll_stupid,
10792         decide_unroll_runtime_iterations, decide_peel_simple): Set
10793         loop->has_desc.
10795 2003-03-17  Jan Hubicka  <jh@suse.cz>
10797         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
10799 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
10801         * function.c (assign_parms): For a struct value address passed as
10802         first argument, delay the function's result RTL setup code until
10803         after the emission of parameter conversions.
10805 2003-03-17  Dave Love  <fx@gnu.org>
10806             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10808         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
10809         __arch64__ to match Compaq cc.
10811 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
10813         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
10814         (c_common_init): Set EBCDIC in cpp options.
10815         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
10816         not conditional compilation.
10817         * cpplib.h (struct cpp_options): New entry EBCDIC.
10819 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
10821         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
10823 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10825         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
10826         argument to 0 for redirect_jump.
10828 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
10830         PR c++/8805
10831         * except.c (eh_region_u_cleanup): Add prev_try.
10832         (expand_eh_region_end_cleanup): Set it.
10833         (reachable_handlers): Use it to skip over cleanup blocks.
10835 2003-03-17  Andreas Jaeger  <aj@suse.de>
10837         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
10839 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
10841         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
10842         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
10843         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
10844         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
10846 2003-03-16  Richard Henderson  <rth@redhat.com>
10848         * simplify-rtx (simplify_binary_operation): Don't abort for
10849         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
10851 2003-03-16  Richard Henderson  <rth@redhat.com>
10853         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
10854         optimize_size as well.
10856 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
10858         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
10859         for D register to specify the low part of it, aka B.
10860         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
10861         the register if we are loading 1 or -1 to it; avoid using temp
10862         register when moving X/Y to Y/X.
10863         (m68hc11_gen_movqi): Likewise.
10864         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
10866 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
10868         PR optimization/9016
10869         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
10870         into the constant pool.
10872 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
10874         PR target/9164
10875         * tree.c (get_narrower): For extensions with unchanged bit number,
10876         return the unsignedness of the outer mode.
10878 2003-03-16  Roger Sayle  <roger@eyesopen.com>
10880         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
10881         to avoid "may be used uninitialized" warning on ia64-hpux.
10882         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
10884 2003-03-16  Andreas Jaeger  <aj@suse.de>
10886         * configure.in: Improve check for memcheck.h.
10887         * configure: Regenerated.
10889 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
10891         * doc/cppopts.texi: Remove documentation of -A-.
10893 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
10895         * doc/libgcc.texi: Remove @tie.
10897 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
10899         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
10900         (rtx_pair): Added new element update_label_nuses, renamed to
10901         replace_label_data.
10902         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
10903         replace_label_data instead of rtx_pair.
10904         * loop.c (load_mems): Likewise.
10905         * rtlanal.c (replace_label): Replace label in pool constants and in
10906         INSN_LIST (in REG_LABEL note).
10907         (subrtx_p): Renamed to rtx_referenced_p.
10908         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
10909         LABEL_REF with CODE_LABEL, traverse constants from pool.
10911 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
10912             Zack Weinberg  <zack@codesourcery.com>
10914         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
10915         * doc/libgcc.texi: New file.
10916         * doc/interface.texi: Delete paragraph about libgcc interface.
10917         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
10919 2003-03-15  Jason Merrill  <jason@redhat.com>
10921         PR debug/9039
10922         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
10924         PR debug/6387
10925         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
10926         function DIEs at toplevel.
10927         (decls_for_scope): At -g1, don't descend into subblocks.
10929 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
10931         * varasm.c (struct rtx_const): Change type of un.addr member
10932         to struct holding an additional 'symbol' member.
10933         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
10934         with equal string addresses as equal.
10935         (simplify_subtraction): Adapt to struct rtx_const change.
10937 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
10939         * fix-header.c (read_scan_file): Read main file before handling -D.
10941 2003-03-15  Roger Sayle  <roger@eyesopen.com>
10943         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
10944         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
10945         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
10946         (find_sub_basic_blocks): Likewise.
10947         * cgraphunit.c (cgraph_expand_functions): Likewise.
10948         * dwarf2out.c (prune_unused_types): Likewise.
10949         * expr.c (store_field): Likewise.
10950         * genextract.c (print_path): Likewise.
10951         * haifa-sched.c (schedule_insn): Likewise.
10952         * lcm.c (compute_antinout_edge): Likewise.
10953         * loop-unroll.c (decide_peel_once_rolling): Likewise.
10954         * ra-colorize.c (ra_colorize_free_all): Likewise.
10955         * ra-debug.c (dump_igraph): Likewise.
10956         (debug_hard_reg_set): Likewise.
10957         * reg-stack.c (reg_to_stack): Likewise.
10958         * rtlanal.c (refers_to_regno_p): Likewise.
10959         * tracer.c (layout_superblocks): Likewise.
10961 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
10963         * fix-header.c (read_scan_file): Fix thinko.
10965 2003-03-15  Glen Nakamura  <glen@imodulo.com>
10967         * reload1.c (choose_reload_regs): Use && instead of ||
10968         with REG_CANNOT_CHANGE_MODE_P condition.
10970 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
10972         * Makefile.in: Update.
10973         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
10974         * c-lex.c (init_c_lex): Register builtins hook is dead.
10975         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
10976         (c_common_decode_option): Don't call cpp_handle_option.
10977         Handle -A, -D and -U.
10978         (handle_deferred_opts): Simplify.
10979         (finish_options): Define builtins and command line macros.
10980         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
10981         * cppinit.c: Don't include intl.h.
10982         (init_builtins): Rename cpp_init_builtins.  No hook to call.
10983         (init_library): Don't need to sort options.
10984         (cpp_create_reader): Don't set pending.
10985         (cpp_destroy): Don't free pending.
10986         (struct pending_option, cl_directive_handler, struct cpp_pending,
10987         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
10988         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
10989         cl_options, cpp_handle_option): Remove.
10990         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
10991         cpp_finish_options): Remove.
10992         (cpp_init_builtins): New.
10993         * fix-header.c (read_scan_file): Update to handle -D.  Fix
10994         handling of -I.  Replace call to cpp_finish_options.
10996 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10998         PR optimization/9387
10999         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
11000         for conditional returns.
11002 2003-03-14  Jason Merrill  <jason@redhat.com>
11004         PR optimization/6871
11005         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
11007 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
11009         * c-opts.c (finish_options): New.
11010         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
11011         (missing_arg): Handle OPT_include and OPT_imacros.
11012         (c_common_init, c_common_parse_file): Use finish_options.
11013         (handle_deferred_opts): Update.
11014         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
11015         (cpp_finish_options): Don't handle -imacros here.
11016         (no_fil): Remove.
11017         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
11019 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
11021         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
11022         rs6000_maybe_dead if !fromprolog.
11024 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
11026         * Makefile.in: Update.
11027         * c-common.h (fe_file_change, pp_file_change): New.
11028         * c-lex.c (init_c_lex): Don't set cb_file_change.
11029         (c_common_parse_file): Move to c-opts.c.
11030         (cb_file_change): Rename fe_file_change.
11031         * c-opts.c: Include debug.h.
11032         (warn_unused_macros, include_cursor): New.
11033         (push_command_line_include, cb_file_change): New.
11034         (COMMAND_LINE_OPTIONS): Handle -include.
11035         (c_common_decode_option): Use local warn_unused_macros.
11036         Handle OPT_include.
11037         (c_common_post_options): Set file change callback.
11038         (handle_deferred_opts): Skip -include.  Don't free the array.
11039         (c_common_init): Call cpp_finish_options here, and push an
11040         initial -include file.
11041         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
11042         (preprocess_file): Don't call cpp_finish_options.
11043         (init_pp_output): Don't set the file change callback.
11044         (pp_file_change): Return if no line commands or no output.
11045         * cpphash.h (next_include_file, first_unused_line): Remove.
11046         * cppinit.c (include_head, include_tail): Remove.
11047         (cpp_destroy): Don't free -include chain.
11048         (cpp_finish_options): Don't handle -include, or worry about
11049         -Wunused-macros.
11050         (_cpp_maybe_push_include_file): Remove.
11051         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
11052         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
11053         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
11054         Used flag is set based upon the state of the warn_unused_macros
11055         flag, and so use of first_unused_line is unnecessary.
11057 2003-03-13  Jan Hubicka  <jh@suse.cz>
11059         * cselib.c (clear_table): Do not take argument; always clear just
11060         used slots.
11061         (cselib_process_insn):  Update call of clear_table
11062         (cselib_init): Do not call clear_table.
11063         (cselib_finish): Clear table.
11065         * cse.c (count_reg_usage): Do not check side_effects_p.
11066         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
11067         like noop.
11068         (find_reg_equal_equiv_note): Do not use find_reg_note.
11070 2003-03-14  Richard Henderson  <rth@redhat.com>
11072         PR target/9700
11073         * config/alpha/alpha.c (alpha_va_start): Account for
11074         current_function_pretend_args_size in the AP offset.
11076         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
11077         (INITIAL_ELIMINATION_OFFSET): Move out of line.
11078         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
11079         (alpha_initial_elimination_offset) New.
11080         * config/alpha/alpha-protos.h: Update.
11082 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
11084         * stmt.c (expand_start_case): Call emit_queue ().
11086 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
11087             Alexandre Oliva  <aoliva@redhat.com>
11089         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
11090         words in new abis.
11092 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
11094         PR optimization/8396
11095         * tree-inline.c (initialize_inlined_parameters): Make sure the value
11096         of read-only constant arguments is passed with the right type.
11098 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
11100         * doc/extend.texi (Function Names): Make the example compilable.
11102 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
11104         * config/rs6000/rs6000.c (processor_target_table): Really allow
11105         GP optional instructions on Power4.
11107 2003-03-13  Roger Sayle  <roger@eyesopen.com>
11109         * calls.c (flags_from_decl_or_type): Factor and remove redundant
11110         conditional tests.
11112 2003-03-13  Mike Stump  <mrs@apple.com>
11114         * ggc-page.c (struct page_entry): Remove varray.h header.
11115         Add index_by_depth field.
11116         Remove save_in_use_p field.
11117         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
11118         by_depth_max, by_depth, and save_in_use fields.
11119         (INITIAL_PTE_COUNT): Add.
11120         (save_in_use_p_i): Add.
11121         (save_in_use_p): Add.
11122         (adjust_depth): Add.
11123         (move_ptes_to_front): Add.
11124         (push_depth): Add.
11125         (push_by_depth): Add.
11126         (prefetch): Add.
11127         (free_page): Add support for and use faster data structures.
11128         (ggc_alloc): Likewise.
11129         (init_ggc): Likewise.
11130         (ggc_recalculate_in_use_p): Likewise.
11131         (ggc_pop_context): Likewise.
11132         (clear_marks): Likewise.
11133         (ggc_pch_read): Likewise.
11134         * Makefile.in (ggc-page.o): Remove varray.h.
11136 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
11138         * ChangeLog: Rotated last year's entries to...
11139         * ChangeLog.8: New.
11141         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
11142         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
11143         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
11144         config/ia64/ia64-protos.h, config/ia64/ia64.c,
11145         config/ia64/ia64.h, config/ia64/ia64.md,
11146         config/ia64/itanium1.md, config/ia64/itanium2.md,
11147         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
11148         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
11150 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
11152         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
11153         Differentiate endianness.
11154         (s6000_override_options): Use cpu type instead of TARGET_SPE.
11156 2003-03-13  Nick Clifton  <nickc@redhat.com>
11158         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
11159         LDM instructions with writeback enabled.
11160         (output_return_instruction): Likewise.
11162         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
11163         (CALL_USED_REGISTERS): Remove definition.
11164         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
11166 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
11168         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
11169         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
11170         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
11171         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
11172         (rs6000_legitimize_address): Formatting.
11173         (rs6000_emit_move): Likewise.
11174         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
11175         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
11176         (rs6000_elf_select_section): Comment reason for shlib being
11177         set for ABI_AIX.
11178         (rs6000_elf_unique_section): Likewise.
11179         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
11180         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
11181         as well as flag_pic.
11182         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
11183         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
11184         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
11186 2003-03-13  Richard Henderson  <rth@redhat.com>
11188         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
11190         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
11191         (ia64_gp_save_reg): Remove.
11192         (struct ia64_frame_info): Move to the beginning of the file;
11193         add reg_save_gp.
11194         (ia64_expand_call): Rearrange for new call patterns.
11195         (ia64_reload_gp): New.
11196         (ia64_split_call): New.
11197         (ia64_compute_frame_size): Allocate reg_save_gp.
11198         (ia64_expand_prologue): Save reg_save_gp.
11199         (ia64_expand_epilogue): Don't restore gp.
11200         (ia64_hard_regno_rename_ok): Remove R4 hack.
11201         (ia64_function_ok_for_sibcall): New.
11202         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
11203         call try_split on sibcall pattern.
11204         * config/ia64/ia64-protos.h: Update.
11205         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
11206         Rename from nopic versions.  Confiscate 2nd argument to call as
11207         a marker.
11208         (call_pic, call_value_pic, sibcall_pic): Remove.
11209         (call_gp, call_value_gp, sibcall_gp): New.
11210         (builtin_setjmp_setup): Remove.
11211         (builtin_setjmp_receiver): Call ia64_reload_gp.
11213 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
11215         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
11216         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
11217         "GNU CC" with "GCC".
11219         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
11220         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
11221         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
11222         GCC, not GNU CC.
11224         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
11225         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
11227         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
11228         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
11229         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
11230         "GNU CC" with "GCC".
11232         * config/v850/lib1funcs.asm, config/v850/rtems.h,
11233         config/v850/v850-c.c, config/v850/v850-protos.h,
11234         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
11235         GCC, not GNU CC.
11237         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
11238         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
11239         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
11240         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
11241         GNU CC.
11243 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
11245         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
11247 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
11249         * fixinc/fixinc.interix: Remove dead code (most of it).
11250         * fixinc/fixinc.dgux: Remove.
11252         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
11253         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
11255 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11257         * pa.c (pa_init_builtins): Fix warning.
11259 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
11261         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
11262         (ASM_OUTPUT_XDATA_SHORT): Remove.
11263         (ASM_OUTPUT_XDATA_INT): Remove.
11264         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
11265         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
11266         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
11267         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
11269 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
11271         PR c++/7050
11272         * expr.c (store_expr): Don't attempt to store void-typed trees,
11273         just evaluate them for side effects.
11275 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
11277         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
11278         * cppinit.c (push_include): Move with changes to cppfiles.c.
11279         (cpp_read_main_file): Mark named operators here...
11280         (cpp_finish_options): ...not here.  Update.
11281         (_cpp_maybe_push_include_file): Update.
11282         * cpplib.h (cpp_push_include, cpp_rename_file): New.
11284 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
11286         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
11287         _gcc_COMPUTE_GAS_VERSION.
11288         * configure.in: Use them.
11289         * configure: Regenerate.
11291 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
11293         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
11294         to detect carry.
11295         (subdi3): Reorder emitted instructions.
11297 2003-03-12  Andreas Jaeger  <aj@suse.de>
11299         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
11300         NETBSD_OS_CPP_BUILTINS_LP64.
11302 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
11304         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
11305         Rearrange.  Reorganize.
11306         * configure.in: Rearrange.
11307         * configure: Regenerate.
11309 2003-03-12  Andreas Jaeger  <aj@suse.de>
11311         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
11312         LP64 targets.
11314         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
11315         _LP64.
11317         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
11318         _LP64 macros here.
11319         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
11321         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
11322         NETBSD_OS_CPP_BUILTINS_LP64.
11323         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
11324         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
11326         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
11328 2003-03-12  Jan Hubicka  <jh@suse.cz>
11330         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
11332 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
11334         Fix PR target/9797 and PR c/9853.
11335         * stmt.c (expand_decl_init): Call push_temp_slots () and
11336         pop_temp_slots ().
11338 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
11340         * sh.c: Include basic-block.h.
11341         (sh_output_mi_thunk, emit_load_ptr): New functions.
11342         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
11344 2003-03-12  Nick Clifton  <nickc@redhat.com>
11346         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
11347         (CALL_USED_REGISTERS): Likewise.
11348         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
11349         describing how this value is calculated.
11351 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
11353         * configure.in (rlim_t): Define to long if no valid definition
11354         found in sys/resource.h.
11355         * config.in, configure: Regenerate.
11357 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
11359         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
11360         TARGET_OS_CPP_BUILTINS.
11361         * config/mcore/mcore-pe.h: Similarly.
11362         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
11363         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
11365 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
11367         PR c/9928
11368         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
11369         only if it is a VAR_DECL.
11371 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
11373         PR optimization/9888
11374         * config/i386/i386.md (jcc_1): Fix range.
11375         (jcc_2): Likewise.
11376         (jump): LIkewise.
11377         (doloop_end_internal): Likewise.
11379 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
11381         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
11382         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
11383         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
11384         DLL_IMPORT_EXPORT_PREFIX and "i."
11385         (i386_pe_dllexport_name_p): Here.
11386         (i386_pe_dllimport_name_p): Here.
11387         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
11388         not 9 chars when getting identifier name.
11389         (i386_pe_mark_dllimport): Here.
11390         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
11391         not 9 chars when getting identifier name. Correct comment.
11392         (i386_pe_strip_name_encoding): Here. Add comments for different
11393         cases.
11394         (gen_fastcall_suffix): Break down xmalloc() argument to
11395         components.
11396         (gen_stdcall_suffix): Likewise.
11397         Update copyright year.
11399 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
11401         PR optimization/9888
11402         * config/i386/i386.md (movsi_1): Remove special alternatives
11403         for %eax register.
11404         (movsi_1_nointernunit): Likewise.
11405         (movhi_1): Likewise.
11406         * config/i386/i386.c (memory_address_length): Do not use
11407         short displacement when there is no base.
11408         (ix86_attr_length_address_default): Handle LEA instructions.
11410 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
11412         * c-cppbuiltin.c (builtin_define_std): Make non-static.
11414 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
11416         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
11417         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
11418         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
11419         * config/freebsd.h (CPP_PREDEFINES): Remove.
11420         (TARGET_OS_CPP_BUILTINS): New.
11421         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
11422         instead of TARGET_OS_CPP_BUILTINS.
11423         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
11425 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
11427         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
11429 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
11431         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
11432         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
11434         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
11436 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
11438         * toplev.c (independent_decode_option): Return success for --help,
11439         --target-help and --version.
11441 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
11443         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
11444         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
11445         specified.
11446         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
11447         DRIVER_SELF_SPECS.
11448         (LINK_SPEC): Let endian options affect the linker emulation name.
11450 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
11452         * sh.md (reload_inqi): Fix mode for source in second set.
11454 2003-03-11  Jan Hubicka  <jh@suse.cz>
11456         * cselib.c (cselib_invalidate_mem_1): Move too ...
11457         (cselib_invalidate_mem): ... here; use new list
11458         (dummy_val, first_containing_mem): New static variables.
11459         (clear_table): Initialize first_containing_mem.
11460         (discard_useless_values):  Compact the containing_mem list.
11461         (add_mem_for_addr): Add to the list.
11462         * cselib.h (cselib_val): Add next_containing_mem.
11464 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
11466         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
11467         instructions for e500.
11469 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
11471         * Makefile.in: Update.
11472         * c-cppbuiltin.c: Include tm_p.h.
11474 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
11476         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
11478         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
11479         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
11480         (_Unwind_SetGR): Same.
11481         (_Unwind_GetGRPtr): New.
11482         (_Unwind_SetGRPtr): New.
11483         (uw_update_context_1): Use accesor functions instead of accessing
11484         context->reg[] directly.
11485         (uw_install_context_1): Same.
11486         (execute_cfa_program): Same.
11487         (__frame_state_for): Same.
11489         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
11490         the synthetic register offset.
11492         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
11494 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
11496         * config/cris/cris.md: Remove lingering EGCS reference.
11497         ("*extopqihi_side_biap"): For HI operation, match
11498         cris_additive_operand_extend_operator, not
11499         cris_operand_extend_operator.  Adjust condition.
11500         ("*extopqihi_side", "*extopqihi"): Ditto.
11501         ("*extopqisi_side_biap"): Correct operand numbers in condition.
11502         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
11503         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
11504         ("*extophisi_swap"): Ditto.
11505         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
11506         PLUS, not cris_operand_extend_operator.  Adjust condition and
11507         output template.
11508         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
11509         * config/cris/cris.h (PREDICATE_CODES): Add
11510         cris_additive_operand_extend_operator.
11511         * config/cris/cris.c (cris_additive_operand_extend_operator):
11512         New predicate.
11514 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
11516         * df.c (read_modify_subreg_p): Change from static to global.
11517         * df.h (read_modify_subreg_p): Add prototype.
11518         * sched-deps.c (sched_analyze_1): Generate true dependency for
11519         strict_low_part, certain subregs and zero/sign_extract.
11521 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
11523         * Makefile.in: Update.
11524         * c-common.c: Don't include real.h or except.h.
11525         (REGISTER_PREFIX): Remove.
11526         (builtin_define_std, builtin_define_with_value,
11527         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
11528         builtin_define_type_max, builtin_define_type_precision,
11529         builtin_define_float_constants): Move to c-cppbuiltin.c.
11530         (c_stddef_cpp_builtins): New.
11531         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
11532         * c-cppbuiltin.c: New, extracted from c-common.c.
11533         (define__GNUC__): New.
11534         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
11535         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
11536         (cpp_unique_options): Don't support no-gcc.
11537         (do_spec_1): Remove support of version specs.
11538         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
11539         * doc/passes.texi: Update.
11540         * doc/tm.texi: Update.
11542 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
11544         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
11546 2003-03-10  Andrew Pinski  <apinski@apple.com>
11548         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
11549         is on should not get here.
11550         (machopic_indirect_data_reference): If dynamic-no-pic is on just
11551         generate high/low parts of the address.
11552         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
11553         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
11554         symbol and labels with a new reg.  Dynamic-no-pic does not have a
11555         pic_offset_table_rtx.
11556         (machopic_select_section): Change references of flag_pic to
11557         MACHOPIC_INDIRECT.
11558         (machopic_asm_out_destructor): Likewise.
11559         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
11560         reference of flag_pic to MACHOPIC_INDIRECT.
11561         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
11562         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
11563         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
11564         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
11565         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
11566         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
11567         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
11568         (TARGET_DYNAMIC_NO_PIC): Define.
11569         (SUBTARGET_SWITCHES): Define, have sub-target switches for
11570         dynamic-no-pic.
11571         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
11572         rs6000_override_options to here. Dynamic-no-pic overrides
11573         pic.
11574         (CC1_SPEC): Change from not static then pic to not static and not
11575         dynamic-no-pic then pic.
11576         * config/rs6000/rs6000.c (rs6000_override_options): Move the
11577         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
11578         (rs6000_legitimize_reload_address): Add case for loading floating in
11579         dynamic-no-pic.
11580         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
11581         of flag_pic to MACHOPIC_INDIRECT.
11582         (secondary_reload_class): Conditional change the reference of
11583         flag_pic to MACHOPIC_INDIRECT.
11584         (rs6000_output_mi_thunk): Change reference of flag_pic to
11585         MACHOPIC_INDIRECT.
11586         (output_profile_hook): Likewise.
11587         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
11588         * config/rs6000/rs6000.md (movdf_low): Add the case for
11589         MACHO_DYNAMIC_NO_PIC_P.
11590         (call): Change references for flag_pic in TARGET_MACHO to
11591         MACHOPIC_INDIRECT.
11592         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
11593         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
11594         * doc/invoke.texi (-mdynamic-no-pic): Document.
11596 2003-03-10  Devang Patel  <dpatel@apple.com>
11598         PR c++/9394
11599         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
11600         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
11601         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
11602         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
11603         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
11604         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
11606 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
11608         PR optimization/7189
11609         * toplev.c (rest_of_compilation):  Move
11610         check_function_return_warnings up to just after
11611         delete_unreachable_blocks.
11613 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
11615         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
11616         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
11617         Declare.
11618         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
11619         for reg rename optimization to avoid using Z and Y registers.
11621 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
11623         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
11624         when adding to X and Y since leax/leay are fast.
11625         ("*addhi3"): Accept 'I' constraint when adding to address register.
11626         ("rotlhi3"): Operand 1 must be a register_operand.
11627         (peephole2): New peephole to optimize some adds.
11628         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
11629         to represent -2 .. 2 small integer range.
11631 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
11633         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
11634         each 16-bit rotation.
11636 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
11638         * c-opts.c (add_prefixed_path): Don't use concat.  When
11639         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
11640         cpp_GCC_INCLUDE_DIR_len characters.
11642 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
11644         * testsuite/gcc.dg/altivec-9.c: New file.
11646         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
11647         (rs6000_emit_prologue): Use rs6000_frame_related instead.
11649 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
11651         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
11652         vectors.
11653         (__ev_convert_u64): Remove macro.  Define as inline.
11654         (__ev_convert_s64): Same.
11656 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
11658         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
11659         (rs6000_stack_t): Add spe_64bit_regs_used.
11661         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
11662         spe_64bit_regs_used, and use it to determine the size of the
11663         frame.
11664         (spe_func_has_64bit_regs_p): New.
11665         (spe_synthesize_frame_save): New.
11666         (rs6000_frame_related): Handle SPE synthetic registers.
11667         (rs6000_emit_prologue): Only save in 64-bits if the function used
11668         any registers in 64-bit mode.
11669         (rs6000_emit_epilogue): Same, but for restore.
11671 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
11673         * arm.h (enum floating_point_type): Delete.  Replace with...
11674         (enum fputype): ... new.
11675         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
11676         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
11677         * arm.md (attr fpu): Reworked for new underlying enum values.
11678         * arm.c (arm_fpu_arch): Now enum fputype.
11679         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
11680         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
11681         Update uses of arm_fpu_arch and arm_fpu_tune.
11683 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
11685         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
11686         (try_crossjump_to_edge): Replace refereces to one jump table by
11687         references to identical jump table.
11688         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
11689         (replace_label): Moved to rtlanal.c.
11690         (struct rtx_pair): Moved to rtl.h.
11691         * rtl.h (struct rtx_pair): Moved from loop.c.
11692         (replace_label): New extern function.
11693         (subrtx_p): New extern function.
11694         (tablejump_p): New extern function.
11695         * rtlanal.c (replace_label): Moved from loop.c.
11696         (subrtx_p_1): New static function.
11697         (subrtx_p): New function.
11698         (tablejump_p): New function.
11700 2003-03-10  Jan Hubicka  <jh@suse.cz>
11702         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
11704         * cfgcleanup.c (merge_blocks): Return where to iterate next.
11705         (try_optimize_cfg): Use return value of merge_blocks
11707 2003-03-10  Michael Matz  <matz@suse.de>
11709         * cfg.c (unchecked_make_edge): New.
11710         (cached_make_edge): Use it.
11711         * basic-block.h (unchecked_make_edge): Declare.
11712         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
11714 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
11716         * fpa.md: New file.  Move all patterns relating to FPA co-processor
11717         to here...
11718         * arm.md: ... from here.
11719         (cirrus.md, fpa.md): Include at end of description.
11720         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
11721         (pic_load_addr_based): Remove register constraint from expander.
11722         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
11723         (sordered, sungt, sunle, sunge, sunlt): Likewise.
11724         (eh_epilogue, tablejump): Likewise.
11726 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11728         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
11729         on operands if it has a PLACEHOLDER_EXPR.
11731 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
11732             Mostafa Hagog
11734         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
11735         condition.
11737 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
11739         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
11740         * config/ip2k/ip2k.h: Similarly.
11741         * config/m32r/m32r.h: Similarly.
11742         * config/m68hc11/m68hc11.h: Similarly.
11743         * config/mn10200/mn10200.h: Similarly.
11744         * config/mn10300/mn10300.h: Similarly.
11745         * config/pdp11/pdp11.h: Similarly.
11746         * config/v850/v850.h: Similarly.
11747         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
11748         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
11749         * config/mips/iris3.h: Remove #if 0 block.
11751 2003-03-09  Roger Sayle  <roger@eyesopen.com>
11752             Joern Rennecke <joern.rennecke@superh.com>
11754         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
11755         pending argument upon return from handle_braces here.
11756         (do_spec_2): Instead handle it upon return from do_spec_1 here.
11758 2003-03-09  Roger Sayle  <roger@eyesopen.com>
11759             Joern Rennecke <joern.rennecke@superh.com>
11761         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
11762         pending argument upon return from handle_braces here.
11763         (do_spec_2): Instead handle it upon return from do_spec_1 here.
11765 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11767         * varasm.c (make_decl_one_only): Use declare_weak().
11769 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11771         PR middle-end/9986
11772         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
11773         after the common builtins.
11774         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
11775         * pa.c (TARGET_INIT_BUILTINS): Define.
11776         (pa_init_builtins): New function.
11778         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
11779         space has been allocated for the outgoing arguments, set the arg
11780         pointer for a call emitted after virtuals have been instantiated
11781         using the stack pointer offset, otherwise abort.
11783 2003-03-09  DJ Delorie  <dj@redhat.com>
11785         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
11787 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
11789         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
11790         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
11791         conversion to integer.
11792         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
11794 2003-03-09  Roger Sayle  <roger@eyesopen.com>
11796         * builtins.def: Fix typo and improve grammar.
11797         * loop-unroll.c (decide_peel_completely): Tidy log message.
11799 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
11801         * config/h8300/h8300.md (*tstsi_upper_bit): New.
11802         (*iorsi3_e2f): Likewise.
11804 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
11806         * config/h8300/h8300.c (h8300_and_costs): Return the number of
11807         assembly instructions needed.
11808         (h8300_shift_costs): Likewise.
11810 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
11812         * config/cris/aout.h (ENDFILE_SPEC): Undef.
11814         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
11815         moves from here ...
11816         * expr.c (emit_move_insn_1): ... to here.
11818         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
11819         (TARGET_OS_CPP_BUILTINS): New macro.
11820         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
11821         (TARGET_OS_CPP_BUILTINS): New macro.
11822         (CPP_PREDEFINES): Don't define.  Move old definitions and...
11823         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
11824         (TARGET_CPU_CPP_BUILTINS): New macro.
11825         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
11826         definitions and the optional __PIC__, __pic__ and
11827         __NO_UNDERSCORES__ definitions to...
11828         (TARGET_OS_CPP_BUILTINS): New macro.
11830         * flags.h (flag_leading_underscore): Declare.
11832         * c-opts.c (c_common_post_options): On fopen failure, return
11833         false, not NULL.
11835 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
11837         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
11838         config.h.
11839         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
11840         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
11842 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
11844         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
11845         CPP_PREDEFINES.
11846         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
11847         CPP_PREDEFINES.
11849 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
11851         * c-common.h (c_common_init, c_common_post_options): Update.
11852         * c-objc-common.c (c_objc_common_init): Update for new prototype.
11853         * c-opts.c (saved_lineno): New.
11854         (c_common_post_options, c_common_init): Update prototypes,
11855         move call to cpp_read_main_file from latter to former.
11856         * c-tree.h (c_ojbc_common_init): Update.
11857         * langhooks-def.h (lhd_post_options): New.
11858         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
11859         * langhooks.c (lhd_post_options): New.
11860         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
11861         * toplev.c (no_backend): New.
11862         (process_options): Call post_options hook and set main_input_filename
11863         and input_filename here.
11864         (lang_dependent_init, do_compile): post_options hook moved to
11865         process_options.
11866         * objc/objc-act.c (objc_init): Update prototype.
11867         * objc/objc-act.h (objc_init): Update prototype.
11869 2003-03-08  Roger Sayle  <roger@eyesopen.com>
11871         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
11872         a complex or vector type, using a load in the original mode.
11874 2003-03-08  Jan Hubicka  <jh@suse.cz>
11876         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
11877         * gt-cgraph.h: New GC file.
11878         * cgraph.c (known_fns): New static variable.
11879         (cgraph_node): Add the decl into varray.
11881 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
11883         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
11885 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
11887         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
11888         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
11889         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
11890         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
11891         All callers changed.
11892         * arm.md, arm.h, arm-protos.h: Updated.
11894         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
11895         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
11896         * arm.c (arm_regno_class, f_register_operand): Updated.
11898 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
11900         * config/cris/cris.h: Remove EGCS references.
11901         (CPP_SPEC): Remove "-$".
11902         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
11904 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
11906         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
11907         preference to CPP_PREDEFINES.
11909 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
11911         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
11913 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
11915         * config/h8300/h8300.md (*extzv_16_8): New.
11917 2003-03-08  Jan Hubicka  <jh@suse.cz>
11919         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
11920         * cgraph.h: (cgraph_local_info): Add can_inline_once
11921         (cgraph_global_info): Add inline_once.
11922         (cgraph_node): Add previous.
11923         (cgraph_remove_node): New.
11924         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
11925         function.
11926         (cgraph_optimize): Call it.
11927         (cgraph_finalize_function):  Set inlinable flags.
11928         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
11929         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
11930         (cgraph_expand_function): Likewise.
11931         * cgraph.c
11932         (cgraph_node): Put nodes into doubly linked chain.
11933         (cgraph_remove_node): New function.
11934         * flags.h (flag_inline_functions_called_once): Declare.
11935         * tree-inline.c: Include cgraph.h
11936         (inlinable_functions_p): Add extra argument to bypass limits.
11937         (expand_call_inline):  Obey cgraph flag.
11938         * tree-inline.h (tree_inlinable_function_p): Update prototype.
11940 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11942         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
11943         irreducible loops.
11945         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
11946         loops info correctly.
11948 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
11950         PR middle-end/7796
11951         * unroll.c (calculate_giv_inc): Handle constants being
11952         loaded with LSHIFTRT.
11954 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
11956         * config/rs6000/rs6000.c (processor_target_table): Do not disable
11957         GP optional instructions on Power3, Power4, 620, and 630.
11959 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
11961         * calls.c: Fix comment formatting.
11962         * cfgloopanal.c: Likewise.
11963         * cfgloopmanip.c: Likewise.
11964         * combine.c: Likewise.
11965         * dwarf2out.c: Likewise.
11966         * ggc-common.c: Likewise.
11967         * langhooks.c: Likewise.
11968         * loop-unroll.c: Likewise.
11969         * loop.c: Likewise.
11970         * ra-build.c: Likewise.
11971         * sbitmap.c: Likewise.
11972         * toplev.c: Likewise.
11974 2003-03-07  James E Wilson  <wilson@tuliptree.org>
11976         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
11978 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
11980         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
11981         support -no-integrated-cpp.
11983         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
11984         than langhooks.name.
11986 2003-03-07  Michael Matz  <matz@suse.de>
11988         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
11989         (DF_FOR_REGALLOC): New.
11990         * df.c (df_ref_record): Set DF_REF_STRIPPED.
11991         (read_modify_subreg_p): Simplify.
11992         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
11993         Use DF_FOR_REGALLOC.
11994         * ra.h (struct web): New member subreg_stripped.
11995         (invalid_mode_change_regs): Declare.
11996         * ra.c (invalid_mode_change_regs): New.
11997         (init_ra): Initialize it.
11998         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
11999         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
12000         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
12001         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
12002         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
12004 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
12006         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
12007         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
12008         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
12009         machine description file from ...
12010         * cirrus.md: ... here.
12012 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
12014         * config/h8300/h8300.md (a peephole2): Don't use
12015         reg_overlap_mentioned_p.
12017 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
12019         * c-pch.c: Include langhooks.h.
12020         (IDENT_LENGTH): New.
12021         (get_ident): New.
12022         (pch_ident): Delete.
12023         (pch_init): Use get_ident, IDENT_LENGTH.
12024         (c_common_valid_pch): Likewise.  Also, use actual language
12025         in warning message.
12026         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
12028         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
12029         c-parse.in.
12030         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
12031         gt-objc-objc-act.h.
12032         (gt-objc-objc-act.h): New rule.
12033         * objc/lang-specs.h: Support PCH.
12034         * objc/objc-act.c: Include gt-objc-objc-act.h.
12035         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
12036         (build_selector_reference_decl): Move idx out, mark for PCH.
12037         (build_class_reference_decl): Likewise.
12038         (build_objc_string_decl): Move *_idx out, mark for PCH.
12039         (build_tmp_function_decl): Move xxx out, mark for PCH.
12041 2003-03-06  Dale Johannesen  <dalej@apple.com>
12043         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
12044         global functions for inlining on Darwin.
12046 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
12048         * haifa-sched.c (schedule_block): Don't call reorder when sorting
12049         is prohibited.
12051 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
12053         * Makefile.in (c-ppoutput.o): Update.
12054         * c-common.h (init_pp_output): New.
12055         (preprocess_file): Update.
12056         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
12057         Register builtins.
12058         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
12059         Make call to cpp_read_main_file common to whether preprocessing
12060         or not.  Don't register builtins.
12061         * c-ppoutput.c: Include c-pragma.h.
12062         (setup_callbacks): Rename init_pp_output.
12063         (preprocess_file): No longer setup callbacks or call
12064         cpp_read_main_file.
12065         * cpphash.h (_cpp_init_mbchar): New.
12066         * cppinit.c (init_library): Call _cpp_init_mbchar.
12067         * cpplex.c (_cpp_init_mbchar): New.
12069 2003-03-06  Roger Sayle  <roger@eyesopen.com>
12071         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
12072         MEM, try loading the MEM into a register and taking the low-part
12073         of that, to help CSE see the use of the MEM in its true mode.
12075 2003-03-05  Tom Tromey  <tromey@redhat.com>
12077         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
12078         Define.
12080 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
12082         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
12083         operand 2.
12084         ("*ineqbranchsi"): Likewise.
12086 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
12088         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
12089         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
12090         register store followed by a stack increment.
12092 2003-03-05  Chris Moller  <cmoller@redhat.com>
12094         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
12095         to inhibit saving CARRY_REGS.
12097         * config/stormy16/stormy16.c (xs_hi_general_operand):
12098         added predicate to detect and error-out on out-of-range
12099         const_ints for movhi.
12100         * config/stormy16/stormy16.md (movhi): use
12101         xs_hi_general_operand.
12103         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
12104         added a check for local vbl size overflow.
12105         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
12106         added predicate to detect and error-out on out-of-range
12107         const_ints for addhi and subhi.
12108         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
12109         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
12111         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12112         add a term to accept PRE_MODIFY addresses.
12113         * config/stormy16/stormy16.c (xstormy16_expand_move):
12114         add code to expand PRE_MODIFY addresses to an add followed
12115         by a move.
12117 2003-03-06  Jason Merrill  <jason@redhat.com>
12119         * tree-inline.c (inlinable_function_p): Revert earlier change
12120         pending investigation.
12122 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
12124         * config/h8300/h8300.md (a new peephole2): New.
12126 2003-03-06  Jan Hubicka  <jh@suse.cz>
12128         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
12130 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12132         * dwarf2out.c (size_of_die): Compute size of external reference to
12133         die correctly.
12135 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
12137         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
12138         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
12139         expanders.
12141 2003-03-05  Roger Sayle  <roger@eyesopen.com>
12143         * expr.h (lang_expand_expr): Delete obsolete prototype.
12145 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
12147         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
12149 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
12151         * config/h8300/h8300.md (a peephole2): Generalize to
12152         accept a memory operand.
12154 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
12156         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
12157         * config/alpha/alpha.c (print_operand, case '+'): New.
12158         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
12159         (call_value_osf_1_noreturn): Likewise.
12161 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12163         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
12164         (expand_end_bindings): Likewise.
12166 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12168         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
12169         (epilogue): Don't generate return_external_pic when emitting PA 2.0
12170         code.
12172 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
12174         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
12176         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
12178         * hooks.c (hook_rtx_rtx_null): New.
12180         * hooks.h (hook_rtx_rtx_null): Protoize.
12182         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
12183         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
12185         * target.h (struct gcc_target): Add dwarf_register_span.
12187         * dwarf2out.c (multiple_reg_loc_descriptor): New.
12188         (one_reg_loc_descriptor): New.
12189         (reg_loc_descriptor): Add support for values that span more than
12190         one register.
12192 2003-03-05  Jan Hubicka  <jh@suse.cz>
12194         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
12195         * alias.c:  Include cgraph.h
12196         (mark_constant_function): Use cgraph_rtl_info.
12197         * calls.c:  Include cgraph.h
12198         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
12199         calls.
12200         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
12201         * cgraph.c (cgraph_rtl_info): New function.
12202         * cgraph.h (cgraph_rtl_info): Declare
12203         (cgraph_rtl_info): Likewise.
12204         * function.h (struct function): Add recursive_call_emit.
12205         * toplev.c: Include cgraph.h.
12206         (rest_of_compilation): Set preferred_incoming_stack_boundary.
12208 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
12210         * config/h8300/h8300.c (output_simode_bld): Clear the
12211         destination first if possible.
12212         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
12213         alternative.
12214         (extzv_1_r_inv_h8300hs): Likewise.
12216 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12218         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
12219         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
12220         * cfgloop.c (flow_loop_free): Made global.
12221         (establish_preds): New static function.
12222         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
12223         (get_loop_exit_edges): New.
12224         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
12225         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
12226         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
12227         loops.
12228         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
12229         removability of an edge.
12230         (fix_irreducible_loops): New static function.
12231         (find_path, remove_path): Add ability to remove enclosing loops.
12232         (unloop): New.
12233         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
12234         flags.
12235         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
12236         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
12237         not neccessary.
12238         (decide_peel_completely, peel_loops_completely): Allow complete peeling
12239         of non-duplicable once rolling loops.
12240         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
12242 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
12244         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
12245         for align_jumps is 4.
12247         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
12248         use GENERAL_REGS.
12250 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
12252         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
12253         according to va_arg type.
12254         (EXPAND_BUILTIN_VA_ARG): Remove.
12255         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
12256         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
12258 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
12260         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
12261         else clauses.
12263 2003-03-05  Michael Matz  <matz@suse.de>
12265         * i386/i386.c (ix86_save_reg): Also test
12266         current_function_uses_const_pool.
12268 2003-03-05  Michael Matz  <matz@suse.de>
12270         * unwind.h: Add the GPL exception.
12271         * Makefile.in (USER_H): Add unwind.h.
12273 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
12275         PR c/9799
12276         * c-typeck.c (push_init_level): Add sanity check.
12278 2003-03-05  Jan Hubicka  <jh@suse.cz>
12280         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
12281         RTL inlining is done.
12283         * cgraphunit.c (cgraph_mark_local_functions): New local function.
12284         (cgraph_optimize): Mark local functions.
12285         * i386-protos.h (init_cumulative_args): Update prototype.
12286         * i386.c (init_cumulative_args): Use register passing convention for
12287         local functions.
12289         * cgraph.c (cgraph_global_info_ready): New global variable
12290         (cgraph_local_info, cgraph_global_info): New functions.
12291         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
12292         structures.
12293         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
12294         Declare.
12295         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
12296         (cgraph_mark_functions_to_output): Use inline_many.
12297         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
12298         (cgraph_expand_functions): Expand inline functions last.
12299         (cgraph_optimize): Do not emit uneeded functions.
12301 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
12303         * expr.c (convert_modes): Check for legal hard register.
12305 2003-03-04  Tom Tromey  <tromey@redhat.com>
12307         * doc/sourcebuild.texi (Front End Directory): Document tags.
12308         * configure: Rebuilt.
12309         * configure.in (target_list): Added tags.
12310         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
12311         TAGS files by reference.
12312         * objc/Make-lang.in (objc.tags): New target.
12314 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12316         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
12317         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
12318         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
12319         gcov_read_string, gcov_write_length): Modified to enable reading/
12320         writing of whole .da file just once.
12321         (da_file_open, da_file_close, da_file_eof, da_file_error,
12322         da_file_position, da_file_seek, da_file_write, da_file_read): New
12323         functions.
12324         (actual_da_file, actual_da_file_position, actual_da_file_length,
12325         actual_da_file_buffer, actual_da_file_buffer_size): New static
12326         functions.
12327         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
12328         just once.
12331 2003-03-04  Andreas Schwab  <schwab@suse.de>
12333         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
12334         offset without frame pointer.
12336 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
12338         * expr.c (expand_expr): Call promote_mode to set unsignedp.
12340 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
12342         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
12343         * configure: Regenerated.
12344         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
12346 2003-03-04  Andreas Jaeger  <aj@suse.de>
12348         * configure.in: Check for <memcheck.h>.
12349         * configure: Regenerated.
12351         * config.in: Define HAVE_MEMCHECK_H.
12353         * ggc-common.c: Use <memcheck.h> if available instead of
12354         <valgrind.h>.
12355         * ggc-page.c: Likewise.
12356         * cppfiles.c: Likewise.
12358 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
12360         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
12362 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
12364         PR c/9262
12365         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
12366         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
12368 2003-03-04  Jan Hubicka  <jh@suse.cz>
12370         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
12371         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
12372         for -O3.
12374 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
12376         * configure.in: Delete three unused variables.  Move a variable
12377         definition closer to its use.  Simplify use_collect2 logic.  Start to
12378         organize.  Simplify tests for in-tree gas and ld.
12379         * configure: Regenerate.
12381 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
12383         * Makefile.in: Update.
12384         * c-common.c (flag_no_line_commands, flag_no_output,
12385         flag_dump_macros, flag_dump_includes): New.
12386         * c-common.h (flag_no_line_commands, flag_no_output,
12387         flag_dump_macros, flag_dump_includes, preprocess_file): New.
12388         (init_c_lex): Update prototype.
12389         * c-lex.c (init_c_lex): Update prototype; move some code to
12390         c_common_init.
12391         * c-opts.c (preprocess_file): Subsume into c_common_init.
12392         (c_common_decode_option): Update flags.
12393         (c_common_init): Move code from preprocess_file and init_c_lex.
12394         (sanitize_cpp_opts): Update.
12395         * c-ppoutput.c: New, cppmain.c almost verbatim.
12396         * cpphash.h (struct printer): Remove.
12397         (struct cpp_reader): Remove print.
12398         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
12399         cpp_preprocess_file): Remove.
12400         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
12401         and dump_includes.
12402         * cppmain.c: Remove.
12403         * doc/passes.texi: Update.
12405 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12407         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
12408         (assign_stack_local_1): Perform overall stack alignment only when
12409         STACK_ALIGNMENT_NEEDED is nonzero.
12410         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
12412         * pa.c (compute_frame_size): Rename fsize to size.  Account for
12413         alignment to a word boundary before general register save block.  Only
12414         account for double-word alignment before floating point register save
12415         block if one or more are saved.  Don't allocate space for %r3 when
12416         frame pointer is needed.
12417         (hppa_expand_prologue): Include alignment to word boundary in local
12418         frame size.
12419         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
12420         (STACK_ALIGNMENT_NEEDED): Define.
12422 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
12424         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
12425         global register variables.
12427 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
12429         * reload.c (reload_adjust_reg_for_mode): New function.
12430         (subst_reloads): Call it.
12431         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
12432         * reload.h (reload_adjust_reg_for_mode): Declare.
12433         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
12434         Call it.
12436 2003-03-03  James E Wilson  <wilson@tuliptree.org>
12438         * optabs.c (add_equal_note): Delete SUBREG_REG use.
12439         Fixes PR c/7872.
12441 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
12443         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
12444         (*ixorsi3_lshiftrt_16): New.
12445         (*iorsi3_ashift_16): Remove.
12447 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
12449         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
12450         pattern.
12452 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
12454         * doc/install.texi (Specific): Update entry for powerpc-darwin.
12456 2003-03-03  Richard Henderson  <rth@redhat.com>
12458         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
12460 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
12462         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
12463         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
12464         (rs6000_variable_issue): Do not return negative value.
12465         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
12466         scheduling pass.
12468 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12470         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
12471         prune_unused_types calls.
12473 2003-03-03  Jason Merrill  <jason@redhat.com>
12475         * tree-inline.c (find_builtin_longjmp_call): Save and restore
12476         lineno and input_filename.
12477         (find_alloca_call): Likewise.
12478         (inlinable_function_p): Run the langhook earlier.
12480         * calls.c (compute_argument_addresses): Give the new MEMs a
12481         minimum alignment of PARM_BOUNDARY.
12483 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
12485         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
12486         subtarget_asm_isa_spec.
12487         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
12488         (ASM_SPEC): Define as SH_ASM_SPEC.
12489         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
12490         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
12491         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
12492         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
12494         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
12495         and align_jumps if not set.
12496         Force align_jumps to be at least 2.
12497         When relaxing, force align_functions to be at least the maximum of
12498         align_loops, align_jumps and 4.
12499         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
12500         (sh_loop_align): Honour align_loops_log.
12502         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
12503         to check for indirect_jump_scratch.
12504         (indirect_jump_scratch): Add second set.
12505         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
12506         when looking for indirect_jump_scratch.
12507         Extract scratch register taking new structure of indirect_jump_scratch
12508         into account.
12509         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
12511 2003-03-03  Jan Hubicka  <jh@suse.cz>
12513         * calls.c (rtx_for_function_call): Take the address as an argument
12514         (expand_call): Do not modify the expression.
12516         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
12517         optimizing.
12519 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
12521         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
12522         TARGET_H8300H and TARGET_H8300S.
12524 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
12526         * config/h8300/h8300.md (a peephole2): New.
12528 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
12530         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
12531         operands[0] and operands[1] are different.
12533 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
12535         * reload1.c (reload_cse_move2add): Remove variable success.
12537 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12539         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
12540         warnings.
12542 2003-03-02  Richard Henderson  <rth@redhat.com>
12544         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
12545         * config.in, configure: Rebuild.
12546         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
12547         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
12548         paired ldtoffx and ldxmov annotations.
12549         (load_symptr_internal1): Remove.
12550         (load_symptr_high, load_symptr_low): New.
12552 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
12554         * c-incpath.c (add_path): Fix sysp assignment.
12556 2003-03-02  Kurt Garloff  <garloff@suse.de>
12558         * params.def: Introduce parameter max-inline-insns-rtl for
12559         a separate limit for the RTL inliner.
12560         * params.h: Likewise.
12561         * integrate.c (function_cannot_inline_p): Use it.
12562         * toplev.c (decode_f_option): Set multiple parameters
12563         controlling inlining with -finline-limit.
12564         * params.def: Fix orthographic and typographic errors.
12565         * doc/invoke.texi: Document parameters controlling inlining
12566         and the way -finline-limit sets multiple of them.
12568         * tree.h (struct tree_decl): Introduce inlined_function_flag,
12569         recording whether the function became eligible for inlining
12570         by a compiler flag rather than the declaration.
12571         Provide DID_INLINE_FUNC macro to access it.
12572         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
12573         * cp/decl.c (grokfndecl): Likewise.
12574         * toplev.c (rest_of_compilation): Likewise.
12575         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
12576         * print-tree.c (print_node): Report it.
12577         * params.def: Introduce new max-inline-insns-auto limit.
12578         * params.h: Likewise.
12579         * tree-inline.c (inlinable_function_p): Apply it to functions
12580         with DID_INLINE_FUNC set.
12581         * toplev.c (decode_f_option): Initialize it from -finline-limit
12582         value.
12583         * doc/invoke.texi: Document new parameter.
12585 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
12587         * fix-header.c (read_scan_file): Don't reference simplify_path.
12589 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12591         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
12592         min/max instructions by default as may result in reload errors.
12594 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12596         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
12597         avoid reload problems; define split for it.
12599 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12601         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
12602         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
12603         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
12604         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
12605         rotatert and rotate.
12606         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
12607         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
12608         ("*rotrhi3_addr"): New split for shift insns on address register.
12609         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
12610         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
12611         (___rotrhi3): Likewise.
12612         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
12614 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
12616         * toplev.c (aux_base_name): Moved from toplev.h.
12617         (filename): Constify.
12618         (lang_dependent_init): Don't duplicate name.
12619         (process_options): Set aux_base_name here, not...
12620         (do_compile): ...here.  Change protoype.
12621         (toplev_main): Move some code from do_compile.
12622         * toplev.h: Remove aux_base_name.
12624 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
12626         * config/h8300/h8300-protos.h: Add a prototype for
12627         iorxor_operator.
12628         * config/h8300/h8300.c (print_operand): Handle 'c'.
12629         (iorxor_operator): New.
12630         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
12631         * config/h8300/h8300.md (*iorhi3_zext): Remove.
12632         (*iorsi3_zexthi): Likewise.
12633         (*iorsi3_zextsi): Likewise.
12634         (*xorhi3_zextqi): Likewise.
12635         (*xorsi3_zexthi): Likewise.
12636         (*xorsi3_zextsi): Likewise.
12637         (*ixorhi3_zext): New.
12638         (*ixorsi3_zext_qi): Likewise.
12639         (*ixorsi3_zext_hi): Likewise.
12641 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
12643         * c-incpath.c (remove_component_p, simplify_path): Move back to
12644         cppfiles.c.
12645         (remove_duplicates): Use cpp_simplify_path.
12646         * c-incpath.h (simplify_path): Remove.
12647         * c-lex.c: Don't include c-incpath.h.
12648         (init_c_lex): Remove simplify_path.
12649         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
12650         (find_or_create_entry, validate_pch): Revert.
12652 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
12654         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
12655           an external cpp during compilation.
12656         (option_map): Likewise.
12657         * objc/lang-specs.h (default_compilers): Similarly.
12658         * doc/invoke.texi: Document -no-integrated-cpp flag.
12660 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
12662         * config/h8300/h8300.md (zero_extendqisi2): Change to an
12663         expander.
12664         (*zero_extendqisi2_h8300): New.
12665         (*zero_extendqisi2_h8300hs): New.
12666         (two splitters): New.
12668 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12670         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
12672 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
12674         * config/h8300/h8300.md (a peephole2): Remove dead code.
12676 2003-03-01  Roger Sayle  <roger@eyesopen.com>
12678         PR c++/9367
12679         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
12680         (BT_FN_INT_CONST_STRING_VALIST_ARG,
12681         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
12682         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
12683         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
12684         BT_FN_INT_STRING_CONST_STRING_VAR,
12685         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
12686         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
12687         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
12688         ATTR_NONNULL_3): Also include the nothrow attribute.
12689         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
12690         vsnprintf, vscanf, vsscanf): Don't define attributes here.
12691         * builtins.def (putchar, puts): Make full C89 built-ins.
12692         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
12693         vsscanf, vsnprintf, vsprintf): New built-ins.
12694         * c-common.c (c_common_nodes_and_builtins): Handle new macro
12695         DEF_FUNCTION_TYPE_VAR_3.
12697         * doc/extend.texi: Document these new built-in functions.
12699 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
12701         * config/h8300/h8300.md (a peephole2): New.
12703 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
12705         * predict.c (estimate_bb_frequencies): Correctly set
12706         real_values_initialized after initialization.
12708 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
12710         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
12711         cppinit.o, cppdefault.o, fix-header): Update.
12712         * c-incpath.c: New file.
12713         * c-incpath.h: New file.
12714         * c-lex.c: Include c-incpath.h.
12715         (init_c_lex): Register path simplifier.
12716         * c-opts.c: Include cppdefault.h and c-incpath.h.
12717         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
12718         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
12719         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
12720         (missing_arg, c_common_decode_option): Handle them.
12721         (c_common_post_options): Register include chains.
12722         (print_help): Update.
12723         * cppdefault.h (struct default include): Update.
12724         Move some macros to ...
12725         * cppdefault.c: ... here.
12726         (cpp_include_defaults): Add extra field add_sysroot.
12727         * cppfiles.c (include_file, search_from, find_or_create_entry,
12728         cpp_included, find_include_file, remap_filename): Update for
12729         renaming of search_path to cpp_path, and of the chain headers.
12730         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
12731         * cpphash.h (struct search_path): Move to cpplib.h.
12732         (struct cpp_buffer, struct cpp_reader): Update.
12733         (_cpp_simplify_pathname): Remove.
12734         * cppinit.c: Don't include prefix.h and cppdefault.h.
12735         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
12736         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
12737         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
12738         no_pth, cpp_handle_options): Remove.
12739         (struct pending_option): Remove chain members.
12740         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
12741         cpp_handle_option): Update.
12742         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
12743         (struct cpp_options): Remove quote_include, bracket_include,
12744         include_prefix, include_prefix_len, verbose, ignore_srcdir,
12745         no_standard_includes, no_standard_cplusplus_includes.
12746         (struct cpp_callbacks): Add simplify_path.
12747         (cpp_handle_options): Remove.
12748         * fix-header.c: Include c-incpath.h.
12749         (read_scan_file): Update to use c-incpath functionality.
12750         * doc/passes.texi: Update.
12752 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
12754         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
12755         satisfies EXTRA_CONSTRAINT 'U'.
12757 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
12759         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
12760         register.
12761         (*tst_extzv_memqi_1_n): Change to a splitter.
12762         (a peephole2): Update.
12764 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
12766         * predict.c (estimate_bb_frequencies): Initialize the sreal
12767         constants once per compilation.
12769 2003-02-28  Richard Henderson  <rth@redhat.com>
12771         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
12773 2003-02-28  scott snyder  <snyder@fnal.gov>
12775         * flags.h: Add flag_eliminate_unused_debug_types.
12776         * toplev.c: Add flag_eliminate_unused_debug_types.
12777         (f_options): Add -feliminate-unused-debug-types.
12778         * dwarf2out.c (struct file_table): Add emitted member.
12779         (splice_child_die): Fix the parent pointer for the child being
12780         spliced.
12781         (lookup_filename): Maintain file_table.emitted array.  Don't
12782         output .file directive here.
12783         (maybe_emit_file): (new)
12784         (init_file_table): Set up file_table.emitted.
12785         (dwarf2out_source_line): Use maybe_emit_file.
12786         (dwarf2out_start_source_file): Use maybe_emit_file.
12787         (dwarf2out_init): Use maybe_emit_file.
12788         (prune_unused_types_walk_attribs): (new)
12789         (prune_unused_types_mark): (new)
12790         (prune_unused_types_walk): (new)
12791         (prune_unused_types_prune): (new)
12792         (prune_unused_types): (new)
12793         (dwarf2out_finish): Call prune_unused_types if
12794         flag_eliminate_unused_debug_types is set.
12795         * doc/invoke.texi (Option Summary): Add
12796         -feliminate-unused-debug-types.
12797         (Debugging Options): Likewise.
12799 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
12801         * doc/invoke.texi: Change .pch to .gch.
12802         * cppfiles.c (open_file_pch): Likewise.
12803         * gcc.c (default_compilers): Likewise.
12805 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
12807         * floatlib.c: Remove.
12809 2003-02-28  Jason Merrill  <jason@redhat.com>
12811         * stor-layout.c (variable_size): Leave a "minus 1" outside the
12812         SAVE_EXPR.
12814 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
12816         * config/rs6000/power4.md: Add compare bypass.
12818 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
12820         * config/netbsd.h: Update copyright years.
12821         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
12822         -pthread is specified on the command line.
12824 2003-02-28  Dale Johannesen <dalej@apple.com>
12826         * loop.c (struct movable): Add insert_temp, shrink savemode.
12827         (scan_loop): Accept invariants that require copying; mark as
12828         insert_temp.
12829         (combine_movables): Don't combine insert_temp movables.
12830         (move_movables): Insert copies for insert_temp movables.
12831         Don't record the info based on regno for insert_temp's.
12833 2003-02-28  Joel Sherrill <joel@OARcorp.com>
12835         PR 9638/other
12836         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
12837         this constant defaults to 1.
12839 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
12841         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
12843 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
12845         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
12846         ARMv5e processor, not just for XScale.  Instructions are predicable.
12847         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
12849 2003-02-28  Nick Clifton  <nickc@redhat.com>
12851         * config/arm/arm.c (note_invalid_constants): Change parameter type
12852         from bool to int.
12854 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
12856         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
12857         test of bit 7.
12858         (*tst_extzv_memqi_1_n): Likewise.
12859         (a peephole2): New.
12861 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
12863         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
12864         #ifndef __mips16.
12866 2003-02-28  Jan Hubicka  <jh@suse.cz>
12868         * combine.c (gen_lowpart_for_combine): Update handling of
12869         subregs_of_mode
12870         * flow.c (life_analysis, mark_used_regs): Likewise.
12871         * regclass.c (subregs_of_mode): Turn into single bitmap.
12872         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
12873         dealing with subregs_of_mode
12874         * regs.h (subregs_of_mode): Update prototype.
12876 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
12878         * emit-rtl.c (set_reg_attrs_for_parm): New function.
12879         * rtl.h (set_reg_attrs_for_parm): New exported function.
12880         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
12881         set_reg_attrs_from_mem.
12883 2003-02-27  Roger Sayle  <roger@eyesopen.com>
12884             Zack Weinberg <zack@codesourcery.com>
12886         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
12888 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
12890         * reload1.c (sext_for_mode): Remove.
12891         (reload_cse_move2add): Use trunc_int_for_mode instead of
12892         sext_for_mode.
12893         (move2add_note_store): Likewise.
12894         Reset register information if we see a set in non-integer
12895         mode.
12897 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
12899         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
12900         option.
12901         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
12902         * config/rs6000/aix51.h: Same.
12903         * config/rs6000/aix52.h: Same.
12904         * config/rs6000/power4.md: Additional VMX bypasses.
12906 2003-02-27   Geert Bosch <bosch@gnat.com>
12908         * toplev.c (print_version): Add indentation for GGC heuristics and
12909         output after printing version information.
12911 2003-02-27  James E Wilson  <wilson@tuliptree.org>
12913         * combine.c (simplify_comparison): Require integral mode when
12914         permuting SUBREG with AND.
12916 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
12918         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
12920 2003-02-27  Nick Clifton  <nickc@redhat.com>
12922         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
12923         deleted when cirrus instructions were added.
12925 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
12927         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
12928         POSIX thread support by default.
12930 2003-02-27  Roger Sayle  <roger@eyesopen.com>
12932         * config/i386/cygwin.h: Don't include any other files directly.
12933         * config/i386/mingw32.h: Don't include cygwin.h directly.
12934         * config.gcc (cygwin, mingw32, uwin): Instead make these files
12935         explicit in the tm_files variable.
12937 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
12939         * config/rs6000/rs6000.md: Add TI constant splitter.
12941 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
12943         * builtins.c (purge_builtin_constant_p): Handle subreg of
12944         constant_p_rtx too.
12946         * function.c (assign_stack_local_1): Truncate constant added to
12947         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
12949 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
12951         * config.gcc: Add power4 to PowerPC with_cpu list.
12953 2003-02-26  Jan Hubicka  <jh@suse.cz>
12955         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
12957 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12959         * gcov-dump.c (print_prefix): Fix signedness warning.
12960         * gcov-io.h (struct counter_section, struct counter_section_data): New.
12961         (struct function_info): n_arc_counts field removed, n_counter_sections,
12962         counter_sections fields added.
12963         (struct gcov_info): arc_counts, n_arc_counts fields removed,
12964         n_counter_sections, counter_sections fields added.
12965         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
12966         profile sections.
12967         * profile.h (MAX_COUNTER_SECTIONS): New.
12968         (struct section_info): New.
12969         (struct profile_info): count_instrumented_edges,
12970         count_edges_instrumented_now fields removed, n_sections, section_info
12971         fields added.
12972         (find_counters_section): Declare.
12973         * profile.c (struct function_list): count_edges field removed,
12974         n_counter_sections, counter_sections fields added.
12975         (set_purpose, label_for_tag, build_counter_section_fields,
12976         build_counter_section_value, build_counter_section_data_fields,
12977         build_counter_section_data_value, build_function_info_fields,
12978         build_function_info_value, build_gcov_info_fields,
12979         build_gcov_info_value): New static functions.
12980         (find_counters_section): New function.
12981         (instrument_edges, get_exec_counts, compute_branch_probabilities,
12982         branch_prob, create_profiler): Modified to support multiple profile
12983         sections.
12985 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12987         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
12988         is 8 * STACK_BOUNDARY.
12989         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
12991 2003-02-26  Michael Matz  <matz@suse.de>
12993         * ra-colorize.c (merge_moves): Fix list handling.
12995 2003-02-26  Nick Clifton  <nickc@redhat.com>
12997         * config/arm/arm.c (is_load_address): Rename to...
12998         (arm_memory_load_p) ... this and make it check for SUBREGs and
12999         constant loads that will be converted into loads from the
13000         minipool.
13001         (is_cirrus_insn): Rename to ...
13002         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
13003         of CIRRUS_NO with CIRRUS_NOT.
13004         (cirrus_reorg): Use renamed functions.
13005         (note_invalid_constants): Change from a void function to bool.
13006         Add an extra parameter, saying whether the fixups should be
13007         pushed.  Return true if fixups are needed.
13008         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
13009         of CIRRUS_NO with CIRRUS_NOT.
13010         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
13011         other floating point co-processors can also affect this.
13012         * config/arm/arm.md ("type" attribute): Add mav_farith and
13013         mav_dmult.  Replace references to "cirrus_type" attribute with
13014         "type".
13015         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
13016         ("cirrus_type" attribute): Delete - use "type" instead.
13017         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
13018         'normal'.
13020 2003-02-25  Jan Hubicka  <jh@suse.cz>
13022         * objc-act.c: Include cgraph.h
13023         (mark_referenced_methods): New function.
13024         (objc_init): Call it.
13025         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
13027         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
13028         mode.
13030         * optabs.c (expand_fix): Do not widen the input operand.
13032         * expr.c (emit_group_store):  Fix crash when converting single
13033         register into complex register.
13035         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
13036         * alias.c: Include timevar.h
13037         (init_alias_analysis):  Set timevar
13038         * jump.c: Include timevar.h
13039         (rebuild_jump_labels):  Set timevar
13040         * regcalss.c: Include timevar.h
13041         (reg_scan):  Set timevar
13042         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
13044 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13046         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
13048         * Makefile.in (loop-unroll.o): New.
13049         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
13050         (unroll_and_peel_loops): Declare.
13051         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
13052         flag_old_unroll_loops.
13053         * loop.c (loop_invariant_p): Ditto.
13054         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
13055         flag_old_unroll_all_loops.
13056         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
13057         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
13058         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
13059         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
13060         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
13061         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
13062         PARAM_MAX_ONCE_PEELED_INSNS): New.
13063         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
13064         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
13065         instead of old one.
13066         (flag_peel_loops): New.
13067         (lang_independent_options): The new flags added.
13068         (rest_of_compilation): Call new unroller.
13069         (process_options): Setup flags for coexistence of old and new unroller.
13070         * doc/invoke.texi: Document new options.
13071         * doc/passes.texi: Document new unroller pass.
13073 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
13075         * fixinc/fixincl.x: Regenerate
13077 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
13079         * function.c (assign_parms): Set reg_attrs for parameters passed in
13080         registers.
13082 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
13084         PR target/9681
13085         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
13087 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
13089         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
13090         pseudo-op.
13092 2003-02-25  Roger Sayle  <roger@eyesopen.com>
13094         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
13095         * cse.c (invalidate_skipped_set):  Likewise.
13096         * integrate.c (subst_constants):  Likewise.
13097         * jump.c (reversed_comparison_code_parts):  Likewise.
13098         * loop.c (canonicalize_condition):  Likewise.
13099         * simplify-rtx.c (simplify_relational_operation):  Likewise.
13101 2003-02-25  Roger Sayle  <roger@eyesopen.com>
13103         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
13104         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
13105         the appropriate macro to define built-in function.
13106         (fmod,fmodf,fmodl): New built-in functions.
13108         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
13110 2003-02-25  Richard Henderson  <rth@redhat.com>
13112         * config/i386/i386.c (function_arg): Pass variable sized
13113         structures correctly on the stack.
13115 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
13117         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
13118         does not reduce the cost of SET.
13120 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13122         PR target/9732
13123         * config/rs6000/rs6000.c (first_reg_to_save): Handle
13124         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
13125         (rs6000_emit_prologue): Likewise.
13126         (rs6000_emit_epilogue): Likewise.
13127         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
13128         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
13130 2003-02-25  Richard Henderson  <rth@redhat.com>
13132         * real.c (real_to_integer2): Force overflow result only for
13133         unsigned overflow.
13135 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
13137         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
13139 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
13140             Richard Henderson  <rth@redhat.com>
13142         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
13143         there is no similar load.
13145 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
13146             Richard Henderson  <rth@redhat.com>
13148         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
13149         sched-rgn.c.
13150         (add_forward_dependence): New function prototype.
13152         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
13153         sched-init.h.
13154         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
13155         them to haifa-sched.c.
13157         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
13158         haifa_classify_insn): Move them from sched-rgn.c.
13160         * sched-deps.c (add_dependence): Return flag of creating a new
13161         entry.
13162         (add_forward_dependence): New function.
13163         (compute_forward_dependences): Use the function.
13165         * sched-ebb.c (earliest_block_with_similiar_load): New function.
13166         (add_deps_for_risky_insns): New function.
13167         (schedule_ebb): Call the function.
13169 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
13171         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
13172         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
13174         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
13175         opaque types fail.
13177         * c-typeck.c (comptypes): Change call to vector_types_compatible
13178         to vector_opaque_p.
13179         (convert_for_assignment): Call vector_opaque_p instead of
13180         vector_types_compatible.
13181         (really_start_incremental_init): Disallow initialization of opaque
13182         types.
13184         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
13185         Define TARGET_VECTOR_OPAQUE_P.
13186         (TARGET_INITIALIZER): Same.
13188         * target.h (struct gcc_target): Remove vector_types_compatible.
13189         Add vector_opaque_p.
13191         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
13192         Remove.
13193         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
13194         a vector type.  Change return type to bool.
13195         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
13196         (TARGET_VECTOR_OPAQUE_P): Define.
13198         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
13199         target hook.
13200         Include target.h.
13201         (cp_parser_init_declarator): Fix typo in function comments.
13203 2003-02-25  Jan Hubicka  <jh@suse.cz>
13205         * Makefile.in (lcm.o):  Add dependency on function.h
13206         * lcm.c (function.h): Include.
13207         * i386.c (machine_function, ix86_stack_locals,
13208         * ix86_save_varrargs_registers) : Move to
13209         ...
13210         * i386.h (machine_function, ix86_stack_locals,
13211         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
13212         (ix86_optimize_mode_switching): New.
13213         * i386.md (fix patterns): Set ix86_optimize_mode_switching
13215 2003-02-25  Nick Clifton  <nickc@redhat.com>
13217         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
13218         of fourth arg is 'fndecl' not 'indirect'.  Update comment
13219         describing the function's parameters.
13221 2003-02-24  Jan Hubicka  <jh@suse.cz>
13223         * combine.c (simplify_shift_const):  Fix previous patch.
13225 2003-02-24  Jeff Law  <law@redhat.com>
13227         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
13228         alternative.
13229         (testsi_1, testhi_1, testqi_1): Likewise.
13231 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13233         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
13234         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
13235         * doc/extend.texi (Tru64 Pragmas): Reflect this.
13237         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
13238         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
13239         * fixinc/fixincl.x: Regenerate.
13240         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
13241         testcase.
13242         Fixes PR c/5059, c/6126, other/9671.
13244 2003-02-24  Roger Sayle  <roger@eyesopen.com>
13246         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
13247         from handle_braces in "%{...}".
13249 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
13251         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
13252         (prepare_move_operands): Handle TLS operands.
13253         (tls_symbolic_operand): New.
13254         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
13255         (legitimize_pic_address): Do nothing for the TLS symbol.
13256         (sh_encode_section_info): Handle TLS case.
13257         (sh_strip_name_encoding): Drop TLS encoding.
13258         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
13259         * config/sh/sh.h (SH_TLS_ENCODING): Define.
13260         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
13261         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
13262         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
13263         * config/sh/sh.md: Define TLS UNSPEC constants.
13264         (type): Add tls_load.
13265         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
13266         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
13267         ("tls_initial_exec"): New insn.
13268         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
13269         ("load_gbr"): New insn.
13271         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
13272         * configure: Regenerate.
13274 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
13276         PR 9297, PR 9722
13277         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
13278         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
13279         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
13280         (enum block_op_methods): Reorder for better store_expr optimization.
13281         * expr.c (store_expr): Test bit 1 of "want_value" for call param
13282         stores, test bit 0 for original want_value meaning.  Pass
13283         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
13284         recursive calls, and calls to expand_param.
13285         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
13286         expected, set target to 0 rather than to subtarget.  Formatting.
13288 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
13290         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
13292 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13294         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
13295         new default behavior.
13296         * ggc-common.c: Include sys/resource.h.
13297         (ggc_rlimit_bound): New function.
13298         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
13299         defaults to account for rlimits.
13301 2003-02-22  Richard Henderson  <rth@redhat.com>
13303         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
13305 2003-02-22  Kelley Cook <kelley@dwhoops.info>
13307         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
13308         (ix86_tune_string): Rename from ix86_cpu_string.
13310 2003-02-22  Kelley Cook <kelleycook@comcast.net>
13312         * config/i386/i386.c: Replace "mcpu" with "mtune".
13313         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
13314         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
13315         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
13316         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
13318 2003-02-23  Andreas Schwab  <schwab@suse.de>
13320         * config.gcc: Delete references to m68k/t-linux and
13321         m68k/t-linux-aout.
13322         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
13324 2003-02-22  Jan Hubicka  <jh@suse.cz>
13326         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
13327         of track scheduling patch.
13329 2003-02-22  Jan Hubicka  <jh@suse.cz>
13331         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
13332         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
13334 2003-02-22  Jan Hubicka  <jh@suse.cz>
13336         * c-decl.c (c_expand_body_1): Fix.
13338 2003-02-22  Jan Hubicka  <jh@suse.cz>
13340         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
13342         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
13343         when not optimizing.
13344         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
13345         when not expensive.
13346         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
13347         optimizing;  Delete trivially dead insns early; fix optimize check.
13349         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
13350         dependency on cgraph.h
13351         * c-decl.c: Include cgraph.h
13352         (finish_function): Update call of tree_inlinable_function_p.
13353         * c-objc-common.c: Include cgraph.h
13354         * cgraph.h: New file.
13355         * cgraphunit.c: New file.
13356         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
13357         (cgraph_nodes, cgraph_n_nodes): Globalize.
13358         (cgraph_finalize_function, cgraph_finalize_compilation_unit
13359         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
13360         Move into cgraphunit.c
13361         * tree-inline.c: Include cgraph.h
13362         * tree-inline.c: Include cgraph.h
13364 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
13366         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
13367         for copying a register.
13369 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
13371         PR other/3782
13372         * toplev.c (process_options): If flag_detailed_statistics is set,
13373         then set time_report as well.
13375         PR c/8828
13376         * jump.c (never_reached_warning): Don't fall through BARRRIER
13377         insns.  Update comments to reflect what the function really does.
13379 2003-02-21  Roger Sayle  <roger@eyesopen.com>
13381         * fold-const.c (omit_one_operand): No longer static.
13382         * tree.h (omit_one_operand): Prototype here.
13383         (div_and_round_double): Keep fold-const.c prototypes together.
13384         * builtins.c (builtin_mathfn_code): Handle binary built-in
13385         funtions, such as "pow" and "atan2".
13386         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
13387         Simplify optimizations using "type" the builtin's return type.
13389 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
13391         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
13392         Fix functionalization typo.
13394         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
13395         in an asm.
13397 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13399         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
13400         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
13401         documentation.
13402         * ggc-common.c: Include params.h
13403         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
13404         init_ggc_heuristics): New functions.
13405         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
13406         init_ggc_heuristics): Prototype.
13407         * toplev.c (print_version):  Output GGC heuristics.
13408         (parse_options_and_default_flags): Call init_ggc_heuristics.
13410 2003-02-22  Jan Hubicka  <jh@suse.cz>
13412         * i386.c (def_builtin):  Special case 64bit builtins.
13413         (MASK_SSE164, MASK_SSE264): New constants.
13414         (builtin_description): Add 64bit builtins.
13415         (ix86_init_mmx_sse_builtins): Likewise.
13416         * i386.h (enum ix86_builtins): Likewise.
13417         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
13418         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
13419         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
13420         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
13421         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
13422         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
13423         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
13425 2003-02-22  Jan Hubicka  <jh@suse.cz>
13427         * i386.c (builtin_description): Add __builtin_ia32_paddq and
13428         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
13429          and __builtin_ia32_psubq128.
13430         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
13431         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
13432         (mmx_adddi3, mmx_subdi3): New.
13433         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
13434         * xmmintrin.h (_mm_movepi64_pi64): New.
13435         (_mm_add_epi64, _mm_sub_epi64): fix.
13436         (_mm_mul_pu16): Rename to...
13437         (_mm_mul_su32): ... this one.
13439         * builtins.c (expand_builtin_expect):  Do not predict
13440         flag_guess_branch_prob is not set.
13441         * c-semantics.c (expand_stmt): Likewise.
13442         * predict.c (predict_insn): Likewise.
13443         * stmt.c (expand_continue_loop): Likewise.
13444         * toplev.c (rest_of_compilation): Do not call
13445         note_prediction_to_br_prob and note_prediction_to_br_prob
13446         when not optimizing.
13448 2003-02-21  Jan Hubicka  <jh@suse.cz>
13450         * cfgrtl.c (commit_edge_insertions):  Call
13451         find_many_sub_basic_block only when some code has been emitted.
13452         (commit_edge_insertions_watch_calls): Bring into sync with
13453         commit_edge_insertions
13455 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
13457         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
13459         * sh.md (binary_sf_op): Use extra constant operand instead of
13460         negating constant operand 4.
13461         * sh.c (sh_expand_binop_v2sf): Supply it.
13463 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
13465         * cpphash.h (struct lexer_state): Add directive_wants_padding.
13466         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
13467         for directives of type INCL.
13468         (glue_header_name, parse_include): Use get_token_no_padding.
13469         * cppmacro.c (replace_args): If directive_wants_padding,
13470         provide padding tokens.
13472 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
13474         * config/h8300/h8300.md (a peephole2): New.
13476 2003-02-21  Jan Hubicka  <jh@suse.cz>
13478         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
13479         (commit_edge_insertions): Call find_many_sub_basic_blocks
13481         * reg-stack.c (convert_regs): Cleax aux for blocks.
13483 2003-02-21  Jan Hubicka  <jh@suse.cz>
13485         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
13487 2003-02-21  Glen Nakamura  <glen@imodulo.com>
13489         PR optimization/8613
13490         * builtins.c (expand_builtin): Emit postincrements before expanding
13491         builtin functions.
13493 2003-02-21  Ben Elliston  <bje@redhat.com>
13495         PR other/5634
13496         * doc/install.texi (Configuration): Explain using $HOME instead of
13497         the ~ metacharacter when referring to home directories.
13499 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
13501         * configure.in (TARGET_SYSTEM_ROOT): Set default to
13502         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
13503         '${exec_prefix}' (in addition to the expansion thereof) as
13504         relocatable.
13505         * configure: Rebuilt.
13507 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
13509         * config/h8300/h8300.md (addhi3_incdec): Change the name to
13510         *addhi3_incdec.
13511         (addsi3_incdec): Change the name to *addsi3_incdec.
13513 2003-02-20  Roger Sayle  <roger@eyesopen.com>
13515         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
13517 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
13519         PR fortran/9038
13520         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
13521         options to be ignored.
13522         (c_common_decode_option): Ignore them when preprocessing.
13524 2003-02-20  Jan Hubicka  <jh@suse.cz>
13526         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
13527         global variables.
13528         (lang_independent_options):  Add -fsched2-use-superblocks
13529         -fsced2-use-traces.
13530         (rest_of_compilation): Deal with it.
13531         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
13532         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
13533         Declare.
13534         * rtl.h (reg_to_stack):  Update prototype.
13535         * reg-stack.c (reg_to_stack): Return when something has changed;
13536         update liveness when executing after superblock scheduling.
13538         * combine.c (simplify_shift_const):  Simplify few special cases
13539         into constants.
13541 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
13543         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
13544         (add.,subf.,neg.): Change attribute to fast_compare.
13545         All DFA descriptions updated.
13547 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
13549         Change base class access representation.
13550         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
13551         TREE_VIA_PRIVATE): Remove.
13552         (BINFO_BASEACCESSES): New binfo elt.
13553         (BINFO_BASEACCESS): New accessor.
13554         (BINFO_ELTS): Increase.
13555         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
13556         (access_public_node, access_protected_node,
13557         access_private_node): New global nodes.
13558         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
13559         * dbxout.c (dbxout_type): Adjust.
13560         * dwarf2out.c (gen_inheritance_die): Add access parameter.
13561         (gen_member_die): Adjust.
13562         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
13563         (output_type): Adjust.
13564         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
13566         Change base class access representation. Share virtual base
13567         binfos.
13568         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
13569         call.
13570         * cp/class.c (build_base_path): Likewise.
13571         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
13572         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
13573         (make_new_vtable): Adjust.
13574         (force_canonical_binfo_r): Delete.
13575         (force_canonical_binfo): Delete.
13576         (mark_primary_virtual_base): Delete.
13577         (dfs_unshared_virtual_bases): Delete.
13578         (mark_primary_bases): Adjust.
13579         (maybe_warn_about_overly_private_class): Adjust.
13580         (dfs_base_derived_from): Delete.
13581         (base_derived_from): Follow the inheritance chain.
13582         (struct find_final_overrider_data): Add vpath member.
13583         (dfs_find_final_overrider): Adjust.
13584         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
13585         (find_final_overrider): Adjust.
13586         (update_vtable_entry_for_fn): Adjust.
13587         (modify_all_vtables): Adjust.
13588         (walk_subobject_offsets): Adjust.
13589         (layout_nonempty_base_or_field): Adjust.
13590         (layout_empty_base): Remove last parameter. Adjust.
13591         (build_base_field): Adjust.
13592         (build_base_fields): Adjust.
13593         (propagate_binfo_offsets): Remove last parameter. Adjust.
13594         (dfs_set_offset_for_unshared_vbases): Delete.
13595         (layout_virtual_bases): Adjust.
13596         (finish_struct_1): Adjust.
13597         (init_class_processing): Don't init access nodes.
13598         (dfs_get_primary_binfo): Delete.
13599         (get_primary_binfo): Adjust.
13600         (dump_class_hierarchy_r): Remove most derived arg, add IGO
13601         parameter. Adjust.
13602         (dump_class_hierarchy): Adjust.
13603         (finish_vtbls): Adjust.
13604         (get_original_base): Delete.
13605         (build_vtt_inits): Adjust.
13606         (dfs_build_secondary_vptr_vtt_inits): Adjust.
13607         (dfs_ctor_vtable_bases_queue_p): Adjust.
13608         (build_ctor_vtbl_group): Adjust.
13609         (dfs_accumulate_vtbl_inits): Adjust.
13610         (build_vtbl_initializer): Adjust.
13611         (build_vbase_offset_vtbl_entries): Adjust.
13612         (add_vcall_offset_vtbl_entries_1): Adjust.
13613         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
13614         (access_*_node): Remove.
13615         (CANONICAL_BINFO): Delete.
13616         (BINFO_UNSHARED_MARKED): Remove.
13617         (BINFO_MARKED): Set LANG_FLAG_0 directly.
13618         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
13619         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
13620         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
13621         Delete.
13622         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
13623         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
13624         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
13625         Delete.
13626         (BINFO_DEPENDENT_BASE_P): New.
13627         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
13628         index.
13629         (markedp, unmarkedp): Adjust.
13630         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
13631         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
13632         find_vbase_instance, binfo_for_vbase): Delete.
13633         (copied_binfo, original_binfo): Declare.
13634         (finish_base_specifier): Add virtual_p arg.
13635         (unshare_base_binfos): Delete.
13636         (copy_base_binfos): Declare.
13637         (reverse_path): Delete.
13638         * cp/decl.c (xref_basetypes): Access and virtuality passed
13639         differently. Don't copy direct base binfos here. Call
13640         copy_base_binfos.
13641         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
13642         (initialize_vtbl_ptrs): Adjust.
13643         (expand_member_init): Adjust.
13644         * cp/parser.c (cp_parser_base_specifier): Adjust.
13645         * cp/pt.c (instantiate_class_template): Adjust.
13646         (get_template_base_recursive): Adjust.
13647         * cp/rtti.c (get_pseudo_ti_init): Adjust.
13648         (get_pseudo_ti_desc): Adjust.
13649         * cp/tree.c (unshare_base_binfos): Rename to ...
13650         (copy_base_binfos): ... here, reimplement.
13651         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
13652         (reverse_path): Remove.
13653         * cp/typeck.c (get_delta_difference): Adjust error messages.
13654         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
13655         * cp/search.c (lookup_base_r): Adjust.
13656         (dynamic_cast_base_recurse): Adjust.
13657         (canonical_binfo): Remove.
13658         (dfs_canonical_queue): Remove.
13659         (dfs_assert_unmarked_p): Remove.
13660         (assert_canonical_unmarked): Remove.
13661         (shared_marked_p, shared_unmarked_p): Remove.
13662         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
13663         (dfs_access_in_type): Adjust.
13664         (access_in_type): Adjust.
13665         (dfs_accessible_queue_p): Adjust.
13666         (dfs_accessible_p): Adjust.
13667         (is_subobject_of_p_1, is_subobject_of_p): Remove.
13668         (struct lookup_field_info): Remove from_dep_base_p field.
13669         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
13670         (lookup_field_r): Remove dependent base code.
13671         (lookup_member): Likewise.
13672         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
13673         (dfs_unmarked_real_bases_queue_p): Remove.
13674         (dfs_marked_real_bases_queue_p): Remove.
13675         (dfs_skip_vbases): Remove.
13676         (dfs_get_pure_virtuals): Adjust.
13677         (markedp, unmarkedp): Adjust.
13678         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
13679         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
13680         (dfs_unmark): Adjust.
13681         (dfs_get_vbase_types):Remove.
13682         (dfs_build_inheritance_graph_order): Remove.
13683         (get_vbase_types): Remove
13684         (dfs_find_vbase_instance): Remove.
13685         (find_vbase_instance): Remove.
13686         (dfs_debug_unmarkedp): Adjust.
13687         (dependent_base_p): Remove.
13688         (dfs_push_type_decls): Adjust.
13689         (dfs_push_decls): Adjust.
13690         (dfs_no_overlap_yet): Adjust.
13691         (copied_binfo): New function.
13692         (original_binfo): New function.
13693         (binfo_for_vbase): Remove.
13695         Change base class access representation.
13696         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
13697         (add_interface_do): Likewise.
13699 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
13701         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13702         * config/rs6000/power4.md (power4-store,power4-vecstore): New
13703         insn reservations.
13704         (power4-fpstore): Compact.
13706 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
13708         * config/h8300/h8300.md (*iorsi3_w): New.
13710 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
13712         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
13713         * rtl.c (reg_note_name): Likewise.
13714         * rtl.h (enum reg_note): Likewise.
13715         * doc/invoke.texi: Likewise.
13716         * doc/rtl.texi: Likewise.
13718 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
13720         * bb-reorder.c (find_traces_1_round): Fix comment typo.
13722 2003-02-19  Roger Sayle  <roger@eyesopen.com>
13724         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
13725         addition in the presence of signaling NaNs.
13727 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
13729         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
13731 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
13733         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
13734         ORing with 0xffff??00 with the highest bit of the ?? part set.
13735         (compute_logical_op_length): Update.
13736         (compute_logical_op_cc): Likewise.
13738 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
13740         * bb-reorder.c (find_traces_1_round): Fixed condition for small
13741         destination block with multiple predecessors.
13742         (connect_traces): Check whether the block is a start of trace.
13744 2003-02-19  Jan Hubicka  <jh@suse.cz>
13746         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
13747         * function.c (assign_params): Likewise.
13748         * arm-protos.h (arm_init_cumulative_args): Update prototype.
13749         * arm.c (arm_init_cumulative_args): Update function.
13750         * arm.h (INIT_CUMULATIVE_ARGS): Update.
13751         * avr-protos.h (init_cumulative_args): Update prototype.
13752         * avr.c (init_cumulative_args): Update function.
13753         * avr.h (INIT_CUMULATIVE_ARGS): Update.
13754         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
13755         * d30v.c (d30v_init_cumulative_args): Update function.
13756         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
13757         * frv-protos.h (frv_init_cumulative_args): Update prototype.
13758         * frv.c (frv_init_cumulative_args): Update function.
13759         * frv.h (INIT_CUMULATIVE_ARGS): Update.
13760         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
13761         * pa.h (INIT_CUMULATIVE_ARGS): Update.
13762         * sparc-protos.h (init_cumulative_args): Update prototype.
13763         * sparc.c (init_cumulative_args): Update function.
13764         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
13765         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
13767 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
13769         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
13770         (*ashiftsi_sextqi_7): Likewise.
13772 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13774         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
13775         ISO C99 and C++.
13777         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
13778         for C++ on IRIX 6.5.1[89].
13779         * fixinc/tests/base/internal/sgimacros.h: New file.
13781         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
13782         * fixinc/tests/base/internal/wchar_core.h: New file.
13784         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
13785         socklen_t definition.
13786         * fixinc/fixincl.x: Regenerate.
13787         * fixinc/tests/base/sys/socket.h: New file.
13788         Fixes PR libgcj/9652.
13790 2003-02-19  Jan Hubicka  <jh@suse.cz>
13792         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
13794 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
13796         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
13797         align_jumps_max_skip and align_loops_max_skip.
13799 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
13801         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
13802         test size if named section.
13804 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
13806         * expr.c (expand_expr): Use gen_int_mode for the argument
13807         to gen_rtx_MULT.
13809 2003-02-19  Jan Hubicka  <jh@suse.cz>
13811         * i386.md (cosxf2):  Fix conditional.
13813 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
13815         * config/h8300/h8300.md (extendqisi2): Change to an expander.
13816         (*extendqisi2_h8300): New.
13817         (*extendqisi2_h8300hs): Likewise.
13819 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
13821         * config/h8300/h8300-protos.h: Update the prototype for
13822         split_adds_subs.  Remove the prototypes for
13823         const_int_le_2_operand and const_int_le_6_operand.
13824         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
13825         (const_int_le_2_operand): Remove.
13826         (const_int_le_6_operand): Likewise.
13827         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
13828         for const_int_le_2_operand and const_int_le_6_operand.
13829         * config/h8300/h8300.md: Update all uses of split_adds_subs.
13830         (a peephole2): New.
13832 2003-02-18  Jan Hubicka  <jh@suse.cz>
13834         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
13835         (cgraph_expand_function): Rewrite.
13837 2003-02-18  Matt Austern <austern@apple.com>
13839         * toplev.c, langhooks.c, langhooks-def.h: Move
13840         write_global_declarations from toplev.c to langhooks.c.
13842 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
13844         * config/h8300/h8300.c (general_operand_src): Always check
13845         MODE.
13846         (general_operand_dst): Likewise.
13848 2003-02-18  Roger Sayle  <roger@eyesopen.com>
13850         * convert.c (convert_to_real): Also optimize (float)log(x) into
13851         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
13853 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
13855         * config/sh/sh.c (unspec_caller_rtx_p): New.
13856         (sh_cannot_copy_insn_p): New.
13857         (TARGET_CANNOT_COPY_INSN_P): New.
13859 2003-02-18  Richard Henderson  <rth@redhat.com>
13861         * c-common.c (handle_used_attribute): Accept static data too.
13863 2003-02-18  Nick Clifton  <nickc@redhat.com>
13864             Aldy Hernandez  <aldyh@redhat.com>
13866         * testsuite/gcc.dg/20030218-1.c: New.
13868         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
13870         * target-def.h (TARGET_INITIALIZER): Add
13871         TARGET_VECTOR_TYPES_COMPATIBLE.
13872         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
13874         * target.h (struct gcc_target): Add field vector_types_compatible.
13876         * c-typeck.c (comptypes): Take into account
13877         TARGET_VECTOR_TYPES_COMPATIBLE.
13878         (convert_for_assignment): Same.
13880         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
13881         (rs6000_spe_vector_types_compatible): New.
13882         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
13884 2003-02-19  Andreas Schwab  <schwab@suse.de>
13886         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
13887         * toplev.c: Include langhooks-def.h.
13889 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
13891         * config/mips/mips.h (enum processor_type): Sort entries
13892         alphabetically.
13893         * config/mips/mips.md (define_attr cpu): Sync with processor_type
13894         enum values, including adding entries that were missing.
13896 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
13898         * sh.c (calc_live_regs): Also check GET_CODE when checking if
13899         initial value for PR_REG is still the PR_REG register.
13901 2003-02-18  Jim Wilson  <wilson@redhat.com>
13903         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
13904         instruction in output template.
13905         (bsp_value): Change output template from string to C code, add %,
13906         before actual instruction.
13907         (flushrs): Mark as not predicable.
13909 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
13911         * inclhack.def (netbsd_bogus_semicolon): New fix.
13912         * fixincl.x: Rebuilt.
13913         * tests/base/ctype.h: Update.
13915 2003-02-18  Roger Sayle  <roger@eyesopen.com>
13917         * fold-const.c (negate_expr_p): New function to determine whether
13918         an expression can be negated cheaply.
13919         (fold) [MINUS_EXPR]: Use it to determine whether to transform
13920         -A - B into -B - A for floating point types.
13922 2003-02-18  Roger Sayle  <roger@eyesopen.com>
13924         * sbitmap.c (sbitmap_resize): New function.
13925         * sbitmap.h (sbitmap_resize): Prototype here.
13926         * recog.c (split_all_insns): Use sbitmap_resize.
13928 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
13930         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
13931         insn length.
13932         (extendqisi2): Likewise.
13933         (*extendhisi2_h8300): Likewise.
13935 2003-02-18  Matt Austern <austern@apple.com>
13937         * langhooks.h, langhooks-def.h: introduce new langhook,
13938         final_write_globals, with write_global_declarations as default.
13939         * toplev.c: Move invocation of wrapup_global_declarations from
13940         compile_file to new function, write_global_declarations.  Change
13941         compile_file to use final_write_globals hook.  Change
13942         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
13943         conditional.
13945 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13947         * pa.md: Correct and enhance comment.
13949 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
13951         * gcc.c (validate_switches): Don't scan past closing '}'.
13953 2003-02-18  Ben Elliston  <bje@redhat.com>
13955         PR c++/1607
13956         * doc/extend.texi (Function Attributes): Document the effect of
13957         the C++ "this" parameter on the counting of arguments for the
13958         "format" and "format_arg" attributes.
13960 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
13962         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
13963         (__ev_stdw): Same.
13964         (__ev_stdh): Same.
13966 2003-02-17  Jan Hubicka  <jh@suse.cz>
13968         * recog.c (split_all_insns):  Fix memory overflow.
13970 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
13972         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
13973         (cmphi): Likewise.
13974         (*cmphi_h8300): Likewise.
13975         (*cmphi_h8300hs): Likewise.
13976         (cmpsi): Likewise.
13977         (7 peephole2): Likewise.
13979 2003-02-16  Jan Hubicka  <jh@suse.cz>
13981         * c-typeck.c (build_c_cast):  Fold constant variables into
13982         initial values.
13984 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13986         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
13987         (Binaries): Ditto for Sinix/Reliant Unix.
13989 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
13991         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
13992         not overlap the final result register.
13994 2003-02-16 Arend Bayer <arend.bayer@web.de>
13995            Richard Henderson  <rth@redhat.com>
13997         PR c/8068
13998         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
13999         rearrange mult arguments for less recursion.
14000         (extract_muldiv): New.  Prevent runaway recursion.
14002 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
14004         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
14005         MASK_ALIGN_DOUBLE.
14007 2003-02-15  Roger Sayle  <roger@eyesopen.com>
14009         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
14010         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
14011         (ext_80387_constants_table): Global table of 80387 special constants
14012         guarded by ext_80387_constants_init flag when not initialized.
14013         (init_ext_80387_constants): New function to initialize this table.
14014         (standard_80387_constant_p): Extend to recognize extra 80387
14015         constants, in XFmode, on processors where this is a win.
14016         (standard_80387_constant_opcode): New function to return the
14017         opcode associated with standard_80387_constant_p.
14018         (standard_80387_constant_rtx): New function to return the XFmode
14019         CONST_DOUBLE associated with standard_80387_constant_p.
14020         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
14022         * config/i386/i386-protos.h (standard_80387_constant_opcode):
14023         Prototype here.
14024         (standard_80387_constant_rtx): Likewise.
14026         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
14027         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
14028         *movtf_integer): Simplify using new standard_80387_constant_opcode.
14030 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
14032         * doc/invoke.texi (Optimize Options): Correct @option syntax.
14034 2003-02-15  Richard Henderson  <rth@redhat.com>
14036         * Makefile.in (cfglayout.o): Depend on TARGET_H.
14037         * cfglayout.c: Include target.h.
14038         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
14039         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
14040         * target.h (struct gcc_target): Add cannot_copy_insn_p.
14042         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
14043         (TARGET_CANNOT_COPY_INSN_P): New.
14044         (override_options): Revert 2003-02-08 hack.
14046 2003-02-15  Richard Henderson  <rth@redhat.com>
14048         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
14049         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
14051 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
14053         * config/rs6000/rs6000.h (processor_type): Add PPC440.
14054         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
14055         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
14056         TARGET_SCHED_VARIABLE_ISSUE): Define.
14057         (rs6000_use_dfa_pipeline_interface): New function.
14058         (rs6000_multipass_dfa_lookahead): New Function.
14059         (rs6000_variable_issue): New function.
14060         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
14061         (rs6000_issue_rate): Add PPC440.
14062         * config/rs6000/rs6000.md (unspec list): Correct typo.
14063         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
14064         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
14065         cmp, delayed_cr, mfcr, mtcr.
14066         (automata_option): Set "ndfa".
14067         (extendMMNN2): Update attributes.
14068         (movcc_internal1): Discourage move to non-cr0.  Update
14069         attributes.
14070         (movMM_update): Update attributes.
14071         (cmpMM_internal): Update attributes.
14072         (sCC CR materialization): Update attributes.
14073         (branch patterns): Do not discourage non-cr0.
14074         (cr logical patterns): Prefer destructive register allocation.
14075         Update attributes.
14076         (movesi_from_cr): Update attribute.
14077         (mtcrf_operation): Update attribute.
14078         (mtcrfsi): Update attribute.
14079         * config/rs6000/40x.md: New file.
14080         * config/rs6000/603.md: New file.
14081         * config/rs6000/6xx.md: New file.
14082         * config/rs6000/7450.md: New file.
14083         * config/rs6000/7xx.md: New file.
14084         * config/rs6000/mpc.md: New file.
14085         * config/rs6000/power4.md: New file.
14086         * config/rs6000/rios1.md: New file.
14087         * config/rs6000/rios2.md: New file.
14088         * config/rs6000/rs64.md: New file.
14089         [Some DFA descriptions based on work by Michael Hayes]
14091 2003-02-15  Richard Henderson  <rth@redhat.com>
14093         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
14094         successors with multiple predecessors.
14095         (connect_traces): Try harder to copy traces of length 1.
14097         * function.h (struct function): Add computed_goto_common_label,
14098         computed_goto_common_reg.
14099         * function.c (free_after_compilation): Zap them.
14100         * stmt.c (expand_computed_goto): Use them to produce one
14101         indirect branch per function.
14103 2003-02-15  Richard Henderson  <rth@redhat.com>
14105         * cfgcleanup.c: Include params.h.
14106         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
14107         too many outgoing edges from a block.
14108         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
14109         * params.def (max-crossjump-edges): New.
14110         * doc/invoke.texi: Document it.
14112 2003-02-15  Richard Henderson  <rth@redhat.com>
14114         * recog.c (split_all_insns): Include new blocks in life update;
14115         do a global life update.
14117 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
14119         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
14120         Update copyright.
14121         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
14122         -mno-cygwin case.
14124 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
14126         PR optimization/7702
14127         * reload1.c (reload_cse_simplify_set): Honor
14128         CANNOT_CHANGE_MODE_CLASS.
14130 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
14132         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
14133         function.
14134         * config/mn10300/mn10300-protos.h: Declare it.
14135         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
14136         attribute cc of instructions that may use clr.
14138 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
14140         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
14141         (x - (x & y)) is found.
14143 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14145         * configure.in: Fix typo.
14146         * configure: Regenerate.
14148 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
14150         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
14152 2003-02-13  Adam Nemet  <anemet@lnxw.com>
14154         PR opt/2391
14155         * combine.c: Fix spelling in comment.
14156         (cached_nonzero_bits): New function.
14157         (cached_num_sign_bit_copies): New function.
14158         (nonzero_bits_with_known): New macro.
14159         (num_sign_bit_copies_with_known): New macro.
14160         (nonzero_bits1): Rename from nonzero_bits.  Add three new
14161         arguments.  Change calls from nonzero_bits to
14162         nonzero_bits_with_known.
14163         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
14164         three new arguments.  Change calls from num_sign_bit_copies to
14165         num_sign_bit_copies_with_known.
14166         (nonzero_bits): New macro.
14167         (num_sign_bit_copies): New macro.
14168         (update_table_tick): Don't traverse identical subexpression more
14169         than once.
14170         (get_last_value_validate): Likewise.
14172 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
14174         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
14175         * function.h (struct emit_status): Length of regno_pointer_align
14176         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
14177         not regno_pointer_align_length (i.e. length actually used, not
14178         length as allocated)
14180         * config/i386/i386.c (struct stack_local_entry): New.
14181         (struct machine_function): Replace huge array with alist.
14182         (assign_386_stack_local): Change to match.
14184 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
14186         * inclhack.def (hpux_long_double): Tighten select and add bypass
14187         regexp.
14188         * fixincl.x: Rebuilt.
14190 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
14192         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
14193         edge and block ends with a jump insn it must be simple jump.
14195 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
14197         * Makefile.in (PREPROCESSOR_DEFINES): Add
14198         @TARGET_SYSTEM_ROOT_DEFINE@.
14199         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
14200         is specified or if building a cross compiler.
14201         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
14202         if the sysroot is under $exec_prefix.
14203         * configure: Regenerated.
14204         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
14205         defined.
14206         (struct default_include): Add add_sysroot field.
14207         (cpp_SYSROOT): Declare.
14208         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
14209         field.
14210         (cpp_SYSROOT): New variable.
14211         * cppinit.c (cpp_create_reader): Initialize
14212         CPP_OPTION (pfile, sysroot).
14213         (init_standard_includes): Handle add_sysroot.  Do not
14214         add unrelocated copies of relocated directories.
14215         (COMMAND_LINE_OPTIONS): Add -isysroot.
14216         (cpp_handle_option): Handle -isysroot.
14217         * cpplib.h (struct cpp_options): Add sysroot member.
14218         * gcc.c (The Specs Language): Update description of %I.
14219         (target_system_root_changed): New variable.
14220         (process_command): Conditionalize make_relative_prefix call
14221         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
14222         target_system_root_changed.
14223         (do_spec_1): Add -isysroot to %I.
14224         * doc/invoke.texi (Spec Files): Update description of %I.
14225         * doc/install.texi (--with-sysroot): Update comment about
14226         relocation.
14228 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
14230         * config/h8300/h8300.md (a peephole2): New.
14232 2003-02-13  Robert Lipe <robertlipe@usa.net>
14233             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14235         * doc/install.texi (Specific): Update three SCO-related URLs.
14237 2003-02-13  Andreas Schwab  <schwab@suse.de>
14239         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
14240         Parenthesize properly.
14241         (NPREDECESORS): Parenthesize properly.
14243 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14245         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
14247 2003-02-12  Roger Sayle  <roger@eyesopen.com>
14249         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
14250         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
14252         * reg-stack.c (subst_stack_regs_pat): Add support for binary
14253         UNSPEC instructions (e.g. "fpatan").
14255 2003-02-12  Mike Stump  <mrs@apple.com>
14257         * varray.c (element_size): Remove.
14258         (uses_ggc): Remove.
14259         (element): Add.
14260         (varray_init): Use new interface.
14261         (varray_grow): Use new interface.
14262         (varray_clear): Use new interface.
14264 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
14266         * config/rs6000/spe.h: Add casts to the arguments of the following
14267         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
14268         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
14269         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
14270         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
14271         __ev_get_u16, __ev_get_s16.
14273 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
14275         * config/h8300/h8300.md (a peephole2): New.
14277 2003-02-12  Jan Hubicka  <jh@suse.cz>
14279         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
14280         (OBJS): Add callgraph.o
14281         (callgraph.o): New.
14282         * c-decl.c (expand_body_1): Break out from ...
14283         (expand_body): This one;  change calling convention
14284         (finish_function): Move some of expand_body logic here.
14285         (c_expand_deferred_function): Update call of expand_body
14286         (c_expand_stmt): Use c_expand_body_1.
14287         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
14288         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
14289         * c-tree.h (c_expand_body): Declare.
14290         * callgraph.c: New file.
14291         * flags.h (flag_unit_at_a_time): Declare.
14292         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
14293         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
14294         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
14295         * langhooks.h (struct lang_hooks_for_callgraph): New.
14296         (struct lang_hooks): Add callgraph field.
14297         * toplev.c (flag_unit_at_a_time): New.
14298         (lang_independent_options): Add flag_unit_at_a_time.
14299         (process_options): Disable unit-at-a-time mode for frontends not
14300         supporting callgraph.
14301         * tree-inline.c (typedef struct inline_data): Add "decl"
14302         (expand_call_inline): Update callgraph.
14303         (optimize_inline_calls): Set id.decl.
14304         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
14305         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
14306         cgraph_calls_p): Declare.
14307         * invoke.texi (-funit-at-a-time): Document
14309 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
14311         * config/rs6000/spe.h: Fix misc formatting.
14312         (__ev_create_ufix32_fs): Cast ev argument.
14313         (__ev_create_sfix32_fs): Same.
14314         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
14315         (__ev_get_ufix32_fs_internal): Same.
14317 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
14319         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
14320         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
14322 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
14324         * cpplib.c (do_include_common): Move warnings for
14325         #include_next and #import out to callers.  Use early-return
14326         instead of nested ifs.  Don't do check_eol here.
14327         (parse_include): Do check_eol here with the rest of the
14328         parsing stuff.
14329         (do_include_next, do_import): Now handle warnings.
14331 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14333         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
14335 2003-02-12  Jan Hubicka  <jh@suse.cz>
14337         * predict.c (estimate_probability):  Fix roundoff error.
14339 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
14341         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
14342         (two peephole2): New.
14344 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
14346         * config/h8300/h8300.md (several peephole2): Replace
14347         find_regno_note with peep2_reg_dead_p.
14349 2003-02-11  Richard Henderson  <rth@redhat.com>
14351         * gcse.c (lookup_set): Remove unused argument PAT.  Update
14352         both callers.
14354 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
14356         * diagnostic.c (real_abort): New.
14357         (diagnostic_report_diagnostic): Call real_abort on error.
14358         * diagnostic.h (diagnostic_abort_on_error): New.
14359         (struct diagnostic_context): Add abort_on_error field.
14360         * toplev.c (setup_core_dumping): New.
14361         (decode_d_option): Handle 'H' case.
14362         * doc/invoke.texi (Debugging Options): Document -dH.
14364 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
14366         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
14367         which refers to obsolete directories.
14369 2003-02-11  Richard Henderson  <rth@redhat.com>
14371         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
14373 2002-10-21  Jan Hubicka  <jh@suse.cz>
14375         * i386.c (contains_128bit_aligned_vector_p): New function.
14376         (ix86_function_arg_boundary): Properly align vector modes.
14378 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
14380         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
14381         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
14382         as a SET pattern.
14384 2003-02-11  Roger Sayle  <roger@eyesopen.com>
14386         * builtins.c:  Fix failure caused by commiting wrong patch.
14388 2003-02-11  Dale Johannesen  <dalej@apple.com>
14389         * ra-build.c (compare_and_free_webs):  Relax checking.
14390         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
14391         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
14393 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
14395         PR optimization/9651
14396         * rtlanal.c (may_trap_p): Handle FIX.
14398 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
14400         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
14401         * doc/invoke.texi: Extra alias.
14403 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
14405         * config/rs6000/host-darwin.c: Fix comment.
14407 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
14409         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
14410         predicate for mod result.
14412 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14414         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
14415         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
14416         * fixincl.x: Rebuilt.
14417         * tests/base/stdlib.h: Update.
14418         * tests/base/ctype.h: New file.
14420 2003-02-11  Jan Hubicka  <jh@suse.cz>
14422         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
14424 2003-02-11  Richard Henderson  <rth@redhat.com>
14426         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
14427         appropriated as globals.
14428         (ix86_expand_clrstr): Similarly.
14429         * config/i386/i386.md (cmpstrsi): Similarly.
14431 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
14433         * config/h8300/h8300.md (a peephole2): Add a case of 255.
14435 2003-02-11  Roger Sayle  <roger@eyesopen.com>
14437         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
14438         (pow_optab, atan2_optab): Define corresponding macros.
14439         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
14440         * genopinit.c (optabs): Implement pow_optab and atan2_optab
14441         using pow?f3 and atan2?f3 patterns.
14442         * builtins.c (expand_errno_check): New function to update errno
14443         if necessary, split out from expand_builtin_mathfn.
14444         (expand_builtin_mathfn): Use expand_errno_check.
14445         (expand_builtin_mathfn_2): New function to handle expanding binary
14446         math functions, reusing the code in expand_errno_check.
14447         (expand_builtin): Handle the pow and atan2 math built-ins,
14448         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
14449         expand_builtin_mathfn_2.
14451         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
14453 2003-02-11  Jan Hubicka  <jh@suse.cz>
14455         * combine.c (combine_simplify_rtx): Fix folding of
14456         nested float_truncates.
14458 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
14460         * config/h8300/h8300.md (a peephole2): Fix a typo.
14462 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
14464         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
14465         register number.
14467 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
14469         * config/h8300/h8300-protos.h: Add a prototype for
14470         gtuleu_operator.
14471         * config/h8300/h8300.c (gtuleu_operator): New.
14472         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
14473         * config/h8300/h8300.md (a peephole2): New.
14475 2003-02-11  Jan Hubicka  <jh@suse.cz>
14477         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
14479 2003-02-11  Jan Hubicka  <jh@suse.cz>
14481         * predict.c (choose_function_section): Choose sections correctly.
14483 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14485         * reload1.c (first_label_num): New.
14486         (reload): Index offsets_known_at and offsets_at using difference of
14487         label number and first label number.  Don't use offset pointers.
14488         (set_label_offsets, set_initial_label_offsets): Likewise.
14490 2003-02-10  Roger Sayle  <roger@eyesopen.com>
14492         * mips-tfile.c (init_file): Add missing initializers in the
14493         "#ifdef __alpha" case.
14494         (file_offset, max_file_offset): Declare as unsigned long.
14495         (write_varray): Cast to "unsigned long" in comparisons against
14496         either file_offset or max_file_offset.
14497         (write_object): Likewise.
14498         (read_seek): Likewise.
14499         (copy_object): Likewise. Declare "ifd" as int to match its use
14500         in add_ext_symbol, and avoid signed/unsigned conditional warning.
14502 2003-02-10  Nick Clifton  <nickc@redhat.com>
14503             Aldy Hernandez  <aldyh@redhat.com>
14505         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
14506         override options which have been specified on the command line.
14508 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
14510         * config/h8300/h8300.md (abssf2): New.
14511         (*abssf2_h8300): Likewise.
14512         (*abssf2_h8300hs): Likewise.
14514 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
14516         * tree.c (build_tree_list):  Fix parameter names in comment.
14518 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
14520         * config/rs6000/ppc64-fp.c: New file.
14521         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
14523 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
14525         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
14526         * bb-reorder.c (make_reorder_chain): Deleted.
14527         (make_reorder_chain_1): Deleted.
14528         (find_traces): New function.
14529         (rotate_loop): New function.
14530         (mark_bb_visited): New function.
14531         (find_traces_1_round): New function.
14532         (copy_bb): New function.
14533         (bb_to_key): New function.
14534         (better_edge_p): New function.
14535         (connect_traces): New function.
14536         (copy_bb_p): New function.
14537         (get_uncond_jump_length): New function.
14538         (reorder_basic_blocks): Use new functions (Software Trace Cache).
14539         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
14540         boundaries.
14542 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
14544         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
14546 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
14548         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
14549         (DECL_LIVE_RANGE_RTL): Remove.
14551 2003-02-10  Nick Clifton  <nickc@redhat.com>
14553         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
14554         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
14555         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
14556         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
14557         config/arm/freebsd.h, config/arm/linux-elf.h,
14558         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
14559         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
14560         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
14561         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
14562         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
14563         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
14564         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
14565         and reformat as appropriate.
14567 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
14569         * config/h8300/clzsi2.c: Remove.
14570         * config/h8300/ctzsi2.c: Likewise.
14571         * config/h8300/paritysi2.c: Likewise.
14572         * config/h8300/popcountsi2.c: Likewise.
14573         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
14574         ctzsi2, paritysi2, and popcountsi2.
14576 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
14577             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
14579         PR c/7741
14580         * c-decl.c (duplicate_decls): Discard the initializer of the
14581         new decl when the types are conflicting.
14583 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
14585         * Makefile.in (sreal.o): Added.
14586         (predict.o): Depends on sreal.h instead of real.h.
14587         * sreal.c: New file.
14588         * sreal.h: New file.
14589         * predict.c: Use sreal.c instead of real.c.
14591 2003-02-10  Nick Clifton  <nickc@redhat.com>
14593         * Contributed support for the Cirrus EP9312 "Maverick"
14594         floating point co-processor.  Written by Aldy Hernandez
14595         <aldyh@redhat.com>.
14596         (config/arm/arm.c): Add Cirrus support.
14597         (config/arm/arm.h): Likewise.
14598         (config/arm/aout.h): Likewise.
14599         (config/arm/arm.md): Likewise.
14600         (config/arm/arm-protos.h): Likewise.
14601         (config.gcc): Likewise.
14602         (doc/invoke.texi): Describe new -mcpu value and new
14603         -mcirrus-fix-invalid-insns switch,
14604         (cirrus.md): New file.
14606 2003-02-10  Jan Hubicka  <jh@suse.cz>
14608         * combine.c (combine_simplify_rtx): Simplify using
14609         (float_truncate (float x)) is (float x)
14610         (float_extend (float_extend x)) is (float_extend x).
14612 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
14614         * calls.c (try_to_integrate): Tidy stack_usage_map access.
14615         (emit_library_call_value_1): Likewise.  Formatting.
14616         (store_one_arg): Likewise.
14618 2003-02-09  Nick Clifton  <nickc@redhat.com>
14619             Aldy Hernandez  <aldyh@redhat.com>
14621         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
14622         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
14623         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
14624         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
14625         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
14626         docs.  Add range test for immediate value.
14628 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
14630         Rename spe_evxor to xorv2si3.
14631         (xorv4hi3): New.
14632         (xorv1di3): New.
14634 2003-02-10  Glen Nakamura  <glen@imodulo.com>
14636         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
14637         tag.
14639 2003-02-10  Jan Hubicka  <jh@suse.cz>
14641         * i386.c (vector_move_operand): New predicate.
14642         (ix86_expand_vector_move): Be happy about 0.
14643         * i386.h (PREDICATE_CODES): Add sse-move_operand.
14644         * i386.md (mov*_internal): Add 'C' alternative.
14646 2003-02-09  Jan Hubicka  <jh@suse.cz>
14648         * i386.md (floathi*): Deal with SSE.
14650 2003-02-09  Jan Hubicka  <jh@suse.cz>
14652         * simplify-rtx.c (simplify_unary_operation,
14653         simplify_binary_operation):  Deal with vector modes
14654         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
14656 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
14658         * toplev.c (rest_of_compilation): Recompute register usage after
14659         split_all_insns.
14661 2003-02-09  Richard Henderson  <rth@redhat.com>
14663         * libgcc-std.ver (__clztf2): New.
14664         (__ctztf2, __popcounttf2, __paritytf2): New.
14665         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
14666         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
14667         adjust code to match the different type sizes.
14668         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
14669         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
14671         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
14672         TImode; select word_mode and twice that.
14673         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
14674         select the modes from float, double, and long double.
14675         (init_optabs): Remove duplicate initializations.
14677 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
14679         * doc/install.texi: Squeeze and streamline section on
14680         testing and regression checking.
14682 2003-02-09  Jan Hubicka  <jh@suse.cz>
14684         * i386.md (ahi?v*3): Set third operand type to TImode.
14685         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
14687         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
14688         integer mode.
14690         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
14691         Change code so they are arithmetic expressions now.
14692         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
14693         simplify_ternary_operation): Deal with VEC_* expressions.
14695         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
14697 2003-02-08  Jan Hubicka  <jh@suse.cz>
14699         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
14700         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
14701         possibly got duplicated.
14703 2003-02-08  Richard Henderson  <rth@redhat.com>
14705         * config/alpha/alpha.c (override_options): Turn off explicit
14706         relocs until post-peep2 code duplication resolved.
14708 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
14710         * optabs.c (expand_unop): Widen clz properly when clz is done
14711         via libcall.
14713 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
14715         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
14716         * config/h8300/crti.asm: Likewise.
14717         * config/h8300/crtn.asm: Likewise.
14718         * config/h8300/ctzsi2.c: Likewise.
14719         * config/h8300/fixunssfsi.c: Likewise.
14720         * config/h8300/h8300-protos.h: Likewise.
14721         * config/h8300/h8300.c: Likewise.
14722         * config/h8300/h8300.h: Likewise.
14723         * config/h8300/h8300.md: Likewise.
14724         * config/h8300/paritysi2.c: Likewise.
14725         * config/h8300/popcountsi2.c: Likewise.
14726         * config/h8300/rtems.h: Likewise.
14728 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14730         * doc/invoke.texi: Documentation for my previous commit.
14731         * doc/passes.texi: Ditto.
14733 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14735         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
14736         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
14737         Declare.
14738         (DLTHE_FLAG_UPDATE_FREQ): New.
14739         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
14740         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
14741         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
14742         fix_bb_placement, fix_bb_placements, place_new_loop,
14743         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
14744         New static functions.
14745         (fix_loop_placement, can_duplicate_loop_p,
14746         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
14747         New functions.
14749         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
14750         unswitch_loops): Declare.
14751         * loop-init.c: New file.
14752         * loop-unswitch.c: New file.
14753         * Makefile.in (loop-init.o, loop-unswitch.o): New.
14754         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
14755         * toplev.c (DFI_loop2): New dump.
14756         (flag_unswitch_loops): New.
14757         (lang_independent_options): Add it.
14758         (rest_of_compilation): Call new loop optimizer.
14759         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
14761 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
14763         * config/h8300/clzsi2.c: New.
14764         * config/h8300/ctzsi2.c: Likewise.
14765         * config/h8300/paritysi2.c: Likewise.
14766         * config/h8300/popcountsi2.c: Likewise.
14767         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
14769 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
14771         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
14772         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
14773         (ctzsi2): New pattern.
14774         (ffssi2): Use clz instead of unspec.
14775         (clzdi2): Rename from cntlzd2.
14776         (ctzdi2): New pattern.
14777         (ffsdi2): Use clz instead of unspec.
14779 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
14781         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
14782         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
14783         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
14784         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
14786 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
14788         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
14790 2003-02-07  Richard Henderson  <rth@redhat.com>
14792         PR 9226
14793         * gcse.c (local_cprop_find_used_regs): New.
14794         (local_cprop_pass): Use it.
14796 2003-02-07  Fred Fish  <fnf@intrinsity.com>
14798         * mips-tfile.c (parse_def): Parenthesize assignments to fix
14799         precedence bugs.
14801 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
14803         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
14805 2003-02-07  Roger Sayle  <roger@eyesopen.com>
14807         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
14808         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
14809         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
14810         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
14811         builtin functions (and their __builtin_* variants).
14812         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
14813         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
14814         when not optimizing.
14816         * doc/extend.texi: Document new pow and atan2 builtins, and
14817         their float and long double variants.  Realphabetize builtins.
14819 2003-02-07  Jan Hubicka  <jh@suse.cz>
14821         * i386.md (sse2_nandv2di3): Fix.
14823 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
14825         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
14826         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
14827         definition.
14828         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
14829         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
14831 2003-02-07  Jan Hubicka  <jh@suse.cz>
14833         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
14835 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
14837         * cfg.c (dump_flow_info): Add back accidently deleted line.
14839 2003-02-07  Andrey Petrov <petrov@netbsd.org>
14841         * optabs.c (expand_float): Search wider integer modes first.
14843 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
14845         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
14846         based on preprocessor flag.
14848 2003-02-07  Roger Sayle  <roger@eyesopen.com>
14849             Richard Henderson  <rth@redhat.com>
14851         * gcse.c (implicit_sets): New.
14852         (compute_hash_table_work): Include them in hash table.
14853         (find_implicit_sets, fis_get_condition): New.
14854         (one_cprop_pass): Allocate and free implicit_sets; call
14855         find_implicit_sets before building hash table.
14857 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
14859         * config/t-netbsd (USER_H): Revert previous change.
14861 2003-02-07  Gabor Greif  <ggreif@lucent.com>
14863         * doc/c-tree.texi (Namespaces): Fix typo.
14865 2003-02-07  Jan Hubicka  <jh@suse.cz>
14867         * regrename.c (do_replace, find_oldest_value_reg,
14868         copyprop_hardreg_forward_1): Update register attributes.
14870 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
14872         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
14873         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
14874         variables starting with underscore.
14875         (struct unit_usage): New structure.
14876         (unit_usages, cycle_alt_unit_usages): New global variables.
14877         (check_unit_distribution_in_reserv): Remove it.
14878         (store_alt_unit_usage): New function.
14879         (check_regexp_units_distribution): Rewrite it.
14881 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14883         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
14884         target_cpu_default.
14885         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
14886         if not MASK_NO_SPACE_REGS.
14887         (output_call): Adjust return pointer, don't load new space register
14888         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
14889         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
14890         TARGET_NO_SPACE_REGS is true.
14891         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
14892         conditions.
14893         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
14894         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
14895         true.  Use bve when TARGET_64BIT is true.
14897 2003-02-06  Richard Henderson  <rth@redhat.com>
14899         * combine.c (nonzero_bits): Fix double break.
14901 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
14902             Richard Henderson <rth@redhat.com>
14904         PR c/9530
14905         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
14906         from functions that return a float to functions that don't.
14908 2003-02-06  Jan Hubicka  <jh@suse.cz>
14910         * i386.c (x86_inter_unit_moves): New variable.
14911         (ix86_secondary_memory_needed): Fix 64bit case, honor
14912         TARGET_INTER_UNIT_MOVES
14913         * i386.h (x86_inter_unit_moves): Declare.
14914         (TARGET_INTER_UNIT_MOVES): New macro.
14915         * i386.md (movsi_1): Cleanup constraints; disable
14916         when not doing inter-unit moves.
14917         (movsi_1_nointernunit): New.
14918         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
14919         (movdi_1_rex64_nointerunit): New.
14920         (mivsf_1): disable when not doing inter-unit moves.
14921         (movsf_1_nointerunit): New.
14923         * basic-block.h (inside_basic_block_p):  Declare.
14924         * cfgbuild.c (inside_basic_block_p): Make global.
14925         * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
14926         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
14927         update CFG.
14928         (fix_basic_block_boundaries, add_missing_bbs): New.
14929         (rank): Use profile.
14930         (scheudle_ebbs): Rely on CFG; update coments.
14932 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
14934         * Makefile.in (host_hook_obj): New.
14935         (OBJS): Add $(host_hook_obj).
14936         (host_default.o): New rule.
14937         * config.gcc (host_hook_obj): New, default to host-default.o.
14938         (powerpc-*-darwin*): Use host-darwin.o.
14939         (out_host_hook_obj): New.
14940         * configure: Regenerate.
14941         * configure.in: Print information about out_host_hook_obj, substitute
14942         into output files.
14943         * host-default.c: New file.
14944         * hosthooks.h: New file.
14945         * toplev.c (general_init): Call host_hooks.extra_signals.
14946         * config/rs6000/host-darwin.c: New file.
14947         * config/rs6000/x-darwin: New file.
14948         * doc/hostconfig.texi: Add documentation for new host hook.
14949         Rearrange existing documentation.
14951 2003-02-05  Roger Sayle  <roger@eyesopen.com>
14953         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
14954         with *targetm.delegitimize_address.
14955         (rtl_for_decl_location): Likewise.
14956         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
14957         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
14959         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
14960         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
14961         prototype.
14962         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
14963         i386_simplify_dwarf_addr.  Made static.  Prototyped.
14964         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
14965         i386_simplify_dwarf_addr to ix86_delegitimize_address.
14966         (ix86_find_base_term): Likewise.
14967         (maybe_get_pool_constant): Likewise.
14969         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
14970         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
14971         prototype.
14972         * config/s390/s390.c (s390_delegitimize_address): Renamed from
14973         s390_simplify_dwarf_addr.  Made static.  Prototyped.
14974         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
14976 2003-02-05  Richard Henderson  <rth@redhat.com>
14978         PR c/8602
14979         * integrate.c (output_inline_function): Reset input_filename
14980         and lineno from the decl before rest_of_compilation.
14982 2003-02-05  Richard Henderson  <rth@redhat.com>
14984         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
14985         (CTZ_DEFINED_VALUE_AT_ZERO): New.
14986         * doc/rtl.texi, doc/tm.texi: Document them.
14988         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
14989         of the value at zero properly.
14990         * fold-const.c (tree_expr_nonnegative_p): Likewise.
14991         * simplify-rtx.c (simplify_unary_operation): Likewise.
14993         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
14994         (CTZ_DEFINED_VALUE_AT_ZERO): New.
14996         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
14997         (TARGET_EXPAND_BUILTIN): Remove.
14998         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
14999         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
15000         (enum arm_builtins): Remove.
15001         * config/arm/arm.md (UNSPEC_CLZ): Remove.
15002         (clzsi2): Rename from clz; use clz instead of unspec.
15003         (ctzsi2): New.
15004         * config/arm/arm-protos.h: Update.
15006 2003-02-05  Jan Hubicka  <jh@suse.cz>
15008         * i386-protos.h (x86_emit_floatuns):  Declare.
15009         * i386.c (x86_emit_floatuns): New global function.
15010         * i386.md (floatunssisf2, floatunsdisf2,
15011         floatunsdidf2):  New patterns.
15013 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15015         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
15017 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
15019         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
15020           config/ia64/linux.h
15022 2003-02-05  Roger Sayle  <roger@eyesopen.com>
15024         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
15026 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
15028         PR optimization/8555
15029         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
15030         instead of aborting.
15032 2003-02-04  Richard Henderson  <rth@redhat.com>
15034         * config/i386/i386.md (UNSPEC_BSF): Remove.
15035         (ffssi2): Split into cmove and no_cmove insns and splitters;
15036         lose pentium float trick for now.
15037         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
15038         (ctzsi2, clzsi2, bsr): New.
15040 2003-02-04  Richard Henderson  <rth@redhat.com>
15042         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
15043         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
15044         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
15045         (ffsdi2): Use popcount instead of unspec.
15046         (popcountdi2): Rename from *popcnt.
15047         (ctzdi2, clzdi2, getf_exp_tf): New.
15049 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
15051         * genconfig.c (main): Generate CC0_P.
15052         * rtl.h (CC0_P): Remove.
15054 2003-02-04  Richard Henderson  <rth@redhat.com>
15056         * libgcc2.h, libgcc2.c (__ffsSI2): New.
15057         (__ffsDI2): Rename from __ffsdi2.
15058         * mklibgcc.in (lib2funcs): Add _ffssi2.
15060 2003-02-04  Richard Henderson  <rth@redhat.com>
15062         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
15063         rounds with a "bit table" lookup.
15065 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15067         * reload.c (find_reloads): Do not use the mode specified in the insn
15068         pattern as reload mode for address operands.  Do not generate optional
15069         reloads for operands where a mandatory reload was already pushed.
15071 2003-02-04  Richard Henderson  <rth@redhat.com>
15073         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
15074         builtins instead of inline assembly.
15076 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
15078         PR c/9376
15079         * libgcc2.c (__subvdi3): Fix typo.
15081 2003-02-04  Jan Hubicka  <jh@suse.cz>
15083         * i386.md (movti_rex64):  Fix constraint.
15085 2003-02-04  Jan Hubicka  <jh@suse.cz>
15087         * i386.md (vector push splitters):  Fix typo in resolving conflict.
15089 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
15091         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
15093 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
15095         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
15096         for recent libstdc++.  Remove formatting cruft.
15098 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
15100         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
15101         attribute even if input file name is absolute, but one of the
15102         includes is relative.
15104 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
15106         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
15107         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
15108         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
15110 2003-02-03  Richard Henderson  <rth@redhat.com>
15112         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
15113         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
15114         return type to "int".  Shuffle declarations and undef int trap.
15115         * libgcc2.h: Remove their declarations.
15116         * optabs.c (expand_unop): Force outmode to int for bitops.
15118 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
15120         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
15121         coprocessor registers before floating-point registers.
15122         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
15123         to account for a previously removed register.
15124         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
15125         Delete unused macros.
15127 2003-02-03  Jan Hubicka  <jh@suse.cz>
15129         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
15130         (mov*_internal): Fix predicates; require one of operands to not be
15131         memory.
15132         (SSE?MMX move expanders):  Fix predicates; force one of operands to
15133         register.
15134         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
15135         (movups/movupd/movdqu patterns): Force one of operands to not be
15136         memory.
15138 2003-02-03  Roger Sayle  <roger@eyesopen.com>
15140         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
15141         takes a single rtx and returns it unmodified.
15142         * hooks.h (hook_rtx_rtx_identity): Prototype here.
15143         * target.h (struct gcc_target): Add "delegitimize_address"
15144         field to target structure.
15145         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
15146         for delegitimize_address target using hook_rtx_rtx_identity.
15147         (TARGET_INITIALIZER): Initialize delegitimize_address field
15148         using TARGET_DELEGITIMIZE_ADDRESS macro.
15149         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
15150         extensions of constant pool references.  Use delegitimize_address
15151         to undo the obfuscation of "-fpic".
15152         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
15154         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
15155         i386_simplify_dwarf_addr.
15156         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
15157         (maybe_get_pool_constant): Likewise.
15159 2003-02-03  Jan Hubicka  <jh@suse.cz>
15161         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
15163 2003-02-03  Jan Hubicka  <jh@suse.cz>
15165         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
15167 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15169         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
15170         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
15172 2003-02-02  Andreas Schwab  <schwab@suse.de>
15174         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
15176 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
15178         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
15179         (epilogue_insns): Likewise.
15181 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15183         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
15185 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15187         * pa-protos.h (attr_length_millicode_call): Remove second argument.
15188         (attr_length_indirect_call, attr_length_indirect_call,
15189         attr_length_save_restore_dltp): New prototypes.
15190         * pa.c (attr_length_millicode_call): Remove second argument.  Check
15191         INSN_ADDRESSES_SET_P in distance calculation.
15192         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
15193         INSN_ADDRESSES.
15194         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
15195         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
15196         Call attr_length_call directly.
15197         (attr_length_indirect_call, output_indirect_call,
15198         attr_length_save_restore_dltp): New functions.
15199         * pa.md (attr_length_millicode_call): Drop second argument from all
15200         patterns.
15201         (return_internal_pic): Delete.
15202         (return_external_pic): Remove use of PIC register and pic operand and
15203         flag checks.
15204         (epilogue): Use return_internal for both normal and pic code.
15205         (call, call_value): Emit new 32-bit pic patterns for symref and
15206         indirect calls.  Remove uses for arg pointer and pic register.
15207         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
15208         call_reg_pic_post_reload, call_val_symref_pic,
15209         call_val_symref_pic_post_reload, call_val_reg_pic,
15210         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
15211         Implement define_split and define_peephole2 patterns for pre reload
15212         patterns.
15213         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
15214         call_value_internal_reg_64bit): Shorten names.
15215         (all call patterns): Explicitly indicate registers used and clobbered.
15216         Use attr_length_indirect_call and attr_length_save_restore_dltp for
15217         attribute length calculation.  Move code generation for indirect calls
15218         to output_indirect_call.
15219         (sibcall, sibcall_value): Don't restore PIC register.
15220         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
15221         register retore.
15223 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15225         * doc/install.texi (Testing): Simplify and compress instructions
15226         concerning Dejagnu.
15228 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15230         * collect2.c (pexecute_pid): Rename to pid.
15231         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
15232         pid.
15234 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
15236         * doc/extend.texi (Function Attributes): Remove documentation
15237         for PowerPC Windows NT function attributes..
15239 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
15241         * dwarf2out.c (gen_type_die): Check for typedefs before calling
15242         for TYPE_MAIN_VARIANT.
15244 2003-02-01  Richard Henderson  <rth@redhat.com>
15246         * libgcc2.c: Include auto-host.h.
15247         (ATTRIBUTE_HIDDEN): New.
15248         (__clz_tab): Don't declare here for clz and ctz.
15249         (__clzsi2, __clzdi2): Use count_leading_zeros.
15250         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
15251         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
15252         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
15253         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
15255 2003-02-01  Richard Henderson  <rth@redhat.com>
15257         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
15258         to the conditional.
15259         (ashlsi3_1_zext splitter): Likewise.
15261 2003-02-01  Richard Henderson  <rth@redhat.com>
15263         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
15264         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
15265         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
15266         return type to Wtype.
15268         * libgcc-std.ver (GCC_3.4): Fix inheritance.
15270         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
15271         expander input constraint.
15273 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
15275         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
15276         OTI_parity.
15277         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
15278         * optabs.c (widen_clz, expand_parity): New.
15279         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
15280         for libcalls to clz, ctz, popcount, and parity.
15281         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
15282         parity_optab, and set up libfunc handlers.
15283         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
15284         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
15285         __popcount_tab): New.
15286         * libgcc2.h: Declare them.
15287         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
15288         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
15289         and parity_optab.
15290         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
15291         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
15292         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
15293         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
15294         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
15295         BUILT_IN_PARITYLL): New.
15296         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
15297         and add optab argument.
15298         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
15299         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
15300         * expr.c (expand_expr): Handle them.
15301         * fold-const.c (tree_expr_nonnegative_p): Likewise.
15302         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
15303         * reload1.c (eliminate_regs): Handle them.
15304         (elimination_effects): Likewise.
15305         * function.c (instantiate_virtual_regs_1): Likewise
15306         * genattrtab.c (check_attr_value): Likewise.
15307         * simplify-rtx.c (simplify_unary_operation): Likewise.
15308         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
15309         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
15310         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
15311         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
15312         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
15313         __builtin_arm_clz.
15314         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
15315         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
15316         * doc/extend.texi (Other Builtins): Add new builtins.
15317         * doc/md.texi (Standard Names): Add new patterns.
15319 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
15321         * reload.c: Revert 2003-01-31 change.
15323 2003-02-01  Jan Hubicka  <jh@suse.cz>
15325         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
15327 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
15329         * flags.h (flag_volatile): Remove declaration.
15330         (flag_volatile_global, flag_volatile_static): Likewise.
15331         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
15332         * toplev.c (flag_volatile): Remove definition.
15333         (flag_volatile_global, flag_volatile_static): Likewise.
15334         (f_options): Remove corresponding entries here.
15335         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
15336         or flag_volatile_static.
15337         * doc/invoke.texi: Remove documentation of -fvolatile,
15338         -fvolatile-global and -fvolatile-static.
15340 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15342         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
15343         updating of total_code_bytes from prologue to epilogue.
15345 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
15347         * reload.c (find_reloads): Do not use the mode specified in the insn
15348         pattern as reload mode for address operands.  Do not generate optional
15349         reloads for operands where a mandatory reload was already pushed.
15350         Generate optional reloads only in the final pass though find_reloads.
15351         (have_replacement_p): New function.
15353 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15355         * doc/install.texi (Testing): Remove a reference to our obsolete
15356         /testresults web pages and strip redundant information concerning
15357         test results.
15358         (Binaries): Refer to Microsoft Windows instead of listing all
15359         possible variants.
15361 2003-02-01  Jan Hubicka  <jh@suse.cz>
15363         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
15364         RTL chain.
15366         * combine.c (simplify_set): Reverse order of ragumetns to
15367         REG_CANNOT_CHANGE_MODE_P
15368         * df.c (df_def_record_1): Likewise.
15369         * recog.c (register_operand): Likewise.
15370         * simplify-rtx.c (simplify_subreg): Likewise.
15371         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
15372         CANNOT_CHANGE_MODE_CLASS.
15373         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
15374         Likewise.
15375         * reload.c (push_reload): Likewise.
15376         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
15377         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
15378         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
15379         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
15380         * mips.c (mips_cannot_change_mode_class): Update.
15381         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
15382         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
15383         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
15384         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
15385         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
15386         * sh.c (sh_cannot_change_mode_class): Update.
15387         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
15388         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
15390 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
15392         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
15393         change to LINK_COMMAND_SPEC in gcc.c.
15395 2003-01-31  Jan Hubicka  <jh@suse.cz>
15397         PR c/9506
15398         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
15400 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15402         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
15403         duplicated code.
15405 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
15407         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
15408         (BINFO_ELTS): New #define.
15409         * stor-layout.c (finalize_record_size): Don't set them.
15410         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
15411         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
15412         (BINFO_LANG_ELTS): New #define.
15413         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
15414         * java/class.c (make_class): Use BINFO_ELTS.
15415         (set_super_info): Likewse.
15416         (add_interface_do): Likewise.
15417         * objc/objc-act.c (start_class): Use BINFO_ELTS.
15419 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
15421         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
15422         (times): Don't ever declare if not HAVE_TIMES.
15423         (clock): Don't ever declare if not HAVE_CLOCK.
15425 2003-01-30  Richard Henderson  <rth@redhat.com>
15427         * flow.c (update_life_info): Zap life info after cleanup_cfg.
15428         (regno_uninitialized): Use correct live at function entry set.
15429         (regno_clobbered_at_setjmp): Likewise.
15431         * expr.c (store_expr): Promote all MEM intermediates to regs.
15433 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
15435         * config/arm/arm.c: Fix comment typos.
15436         * config/arm/arm.h: Likewise.
15437         * config/arm/netbsd-elf.h: Likewise.
15438         * config/arm/netbsd.h: Likewise.
15440 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
15442         * gengtype.c (struct walk_type_data): Add needs_cast_p.
15443         (walk_type): Set needs_cast_p in walk_type_data.
15444         (write_types_process_field): Supply casts when required to suppress
15445         warnings.
15446         (write_root): Cast gt_pch_n_S to suppress warning.
15447         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
15448         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
15449         when they might exist.
15450         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
15451         insn-conditions.o, and rs6000.o.
15453 2003-01-30  Richard Henderson  <rth@redhat.com>
15455         * ggc-page.c (G.context_depth_allocations): New.
15456         (G.context_depth_collections): New.
15457         (alloc_page): Set G.context_depth_allocations.
15458         (ggc_collect): Set G.context_depth_collections.
15459         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
15460         (ggc_pop_context): Early exit for no allocations or collections.
15462 2003-01-30  Richard Henderson  <rth@redhat.com>
15464         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
15466 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
15468         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
15469         size, the link register is always saved if any other register is
15470         saved.
15472 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
15474         * config/h8300/h8300-protos.h: Update the prototype for
15475         compute_plussi_cc.
15476         (cpp_reader): Declare before it is used.
15477         * config/h8300/h8300.c (compute_plussi_cc): Change the return
15478         type to int.
15479         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
15480         see an unknown H8 variant.
15482 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
15484         PR target/9316
15485         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
15486         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
15487         * config/rs6000/t-rtems: New file. multilib variants to match OS.
15488         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
15489         rs6000/t-ppcgas so we get the desired multilibs.
15491 2003-01-30  Nick Clifton  <nickc@redhat.com>
15493         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
15494         when popping saved IP register off the stack.
15496 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
15498         * config/rs6000/aix43.h: Fix comment typos.
15499         * config/rs6000/aix51.h: Likewise.
15500         * config/rs6000/aix52.h: Likewise.
15501         * config/rs6000/altivec.h: Likewise.
15502         * config/rs6000/rs6000.c: Likewise.
15503         * config/rs6000/rs6000.h: Likewise.
15504         * config/rs6000/rs6000.md: Likewise.
15505         * config/rs6000/spe.md: Likewise.
15507 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
15509         * c-common.c (builtin_define_float_constants): Define
15510         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
15512 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
15514         * config/sh/lib1funcs.asm: Fix comment typos.
15515         * config/sh/linux.h: Likewise.
15516         * config/sh/sh.c: Likewise.
15517         * config/sh/sh.md: Likewise.
15519 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
15521         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
15523 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
15525         * config/fp-bit.h (__make_dp): Declare if TMODES.
15527 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
15529         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
15530         general_operand_src and general_operand_dst.
15532 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
15534         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
15535         Return true for variable sized types.
15536         (rs6000_va_arg): Handle variable sized types passed by reference
15537         on non-SVR4 ABI.
15539 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
15541         * arm.c (arm_legtimize_address): New function.
15542         * arm-protos.h (arm_legtimize_address): Add prototype.
15543         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
15544         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
15545         do ... while (0)
15547 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
15549         PR bootstrap/9296
15550         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
15551         depended on it being defined until now.
15553 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
15555         PR target/9295
15556         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
15557         RTEMS code knows which C++ initialization style the toolset
15558         configuration is using.
15560 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
15562         PR bootstrap/9293
15563         * config/m68k/t-crtstuff: Replace spaces with tabs, add
15564          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
15566 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
15568         PR bootstrap/9292
15569         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
15570         RTEMS threads.
15571         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
15573 2003-01-29  Nick Clifton  <nickc@redhat.com>
15575         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
15576         not $(srcdir).
15578 2003-01-29  Andrew Haley  <aph@redhat.com>
15580         * tree-inline.c (walk_tree): Add CHAR_TYPE.
15582 2003-01-29  Jan Hubicka  <jh@suse.cz>
15584         * i386.md (subdi3_carry_rex64): Fix typo.
15586 2003-01-28  Stan Shebs  <shebs@apple.com>
15588         * coretypes.h (cpp_reader): Forward declare struct.
15589         * c-pragma.h (cpp_reader): Remove forward declaration.
15590         * hashtable.h (cpp_reader): Likewise.
15591         * scan.h (cpp_reader): Likewise.
15592         * tree.h (cpp_reader): Likewise.
15593         * config/darwin-protos.h (cpp_reader): Likewise.
15594         * config/arm/arm-protos.h (cpp_reader): Likewise.
15595         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
15596         struct cpp_reader in prototypes.
15598 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
15600         * doc/install.texi: Add documentation for installation into
15601         tooldirs and with DESTDIR.
15603 2003-01-28  Richard Henderson  <rth@redhat.com>
15605         * config.gcc (ia64*-*-aix*): Remove.
15606         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
15607         * config/ia64/unwind-aix.c: Remove file.
15609 2003-01-28  Andreas Schwab  <schwab@suse.de>
15611         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
15612         register.
15613         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
15614         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
15615         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
15616         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
15617         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
15618         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
15619         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
15621 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
15623         * combine.c (nonzero_bits): Fix check for negative divide operands.
15625 2003-01-28  Richard Henderson  <rth@redhat.com>
15627         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
15628         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
15630 2003-01-28  Richard Henderson  <rth@redhat.com>
15632         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
15634         * config/cris/cris.c (cris_address_cost): Make static.
15635         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
15636         * config/cris/cris.h (ADDRESS_COST): Remove.
15637         * config/cris/cris-protos.h: Update.
15639 2003-01-23  Mike Stump  <mrs@apple.com>
15641         * regclass.c (init_reg_autoinc): New function.
15642         (regclass): Move initialization of forbidden_inc_dec_class from
15643         here...
15644         (init_regs): to here.  Avoids reinitialization for each function,
15645         saving compilation time.
15647 2003-01-28  Jason Merrill  <jason@redhat.com>
15649         * cpplib.h (struct cpp_options): Add warn_deprecated field.
15650         * cppinit.c (cpp_create_reader): Turn it on by default.
15651         * c-opts.c (c_common_decode_option): Set it.
15652         * cpplib.c (do_pragma_once): Only complain about #pragma once
15653         if warn_deprecated is set.
15655 2003-01-28  Dale Johannesen  <dalej@apple.com>
15657         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
15658         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
15659         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
15661 2003-01-28  Richard Henderson  <rth@redhat.com>
15663         * target.h (targetm.address_cost): New.
15664         * target-def.h (TARGET_ADDRESS_COST): New.
15665         (TARGET_RTX_COSTS): Uncomment.  Oops.
15666         * cse.c (address_cost): Use new target hook.
15667         (default_address_cost): New.
15668         * output.h (default_address_cost): Declare.
15669         * hooks.c (hook_int_rtx_0): New.
15670         * hooks.h (hook_int_rtx_0): Declare.
15671         * loop.c (combine_givs_p): Remove if 0 code.
15672         * system.h (ADDRESS_COST): Poison.
15674         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
15675         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
15676         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
15677         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
15678         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
15679         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
15680         config/xtensa/xtensa.c, config/xtensa/xtensa.h
15681         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
15682         (ADDRESS_COST): Remove.
15684         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
15685         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
15686         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
15687         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
15688         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
15689         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
15690         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
15691         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
15692         config/mips/mips.c, config/mips/mips.h,
15693         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
15694         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
15695         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
15696         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
15697         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
15698         config/vax/vax.c, config/vax/vax.h
15699         (foo_address_cost): Make static.
15700         (TARGET_ADDRESS_COST): New.
15701         (ADDRESS_COST): Remove.
15703         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
15704         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
15705         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
15706         config/stormy16/stormy16.h
15707         (ADDRESS_COST): Move code ...
15708         (foo_address_cost): ... here.
15709         (TARGET_ADDRESS_COST): New.
15711         * config/m32r/m32r.c (m32r_address_cost): Remove.
15712         * config/m32r/m32r-protos.h: Update.
15714         * config/mmix/mmix.c (mmix_address_cost): Remove.
15715         * config/mmix/mmix-protos.h: Update.
15717         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
15718         mn10300_address_cost; move unsig allocation ...
15719         (mn10300_address_cost): ... here.
15720         (TARGET_ADDRESS_COST): New.
15721         * config/mn10300/mn10300-protos.h: Update.
15722         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
15724         * doc/tm.texi: Update.
15726 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
15728         * haifa-sched.c (schedule_insn): Return necessary cycle advance
15729         after issuing the insn.
15730         (rank_for_schedule): Make a insn with /S the highest priority
15731         insn.
15732         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
15733         (choose_ready): Check SCHED_GROUP_P.
15734         (schedule_block): Advance cycle after issuing insn if it is
15735         necessary.  Don't reorder insns if there is an insn with /S.
15736         (set_priorities): Ignore schedule groups.
15738         * sched-deps.c (remove_dependence, group_leader): Remove the
15739         functions.
15740         (add_dependence): Ignore schedule groups.
15741         (set_sched_group_p): Don't make copy of dependencies from previous
15742         insn of the schedule group.  Add anti-dependency to the previous
15743         insn of the schedule group.
15744         (compute_forward_dependences): Ignore schedule groups.
15746         * sched-ebb.c (init_ready_list): Ignore schedule groups.
15748         * sched-rgn.c (init_ready_list): Ditto.
15749         (can_schedule_ready_p): Ditto.
15751 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
15753         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
15754         register to another one.
15756 2003-01-28  Richard Henderson  <rth@redhat.com>
15758         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
15760 2003-01-28  Roger Sayle  <roger@eyesopen.com>
15762         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
15764 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
15766         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
15767         class contains a floating-point register, return the size of the
15768         mode in half words.
15770 2003-01-28  Jan Hubicka  <jh@suse.cz>
15772         * i386.c (ix86_carry_flag_operator):  New predicate.
15773         (fcmov_operator): Fix whitespace.
15774         (ix86_expand_carry_flag_compare):  Deal with floating point.
15775         (ix86_expand_int_movcc): Deal with fp; update insn expansion
15776         (ix86_expand_int_addcc): Likewise.
15777         (ix86_expand_strlensi_unroll_1): likewsie.
15778         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
15779         * i386.md (add?i_carry_rex64): Use new predicate.
15780         (sub?i3_carry_rex64): Likewise.
15781         (x86_mov?icc_0_m1*): Likewise.
15783 2003-01-28  Andreas Schwab  <schwab@suse.de>
15785         * cfgloopmanip.c (create_preheader): Initialize src to avoid
15786         warning.
15788         * expmed.c (emit_store_flag): Fix cast to avoid sign
15789         comparison warning.
15791         * combine.c (force_to_mode): Add cast to fix warning when
15792         STORE_FLAG_VALUE is negative.
15794 2003-01-27  Richard Henderson  <rth@redhat.com>
15796         * Makefile.in (cse.o): Depend on TARGET_H.
15797         * cse.c (rtx_cost): Use targetm.rtx_costs.
15798         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
15799         * doc/tm.texi: Update.
15801         * target.h (targetm.rtx_costs): New.
15802         * target-def.h (TARGET_RTX_COSTS): New.
15803         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
15804         * hooks.h: Update.
15806         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
15807         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
15808         * config/alpha/alpha.h (PROCESSOR_MAX): New.
15809         (CONST_COSTS, RTX_COSTS): Remove.
15811         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
15812         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
15813         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
15814         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
15815         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
15816         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
15817         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
15818         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
15819         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
15820         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
15821         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
15822         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
15823         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
15824         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
15825         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
15826         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
15827         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
15828         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
15829         config/v850/v850.c, config/v850/v850.h,
15830         config/xtensa/xtensa.c, config/xtensa/xtensa.h
15831         (CONST_COSTS, RTX_COSTS): Move code ...
15832         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
15834         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
15835         (arm_rtx_costs, TARGET_RTX_COSTS): New.
15836         * config/arm/arm-protos.h: Update.
15837         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
15839         * config/avr/avr.h (CONST_COSTS): Move code ...
15840         * config/avr/avr.c (avr_rtx_costs): ... here.
15841         (default_rtx_costs): Make static.
15842         * config/avr/avr-protos.h: Update.
15844         * config/h8300/h8300.c (const_costs): Make static.
15845         (h8300_and_costs, h8300_shift_costs): Likewise.
15846         * config/h8300/h8300-protos.h: Update.
15848         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
15849         (CONST_COSTS): Move code ...
15850         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
15851         default_rtx_costs; update for signature change.
15852         * config/ip2k/ip2k-protos.h: Update.
15854         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
15855         (CONST_COSTS): Move code ...
15856         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
15857         (TARGET_RTX_COSTS): New.
15858         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
15859         * config/m68hc11/m68hc11-protos.h: Update.
15861         * config/m68k/m68k.c (const_int_cost): Make static.
15862         * config/m68k/m68k-protos.h: Update.
15864         * config/mcore/mcore.c (mcore_const_costs): Make static.
15865         (mcore_and_cost, mcore_ior_cost): Likewise.
15866         * config/mcore/mcore-protos.h: Update.
15868         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
15869         (mmix_rtx_cost_recalculated): Remove.
15870         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
15871         * config/mmix/mmix-protos.h: Update.
15873         * config/sh/sh.c (shiftcosts): Make static.
15874         (addsubcosts, andcosts, multcosts): Likewise.
15875         * config/sh/sh-protos.h: Update.
15877         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
15878         (sparc_rtx_costs): Make static; update for change in signature.
15879         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
15880         * config/sparc/sparc-protos.h: Update.
15882         * config/v850/v850.c (const_costs): Make static.
15883         * config/v850/v850-protos.h: Update.
15885         * config/vax/vax.h (RTX_COSTS): Remove.
15886         (CONST_COSTS): Move code ...
15887         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
15888         from vax_rtx_cost.
15889         (vax_rtx_costs, TARGET_RTX_COSTS): New.
15891 2003-01-27  Richard Henderson  <rth@redhat.com>
15893         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
15894         * config/vax/vax-protos.h: Update.  Really.
15896 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
15898         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
15899         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
15900         zero if no hardware floating point.
15901         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
15902         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
15903         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
15904         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
15905         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
15906         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
15907         even FP registers on N32 and N64.
15908         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
15909         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
15910         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
15911         even-register-like alignment to 128-bit arguments.
15912         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
15913         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
15914         on N32 or N64.
15915         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
15916         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
15917         (TPBIT): Set to tp-bit.c.
15918         (tp-bit.c): Create out of fp-bit.c.
15920 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15922         * c-parse.in: Remove '%expect 32' directive in objc mode.
15924 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
15926         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
15927         (LIBGCOV): New variable.
15928         (libgcc.mk): Add LIBGCOV.
15929         (LIBGCC_DEPS): Add libgcov.c.
15930         (libgcov.a): New target.
15931         (clean): Remove libgcov.a.
15932         (install-libgcc): Do libgcov too.
15933         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
15934         with libgcov.a.
15935         * libgcc2.c (L_gcov): Move into ...
15936         * libgcov.c: ... here. New file.
15937         * mklibgcc.in: Add libgcov rules.
15938         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
15940         * doc/invoke.texi (profile-arcs, test-coverage): Update and
15941         clarify.
15943         * profile.c (index_counts_file): Remove duplicate check for open file.
15945 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
15947         * gcc/doc/invoke.texi (Optimization Options): Group together
15948         optional and experimental flags.  Move trapv and bounds-check
15949         out of this section.  Group floating point flags together.
15950         (Code Gen Options): Move trapv and bounds-check to here.
15952 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
15954         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
15956 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
15958         PR optimization/9090
15959         * function.c (purge_addressof_1): After pushing an addressed register
15960         onto the stack, simplify the result.
15962 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15964         * doc/extend.texi: Fix typo.
15966 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15968         * doc/cppopts.texi: Fix typo.
15969         * doc/objc.texi: Likewise.
15970         * doc/passes.texi: Likewise.
15972 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
15974         * real.c (ibm_extended_format): Add 53 to minimum exponent.
15975         (encode_ibm_extended): Adjust.
15977 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
15979         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
15980         timevar_id enumerations.
15982 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
15984         * combine.c: Fix formatting.
15986 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
15988         * doc/gccint.texi: Update the copyright.
15990 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
15992         * doc/cpp.texi: Fix typos.
15993         * doc/extend.texi: Likewise.
15994         * doc/gty.texi: Likewise.
15995         * doc/install.texi: Likewise.
15996         * doc/passes.texi: Likewise.
15997         * doc/rtl.texi: Likewise.
15998         * doc/tm.texi: Likewise.
16000 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
16002         * config/ia64/fde-glibc.c: Fix comment typos.
16003         * config/ia64/hpux.h: Likewise.
16004         * config/ia64/ia64.c: Likewise.
16005         * config/ia64/ia64.h: Likewise.
16006         * config/ia64/unwind-ia64.c: Likewise.
16008 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
16010         * config/i386/i386-modes.def: Fix comment typos.
16011         * config/i386/i386.c: Likewise.
16012         * config/i386/i386.md: Likewise.
16014 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
16016         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
16017         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
16018         ASM_FINISH_DECLARE_OBJECT before defining it.
16019         * toplev.c (rest_of_decl_compilation):  Don't define
16020         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
16021         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
16022         parameters for DWARF2 targets because they _are_ used.
16024 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
16026         * fp-bit.h: Define macros for TFmode floating-point constants
16027         in IBM-extended TFmode types.
16028         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
16029         widths.
16030         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
16031         TFmode type.
16033         * config/fp-bit.h: Define macros for TFmode floating-point
16034         constants in IEEE quad TFmode type.  Declare functions according
16035         to L_ macros.
16036         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
16037         (TFtype, TItype, UTItype): Define if TMODES is defined.
16038         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
16039         (F_T_BITOFF, D_T_BITOFF): Define.
16040         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
16041         guaranteed to be wide enough.
16042         * config/fp-bit.c: Check for L_ macros for tf functions.
16043         (__thenan_tf): New.
16044         (nan): Adjust.
16045         (pack_d, unpack_d): Support IEEE 854 quad type.
16046         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
16047         from FRAC_NBITS, FRAC_BITS and NGARDS.
16048         (usi_to_float): Cast constants to be shifted to fractype
16049         instead of assuming long long is wide enough.
16050         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
16052 2003-01-26  Andreas Jaeger  <aj@suse.de>
16054         * df.c: Remove prototype of unused function df_regno_rtl_debug.
16056 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
16058         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
16059         (DBBIT_FUNCS): Added _df_to_tf.
16060         (TPBIT_FUNCS): New.
16061         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
16062         (LIBGCC_DEPS): Added TPBIT.
16063         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
16065         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
16066         been able to move the result to target.
16068         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
16069         for the appropriate mode.
16071         * calls.c (emit_library_call_value_1): Handle return values
16072         in a PARALLEL.
16074         * rtl.c (get_mode_alignment): Moved to...
16075         * stor-layout.c: ... here.
16077         * print-rtl.c (print_rtx): Don't print MEM details in
16078         GENERATOR_FILEs.
16080 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
16082         * df.h: Update comments, tidy formatting.
16083         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
16084         REVERSE, UNION, INTERSECTION.  All uses updated.
16085         (OLD_DF_INTERFACE): Remove.
16086         (struct insn_info): Remove commented out insn field.
16087         * df.c: Update comments, tidy formatting.
16088         (df_def_table_realloc): Remove.
16091 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
16093         * calls.c (save_fixed_argument_area): Tidy.
16094         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
16095         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
16096         call chain loop at 1 if !try_tail_call.  Formatting.
16097         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
16098         Use save_fixed_argument_area and restore_fixed_argument_area.
16100 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16102         * df.c (df_uses_record): Handle CC0.
16104 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
16106         * reload.c (maybe_memory_address_p): New function.
16107         (find_reloads_address): Use it instead of memory_address_p.
16109 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
16111         * final.c (shorten_branches): Align the address of code label
16112         when computing initial lengths and addresses.
16114 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
16116         * config/m68hc11/m68hc11.md: Fix a comment typo.
16118 2003-01-25  Andreas Jaeger  <aj@suse.de>
16120         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
16121         TARGET_MACHO.
16123 2003-01-25  Roger Sayle  <roger@eyesopen.com>
16125         * gcse.c (bypass_last_basic_block): New global variable.
16126         (bypass_block):  Use redirect_edge_and_branch_force to redirect
16127         fall-through edges.  Use bypass_last_basic_block to determine
16128         which blocks have valid PRE information.
16129         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
16131 2003-01-25  Jan Hubicka  <jh@suse.cz>
16133         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
16135 2003-01-25  Jan Hubicka  <jh@suse.cz>
16136                               Eric Botcazou <ebotcazou@libertysurf.fr>
16137         PR opt/8492
16138         * gcse.c (one_cprop_pass): Delete unreachable blocks.
16140 2003-01-25  Richard Henderson  <rth@redhat.com>
16142         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
16143         from ia64_aix_select_rtx_section.
16144         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
16145         instead of saving and restoring flag_pic.
16146         (ia64_rwreloc_unique_section): Similarly.
16147         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
16148         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
16149         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
16150         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
16152 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
16154         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
16155         comment.
16157 2003-01-25  Richard Henderson  <rth@redhat.com>
16159         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
16161 2003-01-25  Kelley Cook <kelleycook@comcast.net>
16163         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
16165 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
16167         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
16168         type for bitmaps.  Use unsigned long.
16169         (nBITMAP_WORD_BITS): New macro.
16170         (BITMAP_WORD_BITS): New macro.
16171         (rest of file): Use it.
16172         * bitmap.c: Use it.
16174 2003-01-25  Richard Henderson  <rth@redhat.com>
16176         2002-02-19  Robert Lipe  <robertlipe@usa.net>
16177         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
16179 2003-01-25  Roger Sayle  <roger@eyesopen.com>
16181         * builtins.c (purge_builtin_constant_p): Scan insn stream
16182         sequentially rather than by basic block.
16183         * function.c (purge_addressof): Simplify test with INSN_P.
16185 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
16187         * combine.c (simplify_comparison, case AND): Remove a redundant test.
16189 2003-01-25  Roger Sayle  <roger@eyesopen.com>
16191         * function.h (struct function): New field calls_constant_p.
16192         (current_function_calls_constant_p): New macro for above.
16193         * function.c (prepare_function_start): Initialize calls_eh_return
16194         and calls_constant_p.
16195         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
16196         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
16197         when the current_function_calls_constant_p.
16198         * integrate.c (expand_inline_function): Set calls_constant_p if
16199         the function being inlined has calls_constant_p set.
16201 2003-01-25  Roger Sayle  <roger@eyesopen.com>
16203         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
16204         optimizing, even if flag_gcse is true.
16205         * toplev.c (rest_of_compilation): purge_builtin_constant_p
16206         only needs to be called when "optimize > 0 && flag_gcse".
16208 2003-01-25  Roger Sayle  <roger@eyesopen.com>
16210         * stmt.c (emit_case_bit_tests): New routine to implement suitable
16211         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
16212         (case_bit_test_cmp): New comparison function for "qsort" to order
16213         case_bit_tests by decreasing number of destination nodes.
16214         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
16215         (expand_end_case_type): Use emit_case_bit_tests to implement
16216         suitable switch statments.
16217         (CASE_USE_BIT_TESTS): New target macro to disable the above.
16218         * Makefile.in (stmt.o): Add dependency on optab.h.
16219         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
16221 2003-01-23  Andreas Schwab  <schwab@suse.de>
16223         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
16224         __do_global_ctors_aux hidden global and don't put it in
16225         .init_array.
16226         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
16227         instead so that it comes first.
16229 2003-01-25  Jan Hubicka  <jh@suse.cz>
16231         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
16232         subreg is read/modify.
16234 2003-01-25  Jan Hubicka  <jh@suse.cz>
16236         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
16237         do libcall for large blocks.
16238         * i386.md (comi patterns): Set type to ssecomi.
16239         (sse2_unpck?pd): Fix mode of vec_select.
16241         * cse.c: Include except.h
16242         (cse_set_around_loop):  Do not create new basic blocks.
16243         * Makefile.in (cse.o): Add dependnecy on except.h
16245 2003-01-25  Jan Hubicka  <jh@suse.cz>
16247         * builtins.c (fold_trunc_transparent_mathfn): New function.
16248         (fold_builtin): Use it.
16249         * convert.c (convert_to_real): Re-enable code to convert
16250         math functions; add support for floor familly functions.
16252 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16254         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
16255         dependencies on coretypes.h and $(TM_H).
16257 2003-01-25  Jan Hubicka  <jh@suse.cz>
16259         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
16261 2003-01-24  Stuart Hastings  <stuart@apple.com>
16263         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
16265 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16267         * config/c4x/c4x.md (UNSPEC_BU): New constants.
16268         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
16269         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
16270         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
16271         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
16272         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
16273         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
16274         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
16276 2003-01-24  Jan Hubicka  <jh@suse.cz>
16278         * emit-rtl.c (reg_attrs_htab): New static variable.
16279         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
16280         functions.
16281         (reg_rtx): Do not maintain regno_decl.
16282         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
16283         set_mem_attrs_from_reg): New global function.
16284         (init_emit): Do not initialize regno_decl.
16285         (init_emit_once): initialize reg_attrs_htab.
16286         * final.c (alter_subreg): Do not replace REG by SUBREG.
16287         (gen_mem_expr_from_op): Improve output.
16288         (output_asm_operands): Likewise.
16289         * function.c (assign_params): Do not set REGNO_DECL.
16290         * function.h (struct function): Kill regno_decl.
16291         (REGNO_DECL): Kill.
16292         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
16293         * print_rtl.c (print_rtx): Output REG information.
16294         * regclass.c (reg_scan_mark_refs): Update attrs.
16295         * reload1.c (alter_reg): Likewise.
16296         * simplify_rtx.c (simplify_subreg): Likewise.
16297         * stmt.c (expand_decl): Likewise.
16298         * rtl.def (REG): Add new field.
16299         * rtl.h (struct reg_attrs): New.
16300         (rtunion_def): At rtreg.
16301         (X0MEMATTR): Add checking.
16302         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
16303         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
16304         Declare.
16305         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
16307 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
16309         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
16310         (xtensa_emit_call, print_operand): Fix printf format strings
16311         to avoid compile warnings.
16312         (xtensa_function_prologue, xtensa_function_epilogue): Change type
16313         of "size" argument to HOST_WIDE_INT to fix compile warnings.
16314         * config/xtensa/xtensa-protos.h
16315         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
16317 2003-01-24  Jan Hubicka  <jh@suse.cz>
16319         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
16320         (implicit_built_in_decls): New global array.
16321         (mathfn_built_in): New global function.
16322         (fold_trunc_transparent_mathfn): New static function
16323         (expand_builtin_strstr, expand_bultin_strchr,
16324         expand_builtin_strpbrk, expand_builtin_strcpy,
16325         expand_builtin_strncpy, expand_bultin_strcmp,
16326         expand_bultin_strncat, expand_builtin_fputs): Use
16327         implicint_built_in_decls.
16328         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
16329         * builtins.def: Fix comments.
16330         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
16331         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
16332         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
16333         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
16334         (DEF_C99_C90RES_BULTIN): New.
16335         (*f, *l builtins): Update.
16336         * c-common.c (DEF_BUILTIN): Initialize implicit array.
16337         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
16338         * convert.c (strip_float_extensions): New global function.
16339         * tree.h (DEF_BUILTIN): Accept 10 arguments.
16340         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
16341         Declare.
16342         * java/builtins.c (define_builtin): Handle implicit.
16343         (DEF_BUILTIN): Update.
16344         * tm.texi (TARGET_C99_FUNCTIONS): Document.
16345         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
16346         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
16347         when using glibc2.
16349 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
16351         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
16352         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
16353         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
16354         * config/xtensa/crti.asm: New file.
16355         * config/xtensa/crtn.asm: New file.
16356         * config/xtensa/t-elf: New file.
16357         * config/xtensa/t-linux: New file.
16358         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
16359         Move various CFLAGS settings to new t-elf file.
16361 2003-01-24  Richard Henderson  <rth@redhat.com>
16363         PR optimization/4382
16364         * tree-inline.c (find_builtin_longjmp_call_1): New.
16365         (find_builtin_longjmp_call): New.
16366         (inlinable_function_p): Use it.
16368 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16370         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
16371         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
16372         * config/i386/i386.c (function_arg_pass_by_reference): New.
16373         (ix86_va_arg): Support arguments passed by reference.
16375 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16377         * cfgloopanal.c: New file.
16378         * cfgloopmanip.c: New file.
16379         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
16380         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
16381         cfglayout.o): Add dependency on cfgloop.h.
16382         (cfgloop.o): Add flags.h dependency.
16383         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
16384         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
16385         (struct loop, struct loops, flow_loops_find, flow_loops_update,
16386         flow_loops_free, flow_loops_dump, flow_loop_dump,
16387         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
16388         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
16389         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
16390         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
16391         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
16392         find_common_loop, verify_loop_structure): Declarations moved to ...
16393         * cfgloop.h: New file.
16394         * bb-reorder.c (reorder_basic_blocks): Modified.
16395         * cfglayout.c: Include cfgloop.h.
16396         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
16397         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
16398         (break_superblocks): New static function.
16399         (cfg_layout_finalize): Use it.
16400         (cfg_layout_split_block): New function.
16401         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
16402         fields.
16403         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
16404         changed.
16405         (cfg_layout_split_block): Declare.
16406         * cfgloop.c: Include cfgloop.h and flags.h.
16407         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
16408         get_loop_body): Avoid signed versus unsigned comparison warnings.
16409         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
16410         loop_latch_edge): Modified.
16411         (verify_loop_structure): Modified to use flags stored in loop structure;
16412         check irreducible loops.
16413         (cancel_loop, cancel_loop_tree): New functions.
16414         (estimate_probability): Use loop analysis code for predictions.
16415         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
16416         warnings.
16417         * doloop.c: Include cfgloop.h.
16418         * loop.c: Include cfgloop.h.
16419         * predict.c: Include cfgloop.h.
16420         * toplev.c: Include cfgloop.h.
16421         * unroll.c: Include cfgloop.h.
16422         * tracer.c (tracer): Modified.
16424 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
16426         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
16428 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
16430         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
16431         * configure: Regenerate.
16433         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
16434         (tls_symbolic_reference_mentioned_p): Add prototype.
16435         (s390_tls_get_offset): Add prototype.
16436         (emit_pic_move): Remove prototype, replace by ...
16437         (emit_symbolic_move): .. this new prototype.
16439         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
16440         (tls_model_chars): New global variable.
16441         (s390_encode_section_info): Encode TLS model.
16442         Use targetm.binds_local_p to check for local symbols.
16443         (s390_strip_name_encoding): New function.
16444         (TARGET_STRIP_NAME_ENCODING): Define.
16446         (get_thread_pointer): New function.
16447         (legitimize_tls_address): New function.
16448         (legitimize_address): Call it.
16449         (emit_pic_move): Remove, replace by ...
16450         (emit_symbolic_move): ... this new function.
16452         (larl_operand): Handle TLS operands.
16453         (legitimate_constant_p): Likewise.
16454         (s390_decompose_address): Likewise.
16455         (s390_cannot_force_const_mem): New function.
16456         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
16458         (s390_output_symbolic_const): Handle TLS unspecs.
16459         (print_operand): New code 'J'.
16460         (machine_function): Add struct member 'some_ld_name'.
16461         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
16463         (enum s390_builtin): New type.
16464         (code_for_builtin_64, code_for_builtin_31): New global variables.
16465         (s390_init_builtins, s390_expand_builtin): New functions.
16466         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
16468         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
16469         (ASM_OUTPUT_LABELREF): Define.
16470         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
16472         * config/s390/s390.md: Define TLS UNSPEC constants.
16473         ("movdi", "movsi"): Handle TLS operands.
16474         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
16475         ("*tls_load_64", "*tls_load_31"): New insns.
16476         ("call_value_tls", "call_value_tls_exp"): New expanders.
16477         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
16478         "bas_tls_64", "bas_tls_31"): New insns.
16480 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
16482         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
16483         spe ABI is configured, if requested.
16485 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
16487         * doc/passes.texi: Fix typo.
16489 2003-01-24  Andreas Schwab  <schwab@suse.de>
16491         * stor-layout.c (excess_unit_span): Only define if used.
16493 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
16495         * gcc/doc/invoke.texi (Optimization Options): List -O levels
16496         for each optimization flag.
16498 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
16500         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
16502 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
16504         * doc/bugreport.texi: Use @command instead of @code for commands.
16505         * doc/collect2.texi: Likewise.
16506         * doc/headerdirs.texi: Likewise.
16507         * doc/invoke.texi: Likewise.
16508         * doc/standards.texi: Likewise.
16509         * doc/tm.texi: Likewise.
16510         * doc/trouble.texi: Likewise.
16512 2003-01-24  Nick Clifton  <nickc@redhat.com>
16514         * config/arm/arm.c (use_return_insn): Do not use a single return
16515         instruction for interrupt handelrs which have to create a stack
16516         frame.
16517         (arm_expand_prologue): Do not pre-bias the return address of
16518         interrupt handlers which create a stack frame.
16520 2003-01-24  Nick Clifton  <nickc@redhat.com>
16522         * Add sh2e support:
16524         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
16526                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
16527                 med_cbranches.  Fix logic in short_cbranches.
16529         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
16531                 * config/sh/sh.md (delay for cbranch): Don't annul delay
16532                 slots on SH2e.
16533                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
16534                 cbranch with unfilled delay slot on SH2e.
16535                 (output_branch): Fill with a nop the delay slot of a
16536                 branch that required a delay slot but didn't get one.
16538         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
16540                 * doc/invoke.texi (SH options): Document -m2e.
16541                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
16542                 * config/sh/lib1funcs.asm: Likewise.
16543                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
16544                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
16545                 not __sh1__.
16546                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
16547                 SH2E up.
16548                 (SH3E_BIT): Renamed to...
16549                 (SH_E_BIT): ... this.  Replace all uses.
16550                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
16551                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
16552                 (TARGET_SWITCHES): Added 2e.
16553                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
16554                 (processor_type): Added PROCESSOR_SH2E.
16555                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
16556                 TARGET_SH2E, except in sqrtsf2_i.
16557                 (attribute cpu): Added sh2e.
16558                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
16559                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
16560                 * config.gcc: Add sh2e target support.
16562 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
16564         Rename -W to -Wextra.
16565         * c-decl.c:  Update comments.
16566         * c-typeck.c:  Likewise.
16567         * flags.h:  Likewise.
16568         * function.c:  Likewise.
16569         * stmt.c:  Likewise.
16570         * toplev.c:  Update comments.
16571         (W_options):  Add 'extra'.
16572         (display_help):  Remove '-W'.
16573         (decode_W_option):  Special warn_uninitialized treatment in the case
16574         of -Wextra.
16575         * doc/invoke.texi:  Update with new entries.
16577 2003-01-23  Richard Henderson  <rth@redhat.com>
16579         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
16580         in no-else-block case.  Add commentary.
16582 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16584         * configure.in: Revert last change.
16586 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16588         * configure.in: Don't include ansidecl.h in tconfig.h.
16589         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
16590         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
16591         ATTRIBUTE_UNUSED.
16593         * configure: Regenerate.
16595 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16597         PR java/6748
16598         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
16599         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
16600         kernels.
16602 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16604         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
16606 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
16608         * genattrtab.c (write_attr_get): Mark 'insn' paramter
16609         as ATTRIBUTE_UNUSED.
16611 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
16613         * arm.c (thumb_base_register_rtx_p): New function.
16614         (thumb_index_register_rtx_p): New function.
16615         (thumb_legitimate_address_p): New function.
16616         (thumb_legitimate_offset_p): New function.
16617         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
16618         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
16619         definitions.
16620         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
16621         (THUMB_LEGITIMATE_OFFSET): Delte.
16622         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
16623         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
16624         (thumb_legitimate_offset_p): Likewise.
16626 2003-01-23  Andreas Schwab  <schwab@suse.de>
16628         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
16630 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16632         * fixinc/Makefile.in (FL_LIST): Revert last change.
16634 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
16636         PR other/7341
16637         * invoke.texi (ftest-coverage): Fix broken cross-reference.
16638         Change @code to @command for gcov command.
16640         * gcc.texi: Adjust title of gcov section.
16641         Adjust copyright.
16642         * gcov.texi: Likewise.
16644 2003-01-22  Roger Sayle  <roger@eyesopen.com>
16646         PR optimization/8423
16647         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
16648         its argument is constant, or 0 if !flag_gcse.
16649         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
16650         if it's argument is constant.
16651         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
16652         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
16653         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
16654         * builtins.c (purge_builtin_constant_p): New function to force
16655         instantiation of any remaining CONSTANT_P_RTX nodes.
16656         * rtl.h (purge_builtin_constant_p): Prototype here.
16657         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
16658         pass after GCSE and before loop.
16659         (flag_gcse): No longer static.
16660         * flags.h (flag_gcse): Prototype here.
16662 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
16664         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
16665         introduced by last change.
16667 2003-01-22  Andreas Schwab  <schwab@suse.de>
16669         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
16671 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
16673         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
16674         request a scratch reg on H8S when the shift count is 8.
16676 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
16678         * config/s390/s390-protos.h (preferred_la_operand_p):
16679         Remove second parameter.
16680         * config/s390/s390.c (preferred_la_operand_p): Likewise.
16681         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
16682         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
16683         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
16684         Add peepholes to transform ADD to LOAD ADDRESS.
16686 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
16688         * arm.c (arm_address_register_rtx_p): New function.
16689         (arm_legitimate_address_p): New function.
16690         (arm_legitimate_index_p): New function.
16691         (legitimize_pic_address): Use arm_legitimate_index_p.
16692         * arm-protos.h (arm_legtimate_address_p): Add prototype.
16693         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
16694         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
16696 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
16698         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
16699         * config/s390/2064.md (define_bypass): Correct 'Load' and
16700         'Load-address' bypass values.
16702 2003-01-22  Andreas Schwab  <schwab@suse.de>
16704         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
16706 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
16708         * genautomata.c (output_internal_insn_latency_func,
16709         output_print_reservation_func): Short circuit when there is no
16710         automaton to generate code for.
16712 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16714         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
16715         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
16717 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
16719         * config/rs6000/rs6000.md: Remove warning.
16720         (builtin_setjmp_receiver): Likewise.
16721         * config/darwin.c (update_stubs): Slightly improve terrible hack
16722         with identifiers.  Add comment pointing out problems with it.
16723         (update_non_lazy_ptrs): Likewise.
16725 2003-01-21  Richard Henderson  <rth@redhat.com>
16727         * dwarf2out.c (lookup_filename): Fix printf format warning.
16728         * system.h (fread_unlocked, fwrite_unlocked): Undef.
16730         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
16731         (fixincl.o-warn, gnu-regex.o-warn): New.
16732         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
16733         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
16734         * fixinc/fixincl.c (process): Fix printf format warning.
16736 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
16738         * dwarf2out (output_file_names): Don't crash if called
16739         with empty file_table.
16741 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
16743         * genautomata.c (output_internal_insn_latency_func): Add
16744         missing break statement to generated code.
16746 2003-01-21  Roger Sayle  <roger@eyesopen.com>
16748         * stmt.c (same_case_target_p): New function to determine whether
16749         two case labels branch to the same target.  Split out from...
16750         (group_case_nodes): ... here.  Use same_case_target_p instead.
16751         (strip_default_case_nodes): Remove explicit case nodes
16752         that branch to the default destination.
16753         (expand_end_case_type): Call strip_default_case_nodes after
16754         group_case_nodes, to simplify the case-list before we count it.
16755         Only generate table_label RTX when actually needed.  Try to share
16756         thiscase->exit_label and thiscase->data.case_stmt.default_label
16757         when a switch has no explicit default case.  Simplify test for
16758         constant index.
16760 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
16762         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
16763         \t.
16764         (*negsf2_h8300hs): Likewise.
16765         (*addsi3_lshiftrt_16_zexthi): Likewise.
16766         (*iorhi3_lshiftrt_8): Likewise.
16768 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
16770         * dwarf2out.c (fde_table_in_use): Mark GTY.
16771         (dwarf2out_cfi_label_num): New variable, marked GTY.
16772         (dwarf2out_cfi_label): Use it instead of static label_num.
16773         * emit-rtl.c (label_num): Mark GTY.
16775 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
16777         * config/h8300/h8300.c (output_plussi): Support H8/300.
16778         (compute_plussi_length): Likewise.
16779         (compute_plussi_cc): Likewise.
16780         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
16781         output assembly instructions.
16783 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16785         * calls.c (fix_unsafe_tree): Prototype.
16787         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
16788         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
16789         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
16790         c-parse.o-warn): Add -Wno-error.
16791         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
16793         * configure.in (--enable-werror): Add new flag.
16794         * doc/install.texi (--enable-werror): Document.
16795         * configure: Regenerate.
16797         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
16799 2003-01-21  Andreas Schwab  <schwab@suse.de>
16801         * genautomata.c (output_internal_insn_latency_func): Fix missing
16802         close paren in output.
16804 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
16806         * genautomata.c: Space savings in generated code:
16807         (output_dfa_insn_code_func): Split out the table-enlargement
16808         path to an out-of-line static function, dfa_insn_code_enlarge.
16809         (output_internal_insn_latency_func): Use a lookup table for the
16810         default latencies.
16811         (output_print_reservation_func): Use a lookup table for the
16812         strings.
16814 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
16816         PR opt/7507
16817         * calls.c (fix_unsafe_tree): Split out from ...
16818         (expand_call): ... here.  Use it on the function address too.
16820 2003-01-20  Richard Henderson  <rth@redhat.com>
16822         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
16824 2003-01-20  Richard Henderson  <rth@redhat.com>
16826         PR opt/7154
16827         * stmt.c (expand_asm_operands): Validize memory operands.
16829 2003-01-20  Richard Henderson  <rth@redhat.com>
16831         PR opt/8848
16832         * ifcvt.c (noce_process_if_block): Correct arguments to
16833         modified_between_p for no-else-block case.
16835 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
16837         * config/h8300/h8300.c (const_costs): Remove a warning.
16838         (output_plussi): Likewise.
16839         (compute_plussi_length): Likewise.
16840         (compute_plussi_cc): Likewise.
16842 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
16844         * config/h8300/h8300.md (addsi_h8300): Remove the last
16845         alternative.
16847 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
16849         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
16851 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16853         * system.h (__NO_STRING_INLINES): Define.
16855 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16857         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
16858         is not a scalar int mode.
16860 2003-01-20  Roger Sayle  <roger@eyesopen.com>
16862         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
16863         insn's notes following a substitution inside a libcall.
16865 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
16867         * configure.in: Check for system-provided 'uchar' type.
16868         * configure, config.in: Regenerate.
16869         * cpphash.h: Only typedef 'uchar' if the system doesn't.
16871 2003-01-20  Richard Henderson  <rth@redhat.com>
16873         * expr.h (MUST_PASS_IN_STACK): Move implementation...
16874         * calls.c (default_must_pass_in_stack): ... here.
16876 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
16878         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
16880         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
16882         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
16883         Wrap up definition of `insn_alts'.
16885         * genattrtab.c (main): Wrap up `insn_alts'.
16887 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16889         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
16890         prototyping.
16891         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
16893         * config.in, configure: Regenerate.
16895 2003-01-20  Nick Clifton  <nickc@redhat.com>
16897         * config/arm/arm.md (sibcall_epilogue): Add an
16898         UNSPEC_PROLOGUE_USE to prevent the link register from being
16899         considered dead.
16901 2003-01-20  Jan Hubicka  <jh@suse.cz>
16903         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
16905 2003-01-20  Andreas Schwab  <schwab@suse.de>
16907         * system.h: Don't declare strsignal if the decl test hasn't been
16908         run yet.
16910 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
16912         * config/h8300/h8300.c (notice_update_cc): Don't assume that
16913         recog_data.operands[0] is always associated with cc0.
16915 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
16917         * collect2.c (ldgetname): Expand declaration to prototype.
16918         * read-rtl.c (atoll): Add prototype.
16919         * system.h (strsignal): Also declare if no declaration found.
16921 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
16923         * config.gcc (mips64*-*-linux*): Added.
16924         * config/mips/linux64.h, config/mips/t-linux64: New file.
16925         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
16926         * config/mips/mips.c (override_options): Use it.
16927         * config/mips/mips.h (TARGET_SWITCHES): Added...
16928         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
16929         * Makefile.in (SPECS): New.
16930         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
16931         * gcc.c (process_command): Move self-spec processing past spec
16932         file loading.
16933         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
16934         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
16935         CRTSTUFF_T_CFLAGS.
16936         (SPECS): Document.
16937         * doc/invoke.texi (-mabi-fake-default): Document.
16939 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
16941         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
16942         z_reg, z_reg_qi): Declare static and GTY().
16943         (da_reg): Remove.
16944         (create_regs_rtx): Don't create da_reg.
16945         ("gt-m68hc11.h"): Include for GTY roots.
16946         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
16947         and GTY() here.
16948         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
16949         (m68hc11_soft_tmp_reg): Likewise.
16950         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
16952 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
16954         * basic-block.h: Fix comment formatting.
16955         * calls.c: Likewise.
16956         * combine.c: Likewise.
16957         * convert.c: Likewise.
16958         * gcov.c: Likewise.
16959         * haifa-sched.c: Likewise.
16960         * libgcc2.c: Likewise.
16961         * loop.c: Likewise.
16962         * profile.c: Likewise.
16963         * system.h: Likewise.
16965 2003-01-18  Roger Sayle  <roger@eyesopen.com>
16967         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
16969 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16971         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
16973 2003-01-17  Dale Johannesen  <dalej@apple.com>
16975         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
16976           (*floatunssidf2_internal):  Ditto.
16978 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
16980         * alias.c: Fix comment typos.
16981         * basic-block.h: Likewise.
16982         * c-common.c: Likewise.
16983         * c-common.h: Likewise.
16984         * c-decl.c: Likewise.
16985         * c-opts.c: Likewise.
16986         * c-pragma.c: Likewise.
16987         * c-pretty-print.h: Likewise.
16988         * cfg.c: Likewise.
16989         * cfganal.c: Likewise.
16990         * cfgbuild.c: Likewise.
16991         * cfgcleanup.c: Likewise.
16992         * cfglayout.c: Likewise.
16993         * cfgrtl.c: Likewise.
16994         * convert.c: Likewise.
16995         * cpphash.h: Likewise.
16996         * cpplex.c: Likewise.
16997         * cpplib.h: Likewise.
16998         * df.h: Likewise.
16999         * diagnostic.c: Likewise.
17000         * diagnostic.h: Likewise.
17001         * dwarf2.h: Likewise.
17003 2003-01-17  Stan Shebs  <shebs@apple.com>
17005         * config/darwin-protos.h: Forward-declare struct cpp_reader.
17007 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
17009         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
17010         mistake in last checkin.
17012 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
17014         * et-forest.c: Fix comment typos.
17015         * et-forest.h: Likewise.
17016         * except.c: Likewise.
17017         * expr.c: Likewise.
17018         * flags.h: Likewise.
17019         * flow.c: Likewise.
17020         * gcc.c: Likewise.
17021         * gcse.c: Likewise.
17022         * genattrtab.c: Likewise.
17023         * genautomata.c: Likewise.
17024         * gengtype.c: Likewise.
17025         * genrecog.c: Likewise.
17026         * global.c: Likewise.
17027         * gthr-rtems.h: Likewise.
17029 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17031         * i386.c (x86_function_profiler): Fix format specifier.
17033 2003-01-17  Richard Henderson  <rth@redhat.com>
17035         * gengtype.c (walk_type): Allow paramN_is.
17037 2003-01-17  Nick Clifton  <nickc@redhat.com>
17039         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
17041 2003-01-16  Richard Henderson  <rth@redhat.com>
17043         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
17045 2003-01-16  Richard Henderson  <rth@redhat.com>
17047         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
17048         (alpha_next_sequence_number): Likewise.
17049         (alpha_this_literal_sequence_number): Likewise.
17050         (alpha_this_gpdisp_sequence_number): Likewise.
17051         (struct alpha_funcs, alpha_funcs_num): Likewise.
17052         (struct alpha_links): Fix branch merge error.
17053         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
17055 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
17057         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
17058         R. Ghazi.
17060 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
17062         * ifcvt.c: Fix comment typos.
17063         * lcm.c: Likewise.
17064         * libgcc2.c: Likewise.
17065         * local-alloc.c: Likewise.
17066         * loop.c: Likewise.
17067         * predict.c: Likewise.
17068         * ra-build.c: Likewise.
17069         * ra.c: Likewise.
17070         * ra-colorize.c: Likewise.
17071         * ra.h: Likewise.
17072         * ra-rewrite.c: Likewise.
17073         * regmove.c: Likewise.
17074         * reload.h: Likewise.
17075         * rtlanal.c: Likewise.
17076         * toplev.c: Likewise.
17077         * tree.h: Likewise.
17078         * unwind-dw2-fde-glibc.c: Likewise.
17079         * vmsdbgout.c: Likewise.
17081 2003-01-16  Richard Henderson  <rth@redhat.com>
17083         * dwarf2out.c (struct file_table): Remove.
17084         (FILE_TABLE_INCREMENT): Remove.
17085         (file_table): Make a varray; mark for GC.  Update all users.
17086         (file_table_last_lookup_index): Extract from struct file_table.
17087         (output_file_names): Fix unsigned compare warnings.
17088         (add_name_attribute): Remove inline marker.
17089         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
17090         (lookup_filename): Don't manage size of file_table.
17091         (init_file_table): Allocate file_table with GC.
17092         (dwarf2out_init): Don't record main_input_filename here.
17093         (dwarf2out_finish): Do it here instead.
17095 2003-01-16  Bruce Korb  <bkorb@gnu.org>
17097         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
17099 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
17101         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
17102         instead of rotldi3_mextr.
17104 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
17106         * haifa-sched.c (move_insn): Restore moving all schedule group.
17107         (set_priorities): Restore taking SCHED_GROUP_P into account.
17109         * sched-deps.c (add_dependence): Restore processing the last group
17110         insn.
17111         (remove_dependence, group_leader): Restore the functions.
17112         (set_sched_group_p): Restore adding dependencies from previous insn
17113         in the group.
17114         (compute_forward_dependences): Restore usage of group_leader.
17116         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
17117         account.
17119         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
17120         account.
17121         (can_schedule_ready_p): Ditto.
17122         (add_branch_dependences): Restore skipping over the group insns.
17124 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
17126         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
17127         68HC12 pre/post inc/dec side effects.
17129 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
17131         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
17133 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
17135         * sh.md (mshflo_w_x): Fix description of operation.
17137 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
17139         * config/rs6000/rs6000.h: Mention Altivec registers in
17140         commentary.  Fix typo.
17142 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
17144         * config/rs6000/rs6000.md (movti_string): Remove clobber.
17145         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
17146         generate PARALLEL with clobber for TARGET_POWER.
17148 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17150         * ra-colorize.c (colorize_one_web): Initialize variable.
17151         * regmove.c (fixup_match_1): Likewise.
17152         * reload1.c (reload_as_needed): Likewise.
17153         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
17155 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17157         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
17159 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17161         * dbxout.c (lastfile, cwd): Fix `unused' warning.
17162         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
17163         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
17164         is_main_source, file_table, decl_die_table_in_use,
17165         abbrev_die_table_in_use, line_info_table_in_use,
17166         separate_line_info_table_in_use, pubname_table_in_use,
17167         arange_table_in_use, ranges_table_in_use,
17168         current_function_has_inlines): Likewise.
17169         * flow.c (life_analysis): Likewise.
17170         * genemit.c (gen_insn): Likewise.
17171         * protoize.c (cplus_suffix): Likewise.
17173         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
17174         * arm.h (ROUND_UP_WORD): Likewise.
17176         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
17177         warning.
17178         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
17179         init_emit_once): Likewise.
17180         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
17181         Likewise.
17182         * function.c (assign_stack_temp_for_type): Likewise.
17183         * loop.c (loop_invariant_p): Likewise.
17184         * recog.c (push_operand): Likewise.
17185         * regclass.c (init_reg_sets_1): Likewise.
17186         * reload.c (update_auto_inc_notes): Likewise.
17187         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
17188         * stmt.c (expand_asm_operands): Likewise.
17189         * stor-layout.c (start_record_layout): Likewise.
17191 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
17193         * config/c4x/c4x.md (epilogue): Correct last patch.
17195 2003-01-15  Richard Henderson  <rth@redhat.com>
17197         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
17198         also check that GP is being used.
17199         (alpha_find_lo_sum_using_gp): New.
17200         (alpha_does_function_need_gp): Use get_attr_usegp.
17201         * config/alpha/alpha-protos.h: Update.
17202         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
17203         as needed.
17205 2003-01-15  Roger Sayle  <roger@eyesopen.com>
17207         * gcse.c (one_cprop_pass): Change function arguments to take both
17208         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
17209         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
17210         (bypass_jumps): New function to perform separate jump bypassing pass.
17211         * rtl.h (bypass_jumps): Add function prototype.
17212         * timevar.def (TV_BYPASS): New timing variable.
17213         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
17214         (dump_file): New entry for the bypass RTL dump file.
17215         (rest_of_compilation): Insert new jump bypassing optimization
17216         pass after loop.
17217         * doc/passes.texi: Document new pass.
17219 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17221         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
17222         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
17223         * pa.h (TARGET_SOM_SDEF): Define.
17224         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
17226 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
17228         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
17229         allocate 4-bytes of locals on 68HC11.
17230         (expand_epilogue): Likewise.
17231         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
17233 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
17235         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
17236         and -mshort-double to the assembler to specify the ABI.
17237         (LINK_SPEC): Likewise.
17238         (CPP_SPEC): Pass HCS12 specific define.
17239         (MASK_M68S12): New define.
17240         (TARGET_M68S12): Likewise.
17241         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
17242         (TARGET_VERSION): Update.
17243         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
17244         (LINK_SPEC): Update.
17245         (ASM_SPEC): Update.
17246         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
17247         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
17249 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
17251         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
17252         the return code.
17254 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
17256         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
17257         flag before setting it.
17259 2003-01-15  Roger Sayle  <roger@eyesopen.com>
17261         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
17262         when loop condition is known true, i.e.  "while (1) { ... }".
17263         (genrtl_for_stmt): Similarly for "for" statements.
17265 2003-01-15  Roger Sayle  <roger@eyesopen.com>
17267         * real.c (real_sqrt): Return a bool result indicating whether
17268         a floating point exception or trap should be raised.
17269         * real.h (real_sqrt): Update function prototype.
17270         * builtins.c (fold_builtin): Only fold non-trapping square
17271         roots unless we're ignoring errno and trapping math.
17273 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
17275         * expr.h (emit_conditional_add): Add PARAMS to declaration.
17276         * gengtype-lex.l (malloc, realloc): Move defines after include of
17277         system.h.  Remove duplicate include of system.h.
17279 2003-01-15  Roger Sayle  <roger@eyesopen.com>
17281         PR middle-end/9009
17282         * optabs.c (expand_unop):  When manipulating the FP sign bit
17283         using integer operations, account for targets with different
17284         integer and FP word orders.
17285         (expand_abs): Likewise.
17287 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
17289         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
17290         file extension in section name.
17292 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
17294         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
17295         constant offset.
17297 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
17299         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
17300         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
17301         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
17302         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
17304 2003-01-15  Jan Hubicka  <jh@suse.cz>
17306         PR f/9258
17307         * global.c (struct allocno): Add no_stack_reg.
17308         (global_conflicts): Set no_stack_reg.
17309         (find_reg): Use it.
17311         * convert.c (convert_to_real): Fold - and abs only when profitable.
17312         * fold-const.c (fold): Fold truncates in - and abs.
17314 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
17316         Segher Boessenkool  <segher@koffie.nl>
17318         * predict.c (real_inv_br_prob_base): New variable.
17319         (propagate_freq): Use multiply by reciprocal instead of
17320         division.  Don't divide by 1.0 at all.
17321         (estimate_bb_frequencies): Similar.
17323 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
17325         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
17326         * configure: Rebuilt.
17328 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
17330         * config/s390/s390.c (s390_safe_attr_type): New function.
17331         (s390_use_dfa_pipeline_interface): New function, return true for z900.
17332         (s390_issue_rate): New function.
17333         (s390_agen_dep_p): New function.
17334         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
17335         (s390_adjust_cost): Return 'cost' if new DFA is used.
17336         (s390_adjust_priority): Delete function.
17337         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
17338         * config/s390/s390.md (atype attribute): Attribute 'atype' default
17339         determined by 'op_type'.
17340         (type attribute): Added more type attributes.
17341         * config/s390/2064.md: New DFA description for z900 pipeline.
17343 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
17345         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
17346         forced to memory.  Fixes PR bootstrap/9036.
17348         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
17349         to set $gp before the call.
17351 2003-01-14  Richard Henderson  <rth@redhat.com>
17353         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
17354         for force_const_mem.
17356 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17358         * genattr.c (main): Rearrange output to avoid prototype warning.
17359         * genautomata.c (transform_3): Fix ambiguous-else warning.
17360         * local-alloc.c (requires_inout): Add parentheses around
17361         assignment used as truth-value.
17362         * timevar.c: Move system includes above local includes.  Include
17363         toplev.h
17364         * Makefile.in (timevar.o): Depend on toplev.h.
17366 2003-01-14  Denis Chertykov  <denisc@overta.ru>
17368         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
17369         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
17371         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
17372         attributes.
17373         (TARGET_ATTRIBUTE_TABLE): New macro.
17374         (valid_machine_type_attribute): Remove.
17375         (valid_machine_decl_attribute): Remove.
17376         (ip2k_handle_progmem_attribute): New function.
17377         (ip2k_handle_fndecl_attribute): New function.
17379 2003-01-10  Andrew Haley  <aph@redhat.com>
17381         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
17382         registers to be in correct order.  Add rip.
17384 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
17386         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
17387         (*iorsi3_and_lshiftrt_9_sb): Likewise.
17389 2003-01-14  Jan Hubicka  <jh@suse.cz>
17391         * convert.c (strip_float_extensions):  Look for narrowest type handling
17392         FP constants.
17394         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
17395         float1 CMP float2.
17396         * convert.c (strip_float_extensions): Make global.
17397         * tree.h (strip_float_extensions): Declare.
17399 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17401         * timevar.def: define TV_NAME_LOOKUP.
17402         * timevar.c (timevar_pop): Be verbose when aborting.
17404 2003-01-13  Andreas Schwab  <schwab@suse.de>
17406         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
17407         $(parsedir), just move the temporary file at the end.
17408         ($(parsedir)/gengtype-yacc.c): Likewise.
17410 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
17412         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
17413         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
17414         splitting.
17415         * configure: Rebuilt.
17417 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17419         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
17420         internal_mcount): Don't use PARAMS.
17421         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
17422         ISO C style.
17423         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
17425 2003-01-13  Andreas Schwab  <schwab@suse.de>
17427         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
17428         directive.
17430 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
17432         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
17433         (*iorsi3_and_lshiftrt_n_sb): Likewise.
17435 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
17437         PR c++/9264
17438         * c-lex.c (c_lex): Set the token value to error_mark_node for
17439         invalid numeric constants.
17441 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17443         * c-pch.c (asm_file_startpos): Change to `long'.
17444         (pch_init): Use ftell, not ftello.
17445         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
17446         Use `long' instead of `off_t'.
17447         (c_common_read_pch): Likewise.
17448         * ggc-common.c (gt_pch_save): Use long/ftell instead of
17449         off_t/ftello.
17451 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
17453         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
17455 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
17457         * arm-protos.h (struct cpp_reader): Add declaration.
17459 2003-01-11  Jan Hubicka  <jh@suse.cz>
17461         PR target/9068
17462         * i386.c (output_fp_compare): Fix typo.
17464 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
17466         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
17468 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
17470         * Makefile.in (parsedir): New variable.
17471         (docobjdir): New variable.
17472         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
17473         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
17474         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
17475         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
17476         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
17477         Use docobjdir.
17478         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
17479         objc.maintainer-clean): Use parsedir.
17481         * varasm.c (struct constant_descriptor_rtx): Remove unused
17482         `label' field.
17484         * toplev.c (documented_lang_options): Document -Winvalid-pch.
17486 2003-01-10  Richard Henderson  <rth@redhat.com>
17488         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
17489         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
17491 2003-01-10  Richard Henderson  <rth@redhat.com>
17493         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
17494         not INTEGRAL_MODE_P when widening extensions.
17496 2003-01-10  Richard Henderson  <rth@redhat.com>
17498         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
17500 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
17502         * ggc-page.c (ggc_collect): Avoid overflow computing
17503         min_expand.
17505         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
17506         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
17507         Remove calls.
17508         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
17510 2003-01-10  Jan Hubicka  <jh@suse.cz>
17512         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
17513         with weird operands.
17515 2003-01-10  Dale Johannesen <dalej@apple.com>
17517         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
17518         parameters.  Call check_sibcall_argument_overlap if indicated.
17519         (check_sibcall_argument_overlap):  Add mark_stored_args_map
17520         parameter.  Don't mark parameter area as clobbered if not set.
17521         (expand_call):  Adjust calls to above.
17523 2003-01-10 Kelley Cook <kelleycook@comcast.net>
17525         * configure.in (linker read-only and read-write section mixing):
17526         Squelch some assembler warnings.
17527         * configure: Likewise.
17529 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
17531         * doc/invoke.texi: Document -mtune, delete -mcpu
17532         option for S/390 and zSeries.
17533         * config/s390/s390.c (s390_tune_string) New variable.
17534         (s390_cpu_string) Delete variable.
17535         (override_options): Use s390_tune_string instead of
17536         s390_cpu_string.
17537         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
17539 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
17541         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
17543 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
17545         * jump.c (next_nonnote_insn_in_loop): New function.
17546         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
17547         next_nonnote_insn.
17548         (duplicate_loop_exit_test). Likewise.
17550 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
17552         Merge from pch-branch:
17554         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
17556         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
17557         load.
17559         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
17561         * cpplib.c (count_registered_pragmas): New function.
17562         (save_registered_pragmas): New function.
17563         (_cpp_save_pragma_names): New function.
17564         (restore_registered_pragmas): New function.
17565         (_cpp_restore_pragma_names): New function.
17566         * cpphash.h (_cpp_save_pragma_names): Prototype.
17567         (_cpp_restore_pragma_names): Likewise.
17568         * cpppch.c (struct save_macro_item): Split from save_macro_data.
17569         (struct save_macro_data): New field 'saved_pragmas'.
17570         (save_macros): Update for changes to struct save_macro_data.
17571         (cpp_prepare_state): Call _cpp_save_pragma_names, update
17572         for changes to struct save_macro_data.
17573         (cpp_read_state): Call _cpp_restore_pragma_names, update
17574         for changes to struct save_macro_data.
17576         * cpppch.c (cpp_read_state): Restore the hashtable references
17577         in the cpp_reader.
17579         * tree.h (built_in_decls): Mark for PCH.
17581         * dbxout.c (lastfile): Don't mark for PCH.
17583         * ggc.h: Document PCH calls into memory managers.
17585         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
17587         * doc/invoke.texi (Precompiled Headers): Document the
17588         directory form of PCH.
17589         * cppfiles.c (validate_pch): New function.
17590         (open_file_pch): Search suitably-named directories for PCH files.
17592         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
17594         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
17595         reorder options.
17596         (Type Information): Mention that the information is also
17597         used to implement PCH.
17598         * doc/passes.texi (Passes): Improve documentation of
17599         language-specific files.
17601         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
17603         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
17604         (struct walk_type_data): Add reorder_fn field.
17605         (walk_type): Process 'reorder' option.
17606         (write_types_process_field): Reorder parameters to gt_pch_note_object,
17607         call reorder_note_routine.
17608         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
17609         (ggc_wtd): Update for change to struct write_types_data.
17610         (pch_wtd): Likewise.
17611         * ggc.h (gt_pch_note_object): Reorder parameters.
17612         (gt_handle_reorder): New definition.
17613         (gt_pch_note_reorder): New prototype.
17614         * ggc-common.c (struct ptr_data): Add reorder_fn.
17615         (gt_pch_note_object): Reorder parameters.
17616         (gt_pch_note_reorder): New.
17617         (gt_pch_save): Call reorder_fn.
17618         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
17620         * dbxout.c (cwd): Don't mark for PCH.
17622         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
17624         * gengtype.c (finish_root_table): Fix some warnings.
17625         (write_root): Handle TYPE_STRING.
17626         * ggc.h (gt_ggc_m_S): Add prototype.
17627         * stringpool.c (gt_ggc_m_S): New function.
17629         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
17631         * dwarf2out.c (dw2_string_counter): New.
17632         (AT_string_form): Use it.
17633         (same_dw_val_p): Update for removal of hashtable.h hash tables.
17635         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
17637         * dbxout.c: Include gt-dbxout.h.
17638         (lastfile): Mark for PCH/GGC.
17639         (cwd): Likewise.
17640         (struct typeinfo): Likewise.
17641         (typevec): Likewise.
17642         (typevec_len): Likewise.
17643         (next_type_number): Likewise.
17644         (struct dbx_file): Likewise.
17645         (current_file): Likewise.
17646         (next_file_number): Likewise.
17647         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
17648         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
17649         (dbxout_end_source_file): Don't free struct dbx_file.
17650         (dbxout_type): Use GGC to allocate typevec.
17651         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
17652         (GTFILES): Add dbxout.c.
17653         (gt-dbxout.h): New rule.
17655         * Makefile.in (c-pch.o): Add debug.h as dependency.
17656         * c-pch.c: Include debug.h.
17657         (pch_init): Call start_source_file to keep nesting right.
17658         (c_common_read_pch): Add orig_name parameter.  Call
17659         start_source_file debug hook.  Call end_source_file debug hook.
17660         * c-common.h (c_common_read_pch): Update prototype.
17661         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
17662         callback.
17663         * cppfiles.c (struct include_file): Add new field `header_name'.
17664         (find_or_create_entry): Default it to `name'.
17665         (open_file_pch): Set it to the original header file searched for.
17666         (stack_include_file): Don't stack an empty buffer, just handle
17667         PCH files immediately.  Pass header_name field to read_pch callback.
17669         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
17671         * function.c (funcdef_no): Mark to be saved in a PCH.
17673         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
17675         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
17677         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
17679         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
17681         * optabs.h (code_to_optab): Add GTY marker.
17683         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
17685         * Makefile.in (GTFILES): Add cpplib.h.
17686         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
17687         * c-decl.c (build_compound_literal): Don't use var_labelno.
17688         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
17689         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
17690         * varasm.c (const_labelno): Use gengtype to mark.
17691         (var_labelno): Likewise.
17692         (in_section): Likewise.
17693         (in_named_name): Likewise.
17694         (struct in_named_entry): Likewise.
17695         (in_named_htab): Likewise.
17696         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
17697         (init_varasm_once): Use GGC to allocate in_named_htab.
17698         * config/darwin.c (current_pic_label_num): Mark for PCH.
17700         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
17702         * ggc-simple.c (init_ggc_pch): New stub procedure.
17703         (ggc_pch_count_object): Likewise.
17704         (ggc_pch_total_size): Likewise.
17705         (ggc_pch_this_base): Likewise.
17706         (ggc_pch_alloc_object): Likewise.
17707         (ggc_pch_prepare_write): Likewise.
17708         (ggc_pch_write_object): Likewise
17709         (ggc_pch_finish): Likewise.
17710         (ggc_pch_read): Likewise.
17712         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
17714         * c-pch.c (c_common_write_pch): Write the macro definitions after
17715         the GCed data.
17716         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
17717         definitions after the GCed data.
17718         * cpplib.c (save_macros): New.
17719         (reset_ht): New.
17720         (cpp_write_pch_deps): Split out of cpp_write_pch.
17721         (cpp_write_pch_state): Split out of cpp_write_pch.
17722         (cpp_write_pch): Delete.
17723         (struct save_macro_data): Delete.
17724         (cpp_prepare_state): New.
17725         (cpp_read_state): Erase and restore initial macro definitions.
17726         * cpplib.h (struct save_macro_data): Forward-declare.
17727         (cpp_write_pch_deps): Prototype.
17728         (cpp_write_pch_state): Prototype.
17729         (cpp_write_pch): Delete prototype.
17730         (cpp_prepare_state): Prototype.
17731         (cpp_read_state): Add fourth argument.
17733         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
17735         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
17736         (write_array): Remove warning.
17738         * gengtype.c (contains_scalar_p): New.
17739         (finish_root_table): Add the table to all languages, even if it's
17740         empty.
17741         (write_roots): Output gt_pch_scalar_rtab.
17742         * ggc-common.c (gt_pch_save): Write out scalars.
17743         (gt_pch_restore): Read scalars back.
17745         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
17746         (struct page_entry): Delete pch_page field.
17747         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
17748         (clear_marks): Likewise.
17749         (sweep_pages): Likewise.
17750         (poison_pages): Likewise.
17751         (ggc_print_statistics): Likewise.
17752         (ggc_pch_read): Don't free objects read from a PCH.
17753         Properly set up in_use_p and page_tails.
17755         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
17757         * gengtype.c (struct write_types_data): New.
17758         (struct walk_type_data): Make `cookie' const; add extra
17759         prev_val item; add `orig_s' field.
17760         (walk_type): Update prev_val[3].
17761         (write_types_process_field): New.
17762         (write_func_for_structure): Take write_types_data structure.
17763         (write_types): New.
17764         (ggc_wtd): New.
17765         (pch_wtd): New.
17766         (write_types_local_process_field): New.
17767         (gc_mark_process_field): Delete.
17768         (write_local_func_for_structure): New.
17769         (gc_mark_func_name): Delete.
17770         (write_gc_types): Delete.
17771         (write_local): New.
17772         (finish_root_table): Don't include 'ggc_' in PFX.
17773         (write_root): Rename from write_root.  Fill pchw field of structures.
17774         (write_array): New.
17775         (write_roots): Rename from write_gc_roots.  Split out to write_array.
17776         Update to changes to other routines.  Write gt_pch_cache_rtab table.
17777         (main): Write PCH walking routines.
17778         * ggc-common.c: Include toplev.h, sys/mman.h.
17779         (ggc_mark_roots): For cache hashtables, also mark the hash table
17780         and the array of entries.
17781         (saving_htab): New.
17782         (struct ptr_data): New.
17783         (POINTER_HASH): New.
17784         (gt_pch_note_object): New.
17785         (saving_htab_hash): New.
17786         (saving_htab_eq): New.
17787         (struct traversal_state): New.
17788         (call_count): New.
17789         (call_alloc): New.
17790         (compare_ptr_data): New.
17791         (relocate_ptrs): New.
17792         (write_pch_globals): New.
17793         (struct mmap_info): New.
17794         (gt_pch_save): New.
17795         (gt_pch_restore): New.
17796         * ggc-page.c (ROUND_UP_VALUE): New.
17797         (ROUND_UP): New.
17798         (struct page_entry): Add field `pch_page'.
17799         (init_ggc): Use ROUND_UP.
17800         (struct ggc_pch_data): Declare.
17801         (init_ggc_pch): New.
17802         (ggc_pch_count_object): New.
17803         (ggc_pch_total_size): New.
17804         (ggc_pch_this_base): New.
17805         (ggc_pch_alloc_object): New.
17806         (ggc_pch_prepare_write): New.
17807         (ggc_pch_write_object): New.
17808         (ggc_pch_finish): New.
17809         (ggc_pch_read): New.
17810         * ggc.h (gt_pointer_operator): New.
17811         (gt_note_pointers): New.
17812         (gt_pch_note_object): New prototype.
17813         (gt_pointer_walker): New.
17814         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
17815         (LAST_GGC_ROOT_TAB): Update.
17816         (gt_pch_cache_rtab): Declare.
17817         (gt_pch_scalar_rtab): Declare.
17818         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
17819         (LAST_GGC_CACHE_TAB): Update.
17820         (gt_pch_save_stringpool): Declare.
17821         (gt_pch_restore_stringpool): Declare.
17822         (gt_pch_p_S): Declare.
17823         (gt_pch_n_S): Declare.
17824         (struct ggc_pch_data): Forward-declare.
17825         (init_ggc_pch): Declare.
17826         (ggc_pch_count_object): Declare.
17827         (ggc_pch_total_size): Declare.
17828         (ggc_pch_this_base): Declare.
17829         (ggc_pch_alloc_object): Declare.
17830         (ggc_pch_prepare_write): Declare.
17831         (ggc_pch_write_object): Declare.
17832         (ggc_pch_finish): Declare.
17833         (ggc_pch_read): Declare.
17834         (gt_pch_save): Declare.
17835         (gt_pch_restore): Declare.
17836         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
17837         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
17838         const_double_htab, mem_attrs_htab using GGC.
17839         * c-pch.c: Include ggc.h.
17840         (pch_init): Allow reading PCH file back.
17841         (c_common_write_pch): Call gt_pch_save.
17842         (c_common_read_pch): Call gt_pch_restore.
17843         * c-parse.in (init_reswords): Delete now-untrue comment.
17844         Allocate ridpointers using GGC.
17845         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
17846         calling expand_deferred_fns.
17847         * c-common.h (ridpointers): Mark for GTY machinery.
17848         * Makefile.in (stringpool.o): Update dependencies.
17849         (c-pch.o): Update dependencies.
17850         (ggc-common.o): Update dependencies.
17851         * stringpool.c: Include gt-stringpool.h.
17852         (gt_pch_p_S): New.
17853         (gt_pch_n_S): New.
17854         (struct string_pool_data): New.
17855         (spd): New.
17856         (gt_pch_save_stringpool): New.
17857         (gt_pch_restore_stringpool): New.
17858         * tree.c (init_ttree): Make type_hash_table allocated using GC.
17860         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
17862         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
17863         (output_mangled_typename): Don't pass size_t to printf.
17865         * tree.h (union tree_type_symtab): Add tag to `address' field.
17866         (union tree_decl_u2): Add tag to 'i' field.
17867         * varasm.c (union rtx_const_un): Add tags to all fields.
17868         * gengtype.c (struct walk_type_data): New.
17869         (output_escaped_param): Take struct walk_type_data parameter.
17870         (write_gc_structure_fields): Delete.
17871         (walk_type): New.
17872         (write_gc_marker_routine_for_structure): Delete.
17873         (write_func_for_structure): New.
17874         (gc_mark_process_field): New.
17875         (gc_mark_func_name): New.
17876         (gc_counter): Delete.
17877         (write_gc_types): Use write_func_for_structure.
17878         (write_gc_roots): Use walk_type.
17880         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
17882         * ggc-common.c (ggc_mark_roots): Delete 'x'.
17883         (ggc_splay_dont_free): Fix warning about unused 'x'.
17884         (ggc_print_common_statistics): Remove warnings.
17886         2002-10-01  Mike Stump  <mrs@apple.com>
17888         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
17889         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
17891         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
17892             Catherine Moore  <clm@redhat.com>
17894         * Makefile (c-pch.o): Update dependencies.
17895         (LIBCPP_OBJS): Add cpppch.o.
17896         (cpppch.o): New.
17897         * c-common.c (c_common_init): Don't call pch_init here.
17898         * c-common.h (c_common_read_pch): Update prototype.
17899         * c-lex.c (c_common_parse_file): Call pch_init here.
17900         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
17901         (c_common_decode_option): Handle them.
17902         * c-pch.c: Include c-pragma.h.
17903         (save_asm_offset): Delete.
17904         (pch_init): Move contents of save_asm_offset into here, call
17905         cpp_save_state.
17906         (c_common_write_pch): Call cpp_write_pch.
17907         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
17908         cpp_valid_state.
17909         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
17910         * cppfiles.c (stack_include_file): Update for change to
17911         parameters of cb.read_pch.
17912         * cpphash.h (struct cpp_reader): Add `savedstate' field.
17913         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
17914         `restore_pch_deps' fields.
17915         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
17916         (cpp_save_state): Prototype.
17917         (cpp_write_pch): Prototype.
17918         (cpp_valid_state): Prototype.
17919         (cpp_read_state): Prototype.
17920         * cpppch.c: New file.
17921         * flags.h (version_flag): Remove prototype.
17922         * mkdeps.c (deps_save): New.
17923         (deps_restore): New.
17924         * mkdeps.h (deps_save): Prototype.
17925         (deps_restore): Prototype.
17926         * toplev.c (late_init_hook): Delete.
17927         (version_flag): Make static again.
17928         (compile_file): Don't call late_init_hook.
17929         * toplev.h (late_init_hook): Delete.
17930         * doc/cppopts.texi: Document -fpch-deps.
17931         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
17933         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
17935         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
17936         callers.
17937         (c_common_valid_pch): Rename from c_valid_pch, change callers.
17938         (c_common_read_pch): Rename from c_read_pch, change callers.
17940         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
17941         a space between it and its argument.
17943         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
17945         * c-pch.c: New file.
17946         * toplev.h (late_init_hook): Declare.
17947         * toplev.c (late_init_hook): Define.
17948         (version_flag): Make globally visible.
17949         (compile_file): Call late_init_hook.
17950         (init_asm_output): Make output file seekable.
17951         * gcc.c (default_compilers): Update c-header rule.
17952         * flags.h (version_flag): Declare.
17953         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
17954         fields.
17955         * cppfiles.c (struct include_file): Add 'pch' field.
17956         (INCLUDE_PCH_P): New.
17957         (open_file_pch): New.
17958         (stack_include_file): Handle PCH files specially.
17959         (find_include_file): Call open_file_pch instead of open_file.
17960         (_cpp_read_file): Explain why open_file is used instead of
17961         open_file_pch.
17962         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
17963         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
17964         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
17965         in cpplib callbacks.
17966         * c-common.c (pch_file): Correct comment.
17967         (allow_pch): Define.
17968         (c_common_init): Call pch_init.
17969         * c-common.h (allow_pch): Declare.
17970         (pch_init): Declare.
17971         (c_valid_pch): Declare.
17972         (c_read_pch): Declare.
17973         (c_write_pch): Declare.
17974         * Makefile.in (c-pch.o): New.
17975         (C_AND_OBJC_OBJS): Add c-pch.o.
17976         * doc/invoke.texi (Precompiled Headers): Add index entries,
17977         complete truncated paragraph.
17979         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
17981         * c-common.c: (pch_file): Define.
17982         * c-common.h (pch_file): Declare.
17983         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
17984         (missing_arg): Require --output-pch= to have an argument.
17985         (c_common_decode_option): Handle --output-pch=.
17986         * gcc.c: Document new %V.
17987         (default_compilers): Handle compiling C header files.
17988         (do_spec_1): Implement %V.
17989         (main): Handle "gcc foo.h" without trying to run linker.
17990         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
17991         (Overall Options): Document what the driver does with header files,
17992         document new -x option possibilities.
17993         (Invoking G++): More documentation for PCH.
17994         (Precompiled Headers): New.
17996         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
17998         * ggc.h: Don't include varray.h.  Rearrange functions to be more
17999         organized.
18000         (ggc_add_root): Delete.
18001         (ggc_mark_rtx): Delete.
18002         (ggc_mark_tree): Delete.
18003         (struct ggc_statistics): Remove contents.
18004         * ggc-common.c: Remove unneeded includes.
18005         (struct ggc_root): Delete.
18006         (roots): Delete.
18007         (ggc_add_root): Delete.
18008         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
18009         (ggc_print_common_statistics): Remove most of the contents.
18010         * Makefile.in (GGC_H): No longer uses varray.h.
18011         (ggc-common.o): Update dependencies.
18012         (c-parse.o): Add varray.h to dependencies.
18013         (c-common.o): Add varray.h.
18014         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
18015         (mark_ident_hash): Rename to ggc_mark_stringpool.
18016         (init_stringpool): Don't use ggc_add_root.
18017         * c-parse.in: Include varray.h.
18018         * c-common.c: Include varray.h.
18019         * objc/Make-lang.in (objc-act.o): Add varray.h.
18020         * objc/objc-act.c: Include varray.h.
18022         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
18024         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
18025         (dw_cfi_oprnd1_desc): Likewise.
18027         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
18029         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
18030         move out of ifdef.
18031         (alpha_links): Use gengtype to mark; move out of ifdef.
18032         (mark_alpha_links_node): Delete.
18033         (mark_alpha_links): Delete.
18034         (alpha_need_linkage): Use GGC to allocate splay tree, struct
18035         alpha_links, strings.  Don't use ggc_add_root.
18036         * ggc-common.c (ggc_splay_alloc): New.
18037         (ggc_splay_dont_free): New.
18038         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
18039         (ggc_mark_tree): Likewise.
18040         (splay_tree_new_ggc): New.
18041         (ggc_splay_alloc): Declare.
18042         (ggc_splay_dont_free): Declare.
18043         * dwarf2asm.c: Include gt-dwarf2asm.h.
18044         (mark_indirect_pool_entry): Delete.
18045         (mark_indirect_pool): Delete.
18046         (indirect_pool): Use gengtype to mark.
18047         (dw2_force_const_mem): Don't use ggc_add_root.
18048         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
18049         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
18050         (gt-dwarf2asm.h): Depend on s-gtype.
18052         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
18054         * tree.h (union tree_type_symtab): Mark `die' field.
18055         * Makefile.in (dwarf2out.o): Update dependencies.
18056         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
18057         hash tables.
18058         (dw_cfi_oprnd1_desc): New function.
18059         (dw_cfi_oprnd2_desc): New function.
18060         (indirect_string_alloc): Delete.
18061         (debug_str_do_hash): New function.
18062         (debug_str_eq): New function.
18063         (mark_limbo_die_list): Delete.
18064         (dwarf2out_init): Don't call ggc_add_root.
18066 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
18068         The following changes are merged from itanium-sched-branch:
18070         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
18072         * doc/md.texi: Clarify assignment of units to automata description.
18074         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
18076         * genautomata.c (unit_decl): Remove members
18077         `the_same_automaton_unit' and
18078         `the_same_automaton_message_reported_p'.
18079         (process_unit_to_form_the_same_automaton_unit_lists,
18080         form_the_same_automaton_unit_lists_from_regexp,
18081         form_the_same_automaton_unit_lists, the_same_automaton_lists):
18082         Remove them.
18083         (annotation_message_reported_p): New global variable.
18084         (check_unit_distribution_in_reserv,
18085         check_regexp_units_distribution): New functions.
18086         (check_unit_distributions_to_automata): Rewrite it.
18088         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
18090         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
18091         Use continue instead of break if cycle is too big.
18093         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
18095         * genautomata.c (check_unit_distributions_to_automata): Output at
18096         most one message for a unit.
18097         (process_unit_to_form_the_same_automaton_unit_lists): Check
18098         automaton of units instead of units themself.
18100         * doc/md.texi: Describe the constraint about assigning unit to
18101         automata.
18103         2002-12-20  Jan Hubicka  <jH@suse.cz>
18104                     Vladimir Makarov  <vmakarov@redhat.com>
18106         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
18107         and `in_set_p'.
18108         (gen_cpu_unit): Initialize the new members.
18109         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
18110         up `min_occ_cycle_num'.
18111         (evaluate_max_reserv_cycles): Change the function call.
18112         (CLEAR_BIT): New macro.
18113         (states_union, state_shift): Use the mask.
18114         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
18115         (form_reservs_matter): New function.
18116         (make_automaton): Call the function and use the mask.
18117         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
18118         account.
18120         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
18122         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
18124         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
18126         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
18127         for Itanium.
18129         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
18131         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
18132         default cpu.
18134         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
18135                 2002-10-31  Dale Johannesen <dalej@apple.com>
18137         * haifa-sched.c (find_set_reg_weight): New function.
18138         (find_insn_reg_weight): Use the new function.
18139         (schedule_block): Do sorting ready queue always
18140         after insn issue.
18142         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
18144         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
18146         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
18148         * haifa-sched.c (choice_entry): New structure.
18149         (choice_stack, cycle_issued_insns): New variables.
18150         (max_issue): Rewrite it.
18151         (choose_ready): Set up ready_try for unknown insns too.
18152         (schedule_block): Allocate and free choice_stack.  Set up
18153         and modify cycle_issued_insns.
18155         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
18156         with and without filling the bundle.
18157         (bundling): Combine calls of issue_nops_and_insn.
18159         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
18161         * config/ia64/itanium1.md: New file.
18163         * config/ia64/itanium2.md: New file.
18165         * config/ia64/ia64.md: Move DFA descriptions into the new files.
18166         Remove the old pipeline description.
18168         * config/ia64/ia64.c (ia64_override_options): Add aliases of
18169         itanium processor names.
18171         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
18173         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
18174         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
18176         * config/ia64/ia64.md: Add descriptions for Itanium2.
18178         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
18180         * config/ia64/ia64.h (processor_type): New enumeration.
18181         (ia64_tune, ia64_tune_string): New external declarations.
18182         (TARGET_OPTIONS): Add option `tune='.
18184         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
18185         variables.
18186         (ia64_override_options): Set up `ia64_tune'.
18187         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
18188         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
18189         (bundling): Add nops for MM-insns only for Itanium.
18190         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
18191         Itanium.
18193         * config/ia64/ia64.md (cpu): New attribute.
18194         (DFA description): Enable it only for Itanium.
18196         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
18197                     Richard Henderson  <rth@redhat.com>
18199         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
18200         MASK_EARLY_STOP_BITS.
18201         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
18202         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
18203         `early-stop-bits'.
18205         * config/ia64/ia64.c (ia64_dfa_new_cycle,
18206         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
18207         instead of TARGET_TUNE_STOP_BITS.
18209         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
18210         `-mearly-stop-bits'.
18212         * config/ia64/ia64.c (automata_option "v"): Comment it.
18214         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
18216         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
18217         New macros.
18218         (TARGET_SWITCHES): Add entries for the new option.
18220         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
18221         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
18222         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
18223         global variables.
18224         (ia64_sched_reorder2): Set up `clocks'.
18225         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
18226         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
18227         queue when TARGET_TUNE_STOP_BITS.
18228         (bundling): Insert additional nops for MM-insns.
18229         (final_emit_insn_group_barriers): Add insertion of stop bits
18230         according `stops_p'.
18231         (ia64_reorg): Initiate the new varibales.
18233         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
18235         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
18237         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
18238         insns at the end of block insn scheduling.
18240         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
18242         * sched-deps.c (remove_dependence, group_leader): Remove it.
18243         (add_dependence): Add dependence to group leader to.
18244         (set_sched_group_p): Add dependence to the first insn of the
18245         schedule group too.
18246         (sched_analyze_insn): Make dependence to jump as anti-dependence.
18247         Change true dependence by anti-dependence when
18248         `reg_pending_barrier'.
18250         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
18251         add_branch_dependences): Ignore schedule groups.
18253         * sched-ebb.c (init_ready_list): Ditto.
18255         * (move_insn, set_priorities): Ditto.
18257         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
18258         flag is clear after reload.
18259         (adjust_cost): Change cost only for output dependencies.
18261         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
18263         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
18265         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
18267         * target.h (gcc_target): Add member
18268         `dependencies_evaluation_hook'.
18270         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
18271         macro.
18272         (TARGET_SCHED): Add initiatialization of the new member.
18274         * sched-ebb.c: Include `target.h'.
18275         (schedule_ebb): Call `dependencies_evaluation_hook'.
18277         * sched-rgn.c (schedule_region): Call
18278         `dependencies_evaluation_hook'.
18280         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
18281         New macro.
18282         (ia64_dependencies_evaluation_hook): New function.
18284         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
18285         Describe the new hook.
18287         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
18289         * target.h (gcc_target): Add members
18290         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
18292         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
18293         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
18294         macros.
18295         (TARGET_SCHED): Add initiatialization of the new members.
18297         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
18298         insn scheduling too.
18299         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
18300         initialize `ready_try'.
18301         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
18302         `dfa_new_cycle' says not to do it.
18304         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
18305         bundling.
18307         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
18309         * config/ia64/ia64.c: Include `hashtab.h'.
18310         (ia64_first_cycle_multipass_dfa_lookahead_guard,
18311         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
18312         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
18313         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
18314         bundle_state_eq_p, insert_bundle_state,
18315         initiate_bundle_state_table, finish_bundle_state_table,
18316         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
18317         get_template, get_next_important_insn, bundling): New functions.
18318         (ia64_internal_sched_reorder): Remove it.
18319         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
18320         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
18321         (ia64_safe_itanium_requires_unit0): Remove it.
18322         (group_barrier_needed_p): Place group barrier right before a real
18323         insn.
18324         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
18325         Remove them.
18326         (bundle_name): New variable.
18327         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
18328         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
18329         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
18330         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
18331         temp_dfa_state, prev_cycle_state): New global variables.
18332         (insn_matches_slot, maybe_rotate, finish_last_head,
18333         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
18334         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
18335         find_best_packet, itanium_reorder, dump_current_packet,
18336         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
18337         (sched_data, sched_ready, sched_types): Remove them.
18338         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
18339         `init_insn_group_barriers'.
18340         (ia64_sched_reorder, ia64_sched_reorder2): Call
18341         ia64_dfa_sched_reorder.
18342         (ia64_variable_issue): Rewrite it.
18343         (bundle_state): New structure.
18344         (index_to_bundle_states, bundle_states_num,
18345         allocated_bundle_states_chain, free_bundle_state_chain): New
18346         global variables.
18347         (ia64_sched_finish): Add stop bits and call `bundling' after the
18348         2nd insn scheduling.
18349         (ia64_use_dfa_pipeline_interface): Return zero always.
18350         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
18351         insn scheduling.
18352         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
18353         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
18354         (ia64_reorg): Add bundling insns.
18356         * doc/tm.texi
18357         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
18358         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
18360         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
18362         * config/ia64/ia64.md: Add Itanium1 DFA description.
18363         (itanium_class): Add `nop' and `pre_cycle'.  Add
18364         define_function_unit for `nop'.
18365         (nop): Change attribute `itanium_class'.
18366         (pre_cycle): New define_insn.
18368         * config/ia64/ia64-protos.h (bundling_p): New external variable.
18369         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
18370         ia64_produce_address_p): New function prototypes.
18372         * config/ia64/ia64.c (bundling_p): New global variable.
18373         (ia64_use_dfa_pipeline_interface,
18374         ia64_first_cycle_multipass_dfa_lookahead,
18375         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
18376         functions.
18377         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
18378         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
18379         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
18380         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
18381         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
18382         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
18383         (dfa_pre_cycle_insn): New variable.
18385         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
18387         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
18388         constructions.
18390         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
18391         New function prototypes.
18393         * genattrtab.c (main): Process the new constructions.
18395         * genautomata.c (gen_presence_absence_set,
18396         process_presence_absence_names, process_presence_absence_patterns,
18397         add_presence_absence, check_absence_pattern_sets): Add parameter
18398         `final_p'.
18399         (unit_decl): Add new members `final_presence_list' and
18400         `final_absence_list'.
18401         (unit_pattern_rel_decl): Add new member `final_p'.
18402         (gen_final_presence_set, gen_final_absence_set): New functions.
18403         (process_decls): Use member `final_p'.
18404         (temp_reserv): New global variable.
18405         (reserv_sets_are_intersected): Add processing `final_presence_set'
18406         and `final_absence_set'.
18407         (initiate_states): Allocate `temp_reserv'.
18408         (unit_final_presence_set_table, unit_final_absence_set_table): New
18409         gloabal variables.
18410         (initiate_presence_absence_pattern_sets): Initiate them.
18411         (NDFA_to_DFA): Fix typo.
18412         (output_description): Output `final_presence_set' and
18413         `final_absence_set'.
18415         * doc/md.texi (final_presence_set, final_absence_set): Describe
18416         them.
18418         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
18420         * genautomata.c (transform_3): Process a missing case (nothing on
18421         unit place).
18423         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
18425         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
18426         comments about queried units and the minimization.
18428         * doc/md.texi: Ditto.
18430         * genautomata.c (create_composed_state): Return nonzero if the new
18431         state has been created.
18432         (first_cycle_unit_presence): New function.
18433         (state_is_differed): Add new parameter.  Use the new function.
18434         Take queried units into account.
18435         (partition_equiv_class): Pass additional parameter to
18436         `state_is_differed'.
18437         (merge_states): Process composed states too.
18438         (build_automaton, create_automata, output_min_issue_delay_table,
18439         output_tables, output_statistics): Output more information.
18440         (output_reserved_units_table): Use function
18441         `first_cycle_unit_presence'.
18442         (output_tables): Output table of queried units even if the
18443         minimization is switched on.
18444         (write_automata): Output code for querying units even if the
18445         minimization is switched on.
18447         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
18449         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
18450         syntax of the constructions.
18452         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
18453         extended syntax of the constructions.
18455         * genautomata.c (unit_rel_decl): Rename it to
18456         `unit_pattern_rel_decl'.
18457         (pattern_set_el, pattern_reserv): New structures.
18458         (pattern_set_el_t, pattern_reserv_t): New types.
18459         (gen_presence_absence_set): New function.
18460         (process_presence_absence): Remove it.
18461         (process_presence_absence_names,
18462         process_presence_absence_patterns): New functions.
18463         (get_presence_absence_set): Remove it.
18464         (initiate_presence_absence_sets): Rename it on
18465         `initiate_presence_absence_pattern_sets'.  Use new function
18466         `form_reserv_sets_list'.
18467         (form_reserv_sets_list, check_presence_pattern_sets,
18468         check_absence_pattern_sets, output_pattern_set_el_list): New
18469         functions.
18470         (unit_decl): Change types of members `presence_list' and
18471         `absence_list'.
18472         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
18473         (decl): Change types of members `excl', `presence', and `absence'.
18474         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
18475         at the end of the vector.
18476         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
18477         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
18478         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
18479         (gen_presence_set, gen_absence_set): Use new function
18480         `gen_presence_absence_set'.
18481         (add_presence_absence): Process `pattern_list' instead of
18482         `source_list'.
18483         (process_decls): USe new functions
18484         `process_presence_absence_names' and
18485         `process_presence_absence_patterns'.
18486         (reserv_sets_are_intersected): Use new function
18487         `check_presence_pattern_sets'.
18488         (presence_set, absence_set): Remove them.
18489         (unit_presence_set_table, unit_absence_set_table): New global
18490         variables.
18491         (output_description): Use new function
18492         `output_pattern_set_el_list'.
18493         (generate): Use `initiate_presence_absence_pattern_sets'.
18495         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
18497         * genattr.c (main): Add output of prototype of new interface
18498         function `dfa_clean_insn_cache'.
18500         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
18501         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
18502         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
18503         the generated code.
18504         (write_automata): Call the new function.
18506 2003-01-09  Jan Hubicka  <jh@suse.cz>
18508         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
18509         correctly.
18511 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
18513         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
18515 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
18517         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
18518         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
18519         (CONSTRAINT_LEN): Provide default definition.
18520         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
18521         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
18522         (EXTRA_CONSTRAINT_STR): Likewise.
18523         (REG_CLASS_FROM_CONSTRAINT): Define.
18524         * genoutput.c (check_constraint_len, constraint_len): New functions.
18525         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
18526         constraint / modifier.
18527         (gen_insn): Call check_constraint_len.
18528         * local-alloc.c (block_alloc): Update to use new macros / pass
18529         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
18530         * ra-build.c (handle_asm_insn): Likewise.
18531         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18532         (constrain_operands, peep2_find_free_register): Likewise.
18533         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
18534         * regmove.c (find_matches): Likewise.
18535         * reload.c (push_secondary_reload, find_reloads): Likewise.
18536         (alternative_allows_memconst): Likewise.
18537         * reload1.c (maybe_fix_stack_asms): Likewise.
18538         (reload_cse_simplify_operands): Likewise.
18539         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
18540         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
18541         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
18542         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
18543         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
18544         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
18546         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
18548 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
18550         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
18551         length.
18552         (*extzv_1_r_h8300hs): Likewise.
18553         (*extzv_1_r_inv_h8300): Likewise.
18554         (*extzv_1_r_inv_h8300hs): Likewise.
18556 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
18558         * config/h8300/h8300.h (PREDICATE_CODES): New.
18560 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
18562         * config/h8300/h8300.md (*addsi3_upper): New.
18563         (*iorsi3_shift): Likewise.
18564         (two splitters): Likewise.
18565         (*addsi3_shift): Likewise.
18566         (two splitters): Likewise.
18568 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
18570         * Makefile.in (optabs.o): Add dependency on basic-block.h.
18571         * basic-block.h (control_flow_insn_p): Fuction was exported.
18572         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
18573         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
18574         notes only when the region is contained in a single basic block.
18576 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
18578         PR inline-asm/8832
18579         * tree.h (expand_asm): New prototype.
18580         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
18581         to do so.
18582         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
18583         down to expand_asm.
18584         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
18585         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
18586         (volatile_refs_p) [ASM_INPUT]: Likewise.
18587         (side_effects_p) [ASM_INPUT]: Likewise.
18589 2003-01-09  Jan Hubicka  <jh@suse.cz>
18591         * i386.md (*mul*): FIx constraints; remove confused comment; fix
18592         athlon_decode attributes
18593         (imul/k8 optimization peep2s): New.
18595         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
18596         * i386.md (type attribute): Add ssecomi.
18597         (unit, memory, prefix attributes): Handle ssecomi.
18598         (cvt?2? patterns): Fix athlon_decode attribute
18599         (comi patterns): Set attribute to ssecomi.
18601         PR target/8343
18602         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
18604 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
18606         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
18607         that match register_operands.
18608         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
18609         register_operand the default case.
18611 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
18613         PR c/8032
18614         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
18615         an empty element, do not advance the pointer to unfilled
18616         fields if there are pending initializers.
18618 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
18620         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
18621         (install-gcc-tooldir, install-cpp, installdirs,
18622         install-common, install-driver, install-info, install-man,
18623         install-headers, install-include-dir, install-headers-tar,
18624         install-headers-cpio, install-headers-cp, install-mkheaders,
18625         install-collect2, uninstall): Prepend $(DESTDIR) to
18626         destination paths in all (un)installation commands.
18627         (install-driver): Rewrite $(LN) commands to support DESTDIR
18628         with "ln" as well as with "ln -s".
18629         (installdirs): Simply use mkinstalldirs.
18630         (install-libgcc, install-multilib): Also pass DESTDIR.
18631         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
18632         installation destination variable ldir.
18633         * config/alpha/t-osf4, config/arm/t-netbsd,
18634         config/ia64/t-hpux, config/mips/t-iris5-6,
18635         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
18636         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
18637         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
18638         in the definition of SHLIB_INSTALL.
18639         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
18640         $(libsubdir) in the installation commands.
18642 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18644         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
18645         non-optimizing compile.
18646         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
18647         compile.
18649 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
18651         * config/i386/i386.c (ix86_attribute_table): Add new attributes
18652         ms_struct and gcc_struct.
18653         (ix86_handle_struct_attribute): New function.
18654         (ix86_ms_bitfield_layout_p): Update to take new attributes
18655         into account.
18656         * doc/extend.texi: Document new attributes.
18657         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
18659 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
18661         PR optimization/8750
18662         * config/i386/i386.c (ix86_expand_prologue): Don't allow
18663         scheduling pass to move insns across __alloca call.
18665 2003-01-08  Dale Johannesen  <dalej@apple.com>
18667         * config/rs6000/rs6000.md:  Replace *store_multiple_string
18668         with *stmsi[3-8].
18670 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
18672         PR target/9210
18673         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
18674         Set SYMBOL_REF_FLAG on local data sym_ref.
18676 2003-01-08  Dale Johannesen  <dalej@apple.com>
18678         * function.c (assign_parms):  Don't set pretend_args_size if
18679           REG_PARM_STACK_SPACE.
18680           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
18681           pretend_args_size.
18683 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
18685         * gcc.hlp: Delete.
18687 2003-01-09  Jan Hubicka  <jh@suse.cz>
18689         * i386.c  (ix86_expand_int_addcc): Fix thinko.
18691 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
18693         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
18694         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
18695         as hook_bool_tree_hwi_hwi_tree_true.
18696         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
18697         (rs6000_emit_epilogue): Same.
18698         (rs6000_output_mi_thunk): Re-implement as RTL.
18699         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
18700         xcoffout_declare_function if any debugging enabled.
18702 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
18704         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
18705         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
18706         * config/mips/mips.h (enum processor_type): Rename
18707         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
18708         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
18709         Add PROCESSOR_M4K.
18710         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
18711         (ISA_MIPS32R2): New define.
18712         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
18713         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
18714         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
18715         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
18716         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
18717         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
18718         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
18719         compiling MIPS16 code.
18720         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
18721         comment.
18722         (ISA_HAS_SEB_SEH): New define.
18723         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
18724         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
18725         processor_type value renaming.  Add support for MIPS32R2.
18726         Clean up comments, and move "sb1" entry with other MIPS64 CPU
18727         entries.
18728         (override_options): Reimplement -mipsN option handling so that
18729         it will work correctly for -mips32r2.  Avoid branch-likely
18730         instructions on MIPS32R2.
18731         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
18732         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
18733         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
18734         (extendhisi2_hw, extendqisi2_hw): New.
18735         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
18736         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
18737         MIPS32R2, and MIPS64.
18738         (LINK_SPEC): Pass -mips32r2 to linker.
18739         * config/mips/t-isa3264: Built -mips32r2 multilibs.
18740         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
18741         for mips32r2 in the -march description.  Alphabetically sort
18742         CPU names in the -march description.  Add long-missed -mips32
18743         and -mips64 to MIPS option summary.
18745         * config.gcc: Update copyright years to include 2003.
18746         * config/mips/mips.c: Likewise.
18747         * config/mips/mips.h: Likewise.
18748         * config/mips/mips.md: Likewise.
18749         * config/mips/netbsd.h: Likewise.
18750         * doc/invoke.texi: Likewise.
18752 2003-01-08  Andreas Schwab  <schwab@suse.de>
18754         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
18755         variable.
18756         * configure: Regenerated.
18758 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
18760         * config/h8300/h8300.c (output_logical_op): Replace byte/word
18761         extraction of det with b0, b1, w0, w2, etc.
18762         (compute_logical_op_length): Likewise.
18763         (compute_logical_op_cc): Likewise.
18765 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
18767         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
18768         HIGH on all variants.
18770 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
18772         * Makefile.in (PARTITION_H): New.
18773         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
18774         * basic-block.h: Include hard-reg-set.h.
18776 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
18778         * arm.h (ENABLE_XF_PATTERNS): Delete.
18779         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
18780         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
18781         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
18782         (cmpxf_trap): Delete.
18783         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
18785 2003-01-08  Jan Hubicka  <jh@suse.cz>
18787         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
18788         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
18789         (add??cc): New expanders.
18790         * i386.c (expand_int_addcc): New function.
18791         * i386-protos.h (expand_int_addcc): Declare.
18793         * alias.c (memory_modified_1): New static function.
18794         (memory_modified): New static varaible.
18795         (memory_modified_in_insn_p): New global function.
18796         * rtl.h (memory_modified_in_insn_p): Declare.
18797         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
18798         references.
18800         * expr.h (emit_conditional_add): Declare.
18802 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
18804         PR other/8947
18805         * doc/invoke.texi (-malign-double): Explain that the option breaks
18806         binary compatibility.
18808 2003-01-08  Andreas Schwab  <schwab@suse.de>
18810         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
18811         should come from the generic *-*-linux* entry.
18813 2003-01-07  Jan Hubicka  <jh@suse.cz>
18815         * cselib.c (cselib_current_insn_in_libcall): New static variable.
18816         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
18817         we are inside libcall.
18818         * cselib.h (elt_loc_list): Add in_libcall.
18819         * gcse.c (do_local_cprop): Do not copy propagate using insns
18820         in libcalls.
18822 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
18824         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
18825         not normally affect to issue rate.
18827 2003-01-07  Jan Hubicka  <jh@suse.cz>
18829         * genopinit.c (optabs): Add addc_optab.
18830         * ifcvt.c (noce_try_store_flag): Rename to ...
18831         (noce_try_addcc): ... this one; handle generic conditional increment.
18832         (noce_process_if_block): Update noce_try_addcc call.
18833         * optabs.c (emit_conditional_add): New.
18834         (init_obtabs): Initialize addc_optab.
18835         * optabs.h (optab_index): Add OTI_addcc.
18836         (addcc_optab): New macro.
18837         * md.texi: Document addMcc
18839         PR target/8322
18840         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
18841         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
18842         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
18844         * reload1.c (delete_output_reload): Avoid repeated attempts
18845         to delete insn.
18847 2003-01-07  Andreas Schwab  <schwab@suse.de>
18849         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
18850         Move --enable-initfini-array check ...
18851         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
18852         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
18853         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
18854         * configure: Rebuild.
18856 2003-01-07  Richard Henderson  <rth@redhat.com>
18858         * alias.c (find_base_value): Only use new_reg_base_value shortcut
18859         if the register is set once.
18861 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
18863         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
18864         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
18865         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
18867 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
18868             Sunil Davasam  <sunil.k.davasam@intel.com>
18870         PR libstdc++/9076
18871         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
18872         DW_CFA_same_value, read next and ignore.
18874 2003-01-07  Richard Henderson  <rth@redhat.com>
18876         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
18878 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
18880         * cfg.c: Include alloc-pool.h
18881         (edge_pool): New pool.
18882         (bb_pool): New pool.
18883         (first_deleted_edge): Remove.
18884         (first_deleted_block): Remove.
18885         (init_flow): Alloc/free the pools.
18886         (free_edge): Use pools.
18887         (alloc_block): Ditto.
18888         (expunge_block): Ditto.
18889         (cached_make_edge): Ditto.
18891         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
18893 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
18895         * et-forest.c: Include alloc-pool.h.
18896         (struct et_forest): Add node_pool and occur_pool.
18897         (et_forest_create): Create the new pools.
18898         (et_forest_delete): Delete them.
18899         (et_forest_add_node): Allocate and free using pools.
18900         (et_forest_add_edge): Ditto.
18901         (et_forest_remove_node): Ditto.
18902         (et_forest_remove_edge): Ditto.
18904         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
18906 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
18908         * config/h8300/h8300.c (output_logical_op): Simplify and
18909         optimize the handling of SImode.
18910         * config/h8300/h8300.c (compute_logical_op_length): Update
18911         accordingly.
18912         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
18914 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
18916         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
18917         big-endian correction to indirect arguments too.
18919 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
18921         Segher Boessenkool  <segher@koffie.nl>
18923         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
18924         (alt_reg_names): Ditto, fix formatting.
18925         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
18927 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
18929         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
18930         (output_logical_op): Constify intval and det.
18931         (compute_logical_length): Likewise.
18932         (compute_logical_cc): Likewise.
18933         (output_a_shift): Constify mask.
18934         (h8300_encode_label): Constify len.
18936 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
18938         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
18939         (h8300_expand_epilogue): Likewise.
18941 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
18943         Segher Boessenkool  <segher@koffie.nl>
18945         * config/rs6000/altivec.md: Remove spaces from assembler
18946         instruction argument lists.
18948 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18950         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
18951         c4x_assembler_function_p.
18952         (c4x_null_epilogue_p): Complement return value, all uses updated.
18953         (c4x_insert_attributes): Add naked.
18954         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
18955         * doc/extend.texi: Update C4x function attributes.
18957 2003-01-06  Richard Henderson  <rth@redhat.com>
18959         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
18960         properly when changing "local-ness".
18961         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
18963 2003-01-06  Dale Johannesen  <dalej@apple.com>
18965         * config/darwin-protos.h:  Add prototypes for new section functions.
18967 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
18969         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
18970         to EABI.
18972 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
18974         * hwint.h: If the current compiler has no 64-bit type at all,
18975         make HOST_WIDEST_INT 32 bits.
18977 2003-01-06  Eric Christopher  <echristo@redhat.com>
18979         * config/mips/mips.md (movdf_internal2): Fix constraints.
18981 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
18983         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
18985 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
18987         * config/mips/mips.md (leadi): Use dla rather than la.
18989 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
18991         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
18992         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
18994 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
18996         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
18997         redefinition.
18999 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
19001         * config/h8300/h8300.md (*extzv_8_23): New.
19003 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19005         * pa64-hpux.h (JCR_SECTION_NAME): Define.
19006         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
19007         USE_EH_FRAME_REGISTRY when defining.
19009 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
19011         * config/h8300/h8300.c (output_a_shift): Do not output a
19012         variable shift.
19013         * config/h8300/h8300.md (two splitters): New.
19015 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
19017         * config/mips/mips.md: Disable the movstrsi define_split.
19019 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19021         * alloc-pool.c: Don't include "libiberty.h".
19022         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
19023         * convert.c (convert_to_real): Hide unused variable.
19025 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19027         * Makefile.in (gtyp-gen.h): Const-ify.
19028         * gcov-dump.c (tag_table): Likewise.
19030 2003-01-04  Bruce Korb  <bkorb@gnu.org>
19032         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
19033         of *both* the file name and the fix name.
19035 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
19037         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
19038         collect2.
19039         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
19040         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
19041         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
19042         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
19043         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
19044         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
19045         elfos.h.
19046         (EH_FRAME_IN_DATA_SECTION): Delete define.
19047         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
19048         (STARTFILE_SPEC): Use crtbegin.o.
19049         (ENDFILE_SPEC): Use crtend.o.
19050         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
19051         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
19052         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
19053         DTOR_LIST_BEGIN): Define.
19054         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
19055         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
19056         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
19058 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
19060         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
19061         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
19062         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
19063         Cleanup handling of replacement text.
19064         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
19066 2003-01-04  Bruce Korb  <bkorb@gnu.org>
19068         * fixinc/tests/base/math.h: removed obsolete results
19069         * fixinc/tests/base/stdlib.h: ditto
19070         * fixinc/tests/base/sys/param.h: ditto
19071         * fixinc/tests/base/sys/stat.h: ditto
19072         * fixinc/tests/base/time.h: ditto
19073         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
19074         * fixinc/tests/base/sys/byteorder.h: ditto
19075         * fixinc/inclhack.def: Remove superfluous backslashes
19077 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
19079         * config/h8300/h8300-protos.h: Add prototypes for
19080         the new functions defined below.
19081         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
19082         define.
19083         (dosize): Emit RTL instead of assembly code.
19084         (push): Likewise.
19085         (pop): Likewise.
19086         (h8300_output_function_prologue): Remove.
19087         (h8300_expand_prologue): New.
19088         (h8300_expand_epilogue): New.
19089         (h8300_output_function_epilogue): Do only the reset of
19090         pragma_saveall.
19091         * config/h8300/h8300.md (push_h8300): New.
19092         (push_h8300hs): Likewise.
19093         (pop_h8300): Likewise.
19094         (pop_h8300hs): Likewise.
19095         (*stm_h8300s_2): Change the name to stm_h8300s_2.
19096         (*stm_h8300s_3): Change the name to stm_h8300s_3.
19097         (*stm_h8300s_4): Change the name to stm_h8300s_4.
19098         (*ldm_h8300s_2): New.
19099         (*ldm_h8300s_3): Likewise.
19100         (*ldm_h8300s_4): Likewise.
19101         (return): Likewise.
19102         (*return_1): Likewise.
19103         (prologue): Likewise.
19104         (epilogue): Likewise.
19105         (monitor_prologue): Likewise.
19107 2003-01-03  Dale Johannesen  <dalej@apple.com>
19109         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
19110           machopic_picsymbol_stub1.
19111           (EXTRA_SECTION_FUNCTIONS):  Ditto.
19112         * rs6000/rs6000.c:  Update copyright.
19113           (machopic_output_stub):  Use them.  Remove an insn from stub code.
19115 2003-01-02  Jason Merrill  <jason@redhat.com>
19117         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
19119         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
19120         static/external decls.
19122         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
19123         outermost scope.
19124         * c-decl.c (c_make_fname_decl): Push the decls there, too.
19126 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
19128         * config/h8300/h8300-protos.h: Add a prototype for
19129         h8300_current_function_interrupt_function_p.
19130         * config/h8300/h8300.c (interrupt_handler): Remove.
19131         (os_task): Likewise.
19132         (monitor): Likewise.
19133         (pragma_interrupt): New.
19134         (WORD_REG_USED): Use
19135         h8300_current_function_interrupt_function_p.
19136         (dosize): Likewise.
19137         (h8300_output_function_prologue): Likewise.
19138         Do not set interrupt_handler, os_task, monitor.
19139         (h8300_output_function_prologue): Use
19140         h8300_current_function_interrupt_function_p.
19141         Do not set interrupt_handler, os_task, monitor.
19142         (h8300_current_function_interrupt_function_p): New.
19143         (h8300_pr_interrupt): Set pragma_interrupt.
19144         (h8300_insert_attributes): Reset pragma_interrupt.
19146 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19148         * doc/install.texi (Configuration): Fix markup for reference to
19149         gcc/config.gcc.
19151 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
19153         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
19154         (*iorhi3_two_qi): Likewise.
19155         (*iorsi3_zexthi): Likewise.
19156         (*xorhi3_zextqi): Likewise.
19157         (*xorsi3_zexthi): Likewise.
19158         (*xorsi3_zextqi): Likewise.
19160 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
19162         * config/h8300/h8300.c (stack_pointer_operand): New.
19163         (const_int_gt_2_operand): Likewise.
19164         (const_int_ge_8_operand): Likewise.
19165         * config/h8300/h8300.md (a splitter): Likewise.
19166         (a peephole2): Likewise.
19167         * config/h8300/h8300-protos.h: Add prototypes for the new
19168         functions above.
19170 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
19172         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
19173         objc/objc-act.h: Fix copyright years.
19175 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
19177         * doc/passes.texi: Fix documentation for -fssa-ccp
19179 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
19181         * gccbug.in: Update for new categories.
19183 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
19185         * config/h8300/h8300.md: Reorder some patterns.
19187 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
19189         * config/h8300/h8300.c (output_logical_op): Fix a warning.
19191 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
19193         * config/darwin-protos.h, config/c4x/c4x-protos.h,
19194         config/cris/cris-protos.h, config/i370/i370-protos.h,
19195         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
19196         config/v850/v850-protos.h: Use struct, and don't conditionally
19197         compile on GCC_C_PRAGMA_H.
19199 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
19201         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
19202         * config/h8300/h8300-protos.h: Likewise.
19203         * config/sh/sh-protos.h: Likewise.
19205 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
19207         * config/arm/arm-protos.h: Use struct cpp_reader instead of
19208         cpp_reader.
19209         * config/h8300/h8300-protos.h: Likewise.
19210         * config/sh/sh-protos.h: Likewise.
19212 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
19214         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
19215         arm_pr_long_calls_off): Use struct.
19216         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
19217         : Similarly.
19218         Don't include cpplib.h.
19219         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
19220         sh_pr_nosave_low_regs): Similarly.
19222 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
19224         * config/h8300/h8300.c: Include cpplib.h.
19226 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
19228         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
19229           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
19230           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
19231           "GCC" in the copyright header.
19233 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
19235         * c-pragma.c (c_register_pragma): New.
19236         (init_pragma): Use it.
19237         * c-pragma.h (cpp_register_pragma): Don't declare.
19238         (c_register_pragma): New.
19239         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
19240         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
19241         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
19242         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
19243         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
19244         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
19245         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
19246         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
19247         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
19248         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
19249         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
19250         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
19252 See ChangeLog.8 for earlier changes.