OSDN Git Service

* ChangeLog: Add missing closing parentheses.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-06-11  Uwe Stieber  <uwe@kaos-group.de>
2
3         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
4         powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
5         (sh-*-elf*): Add sh*-*-kaos* support.
6         * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
7         config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
8         config/sh/kaos-sh.h: New files.
9
10 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
11
12         * gcse.c (fis_get_condition): Make it a global function.
13         * reload1.c (reload_cse_move2add): Detect implicit sets.
14         * rtl.h: Add a prototype for fis_get_condition.
15
16 2003-06-11  Richard Henderson  <rth@redhat.com>
17
18         * stmt.c (expand_asm_operands): Don't warn for memories with
19         queued addresses.
20
21 2003-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
22
23         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
24         brackets.
25
26 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
27
28         * hooks.c (hook_int_size_t_constcharptr_int_0): New.
29         * hooks.h (hook_int_size_t_constcharptr_int_0): New.
30         * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
31         (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
32         * langhooks.c (lhd_decode_option): Remove.
33         * langhooks.h (struct lang_hooks): Remove decode_option.
34         * opts.c (handle_option): No longer use decode_option.
35
36 2003-06-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
37
38         * cfgloopanal.c (variable_initial_value): Update the set of altered
39         registers correctly.
40
41 2003-06-11  Roger Sayle  <roger@eyesopen.com>
42             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
43
44         * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
45         * config/i386/netbsd-elf.h: Likewise.
46         * config/m32r/m32r.h: Likewise.
47         * config/mn10300/mn10300.h: Likewise.
48         * config/stormy16/stormy16.h: Likewise.
49         * config/v850/v850.h: Likewise.
50         * config/vax/netbsd-elf.h: Likewise.
51         * config/xtensa/elf.h: Likewise.
52         * config/xtensa/linux.h: Likewise.
53
54 2003-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
55
56         * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
57         DWARF 2 default.
58
59         * config/mips/dbxmdebug.h: New file.
60         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
61         gas and --with-stabs.
62
63 2003-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
64
65         * expr.c (can_move_by_pieces): align argument may be unused.
66
67 2003-06-11  J"orn Rennecke <joern.rennecke@superh.com>
68
69         * expr.c (convert_move): Handle moves between two CONCATs.
70
71 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
72
73         * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
74         !TARGET_H8300.
75
76 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
77
78         * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
79         * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
80         (TARGET_RTL_DUMP): Likewise.
81         (TARGET_SWITHCES): Remove -mrtl-dump.
82
83 2003-06-10  Richard Henderson  <rth@redhat.com>
84
85         * optabs.c (gen_cond_trap): Fix prepare_operand typo.
86
87 2003-06-10  Richard Henderson  <rth@redhat.com>
88
89         * config/ia64/ia64.md (call_gp): Fix memory mode.
90
91 2003-06-10  James E Wilson  <wilson@tuliptree.org>
92
93         PR target/8812
94         * reload1.c (choose_reload_regs): For equiv reg, add loop over all
95         hard regs for reload_reg_used_at_all and reg_class_contents checks.
96
97 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
98
99         * config/h8300/h8300.c (print_operand): Remove support for
100         operand character 'b'.
101         Add the AND case to operand character 'c'.
102         * config/h8300/h8300.md (two anonymous patterns): Replace
103         operand character 'b' with 'c'.
104
105 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
106
107         * config/h8300/h8300.c (print_operand): Remove support for
108         operand character 'u'.
109
110 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
111
112         * configure.in: Fix typo.
113         * configure: Regenerate.
114
115 2003-06-10  Loren James Rittle  <ljrittle@acm.org>
116
117         * config/alpha/alpha.c (unicosmk_file_end): Add conditional
118         compilation guard.
119
120 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
121
122         * sh-protos.h (function_symbol): Declare.
123         * sh.c (expand_block_move, expand_ashiftrt): Use it.
124         (sh_expand_prologue, sh_expand_epilogue): Likewise.
125         (sh_initialize_trampoline): Likewise.
126         (function_symbol): New function.
127         * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
128         (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
129         (call_value_pop, shcompact_return_tramp): Likewise.
130
131         * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
132
133         * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
134         target register.
135
136 2003-06-10  DJ Delorie  <dj@redhat.com>
137
138         * doc/md.texi (Machine Constraints): Document stormy's Z
139         constraint.
140
141 2003-06-10  Geoffrey Keating  <geoffk@apple.com>
142
143         * except.c (call_site_base): Mark with GTY.
144
145 2003-06-10  Richard Earnshaw  <rearnsha@arm.com>
146
147         * arm-proto.h: Convert to ISO C90 prototypes.
148         * arm.c: Likewise.
149
150 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
151
152         * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
153
154 2003-06-10  Steve Ellcey  <sje@cup.hp.com>
155
156         * calls.c (expand_call): Convert structure_value_addr to Pmode if
157         necessary.
158
159 2003-06-10  Andrew Haley  <aph@redhat.com>
160
161         * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
162         (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
163         (lhd_decl_ok_for_sibcall): New.
164         * langhooks.c (lhd_decl_ok_for_sibcall): New.
165         * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
166         * calls.c (expand_call): Check lang_hook before generating a
167         sibcall.
168
169 2003-06-10  DJ Delorie  <dj@redhat.com>
170
171         * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
172         which matches (const_int 0) for addhi3.
173         * config/stormy16/stormy16.md: Document known constraints.
174         (addhi3): Handle adding zero.
175
176 2003-06-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
177
178         * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
179         * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
180         * config/m32r/m32r-protos.h: Prototype it.
181
182 2003-06-10  Janis Johnson  <janis187@us.ibm.com>
183
184         * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
185         common to rs6000 sysv targets.
186         * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
187         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
188
189 2003-06-10  Nick Clifton  <nickc@redhat.com>
190
191         * config.gcc: Add arm-wince-pe target.
192         * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
193         Add comment about default apcs26 support.
194         * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
195         multilib.
196         (MULTILIB_DIRNAMES): Add 'apcs32'.
197         * config/arm/t-wince-pe: New makefile fragment.
198         * config/arm/wince-pe.h: New file.  Overrides a few definitions
199         in arm/pe.h
200
201 2003-06-10  Roger Sayle  <roger@eyesopen.com>
202
203         * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
204         * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
205         when x is easily negated and f is sin, tan or atan.
206         (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
207         sin(x) with flag_unsafe_math_optimizations.
208         (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
209         sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
210
211 2003-06-10  Roger Sayle  <roger@eyesopen.com>
212
213         * fold-const.c (fold <EQ_EXPR>):  Don't fold x == x only if x
214         is a floating point type *and* we currently honor NaNs.
215         (fold <NE_EXPR>): Likewise.
216
217 2003-06-10  Mark Mitchell  <mark@codesourcery.com>
218
219         PR c++/11131
220         * tree-inline.c (inlinable_function_p): Call the language-specific
221         hook early.
222
223 2003-06-09  David Taylor  <dtaylor@emc.com>
224
225         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg):  Skip over
226         the f_res field.
227
228 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
229
230         * configure.in: Remove references to host_truncate_target.
231         * configure: Regenerate.
232         * config.gcc: Remove references to truncate_target,
233         host_truncate_target.
234
235         * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
236         Replace "build_canonical" with build, "host_canonical" with host.
237         * configure.in: Use GCC_TOPLEV_SUBDIRS.
238         * aclocal.m4: Include ../config/acx.m4.
239         * configure: Regenerate.
240
241 2003-06-09  David Taylor  <dtaylor@emc.com>
242
243         * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
244         bytes of padding in the __va_list_tag structure a name (reserved).
245
246 2003-06-09  Jason Merrill  <jason@redhat.com>
247
248         * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
249
250 2003-06-09  Osku Salerma  <osku@iki.fi>
251
252         * c-format.c (check_format_string, get_constant): New.
253         (handle_format_attribute, handle_format_arg_attribute,
254         decode_format_attr): Change to use above functions.
255
256 2003-06-09  Richard Henderson  <rth@redhat.com>
257
258         * stmt.c (expand_asm_operands): Re-word warning.
259
260 2003-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
261
262         PR target/8787
263         * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
264         if -masm=intel.
265
266 2003-06-09  James E Wilson  <wilson@tuliptree.org>
267
268         * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
269         config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
270         Add libgcc exception.
271
272 2003-06-09  David Edelsohn  <edelsohn@gnu.org>
273             Ayal Zaks  <gcchaifa@us.ibm.com>
274
275         * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
276         (insvsi*): Add insert_word attribute.
277         * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
278         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
279         power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
280
281 2003-06-09  Kazu Hirata  <kazu@cs.umass.edu>
282
283         * fold-const.c (fold): Fix a comment typo.
284
285 2003-06-09  Nathan Sidwell  <nathan@codesourcery.com>
286
287         * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
288         removed.
289
290 2003-06-09  J"orn Rennecke <joern.rennecke@superh.com>
291
292         * sh.c (gen_block_redirect): Use locators.
293
294 2003-06-09  Richard Earnshaw  <rearnsha@arm.com>
295
296         * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
297         cast to int.
298
299 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
300
301         * configure.in: Assume gas 2.14 and above can handle MIPS relocation
302         operators.
303         * configure: Regenerated.
304
305 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
306             Alexandre Oliva  <aoliva@redhat.com>
307
308         * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
309         (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
310         (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
311         n32/64 PIC.
312         (MUST_SAVE_REGISTERS): Delete.
313         * config/mips/mips.c (mips_frame_info): Remove extra_size field.
314         (machine_function): Add global_pointer field.
315         (mips_classify_constant): Check for (const $gp) using pointer equality
316         with pic_offset_table_rtx.
317         (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
318         (mips_restore_gp): Use current_function_outgoing_args_size.
319         (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
320         GP_REG_FIRST + 28.  Handle relocation strings that have
321         more than one '('.
322         (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
323         (mips_global_pointer): New function.
324         (mips_save_reg_p): New function, mostly split out from...
325         (compute_frame_size): ...here.  Remove handling of extra_size.
326         Reclaim args_size if no variables depend on it.  Don't treat gp
327         as a special case: handle it in the main GPR loop.
328         (mips_initial_elimination_offset): Fix comment.
329         (save_restore_insns): Save every register in the GPR mask,
330         removing distinction between mask and real_mask.
331         (mips_output_function_prologue): Update .frame psuedo-op after
332         the removal of extra_size.  Move the SVR4 PIC stack allocation
333         and cprestore instructions to mips_expand_prologue.
334         (mips_gp_insn): New function.
335         (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
336         the chosen global pointer.  Handle SVR4 PIC stack allocation
337         in the same way as other ABIs.  Adjust varargs code accordingly.
338         Emit a cprestore insn after allocating the stack.  Use mips_gp_insn
339         to emit the loadgp sequence.  Follow it with a loadgp_blockage
340         if not using explicit relocs.
341         (mips_output_function_epilogue): Reinstate the default gp register.
342         (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
343         (mips16_optimize_gp): Likewise.
344         * config/mips/mips.md (UNSPEC_LOADGP): Remove.
345         (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
346         (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
347         (loadgp): Remove.
348         (loadgp_blockage, cprestore): New instructions.
349         (builtin_setjmp_setup): Implement using emit_move_insn.  Use
350         pic_offset_table_rtx.
351         (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
352         (builtin_longjmp): Use gen_raw_REG to force use of $28.
353
354 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
355
356         * config/mips/mips-protos.h (mips_output_division): Declare.
357         * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
358         (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
359         (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
360         (TARGET_CHECK_ZERO_DIV): New macro.
361         (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
362         * config/mips/mips.c (mips_output_division): New function.
363         * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
364         account when calculating the default length of a division.
365         (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
366         Enable regardless of optimization level.  Use mips_output_division.
367         (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
368         udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
369         divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
370         modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
371         udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
372         umoddi3_internal): Remove.
373
374 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
375
376         * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
377         (mips_sw_reg_names): Likewise.
378         (mips_regno_to_class): Change hilo entry to NO_REGS.
379         (hilo_operand): Use MD_REG_P.
380         (extend_operator): New predicate.
381         (override_options): Remove 'a' constraint.
382         (mips_secondary_reload_class): Remove hilo handling.  Also remove
383         handling of (plus sp reg) reloads for mips16.
384         (mips_register_move_cost): Remove hilo handling.
385         * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
386         (MD_REG_LAST): Remove hilo from range.
387         (HILO_REGNUM): Delete.
388         (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
389         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
390         (PREDICATE_CODES): Add entry for extend_operator.
391         (DEBUG_REGISTER_NAMES): Change hilo entry to "".
392         * config/mips/mips.md: Remove hilo clobbers wherever they occur.
393         Remove constraints from multiplication define_expands.  Remove
394         clobbers from "decorative" define_expand patterns.
395         (UNSPEC_HILO_DELAY): Delete.
396         (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
397         (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
398         Adjust C code to just emit insns for !TARGET_64BIT.
399         (mulsidi3_internal): Rename to mulsidi3_32bit.
400         (mulsidi3_64bit): Use a "d" constraint for the destination.
401         Use extend_operator so that the pattern can handle umulsidi3 as well.
402         Split the instruction after reload.
403         (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
404         (umulsidi3_internal): Rename to umulsidi3_32bit.
405         (umulsidi3_64bit): Remove.
406         (*smsac_di, *umsac_di): Line-wrap fixes.
407         (udivsi3_internal): Don't allow operand 2 to be constant.
408         (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
409         (movdi_internal2, movsi_internal): Remove hilo alternatives.
410         (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
411
412 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
413
414         PR target/10913
415         * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
416         PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
417         PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
418         PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
419         SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
420         (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
421         PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
422         asm_out_text_file with asm_out_file.
423         * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
424         * config/mips/elf.h (TEXT_SECTION): Undefine.
425         * config/mips/elf64.h (TEXT_SECION): Undefine.
426         * config/mips/openbsd.h (TEXT_SECION): Undefine.
427         * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
428         (override_options): Disable small-data optimizations unless using
429         gas or explicit relocations.
430         (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
431         iris6_asm_named_section, iris6_asm_file_start): Remove code for
432         handling TARGET_FILE_SWITCHING.
433         (copy_file_data): Move into TARGET_IRIX6 block.
434
435 2003-06-08  Richard Henderson  <rth@redhat.com>
436
437         * expr.h (EXPAND_MEMORY): New.
438         * expr.c (expand_expr): Check it.
439         * stmt.c (expand_asm_operands): Provide it when the constraint
440         requires a memory.  Warn for memory input constraints without
441         a memory operand.
442
443 2003-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
444
445         * varasm.c: Don't include c-tree.h.
446
447 2003-06-08  Andreas Jaeger  <aj@suse.de>
448
449         * predict.h: Convert to ISO C90 prototypes.
450         * predict.c: Likewise.
451         * tree-dump.h: Likewise.
452         * tree-dump.c: Likewise.
453         * diagnostic.h: Likewise.
454         * diagnostic.c: Likewise.
455         * combine.c: Likewise.
456
457         * rtl.h: Convert prototypes of combine.c to ISO C90.
458
459 Sun Jun  8 21:27:41 CEST 2003  Jan Hubicka  <jh@suse.cz>
460
461         * cfglayout.c (insn_scope): New static function
462         (block_locators_*, line_locators*, file_locators*): New static varrays.
463         (scope_to_insns_initialize): Use them.
464         (insn_line, insn_file): New functions.
465         (scope_to_insns_finalize): Use insn_scope.
466         (prologue_locator, epilogue_locator): New global variables.
467         * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
468         make_call_insn_raw, emit_copy_of_insn_after): Use locators.
469         (emit_insn_after_scope, emit_insn_before_scope
470         emit_jump_insn_after_scope, emit_jump_insn_before_scope
471         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
472         (emit_insn_after_setloc, emit_insn_before_setloc
473         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
474         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
475         use locators.
476         * final.c (notice_source_line): Use locators.
477         (final_start_function): Set initial source file and line.
478         (final_scan_insn): Use locators.
479         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
480         noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
481         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
482         noce_process_if_block, find_cond_trap): Likewise.
483         * integrate.c (copy_insn_list): Likewise.
484         * jump.c (duplicate_loop_exit_test): LIkewise.
485         * print-rtl.c (print_rtx): Print locators.
486         * recog.c (peephole2_optimize): Likewise.
487         * rtl.h (INSN_SCOPE): Remove.
488         (emit_insn_after_scope, emit_insn_before_scope
489         emit_jump_insn_after_scope, emit_jump_insn_before_scope
490         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
491         (emit_insn_after_setloc, emit_insn_before_setloc
492         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
493         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
494         (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
495         * unroll.c (copy_loop_body): Use locators.
496         * function.c (set_insn_locators): New function.
497         (thread_prologue_and_epilogue_insns): Set the locators accordingly.
498
499 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
500
501         * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
502         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
503         _fixsfdi _fixunssfdi.
504         (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
505         popcounthi2.
506         (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
507         * config/h8300/clzhi2.c: New.
508         * config/h8300/ctzhi2.c: Likewise.
509         * config/h8300/parityhi2.c: Likewise.
510         * config/h8300/popcounthi2.c: Likewise.
511
512 Sun Jun  8 15:52:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
513
514         * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
515         * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
516
517         * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
518         (dump_bb): New based on old dump_bb in cfgrtl.c
519         (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
520         * cfghooks.h (cfgh_verify_flow_info): Return status.
521         * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
522         * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
523         (dump_bb): Remove generic parts.
524         (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
525         (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
526
527 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
528
529         * Makefile.in: Rename options.c and options.h to c-options.c and
530         c-options.h.
531         (OBJS): Remove options.o.
532         * c-opts.c: Don'tInclude c-options.h instead of options.h.
533         * opts.c: Don't include options.h.
534         (find_opt): Can't use enum opt_code or N_OPTS.
535         * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
536         * opts.sh: ... here.
537
538 2003-06-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
539             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
540
541         PR pch/9830
542         * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
543         if HAVE_MINCORE is defined.
544         (MAP_FAILED): Define if not defined.
545         (gt_pch_save): Test against MAP_FAILED.
546         (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
547         the mapping address to the preferred base after checking it
548         is possible to do so. Test against MAP_FAILED.
549         * configure.in: Test for the presence of mincore in libc.
550         * config.in: Regenerate.
551         * configure: Regenerate.
552
553 2003-06-07  Richard Henderson  <rth@redhat.com>
554
555         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
556         conditional compilation guard.
557
558 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
559
560         * optabs.c (expand_abs): Set result_unsignedp to 1 if
561         flag_trav is zero.
562
563 2003-06-07  Richard Henderson  <rth@redhat.com>
564
565         * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
566
567 2003-06-07  Richard Henderson  <rth@redhat.com>
568
569         * basic-block.h (EDGE_SIBCALL): New.
570         (EDGE_ALL_FLAGS): Update.
571         * cfg.c (dump_edge_info): Add sibcall name.
572         * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
573         * cfgrtl.c (purge_dead_edges): Handle sibcalls.
574
575 2003-06-07  Andreas Jaeger  <aj@suse.de>
576
577         * mklibgcc.in (lib2funcs): Remove _exit.
578         * libgcc2.c: Remove L_exit.
579         * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
580
581         * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
582
583         * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
584
585         * ggc.h: Convert to ISO C90 prototypes.
586         * ggc-none.c: Likewise.
587         * ggc-common.c: Likewise.
588         * ggc-page.c: Likewise.
589         * ggc-simple.c: Likewise.
590
591         * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
592
593         * system.h: Poison INIT_SECTION_PREAMBLE.
594
595 2003-06-07  Zack Weinberg  <zack@codesourcery.com>
596
597         * config.gcc (with_cpu handling): Translate sparc64 in
598         $machine to --with-cpu=v9.
599         * config/alpha/alpha.c
600         (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
601         (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
602
603         * target.h: New hook asm_out.file_end.
604         * target.h: Update to match.  New hook macro TARGET_ASM_FILE_END.
605         * toplev.c (compile_file): Use targetm.asm_out.file_end.
606         * system.h: Poison ASM_FILE_END.
607         * varasm.c (file_end_indicate_exec_stack): New.
608         * output.h: Prototype it.
609         * doc/tm.texi: Document TARGET_ASM_FILE_END and
610         file_end_indicate_exec_stack.  Delete references to attasm.h.
611
612         * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
613         (ASM_FILE_END): Delete; move code...
614         * config/darwin.c (darwin_file_end): Here; new function.
615         * config/darwin-protos.h: Prototype it.
616         * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
617         rename unicosmk_file_end.
618         * config/arm/aof.h (ASM_FILE_END): Delete; move code...
619         * config/arm/arm.c (aof_file_end): ... here; new static function.
620         Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
621         Make aof_dump_imports and aof_dump_pic_table static.
622         * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
623         Set TARGET_ASM_FILE_END to avr_file_end.
624         * config/c4x/c4x.c (c4x_file_end): Make static.  Take no arguments.
625         Set TARGET_ASM_FILE_END to c4x_file_end.
626         * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
627         make static. Take no arguments.  Set TARGET_ASM_FILE_END to
628         h8300_file_end.
629         * config/i370/i370.h (ASM_FILE_END): Delete; move code...
630         * config/i370/i370.c (i370_file_end): ... here; new static function.
631         Set TARGET_ASM_FILE_END to i370_file_end.
632          * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
633          Take no arguments.  Call file_end_indicate_exec_stack if
634          NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
635         * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
636         Define NEED_INDICATE_EXEC_STACK to 0.
637         * config/i386/linux.h, config/i386/linux64.h: Redefine
638         NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
639         * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
640         i386_pe_file_end.  Take no arguments.  Use ix86_file_end.
641         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
642         ia64_hpux_file_end, make static.  Take no arguments.
643         * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
644         commands_in_prologues, commands_in_epilogues): Delete.
645         (function_epilogue): Update to match.
646         * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
647         make static.  Take no arguments.
648         (iris6_asm_file_end): Rename iris6_file_end, make static, use
649         mips_file_end, take no arguments.
650         Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
651         appropriate.
652         * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
653         make static, take no arguments. Set TARGET_ASM_FILE_END to
654         mmix_file_end.
655         * config/pa/pa.c (output_deferred_plabels): Make static, take
656         no arguments.  Set TARGET_ASM_FILE_END to output_deferred_plabels.
657         * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
658         (ASM_FILE_END): Delete; move code...
659         * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
660         new static function.
661
662         * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
663         * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
664         Don't set ASM_FILE_END.
665         * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
666         * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
667         * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
668         file_end_indicate_exec_stack; don't set ASM_FILE_END.
669         * config/alpha/unicosmk.h, config/i386/cygming.h
670         * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
671         * config/arm/arm-protos.h, config/alpha/alpha-protos.h
672         * config/avr/avr-protos.h, config/c4x/c4x-protos.h
673         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
674         * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
675         * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
676
677 Sat Jun  7 18:32:13 CEST 2003  Jan Hubicka  <jh@suse.cz>
678
679         * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
680         specified.
681
682 Sat Jun  7 15:20:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
683
684         * Makefile.in (stageprofile_build): Kill redundant target.
685         * i386.c (mdep_reorg): Don't pad jumps for Athlon.
686
687 2003-06-07  Andreas Jaeger  <aj@suse.de>
688
689         * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
690
691         * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
692         * config/dsp16xx/dsp16xx.h: Likewise.
693         * config/i386/i386.h: Likewise.
694         * config/ip2k/ip2k.h: Likewise.
695
696 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
697
698         * Makefile.in (OJBS, c-opts.o): Update.
699         (c-options.c, c-options.h): Rename options.h and options.c.
700         (options.h): Rename options_.h.
701         (opts.o): New.
702         * c-common.h (c_common_handle_option): Replace c_common_decode_option.
703         (c_common_init_options): Update prototype.
704         * c-lang.c (c_init_options): Update prototype.
705         (LANG_HOOKS_HANDLE_OPTION): Override.
706         (LANG_HOOKS_DECODE_OPTION): Drop.
707         * c-opts.c: Include opts.h and options.h instead of c-options.h
708         and c-options.c.
709         (lang_flags): Move to file scope.
710         (find_opt, c_common_decode_option): Remove.
711         (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
712         CL_REJECT_NEGATIVE): Move to opts.h.
713         (missing_arg): Update prototype.
714         (c_common_init_options): Update for new prototype.
715         (c_common_handle_options): Filenames are passed as N_OPTS.
716         * hooks.c (hook_int_void_0): New.
717         * hooks.h (hook_int_void_0): New.
718         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
719         (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
720         (LANG_HOOKS_INITIALIZER): Update.
721         * langhooks.h (init_options): Update.
722         (handle_option): New.
723         * opts.c, opts.h: New files.
724         * opts.sh: Update c file to include opts.h and options.h.
725         * toplev.c: Include opts.h; change options.h to options_.h.
726         (parse_options_and_default_flags): Get lang_mask, use
727         handle_option for language-specific handling.
728         * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
729         (LANG_HOOKS_HANDLE_OPTION): Override.
730         (objc_init_options): Update.
731
732 2003-06-07  Magnus Kreth <magnus.kreth@gmx.de>
733             Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
734
735         PR other/7031
736         * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
737         gcov.
738
739 2003-06-07  Kelley Cook  <kelleycook@wideopenwest.com>
740
741         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
742         section names.
743         * configure: Regenerate.
744
745 2003-06-07  Alan Modra  <amodra@bigpond.net.au>
746
747         * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
748
749 2003-06-06  James E Wilson  <wilson@tuliptree.org>
750
751         PR inline-asm/10890
752         * reload1.c (merge_assigned_reloads): Abort only if two reloads have
753         different in fields.
754
755 2003-06-06  Nathanael Nerode  <neroden@gcc.gnu.org>
756
757         * configure.in: Make $(target_subdir) correspond with top level usage.
758         * Makefile.in: Likewise.
759         * configure: Regenerate.
760
761 2003-06-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
762
763         * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
764         ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
765         unsigned HOST_WIDE_INT.
766         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
767         Likewise.
768         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
769         Likewise.
770
771 2003-06-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
772
773         * doc/install.texi (Prerequisites): New section documenting
774         tools and packages necessary prior to building and/or
775         modifying GCC.
776         * doc/install.texi2html: Also generate prerequisites.html.
777
778 2003-06-06  Richard Earnshaw  <rearnsha@arm.com>
779
780         PR target/11052
781         * ifcvt.c (noce_process_if_block): Fail if the destination has
782         side-effects.
783
784 2003-06-06  Jason Merrill  <jason@redhat.com>
785
786         * stmt.c (resolve_asm_operand_names): Rename from
787         resolve_operand_names.  No longer static.  Avoid needless copying.
788         Don't build array of constraints.
789         (expand_asm_operands): Build it here.
790         * tree.h: Declare resolve_asm_operand_names.
791
792         * stmt.c (expand_decl): Put artificial vars into registers even
793         when not optimizing, and don't mark the regs as user vars.
794
795 2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
796
797         * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
798         of the generated register.
799
800 2003-06-06  Daniel Jacobowitz  <drow@mvista.com>
801
802         * config.gcc: Add a missing sparc64 case.
803
804 2003-06-06  Jakub Jelinek  <jakub@redhat.com>
805
806         * mklibgcc.in: Propagate .note.GNU-stack section if needed into
807         the .hidden assembly stubs.
808
809 2003-06-06  H.J. Lu <hongjiu.lu@intel.com>
810
811         * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
812         and x86_64-*-*.
813
814         * config/i386/mmintrin.h: Update version and add alternate
815         intrinsic names.
816         * config/i386/xmmintrin.h: Likewise.
817
818         * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
819         intrinsics to ...
820         * config/i386/emmintrin.h: Here. New file.
821
822 2003-06-06  Roger Sayle  <roger@eyesopen.com>
823
824         * fold-const.c (fold <ABS_EXPR>):  Re-fold the result of folding
825         fabs(-x) into fabs(x).  Use tree_expr_nonnegative_p to determine
826         when the ABS_EXPR (fabs or abs) is not required.
827         (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
828         always nonnegative from fold to here.  Additionally, cabs and fabs
829         are always non-negative, and pow and atan are non-negative if
830         their first argument is non-negative.
831
832         * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
833         Evaluate cabs of a constant at compile-time.  Convert cabs of a
834         non-complex argument into fabs.  Convert cabs(z) into
835         sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
836         -funsafe-math-optimizations or -ffast-math.
837         (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
838         Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
839
840 Thu Jun  5 20:51:09 CEST 2003  Jan Hubicka  <jh@suse.cz>
841
842         * sourcebuild.texi (Front End Directory): Document new hooks.
843
844 Fri Jun  6 11:02:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
845
846         * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
847         * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
848         stack frames.
849         (pro_epilogue_adjust_stack_rex64_2): New pattern
850
851 Fri Jun  6 11:03:14 CEST 2003  Jan Hubicka  <jh@suse.cz>
852                                Pop Sebastian
853                                Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
854
855         * cfghooks.h, cfghooks.c: New files.
856         * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
857         (OBJS): Add cfghooks.o.
858         (cfghooks.o): New rule.
859         * basic-block.h (split_edge): Rename to rtl_split_edge.
860         (verify_flow_info): Rename to rtl_verify_flow_info.
861         (cfghooks.h): Included here.
862         * cfgrtl.c (split_edge): Renamed rtl_split_edge.
863         (verify_flow_info): Renamed rtl_verify_flow_info.
864         * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
865
866         * basic-block.h (split_block, split_edge, flow_delete_block,
867         redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
868         (flow_delete_block_noexpunge):  Return void.
869         * cfg.c (verify_flow_info): New function.
870         * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
871         try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
872         Use delete_block.
873         * cfglayout.c (function_footer): Rename to...
874         (cfg_layout_function_footer): ... this variable
875         (unlink_insn_chain): Make global.
876         (fixup_reorder_chain, record_effective_endpoints): Update.
877         (cleanup_unconditional_jumps): Use delete_block.
878         (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
879         (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
880         (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
881         * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block):  Delete.
882         (cfg_layout_function_footer): Declare.
883         * cfgloopmanip (split_loop_bb): Do not update RBI.
884         (remove_bbs): Use delete_block.
885         (loop_reidrect_edge, loop_delete_branch_edge): Use
886         redirect_edge_and_branch.
887         (create_preheader): Use split_block and redirect_edge_and_branch_force.
888         (split_edge_with): Likewise.
889         * cfgrtl.c: Include cfglayout.h
890         (split_edge): Rename to ...
891         (rtl_split_edge) ... this one; make local.
892         (redirect_edge_and_branch): Rename to ...
893         (rtl_redirect_edge_and_branch) ... this one; make local.
894         (redirect_edge_and_branch_force): Rename to ...
895         (rtl_redirect_edge_and_branch_force) ... this one; make local.
896         (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
897         (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
898         cfglayout.c; update to directly call RTL counterparts.
899         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
900         * ifcvt.c (find_cond_trap): Use delete_block.
901         (find_if_case_1): Use delete_block.
902         (find_if_case_2): Use delete_block.
903         * rtl.h (unlink_insn_chain): Declare.
904         * toplev.c (rtl_reigster_cfg_hooks): New.
905
906 2003-06-05  Richard Henderson  <rth@redhat.com>
907
908         * recog.c (peephole2_optimize): Revert last change.
909
910 2003-06-05  Richard Henderson  <rth@redhat.com>
911
912         * recog.c (peephole2_optimize): Don't split block unless
913         can_throw_internal.
914
915 2003-06-06  Kazu Hirata  <kazu@cs.umass.edu>
916
917         * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
918         * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
919
920 2003-06-05  Kelley Cook  <kelleycook@wideopenwest.com>
921
922         PR optimization/4490
923         * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
924         * doc/invoke.texi (m96bit-long-double, m128bit-long-double):  Reword
925         documentation to accurately reflect what these options do.
926
927 2003-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
928
929         * config/sh/linux.h (STARTFILE_SPEC): Handle -pie.  Simplify.
930         (ENDFILE_SPEC): Redefine to handle -pie.
931
932 2003-06-05  Phil Edwards <phil@jaj.com>
933
934         * Makefile.in (qmtest-g++): Use target_alias, not target.
935
936 2003-06-05  Per Bothner  <pbothner@apple.com>
937
938         * toplev.c (push_srcloc):  Simplify behavior to save current location
939         and set current location to parameters.
940         (pop_srcloc):  Simplify semantics.
941         (lang_dependent_init):  Remove now-useless initial push_srcloc.
942
943 2003-05-06  Richard Henderson  <rth@redhat.com>
944
945         * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
946         language-specific tree codes.
947
948 2003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
949
950         PR middle-end/9986
951         * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
952         BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
953
954 Thu Jun  5 18:32:46 CEST 2003  Jan Hubicka  <jh@suse.cz>
955
956         * install.tex: Document profiledbootstrap.
957
958         * configure.in:  Add support for lang.stageprofile and
959         lang.stagefeedback
960         * Makefile.in (clean, distclean): Kill new stages
961         (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
962         (STAGE2_FLAGS_TO_PASS): ... this one.
963         (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
964         (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
965         (stageprofile_build, stageprofile_copy, stagefeedback_build,
966         stagefeedback_copy): New.
967         (restageprofile, restagefeedback, stageprofile-start,
968         stageprofile, stagefeedback-start): Likewise.
969
970 2003-06-05  David Miller  <davem@redhat.com>
971             Richard Henderson  <rth@redhat.com>
972
973         * optabs.c (HAVE_conditional_trap): Provide default.
974         (gen_conditional_trap): Likewise.
975         (init_optabs): Merge init_traps.
976         (gen_cond_trap): Use prepare_operand.  Restructure and avoid ifdef.
977
978 Thu Jun  5 14:59:44 CEST 2003  Jan Hubicka  <jh@suse.cz>
979
980         * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
981         is REG for nonzero_bits (REG) == 8.
982
983 Thu Jun  5 13:23:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
984
985         * i386.md (align): Fix warning; clarify what to do when no p2align
986         is available.
987
988 2003-06-05  Nick Clifton  <nickc@redhat.com>
989
990         * config.gcc (m32r-elf): Revert previous delta.
991         * config/m32r/t-m32r (crtinit.o): Fix rule to work with
992         multilibs.  Remove m32rx specific version.
993         (crtfini.o): Likewise.
994         (EXTRA_MULTILIB_PARTS): Define.
995
996 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
997
998         * doc/md.texi (Machine Constraints): Correct the meaning of
999         constraints related to floating-point registers on SPARC.
1000
1001 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
1002             Paolo Bonzini  <bonzini@gnu.org>
1003
1004         PR target/10663
1005         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
1006         assembler and linker output to /dev/null.
1007         Use a 'sed' construct instead of 'grep -A1'.
1008         * configure: Regenerate.
1009
1010 2003-06-04  Richard Henderson  <rth@redhat.com>
1011
1012         * config/i386/i386.c (struct ix86_address): Add seg.
1013         (no_seg_address_operand): New.
1014         (ix86_decompose_address): Restructure PLUS loop.  Accept one
1015         UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS.  Adjust ESP swap test
1016         to test for a regnum, not stack_pointer_rtx.
1017         (ix86_address_cost): Reduce cost if non-default segment.
1018         (legitimate_address_p): Remove UNSPEC_TP check.
1019         (get_thread_pointer): Add to_reg argument.  Don't represent
1020         the thread pointer as a memory load.
1021         (legitimize_tls_address): Split out of ...
1022         (legitimize_address): ... here.
1023         (print_operand_address): Handle parts.seg.
1024         (ix86_expand_move): Use legitimize_tls_address.
1025         (ix86_rtx_costs): Handle UNSPEC_TP.
1026         * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
1027         (TARGET_TLS_DIRECT_SEG_REFS): New.
1028         (TARGET_SWITCHES): Add tls-direct-seg-refs.
1029         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
1030         (PREDICATE_CODES): Add no_seg_address_operand.
1031         * config/i386/i386.md (lea_1): Use it.
1032         (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
1033         (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
1034         * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
1035         * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
1036         * doc/invoke.texi: Add -mtls-direct-seg-refs.
1037
1038 2003-06-04  Mark Mitchell  <mark@codesourcery.com>
1039
1040         * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
1041         (QMTEST_GPP_TESTS): Use "g++" by default.
1042         (stamp-qmtest): Tweak database creation.
1043         (QMTEST_DIR/context): Update context file format.
1044         (qmtest-g++): Tweak command-line.
1045
1046 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1047
1048         * Makefile.in (varasm.o): Don't set -Wno-error.
1049         * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
1050
1051 2003-06-04  Zack Weinberg  <zack@codesourcery.com>
1052
1053         PR bootstrap/3163
1054         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
1055         (gcc_AC_FUNC_MMAP_BLACKLIST): New.
1056         * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
1057         and AC_CHECK_FUNCS lists, respectively.  Use
1058         gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
1059         AC_FUNC_MMAP_FILE.
1060         * configure, config.in: Regenerate.
1061
1062 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1063
1064         * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
1065         * arm.c (arm_output_function_prologue): Fix format specifiers.
1066         * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
1067         * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
1068         HOST_WIDE_INT_PRINT_DEC.
1069         * vax.c (vax_output_function_prologue): Fix format specifiers.
1070
1071 2003-06-04  Richard Henderson  <rth@redhat.com>
1072
1073         * cse.c (find_best_addr): Consider binary operators even if second
1074         argument is not CONST_INT.
1075
1076 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1077
1078         * doc/invoke.texi (max-cse-path-length): Document.
1079
1080 2003-06-04  Richard Henderson  <rth@redhat.com>
1081
1082         * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
1083
1084 2003-06-04  Andrew Pinski <pinskia@physics.uc.edu>
1085
1086         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
1087         Remove semi-colon at the end of the expression.
1088
1089 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1090
1091         * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
1092         * i370.h (mvs_function_name_length): Likewise.
1093         * i960.h (CONSTANT_ALIGNMENT): Likewise.
1094         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1095         * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1096         * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1097         * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
1098         variable.
1099
1100 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
1101
1102         * config.gcc: Reorganize --with-cpu logic.  Set
1103         configure_default_options according to the default CPU, --with-cpu,
1104         --with-arch, --with-tune, --with-schedule, --with-abi, and
1105         --with-float.  Check for legal values of various options.
1106         * configure.in: Define configure_default_options in configargs.h.
1107         * configure: Regenerated.
1108         * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
1109         (TARGET_DEFAULT_FLOAT_P): New macros.
1110         * gcc.c (do_option_spec): New function.
1111         (struct default_spec, option_default_specs): New.
1112         (main): Call do_option_spec.
1113         * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
1114         config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
1115         config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
1116
1117         * doc/install.texi: Update --with-cpu documentation.  Mention
1118         --with-arch, --with-schedule, --with-tune, --with-abi, and
1119         --with-float.
1120         * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
1121
1122 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
1123
1124         * config.gcc: Only process --with-cpu logic in the third pass.
1125
1126 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
1127
1128         * config.gcc: Reorganize --with-cpu section.  Remove an
1129         obsolete comment about the default CPU for x86-64.  Fix
1130         a typo for the ep9312.  Update the list of supported PowerPC
1131         CPUs.  Support a limited set of new --with-cpu options
1132         for i386.
1133
1134 2003-06-04  Aldy Hernandez  <aldyh@redhat.com>
1135
1136         * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
1137         complex numbers <= 32 bits into two registers.
1138
1139 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1140
1141         * alpha.c (print_operand_address): Fix format specifier warnings.
1142         * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1143         * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1144         * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
1145         * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
1146         * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
1147         ASM_OUTPUT_SKIP): Likewise.
1148         * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1149         * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1150         * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
1151         Likewise.
1152         * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1153         * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
1154         * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
1155         * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1156         * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
1157         * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1158         * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1159         * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1160         * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1161         * svr3.h (ASM_OUTPUT_COMMON): Likewise.
1162
1163 2003-06-04  J"orn Rennecke <joern.rennecke@superh.com>
1164
1165         * c-decl.c (c_init_decl_processing): Clear input_file_name
1166         while building common nodes.
1167         * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
1168         Don't add working directory for strings like <built-in> .
1169
1170 2003-06-04  David Edelsohn  <edelsohn@gnu.org>
1171
1172         * doc/install.texi (*-ibm-aix*): Native as and ld required
1173         to bootstrap on AIX 5L.
1174
1175 2003-06-04  Richard Henderson  <rth@redhat.com>
1176
1177         * c-common.c (handle_cleanup_attribute): New.
1178         (c_common_attributes): Add it.
1179         * c-decl.c (finish_decl): Honor the cleanup attribute.
1180         * doc/extend.texi (Variable Attributes): Document it.
1181
1182         * unwind-c.c: New file.
1183         * Makefile.in (LIB2ADDEH): Add it.
1184         * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
1185         config/ia64/t-ia64: Likewise.
1186
1187 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
1188
1189         * function.c (trampolines_created): New variable.
1190         (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
1191         * function.h (trampolines_created): Add.
1192         * config/s390/linux.h (ASM_FILE_END): Define.
1193         * config/alpha/linux-elf.h (ASM_FILE_END): Define.
1194         * config/m68k/linux.h (ASM_FILE_END): Define.
1195         * config/rs6000/linux.h (ASM_FILE_END): Define.
1196         * config/rs6000/linux64.h (ASM_FILE_END): Define.
1197         * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
1198         * config/sparc/linux.h (ASM_FILE_END): Define.
1199         * config/sparc/linux64.h (ASM_FILE_END): Define.
1200         * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
1201         * config/i386/linux.h (SUBTARGET_FILE_END): Define.
1202         * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
1203
1204 Wed Jun  4 18:39:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
1205
1206         * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
1207         (ix86_reorg): Use it.
1208         * i386.md (align): New insn pattern.
1209
1210 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1211
1212         * toplev.c (rest_of_type_compilation): Fix typo.
1213
1214 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
1215             Alan Modra  <amodra@bigpond.net.au>
1216
1217         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
1218         * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
1219         * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
1220         * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
1221         * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
1222         * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
1223         (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
1224         * config/rs6000/rs6000.c (output_profile_hook): Likewise.
1225
1226         * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
1227         Pass it to $gcc_cv_as.
1228         * configure: Rebuilt.
1229
1230         * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
1231         (print_operand): Allow TARGET_AIX to be non-constant.
1232         (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
1233         Define unconditionally.
1234         (rs6000_elf_declare_function_name): New function.
1235         * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
1236         non-constant.
1237         * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
1238         to 1.
1239         (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
1240         [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
1241         is defined.
1242         (TARGET_AIX): Define to 1 if TARGET_64BIT.
1243         (PROCESSOR_DEFAULT): Remove.
1244         (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
1245         INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
1246         [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
1247         (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
1248         -m32 and -m64.
1249         (MULTILIB_DEFAULTS): Define.
1250         (SUBSUBTARGET_EXTRA_SPECS): Define.
1251         (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
1252         (TARGET_TOC): Define only if !RS6000_BI_ARCH.
1253         (TARGET_NO_TOC): Remove.
1254         [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
1255         TARGET_PROTOTYPE): Define to 0.
1256         (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
1257         (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
1258         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
1259         if !TARGET_64BIT.
1260         (USER_LABEL_PREFIX): Remove.
1261         (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
1262         (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
1263         if TARGET_64BIT.
1264         (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
1265         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
1266         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
1267         (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
1268         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
1269         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
1270         TARGET_64BIT.
1271         (RS6000_CALL_GLUE): Likewise.
1272         (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
1273         RESTORE_FP_SUFFIX): Likewise.
1274         (ASM_DECLARE_FUNCTION_NAME): Remove.
1275         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
1276         DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
1277         name if TARGET_64BIT.
1278         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
1279         !TARGET_64BIT.
1280         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
1281         (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
1282         (DRAFT_V4_STRUCT_RET): Define.
1283         (SIGNAL_FRAMESIZE): New enum value.
1284         (MD_FALLBACK_FRAME_STATE_FOR): Define.
1285         * config/rs6000/default64.h: New file.
1286         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
1287         options.
1288         (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
1289         to RS6000_ABI_NAME.  Only disallow mixing of -fPIC with -mcall-aixdesc
1290         if !TARGET_64BIT.
1291         [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
1292         (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
1293         function.
1294         (TARGET_OS_SYSV_CPP_BUILTINS): Define.
1295         (TARGET_OS_CPP_BUILTINS): Use it.
1296         (CPP_SYSV_SPEC): Remove.
1297         (CPP_SPEC): Remove cpp_sysv.
1298         (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
1299         Add SUBSUBTARGET_EXTRA_SPECS.
1300         (SUBSUBTARGET_EXTRA_SPECS): Define.
1301         * config/rs6000/biarch64.h: New file.
1302         * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
1303         New prototype.
1304         * config/rs6000/x-linux64: New file.
1305         * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
1306         multilibs.
1307         * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
1308         * config/rs6000/eabi-cn.asm: Likewise.
1309         * config/rs6000/tramp.asm: Likewise.
1310         * config/rs6000/sol-ci.asm: Likewise.
1311         * config/rs6000/sol-cn.asm: Likewise.
1312         * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
1313         (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
1314         * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
1315         _CALL_AIXDESC section.
1316         * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
1317         defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
1318         or default32.
1319
1320 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
1321
1322         * config.gcc: Revert accidentally committed ARM changes.
1323
1324 2003-06-04  Roger Sayle  <roger@eyesopen.com>
1325
1326         * builtins.c (dconstpi, dconste): New mathematical constants.
1327         (init_builtin_dconsts): New function to initialize dconstpi
1328         and dconste.
1329         (fold_builtin): Optimize exp(1.0) = e.  Evaluate exp(x) at
1330         compile time with -ffast-math when x is an integer constant.
1331         Optimize tan(0.0) = 0.0.  Optimize atan(0.0) = 0.0,
1332         atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
1333
1334 2003-06-04  Roger Sayle  <roger@eyesopen.com>
1335
1336         * calls.c (expand_call): Avoid calling pure or const functions
1337         when the result is ignored (or void) and none of the arguments
1338         are volatile.  Move warning diagnostic earlier in function.
1339
1340 2003-06-04  Andreas Jaeger  <aj@suse.de>
1341
1342         * system.h: Do not poison TDESC_SECTION_ASM_OP,
1343         RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
1344
1345 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1346
1347         * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
1348         optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
1349         handle %ll, optimize regular character case.
1350
1351 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1352
1353         * Makefile.in (cse.o): Add params.h dependency.
1354         * cse.c: Include params.h.
1355         (PATHLENGTH): Removed.
1356         (struct cse_basic_block_data): Make path array dynamic.
1357         (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
1358         of PATHLENGTH.
1359         (cse_main, cse_basic_block): Allocate path array.
1360         * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
1361
1362 Wed Jun  4 09:49:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
1363
1364         * i386.c (ix86_reorg): Replace the jump instead of adding nop.
1365         * i386.md (UNSPEC_REP): New constant.
1366         (return_internal_long): New pattern.
1367
1368 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1369
1370         PR optimization/11018
1371         * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
1372         consistently to decide whether the scratch register is really
1373         required.
1374
1375 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1376
1377         PR optimization/10876
1378         * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
1379         new 'O' constraint for constant 4096.
1380         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
1381         * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
1382         Do not transform into MINUS insn for constant 4096.
1383         (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
1384         for constant 4096 as third operand.
1385         (addsi3 expander): Remove.
1386         (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
1387         new alternative for constant 4096 as third operand.
1388         (subdi3 expander): Do not transform into PLUS insn for constant 4096.
1389         (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
1390         operand.
1391         (subsi3 expander): Remove.
1392         (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
1393         constant 4096 as third operand.
1394         * doc/md.texi (Machine Constraints): Document new 'O' constraint for
1395         the SPARC port.
1396
1397 2003-06-03  Chris Demetriou  <cgd@broadcom.com>
1398
1399         * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
1400
1401 2003-06-04  Andreas Jaeger  <aj@suse.de>
1402
1403         * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
1404
1405         * config/i386/i386.c (ix86_expand_prologue): Do not use
1406         SUBTARGET_PROLOGUE.
1407
1408         * system.h: Poision SUBTARGET_PROLOGUE.
1409
1410         * config/arm/arm-protos.h: Remove unused rdate_section prototype.
1411
1412         * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
1413         dependend code.
1414
1415         * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
1416
1417         * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
1418         INSN_CACHE_LINE_WIDTH.
1419
1420         * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
1421         (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
1422         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
1423
1424         * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
1425         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
1426
1427         * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
1428         (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
1429         (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
1430         (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
1431         (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
1432         (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
1433
1434         * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
1435         DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
1436         DBX_WORKING_DIRECTORY.
1437
1438         * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
1439         DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
1440
1441         * config/frv/frv-protos.h: Remove unused const_section
1442         declaration.
1443         * config/vax/vax-protos.h: Likewise.
1444
1445         * output.h: Remove CONST_SECTION_ASM_OP usage.
1446
1447         * system.h: Poison CONST_SECTION_ASM_OP.
1448
1449         * crtstuff.c (__do_global_dtors_aux): Remove usage of
1450         CRT_GET_RFIB_TEXT.
1451         (frame_dummy): Likewise.
1452         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
1453         * system.h: Poison CRT_GET_RFIB_TEXT.
1454
1455         * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
1456
1457         * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
1458         (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
1459         (recognized_function): Likewise.
1460         (read_scan_file): Likewise.
1461
1462 2003-06-03  Roger Sayle  <roger@eyesopen.com>
1463
1464         * optabs.c (expand_binop): Optimize complex multiplication for
1465         the case of squaring a complex argument.
1466
1467 2003-06-03  Roger Sayle  <roger@eyesopen.com>
1468
1469         * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
1470         non-volatile operands of binary operations.
1471         (prepare_cmp_insn): Likewise.
1472
1473 2003-06-03  Roger Sayle  <roger@eyesopen.com>
1474
1475         * varasm.c (force_const_mem): Handle alignment of constants not
1476         representable as a type in the front-end language.
1477
1478 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
1479
1480         * flow.c (initialize_uninitialized_subregs): Use
1481         emit_move_insn instead of emitting a hardcoded move.
1482
1483 2003-06-03  Richard Henderson  <rth@redhat.com>
1484
1485         * optabs.c (expand_abs_nojump): Split out from ...
1486         (expand_abs): ... here.
1487         * optabs.h (expand_abs_nojump): Declare.
1488         * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
1489         * Makefile.in (ifcvt.o): Depend on optabs.h.
1490
1491 2003-06-03  Alan Modra  <amodra@bigpond.net.au>
1492
1493         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
1494
1495 2003-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
1496
1497         * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
1498         (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
1499         to yes.
1500         * configure.in: Allow default_use_cxa_atexit to determine the
1501         value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
1502         disabled.
1503         * configure: Regenerate.
1504
1505 2003-06-03  Douglas B Rupp  <rupp@gnat.com>
1506
1507         * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
1508         * doc/gcc.texi: Remove vms.texi section.
1509         * doc/vms.texi: Remove obsolete file.
1510
1511 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
1512
1513         * configure.in (inhibit_libc): Don't define when configuring
1514         with --with-newlib --with-headers.
1515         * configure: Regenerate.
1516
1517         * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
1518
1519 2003-06-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1520
1521         * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
1522         IRIX 6 without GNU ld.
1523         * configure: Regenerate.
1524
1525 2003-06-03  Roger Sayle  <roger@eyesopen.com>
1526
1527         * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
1528         of a complex number rather than invoke mov_optab directly.
1529
1530 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
1531
1532         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
1533         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
1534
1535 2003-06-03  Nathanael Nerode  <neroden@gcc.gnu.org>
1536
1537         * config/i386/x86-64.h: Remove two target-independent comments;
1538          replace "GNU CC" with "GCC".
1539
1540 2003-06-03  Anthony Green  <green@redhat.com>
1541
1542         * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
1543
1544 2003-06-03  Roger Sayle  <roger@eyesopen.com>
1545
1546         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
1547         New builtins representing ISO C99's cabs, cabsf and cabsl.
1548         * builtins.c (expand_builtin_fabs): New function.
1549         (expand_builtin_cabs): New function.
1550         (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
1551         using expand_builtin_fabs and expand_builtin_cabs respectively.
1552
1553         * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
1554
1555 2003-06-03  Aldy Hernandez  <aldyh@redhat.com>
1556
1557         * function.c (assign_parms): Split complex arguments.
1558
1559         * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
1560
1561         * expr.h (SPLIT_COMPLEX_ARGS): Define.
1562         (split_complex_types): Protoize.
1563         (split_complex_values): Protoize.
1564
1565         * calls.c (expand_call): Split complex arguments on architectures
1566         that require it.
1567         (split_complex_values): New.
1568         (split_complex_types): New.
1569
1570         * config/rs6000/rs6000.c (rs6000_libcall_value): New.
1571         (rs6000_function_value): Handle complex values on AIX.
1572         (rs6000_complex_function_value): New.
1573
1574         * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
1575
1576         * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
1577         (SPLIT_COMPLEX_ARGS): New.
1578
1579 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
1580
1581         * configure.in (HAVE_LD_PIE): Check for ld -pie.
1582         * config.in: Rebuilt.
1583         * configure: Rebuilt.
1584         * toplev.c (flag_pie, flag_shlib): New variables.
1585         (f_options): Add -fpie and -fPIE.
1586         (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
1587         Set flag_shlib if flag_pic and not -fpie/-fPIE.
1588         * flags.h (flag_pic, flag_shlib): Add.
1589         * varasm.c (default_binds_local_p): Use flag_shlib instead of
1590         flag_pic.
1591         * gcc.c (LINK_PIE_SPEC): Define.
1592         (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
1593         (option_map): Add --pie -> -pie mapping.
1594         * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
1595         and -fPIE the same way as -fPIC.
1596         * config/openbsd.h (ASM_SPEC): Likewise.
1597         * config/frv/frv.h (ASM_SPEC): Likewise.
1598         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
1599         * config/arm/semi.h (ASM_SPEC): Likewise.
1600         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
1601         * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
1602         * config/i386/beos-elf.h (CC1_SPEC): Likewise.
1603         * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
1604         * config/m68k/linux.h (CPP_SPEC): Likewise.
1605         * config/m68k/netbsd.h (ASM_SPEC): Likewise.
1606         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
1607         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
1608         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
1609         * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
1610         * config/pa/pa-linux.h (CPP_SPEC): Likewise.
1611         * config/netbsd-aout.h (ASM_SPEC): Likewise.
1612         * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
1613         * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
1614         * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
1615         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
1616         * config/sparc/sparc.h (ASM_SPEC): Likewise.
1617         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
1618         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
1619         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
1620         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
1621         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
1622         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
1623         Simplify.
1624         * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1625         * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1626         * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1627         * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1628         * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1629         * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1630         * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1631         * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
1632
1633 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
1634
1635         * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
1636         != 0 handling.  Pass 0 to store_by_pieces.
1637         (expand_builtin_mempcpy): Add endp argument.  Don't call
1638         expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
1639         directly.  If ignoring result, only do expand_call.
1640         (expand_builtin_stpcpy): Likewise.  Call expand_builtin_mempcpy
1641         otherwise.
1642         (expand_builtin_strncpy, expand_builtin_memset): Adjust
1643         store_by_pices callers.
1644         (expand_builtin): Adjust expand_builtin_memcpy and
1645         expand_builtin_mempcpy callers.
1646         * expr.c (can_move_by_pieces): New function.
1647         (move_by_pieces): Add endp argument, return to resp. memory at end
1648         or one byte earlier depending on endp.
1649         (store_by_pieces): Likewise.
1650         (emit_block_move): Adjust call to move_by_pieces.
1651         (emit_push_insn): Adjust move_by_pieces caller.
1652         * expr.h (can_move_by_pieces): New prototype.
1653         (store_by_pieces): Adjust prototypes.
1654         * rtl.h (move_by_pieces): Adjust prototype.
1655         * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
1656         caller.
1657
1658 2003-06-03  Ben Elliston  <bje@wasabisystems.com>
1659
1660         * doc/md.texi (Processor pipeline description): Improve wording.
1661
1662 2003-06-03  Neil Booth  <neil@daikokuya.co.uk>
1663
1664         * c-opts.c (c_common_handle_option): New, pulled out of
1665         c_common_decode_option.  Substitute uses of argv.
1666         (c_common_decode_option): Broken into two.
1667
1668 2003-06-02  Roger Sayle  <roger@eyesopen.com>
1669             Zack Weinberg  <zack@codesourcery.com>
1670
1671         * emit-rtl.c (gen_complex_constant_part):  Remove unnecessary
1672         test of TREE_CONSTANT_POOL_ADDRESS_P.
1673
1674 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1675
1676         * mips.c: Don't include output.h twice.
1677         * stormy16.c: Likewise.
1678         * xtensa.c: Likewise.
1679         * output.h: Protect against multiple inclusion.
1680
1681 2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
1682
1683         * sh.h (OLD_ARG_MODE): New macro.
1684         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
1685         (FUNCTION_ARG_1): Break out of:
1686         (FUNCTION_ARG).  Use OLD_ARG_MODE.
1687
1688 2003-06-02  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
1689
1690         * gcc/config.gcc Add support multilib parts for m32rx processor.
1691
1692 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1693
1694         * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
1695         (mostlyclean): Delete c-options.c and c-options.h.
1696
1697 2003-06-02  Neil Booth  <neil@daikokuya.co.uk>
1698
1699         * c-opts.c (CL_REJECT_NEGATIVE): New.
1700         (c_common_decode_option): Update to use it.
1701         * c.opt: Update documentation; use RejectNegative.
1702         * opts.sh: Handle RejectNegative.
1703
1704 2003-06-01  Zack Weinberg  <zack@codesourcery.com>
1705
1706         * ggc-page.c (init_ggc): Give better diagnostics on failure to
1707         open /dev/zero.
1708         * toplev.c (crash_signal): Reset handling for received signal
1709         to SIG_DFL.
1710
1711 2003-06-02  Ben Elliston  <bje@wasabisystems.com>
1712
1713         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
1714         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
1715         (arm_use_dfa_pipeline_interface): Implement.
1716         * config/arm/arm.md (arm): New automaton.
1717         (write_buf): Remove function units; new cpu unit.
1718         (write_blockage): Remove function units; new cpu unit.
1719         (core): Remove function units; new cpu unit.
1720         (r_mem_f_wbuf): New instruction reservation.
1721         (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
1722         (store1_ldsched, store2, store3, store4): Likewise.
1723         (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
1724         (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
1725         (multi_cycle, single_cycle): Likewise.
1726         * config/arm/fpa.md (armfp): New automaton.
1727         (fpa): Remove function units; new cpu unit.
1728         (fpa_mem): Remove function unit; new cpu unit.
1729         (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
1730         (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
1731
1732 2003-06-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1733
1734         * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
1735         * c-format.c (enum format_type): Add asm_fprintf_format_type.
1736         (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
1737         asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
1738         (format_types_orig): Renamed from format_types.  Add new data.
1739         (format_types): Declare as pointer.
1740         (handle_format_attribute): Move later in file so we have all
1741         necessary declarations.  Add section to capture HOST_WIDE_INT.
1742         * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
1743         (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
1744
1745 2003-06-01  Andreas Jaeger  <aj@suse.de>
1746
1747         * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
1748         ROUND_TYPE_SIZE_UNIT.
1749
1750         * stor-layout.c (finalize_record_size): Remove usages of
1751         ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
1752         (finalize_type_size): Likewise.
1753         (layout_type): Likewise.
1754
1755         * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
1756
1757         * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
1758
1759         * config/d30v/d30v.h: Remove text copied from the manual.
1760
1761 2003-06-01  Roger Sayle  <roger@eyesopen.com>
1762             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1763             Geoffrey Keating  <geoffk@apple.com>
1764
1765         * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
1766         constants as condition code values.
1767
1768 2003-06-01  DJ Delorie  <dj@redhat.com>
1769
1770         * cppmacro.c (warn_of_redefinition): Handle cases where the two
1771         definitions have different numbers of tokens.
1772
1773 2003-06-01  Andreas Jaeger  <aj@suse.de>
1774
1775         * gen-protos.c (main): Readd unused attribute for argc.
1776
1777 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
1778
1779         * Makefile.in (c-options.c, c-options.h): Parallel make safe.
1780         * c.opt: End in blank line.
1781         * opts.sh: Take AWK from environment if available; use C locale.
1782
1783 2003-06-01  Andreas Schwab  <schwab@suse.de>
1784
1785         * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
1786
1787 2003-06-01  Andreas Jaeger  <aj@suse.de>
1788
1789         * gen-protos.c (main): Revert patch to check for argument.
1790
1791 2003-06-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
1792
1793         PR target/11044
1794         * config/i386/i386.md (length attribute): Set length to 4
1795         for instructions of type "fcmp".
1796
1797 2003-06-01  Andreas Jaeger  <aj@suse.de>
1798
1799         * toplev.c: Use ISO C90 prototypes.
1800
1801         * toplev.h: Use ISO C90 prototypes.
1802
1803         * genrecog.c: Use ISO C90 prototypes.
1804         (nodes_identical): Correct declaration to match prototype.
1805         (maybe_both_true): Likewise.
1806         (merge_trees): Likewise.
1807
1808         * genpeep.c (gen_peephole): Remove #if 0 code.
1809         Use ISO C90 prototypes.
1810
1811         * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
1812         Remove #if 0'ed function simplify_by_alternatives.
1813         (optimize_attrs): Remove #if 0'ed code.
1814         Remove ^L.
1815         Use ISO C90 prototypes.
1816         (make_canonical): Remove #if 0'ed code.
1817         (convert_const_symbol_ref): Remove #if 0'ed function.
1818
1819         * gen-protos.c (main): Check for argument.
1820
1821         * rtl.h: Use ISO C90 prototypes for functions from lists.c.
1822
1823         * params.h: Use ISO C90 prototypes.
1824         * params.c: Likewise.
1825         * intl.c: Likewise.
1826         * intl.h: Likewise.
1827         * lists.c: Likewise.
1828         * errors.c: Likewise.
1829         * errors.h: Likewise.
1830         * gencodes.c: Likewise.
1831         * genpreds.c: Likewise.
1832         * genattr.c: Likewise.
1833         * gen-protos.c: Likewise.
1834         * genflags.c: Likewise
1835         * genconditions.c: Likewise.
1836         * genautomata.c: Likewise.
1837         * gencheck.c: Likewise.
1838         * genconfig.c: Likewise.
1839         * genconstants.c: Likewise.
1840         * genemit.c: Likewise.
1841         * genextract.c: Likewise.
1842         * gengenrtl.c: Likewise.
1843         * gengtype.c: Likewise.
1844         * gengtype.h: Likewise.
1845         * genopinit.c: Likewise.
1846         * genoutput.c: Likewise.
1847         * gensupport.c: Likewise.
1848         * gensupport.h: Likewise.
1849
1850         * sdbout.h: Use ISO C90 prototypes.
1851
1852         * sdbout.c (CONTIN): Removed empty macro.
1853         (sdbout_one_type): Remove CONTIN usages.
1854         Remove ^Ls.
1855         (tag_of_ru_type): Remove #if 0'ed function.
1856         (sdbout_symbol): Remove #if 0'ed code.
1857         (sdbout_one_type): Remove a #if 1.
1858         (sdbout_one_type): Remove #if 0'ed code.
1859         (sdbout_init): Remove RMS_QUICK_HACK_1 code.
1860         Remove PARAMS, use ISO C90 prototypes for all functions.
1861
1862 2003-06-01  Josef Zlomek  <zlomekj@suse.cz>
1863
1864         * rtl.def (CONST_DOUBLE): Update comment.
1865
1866 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
1867
1868         * opts.sh: Remove path from sort.
1869
1870 2003-06-01  Aldy Hernandez  <aldyh@redhat.com>
1871
1872         PR/9680
1873         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
1874         TARGET_SPE for SPE_VECTOR_MODE.
1875
1876 2003-05-31  Aldy Hernandez  <aldyh@redhat.com>
1877
1878         * toplev.c (botch): Remove.
1879         (do_abort): Remove.
1880         (set_Wunused): Comment.
1881         (set_Wextra): Comment.
1882         Remove ^L's.
1883         (rest_of_compilation): Factor out common code into functions.
1884         (rest_of_handle_inlining): New.
1885         (rest_of_handle_ssa): New.
1886         (rest_of_handle_cse): New.
1887         (rest_of_handle_gcse): New.
1888         (rest_of_handle_loop_optimize): New.
1889         (rest_of_handle_jump_bypass): New.
1890         (rest_of_handle_sibling_calls): New.
1891         (rest_of_handle_null_pointer): New.
1892         (rest_of_handle_addresof): New.
1893         (rest_of_handle_flow): New.
1894         (rest_of_handle_branch_prob): New.
1895         (rest_of_handle_if_conversion): New.
1896         (rest_of_handle_tracer): New.
1897         (rest_of_handle_loop2): New.
1898         (rest_of_handle_cse2): New.
1899         (rest_of_handle_life): New.
1900         (rest_of_handle_combine): New.
1901         (rest_of_handle_if_after_combine): New.
1902         (rest_of_handle_regmove): New.
1903         (rest_of_handle_sched): New.
1904         (rest_of_handle_old_regalloc): New.
1905         (rest_of_handle_new_regalloc): New.
1906         (rest_of_handle_regrename): New.
1907         (rest_of_handle_reorder_blocks): New.
1908         (rest_of_handle_sched2): New.
1909         (rest_of_handle_new_regalloc): New.
1910         (rest_of_handle_old_regalloc): New.
1911         (rest_of_handle_regrename): New.
1912         (rest_of_handle_reorder_blocks): New.
1913         (rest_of_handle_stack_regs): New.
1914         (rest_of_handle_machine_reorg): New.
1915         (rest_of_handle_delay_slots): New.
1916         (rest_of_handle_final): New.
1917
1918         * toplev.h (botch): Remove prototype.
1919         (do_abort): Same.
1920
1921 2003-05-31  Neil Booth  <neil@daikokuya.co.uk>
1922
1923         * Makefile.in (c-opts.o, c-options.h): Update dependencies.
1924         * c-opts.c: Include c-options.h and c-options.c.
1925         (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
1926         Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
1927         (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
1928         OPT, opt_comp): Remove.
1929         (missing_arg, c_common_init_options, c_common_decode_option,
1930         write_langs): Update for macro redefinitions and enumeration
1931         name changes.
1932         * c.opt, opts.sh: New files.
1933         * doc/passes.texi: Update.
1934
1935 2003-05-31  Andreas Jaeger  <aj@suse.de>
1936
1937         * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
1938         usage.
1939
1940         * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
1941
1942         * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
1943
1944         * system.h: Poison ALLOCATE_TRAMPOLINE.
1945
1946         * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
1947         * system.h: Poison HANDLE_PRAGMA.
1948
1949 2003-05-31  Kazu Hirata  <kazu@cs.umass.edu>
1950
1951         * doc/invoke.texi: Update dump file names.
1952
1953 2003-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1954
1955         * c-format.c (format_length_info, format_char_info,
1956         format_flag_spec, format_flag_pair, format_kind_info):
1957         De-const-ify structure members.
1958
1959 2003-05-31  Roger Sayle  <roger@eyesopen.com>
1960
1961         * flags.h (flag_wrapv): New flag controlling overflow semantics.
1962         * toplev.c (flag_wrapv): Declare the variable with default false.
1963         (lang_independent_options): New option "-fwrapv" to set the above.
1964
1965         * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
1966         as x, when signed arithmetic overflow wraps around.
1967         (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
1968         * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
1969         overflow when flag_wrapv is true.
1970
1971         * doc/invoke.texi: Document new -fwrapv command line option.
1972         * doc/c-tree.texi: Mention that the overflow semantics of
1973         NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
1974         upon both flag_wrapv and flag_trapv.
1975
1976 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
1977
1978         * doc/install.texi (mips-sgi-irix5): Add missing
1979         HTML <hr> marker.
1980
1981 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
1982
1983         * doc/md.texi (Machine Constraints): Document
1984         missing SPARC constraints.
1985
1986 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
1987
1988         * doc/md.texi (Automaton pipeline description): Use
1989         "type" instead of "cpu" as the attribute in the examples.
1990
1991 2003-05-30  Stan Shebs  <shebs@apple.com>
1992
1993         * system.h: Poison OBJC_PROLOGUE.
1994
1995 2003-05-30  Roger Sayle  <roger@eyesopen.com>
1996
1997         * emit-rtl.c (gen_complex_constant_part): New function for getting
1998         the constant real or imaginary part of a complex constant.
1999         (gen_realpart): Use it.
2000         (gen_imagpart): Likewise.
2001
2002 2003-05-30  Kazu Hirata  <kazu@cs.umass.edu>
2003
2004         * doc/invoke.texi: Fix typos.
2005         * doc/rtl.texi: Likewise.
2006
2007 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
2008
2009         * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
2010         mode.
2011         * config/h8300/crtn.asm: Likewise.
2012         * config/h8300/lib1funcs.asm: Likewise.
2013         * config/h8300/h8300.c (asm_file_start): Likewise.
2014         * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
2015         h8300snelf emulations for normal mode.
2016         * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
2017         emulations for normal mode.
2018
2019 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
2020
2021         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
2022         true if TARGET_NORMAL_MODE.
2023
2024 2003-05-30  Roger Sayle  <roger@eyesopen.com>
2025
2026         * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
2027         making a substitution.
2028         (dead_libcall_p): If directly replacing a libcall with a
2029         constant value produces an invalid instruction, also try forcing
2030         the constant into the constant pool.
2031         * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
2032         obvious that the source is a constant.
2033         (compress_float_constant): Use set_unique_reg_note to place
2034         REG_EQUAL notes on instructions.
2035
2036 2003-05-30  Eric Christopher  <echristo@redhat.com>
2037
2038         * config/mips/mips.c (extern_list): Add GTY marker.
2039         (extern_head): Separate out definition. Add marker.
2040         (mips_output_external): Use ggc_alloc for extern_list
2041         allocation.
2042         (mips_output_external_libcall): Ditto.
2043
2044 2003-05-30  Florian Weimer  <fw@deneb.enyo.de>
2045
2046         * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
2047         later.
2048
2049 2003-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2050
2051         * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
2052         warnings.
2053         (PRINT_OPERAND): Likewise.
2054
2055 2003-05-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2056
2057         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
2058         -mdebug/-no-mdebug switches ...
2059         (MDEBUG_ASM_SPEC): ... here.
2060         Use only with gas.
2061         (EXTRA_SPECS): Initialize mdebug_asm_spec.
2062
2063 2003-05-29  Matt Kraai  <kraai@alumni.cmu.edu>
2064
2065         * gthr-gnat.c: Remove #undef UNUSED.
2066         (__gnat_default_lock, __gnat_default_unlock): Prototype.
2067         (__gnat_task_lock, __gnat_task_unlock): Make declarations
2068         prototypes.
2069         (__gnat_install_locks): Convert declaration to ISO C90, make
2070         parameter declarations prototypes, and remove blank line.
2071         * gthr-gnat.h (__gnat_install_locks): Make parameter
2072         declarations prototypes.
2073
2074 2003-05-29  Jason Merrill  <jason@redhat.com>
2075
2076         * Makefile.in (unstrap): Remove stage_last after make unstage1.
2077
2078 2003-05-29  Roger Sayle  <roger@eyesopen.com>
2079
2080         * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
2081
2082 2003-05-29  Roger Sayle  <roger@eyesopen.com>
2083             Kaveh Ghazi  <ghazi@caip.rutgers.edu>
2084
2085         PR bootstrap/10169
2086         * mips-tfile.c (main): Use getopt_long instead of getopt.
2087         Add new command line option --version to display version.
2088         Treat --verbose like -v to report a single line version.
2089         (options): New global variable for getopt_long.
2090         * mips-tdump.c (main): Use getopt_long instead of getopt.
2091         New command line options -v, --version and -verbose to display
2092         the program version number (to match mips-tfile's behavior).
2093         (options): New global variable for getopt_long.
2094
2095         * gcov.c (options): Zero-terminate getopt_long array.
2096         * gcov-dump.c (options): Likewise.
2097
2098         * Makefile.in (mips-tdump.o): Add dependency on version.h.
2099
2100 2003-05-29  Stan Shebs  <shebs@apple.com>
2101
2102         Remove OBJC_PROLOGUE everywhere.
2103         * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
2104         * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
2105         * config/d30v/d30v.h: Similarly.
2106         * config/ip2k/ip2k.h: Similarly.
2107         * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
2108
2109 2003-05-29  Roger Sayle  <roger@eyesopen.com>
2110
2111         * c-semantics.c (genrtl_do_stmt_1): New function split out from...
2112         (gen_rtl_do_stmt): ... here.  Call genrtl_do_stmt_1.
2113         (expand_unreachable_stmt): Expand unreachable while statements
2114         using genrtl_do_stmt_1.
2115
2116 2003-05-29  Richard Sandiford  <rsandifo@redhat.com>
2117
2118         * config/mips/mips-protos.h (mips_output_load_label): Declare.
2119         * config/mips/mips.c (mips_output_load_label): New function.
2120         (mips_output_conditional_branch): Use it.
2121         * config/mips/mips.md (jump): And here.
2122
2123 2003-05-28  Bob Wilson  <bob.wilson@acm.org>
2124
2125         * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
2126         (xtensa_split_operand_pair): New proto.
2127         * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
2128         (smalloffset_double_mem_p): Delete.
2129         (gen_float_relational, printx, print_operand, xtensa_va_arg):
2130         Fix whitespace.
2131         (xtensa_split_operand_pair): New.
2132         (xtensa_dbx_register_number): Fix formatting.
2133         * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
2134         * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
2135         instead of splitting them into single-word moves.  Remove unnecessary
2136         checks for reload_in_progress and reload_completed.
2137         (movdi_internal, movdf_internal): Change to post-reload split patterns.
2138         Add constraints to allow constant operands.
2139         (movsf_internal): Allow CONST_INT operands.
2140
2141 2003-05-27  Danny Smith   <dannysmith@users.sourceforge.net>
2142
2143         * config.gcc (i[34567]86-*-mingw32*): Add host makefile
2144         fragment i386/x-mingw32.
2145         * config/i386/x-mingw32: New file. Make local_includedir
2146         relative to EXEC_PREFIX.
2147
2148 2003-05-27  Aaron W. LaFramboise  <awlaframboise@aol.com>
2149
2150         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
2151         (MD_STARTFILE_PREFIX): Define.
2152
2153 2003-05-27  Denis Chertykov  <denisc@overta.ru>
2154
2155         * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
2156         VOIDmode.
2157         * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
2158         call of cselib_invalidate_regno.
2159
2160 2003-05-28  Daniel Jacobowitz  <drow@mvista.com>
2161
2162         * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
2163         -lthread to -lpthread.
2164
2165 2003-05-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
2166             Bruce Korb  <bkorb@gnu.org>
2167             Arno Klaassen  <arno@heho.snv.jussieu.fr>
2168
2169         * fixinc/inclhack.def: Add missing declaration of getpagesize()
2170         to unistd.h on Solaris 2.5.1.
2171         Fix prototype of recv() and send() in sys/socket.h on
2172         Solaris 2.5.1 and 2.6.
2173         * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
2174         * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
2175         * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
2176         * fixinc/fixincl.x: Regenerate.
2177
2178 2003-05-27  Jason Merrill  <jason@redhat.com>
2179
2180         * tree.c (expr_first, expr_length): New fns.
2181         * tree.h: Declare them.
2182
2183         * tree.c (iterative_hash_expr): Hash commutative expressions
2184         consistently.
2185
2186 2003-05-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2187
2188         * tree.h (contains_placeholder_p): Now returns bool.
2189         (CONTAINS_PLACEHOLDER_P): New macro.
2190         (type_contains_placeholder_p): New function.
2191         * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
2192         (contains_placeholder_p): Now returns bool.
2193         Rework to use CONTAINS_PLACEHOLDER_P macro.
2194         (type_contains_placeholder_p): New function.
2195         * fold-const.c (fold, case COMPONENT_REF): Don't fold if
2196         type_contains_placeholder_p.
2197         (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
2198         Use CONTAINS_PLACEHOLDER_P macro.
2199         * builtins.c (fold_builtin): Likewise.
2200         * calls.c (initialize_argument_information): Likewise.
2201         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2202         * explow.c (expr_size): Likewise.
2203         * expr.c (store_constructor, get_inner_reference): Likewise.
2204         * function.c (assign_parms): Likewise.
2205         * stor-layout.c (variable_size): Likewise.
2206
2207 2003-05-25  Gabriel Dos Reis <gdr@integrable-solutions.net>
2208
2209         * diagnostic.h (output_verbatim, verbatim):  Remove  printf
2210         attribute.
2211
2212 2003-05-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2213
2214         * doc/contrib.texi (Contributors): Update Kean Johnston.
2215
2216 2003-05-24  David Edelsohn  <edelsohn@gnu.org>
2217
2218         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
2219
2220 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
2221
2222         * config/rs6000/440.md, config/stormy16/stormy16protos.h,
2223         config/stormy16/stormy16.c, config/stormy16/stormy16.md:
2224         Replace "GNU CC" with "GCC".
2225
2226 2003-05-24  Matt Kraai  <kraai@alumni.cmu.edu>
2227
2228         * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
2229         intermediate computation.
2230
2231 2003-05-23  Eric Christopher  <echristo@redhat.com>
2232
2233         * config/mips/mips.md (clzsi, clzdi): New patterns.
2234
2235 2003-05-23  Geoffrey Keating  <geoffk@apple.com>
2236
2237         * gcc.c (default_compilers): Use -o to specify preprocessor's output
2238         file.  Make -no-integrated-cpp work when building PCH files.
2239         * objc/lang-specs.h: Likewise.
2240
2241 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2242
2243         * fixinc/Makefile.in: Correct description.
2244         * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
2245         fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
2246         fixinc/genfixes: Replace "GNU CC" with "GCC".
2247
2248 2003-05-23  Roger Sayle  <roger@eyesopen.com>
2249
2250         * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
2251         builtin functions (and their __builtin_* variants).
2252         * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
2253         (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
2254         optimizing.
2255
2256         * doc/extend.texi: Document new tan and atan builtins, and
2257         their float and long double variants.
2258
2259 2003-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
2260
2261         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
2262         __sparcv9 in the TARGET_ARCH64 case.
2263
2264 Fri May 23 22:17:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
2265
2266         * i386.c (ix86_reorg): Calls are also jumps.
2267
2268 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
2269
2270         * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
2271         note containing an EXPR_LIST, process all the arguments.
2272
2273 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
2274                                Andreas Jaeger  <aj@suse.de>
2275
2276         * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
2277         do not use assertion.
2278
2279 2003-05-23  Mike Stump  <mrs@apple.com>
2280
2281         * tlink.c (scan_linker_output): Add support for darwin linker, as it
2282         emits unresolved symbols one per line, consuming the entire line.
2283
2284 2003-05-23  Larin Hennessy <larin@science.oregonstate.edu>
2285             Zack Weinberg <zack@codesourcery.com>
2286
2287         * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
2288         * config/m68k/m68k.c (m68k_output_function_prologue):
2289         Remove code under #if NEED_PROBE.
2290         * config/m68k/m68k.h: Don't define NEED_PROBE.
2291         * config/m68k/m68k.md: Remove "probe" insn.
2292         * doc/md.texi: Remove documentation of "probe" pattern.
2293
2294 2003-05-23  Dorit Naishlos  <gcchaifa@il.ibm.com>
2295
2296         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
2297
2298 2003-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2299
2300         * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
2301         Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
2302
2303 2003-05-22  Roger Sayle  <roger@eyesopen.com>
2304
2305         * real.c (real_maxval): New function to return the largest finite
2306         value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
2307         * real.h (real_maxval): Prototype here.
2308         * fold-const.c (fold_inf_compare): Transform comparisons against
2309         +-Infinity into comparisons against DBL_MAX (or equivalent).
2310
2311 2003-05-22  Mike Stump  <mrs@apple.com>
2312
2313         * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
2314         default.
2315
2316 2003-05-22  DJ Delorie  <dj@redhat.com>
2317
2318         * calls.c (expand_call): If the arg block is going to grow
2319         downward, we need argblock to point to the top of the block,
2320         not the bottom.
2321
2322 2003-05-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2323
2324         * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
2325
2326         * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
2327         constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
2328
2329 2003-05-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2330
2331         * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
2332         * m68k.c: Likewise.
2333         * m68k.h: Likewise.
2334
2335 2003-05-22  Zack Weinberg  <zack@codesourcery.com>
2336
2337         PR other/2873
2338         * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
2339         expressions to prevent triggering on recent curses.h,
2340         linux/nls.h, or X11/Xlib.h.
2341         (stdio_va_list): Add _G_va_list to bypass pattern.
2342         (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
2343         * fixinc/fixincl.x: Regenerate.
2344
2345 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
2346
2347         * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
2348         switches when --target-help option is specified.
2349
2350 2003-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2351
2352         PR bootstrap/10805
2353         * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
2354         failure with Sun assembler 5.0 Alpha 03/27/98.
2355
2356 2003-05-21  Loren James Rittle  <ljrittle@acm.org>
2357
2358         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
2359         to match system compiler convention.
2360
2361 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2362
2363         * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for non-zero
2364         value, not just if defined.
2365         Update copyright year.
2366
2367 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2368
2369         PR target/6428
2370         * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
2371         directories from LIB_SPEC to LINK_SPEC.  Emit warning if `-p' or `-pg'
2372         option is used without `-static'.
2373         * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
2374         * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
2375
2376 2003-05-21  Bob Wilson  <bob.wilson@acm.org>
2377
2378         * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
2379         TARGET_SERIALIZE_VOLATILE): Delete.
2380         (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
2381         (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
2382         (TARGET_SWITCHES): Remove "-mserialize-volatile" and
2383         "-mno-serialize-volatile".
2384         * config/xtensa/xtensa.c (print_operand): Remove checks of
2385         TARGET_SERIALIZE_VOLATILE.
2386         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
2387         * doc/invoke.texi (Option Summary, Xtensa Options): Remove
2388         "-mserialize-volatile" and "-mno-serialize-volatile" options.
2389
2390 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
2391
2392         * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
2393         (nested_function): Likewise.
2394         (notype_nested_function): Likewise.
2395
2396 2003-05-21  Nick Clifton  <nickc@redhat.com>
2397
2398         * config/stormy16/stormy-abi: Update overflow type for
2399         R_XSTORMY16_16 reloc.
2400
2401 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
2402
2403         * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
2404         * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
2405         (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
2406         * print-tree.c (print_node): Remove ambient-boundedness.
2407         * tree.h (tree_common): Remove bounded_flag.
2408         (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
2409         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
2410         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
2411         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
2412         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
2413         Remove.
2414         (TYPE_QUALS): Remove BOUNDED.
2415         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
2416         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
2417         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
2418         TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
2419         VA_LIST_POINTER_DEPTH): Remove.
2420         (struct tree_type): Remove pointer_depth.
2421
2422 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2423
2424         * c-pretty-print.c (pp_c_integer_literal): Use
2425         HOST_WIDE_INT_PRINT_DOUBLE_HEX.
2426
2427 2003-05-20  Roger Sayle  <roger@eyesopen.com>
2428             Kazu Hirata  <kazu@cs.umass.edu>
2429             Joern Rennecke  <joern.rennecke@superh.com>
2430
2431         * gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
2432         setcc and jump, if they exist.  If substituted instruction
2433         fails to validate, store current effort in a REG_EQUAL note.
2434         (cprop_insn): Don't attempt further substitutions if the
2435         current instruction has been deleted.
2436         (local_cprop_pass): Likewise.
2437
2438         * jump.c (redirect_jump):  Also update REG_EQUAL note, if
2439         one is attached to the jump instruction.
2440         (invert_jump): Delete REG_EQUAL note on jump, if one exists.
2441
2442 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2443
2444         PR c++/9738
2445         * config/i386/winnt.c (i386_pe_encode_section_info): Enable
2446         even if not first.
2447
2448 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2449
2450         * genautomata.c (output_description, output_automaton_units,
2451         output_state_arcs): Add missing specifiers.
2452
2453 2003-05-20  Bob Wilson  <bob.wilson@acm.org>
2454
2455         * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
2456         (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
2457         (__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
2458         (nsau): Rename to do_nsau.  Provide alternate version for use when
2459         the NSAU instruction is available.
2460         (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
2461         (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
2462         * config/xtensa/xtensa-config.h: Update comments to match binutils.
2463         (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
2464         * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
2465         (TARGET_ABS, TARGET_ADDX): Define.
2466         (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
2467         (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
2468         * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
2469         *subx8): Set predicate condition to TARGET_ADDX.
2470         (abssi2): Set predicate condition to TARGET_ABS.
2471         * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
2472         "-maddx", and "-mno-addx" options.
2473         (Xtensa Options): Likewise.  Also tag some opcode names with @code.
2474
2475 2003-05-20  Kevin Ryde <user42@zip.com.au>
2476             Wolfgang Bangerth <bangerth@dealii.org>
2477
2478         PR/10355
2479         * doc/extend.texi: Put a warning into the documentation
2480         of attribute regparm.
2481
2482 2003-05-20  Jason Merrill  <jason@redhat.com>
2483
2484         * tree.c (expr_last): New fn.
2485         * tree.h: Declare it.
2486         * objc/objc-act (expr_last): Rename to objc_expr_last.
2487
2488 2003-05-20  J"orn Rennecke <joern.rennecke@superh.com>
2489
2490         * sh.c (sh_register_move_cost): Add clase for moving between
2491         FP registers and MAC registers.
2492
2493 2003-05-19  John David Anglin  <dave.anglin@nrc-gnrc.gc.ca>
2494
2495         * pa/milli64.S ($$mulI): Fix typo.
2496
2497 2003-05-19  Matt Kraai  <kraai@alumni.cmu.edu>
2498
2499         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
2500         (nonlocal_set_p): Remove initial blank line.
2501         * dwarf2out.c (simple_type_size_in_bits): Likewise.
2502         * et-forest.c (et_forest_create): Likewise.
2503         * explow.c (stabilize): Likewise.
2504         * fix-header.c (write_lbrac): Likewise.
2505         * graph.c (start_fct, node_data): Likewise.
2506         * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
2507         * rtlanal.c (global_reg_mentioned_p): Likewise.
2508         * tree.c (bit_position): Likewise.
2509
2510 2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
2511
2512         * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
2513         -lthread to -lpthread.
2514
2515 2003-05-19  Neil Booth  <neil@daikokuya.co.uk>
2516
2517         * c-opts.c (c_common_decode_option): Don't accept dollars
2518         as identifier characters in assembly.
2519         * doc/cpp.texi: Document this.
2520
2521 2003-05-19  Seth Arnold  <sarnold@wirex.com>
2522             Aldy Hernandez  <aldyh@redhat.com>
2523
2524         * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
2525         vrsave_size twice.
2526
2527 2003-05-19  Aldy Hernandez  <aldyh@redhat.com>
2528
2529         * doc/tm.texi (function_arg): Fix typo.
2530
2531 2003-05-19  Matt Austern  <austern@apple.com>
2532
2533         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
2534         * c-common.h (warn_invalid_offsetof): Declare.
2535         * c-common.c (warn_invalid_offsetof): Define.
2536         * doc/invoke.texi: Document -Winvalid-offsetof.
2537         * testsuite/g++.dg/other/offsetof3.C: New.
2538         * testsuite/g++.dg/other/offsetof4.C: New.
2539
2540 2003-05-19  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
2541             David Edelsohn  <edelsohn@gnu.org>
2542
2543         * config/rs6000/rs6000.c (rs6000_alignment_string,
2544         rs6000_alignment_flags): New variables.
2545         (rs6000_parse_alignment_option): New function.
2546         (rs6000_override_options): Call it.
2547         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
2548         (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
2549         macros.
2550         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
2551         natural alignment if TARGET_NATURAL_ALIGNMENT
2552         (ROUND_TYPE_ALIGN): Always use default record alignment if
2553         TAGET_NATURAL_ALIGNMENT.
2554         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
2555         (ROUND_TYPE_ALIGN): Same.
2556         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
2557         (ROUND_TYPE_ALIGN): Same.
2558         * doc/invoke.texi (Option Summary, PowerPC Options): Document
2559         new options.
2560
2561 2003-05-19  J"orn Rennecke <joern.rennecke@superh.com>
2562
2563         * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
2564         of a function using ASMSPEC, prepend a star.
2565
2566 2003-05-19  Jason Merrill  <jason@redhat.com>
2567
2568         * tree-inline.c (copy_body_r): Avoid generating &* during inline
2569         substitution.
2570
2571 2003-05-19  Andrew Macleod  <amacleod@redhat.com>
2572
2573         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
2574         not mark assignments to the hard frame pointer as being stack
2575         frame related.
2576         (xstormy16_expand_epilogue): Mark adjustments to the stack
2577         pointer as being stack frame related.
2578
2579 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
2580
2581         * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
2582         ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
2583         (PREDICATE_CODES): Add hilo_operand.
2584         * config/mips/mips.c (hilo_operand): New predicate.
2585         (mips_adjust_insn_length): Account for the number nops that might
2586         be needed to avoid hardware hazards.
2587         * config/mips/mips.md (dslot): Remove attribute.
2588         (hazard): New attribute.
2589         (can_delay): Use it.  Check for calls, branches & jumps.
2590         (muldi3): Use the standard dmult pattern for mips16 code.
2591         (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
2592
2593 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
2594
2595         * config/mips/mips-protos.h (final_prescan_insn,
2596         mips_count_memory_refs, mips_fill_delay_slot): Remove.
2597         * config/mips/mips.h (delay_type, dslots_load_total,
2598         dslots_load_filled, dslots_jump_total, dslots_jump_filled,
2599         dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
2600         mips_load_reg3, mips_load_reg4): Remove.
2601         (MASK_STATS): Remove.
2602         (MASK_EXPLICIT_RELOCS): Reuse its value.
2603         (TARGET_STATS): Remove.
2604         (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
2605         Warn that -mstats is now ignored.
2606         (FINAL_PRESCAN_INSN): Undefine.
2607         (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
2608         (ASM_OUTPUT_REG_POP): Likewise.
2609         * config/mips/mips.c (dslots_load_total, dslots_load_filled,
2610         dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
2611         mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
2612         mips_fill_delay_slot, mips_count_memory_refs,
2613         final_prescan_insn): Remove.
2614         (output_block_move): Remove calls to mips_count_memory_refs.
2615         (print_operand): Remove printing of #nop for TARGET_STATS.
2616         (mips_output_function_epilogue): Remove TARGET_STATS code.
2617         Reorganize setting of fnnmae.
2618         * config/mips/mips.md: Remove handling of dslot statistics
2619         throughout file.  Change all fcmp patterns into normal asm
2620         templates, removing calls to mips_fill_delay_slot.
2621         * doc/invoke.texi: Remove documentation of -mstats.
2622
2623 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
2624
2625         * config/mips/mips.c (mips_class_max_nregs): Return the number of
2626         words in the mode.
2627
2628 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
2629
2630         * config/mips/mips.c (override_options): Disable explicit
2631         relocs for old ABIs unless using gas.
2632
2633 2003-05-18  Eric Christopher  <echristo@redhat.com>
2634
2635         * config/mips/mips.h: Remove definition of g_switch_value.
2636
2637 2003-05-18  Matt Kraai  <kraai@alumni.cmu.edu>
2638
2639         * flags.h (g_switch_value): Change to an unsigned
2640         HOST_WIDE_INT.
2641         * toplev.c (g_switch_value): Likewise.
2642
2643         * config/alpha/alpha.c (small_symbolic_operand): Remove
2644         g_switch_value cast.
2645         (alpha_in_small_data_p): Cast size to an unsigned
2646         HOST_WIDE_INT.
2647
2648         * config/frv/frv.c (frv_in_small_data_p): Cast size to an
2649         unsigned HOST_WIDE_INT.
2650         * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
2651         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
2652
2653         * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
2654         unsigned HOST_WIDE_INT.
2655         (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
2656         * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
2657         (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
2658
2659         * config/rs6000/rs6000.c (rs6000_file_start): Use
2660         HOST_WIDE_INT_PRINT_UNSIGNED.
2661         (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
2662         (rs6000_elf_in_small_data_p): Cast size to unsigned
2663         HOST_WIDE_INT.
2664         * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
2665         Remove.
2666         (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
2667         g_switch_set.
2668         (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
2669         g_switch_value cast.
2670
2671 2003-05-18  Roger Sayle  <roger@eyesopen.com>
2672             Zack Weinberg  <zack@codesourcery.com>
2673
2674         PR middle-end/10472
2675         * builtins.c (expand_builtin_memcpy):  Call force_operand on
2676         expressions and use simplify_gen_binary to create the addition.
2677
2678 2003-05-18  Andreas Schwab  <schwab@suse.de>
2679
2680         * config/m68k/m68k.md: Use define_constants for unspec numbers.
2681
2682 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
2683
2684         * config/sparc/sparc.h: Define sparc for now.
2685 2003-05-18  Nathanael Nerode  <neroden@gcc.gnu.org>
2686
2687         * config.gcc: Clear xm_file, md_file at the beginning of each pass.
2688
2689         * config/stormy16/stormy16.h: Remove about 3000 lines of
2690         target-independent comments.  Update copyright notice.
2691
2692         * doc/collect2.texi: GNU CC -> GCC.
2693         * doc/headerdirs.texi: GNU CC -> GCC.
2694
2695 2003-05-18  Gabriel Dos Reis <gdr@integrable-solutions.net>
2696
2697         * hashtable.h (struct ht_identifier): Add data member "hash_value".
2698         * hashtable.c (ht_lookup): Use it when searching, remember.
2699         (ht_expand): Do not recompute.
2700         * tree.h (IDENTIFIER_HASH_VALUE): New macro.
2701
2702 2003-05-18  Nathan Sidwell  <nathan@codesourcery.com>
2703
2704         * gcov-io.c (gcov_read_bytes): Fix fread thinko.
2705
2706 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
2707
2708         * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
2709         Default here.
2710         (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
2711         * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
2712         * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
2713         * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
2714         config/arm/linux-elf.h, config/arm/rtems-elf.h,
2715         config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
2716         config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
2717         config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
2718         config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
2719         config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
2720         config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
2721         config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
2722         config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
2723         config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
2724         config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
2725         config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
2726         Don't define __ELF__.
2727         * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
2728         Define __ELF__.
2729         * doc/cpp.texi: Document __ELF__.
2730         * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS.     *
2731
2732 2003-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2733
2734         * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
2735         always use stdarg.
2736         * c-errors.c (pedwarn_c99): Likewise.
2737         * c-format.c (status_warning): Likewise.
2738         * c-semantics.c (build_stmt): Likewise.
2739         * calls.c (emit_library_call, emit_library_call_value): Likewise.
2740         * collect2.c (notice, fatal_perror, fatal, error): Likewise.
2741         * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
2742         * diagnostic.c (build_message_string, output_printf,
2743         output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
2744         fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
2745         error_with_decl, fnotice): Likewise.
2746         * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
2747         dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
2748         dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
2749         dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
2750         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
2751         dw2_asm_output_encoded_addr_rtx): Likewise.
2752         * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
2753         * errors.c (warning, error, fatal, internal_error): Likewise.
2754         * final.c (output_operand_lossage, asm_fprintf): Likewise.
2755         * fix-header.c (fatal): Likewise.
2756         * gcc.c (fatal, error, notice): Likewise.
2757         * gcov.c (fnotice): Likewise.
2758         * genattrtab.c (attr_rtx, attr_printf): Likewise.
2759         * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
2760         * gensupport.c (message_with_line): Likewise.
2761         * mips-tfile.c (fatal, error): Likewise.
2762         * protoize.c (notice): Likewise.
2763         * ra-debug.c (ra_debug_msg): Likewise.
2764         * read-rtl.c (fatal_with_file_and_line): Likewise.
2765         * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
2766         * tree.c (build, build_nt, build_function_type_list): Likewise.
2767
2768 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
2769
2770         * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
2771         * gcc.c (cpp_predefines): Remove.
2772         (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
2773         (static_specs): Remove predefines.
2774         * system.h: Poison CPP_PREDEFINES.
2775         * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
2776         config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
2777
2778 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
2779
2780         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
2781         config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
2782         config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
2783         use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
2784
2785 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
2786
2787         PR c/9209
2788         * c-common.c, c-common.h (dollars_in_ident): Remove.
2789         * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
2790         (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
2791         * cpphash.h (warned_dollar): Rename warn_dollars.
2792         * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
2793         Permit dollars regardless of -std=.
2794         (post_options): Set warn_dollars.
2795         * cpplex.c (forms_identifier_p): Use warn_dollars.
2796         * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
2797         Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
2798         * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
2799         Update documentation.
2800
2801 2003-05-17  Andreas Schwab  <schwab@suse.de>
2802
2803         * config/m68k/m68k.c (m68k_output_function_prologue): Use
2804         HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
2805         formatting a HOST_WIDE_INT.
2806         (m68k_output_function_epilogue): Likewise.
2807
2808 2003-05-17  Zack Weinberg  <zack@codesourcery.com>
2809
2810         * doc/install.texi: Remove information about desupported targets.
2811
2812 2003-05-17  Andreas Schwab  <schwab@suse.de>
2813
2814         * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
2815         * config/m68k/linux.h: Likewise.
2816         * config/m68k/m68k-none.h: Likewise.
2817         * config/m68k/netbsd-elf.h: Likewise.
2818         * config/m68k/sgs.h: Likewise.
2819         * config/m68k/m68k.h: Likewise.
2820         * config/m68k/m68k.md: Likewise.
2821         * config/m68k/m68k.c: Likewise.
2822         * doc/md.texi (Machine Constraints): Remove Sun FPA specific
2823         constraints.
2824         * doc/invoke.texi (Option Summary): Remove -mfpa.
2825         (M680x0 Options): Likewise.
2826
2827 2003-05-17  David Edelsohn  <edelsohn@gnu.org>
2828
2829         * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
2830
2831 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
2832
2833         * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
2834         * config/sparc/liteelf.h, config/sparc/openbsd64.h,
2835         config/sparc/rtemself.h, config/sparc/sol2-64.h,
2836         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
2837         Update for use of TARGET_SUB_OS_CPP_BUILTINS.
2838
2839 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
2840
2841         * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
2842         TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
2843
2844 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
2845
2846         * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
2847         * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
2848         sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
2849         sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
2850         sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
2851         sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
2852         sparc/sysv4.h,
2853         * sparc/sysv4-only.h: New.
2854
2855 2003-05-17  Alan Modra  <amodra@bigpond.net.au>
2856
2857         * function.c (assign_parms): Check for zero size args.
2858
2859 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2860
2861         * cfgloopanal.c (test_for_iteration): Use string concatentation on
2862         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
2863         function calls into one.
2864         * dbxout.c (dbxout_symbol): Likewise.
2865         * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
2866         * dwarf2asm.c (dw2_asm_output_data_uleb128,
2867         dw2_asm_output_data_sleb128): Likewise.
2868         * genrecog.c (debug_decision_2): Likewise.
2869         * loop.c (emit_prefetch_instructions): Likewise.
2870         * print-rtl.c (print_rtx): Likewise.
2871         * print-tree.c (print_node_brief, print_node): Likewise.
2872         * ra-debug.c (dump_igraph, dump_graph_cost,
2873         dump_static_insn_cost): Likewise.
2874         * ra-rewrite.c (dump_cost): Likewise.
2875         * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
2876         * sreal.c (dump_sreal): Likewise.
2877         * unroll.c (unroll_loop, precondition_loop_p): Likewise.
2878         * varasm.c (assemble_vtable_entry): Likewise.
2879
2880         * avr.c (avr_output_function_prologue,
2881         avr_output_function_epilogue, print_operand): Fix format specifier
2882         warnings.
2883         (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
2884         * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
2885
2886 2003-05-16  Geoffrey Keating  <geoffk@apple.com>
2887
2888         * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
2889         and ! TARGET_STRING cases.
2890
2891         * doc/cppopts.texi (-undef): Fix texinfo warning.
2892
2893         * doc/cppopts.texi (-H): Document that -H works for PCH files too.
2894         * cppfiles.c (validate_pch): When -H is used, print some information
2895         about PCH files found.
2896
2897 2003-05-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2898
2899         * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
2900         * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
2901         * config/mips/t-sr71k: Likewise.
2902
2903 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2904
2905         * arc.c (arc_output_function_prologue,
2906         arc_output_function_epilogue): Fix format specifier warnings.
2907         * arc.h (LARGE_INT): Fix signed/unsigned warnings.
2908
2909         * v850.c (print_operand): Fix format specifier warnings.
2910
2911         * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
2912         specifier warnings.
2913
2914         * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
2915         format specifier warnings.
2916
2917         * ip2k.c (function_prologue, function_epilogue, print_operand):
2918         Fix format specifier warnings.
2919         * ip2k.md: Likewise.
2920
2921         * i960.c (i960_output_function_prologue, i960_print_operand,
2922         i960_print_operand_addr): Fix format specifier warnings.
2923
2924         * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
2925         (i370_output_function_prologue): Fix format specifier warnings.
2926         * i370.h (PRINT_OPERAND): Likewise.
2927
2928         * fr30.c (fr30_print_operand): Fix format specifier warnings.
2929
2930         * dsp16xx.c (print_operand_address): Fix format specifier warning.
2931         * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
2932
2933         * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
2934         specifier warnings.
2935
2936         * alpha.c (print_operand_address, alpha_start_function,
2937         unicosmk_output_ssib): Use string concatentation on
2938         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
2939         function calls into one.
2940         * arm.c (arm_print_operand): Likewise.
2941         * cris.c (cris_asm_output_mi_thunk): Likewise.
2942         * frv.c (frv_asm_output_mi_thunk): Likewise.
2943         * ia64.c (ia64_print_operand, process_set): Likewise.
2944         * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
2945         Likewise.
2946         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
2947         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
2948         * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
2949         * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
2950         * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
2951         * s390.c (s390_assemble_integer): Likewise.
2952         * sparc.c (sparc_flat_function_prologue,
2953         sparc_flat_function_epilogue): Likewise.
2954         * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
2955         * vax.c (vax_output_mi_thunk): Likewise.
2956
2957         * frv.c (frv_print_operand_memory_reference): Fix format specifier
2958         warning.
2959         (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
2960
2961         * m68k.c (m68k_output_function_epilogue): Fix format specifier
2962         warnings.
2963
2964         * stormy16-protos.h (xs_hi_general_operand,
2965         xs_hi_nonmemory_operand): Prototype.
2966         * stormy16.c (xstormy16_output_shift): Fix format specifier
2967         warnings.
2968
2969         * cris.c: Fix format specifier warnings.
2970
2971 2003-05-16  Nick Clifton  <nickc@redhat.com>
2972
2973         * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
2974
2975 2003-05-16  Wolfgang Bangerth <bangerth@dealii.org>
2976
2977         * doc/bugreport.texi: Remove most of the of the preface of the
2978         bugs section.
2979
2980 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
2981
2982         * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
2983         .save XX, r0.
2984
2985 2003-05-15  Roger Sayle  <roger@eyesopen.com>
2986
2987         * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
2988
2989 2003-05-15  Eric Christopher  <echristo@redhat.com>
2990
2991         * cfgcleanup.c (merge_blocks): Fix return value.
2992
2993 2003-05-15 Eric Christopher <echristo@redhat.com>
2994
2995         * combine.c (expand_compound_operation): Make sure
2996         that zero_extend operation is profitable.
2997
2998 2003-05-15  Richard Henderson  <rth@redhat.com>
2999
3000         * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
3001         code protected by USE_GNULIBC_1.
3002
3003 2003-05-15  Zack Weinberg  <zack@codesourcery.com>
3004
3005         * config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
3006         remove hppa*-*-mpeix* which could not be built, and prune
3007         files from tmake_file= or tm_file= lists that don't exist.
3008
3009         * config/alpha/alpha-interix.h, config/alpha/alpha32.h
3010         * config/alpha/t-interix, config/arm/conix-elf.h
3011         * config/arm/t-arm-aout, config/arm/t-strongarm-coff
3012         * config/arm/unknown-elf-oabi.h, config/i386/win32.h
3013         * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
3014         * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
3015         * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
3016         * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
3017         * config/m68k/m68k-psos.h, config/m68k/mot3300.h
3018         * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
3019         * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
3020         * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
3021         * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
3022         * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
3023         * config/m68k/tower-as.h, config/m68k/tower.h
3024         * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
3025         * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
3026         * config/m88k/m88k-protos.h, config/m88k/m88k.c
3027         * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
3028         * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
3029         * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
3030         * config/mips/rtems64.h, config/mips/sni-gas.h
3031         * config/mips/sni-svr4.h, config/mips/t-ecoff
3032         * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
3033         * config/mn10200/mn10200.c, config/mn10200/mn10200.h
3034         * config/mn10200/mn10200.md, config/mn10200/t-mn10200
3035         * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
3036         * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
3037         * config/romp/romp-protos.h, config/romp/romp.c
3038         * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
3039         * config/rs6000/aix3newas.h, config/rs6000/mach.h
3040         * config/sparc/bsd.h, config/sparc/hal.h
3041         * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
3042         * config/sparc/lynx.h, config/sparc/netbsd.h
3043         * config/sparc/sp86x-aout.h, config/sparc/splet.h
3044         * config/sparc/sun4gas.h, config/sparc/sun4o3.h
3045         * config/sparc/sunos4.h, config/sparc/t-chorus-elf
3046         * config/sparc/t-halos, config/sparc/t-sparcbare
3047         * config/sparc/t-splet, config/sparc/t-sunos41
3048         * config/v850/rtems.h: Delete file.
3049
3050 2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
3051
3052         * config/rs6000/rs6000-protos.h (function_value): Protoize.
3053
3054         * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
3055
3056         * config/rs6000/rs6000.c (rs6000_function_value): New.
3057
3058 2003-05-15  Philip Blundell  <philb@gnu.org>
3059
3060         * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
3061         All uses updated.
3062         (arm_tune_xscale): New variable.
3063         (arm_override_options): Set it.
3064         (arm_adjust_cost): Use it in place of arm_arch_xscale.
3065         (arm_gen_load_multiple): Likewise.
3066         (arm_gen_store_multiple): Likewise.
3067         * config/arm/arm.md (is_xscale): Likewise.
3068         * config/arm/arm.h (arm_tune_xscale): Declare.
3069
3070 2003-05-15  Philip Blundell  <philb@gnu.org>
3071
3072         PR target/10730
3073         * config/arm/arm.c (adjacent_mem_locations): Reject offsets
3074         involving invalid constants.
3075
3076 2003-05-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3077
3078         * pa.c (hppa_expand_prologue): Remove blockage.
3079
3080 2003-05-15  Wolfgang Bangerth <bangerth@dealii.org>
3081
3082         * doc/bugreport.texi: Remove most of the bug reporting
3083         instructions and merge them into bugs.html.
3084
3085 2003-05-14  Matt Kraai  <kraai@alumni.cmu.edu>
3086
3087         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
3088         g_switch_value to unsigned HOST_WIDE_INT.
3089
3090 2003-05-14  Eric Christopher  <echristo@redhat.com>
3091
3092         * combine.c: Fix header comments.
3093         (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
3094         to all calls and prototype.
3095
3096 2003-05-14  Roger Sayle  <roger@eyesopen.com>
3097
3098         PR optimization/10764
3099         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
3100         Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
3101         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
3102         add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
3103         (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
3104         the corresponding *fyl2x_?fxf3 instructions.
3105
3106 2003-05-14  Bob Wilson  <bob.wilson@acm.org>
3107
3108         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
3109         * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
3110         XCHAL_HAVE_L32R): New.
3111         * config/xtensa/xtensa-protos.h (non_const_move_operand,
3112         xtensa_load_constant, xtensa_function_prologue,
3113         xtensa_function_epilogue): Delete prototypes.
3114         (xtensa_expand_prologue): New.
3115         * config/xtensa/xtensa.c (frame_size_const,
3116         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
3117         non_const_move_operand, xtensa_load_constant, xtensa_reorg,
3118         xtensa_function_prologue): Delete.
3119         (add_operand, xtensa_mem_offset): Formatting.
3120         (move_operand): If the const16 option is available, allow any SFmode
3121         and SImode constants.
3122         (xtensa_emit_move_sequence): Inline the former contents of
3123         xtensa_load_constant with modifications to handle the const16 option.
3124         (override_options): Add xtensa_char_to_class['W'] and set it to
3125         the general register class only if the const16 option is enabled.
3126         Fix formatting.  Disallow PIC when using the const16 option.
3127         (print_operand): Reorganize to switch on "letter" instead of the
3128         RTL code.  Add output_operand_lossage calls for invalid cases.
3129         Add support for 't' and 'b' letters.
3130         (xtensa_expand_prologue): New function to replace
3131         xtensa_function_prologue and xtensa_reorg.
3132         (xtensa_function_epilogue): Declare this as static.  Delete code
3133         to print the retw.n or retw instruction.
3134         (xtensa_return_addr): Use A0_REG instead of 0.
3135         (xtensa_rtx_costs): Add costs for using the const16 option.
3136         * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
3137         (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
3138         (TARGET_SWITCHES): Add "const16" and "no-const16".
3139         (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
3140         (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
3141         using the const16 option.
3142         (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
3143         (TRAMPOLINE_SIZE): Change from 49 to 59.
3144         (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
3145         (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
3146         when using the const16 option.
3147         (PREDICATE_CODES): Delete non_const_move_operand.
3148         * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
3149         UNSPECV_ENTRY.
3150         (movdi, movdf): If the source is a constant, always expand to a
3151         sequence of movsi insns.
3152         (movdi_internal, movdf_internal): Remove alternative using l32r insns.
3153         (movsi_internal, movsf_internal): Add alternative using const16 insns.
3154         (movsf): Add const16 support.
3155         (entry, prologue, epilogue): New.
3156         (set_frame_ptr): Add missing mode for unspec_volatile operation.
3157         Likewise for subsequent split pattern.
3158         * doc/invoke.texi (Option Summary, Xtensa Options): Document new
3159         "-mconst16" and "-mno-const16" options.
3160
3161 2003-05-14  Richard Henderson  <rth@redhat.com>
3162
3163         * config/ia64/ia64.c (ia64_expand_load_address): Force destination
3164         to be DImode register.  Merge load_symptr.
3165         * config/ia64/ia64.md (load_symptr): Remove.
3166
3167 2003-05-14  Richard Henderson  <rth@redhat.com>
3168
3169         * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
3170         DEFERRED_CONSTANT_P.
3171         * integrate.c (copy_rtx_and_substitute): Update use.
3172         * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
3173         to the copy generated.
3174         (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
3175         of the constant to see if we should emit.
3176         (mark_constant): Similarly.
3177         (output_constant_def_contents): Set TREE_ASM_WRITTEN.
3178
3179 2003-05-14  David Edelsohn  <edelsohn@gnu.org>
3180
3181         * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
3182         move record condition.
3183         (movdi_internal2): Same.
3184
3185 2003-05-14  Nathan Sidwell  <nathan@codesourcery.com>
3186
3187         * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
3188         (GCOV_TAG_*) Force type to gcov_unsigned_t.
3189         (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
3190         (struct gcov_var): Remove modified. Add start, length, offset,
3191         overread. Have buffer array for libgcov.
3192         (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
3193         (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
3194         * gcov-io.c (gcov_open): Set mode, do not read anything.
3195         (gcov_close): Write final block.
3196          (gcov_write_block, gcov_allocate): New.
3197         (gcov_write_bytes): Make static. Write or allocate buffer.
3198         (gcov_write_unsigned, gcov_write_counter): Buffer can never be
3199         null.
3200         (gcov_write_string): Adjust.
3201         (gcov_write_tag)
3202         (gcov_write_length): Adjust. Flush the block.
3203         (gcov_write_tag_length): Buffer can never be null.
3204         (gcov_read_bytes): Make static. Read in block.
3205         (gcov_sync): Moved here. Adjust.
3206         (gcov_seek): Moved here. Adjust.
3207         * coverage.c (read_counts_file): Adjust.
3208         * gcov-dump.c (print_prefix): Add position parameter.
3209         (flag_dump_positions): New flag.
3210         (options, main, print_usage): Add it.
3211         (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
3212         tag_summary): Adjust.
3213         * gcov.c (read_graph_file, read_count_file): Adjust.
3214         * libgcov.c (gcov_exit): Adjust.
3215
3216         * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
3217         (libgcov.a): Depend on libgcc.a.
3218         (gcov.o, gcov-dump.o): Add gcov-io.c.
3219         * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
3220
3221         * loop.c (check_dbra_loop): Factor common test.
3222
3223 2003-05-14  Ben Elliston  <bje@wasabisystems.com>
3224
3225         * doc/md.texi (Automaton pipeline description): Grammar fixes.
3226
3227 2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
3228
3229         * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
3230         (TARGET_INITIALIZER): Include it.
3231         * target.h (struct gcc_target): Add machine_dependent_reorg field.
3232         * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
3233         * system.h: Poison MACHINE_DEPENDENT_REORG.
3234
3235         * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
3236         * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
3237         * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3238         (alpha_handle_trap_shadows): Remove "first insn" parameter.
3239         (alpha_align_insns): Likewise.
3240         (alpha_reorg): Likewise.  Make static.  Update calls to above
3241         functions.
3242
3243         * config/arm/arm-protos.h (arm_reorg): Remove declaration.
3244         * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
3245         * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3246         (arm_reorg): Remove parameter.  Make static.
3247
3248         * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
3249         * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
3250         * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3251         (avr_reorg): Renamed from machine_dependent_reorg.  Make static.
3252         Remove parameter.
3253
3254         * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
3255         * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
3256         * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3257         (c4x_reorg): Renamed from c4x_process_after_reload.  Make static.
3258         Remove parameter.
3259
3260         * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
3261         * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
3262         * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
3263
3264         * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
3265         * config/frv/frv.c: Remove orphaned comment.
3266
3267         * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
3268         * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
3269         * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3270         (ix86_reorg): Renamed from x86_machine_dependent_reorg.  Make static.
3271         Remove parameter.
3272
3273         * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
3274         * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
3275         * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3276         (emit_insn_group_barriers): Remove "first insn" parameter.
3277         (emit_all_insn_group_barriers): Likewise.
3278         (ia64_reorg): Likewise.  Make static.  Update calls to above functions.
3279         (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
3280
3281         * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
3282         * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
3283         * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3284         (ip2k_reorg): Renamed from machine_dependent_reorg.  Make static.
3285         Remove parameter.
3286
3287         * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
3288         * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
3289         * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3290         (m68hc11_reorg): Make static.  Remove parameter.
3291
3292         * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
3293         * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
3294         * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3295         (conditionalize_optimization): Remove parameter.
3296         (mcore_reorg): Renamed from mcore_dependent_reorg.  Remove parameter.
3297         Make static.  Update call to conditionalize_optimization.
3298
3299         * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
3300         * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
3301         * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3302         (mips_reorg): Renamed from machine_dependent_reorg.  Remove parameter.
3303         Make static.
3304
3305         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
3306         * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
3307         * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3308         (mmix_reorg): Renamed from mmix_machine_dependent_reorg.  Make static.
3309         Remove parameter.
3310
3311         * config/pa/pa-protos.h (pa_reorg): Remove declaration.
3312         * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
3313         * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3314         (pa_combine_instructions): Remove "first insn" parameter.
3315         (remove_useless_addtr_insns): Likewise.
3316         (pa_reorg): Likewise.  Make static.  Update calls to above functions.
3317
3318         * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
3319         commented-out definition.
3320
3321         * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
3322         * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
3323         * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3324         (s390_reorg): Renamed from s390_machine_dependent_reorg.  Make static.
3325         Remove parameter.
3326
3327         * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
3328         * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
3329         * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3330         (sh_reorg): Renamed from machine_dependent_reorg.  Make static.
3331         Remove parameter.
3332         (sh_output_mi_thunk): Call sh_reorg directly.
3333         * config/sh/sh.md: Update comment.
3334
3335         * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
3336         commented-out definition.
3337
3338         * config/v850/v850-protos.h (v850_reorg): Remove declaration.
3339         * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
3340         * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3341         (v850_reorg): Make static.  Remove parameter.
3342
3343         * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
3344         * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
3345         * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3346         (xtensa_reorg): Make static.  Remove parameter.
3347
3348         * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
3349         (TARGET_MACHINE_DEPENDENT_REORG): Document.
3350
3351 2003-05-13  Richard Henderson  <rth@redhat.com>
3352
3353         * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
3354         the old decl had instantiated DECL_RTL.
3355
3356 2003-05-13  Mike Stump  <mrs@apple.com>
3357
3358         * doc/invoke.texi (Option Summary): Kill off documentation for -$.
3359
3360 2003-05-13  Janis Johnson  <janis187@us.ibm.com>
3361
3362         * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
3363         HOST_WIDE_INT argument.
3364
3365 2003-05-13  Jason Merrill  <jason@redhat.com>
3366
3367         * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
3368
3369         * tree.c (iterative_hash_expr): New fn.
3370
3371         * c-semantics.c (emit_local_var): Don't mess with temp slots if
3372         there's no initializer.
3373
3374 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
3375
3376         * final.c (final_scan_insn): Apply the effects of frame-related
3377         delay slot insns before emitting a delayed branch.
3378
3379 2003-05-13  Nick Clifton  <nickc@redhat.com>
3380
3381         * config/mcore/mcore.md (jump): Use emit_jump_insn.
3382
3383 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3384
3385         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
3386         parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
3387
3388 2003-05-12  DJ Delorie  <dj@redhat.com>
3389
3390         * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
3391         (emit_push_insn): Don't use push when the source alignment is less
3392         than the stack's push rounding.
3393
3394 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
3395
3396         * diagnostic.c (output_format): Add support for %m.
3397         (output_printf, output_verbatim, diagnostic_set_info,
3398         verbatim): Set err_no field of the text_info structure being
3399         initialized.
3400         (fatal_io_error): Delete function.
3401         * diagnostic.h (text_info): Add err_no field.
3402         * toplev.h (fatal_io_error): Delete prototype.
3403
3404         * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
3405         * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
3406         * objc/objc-act.c: Replace all calls to fatal_io_error with
3407         calls to fatal_error; add ": %m" to the end of all the affected
3408         error messages.
3409
3410 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
3411
3412         * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
3413         * rtl.h: Prototype it.
3414         * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
3415         when appropriate.
3416
3417 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3418
3419         * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
3420         ("*iorsi3_oi"): Likewise.
3421
3422 2003-05-13  Richard Earnshaw  <rearnsha@arm.com>
3423
3424         * arm.md (compare_scc): Use shorter sequence for EQ case.
3425         (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
3426         (and_scc_scc): Ensure split only applies when there is a dominance
3427         of the comparisons.
3428         (and_scc_scc_nodom): New insn-and-split pattern.
3429
3430 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
3431
3432         * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
3433         to _Unwind_SetGRPtr().
3434
3435 2003-05-13  Michael Eager <eager@mvista.com>
3436
3437         * Makefile.in: Initialize program_transform_cross_name from
3438         @program_transform_name@ instead of target_alias.
3439
3440 2003-05-12  Janis Johnson  <janis187@us.ibm.com>
3441             Alan Modra  <amodra@bigpond.net.au>
3442             Jakub Jelinek  <jakub@redhat.com>
3443
3444         * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
3445         * configure: Rebuild.
3446         * config/rs6000/rs6000-protos.h: Update.
3447         * config/rs6000/rs6000.c (rs6000_tls_size): New.
3448         (rs6000_tls_size_string): New.
3449         (rs6000_parse_tls_size_option): New.
3450         (rs6000_legitimize_tls_address): New.
3451         (rs6000_tls_get_addr): New.
3452         (rs6000_got_sym): New.
3453         (rs6000_tls_symbol_ref): New.
3454         (rs6000_tls_symbol_ref_1): New.
3455         (rs6000_get_some_local_dynamic_name): New.
3456         (rs6000_get_some_local_dynamic_name_1): New.
3457         (TARGET_HAVE_TLS): New.
3458         (TARGET_CANNOT_FORCE_CONST_MEM): New.
3459         (rs6000_override_options): Handle -mtls-size option.
3460         (constant_pool_expr_1): Handle TLS symbols.
3461         (rs6000_legitimize_address): Handle TLS symbols.
3462         (rs6000_tls_referenced_p): New.
3463         (rs6000_legitimate_address): Handle TLS symbols.
3464         (rs6000_emit_move): Handle TLS symbols.
3465         (print_operand): Handle TLS symbols.
3466         (uses_TOC): Handle TLS symbols.
3467         (rs6000_emit_prologue): Use symbol for unspec constant.
3468         * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
3469         (some_ld_name): New.
3470         (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
3471         (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
3472         (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
3473         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
3474         Support TLS.
3475         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
3476         tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
3477         tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
3478         tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
3479         tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
3480         tls_tls_64): New.
3481         * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
3482
3483 2003-05-12  Neil Booth  <neil@cat.daikokuya.co.uk>
3484
3485         * Makefile.in (stage2_build, stage3_build, stage4_build):
3486         Set BUILD_CC to the same as CC.
3487
3488 2003-05-12  Neil Booth  <neil@daikokuya.co.uk>
3489
3490         * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
3491
3492 2003-05-12  Andreas Schwab  <schwab@suse.de>
3493
3494         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
3495         as unused.
3496         (bundling): Initialize 'pos'.
3497         (ia64_expand_builtin): Initialize 'rmode'.
3498
3499 2003-05-12  David Edelsohn  <edelsohn@gnu.org>
3500
3501         * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
3502         (ASM_OUTPUT_ALIGNED_COMMON): Same.
3503         (ASM_OUTPUT_LOCAL): Same.
3504
3505 Mon May 12 21:53:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
3506
3507         * varasm.c (output_constant):  Fix underflow.
3508
3509 2003-05-12  Mark Mitchell  <mark@codesourcery.com>
3510
3511         PR other/10745
3512         * configure.in: Correct detection of GNU ld version number.
3513         * configure: Regenerated.
3514
3515 2003-05-12  Zack Weinberg  <zack@codesourcery.com>
3516
3517         * diagnostic.c (diagnostic_for_decl): Take a
3518         diagnostic_context argument.  Restructure to be consistent
3519         with diagnostic_report_diagnostic.
3520         (diagnostic_count_diagnostic): Now static.  Take a
3521         diagnostic_info argument, not just a diagnostic_t.  Some code
3522         moved here from internal_error.  Move a case label for
3523         clarity.
3524         (diagnostic_action_after_output): New function.  Code moved
3525         here from internal_error and fatal_error.
3526         (bug_report_request): New #define so that this text appears in
3527         only one place.
3528         (diagnostic_report_diagnostic): Update to match changes to
3529         diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
3530         (diagnostic_set_info): Call gettext here.
3531
3532         (pedwarn): Update comment.  Don't call gettext here.
3533         (sorry): Use report_diagnostic.  Don't call gettext here.
3534         (fatal_error): Remove final fnotice and exit, but call
3535         real_abort to prevent warnings about noreturn function returning.
3536         (internal_error): Likewise.  Don't do ICE suppression here nor
3537         call context->internal_error.
3538         (warning_with_decl): Suppress for decls in system headers.
3539         Adjust call to diagnostic_for_decl.
3540         (pedwarn_with_decl): Likewise.
3541         (error_with_decl): Adjust call to diagnostic_for_decl.
3542         (error_recursion): Use bug_report_request.
3543
3544         * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
3545         * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
3546         diagnostic_count_diagnostic.
3547
3548 2003-05-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3549
3550         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
3551
3552 Mon May 12 15:57:54 CEST 2003  Jan Hubicka  <jh@suse.cz>
3553
3554         * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
3555         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
3556         * mips/mips.h (ASM_OUTPUT_SKIP):  Fix typo in the previous patch.
3557
3558 2003-05-12  Roger Sayle  <roger@eyesopen.com>
3559
3560         * doc/rtl.texi: Document zero_extract as a valid destination
3561         of a set insn.
3562
3563 2003-05-12  Richard Earnshaw  <rearnsha@arm.com>
3564
3565         * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
3566         '.'.  Change all local symbol definitions and references to use LSYM.
3567
3568 Mon May 12 11:32:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
3569
3570         * expr.h (assemble_static_space): Update prototype.
3571         * output.h (assemble_zeros, output_constant): Likewise.
3572         * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
3573         * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
3574         it 64bit clean.
3575         * elf.h (ASM_OTUPUT_SKIP): Likewise.
3576         * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
3577         * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
3578         Expect HOST_WIDE_INT operand.
3579         * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
3580         Expect HOST_WIDE_INT operand.
3581         * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
3582         Expect HOST_WIDE_INT operand.
3583         * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
3584         HOST_WIDE_INT operand.
3585         * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
3586         ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
3587         * aout.h (ASM_OTUPUT_SKIP): Likewise.
3588         * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
3589         * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
3590         * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
3591         * frv.h (ASM_OTUPUT_SKIP): Likewise.
3592         * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
3593         * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
3594         Make it 64bit
3595         clean.
3596         * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
3597         * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
3598         Make it 64bit clean.
3599         * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
3600         * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
3601         HOST_WIDE_INT operand
3602         * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
3603         Expect HOST_WIDE_INT operand
3604         * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
3605         * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
3606         ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
3607         * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
3608         Likewise.
3609         * m32r.h (ASM_OUTPUT_COMMON): Likewise.
3610         * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
3611         Likewise.
3612         * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3613         * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3614         * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
3615         ASM_OUTPUT_SKIP): Likewise.
3616         * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
3617         Likewise.
3618         * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
3619         ASM_OUTPUT_SKIP): Likewise.
3620         * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
3621         ASM_OUTPUT_SKIP): Likewise.
3622         * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
3623         * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
3624         ASM_OUTPUT_SKIP): Likewise.
3625         * sgs.h (ASM_OUTPUT_SKIP): Likewise.
3626         * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
3627         ASM_OUTPUT_SKIP): Likewise.
3628         * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
3629         Likewise.
3630         * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
3631         * iris.h (ASM_OUTPUT_LOCAL): Likewise.
3632         * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
3633         * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
3634         ASM_OUTPUT_SKIP): Make it 64bit clean.
3635         * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
3636         Make it 64bit clean.
3637         * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
3638         ASM_OUTPUT_SKIP): Make it 64bit clean.
3639         * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
3640         64bit clean.
3641         * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
3642         HOST_WIDE_INT argument
3643         * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
3644         * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
3645         HOST_WIDE_INT argument
3646         * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
3647         * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
3648         * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
3649         * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
3650         HOST_WIDE_INT argument
3651         * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
3652         * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
3653         * varasm.c (asm_output_bss, asm_output_aligned_bss,
3654         asm_emit_uninitialized, assemble_zeros, assemble_static_space):
3655         HOST_WIDE_INT argument
3656
3657 2003-05-10  Steven Bosscher  <steven@gcc.gnu.org>
3658
3659         * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
3660         favor of walk_tree_without_duplicates.  Add comments.
3661
3662 2003-05-12  Josef Zlomek  <zlomekj@suse.cz>
3663
3664         * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
3665         (struct alloc_pool_def): New element 'id'.
3666         * alloc-pool.c (fancy_abort): Extern function prototype.
3667         (abort): Macro which uses fancy_abort.
3668         (struct allocation_object_def): New structure.
3669         (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
3670         (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
3671         (last_id): New variable.
3672         (create_alloc_pool): Add the offset of u.data to size of element,
3673         increase and use last_id.
3674         (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
3675         (pool_alloc): Likewise. Set ID for elements.
3676         (pool_free): Check whether the PTR was allocated from POOL.
3677
3678 2003-05-11  Richard Henderson  <rth@redhat.com>
3679
3680         PR c/10675
3681         * c-decl.c: Include hashtab.h.
3682         (detect_field_duplicates): New.
3683         (finish_struct): Use it.
3684         * Makefile.in (c-decl.o): Update.
3685         * c-parse.in (structsp_attr): Nreverse component_decl_list results.
3686         (component_decl_list, component_decl_list2,
3687         components, components_notype): Build list in reverse order.
3688         (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
3689
3690         * tree.c (chainon): Special case op2 null as well.
3691         Reorg for clarity.
3692
3693 2003-05-11  Roger Sayle  <roger@eyesopen.com>
3694
3695         * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
3696         to implement log, logf and logl built-ins as inline x87 intrinsics.
3697         (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
3698         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
3699         patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
3700
3701         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
3702         UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
3703
3704 2003-05-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3705
3706         * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
3707
3708         * sparc.c (print_operand): Fix uninitialized warning.
3709
3710 2003-05-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3711
3712         * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
3713         real insns.
3714         * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
3715         condition.
3716
3717 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
3718
3719         * doc/cpp.texi: Fix typos.
3720
3721 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
3722
3723         * config/s390/s390.c (s390_function_arg_float): New function.
3724         (s390_function_arg_pass_by_reference): Use it.
3725         (s390_function_arg_advance): Likewise.
3726         (s390_function_arg): Likewise.
3727         (s390_va_arg): Likewise
3728
3729 2003-05-11  Nathan Sidwell  <nathan@codesourcery.com>
3730
3731         * coverage.h (coverage_counter_alloc): New function.
3732         * function.h (struct function): Remove arc_profile flag.
3733         * coverage.c (fn_ident): Remove.
3734         (fn_b_ctrs, no_coverage): New.
3735         (get_coverage_counts): Use current_function_funcdef_no.
3736         (coverage_counter_alloc): New.
3737         (coverage_counter_ref): Adjust.
3738         (coverage_begin_output): Check no_coverage. Use
3739         current_function_funcdef_no.
3740         (coverage_end_function): Likewise.
3741         (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
3742         than clearing flag_inline_functions. Do not clear arc_profile
3743         flag.
3744         * function.c (prepare_function_start): Do not set arc_profile
3745         flag.
3746         * profile.c (instrument_edges): Return number of instrumented
3747         edges. Use a for loop.
3748         (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
3749         local to here and simplify. Use profile_arc_flag not arc_profile
3750         flag.
3751         (find_spanning_tree): Reformat.
3752         * toplev.c (rest_of_compilation): Use profile_arc_flags and
3753         flag_test_coverage rather than arc_profile flag.
3754
3755 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
3756
3757         * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
3758
3759 2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3760
3761         * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
3762
3763 2003-05-11  Bruno Haible  <bruno@clisp.org>
3764
3765         * cppfiles.c (find_or_create_entry): Preserve errno.
3766
3767 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
3768
3769         * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
3770         cpplib as it's a Standard Predefined Macro.
3771         * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
3772         * cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
3773         __STDC_HOSTED__ appropriately.
3774         * cpplib.h (_cpp_init_builtins): Update.
3775         * fix-header.c (read_scan_file): Update.
3776         * doc/cpp.texi, doc/cppopts.texi: Update documentation.
3777
3778 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3779
3780         PR C++/689
3781         PR C++/9257
3782         * c-opts.c (c_common_decode_option): Don't set
3783         warn_ctor_dtor_privacy wen -Wall.
3784         * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
3785
3786 2003-05-10  Alexandre Oliva  <aoliva@redhat.com>
3787
3788         * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
3789         patch.
3790
3791 2003-05-10  Zack Weinberg  <zack@codesourcery.com>
3792
3793         * diagnostic.c: Reorder functions for clarity, putting all the
3794         functions in the "error" family next to each other, and
3795         likewise all the functions in the "error_with_decl" family.
3796         Some other routines were moved too.  Add comments.
3797         (vbuild_message_string): Fold into sole caller.
3798
3799
3800 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
3801
3802         * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
3803         (EH_RETURN_HANDLER_RTX): Likewise.
3804         (expand_builtin_eh_return): Do not copy stack adjustment
3805         if EH_RETURN_STACKADJ_RTX is not defined.
3806         (expand_eh_return): Likewise.  Also, do not pass stack
3807         adjustment as argument to the eh_return pattern.
3808         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
3809         because EH_RETURN_STACKADJ_RTX is not defined.
3810         * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
3811         is not defined, treat stack pointer like a regular register.
3812         (uw_init_context_1): Set up fake initial stack pointer register.
3813         (uw_install_context_1): Do not compute stack adjustment if
3814         EH_RETURN_STACKADJ_RTX is not defined.
3815
3816         * config/i386/i386.md ("eh_return"): Remove first argument.
3817         * config/mips/mips.md ("eh_return"): Likewise.
3818         * config/rs6000/rs6000.md ("eh_return"): Likewise.
3819         * config/sh/sh.md ("eh_return"): Likewise.
3820
3821         * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
3822
3823 2003-05-10  Alexander Aganichev  <aaganichev@yandex.ru>
3824
3825         * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
3826
3827 2003-05-10  Nathan Sidwell  <nathan@codesourcery.com>
3828
3829         * defaults.h (GCOV_TYPE_SIZE): Remove.
3830         * gcov-io.h (gcov_type): Set to specific mode int on target.
3831         (gcov_unsigned_t, gcov_position_t): New.
3832         (GCOV_TYPE_NODE): New.
3833         (GCOV_TAG_SUMMARY_LENGTH): Adjust.
3834         (GCOV_COUNTERS_SUMMABLE): New.
3835         (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
3836         gcov_ctr_info, gcov_info): Adjust types.
3837         (gcov_var): Adjust types.
3838         (gcov_write_unsigned, gcov_write_tag,
3839         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
3840         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
3841         (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
3842         * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
3843         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
3844         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
3845         * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
3846         __gcov_init, __gcov_merge_add): Adjust gcov types.
3847         * coverage.c (ctr_merge_functions): Constify.
3848         (ctr_names): New.
3849         (read_counts_file): Adjust gcov types. Only summarize & merge
3850         summable counters.
3851         (coverage_counter_ref): Use GCOV_TYPE_NODE.
3852         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
3853         build_ctr_info_value, build_gcov_info): Adjust types.
3854         * profile.c (branch_prob): Adjust gcov types.
3855         * gcov_dump (dump_file): Adjust gcov types.
3856
3857 2003-05-10  Richard Earnshaw  <rearnsha@arm.com>
3858
3859         * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
3860         constants.
3861         (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
3862         * arm.c (arm_select_dominance_cc_mode): Renamed from
3863         select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
3864         Callers updated.
3865         * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
3866
3867 2003-05-09  Roger Sayle  <roger@eyesopen.com>
3868
3869         * config/alpha/alpha.c (alpha_start_function): Declare frame_size
3870         as unsigned to avoid signed/unsigned comparison warnings.
3871
3872 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
3873
3874         * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
3875         instruction if the Xtensa density option is enabled.
3876
3877 2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>
3878
3879        * mklibgcc.in: Remove extra quotes.
3880
3881 2003-05-09  Mark Mitchell  <mark@codesourcery.com>
3882
3883         * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
3884         of int_ftype_void.
3885
3886 2003-05-09  Alexandre Oliva  <aoliva@redhat.com>
3887
3888         * reload1.c (reload_cse_move2add): Don't turn an implicit
3889         truncation into a self-set in the narrow mode.
3890
3891 2003-05-09  Richard Earnshaw  <rearnsha@arm.com>
3892
3893         * arm.md (clzsi2): The CLZ instruction is predicable.
3894
3895 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
3896
3897         * config/xtensa/xtensa.c: Formatting.
3898
3899 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
3900
3901         * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
3902         instead of TREE_OPERAND to access the operand of a
3903         CONSTRUCTOR node.
3904
3905 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
3906
3907         * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
3908         one operand.
3909
3910 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
3911
3912         * toplev.h (warning_with_file_and_line): Don't declare.
3913         (error_with_file_and_line): Likewise.
3914         * diagnostic.c (error_with_file_and_line): Remove.
3915         (warning_with_file_and_line): Likewise.
3916
3917 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
3918
3919         * c-parse.in (if_stmt_locus): New object.
3920         (if_prefix rule): Use it.  Don't use warning_with_file_and_line.
3921         (select_or_iter_stmt rule): Likewise.
3922         (if_stmt_file): Remove.
3923         (if_stmt_line): Likewise.
3924         * jump.c: include "diagnostic.h"
3925         (never_reached_warning): Don't use warning_with_file_and_line.
3926         * Makefile.in (jump.o): Add dependce on diagnostic.h
3927
3928 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
3929
3930         * expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
3931         Move code handling pieces not larger than a word to..
3932         * function.c (assign_parms): ..here, but use change_address instead
3933         of adjust_address and operand_subword, and expand_binop instead of
3934         expand_shift.  Adjust calls to move_block_from_reg.
3935         * expr.h (move_block_from_reg): Update declaration.
3936         (copy_blkmode_from_reg): Formatting.
3937         * Makefile.in (function.o): Add $(OPTABS_H) to deps.
3938         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
3939         move_block_from_reg calls.
3940         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
3941         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
3942         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
3943         * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
3944         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
3945         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3946         * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
3947         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
3948         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
3949
3950 2003-05-08  DJ Delorie  <dj@redhat.com>
3951
3952         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
3953         to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
3954         variable-sized types).
3955         (xstormy16_function_arg): New.  Pass them that way too.
3956         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
3957         * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
3958
3959 2003-05-08  Aldy Hernandez  <aldyh@redhat.com>
3960
3961         * mklibgcc.in: Use mkinstalldirs when installing multilib
3962         directories.
3963
3964 2003-05-08  J"orn Rennecke <joern.rennecke@superh.com>
3965
3966         * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
3967         instead of CODE_FOR_jump
3968
3969 2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>
3970
3971         * objc/objc-act.c (error_with_ivar): Don't use
3972         error_with_file_and_line.
3973         (warn_with_method): Don't use warning_with_file_and_line.
3974
3975 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3976
3977         * stmt.c (emit_locus): New macro.
3978         (emit_filename): Remove.
3979         (emit_lineno): Likewise.
3980         (struct stmt_status): Replace members x_emit_filename and
3981         x_emit_lineno with x_emit_locus.
3982         (set_file_and_line_for_stmt): Adjust.
3983         (expand_expr_stmt_value): Don't use warning_with_file_and_line.
3984         (warn_if_unused_value): Likewise.
3985         (check_seenlabel): Likewise.
3986
3987 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3988
3989         * c-decl.c (define_label): Tidy.  Don't use any of
3990         error_with_file_and_line or warning_with_file_and_file.
3991         (pending_xref_error): Likewise.
3992         (store_parm_decls): Likewise.
3993         (current_function_prototype_locus): New object.  Package from
3994         current_function_prototype_file and current_function_prototype_line.
3995         (start_function): Use it.
3996         (current_function_prototype_file): Remove.
3997         (current_function_prototype_line): Remove;
3998
3999 2003-05-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4000
4001         * builtins.c (readonly_data_expr): New function.
4002         (expand_builtin_memmove): Optimize any rodata source, not just
4003         strings.
4004
4005 2003-05-07  David Mosberger <davidm@hpl.hp.com>
4006
4007         * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
4008
4009 2003-05-07  Richard Henderson  <rth@redhat.com>
4010
4011         * config/i386/i386.c (ix86_split_long_move): Fix base register
4012         mode for XFmode splits for TARGET_64BIT.
4013
4014 2003-05-07  Richard Henderson  <rth@redhat.com>
4015
4016         * sched-ebb.c (schedule_ebb): Supply the correct starting
4017         block number to save_line_notes.
4018
4019 2003-05-07  Richard Henderson  <rth@redhat.com>
4020
4021         * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
4022         (dump_file): Likewise.
4023
4024 2003-05-07  David Mosberger <davidm@hpl.hp.com>
4025
4026         * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
4027         forget to preserve gp.
4028         * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
4029
4030         * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
4031         .prologue directive.
4032         Use .skip instead of data8 for .bss section to make Intel
4033         Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
4034         explicit in the .mib bundles and remove the unnecessary stop
4035         bits.  Replace local labels with normal labels, to make ias
4036         happy.  Don't register __do_global_ctors_aux here, do it in
4037         crtend.asm instead.
4038
4039         * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
4040         __do_global_ctors_aux in .init_array section instead of
4041         declaring it as a hidden global.  Replace local labels with
4042         ordinary labels to make ias happy.
4043
4044 2003-05-07  Richard Henderson  <rth@redhat.com>
4045
4046         PR c++/10570
4047         * except.c: Revert 04-01 and 04-02 forced-unwind changes.
4048         * flags.h, toplev.c, doc/invoke.texi: Likewise.
4049
4050         * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
4051         * unwind.inc (_Unwind_DeleteException): Check for null
4052         exception_cleanup.
4053
4054         * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
4055         * unwind.inc (_Unwind_Resume_or_Rethrow): New.
4056         * unwind.h: Declare them.
4057         * libgcc-std.ver (GCC_3.3): Export them.
4058
4059 2003-05-07  Richard Henderson  <rth@redhat.com>
4060
4061         * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
4062         not _Unwind_Word.
4063
4064 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
4065
4066         * stmt.c (force_label_rtx): New function, based on logic
4067         formerly found in expand_expr.
4068         * expr.h: Prototype it.
4069         * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
4070         appropriate.
4071         * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
4072
4073         * print-tree.c (debug_tree): Free the table after we're done
4074         with it.  Use putc.
4075
4076 2003-05-07  Aldy Hernandez  <aldyh@redhat.com>
4077
4078         * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
4079         Unreverse arguments for __ev_subw.
4080
4081         * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
4082
4083 2003-05-07  Nick Clifton  <nickc@redhat.com>
4084
4085         * config/stormy16/stormy-abi: Update to include
4086         R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
4087         R_XSTORMY16_12 relocs.
4088
4089 2003-05-07  Alan Modra  <amodra@bigpond.net.au>
4090
4091         * function.c (assign_parms): Correct reversed reg_parm_stack_space
4092         test.  Add partial in-regs size to stack_args_size.
4093
4094 2003-05-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4095
4096         * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
4097         as a C only option.
4098
4099 2003-05-07  Nathan Sidwell  <nathan@codesourcery.com>
4100
4101         * gcov-io.h (GCOV_LOCKED): New #define.
4102         (GCOV_LINKAGE): Make sure it is #defined.
4103         (gcov_write_string, gcov_write_tag, gcov_write_length,
4104         gcov_read_string, gcov_time): Poison in libgcov.
4105         (gcov_seek_end): Remove.
4106         (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
4107         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
4108         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
4109         GCOV_TAG_SUMMARY_LENGTH): New #defines.
4110         (gcov_write_tag, gcov_write_length): Not in libgcov.
4111         * gcov-io.c (gcov_open): Use GCOV_LOCKED.
4112         (gcov_write_tag, gcov_write_length): Not in libgcov.
4113         (gcov_write_tag_length): New.
4114         (gcov_write_summary): Use gcov_write_tag_length.
4115         * libgcov.c: Always #include gcov-io.h.
4116         (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
4117         (GCOV_LINKAGE): Define to nothing for L_gcov.
4118         (gcov_exit): Replace gcov_write_tag, gcov_write_length with
4119         gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
4120         * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
4121         (read_count_file): Likewise.
4122         * gcov-dump.c (dump_file): Likewise.
4123         * coverag.c (read_counts_file): Likewise.
4124
4125 2003-05-06  Mark Mitchell  <mark@codesourcery.com>
4126
4127         PR other/10658
4128         * gcc.c (process_command): Update copyright date.
4129
4130 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
4131
4132         * doc/install.texi (mips-*-*):  Add note about libstdc++.
4133
4134 2003-05-06  DJ Delorie  <dj@redhat.com>
4135
4136         * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
4137         * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
4138         * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
4139
4140 2003-05-06    <neil@cat.daikokuya.co.uk>
4141
4142         * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
4143         and -Wstrict-prototypes if C++.
4144
4145 2003-05-06  Aldy Hernandez  <aldyh@redhat.com>
4146
4147         * config/rs6000/linuxspe.h: New file.
4148
4149         * config.gcc: Add powerpc-*-linux-gnuspe* target.
4150
4151 2003-05-06  Richard Henderson  <rth@redhat.com>
4152
4153         * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
4154         previous frame didn't save sp.  Clear sp for next frame.
4155         (uw_install_context_1): Honor saved sp from frame.
4156
4157 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
4158
4159         * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
4160         (mips_move_1word, mips_move_2words): Remove declaration.
4161         (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
4162         (mips_restore_gp): Remove insn argument.
4163         * config/mips/mips.h (FP_REG_RTX_P): New macro.
4164         * config/mips/mips.c (volatile_buffer): Remove.
4165         (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
4166         (mips_move_1word, mips_move_2words): Remove, replacing with...
4167         (mips_output_move): ...this new function.
4168         (mips_restore_gp): Remove insn argument.  Adjust for above changes.
4169         (print_operand): Make '%h' print %hi(op) for HIGH operands.  Remove
4170         handling of floating-point constants.  Handle zero CONST_DOUBLE
4171         arguments.
4172         (mips_annotate_frame_insn): Replace with...
4173         (mips_set_frame_expr): ...this, which just takes one argument.
4174         (mips_frame_set): Change the register argument to an rtx.
4175         (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
4176         check whether moves should be split.  Use mips_split_64bit_move
4177         to split them.  Use mips_subword to generate the high and low
4178         parts of a paired FPR.  Adjust calls to frame_set and
4179         mips_set_frame_expr.
4180         (mips_expand_prologue): Simplify due to above changes.
4181         * config/mips/mips.md:  Add splitters for 64-bit moves on 32-bit
4182         targets, replacing xisting register-only versions.
4183         (UNSPEC_STORE_DF_HIGH): New unspec.
4184         (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
4185         (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
4186         (*paradoxical_extendhidi2): Remove.
4187         (movdi_internal, movdi_internal2): Use mips_output_move.
4188         (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
4189         (movsf_internal1, movsf_internal2): Likewise.
4190         (movdf_internal1a): Likewise.  Fix length and type of f <- G case.
4191         (movdf_internal1b): Use mips_output_move.  Fix type of f <- G case.
4192         (movdf_internal2): Use mips_output_move.  Fix lengths of FPR moves.
4193         Add m <- G alternative.
4194         (load_df_low, load_df_high, store_df_low): New patterns.
4195         (movhi_internal): Use @ template instead of calling a function.
4196         Remove unnecessary 'z' alternatives.
4197         (movqi_internal): Likewise.
4198         (exception_receiver): Update call to mips_restore_gp.
4199
4200 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
4201
4202         * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
4203         (mips_delegitimize_address): Declare.
4204         * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
4205         (FIND_BASE_TERM): Define.
4206         * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
4207         (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
4208         Handle small-data addresses.
4209
4210 2003-05-05  Roger Sayle  <roger@eyesopen.com>
4211
4212         * real.c (real_powi): New function to calculate the value of
4213         a real raised to an integer power, i.e. pow(x,n) for int n.
4214         (real_sqrt): Convert to using the faster do_add, do_multiply
4215         and do_divide API for consistency with the rest of real.c.
4216         * real.h (real_powi): Prototype here.
4217         * builtins.c (fold_builtin):  Avoid local variable mode when
4218         evaluating sqrt at compile time.  Attempt to evaluate pow at
4219         compile-time, by checking for an integral exponent.
4220
4221 2003-05-05  Richard Henderson  <rth@redhat.com>
4222
4223         * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
4224
4225 2003-05-05  David O'Brien  <obrien@FreeBSD.org>
4226
4227         * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
4228         other FreeBSD ports.
4229         (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
4230         (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
4231
4232 2003-05-05  Janis Johnson  <janis187@us.ibm.com>
4233
4234         * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
4235         expanded variables.
4236         * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
4237
4238 2003-05-05  Zack Weinberg  <zack@codesourcery.com>
4239
4240         * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
4241         * varasm.c (struct varasm_status): Add deferred_constants field.
4242         (n_deferred_strings): Delete variable.
4243         (n_deferred_constants): New #define.
4244         (struct constant_descriptor_tree): Kill next and label fields.
4245         (const_hash_table, MAX_HASH_TABLE): Delete.
4246         (const_desc_htab): New static variable.
4247         (const_hash): Rename const_desc_hash, and make it fit the
4248         hashtab.h interface.
4249         (const_desc_eq): New.
4250         (const_hash_1, compare_constant): Const-ify arguments.
4251         (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
4252         SYMBOL_REFs.  Clarify comments.  Don't set desc->label.
4253         (output_constant_def): Do the lookup/insert using the
4254         hashtab.h interface.  Don't muck with n_deferred_constants or
4255         DEFERRED_CONSTANT_P here.
4256         Always call maybe_output_constant_def_contents.
4257         (maybe_output_constant_def_contents): Take a pointer to the
4258         descriptor, not the EXP and RTL separately.  Return
4259         immediately if this constant is not deferred.  Defer output of
4260         everything, except writable string constants.  Update
4261         n_deferred_constants here.
4262         (output_constant_def_contents): Now takes just one argument,
4263         an rtx.  Clear DEFERRED_CONSTANT_P here.
4264         (mark_constant_pool): Update for rename of n_deferred_strings.
4265         (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
4266
4267         (init_varasm_status): Clear p->deferred_constants.
4268         (init_varasm_once): Call htab_create_ggc for const_desc_htab.
4269
4270 2003-05-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4271
4272         * builtins.c (expand_builtin_stpcpy): Only expand when the length
4273         of the source string can be evaluated at compile-time.
4274
4275 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
4276
4277         * testsuite/gcc.c-torture/compile/simd-6.c: New.
4278
4279         * c-typeck.c (digest_init): Handle arrays of vector constants.
4280
4281 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
4282
4283         * builtins.c (expand_builtin_mempcpy): New function.
4284         (expand_builtin_stpcpy): Optimize stpcpy whose return value is
4285         ignored into strcpy no matter what arguments it has.
4286         (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
4287         expand_builtin_mempcpy.
4288
4289 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
4290
4291         * testsuite/gcc.dg/20030505.c: New.
4292
4293         * c-typeck.c (convert_for_assignment): Opaque pointers can
4294         interconvert.
4295
4296         * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
4297         (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
4298         (spe_init_builtins): Rename all pv2si_type_node to
4299         opaque_p_V2SI_type_node.
4300         Remove declaration of pv2si_type_node.
4301         (is_ev64_opaque_type): Accept opaque pointers.
4302
4303 2003-05-05  Geoffrey Keating  <geoffk@apple.com>
4304
4305         * config/rs6000/rs6000.c (validate_condition_mode): Use
4306         flag_finite_math_only.
4307         (rs6000_reverse_condition): Never return UNKNOWN; use
4308         flag_finite_math_only.
4309         (rs6000_generate_compare): Use flag_finite_math_only.
4310         (rs6000_emit_cmove): Handle UNLE.  Support UNEQ under -ffast-math.
4311         Use HONOR_* rather than flag_unsafe_math_optimizations.  Correct
4312         UNGE and GT cases.  Handle UNEQ and LTGT when ! HONOR_NANS.
4313
4314         * toplev.c (check_global_declarations): Suppress not-used warning
4315         for volatile variables.
4316
4317 2003-05-05  Olivier Hainque  <hainque@act-europe.fr>
4318
4319         * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
4320         usage of bitfield instructions for mode1 != BLKmode, only ignoring
4321         SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
4322         (store_field): Likewise.
4323
4324 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
4325
4326         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
4327         evsubifw to builtins accepting 5-bit unsigned constants.
4328         (easy_vector_constant): Return if V1DImode.  Fix typo.
4329
4330 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
4331
4332         * config/rs6000/spe.h: Revert licensing change from last patch.
4333
4334 2003-05-05  DJ Delorie  <dj@redhat.com>
4335
4336         * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
4337         before reload, but defer the split until after.
4338         * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
4339         to match.
4340
4341 2003-05-05  David Edelsohn  <edelsohn@gnu.org>
4342
4343         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
4344         * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
4345
4346 2003-05-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4347
4348         * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
4349         is defined.
4350
4351 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4352
4353         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
4354         ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
4355         ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
4356
4357         (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
4358         ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
4359         ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
4360         New.
4361
4362         * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
4363         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
4364
4365         (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
4366         BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
4367         BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
4368         BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
4369         BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
4370         BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
4371         BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
4372         BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
4373         BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
4374         BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
4375         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
4376         BUILT_IN_STRDUP): Add "nonnull" attribute.
4377
4378 2003-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4379
4380         * expr.c (store_field): Don't clobber TEMP in shift: it might be
4381         a variable.
4382         (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
4383         whose purpose is to step up the alignment.
4384         (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
4385
4386         * stor-layout.c (compute_record_mode): Relax restriction
4387         on fields crossing word boundaries forcing BLKmode.
4388
4389 2003-05-04  Neil Booth  <neil@daikokuya.co.uk>
4390
4391         * cppinit.c (cpp_create_reader, post_options): Warn about
4392         trigraphs unless explicity set or -trigraphs.
4393         * cpplex.c (warn_in_comment): New.
4394         (_cpp_process_line_notes): Better handling of -Wtrigraphs.
4395         (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
4396         * doc/cppopts.texi, doc/cpp.texi: Update.
4397
4398 2003-05-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4399
4400         * Makefile.in (LIBGCOV): Add _gcov_merge_add.
4401         * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
4402         namespace clash.
4403         (GCOV_MERGE_FUNCTIONS): New.
4404         (gcov_merge_fn): Declare.
4405         (struct gcov_ctr_info): New field "merge".
4406         (__gcov_merge_add): Declare.
4407         * coverage.c (ctr_merge_functions): New.
4408         (build_ctr_info_type, build_ctr_info_value): Initialize merge field
4409         of gcov_ctr_info type.
4410         * libgcov.c (__gcov_merge_add): New.
4411         (gcov_exit): Call a hook to merge values of counters.
4412
4413 2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
4414
4415         * toplev.h (pedwarn_with_file_and_line): Don't declare.
4416         * diagnostic.c (pedwarn_with_file_and_line): Remove.
4417
4418 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4419
4420         * varasm.c (assemble_variable): Don't use error_with_file_and_line.
4421
4422 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4423
4424         * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
4425         expand_builtin_frame_address): Update prototypes.
4426         (expand_builtin_constant_p, expand_builtin_strlen,
4427         expand_builtin_strcpy, expand_builtin_memset,
4428         expand_builtin_bzero, expand_builtin_args_info,
4429         expand_builtin_frame_address): Pass in just the argument(s)
4430         needed, not the entire expression `exp'.
4431         (expand_builtin): Update all calls to these functions.
4432
4433 2003-05-03  Richard Henderson  <rth@redhat.com>
4434
4435         * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
4436         <BUILT_IN_DWARF_SP_COLUMN>: New.
4437         * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
4438         (BUILT_IN_DWARF_SP_COLUMN): New.
4439         * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
4440         (expand_builtin_dwarf_sp_column): New.
4441         * except.h: Update to match.
4442         * unwind-dw2.c (execute_stack_op): Correct stack push typo.
4443         (execute_cfa_program): Record location expression address
4444         before extracting length.
4445         (uw_update_context_1): Install old CFA into stack pointer column.
4446         (uw_init_context_1): Set cfa_reg to stack pointer column.
4447
4448 2003-05-03  Richard Henderson  <rth@redhat.com>
4449
4450         * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
4451         return bool.
4452         (toc_relative_expr_p): Likewise.
4453         (SPE_CONST_OFFSET_OK): Move from rs6000.h.
4454         (legitimate_constant_pool_address_p): Move from rs6000.h, change
4455         into a function, downcase all users.
4456         (legitimate_small_data_p): Likewise.
4457         (legitimate_offset_address_p): Likewise.
4458         (legitimate_indexed_address_p): Likewise.
4459         (legitimate_indirect_address_p): Likewise.
4460         (legitimate_lo_sum_address_p): Likewise.
4461         (rs6000_mode_dependent_address): Likewise.
4462         * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
4463         (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
4464         LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
4465         LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
4466         LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
4467         (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
4468         (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
4469         * config/rs6000/rs6000-protos.h: Update.
4470
4471 2003-05-03  Geoffrey Keating  <geoffk@apple.com>
4472
4473         * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
4474         (REVERSE_CONDITION): Define.
4475
4476         * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
4477         to branch_positive_comparison_operator.
4478         (ccr_bit): Check that sCOND conditions are actually a positive bit.
4479         (print_operand): Remove %D substitution.
4480         (rs6000_emit_sCOND): Generate complement operation to ensure that
4481         sCOND input is a positive bit.
4482         * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
4483         same order as bCOND, and add the missing ones.  Remove the %D
4484         substitutions from the scc patterns.
4485
4486         * simplify-rtx.c (simplify_relational_operation): Add case for
4487         ! (fabs(x) < 0.0).
4488
4489 2003-05-03  Bruce Korb  <bkorb@gnu.org>
4490
4491         * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
4492         in fixincl.x
4493         * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
4494
4495 2003-05-03  Aldy Hernandez  <aldyh@redhat.com>
4496
4497         * config/rs6000/spe.h: Remove unecessary casts.  Misc cleanups.
4498
4499 2003-05-03  Zack Weinberg  <zack@codesourcery.com>
4500
4501         PR c/10604
4502         * c-common.c (warn_sign_compare): Initialize to -1.
4503         * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
4504         (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
4505         for C++ only.
4506         (c_common_post_options): Set warn_sign_compare from extra_warnings
4507         if it's still -1 at this point.
4508
4509         * toplev.c (maybe_warn_unused_parameter): New static variable.
4510         (set_Wextra): New static function.
4511         (W_options): Remove "extra".
4512         (decode_W_option): Call set_Wextra.
4513         (independent_decode_option): Likewise.
4514         (set_Wunused): Cooperate with set_Wextra in setting
4515         warn_unused_parameter.
4516         (rest_of_compilation): No need to check extra_warnings as
4517         well as warn_uninitialized.
4518
4519         * c-typeck.c (build_binary_op, build_conditional_expr):
4520         No need to check extra_warnings as well as warn_sign_compare.
4521         (internal_build_compound_expr): No need to check extra_warnings
4522         as well as warn_unused_value.
4523         * function.c (expand_function_end): No need to check extra_warnings
4524         as well as warn_unused_parameter.
4525         * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
4526         as well as warn_unused_value.
4527
4528         * doc/invoke.texi: Clarify documentation of -Wsign-compare.
4529
4530         * Makefile.in: Disable -Werror for gengtype-lex.o.
4531
4532 2003-05-03  Olivier Hainque  <hainque@act-europe.fr>
4533
4534         * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
4535         * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
4536         * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
4537         * calls.c (emit_call_1): Likewise.
4538         (expand_call): For calls initializing constant memory, replace
4539         emission of standalone mem /u clobber with function usage entry.
4540         * expr.c (emit_block_move_via_libcall): Likewise.
4541         * cse.c (count_reg_usage, case EXPR_LIST): New case.
4542         * flow.c (propagate_one_insn): Pass entire operand of
4543         CALL_INSN_FUNCTION_USAGE to mark_used_regs.
4544         * integrate.c (try_constants): For CALL_INSNs, substitute constants
4545         within the FUNCTION_USAGE also.
4546         * loop.c (prescan_loop): Note clobbers of const mem mentioned in
4547         FUNCTION_USAGE lists.
4548         * reload1.c (replace_pseudos_in): Renamed.
4549         (reload): Use it for clobbers surviving until the end of the reload.
4550
4551 2003-05-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4552
4553         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
4554         gen_lowpart on non-integer modes.
4555
4556         * stor-layout.c (place_field): When adjusting offset_align, use
4557         desired_align, not DECL_ALIGN.
4558
4559 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
4560
4561         * c-decl.c (pending_invalid_xref_file): Remove.
4562         (pending_invalid_xref_line): Remove.
4563         (pending_invalid_xref_location): New.
4564         (lookup_label): Use location_t and input_location directly.
4565         (lookup_tag): Likewise.
4566         (pending_xref_error): Likewise.
4567         (c_expand_body_1): Likewise.
4568         * c-common.c (x_expand_start_cond): Likewise.
4569         * c-semantics.c (genrtl_for_stmt): Likewise.
4570         (find_reachable_label): Likewise.
4571         * expr.c (expand_expr): Likewise.
4572         * integrate.c (output_inline_function): Likewise.
4573         * tree-inline.c (find_alloca_call): Likewise.
4574         (find_builtin_longjmp_call): Likewise.
4575         * gcc.c (input_filename): Make static.
4576
4577 2003-05-03  Richard Sandiford  <rsandifo@redhat.com>
4578
4579         * config/mips/mips.md: Fix comment typo.
4580
4581         * config/mips/mips.c (mips_integer_op): New structure.
4582         (MIPS_MAX_INTEGER_OPS): Define.
4583         (mips_const_insns): Use mips_build_integer to determine the number
4584         of instructions needed to load a CONST_INT.
4585         (move_operand): Reject compound CONST_INTs.
4586         (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
4587         (mips_move_integer): New fn.
4588         (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
4589         (mips_legitimize_move): Only legitimize constants when moving
4590         word or subword values.
4591
4592 2003-05-02  Matt Kraai  <kraai@alumni.cmu.edu>
4593
4594         * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
4595
4596 2003-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4597
4598         * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
4599         modifying it.
4600
4601 2003-05-03  Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
4602             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4603
4604         * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
4605         Hernandez, and Kazu Hirata.  Update Richard Henderson.
4606
4607 2003-05-02  Geoffrey Keating  <geoffk@apple.com>
4608
4609         * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
4610         to tentative declaration.
4611
4612         * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
4613         (SYMBOL_FLAG_SMALL_V4): Delete.
4614         * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
4615         (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
4616         (rs6000_elf_in_small_data_p): Add extra section names.  Add
4617         comment about TREE_PUBLIC test.
4618
4619         * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
4620         expand_stmt on result of expand_unreachable_stmt.
4621
4622 2003-05-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4623
4624         * doc/contrib.texi (Contributors): Add Daniel Berlin.
4625
4626 2003-05-02  David Edelsohn  <edelsohn@gnu.org>
4627
4628         * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
4629         number of automata.
4630
4631         * config/rs6000/rs6000.c (symbol_ref_operand): Check
4632         SYMBOL_REF_FUNCTION_P on AIX.
4633         (current_file_function_operand): Same.
4634         * config/rs6000/rs6000.md (call,call_value): Force non-function
4635         symbol_ref into register on AIX.
4636
4637 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
4638
4639         * calls.c (struct arg_data): Move offset, slot_offset, size and
4640         alignment_pad to struct locate_and_pad_arg_data.  Update all refs.
4641         (initialize_argument_information): Adjust call to locate_and_pad_parm.
4642         Delete alignment_pad var.  Don't calculate slot_offset here.
4643         (emit_library_call_value_1): Delete alignment_pad, offset and size
4644         vars.  Use struct locate_and_pad_arg_data instead.  Adjust refs.
4645         Adjust call to locate_and_pad_parm.  Don't tweak arg size for
4646         partial in-regs here.  Formatting fixes.
4647         * expr.h (struct locate_and_pad_arg_data): New struct.
4648         (locate_and_pad_parm): Adjust declaration.
4649         * function.c (assign_parms): Localize vars.  Use "locate" instead of
4650         other arg location vars.  Don't invoke FUNCTION_ARG or
4651         FUNCTION_INCOMING_ARG unless pretend_named is different from
4652         named_arg.  Heed MUST_PASS_IN_STACK and set up "partial" before
4653         calling locate_and_pad_parm.  Adjust locate_and_pad_parm call.
4654         Use slot_offset for stack home of reg parms.  Correct test for
4655         parm passed in memory.  Formatting fixes.
4656         (locate_and_pad_parm): Add "partial" to params.  Replace offset_ptr
4657         arg_size_ptr and alignment pad with "locate".  Set slot_offset here.
4658         Correct initial_offset_ptr handling.  Localize vars.  Always pad
4659         locate->offset even when in_regs.
4660
4661 2003-05-02  Nathan Sidwell  <nathan@codesourcery.com>
4662
4663         * Makefile.in (TREE_H): Replace location.h with input.h.
4664         (GTFILES) Remove location.h
4665         (gt-lists.h): Replace gt-location.h with gt-input.h
4666         * input.h (input_filename, input_line): Remove variables.
4667         (location_s, location_t): Move from location.h.
4668         (input_location): New.
4669         (input_filename, input_line): New #defines.
4670         * location.h: Remove.
4671         * tree.h: Replace location.h with input.h.
4672         (input_filename, input_line): Remove.
4673         * diagnostic.h: Replace location.h with input.h.
4674         * gcc.h (input_filename, input_filename_length): Remove declarations.
4675         * toplev.c (input_filename, input_line): Remove.
4676         (input_location): Define.
4677         (push_srcloc, pop_srcloc): Adjust.
4678         * diagnostic.c (diagnostic_report_current_module): Adjust.
4679
4680 2003-05-02  Nick Clifton  <nickc@redhat.com>
4681
4682         * configure.in: Add xstormy16 to list of targets that has a nop
4683         instruction and hence which can be tested to see if the
4684         assembler supports the --gdwarf2 switch.
4685         * configure: Regenerate.
4686
4687 2003-05-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4688
4689         PR target/8257
4690         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
4691         alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
4692         Avoid undefined shifts by making the shift operand unsigned.
4693
4694 2003-05-01  DJ Delorie  <dj@redhat.com>
4695
4696         * reload.c (find_reloads): Also check that all of a multi-reg
4697         value is in the class.
4698
4699 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
4700
4701         * scan.h (lineno): Revert the rename here.
4702
4703 2003-05-01  Stan Shebs  <shebs@apple.com>
4704
4705         * config/darwin.c (darwin_encode_section_info): Call
4706         default_encode_section_info.
4707
4708 2003-05-01  David Edelsohn  <edelsohn@gnu.org>
4709
4710         * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
4711         (movsi_internal1): Use new mfjmpr attribute.
4712         (movhi_internal): Same.
4713         (movqi_internal): Same.
4714         (movcc_internal1): Same.
4715         (movdi_internal64): Same.
4716         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
4717         power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
4718         * config/rs6000/40x.md: Add fpu_405.
4719         * config/rs6000/power4.md: Merge power4lsu and power4disp automata
4720         into power4misc automata.  Remove extraneous parentheses.
4721         * config/rs6000/440.md: New file.
4722         * config/rs6000/rs6000.c (processor_target_table): Add 440,
4723         440fp.  Rename 405f to 405fp.
4724         (function_arg_padding): Correct formatting.
4725         (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
4726
4727 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
4728
4729         * input.h (lineno): Rename to ...
4730         (input_line): ... here.
4731         * tree.h (lineno): Rename to ...
4732         (input_line): ... here.
4733         * scan.h (lineno): Rename to ...
4734         (input_line): ... here.
4735         * toplev.c (lineno): Rename to ...
4736         (input_line): ... here.
4737         (push_srcloc, pop_srcloc):  Rename lineno to input_line.
4738         * c-common.c (c_expand_start_cond, fname_decl): Likewise.
4739         * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
4740         store_parm_decls, c_expand_body_1): Likewise.
4741         * c-errors.c (pedwarn_c99): Likewise.
4742         * c-format.c (status_warning): Likewise.
4743         * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
4744         * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
4745         * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
4746         * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
4747         gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
4748         genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
4749         genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
4750         build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
4751         prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
4752         * coverage.c (create_coverage): Likewise.
4753         * diagnostic.c (pedwarn, sorry, error, fatal_error,
4754         internal_error, warning, diagnostic_report_current_module,
4755         inform): Likewise.
4756         * expr.c (expand_expr): Likewise.
4757         * integrate.c (expand_inline_function,
4758         output_inline_function): Likewise.
4759         * rtl-error.c (file_and_line_for_asm): Likewise.
4760         * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
4761         walk_tree): Likewise.
4762         * tree.c (make_node): Likewise.
4763         * ada, cp, f, java, objc, treelang: Likewise.
4764         * objc/objc-act.c (objc_init): Rename lineno to input_line.
4765         (build_module_descriptor, build_selector_translation_table,
4766         build_protocol_template, build_method_prototype_list_template,
4767         build_category_template, build_selector_table,
4768         build_class_template, build_super_template, build_ivar_template,
4769         build_ivar_list_template, build_method_list_template,
4770         build_method_template, add_instance_variable): Likewise.
4771
4772         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
4773         name from input_filename.
4774
4775 2003-04-30  Eric Christopher  <echristo@redhat.com>
4776             Richard Sandiford <rsandifo@redhat.com>
4777
4778         * configure: Regenerate from patches below.
4779         * combine.c (gen_lowpart_for_combine): Fix comment and add tests
4780         for all symbolic operands.
4781         * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
4782         to function.
4783         * config/mips/linux.h: Fix typo.
4784         * Merge from mips-3_4-rewrite branch:
4785
4786         2003-04-07  Richard Sandiford  <rsandifo@redhat.com>
4787
4788                 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
4789                 handling local labels when TARGET_ABICALLS.
4790
4791         2003-04-04  Richard Sandiford  <rsandifo@redhat.com>
4792
4793                 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
4794                 integer argument.
4795                 (mips_expand_call): Likewise.
4796                 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
4797                 (FIXED_REGISTERS): Clear $31 entry.
4798                 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
4799                 (EPILOGUE_USES): Define.
4800                 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
4801                 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
4802                 (override_options): Add a 'j' register class.
4803                 (mips_expand_call): Handle sibcalls
4804                 (mips_expand_epilogue): Handle epilogues for sibcalls.
4805                 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
4806                 (sibcall_epilogue): New pattern.
4807                 (call, call_value): Adjust calls to mips_expand_call.
4808                 (sibcall, sibcall_value): New expanders.
4809                 (sibcall_internal, sibcall_value_internal): New patterns.
4810                 (sibcall_value_multiple_internal): New pattern.
4811
4812         2003-03-25  Richard Sandiford  <rsandifo@redhat.com>
4813
4814                 * config/mips/mips.md (extended_mips16): New attribute.
4815                 (define_attr length): Default to 8 if extended_mips16 == yes.
4816                 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
4817                 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
4818                 (call_internal): Set extended_mips16 to yes for direct jumps.
4819                 Remove redundant mode attribute.
4820                 (call_value_internal, call_value_multiple_internal): Likewise.
4821                 (call_split): Remove redundant mode attribute.
4822                 (call_value_split, call_value_multiple_split): Likewise.
4823
4824                 * config/mips/mips.c (mips_symbol_insns): Rework.  Fix handling
4825                 of unaligned offsets.
4826
4827                 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
4828                 of SYMBOL_GENERAL.
4829
4830         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
4831
4832                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
4833                 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
4834                 for mips16 code.
4835
4836         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
4837
4838                 * config/mips/mips.h (ADDRESS_COST): Define.
4839
4840         2003-03-20  Richard Sandiford  <rsandifo@redhat.com>
4841
4842                 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
4843                 'R' to 'U'.  Make 'R' mean a single-instruction memory reference.
4844                 * config/mips/mips.md: Replace 'R' constraints with 'U'.
4845
4846         2003-03-18  Richard Sandiford  <rsandifo@redhat.com>
4847
4848                 * config/mips/mips.md (truncdisi2): Add commentary.  Use sll instead
4849                 of a two-instruction sequence.  Add register->memory alternative.
4850                 (truncdihi2, truncdiqi2): Likewise.
4851                 Rework shift/truncate instructions so that they only handle right
4852                 shifts of 32 (or more, in the case of arithmetic shifts).
4853                 Add patterns for truncate/sign-extend.
4854
4855         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
4856
4857                 * configure.in (mips*-*-*): Check for explicit relocation support.
4858                 * configure: Regenerate.
4859
4860         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
4861
4862                 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
4863                 and -mno-explicit-relocs.
4864                 (MASK_EXPLICIT_RELOCS): Define.
4865                 (TARGET_EXPLICIT_RELOCS): Use it.
4866                 (mips_split_addresses): Remove declaration.
4867                 * config/mips/mips.c (override_options): Update comment for
4868                 mips_split_addresses.  Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
4869
4870         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
4871
4872                 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
4873                 a CONST as identity.  Check the return value of gen_lowpart_common.
4874
4875         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
4876
4877                 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
4878                 references for TARGET_EXPLICIT_RELOCS.
4879                 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
4880                 !TARGET_MIPS16.
4881
4882         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
4883
4884                 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
4885                 (addsi3): Remove redundant constraints.
4886                 (addsi3_internal): Use separate register & constant alternatives.
4887                 Use a 'Q' constraint and "addiu" insn for the latter.
4888                 (adddi3_internal_3, addsi3_internal_2): Likewise.
4889
4890         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
4891
4892                 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
4893                 (mips_expand_unaligned_store): Declare.
4894                 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
4895                 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
4896                 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
4897                 (UNSPEC_ULD, UNSPEC_USD): Remove.
4898                 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
4899                 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
4900                 (extv, extzv): Use mips_expand_unaligned_load.
4901                 (insv): Use mips_expand_unaligned_store.  Use a reg_or_0_operand
4902                 predicate for operand 3.
4903                 (movsi_ulw, movsi_usw): Replace with...
4904                 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
4905                 (movdi_uld, movdi_usd): Likewise replace with...
4906                 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
4907
4908         2003-02-26  Richard Sandiford  <rsandifo@redhat.com>
4909
4910                 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
4911                 * config/mips/mips.h (LEA_REGS): New register class.
4912                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
4913                 (GR_REG_CLASS_P): Include LEA_REGS.
4914                 (DANGEROUS_FOR_LA25_P): New macro.
4915                 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
4916                 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
4917                 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
4918                 entries to LEA_REGS.
4919                 (mips_global_pic_constant_p): New function.
4920                 (override_options): Add 'e' register constraint.
4921                 (mips_secondary_reload_class): Return LEA_REGS when reloading
4922                 a dangerous constant into a class containing $25.
4923                 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
4924                 (movsi_internal): Likewise.
4925
4926         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
4927
4928                 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
4929                 * config/mips/mips.md (call_split): New insn.
4930                 (call_value_split, call_value_multiple_split): New insns.
4931                 (call_internal): Turn into a define_insn_and_split.  Split the
4932                 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
4933                 (call_value_internal, call_value_multiple_internal): Likewise.
4934
4935         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
4936
4937                 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
4938                 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
4939                 (mips_encode_section_info): Don't take symbol visibility into
4940                 account if TARGET_ABICALLS.  Add more commentary.
4941                 * config/mips/mips.md: Add commentary above reloc constants.
4942
4943         2003-02-12  Richard Sandiford  <rsandifo@redhat.com>
4944
4945                 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
4946                 from mips_legitimize_move.  Legitimize constant pool references.
4947                 (mips_legitimize_move): Call mips_legitimize_const_move.  Attach
4948                 a REG_EQUAL note to the last instruction.
4949
4950         2003-02-11  Richard Sandiford  <rsandifo@redhat.com>
4951
4952                 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
4953                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
4954                 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
4955                 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
4956                 * config/mips/mips.md (UNSPEC_HIGH): New constant.
4957                 (UNSPEC_RELOC_GPREL16): Rename to...
4958                 (RELOC_GPREL16): ...this.
4959                 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
4960                 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
4961                 (macro_calls): New attribute.
4962                 (length): Use it to set the default length of calls.  Don't allow
4963                 calls to have delay slots if macro_calls is "yes".
4964                 (luisi, luidi): New patterns.
4965                 (lowsi, lowdi): Use '%R' to print the relocation.
4966                 (lowdi_extend): Remove.
4967                 (loadgp): Remove mode from operand 0.  Use '%0' instead of '%a0'.
4968                 (call_internal): Merge alternatives.  Always use "jal".
4969                 (call_value_internal, call_value_multiple_internal): Likewise.
4970                 (reloc_gprel16): Remove.
4971                 * config/mips/mips.c (mips_got_alias_set): New variable.
4972                 (mips_classify_constant): Handle the new relocation constants.
4973                 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
4974                 (mips_symbolic_address_p): Return false if generating explicit relocs.
4975                 Otherwise allow local PIC symbols to have an offset.
4976                 (mips_splittable_symbol_p): New function.
4977                 (mips_classify_address): Use it to check whether a LO_SUM is valid.
4978                 (mips_const_insns): Always accept HIGH.
4979                 (call_insn_operand): Don't accept global symbols if using explicit
4980                 relocs.
4981                 (move_operand): Don't accept HIGH when generating PIC.
4982                 (mips_reloc, mips_lui_reloc): New functions.
4983                 (mips_force_temporary): Remove MODE argument.  Expect VALUE to
4984                 be a valid right-hand-side for a SET pattern.
4985                 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
4986                 (mips_emit_high): New function.
4987                 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
4988                 case.  Use mips_splittable_symbol_p to check whether a LO_SUM
4989                 address should be used.  Use mips_emit_high to generate the
4990                 high part of such an address.  Adjust the global symbol + offset
4991                 case to match the change to mips_force_temprorary.
4992                 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
4993                 If generating explicit-reloc PIC, load the address of global
4994                 symbols from the GOT.  Use mips_emit_high to emit the high part
4995                 of an address.
4996                 (mips_simplify_dwarf_addr): New function.
4997                 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
4998                 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
4999                 (mips_expand_call): Load the addresses of global functions using
5000                 %call* relocs if generating explicit-reloc PIC.  Don't generate
5001                 an exception_receiver pattern.
5002                 (override_options): Initialize mips_got_alias_set.
5003                 (print_relocation): Remove in favour of...
5004                 (mips_reloc_string): ...this new function.
5005                 (print_operand): Handle '%R'.  Use mips_reloc_string.
5006                 (print_operand_address): Use print_operand to print the symbolic
5007                 part of a LO_SUM address.
5008                 (mips_output_function_prologue): Use .cprestore, reverting last patch.
5009                 (mips_encode_section_info): Factor out DECL_RTL accesses.  Reverse
5010                 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
5011                 for local symbols.
5012
5013         2003-02-02  Eric Christopher  <echristo@redhat.com>
5014
5015                 * config/mips/mips.c (mips_sign_extend): Remove.
5016                 * config/mips/mips-protos.h: Ditto.
5017                 * config/mips/mips.md (movdi_internal2_extend): Remove.
5018                 (extendsidi2): Fix mode of convert_memory_address.
5019
5020         2003-01-24  Eric Christopher  <echristo@redhat.com>
5021
5022                 * config/mips/mips.md: Rewrite zero_extend* and extend*
5023                 patterns. Use explicit instructions and split after reload
5024                 for register extensions.
5025                 (ashlsi3_internal1_extend): New combiner pattern for
5026                 shift and extend combinations.
5027                 * config/mips/mips.h: Change Pmode back to ptr_mode
5028                 for performance enhancement.
5029                 * combine.c (expand_compound_operation): Make sure
5030                 that zero_extend operation is profitable.
5031
5032         2003-01-14  Richard Sandiford  <rsandifo@redhat.com>
5033
5034                 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
5035                 addresses depend on ptr_mode rather than Pmode.
5036                 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
5037                 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
5038                 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
5039                 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
5040                 * config/mips/mips.md (tablejump): Likewise.  Remove Pmode
5041                 condition for selecting cpaddsi or cpadddi: use cpadd instead.
5042                 (tablejump_internal1): Remove condition.
5043                 (tablejump_internal2): Change condition to TARGET_64BIT.
5044                 (cpaddsi): Rename to...
5045                 (cpadd): ...this.
5046                 (cpadddi): Remove.
5047
5048         2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
5049
5050                 * config/mips/mips-protos.h (mips16_constant_after_function_p,
5051                 mips_address_cost, mips_check_split, double_memory_operand,
5052                 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
5053                 pic_address_needs_scratch, symbolic_operand): Remove declarations.
5054                 (mips_legitimate_address_p): Return bool.
5055                 (mips_address_insns, mips_fetch_insns, mips_const_insns,
5056                 mips_legitimize_address, mips_legitimize_move,
5057                 mips_expand_call): Declare.
5058                 (mips_return_addr): Move outside #ifdef RTX_CODE.
5059
5060                 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
5061                 (PIC_FN_ADDR_REG): New reg_class.
5062                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
5063                 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
5064                 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
5065                 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
5066                 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
5067                 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
5068                 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
5069                 (LEGITIMATE_PIC_OPERAND): Undefine.
5070                 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
5071                 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
5072                 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
5073                 (FUNCTION_MODE): Change to SImode.
5074                 (CONST_COSTS): Use mips_const_insns to calculate the cost of
5075                 most constants.  Treat const_artih_operands specially if they
5076                 occur in a PLUS or MINUS.
5077                 (CONSTANT_POOL_COST): New macro.
5078                 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
5079                 Add LO_SUM handling.
5080                 (ADDRESS_COST): Undefine.
5081                 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
5082                 Add CONST to the list of codes for arith_operand.  Add LABEL_REF
5083                 to call_insn_operand and remove CONST_INT.
5084
5085                 * config/mips/mips.c: Include integrate.h.
5086                 (SINGLE_WORD_MODE_P): New macro.
5087                 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
5088                 (mips_constant_info, mips_address_info): New structs.
5089                 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
5090                 (mips_classify_constant, mips_classify_symbol,
5091                 mips_valid_base_register_p, mips_symbolic_address_p,
5092                 mips_classify_address, mips_symbol_insns,
5093                 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
5094                 mips_fetch_insns, mips_force_temporary, mips_add_offset,
5095                 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
5096                 mips_print_relocation): New functions.
5097                 (const_arith_operand): New operand predicate.
5098                 (arith_operand): Use it.
5099                 (mips_const_double_ok, mips16_simple_memory_operand,
5100                 simple_memory_operand, double_memory_operand, mips_check_split,
5101                 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
5102                 mips16_gp_offset_p, mips16_output_gp_offset,
5103                 mips16_constant_after_function_p, mips16_constant): Remove.
5104                 (call_insn_operand): Be more fussy about symbolic constants.
5105                 Use register_operand.
5106                 (move_operand): Use mips_symbolic_address_p to check symbolic
5107                 operands and general_operand to check the rest.
5108                 (symbolic_operand): Use mips_classify_constant.
5109                 (mips_legitimate_address_p): Use mips_classify_address.
5110                 (mips_move_1word): Combine handling of symbolic addresses.
5111                 Remove special treatment of gp-relative loads for TARGET_MIPS16.
5112                 (move_move_2words): Likewise.  Assume addresses are offsettable
5113                 if they need to refer to more than one word.  Add HIGH handling.
5114                 (mips_restore_gp): Use ptr_mode for the GP save slot.
5115                 (mips_expand_call): New function, combining the old mips.md
5116                 call and call_internal define_expands.  If the address isn't
5117                 a call_insn_operand, force it into a register.  For SVR4 PIC,
5118                 emit an exception_receiver instruction after the call.
5119                 (override_options): Only override flag_pic for TARGET_ABICALLS
5120                 if it is currently zero.  Allow mips_split_addresses when
5121                 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
5122                 Add new register class letter, 'c'.
5123                 (print_operand): Use mips_classify_constant for constant operands.
5124                 (print_operand_address): Use mips_classify_address.
5125                 (mips_output_function_prologue): Don't use .cprestore.
5126                 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
5127                 via the frame pointer if current_function_calls_eh_return.
5128                 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
5129                 to mark whether a symbol is local or global.
5130                 (build_mips16_call_stub): Expect the address of the function rather
5131                 than a MEM reference to it.  Update call generation sequences.
5132                 (mips16_optimize_gp): Remove Pmode checks.  Temporarily disable
5133                 small-data adjustments.
5134
5135                 * config/mips/mips.md: Remove 'R'/'m' memory distinction.  Use default
5136                 length for loads and stores.
5137                 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
5138                 (define_attr type): Add const and prefetch.
5139                 (define_attr length): Use mips_const_insns for const instructions.
5140                 Use mips_fetch_insns for load and store instructions.
5141                 (define_attr single_insn): New.
5142                 (define_attr can_delay): Use it.
5143                 (define_attr abicalls): Remove.
5144                 (define_delay): Use can_delay.  Always allow calls to have delay slots.
5145                 (addsi3_internal_2): Add 'Q' constraint.
5146                 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
5147                 (high): Remove.
5148                 (lowsi): Renamed from low.
5149                 (lowdi): New pattern.
5150                 (movdi, movsi): Use mips_legitimize_move.  Remove define_split.
5151                 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
5152                 (loadgp): Change operand 0 to an immediate_operand.
5153                 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
5154                 beforehand.
5155                 (cpaddsi, cpadddi): New patterns.
5156                 (tablejump_internal3, tablejump_internal4): Remove define_expands
5157                 and associated define_splits.
5158                 (call, call_value): Use mips_expand_call.
5159                 (call_internal): New, replacing all existing call_internal* insns.
5160                 (call_value_internal): Likewise call_value_internal*.
5161                 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
5162                 (untyped_call): Remove if (operands[0]) magic.
5163                 (prefetch_si_address, prefetch_si): Change type to "prefetch".
5164                 (prefetch_di_address, prefetch_di): Likewise.
5165                 (leasi, leadi): Remove.
5166                 (reloc_gprel16): New.
5167
5168                 * config/mips/5400.md (ir_vr54_hilo): Include const type.
5169                 * config/mips/5500.md (ir_vr55_hilo): Likewise.
5170                 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
5171
5172         2003-01-08  Eric Christopher  <echristo@redhat.com>
5173
5174                 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
5175                 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
5176                 configure check for libgloss.
5177                 * config/mips/elf64.h: Ditto.
5178                 * config/mips/mips.c: Remove ABI_MEABI.
5179                 * config/mips/mips.h: Ditto.
5180
5181         2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
5182
5183                 Fix merge fallout.
5184                 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
5185                 (muldi3_internal): Remove outdated comment.
5186                 (*muls_di, *umuls_di): Fix comment and 64-bitness.
5187                 (*smsac_di, *umsac_di): Likewise.  Reformat.
5188                 (umulsi3_highpart): Minor formatting tweaks.
5189                 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.  Remove
5190                 redundant scratch operand.  Minor formatting tweak.
5191                 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
5192                 (umulsi3_highpart_neg_mulhi_internal): Likewise.  Fix asm template.
5193                 (smulsi3_highpart): As for the unsigned version.
5194                 (smulsi3_highpart_internal): Likewise.
5195                 (smulsi3_highpart_mulhi_internal): Likewise.
5196                 (smulsi3_highpart_neg_mulhi_internal): Likewise.
5197                 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
5198                 (*smul_acc_di): Remove duplicated pattern.
5199                 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
5200                 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
5201                 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
5202
5203         2002-10-22  Eric Christopher  <echristo@redhat.com>
5204
5205                 * config/mips/mips-protos.h (mips_return_addr): New.
5206                 * config/mips/mips.c (mips_return_addr): New.
5207                 (movdi_operand): Remove.
5208                 (se_register_operand): Ditto.
5209                 (se_reg_or_0_operand): Ditto.
5210                 (se_uns_arith_operand): Ditto.
5211                 (se_arith_operand): Ditto.
5212                 (se_nonmemory_operand): Ditto.
5213                 (extend_operator): Ditto.
5214                 (highpart_shift_operator): Ditto.
5215                 (mips_initial_elimination_offset): Remove return address pointer
5216                 elimination.
5217                 (mips_reg_names): Remove $ra.
5218                 (mips_regno_to_class): Ditto.
5219                 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
5220                 and TARGET_64BIT.
5221                 (POINTER_BOUNDARY): Remove.
5222                 (POINTERS_EXTEND_UNSIGNED): Define to 0.
5223                 (PROMOTE_MODE): Promote to Pmode.
5224                 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
5225                 (Pmode): Define to TARGET_64BIT.
5226                 (FUNCTION_MODE): Define as Pmode.
5227                 (mips_args): Remove deleted functions.
5228                 (SIZE_TYPE): Depend on POINTER_SIZE.
5229                 (PTRDIFF_TYPE): Ditto.
5230                 (FIXED_REGISTERS): Fix extra registers.
5231                 (CALL_USED_REGISTERS): Ditto.
5232                 (CALL_REALLY_USED_REGISTERS): Ditto.
5233                 (RAP_REG_NUM): Remove.
5234                 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
5235                 (RETURN_ADDR_RTX): Define to mips_return_addr.
5236                 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
5237                 (CAN_ELIMINATE): Ditto.
5238                 * config/mips/mips.md: For DImode patterns, take into account
5239                 deletions above. Split mulsidi patterns into sign_extend and
5240                 zero_extend.
5241
5242         2002-10-16  Richard Sandiford  <rsandifo@redhat.com>
5243                     Michael Meissner  <meissner@redhat.com>
5244
5245                 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
5246                 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
5247                 mop up unnecessarly moves through LO.
5248                 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
5249                 (*macc): New pattern for ISA_HAS_MACC.  Add define_peephole2s to
5250                 change mtlo/macc sequences into mul/add sequences when a three-
5251                 address mul is available.
5252                 (*macc2): New pattern.  Add a define_peephole2 to generate it.
5253                 (*mul_sub_si): Fix contraint for operand 5.
5254                 (*muls): Use in 32-bit code as well.
5255                 (*msac): Likewise.  Use msub instead of msac in vr5500 code
5256                 if the destination is LO.  Remove duplicate define_split.
5257                 (*muls_di): Use only in 32-bit code.  Adjust rtl accordingly.
5258                 (*msac_di): Likewise.  Fix formatting.
5259                 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
5260                 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
5261                 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
5262                 (*xmulsi3_neg_highpart_mulhi): Likewise.
5263                 (*mul_acc_64bit_di): Remove.
5264                 (*mul_acc_di): Use only in 32-bit code.  Handle ISA_HAS_MACC as well.
5265
5266         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
5267
5268                 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
5269                 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
5270                 (MULTILIB_DIRNAMES): Remove long32.
5271                 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
5272                 (MULTILIB_REDUNDANT_DIRS): Remove.
5273
5274         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
5275
5276                 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
5277                 * gcc.c (driver_self_specs): New variable.
5278                 (do_self_spec): New function.
5279                 (main): Use it to process driver_self_specs.
5280
5281         2002-10-09  Richard Sandiford  <rsandifo@redhat.com>
5282
5283                 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
5284                 Remove DImode define_split for !TARGET_64BIT.
5285                 (anddi3): Remove !TARGET_64BIT support from here as well.
5286                 Change operand 2's predicate to se_uns_arith_operand.
5287                 Add constant alternatives to define_insn.
5288                 (iordi3, xordi3, *nordi3): Likewise.
5289                 (anddi3_internal1, xordi3_immed): Remove.
5290
5291         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
5292
5293                 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
5294                 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
5295                 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
5296                 * config/mips/mips.md: Apply same renaming here.
5297
5298         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
5299
5300                 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
5301                 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
5302                 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
5303                 * config/mips/mips.md (define_attr cpu): Remove r4320.
5304                 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
5305
5306         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
5307
5308                 * config/mips/mips.c (mips16_strings): New variable.
5309                 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
5310                 symbol in mips16_strings.  Free the list.
5311                 (mips_encode_section_info): Keep track of local strings.
5312
5313         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
5314
5315                 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
5316                 (sordered_df, sordered_sf): Remove.
5317                 * config/mips/mips.c (get_float_compare_codes): New fn.
5318                 (gen_int_relational, gen_conditional_move): Use it.
5319
5320         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
5321
5322                 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
5323                 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
5324                 * config/mips/mips.c (fcc_register_operand): New function.
5325                 (mips_emit_fcc_reload): New function, extracted from reload_incc.
5326                 (override_options): Allow TFmode values in float registers
5327                 if ISA_HAS_8CC.
5328                 * cnfig/mips/mips.md (reload_incc): Change destination prediate
5329                 to fcc_register_operand.  Remove misleading source constraint.
5330                 Use mips_emit_fcc_reload.
5331                 (reload_outcc): Duplicate reload_incc.
5332
5333
5334 2003-04-30  Diego Novillo  <dnovillo@redhat.com>
5335
5336         * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
5337
5338 2003-04-30  Geoffrey Keating  <geoffk@apple.com>
5339
5340         * tree-inline.c (inlinable_function_p): Back out last change, it's
5341         unnecessary.
5342
5343 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
5344
5345         * ggc-page.c (TREE_EXP_SIZE): Define.
5346         (extra_order_size_table): New entry for expr trees with
5347         two operands.
5348
5349 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
5350
5351         * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
5352         (c_expand_start_cond): Adjust.
5353         (c_expand_end_cond): Don't use warning_with_file_and_file.
5354         (shadow_warning): Likewise.
5355
5356 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
5357
5358         * tree.h (DECL_POINTER_DEPTH): Remove.
5359         (struct tree_decl): Remove pointer_depth.
5360
5361 2003-04-30  Janis Johnson  <janis187@us.ibm.com>
5362
5363         * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
5364         * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
5365         (rs6000_xcoff_encode_section_info): Remove.
5366         (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
5367         (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
5368         (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
5369         Use SYMBOL_REF_FLAGS.
5370         (rs6000_elf_encode_section_info): Call default_encode_section_info for
5371         generic flags, use SYMBOL_REF_FLAGS; code cleanups.
5372         * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
5373         (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
5374         * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
5375         (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
5376
5377 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
5378
5379         * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
5380
5381 2003-04-30  Andreas Schwab  <schwab@suse.de>
5382
5383         * doc/extend.texi (Other Builtins): Enclose multiple word data
5384         type in braces for @deftypefn.
5385
5386 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5387
5388         * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
5389
5390         * doc/install.texi (--enable-threads): Document "gnat" option.
5391
5392 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
5393
5394         * diagnostic.h (output_formatted_scalar): Tweak.
5395         * diagnostic.c (output_long_decimal): Likewise.
5396         (output_unsigned_decimal): Likewise.
5397         (output_long_unsigned_decimal): Likewise.
5398         (output_octal): Likewise.
5399         (output_long_octal): Likewise.
5400         (output_hexadecimal): Likewise.
5401         (output_long_hexadecimal): Likewise.
5402         (output_pointer): New function.
5403         (output_format): Use it.  Recognize "%p" format specifier.
5404
5405 2003-04-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5406
5407         * function.c (purge_addressof_1): Postpone insn in fewer cases.
5408
5409 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
5410
5411         * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
5412         call abort() after running out of stack space.
5413
5414         * c-typeck.c (function_types_compatible_p): Ignore incompatible
5415         'volatile' qualifiers on a function's return type in GNU mode.
5416
5417 2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
5418
5419         * expr.c (emit_group_load): Dump parallels of simd types to
5420         memory.
5421
5422 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5423
5424         * genautomata.c (add_vect): Check undefined value for range type
5425         too.
5426
5427 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
5428
5429         * configure.in:  More general test for cmp --ignore-initial.
5430         * configure:  Regenerate.
5431
5432 2003-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5433
5434         * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
5435         (layout_decl, place_field): Likewise.
5436         Also make minor type and whitespace changes.
5437
5438         * tree.c (save_expr): Don't fold a COMPONENT_REF.
5439
5440 2003-04-29  Olivier Hainque <hainque@act-europe.fr>
5441
5442         * calls.c (expand_call): When modes of target and valreg match, force
5443         sibcall failure when target is a MEM.
5444
5445 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
5446
5447         * tree-inline.c (inlinable_function_p): Don't support inlining
5448         functions using varargs.
5449
5450         * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
5451
5452         * dwarf2out.c (output_call_frame_info): No need to output EH
5453         unwind information if all_throwers_are_sibcalls.
5454
5455         * c-semantics.c (expand_unreachable_stmt): Return a tree.
5456         (expand_stmt): Update for change to expand_unreachable_stmt.
5457         (expand_unreachable_if_stmt): Likewise.
5458
5459         * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
5460
5461 2003-04-29  Jason Merrill  <jason@redhat.com>
5462
5463         PR middle-end/10336
5464         * jump.c (never_reached_warning): Really stop looking if we reach
5465         the beginning of the function.
5466
5467 2003-04-29  Bob Wilson  <bob.wilson@acm.org>
5468
5469         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
5470         Remove redundant macros.
5471         (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
5472         (LOCAL_LABEL_PREFIX): Define unconditionally.
5473         (NO_DOT_IN_LABEL): Clarify comment.
5474         * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
5475         definition to "long int".
5476
5477 2003-04-29  Alexander Kabaev  <kan@FreeBSD.ORG>
5478
5479         bootstrap/10452
5480         * gengtype-yacc.y: Improve portability.
5481
5482 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
5483
5484         * config.gcc: Install obsolete target list for GCC 3.3.
5485         * doc/install.texi: Mention in specific-target instructions
5486         that certain configurations are deprecated.
5487
5488 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
5489
5490         * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
5491
5492 2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
5493
5494         * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
5495         * gcc.c (display_help): Likewise.
5496         * toplev.c (f_options): Likewise.
5497         * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
5498         * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
5499         * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
5500         * config/s390/s390.h (TARGET_SWITCHES): Likewise.
5501         * config/v850/v850.h (TARGET_SWITCHES): Likewise.
5502
5503 2003-04-29  J"orn Rennecke <joern.rennecke@superh.com>
5504
5505         * varasm.c (default_assemble_visibility): Use assemble_name.
5506
5507 2003-04-29  David O'Brien  <obrien@FreeBSD.org>
5508
5509         * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
5510         * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
5511         (SIZE_TYPE): New macro.
5512         * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
5513         (SET_ASM_OP): New macro.
5514         (HANDLE_SYSV_PRAGMA): New macro.
5515         (ASM_WEAKEN_LABEL): New macro.
5516
5517 2003-04-28  Mark Mitchell  <mark@codesourcery.com>
5518
5519         PR c++/10180
5520         * tree-inline.c (expand_call_inline): Call push_srcloc when
5521         encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.
5522
5523 2003-04-28  Mike Stump  <mrs@apple.com>
5524
5525         * gdbinit.in: Update to reflect new identifier structure.
5526
5527 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
5528
5529         * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
5530         (struct tree_int_cst, struct tree_real_cst, struct tree_string,
5531         struct tree_complex, struct tree_vector): Remove RTL field.
5532         (CONSTRUCTOR_ELTS): Use elt 0.
5533         * tree.def (CONSTRUCTOR): Delete first of its two operands.
5534         * varasm.c (output_constant_def): Remove early exit if
5535         TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
5536         (decode_addr_const): Don't mention TREE_CST_RTL in comment.
5537         * target.h (select_section): Don't mention TREE_CST_RTL in comment.
5538         * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
5539
5540 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
5541
5542         * c-decl.c (finish_decl): When prototype with asmspec is found
5543         for built-in, adjust built_in_decls as well as expr.c decls.
5544         * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
5545         (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
5546         * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
5547
5548 2003-04-28  Richard Henderson  <rth@redhat.com>
5549
5550         * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
5551         * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
5552         integral constant mult operand.
5553         (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
5554         (const_smulsi3_highpart_v8plus): Likewise.
5555         (const_smulsi3_highpart): Likewise.
5556         (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
5557         (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
5558         (const_umulsi3_highpart_v8plus): Likewise.
5559         (const_umulsi3_highpart): Likewise.
5560
5561 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
5562
5563         * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
5564         Define as 1.
5565
5566 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
5567
5568         * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
5569
5570 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
5571
5572         * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
5573         * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
5574         * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
5575         functions.
5576         (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
5577
5578 2003-04-28  Nick Clifton  <nickc@redhat.com>
5579
5580         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
5581
5582 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
5583
5584         * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
5585         output_constant_def, use its result instead of TREE_CST_RTL (exp).
5586         Can assume it has the form (mem (symbol_ref ".LCxxx")).
5587         (expand_expr <COMPONENT_REF>): Can always just extract the
5588         relevant field of a CONSTRUCTOR.
5589         (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
5590         ARRAY_RANGE_REF>): Make control flow explicit.
5591         * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
5592         an INTEGER_CST.
5593
5594 2003-04-27  Kazu Hirata  <kazu@cs.umass.edu>
5595
5596         * reload1.c (reg_set_luid): Fix a comment typo.
5597
5598 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
5599
5600         * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
5601         struct deferred_string, const_str_htab): Kill.
5602         (n_deferred_strings): New static variable.
5603         (build_constant_desc): Set SYMBOL_REF_DECL of the new
5604         symbol_ref to point to the constant.
5605         (output_constant_def): When a deferred string is forced out,
5606         just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
5607         (mark_constant): Likewise.
5608         (maybe_output_constant_def_contents): When deferring a string
5609         constant, just set STRING_POOL_ADDRESS_P and increment
5610         n_deferred_strings.
5611         (mark_constant_pool): Check n_deferred_strings, not the size
5612         of const_str_htab.
5613         (init_varasm_once): No need to create const_str_htab.
5614
5615         * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
5616         SYMBOL_REF_DECL points to a constant.
5617
5618 2003-04-26  Zack Weinberg  <zack@codesourcery.com>
5619
5620         * varasm.c (output_constant_def): Split out two new static
5621         functions, build_constant_desc and maybe_output_constant_def_contents.
5622         Restructure for comprehensibility.  Don't call
5623         output_addressed_constants.  Treat defstr being non-NULL for
5624         STRING_POOL_ADDRESS_P constants as an invariant.
5625         (struct deferred_string): Remove labelno field.
5626         (output_constant_def_contents): Kill labelno argument. Call
5627         output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
5628         asm_out.internal_label.
5629         (mark_constant): Update call to output_constant_def_contents.
5630         Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
5631         constants as an invariant.
5632
5633 2003-04-26  Richard Henderson  <rth@redhat.com>
5634
5635         * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
5636         (ix86_expand_call, ix86_rtx_consts): Likewise.
5637
5638 2003-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5639
5640         * doc/md.texi (cmpstr): Document additional restrictions.
5641
5642 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
5643
5644         * flags.h (time_report): Remove.
5645         * timevar.c (timevar_enable): New.
5646         (TIMEVAR_ENABLE): Remove, use timevar_enable.
5647         (timevar_init): Rename from init_timevar.
5648         * timevar.h (timevar_init): Rename from init_timevar.
5649         * toplev.c (time_report): Make static.
5650         (do_compile): Conditionally call init_timevar first.
5651         (preprocess_options): Move some code to do_compile.
5652
5653 2003-04-26  Stephane Carrez  <stcarrez@nerim.fr>
5654
5655         * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
5656
5657 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
5658
5659         * _cpp_lex_direct: Remove pointless code.
5660
5661 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
5662
5663         * doc/extend.texi (Function Attributes): Document "near" and "far"
5664         for 68HC11 and 68HC12.
5665
5666 2003-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5667
5668         * expr.c (store_field): When making temporary for store, don't
5669         make it TYPE_QUAL_CONST.
5670
5671 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
5672
5673         * toplev.c (read_integral_parameter):  Use "argument" in error
5674         message to distinguish it from actual invalid options.
5675
5676 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
5677
5678         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
5679         addition of __PIC__ and __pic__ macros.
5680         * config/xtensa/xtensa.h: Clean up indentation.
5681
5682 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
5683
5684         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
5685         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
5686         (SUBTARGET_CPP_SPEC): Define.
5687         (LIB_SPEC): Delete.
5688         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
5689         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
5690         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
5691         Define.
5692         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5693         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
5694
5695 2003-04-25  H.J. Lu <hjl@gnu.org>
5696
5697         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
5698         for return mode.
5699         (ia64_expand_builtin): Set rmode to SImode for
5700         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
5701         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
5702         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
5703         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
5704
5705 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
5706
5707         * configure.in (make_compare_target):  Test for GNU cmp and set this
5708         variable appropriately.
5709         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
5710         compare4-lean): Rename actual targets to slowcompare*.  New compare*
5711         targets depend on names based on make_compare_target.
5712         * configure:  Regenerated.
5713
5714 2003-04-25  Richard Henderson  <rth@redhat.com>
5715
5716         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
5717         to clobber ar.pfs and ar.unat.
5718         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
5719         fix test for spilling ar.pfs to the stack.
5720
5721 2003-04-25  Richard Henderson  <rth@redhat.com>
5722
5723         PR opt/10315
5724         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
5725         checks during reload; use validize_mem instead of adjust_address.
5726
5727 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
5728
5729         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
5730         return values from recog_memoized().
5731
5732 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5733
5734         PR opt/8705
5735         * gcse.c (try_replace_reg): On a successful substitution of a constant
5736         into a single set, try to simplify the source of the set.
5737         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
5738         constant source.
5739
5740 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
5741
5742         * cpplex.c (cpp_token_len): Tighten up.
5743         (cpp_token_as_text): Need extra byte now.
5744         * cpplib.c (glue_header_name): Need extra 2 bytes.
5745         * cppmacro.c (cpp_macro_definition): Need extra byte.
5746
5747 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
5748
5749         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
5750         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
5751         where they might be not present. Use their _sp64 equivalent
5752         instead.
5753
5754 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
5755
5756         * i386.md (cvtsi2sdq): Fix typo in previous patch.
5757
5758 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
5759
5760         * configure.in: Check whether mbstowcs works.
5761         * configure, config.in: Regenerate.
5762         * intl.c: Use HAVE_WORKING_MBSTOWCS.
5763
5764 2003-04-24  H.J. Lu <hjl@gnu.org>
5765
5766         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
5767         for __sync_bool_compare_and_swap_di for int return type.
5768
5769         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
5770         Change return type to int.
5771         (__sync_bool_compare_and_swap): Likewise.
5772
5773 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
5774
5775         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
5776         looking for fallthru edge.
5777
5778         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
5779         Fix.
5780         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
5781         athlon-fvector): New.
5782         (athlon_*): Revisit to match new optimization guide.
5783         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
5784         * i386.md (cvt??2?? patterns): Fix modes.
5785         (fistp patterns): Set modes.
5786
5787         Accidentaly commited with my earlier reload patch:
5788         PR c/10308
5789         * reload.c (find_reloads_address_1): Reload plus at the place of
5790         index register.
5791
5792 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
5793
5794         New GCOV_TAG_FUNCTION layout
5795         * coverage.c (struct function_list): Replace name with ident.
5796         (struct counts_entry): Likewise.
5797         (fn_ident): New.
5798         (htab_counts_entry_hash, htab_counts_entry_eq,
5799         htab_counts_entry_del): Adjust.
5800         (reads_count_file, get_coverage_counts,
5801         coverage_begin_output, coverage_end_function): Adjust.
5802         (build_fn_info_type, build_fn_info_value): Likewise.
5803         * gcov-dump.c (tag_function): Adjust.
5804         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
5805         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
5806         * gcov.c (struct function_info): Add ident.
5807         (read_graph_file, read_count_file): Adjust.
5808         * libgcov.c (gcov_exit): Adjust.
5809
5810 2003-04-23  Richard Henderson  <rth@redhat.com>
5811
5812         PR opt/8300
5813         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
5814         after initialize_uninitialized_subregs; update reg info assuming
5815         new pseudos were created.
5816
5817 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
5818
5819         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
5820         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
5821         (lex_string): Take cpp_string with full spelling.
5822         (cb_ident): Update.
5823         (c_lex): Update diagnostics.
5824         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
5825         (create_literal): New.
5826         (lex_string): Unterminated literals have type CPP_OTHER.
5827         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
5828         for CPP_OTHER.
5829         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
5830         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
5831         * cpplib.c (parse_include, do_line, do_linemarker,
5832         destringize_and_run): Update for token storing full spelling.
5833         * cpplib.h: Update token spelling types.
5834         * cppmacro.c (stringify_arg, check_trad_stringification):
5835         Update for token storing full spelling.
5836
5837 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
5838
5839         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
5840
5841 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
5842
5843         * arm.h (TARGET_OPTIONS): Add value field.
5844
5845 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
5846
5847         * doc/extend.texi: Remove duplicate 2003 copyright date.
5848
5849 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
5850
5851         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
5852         (libgcov.a): Depends on LIBGCC_DEPS.
5853         * basic-block.h (profile_info): Moved here from coverage.h. Made
5854         a pointer.
5855         * coverage.c (struct function_list): Fixed array of counter types.
5856         (struct counts_entry): Keyed by counter type, contains summary.
5857         (profile_info): Moved to profile.c.
5858         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
5859         vars.
5860         (profiler_label): Remove.
5861         (ctr_labels): New.
5862         (set_purpose, label_for_tag, build_counter_section_fields,
5863         build_counter_section_value, build_counter_section_data_fields,
5864         build_counter_section_data_values, build_function_info_fields,
5865         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
5866         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
5867         build_ctr_info_value, build_gcov_info): New.
5868         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
5869         (reads_counts_file): Adjust.
5870         (get_coverage_counts): Takes counter number. Add summary
5871         parameter. Adjust.
5872         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
5873         create counter array labels.
5874         (coverage_end_function): Adjust.
5875         (create_coverage): Adjust.
5876         (find_counters_section): Remove.
5877         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
5878         (struct section_info, struct profile_info): Remove.
5879         (profile_info): Moved to basic-block.h.
5880         (coverage_counter_ref): Takes a counter number.
5881         (get_coverage_counts): Takes a counter number. Added summary
5882         parameter.
5883         (find_counters_section): Remove.
5884         * gcov-dump.c (tag_arc_counts): Rename to ...
5885         (tag_counters): ... here. Adjust.
5886         (tag_table): Move tag_counters to 3rd entry. Remove
5887         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
5888         (dump_file): Check for counter tag values here.
5889         (tag_summary): Adjust.
5890         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
5891         * gcov-io.h (GCOV_LOCKED): New.
5892         (GCOV_TAG_ARC_COUNTS): Rename to ...
5893         (GCOV_TAG_COUNTS_BASE): ... here.
5894         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
5895         Remove.
5896         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
5897         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
5898         GCOV_TAG_IS_COUNTER): New.
5899         (struct gcov_ctr_summary): New.
5900         (struct gcov_summary): Adjust.
5901         (struct gcov_counter_section): Remove.
5902         struct gcov_counter_section_data): Remove.
5903         (struct gcov_function_info): Rename to ...
5904         (struct gcov_fn_info): ... here. Adjust.
5905         (struct gcov_ctr_info): New.
5906         (struct gcov_info): Adjust.
5907         * gcov.c (read_count_file): Adjust.
5908         (output_lines): Adjust.
5909         * libgcov.c (gcov_exit): Adjust.
5910         (__gcov_flush): Adjust.
5911         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
5912         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
5913         probably_never_executed_bb_p, compute_frequency_function): Adjust
5914         profile_info use.
5915         * profile.c (struct counts_entry): Remove.
5916         (profile_info): Define here.
5917         (get_exec_counts): Adjust get_coverage_counts call.
5918         (compute_branch_probablilities): Remove find_counters_section
5919         call.
5920         (gen_edge_profiler): Adjust coverage_counter_ref call.
5921         * tracer.c (tail_duplicate): Adjust profile_info use.
5922
5923 2003-04-23  Roger Sayle  <roger@eyesopen.com>
5924
5925         PR optimization/10339
5926         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
5927         directly instead of unsafely transforming call into a memcmp.
5928         (expand_builtin_strncmp): Likewise.
5929
5930 2003-04-22  Roger Sayle  <roger@eyesopen.com>
5931
5932         * alias.c (mark_constant_function):  Check for constancy and
5933         purity even of void functions.  Update both the function decl
5934         and the cgraph RTL info with the results.
5935
5936 2003-04-22  Roger Sayle  <roger@eyesopen.com>
5937
5938         * real.c (do_add): Change to return a bool indicating that the
5939         result of the operation may be inexact due to loss of precision.
5940         (do_multiply): Likewise.
5941         (do_divide): Likewise.
5942
5943 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
5944             Loren James Rittle  <ljrittle@acm.org>
5945
5946         * dwarf2out.c (fde_table_allocated): Mark with GTY.
5947         (decl_die_table_allocated): Likewise.
5948         (abbrev_die_table_allocated): Likewise.
5949         (line_info_table_allocated): Likewise.
5950         (separate_line_info_table_allocated): Likewise.
5951         (pubname_table_allocated): Likewise.
5952         (arange_table_allocated): Likewise.
5953         (ranges_table_allocated): Likewise.
5954         (decl_die_table_in_use): Unconditionalize; mark with GTY.
5955         (abbrev_die_table_in_use): Likewise.
5956         (line_info_table_in_use): Likewise.
5957         (separate_line_info_table_in_use): Likewise.
5958         (pubname_table_in_use): Likewise.
5959         (arange_table_in_use): Likewise.
5960         (ranges_table_in_use): Likewise.
5961         (have_location_lists): Likewise.
5962         (emitcount): New GTY-marked static, moved...
5963         (maybe_emit_file): ...from here.
5964         (label_num): New GTY-marked static, moved...
5965         (gen_internal_sym): ...from here.
5966
5967 2003-04-22  Richard Henderson  <rth@redhat.com>
5968
5969         PR 8866
5970         * rtl.h (MEM_NOTRAP_P): New.
5971         (MEM_COPY_ATTRIBUTES): Copy it.
5972         * rtlanal.c (may_trap_p): Check it.
5973         * expr.c (do_tablejump): Set it.
5974         * doc/rtl.texi (Flags): Document it.
5975
5976         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
5977
5978 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
5979
5980         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
5981         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
5982
5983 2003-04-22  Vincent Celier <celier@gnat.com>
5984
5985         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
5986         --enable-threads=gnat.
5987         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
5988         * configure.in: Add gnat to the list of thread packages
5989         * configure: Rebuild.
5990         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
5991
5992 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
5993
5994         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
5995
5996 2003-04-22  Devang Patel  <dpatel@apple.com>
5997
5998         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
5999         parameter count.
6000         (_cpp_copy_replacement_text): Same.
6001
6002 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
6003
6004         * c-lex.c (c_lex): Handle CPP_OTHER differently.
6005         * cppexp.c (_cpp_parse_expr): Similarly.
6006         * cpplex.c (SPELL_CHAR): Remove.
6007         (_cpp_lex_direct): Stray chars are saved as byte strings.
6008         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
6009         handle SPELL_CHAR.
6010         (cpp_avoid_paste): Update handling of CPP_OTHER.
6011         * cpplib.h: Spell CPP_OTHER like a number.
6012         (struct cpp_token): Remove member c.
6013         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
6014
6015 2003-04-22  David Turner <novalis@gnu.org>
6016
6017         * gbl-ctors.h: Add special license exception.
6018         * libgcc2.h: Likewise.
6019         * tsystem.h: Likewise.
6020         * gcov-io.h: Likewise.
6021
6022 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
6023
6024         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
6025         macro defaulting to original BRANCH_COST heuristic.
6026         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
6027
6028         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
6029
6030 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
6031
6032         * config/rs6000/t-spe: Merge in t-fprules into file.
6033
6034         * config.gcc: Add t-spe to powerpc-eabispe.
6035
6036 2003-04-22  Kean Johnston  <jkj@sco.com>
6037
6038         * tlink.c (recompile_files): Add missing '=' to putenv calls
6039
6040 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
6041
6042         * ginclude/stddef.h: Provide C++ safe offsetof.
6043
6044 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
6045
6046         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
6047         for reg notes, if there are no substitutions, just use a SUBREG.
6048
6049 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
6050
6051         * Makefile.in (calls.o): Depend on except.h.
6052         * calls.c: Include except.h.
6053         (emit_call_1): Call note_eh_region_may_contain_throw if
6054         appropriate.
6055         * except.c (eh_region): Add may_contain_throw.
6056         (expand_eh_region_end_cleanup): Do not include handler code when
6057         it cannot be reached.
6058         (note_eh_region_may_contain_throw): New function.
6059         * except.h (note_eh_region_may_contain_throw): New function.
6060
6061 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
6062
6063         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
6064         changes.
6065
6066 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
6067
6068         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
6069         64-bit long doubles.
6070
6071 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
6072
6073         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
6074         a number of conversions required for type consistency and previously
6075         stripped off by STRIP_NOPS.
6076
6077         * calls.c (expand_call): Prevent sibcall optimization for calls to
6078         nested subprograms.
6079
6080         * expmed.c (extract_bit_field): Reverse operands of && condition to
6081         prevent a potential division by zero in the previously first branch.
6082         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
6083
6084 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
6085
6086         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
6087         (subrange_type_die): Likewise.
6088         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
6089         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
6090
6091 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
6092
6093         Break out coverage routines to new file.
6094         * Makefile.in (COVERAGE_H): New variable
6095         (C_OBJS): Add coverage.o
6096         (coverage.o): New target.
6097         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
6098         dependencies.
6099         (GTFILES): Adjust.
6100         (gt-coverage.h): New target.
6101         (gt-profile.h): Remove.
6102         * profile.h: Remove. Move to ...
6103         * coverage.h: ... here. New. #include gcov-io.h.
6104         * gcov-io.h: Move function definitions to ...
6105         * gcov-io.c: ... here. New.
6106         * profile.c: Move coverage routines to coverage.c.
6107         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
6108         end_branch_prob): Adjust.
6109         * coverage.c: New. Coverage routines from profile.c
6110         (coverage_counter_ref, coverage_init, coverage_finish,
6111         coverage_end_function, coverage_begin_output,
6112         coverage_counter_ref, get_coverage_counts): Define.
6113         * gcov-dump.c, gcov.c: #include gcov-io.c.
6114         * libgcov.c: Likewise. Adjust.
6115         * loop-init.c: Don't #include profile.h
6116         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
6117         * rtl.h: Add coverage prototypes.
6118         * toplev.c (compile_file): Init coverage, not branch_prob.
6119         Always call coverage_finish.
6120         (rest_of_compilation): Call coverage_end_function.
6121
6122 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
6123
6124         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
6125
6126 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
6127
6128         * c-ppoutput.c (cb_include): Don't take a cpp_token.
6129         * cppfiles.c: Don't undef strcmp.
6130         (find_include_file): Don't take a cpp_token.  Check for empty
6131         file names.
6132         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
6133         (cpp_push_include): Simplify.
6134         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
6135         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
6136         (parse_include): Similary.  Don't check for zero-length filenames.
6137         (do_include_common, do_pragma_dependency): Update accordingly.
6138         * cpplib.h (struct cpp_callbacks): Change prototype of include.
6139
6140 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6141
6142         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
6143         details of conflict handling.
6144
6145         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
6146         when conversion overflows.
6147
6148         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
6149
6150         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
6151         before clearing.
6152
6153 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
6154
6155         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
6156         have the same form as the old RTL.
6157
6158 2003-04-21  Andreas Jaeger  <aj@suse.de>
6159
6160         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
6161
6162 2003-04-20  Chris Lattner  <sabre@nondot.org>
6163             Zack Weinberg  <zack@codesourcery.com>
6164
6165         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
6166         genrtl_cleanup_stmt.  Correct comment at head of
6167         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
6168
6169         * stmt.c (struct nesting): Kill n_function_calls.
6170         (expand_start_bindings): Don't set
6171         thisblock->data.block.n_function_calls.
6172         (expand_end_bindings): Compare function_call_count against 0.
6173         (expand_cleanups): Kill DONT_DO argument; all callers passed
6174         NULL_TREE. All callers updated to match.
6175
6176 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
6177
6178         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
6179         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
6180         (output_constant_def): Remove code predicated on
6181         defer_addressed_constants_flag.
6182
6183         * output.h: Remove prototypes of deleted functions.
6184         * c-typeck.c (constructor_subconstants_deferred): Kill.
6185         (struct initializer_stack): Remove 'deferred' field.
6186         (start_init): Remove all references to the above.
6187         (finish_init): Likewise. Also remove never-executed call to
6188         output_deferred_addressed_constants.  Pull assignment to
6189         defstr out of if expression.
6190
6191 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
6192
6193         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
6194         NOTE_NEWLINE): Remove.
6195         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
6196         to handle new form of line note type.
6197
6198 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
6199
6200         * target.h (encode_section_info): Add new argument carrying
6201         the RTL to be modified by the hook.
6202
6203         * varasm.c (make_decl_rtl, output_constant_def): Update calls
6204         to encode_section_info.
6205         (default_encode_section_info): Take and use RTL argument,
6206         don't use TREE_CST_RTL or DECL_RTL.
6207         * output.h: Update prototype of default_encode_section_info.
6208         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
6209         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
6210         Update calls to encode_section_info.
6211
6212         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
6213         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
6214         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
6215         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
6216         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
6217         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
6218         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
6219         except for PE dllimport/dllexport.  Update calls to
6220         default_encode_section_info.
6221
6222         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
6223         Update prototypes.
6224
6225         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
6226
6227 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6228
6229         PR/8705
6230         * pa.md (movccfp): New expander.
6231         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
6232         Reverse fcmp conditions.
6233
6234 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6235
6236         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
6237         of operand 1 correctly.
6238
6239 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
6240
6241         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
6242         * gcov.c (output_lines): Don't be so fussy about going past EOF.
6243
6244 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
6245
6246         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
6247         (cppcharset.o): New target.
6248         * c-lex.c (is_extended_char): Move to cppcharset.c.
6249         (utf8_extend_token): Delete.
6250         * cppcharset.c: New file.
6251         * cpphash.h (_cpp_valid_ucn): New.
6252         * cpplex.c (lex_identifier): Update prototype.
6253         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
6254         escapes.
6255         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
6256         in cppcharset.c.
6257         (lex_number, lex_identifier, cpp_parse_escape): Update.
6258         (_cpp_lex_direct): Update to handle UCNs.
6259         (cpp_avoid_paste): Don't paste to form a UCN.
6260
6261 2003-04-19  Roger Sayle  <roger@eyesopen.com>
6262
6263         * builtins.c (expand_builtin):  Don't expand a pure or const
6264         built-in function if the result will be ignored and none of
6265         its arguments are volatile.
6266
6267 2003-04-19  Kean Johnston  <jkj@sco.com>
6268
6269         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
6270         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
6271         target fragment now: t-sco5; dont compile crti.o.
6272         * config/i386/sco5.h: major overhaul to remove all COFF remnants
6273         and to use elfos.h for most definitions.
6274         (BSS_SECTION_ASM_OP): set correct segment attributes.
6275         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
6276         (DWARF2_UNWIND_INFO): Always set to 1.
6277         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
6278         (MD_STARTFILE_PREFIX_1): Define.
6279         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
6280         (DEFAULT_LINKER): Define if not specified to configure.
6281         (CTORS_SECTION_ASM_OP): Remove COFF crud.
6282         (DTORS_SECTION_ASM_OP): Remove COFF crud.
6283         (WINT_TYPE): Define.
6284         (SDB_DEBUGGING_INFO): Remove.
6285         (EXTRA_SECTIONS): Likewise.
6286         (EXTRA_SECTION_FUNCTIONS): Likewise.
6287         (CTOR_LIST_BEGIN): Likewise.
6288         (CTOR_LIST_END): Likewise.
6289         (INIT_SECTION_FUNCTION): Likewise.
6290         (FINI_SECTION_FUNCTION): Likewise.
6291         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
6292         (LOCAL_LABEL_PREFIX): Likewise.
6293         (NON_SAVING_SETJMP): Likewise.
6294         (RETURN_POPS_ARGS): Likewise.
6295         (ASM_OUTPUT_SKIP): Likewise.
6296         (TARGET_ASM_NAMED_SECTION): Likewise.
6297         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
6298         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
6299         (ASM_OUTPUT_IDENT): Likewise.
6300         (ASM_OUTPUT_CASE_LABEL): Likewise.
6301         (ASM_OUTPUT_ASCII): Likewise.
6302         (ASM_OUTPUT_LIMITED_STRING): Likewise.
6303         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
6304         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6305         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6306         (ASM_FINISH_DECLARE_OBJECT): Likewise.
6307         (ASM_DECLARE_OBJECT_NAME): Likewise.
6308         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
6309         (ASM_DECLARE_FUNCTION_NAME): Likewise.
6310         (ASM_DECLARE_RESULT): Likewise.
6311         (ASM_WEAKEN_LABEL): Likewise.
6312         (SUPPORTS_WEAK): Likewise.
6313         (APPLY_RESULT_SIZE): Likewise.
6314         (LPREFIX): Likewise.
6315         (ALIGN_ASM_OP): Likewise.
6316         (ASCII_DATA_ASM_OP): Likewise.
6317         (IDENT_ASM_OP): Likewise.
6318         (ASM_SHORT): Likewise.
6319         (ASM_LONG): Likewise.
6320         (TYPE_ASM_OP): Likewise.
6321         (SIZE_ASM_OP): Likewise.
6322         (STRING_ASM_OP): Likewise.
6323         (SKIP_ASM_OP): Likewise.
6324         (EH_FRAME_SECTION_ASM_OP): Likewise.
6325         (READONLY_DATA_SECTION_ASM_OP): Likewise.
6326         (INIT_SECTION_ASM_OP): Likewise.
6327         (FINI_SECTION_ASM_OP): Likewise.
6328         (TEXT_SECTION_ASM_OP): Likewise.
6329         (DATA_SECTION_ASM_OP): Likewise.
6330         (TYPE_OPERANT_FORMAT): Likewise.
6331         (ASM_SPEC): Remove COFF code.
6332         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
6333         cause -pg to emit an error; use pcrt1elf.o with -pp
6334         (ENDFILE_SPEC): Likewise.
6335         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
6336         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
6337         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
6338         add -z alt_resolve to support weak symbols the way GCC wants them.
6339         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
6340         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
6341         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
6342         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
6343         (CRTSTUFF_T_CFLAGS_S): Define.
6344         (MULTILIB_OPTIONS): Likewise.
6345         (MULTILIB_DIRNAMES): Likewise.
6346         (MULTILIB_MATCHES): Likewise.
6347         (MULTILIB_EXTRA_OPTS): Likewise.
6348         (LIBGCC): Likewise.
6349         (INSTALL_LIBGCC): Likewise.
6350         (crti.o): Remove.
6351         * config/i386/t-sco5gas: Remove.
6352         * doc/install.texi: Updated for new OpenServer instructions.
6353         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
6354
6355 2003-04-19  Kean Johnston  <jkj@sco.com>
6356
6357         * fixinc/check.tpl: Allow user to over-ride diff program.
6358         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
6359         (sco_math): Added test for SCO math header files.
6360         (sco_regset): Added check for conflicts with ieeefp.h.
6361         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
6362         * fixinc/fixincl.x: Regenerated
6363         * fixinc/tests/base/math.h: Added sco_math tests.
6364         * fixinc/tests/base/string.h: New file.
6365         * fixinc/tests/base/sys/regset.h: New file.
6366
6367 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
6368
6369         * cpphash.h (struct cpp_buffer): Remove backup_to.
6370         * cpplex.c (BACKUP, get_effective_char): Die.
6371         (_cpp_skip_block_comment): Assume '*' is location on entry.
6372         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
6373         (IF_NEXT_IS): Update.
6374         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
6375
6376 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
6377
6378         * README.Portability: Move to a new section and obsolete K+R
6379         portability issues.
6380
6381 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
6382
6383         * rtlanal.c (subreg_offset_representable_p):  Fix call of
6384         subreg_lowpart.
6385
6386 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
6387
6388         * cpphash.h (struct cpp_reader): New member warned_dollar.
6389         * cpplex.c (continues_identifier_p): New function.
6390         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
6391         lex_number and lex_string, and simplify.
6392         (parse_slow, unescaped_terminator_p): Die.
6393         (_cpp_lex_direct): Update.
6394
6395 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6396
6397         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
6398
6399 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
6400
6401         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
6402         fork behaviour.
6403
6404 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
6405
6406         * cppexp.c (eval_token): Permit true and false even if pedantic.
6407
6408 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
6409
6410         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
6411
6412 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
6413
6414         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
6415         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
6416         (struct include_file): Remove fefcnt, mapped members.
6417         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
6418         (read_include_file): Don't use mmap, terminate buffers in '\r'.
6419         (purge_cache): Don't use munmap.
6420         * cpphash.h (CPP_BUF_COLUMN): Update.
6421         (lexer_state): Remove lexing_comment.
6422         (struct _cpp_line_note): New.
6423         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
6424         next_line and need_line.  Remove col_adjust and saved_flags.
6425         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
6426         _cpp_skip_block_comment, scan_out_logical_line): New.
6427         (_cpp_init_mbchar): Remove.
6428         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
6429         (cpp_read_main_file): Set line to 1 earlier.
6430         (post_options): -traditional-cpp doesn't want trigraphs.
6431         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
6432         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
6433         _cpp_get_fresh_line): New.
6434         (handle_newline, skip_escaped_newlines, trigraph_p,
6435         continue_after_nul, _cpp_init_mbchar): Remove.
6436         (get_effective_char): Update.
6437         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
6438         (skip_line_comment): Simplify.
6439         (skip_whitespace, parse_identifier, parse_slow, parse_number,
6440         parse_string): Update.
6441         (cpp_lex_direct): Use clean lines and process line notes.  Update.
6442         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
6443         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
6444         directly.
6445         (_cpp_handle_directive): Don't set saved_flags.
6446         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
6447         cpp_undef, handle_assertion, cpp_push_buffer): Update.
6448         (_cpp_pop_buffer): Free notes.
6449         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
6450         * cpppch.c (cpp_read_state): \n terminate buffer.
6451         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
6452         (copy_comment): Use _cpp_skip_block_comment.
6453         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
6454         Simplify.
6455         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
6456         save_replacement_text): Update.
6457         (scan_out_logical_line): Update to use clean lines and process
6458         line notes.
6459         * fix-header.c (read_scan_file): Update.
6460
6461 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
6462
6463         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
6464         null begin parameter (as well as pointer to null).
6465         (__deregister_frame_info_bases): Likewise.
6466
6467 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6468
6469         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
6470         hard or virtual register and copy into pseudo if replacement fails.
6471
6472         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
6473
6474         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
6475
6476 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
6477
6478         * calls.c (expand_call): Move special case for constructor calls
6479         to right place. Ensures constructor calls used to initialize
6480         arguments get a clean outgoing argument block for themselves.
6481         Move check for stack deallocation completeness until after last
6482         deallocation.  Add stack_pointer_delta to set of state
6483         variables saved and restored along with current stack_level.
6484
6485         * integrate.c (expand_inline_function): Ensure non-const actuals
6486         don't end up const in the caller's flow after conversion to possibly
6487         const formal type.
6488
6489 2003-04-18  Vincent Celier  <celier@gnat.com>
6490
6491         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
6492         and *_DIV_EXPR as TRUNC_*_EXPR.
6493
6494 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
6495
6496         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
6497         for orphaned jump tables.
6498
6499 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
6500
6501         * reload1.c: Revert my previous patch on 2002-04-17.
6502
6503 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6504
6505         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
6506         Add Segher Boessenkool.
6507
6508 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
6509
6510         PR c/9177
6511         * c-decl.c (c_expand_body): Don't garbage collect the function
6512         body if we are going to dump it later.
6513
6514 2003-04-18  Richard Henderson  <rth@redhat.com>
6515
6516         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
6517         (alpha_end_function): Don't set them.
6518         (decl_in_text_section): Remove.
6519         (alpha_encode_section_info): Remove.
6520         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
6521         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
6522         sections, rather than decl_in_text_section results.
6523
6524 2003-04-18  Roger Sayle  <roger@eyesopen.com>
6525
6526         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
6527         and SIGN_EXTRACT.
6528
6529 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
6530
6531         PR optimization/7675
6532         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
6533         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
6534         nested functions if they refer to declarations from parent functions.
6535         * stmt.c (expand_decl): Don't put automatic variables in registers
6536         if the DECL_NONLOCAL flag is set.
6537
6538 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6539
6540         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
6541         consider those to be movable where the source matches
6542         want_to_gcse_p.
6543         (update_ld_motion_stores): In comment, refer to
6544         compute_ld_motion_mems for validity of replacement.
6545
6546 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
6547
6548         * gcov-dump.c (tag_summary): Remove max_sum
6549         * gcov-io.h (gcov_summary, gcov_write_summary,
6550         gcov_read_summary): Kill max_sum.
6551         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
6552         message more verbose.
6553
6554         * emit-rtl.c (subreg_hard_regno):  Check that register is
6555         representable.
6556
6557         * reload.c (reload_inner_reg_of_subreg):  When register is not
6558         representable, reload the whole thing.
6559         (find_reloads): Likewsie.
6560         * rtlanal.c (subreg_representable_p):  New function.
6561
6562         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
6563         allow negative probabilities for edges from the call to exit.
6564         (branch_prob): Do not add fake edges for functions that may return
6565         twice.
6566
6567 2003-04-17  DJ Delorie  <dj@redhat.com>
6568
6569         * toplev.c (target_options): Add value field.
6570         (set_target_switch): Handle target options with values.
6571         * doc/tm.texi: Document how fixed vs variable target
6572         options work.
6573         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
6574         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
6575         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6576         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
6577         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
6578         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
6579         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
6580         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
6581         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
6582         Add value initializer to target options.
6583
6584 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
6585
6586         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
6587
6588 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
6589
6590         * reload1.c (move2add_last_cc0): New.
6591         (reload_cse_move2add): Detect implicit sets.
6592         (move2add_note_store): Notice a store into cc0.
6593
6594 2003-04-17  Roger Sayle  <roger@eyesopen.com>
6595
6596         PR c/10375
6597         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
6598         function attributes.
6599
6600 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
6601
6602         * doc/sourcebuild.texi (Test Suites): Document support for testing
6603         binary compatibility (moved from testsuite/README.compat).
6604
6605 2003-04-17  Richard Henderson  <rth@redhat.com>
6606
6607         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
6608
6609 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
6610
6611         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
6612         the one provided by the FSF.
6613
6614 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6615
6616         * doc/install.texi (Binaries): Update URL and list of platforms
6617         provided by ftp.thewrittenword.com.
6618
6619 2003-04-17  Richard Henderson  <rth@redhat.com>
6620
6621         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
6622         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
6623         * config/xtensa/xtensa.md (call, call_value): Likewise.
6624
6625 2003-04-17  Richard Henderson  <rth@redhat.com>
6626
6627         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
6628         (print_operand_address): Likewise.
6629         (ep_memory_operand): Likewise.
6630         (special_symbolref_operand): Likewise.
6631         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
6632         (v850_encode_section_info): Call default_encode_section_info.
6633         (v850_strip_name_encoding): Remove.
6634         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
6635         (ASM_OUTPUT_LABELREF): Remove.
6636         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
6637         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
6638         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
6639         (ENCODED_NAME_P): Remove.
6640         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
6641         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
6642         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
6643
6644 2003-04-17  Richard Henderson  <rth@redhat.com>
6645
6646         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
6647         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
6648         SYMBOL_REF_FUNCTION_P.
6649
6650 2003-04-17  Richard Henderson  <rth@redhat.com>
6651
6652         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
6653         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
6654         (text_segment_operand): Likewise.
6655
6656 2003-04-17  Richard Henderson  <rth@redhat.com>
6657
6658         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
6659         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
6660         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
6661         (sh_encode_section_info): Remove.
6662         (sh_strip_name_encoding): Remove.
6663         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
6664         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
6665         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
6666         (ASM_OUTPUT_LABELREF): Remove.
6667         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
6668         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
6669
6670 2003-04-17  Richard Henderson  <rth@redhat.com>
6671
6672         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
6673         (tls_model_chars): Remove.
6674         (larl_operand): Use SYMBOL_REF_FLAGS.
6675         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
6676         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
6677         (s390_output_mi_thunk): Likewise.
6678         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
6679         (s390_function_profiler): Likewise.
6680         (s390_encode_section_info): Use default_encode_section_info
6681         and SYMBOL_FLAG_ALIGN1.
6682         (s390_strip_name_encoding): Remove.
6683         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
6684         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
6685         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
6686
6687 2003-04-17  Richard Henderson  <rth@redhat.com>
6688
6689         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
6690         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
6691         (print_operand_address): Likewise.
6692
6693         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
6694         * config/ns32k/ns32k.c (expand_block_move): Don't check
6695         flag_unroll_loops.
6696
6697 2003-04-17  Richard Henderson  <rth@redhat.com>
6698
6699         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
6700         SYMBOL_REF_FLAG.
6701
6702 2003-04-17  Richard Henderson  <rth@redhat.com>
6703
6704         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
6705
6706         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
6707         (SYMBOL_REF_MODEL): New.
6708         (LIT_NAME_P): Move from m32r.h.
6709         (m32r_select_section): Remove.
6710         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
6711         (m32r_strip_name_encoding): Remove.
6712         (m32r_in_small_data_p): New.
6713         (small_data_operand): Use SYMBOL_REF_SMALL_P.
6714         (addr24_operand): Use SYMBOL_REF_MODEL.
6715         (call26_operand): Likewise.
6716         (addr32_operand): Tidy.
6717         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
6718         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
6719         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
6720         (READONLY_DATA_SECTION_ASM_OP): Remove.
6721         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
6722         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
6723         (TARGET_ASM_SELECT_SECTION): Remove.
6724         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
6725         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
6726         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
6727         (ASM_OUTPUT_LABELREF): Remove.
6728
6729 2003-04-17  Richard Henderson  <rth@redhat.com>
6730
6731         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
6732         (encode_section_info): Remove.
6733         * config/ip2k/ip2k-protos.h: Update.
6734
6735 2003-04-17  Richard Henderson  <rth@redhat.com>
6736
6737         * varasm.c (default_encode_section_info): Don't set
6738         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
6739         * config/i370/i370.c (i370_encode_section_info): Remove.
6740         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
6741         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
6742         * config/i370/i370.md (movsi): Likewise.
6743
6744         * config/i370/t-i370: Add missing backslash.
6745
6746 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
6747
6748         * doc/invoke.texi (inline-limit): Fix pasto.
6749
6750 2003-04-17  Richard Henderson  <rth@redhat.com>
6751
6752         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
6753         (small_call_insn_operand): Use it.
6754         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
6755         (h8300_eightbit_constant_address_p): Use it.
6756         (SYMBOL_FLAG_TINY_DATA): New.
6757         (h8300_tiny_constant_address_p): Use it.
6758         (h8300_encode_label, h8300_strip_name_encoding): Remove.
6759         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
6760         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
6761         (ASM_OUTPUT_LABELREF): Remove.
6762
6763 2003-04-16  Richard Henderson  <rth@redhat.com>
6764
6765         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
6766         all users with SYMBOL_REF_SMALL_P.
6767         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
6768         (frv_encode_section_info): Remove.
6769         (frv_strip_name_encoding): Remove.
6770         (frv_in_small_data_p): Merge tests from encode_section_info.
6771         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
6772         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
6773         (SDATA_NAME_P): Remove.
6774         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
6775         (ASM_OUTPUT_LABELREF): Remove.
6776         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
6777
6778         * config/frv/frv.c (frv_asm_out_constructor): New.
6779         (frv_asm_out_destructor): New.
6780         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
6781         (DTORS_SECTION_ASM_OP): New.
6782         (ASM_OUTPUT_CONSTRUCTOR): Remove.
6783         (ASM_OUTPUT_DESTRUCTOR): Remove.
6784
6785 2003-04-16  Richard Henderson  <rth@redhat.com>
6786
6787         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
6788         SYMBOL_REF_LOCAL_P; abort if not pic.
6789         (cris_encode_section_info): Remove.
6790
6791 2003-04-16  Richard Henderson  <rth@redhat.com>
6792
6793         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
6794         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
6795
6796         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
6797         flag_inline_trees.
6798
6799 2003-04-16  Richard Henderson  <rth@redhat.com>
6800
6801         * config/avr/avr.c (avr_encode_section_info): Remove.
6802         (avr_insert_attributes): New.
6803         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
6804         (avr_assemble_integer): Likewise.
6805
6806 2003-04-16  Richard Henderson  <rth@redhat.com>
6807
6808         * arc.c (arc_encode_section_info): Remove.
6809         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
6810         (arc_print_operand, arc_print_operand_address): Likewise.
6811         * arc.h (EXTRA_CONSTRAINT): Likewise.
6812
6813 2003-04-16  Roger Sayle  <roger@eyesopen.com>
6814
6815         * c-semantics.c (find_reachable_label): New function to find a
6816         potentially reachable label in an expression.
6817         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
6818         assumes the start of the IF_STMT is unreachable (dead) code.
6819         (expand_unreachable_stmt): Similar to expand_stmt but assumes
6820         the start of the statement list is unreachable (dead) code.
6821         (genrtl_if_stmt):  If the controlling expression of the IF
6822         is constant, use expand_unreachable_stmt for the THEN or ELSE
6823         clause as appropriate.
6824         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
6825         the body of a SWITCH statement.
6826         (expand_stmt): The code immediately following a "return",
6827         "break", "continue" or "goto" is unreachable.
6828         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
6829
6830 2003-04-16  Richard Henderson  <rth@redhat.com>
6831
6832         * rtl.h (MEM_ALIAS_SET): Update documentation.
6833         * doc/rtl.texi (Special Accessors): New node.
6834         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
6835
6836 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
6837
6838         * reload1.c (reload_cse_noop_set_p): Return false if mode of
6839         SET_DEST is not the same as that returned by...
6840         * cselib.h (cselib_reg_set_mode): ... new function.
6841         * cselib.c (cselib_reg_set_mode): Define it.
6842         (REG_VALUES): Document semantics of first element as set mode.
6843         (cselib_subst_to_values): Skip first element if ELT is NULL.
6844         (cselib_lookup): Likewise.  Insert past the first element.
6845         (cselib_invalidate_regno): NULLify first element.
6846         (cselib_record_set): Set first element.
6847
6848 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
6849
6850         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
6851         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
6852         * tree.h: Add prototypes for the two new functions.
6853         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
6854         updates introduced in the previous revision by call to saved_expr_p.
6855         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
6856
6857         * expr.c (store_field): Force usage of bitfield instructions when
6858         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
6859         (expand_expr, case BIT_FIELD_REF): likewise.
6860
6861 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
6862
6863         PR middle-end/8866
6864         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
6865         jumptables.
6866
6867 2003-04-16  Richard Henderson  <rth@redhat.com>
6868
6869         * config/ia64/ia64.c (sdata_symbolic_operand): Use
6870         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
6871         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
6872         (function_operand): Use SYMBOL_REF_FUNCTION_P.
6873         (ia64_expand_load_address): Likewise.
6874         (ia64_assemble_integer): Likewise.
6875         (ia64_encode_section_info): Remove.
6876         (ia64_strip_name_encoding): Remove.
6877         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
6878         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
6879
6880 2003-04-16  Richard Henderson  <rth@redhat.com>
6881
6882         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
6883         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
6884         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
6885         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
6886         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
6887         (global_symbolic_operand): Similarly.
6888         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
6889         (tls_symbolic_operand_type): Likewise.
6890         (alpha_encode_section_info): Use default_encode_section_info.
6891         (alpha_strip_name_encoding): Remove.
6892         (get_tls_get_addr): Split out from ...
6893         (alpha_legitimize_address): ... here.
6894         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
6895         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
6896         (alpha_initialize_trampoline): Use init_one_libfunc.
6897         (alpha_setup_incoming_varargs): Mark unused parameters.
6898         (alpha_initial_elimination_offset): Likewise.
6899         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
6900         (unicosmk_unique_section): Use default_strip_name_encoding.
6901         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
6902
6903 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
6904
6905         * config.gcc: Add t-spe for eabispe.
6906
6907         * config/rs6000/t-spe: New.
6908
6909 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
6910
6911         Re-apply this patch:
6912
6913         2002-05-16  Dale Johannesen  <dalej@apple.com>
6914           * combine.c (cant_combine_insn_p):  Reenable combinations
6915           involving hard regs unless CLASS_LIKELY_SPILLED_P.
6916
6917 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6918
6919         PR/10271
6920         * pa-protos.h (function_arg): Remove last argument.
6921         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
6922         * pa.h (struct hppa_args): Add member incoming.
6923         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
6924         member incoming.
6925         (FUNCTION_ARG): Revise call to function_arg.
6926         (FUNCTION_INCOMING_ARG): Delete.
6927
6928 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
6929
6930         * configure.in: Unify the code which creates symlinks to a
6931         just-built as, ld, objdump, and nm with the code that detects
6932         their presence for purposes of feature tests.
6933         * configure: Regenerate.
6934
6935 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
6936
6937         * varasm.c (output_constant_def): Do not consult
6938         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
6939         (after_function_constants, output_after_function_constants): Delete.
6940         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
6941         * config/mips/mips-protos.h, config/mips/mips.c
6942         (mips16_constant_after_function_p): Delete.
6943         * config/mips/mips.h: Delete #if-0-ed definition of
6944         CONSTANT_AFTER_FUNCTION_P.
6945         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
6946         mention of CONSTANT_AFTER_FUNCTION_P in comment.
6947
6948 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
6949
6950         * tree.c (next_decl_uid): Mark with GTY.
6951         (next_type_uid): Likewise.
6952
6953 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
6954
6955         PR target/9594:
6956         * sh.c (barrier_align): Also recognize stuff_delay_slot as
6957         an indicator that a barrier was created by branch splitting.
6958
6959 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
6960
6961         * c-decl.c (implicitly_declare): Copy declarations that are going
6962         to be placed in a local scope.
6963
6964 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
6965
6966         * invoke.texi (Spec Files): Wrap if-exists-else example.
6967         (MCore): Remove duplicate @itemx entries and @opindex entries.
6968
6969 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
6970
6971         * unwind.inc (_Unwind_Backtrace): New function.
6972         * unwind.h (_Unwind_Backtrace): Declare it.
6973         * libgcc-std.ver (_Unwind_Backtrace): Export it.
6974
6975 2003-04-14  Jason Merrill  <jason@redhat.com>
6976
6977         PR middle-end/10336, c++/10401
6978         * jump.c (never_reached_warning): Also stop looking if we reach the
6979         beginning of the function.
6980
6981 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6982
6983         PR target/10338
6984         PR bootstrap/10198
6985         PR bootstrap/10140
6986         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
6987
6988 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
6989
6990         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
6991
6992 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6993
6994         * optabs.c (expand_binop): In multi-word add cases, ensure
6995         XTARGET is copied to TARGET if they are different.
6996
6997 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
6998
6999         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
7000         to region, possible after integration of function with unreachable
7001         regions that were optimized away.
7002
7003 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
7004
7005         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
7006         instead of TOC_REGISTER in epilogue in
7007         current_function_calls_eh_return functions.
7008
7009 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
7010
7011         * doc/extend.texi (Empty Structures): Correct description of G++'s
7012         handling of these structures.
7013
7014         * c-decl.c (grokdeclarator): Reject extern redeclarations of
7015         static variables.
7016
7017 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
7018
7019         * config/rs6000/rs6000.md (define_constants): Define constants for
7020         all UNSPEC usage, including new values for TLS support.
7021         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
7022         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
7023         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
7024         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
7025         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
7026         eh_set_lr_di): Use them.
7027         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
7028         rs6000_emit_epilogue) Use them.
7029
7030         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
7031
7032 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
7033
7034         * Makefile.in (c-opts.o): Use custom action.
7035
7036 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
7037
7038         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
7039
7040 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7041
7042         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
7043         handle "superflat arrays" in Ada.
7044
7045         * integrate.c (expand_inline_function): Don't inline if would
7046         lose /u on a BLKmode TARGET.
7047
7048 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
7049
7050         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
7051         extracted from dbxout_type.
7052         (dbxout_range_type): print large bounds in octal format.
7053         (dbxout_type): Replace extracted code by call to
7054         print_int_cst_bounds_in_octal_p.
7055
7056         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
7057         of DW_LANG_Ada83 for Ada units.
7058
7059 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
7060
7061         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
7062         temporary used to round CONST_INT sizes.
7063
7064         * tree.c (int_fits_type_p): Extract generic checks from the case
7065         of constant type bounds. Refine the checks against constant type
7066         bounds to allow for possible decisions against each of these bounds
7067         without requiring both bounds to be constant.
7068         (tree_int_cst_msb): Put back.
7069         * tree.h (tree_int_cst_msb): Likewise.
7070
7071         * global.c (global_conflicts): Prevent allocation of call clobbered
7072         hard regs to pseudos live across abnormal edges, as later passes are
7073         not ready to handle them.
7074
7075         * fold-const.c (fold): Reorder tests for conditional expressions.
7076
7077         * expr.c (highest_pow2_factor): Return unsigned.
7078         * expr.h (offset_address): Likewise.
7079         * emit-rtl.c (offset_address): POW2 argument now unsigned.
7080
7081 2003-04-14  Roger Sayle  <roger@eyesopen.com>
7082
7083         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
7084         string literals at compile-time.
7085
7086 2003-04-14  Roger Sayle  <roger@eyesopen.com>
7087
7088         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
7089         comparison operation and c1/c2 are floating point constants into
7090         x swap(cmp) (c1 - c2).
7091
7092 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
7093
7094         * genautomata.c (output_translate_vect): Fix a typo in loop
7095         condition.
7096
7097 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
7098
7099         PR target/10377
7100         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
7101         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
7102         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
7103         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
7104         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
7105         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
7106         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
7107         ("*extopqihi_swap_side", "*extopqisi_swap_side")
7108         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
7109         When next to constraint R, replace constraint i with n.
7110
7111 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
7112
7113         PR opt/10024
7114         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
7115
7116 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
7117
7118         * doc/contrib.texi (Contributors): Correct my entry.
7119
7120 2003-04-13  Roger Sayle  <roger@eyesopen.com>
7121
7122         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
7123         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
7124         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
7125         implies DECL_BUILT_IN to simplify logic.
7126         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
7127
7128 2003-04-13  Roger Sayle  <roger@eyesopen.com>
7129
7130         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
7131         (BT_FN_PTR_SIZE_SIZE): Likewise.
7132         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
7133         New built-in functions for malloc, calloc and strdup respectively.
7134         * calls.c (special_function_p): No need to handle malloc-like
7135         functions any longer.  ECF_MALLOC is set via built-in attributes.
7136
7137         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
7138
7139         * doc/extend.texi: Document these new built-in functions.
7140
7141 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7142
7143         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
7144         (expand_builtin_stpcpy): New.
7145         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
7146         * builtins.def: Add mempcpy & stpcpy support.
7147         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
7148
7149 2003-04-13  Nick Clifton  <nickc@redhat.com>
7150
7151         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
7152         "GCC".
7153         * config/rs6000/40x.md, config/rs6000/603.md,
7154         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
7155         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
7156         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
7157         config/rs6000/aix43.h, config/rs6000/aix51.h,
7158         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
7159         config/rs6000/altivec.h, config/rs6000/altivec.md,
7160         config/rs6000/beos.h, config/rs6000/darwin.h,
7161         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
7162         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
7163         config/rs6000/freebsd.h, config/rs6000/gnu.h,
7164         config/rs6000/host-darwin.c, config/rs6000/linux.h,
7165         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
7166         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
7167         config/rs6000/netbsd.h, config/rs6000/power4.md,
7168         config/rs6000/rios1.md, config/rs6000/rios2.md,
7169         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
7170         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
7171         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
7172         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
7173         config/rs6000/spe.md, config/rs6000/sysv4.h,
7174         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
7175         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
7176
7177 2003-04-13  Nick Clifton  <nickc@redhat.com>
7178
7179         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
7180         support for -mcall-aix switch.
7181         * config/rs6000/eabiaix.h: Delete.
7182         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
7183         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
7184         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
7185         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
7186         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
7187         debug_stack_info, output_function_profiler,
7188         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
7189         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
7190         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
7191         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
7192         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
7193         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
7194         multilibs.
7195         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
7196         (MULTILIB_EXCEPTIONS): Delete.
7197         (MULTILIB_MATCHES): Remove mcall-aix matches.
7198
7199         * doc/fragments.texi: Replace -mcall-aix example with an ARM
7200         one.
7201         * doc/install.texi: Delete powerpc-*-eabiaix target.
7202         * doc/invoke.texi: Remove documentation of mcall-aix switch.
7203         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
7204         * config.gcc: Delete powerpc-*-eabiaix target.
7205
7206 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
7207
7208         * doc/invoke.texi: Fix typos.
7209         * doc/tm.texi: Likewise.
7210
7211 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
7212
7213         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
7214
7215 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
7216
7217         * tree.c (build_constructor): New function.
7218         * tree.h: Prototype it.
7219
7220         * c-typeck.c (build_c_cast, pop_init_level)
7221         * profile.c (build_function_info_value, build_gcov_info_value)
7222         (create_profiler):
7223         Use build_constructor.
7224
7225         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
7226
7227         * objc/objc-act.c (build_constructor):
7228         Rename objc_build_constructor. Use build_constructor.
7229         (build_objc_string_object, objc_add_static_instance)
7230         (init_def_list, init_objc_symtab, init_module_descriptor)
7231         (generate_static_references, build_selector_translation_table)
7232         (build_descriptor_table_initializer, generate_descriptor_table)
7233         (build_protocol_initializer, build_ivar_list_initializer)
7234         (generate_ivars_list, build_dispatch_table_initializer)
7235         (generate_dispatch_table, generate_protocol_list)
7236         (build_category_initializer, build_shared_structure_initializer):
7237         Update to match.
7238
7239 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
7240
7241         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
7242
7243 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
7244
7245         * config/m68hc11/m68hc11-protos.h
7246         (m68hc11_eq_compare_operator): Declare
7247         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
7248         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
7249         (d_register_operand): Check the operand mode.
7250         (hard_addr_reg_operand): Likewise.
7251
7252 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
7253
7254         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
7255         pattern for dbcc/ibcc generation for 68HC12.
7256         ("doloop_end"): New pattern.
7257         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
7258         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
7259         ("m68hc12_dbcc_dec_qi"): New pattern.
7260         ("m68hc12_dbcc_inc_qi"): New pattern.
7261         (split): Add split for the above when we can't use dbcc/ibcc due to
7262         reloading.
7263         (peephole2): Add peephole2 to generate the above when possible.
7264
7265 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
7266
7267         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
7268         mode of operand 0.
7269         (peephole2 optimize const load): Likewise for operand 2.
7270         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
7271         clobbers CC_REGNUM.
7272         ("*rotrhi3_with_carry"): Likewise.
7273         (ashift:DI 1 split): Update pattern to create the above rotate.
7274         (lshiftrt:DI 1 split): Likewise.
7275
7276 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
7277
7278         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
7279         ("tstqi_z_used" split): Use it.
7280         ("cmphi_z_used"): Likewise.
7281         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
7282         ("cmpqi_z_used"): Likewise.
7283
7284 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
7285
7286         PR c++/7910
7287         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
7288
7289 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
7290
7291         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
7292         * configure, config.in: Regenerate.
7293         * intl.c (gcc_gettext_width): New function.
7294         * intl.h: Prototype it.
7295
7296 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
7297
7298         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
7299         recognize -mnorelax.
7300         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
7301         (REG_CLASS_NAMES): Add its name.
7302         (REG_CLASS_CONTENTS): Define its content.
7303
7304 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
7305
7306         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
7307         parameters so that offsets are valid for far definition.
7308         (__mulsi3): Likewise and use ret to return.
7309         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
7310
7311 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
7312
7313         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
7314
7315 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
7316
7317         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
7318         containing a libgcc.a, move lib* to the corresponding stage dir.
7319
7320         * Makefile.in (stage1-start, stage2-start, stage3-start,
7321         stage4-start): Move $(SPECS) to specs in stage dir.
7322         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
7323         back as $(SPECS).
7324
7325         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
7326         object files from the non-libgcc/ multilib directories as well.
7327
7328 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
7329
7330         * profile.c (read_counts_file): Initialise 'checksum'.
7331
7332         * emit-rtl.c (gen_rtx): Really correct typo.
7333
7334         PR c++/9393
7335         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
7336         * configure.in: Check for gettimeofday.
7337         * tree.c (flag_random_seed): Define.
7338         (default_flag_random_seed): New.
7339         (append_random_chars): Use flag_random_seed rather than trying
7340         to acquire randomness here.
7341         * tree.h (default_flag_random_seed): Declare.
7342         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
7343         descriptions.
7344         (decode_f_option): Handle -frandom-seed.
7345         (print_switch_values): Call default_flag_random_seed.
7346         * flags.h (flag_random_seed): Declare.
7347         * configure: Regenerate.
7348         * config.in: Regenerate.
7349         * config/alpha/t-crtfm: Use -frandom-seed.
7350
7351         * doc/extend.texi (Empty Structures): New.
7352
7353         * c-pch.c: Include flags.h.  Add comments to routines.
7354         (struct c_pch_validity): New.
7355         (get_ident): Update PCH file version number.
7356         (pch_init): Output current debugging type.
7357         (c_common_valid_pch): Check debugging type.
7358         * Makefile.in (c-pch.o): Update dependencies.
7359         * flags.h (debug_type_names): Declare.
7360         * toplev.c (debug_type_names): Move out of decode_g_option.
7361
7362 2003-04-11  Eric Christopher  <echristo@redhat.com>
7363
7364         * emit-rtl.c (gen_rtx): Fix typos.
7365
7366 2003-04-11  Richard Henderson  <rth@redhat.com>
7367
7368         * emit-rtl.c (gen_rtx): Zero '0' fields.
7369
7370 2003-04-11  Richard Henderson  <rth@redhat.com>
7371
7372         PR c++/10202
7373         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
7374         not COMPLETE_TYPE_P for re-invoking layout_decl.
7375
7376 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
7377
7378         * doc/bugreport.texi: Fix paragraph breaking between sections
7379         in preparation for TeXinfo's paragraph indentation fixes.
7380         * doc/extend.texi: Ditto.
7381         * doc/invoke.texi: Ditto.
7382         * doc/objc.texi: Ditto.
7383         * doc/gcov.texi: Wrap 'gcov' in @command{}.
7384         * doc/invoke.texi (Darwin Options): Add a preamble.
7385
7386 2003-04-11  Richard Henderson  <rth@redhat.com>
7387
7388         * config/i386/i386.c (tls_model_chars): Remove.
7389         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
7390         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
7391         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
7392         (tls_symbolic_operand_1): Likewise.
7393         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
7394         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
7395         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
7396         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
7397         bits "copied from i386.h" with default_encode_section_info.
7398
7399 2003-04-11  Richard Henderson  <rth@redhat.com>
7400
7401         * rtl.def (SYMBOL_REF): Add two 0 fields.
7402         * gengtype.c (adjust_field_rtx_def): Handle them.
7403         * print-rtl.c (print_rtx): Print them.
7404         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
7405         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
7406         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
7407         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
7408         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
7409         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
7410         (SYMBOL_FLAG_MACH_DEP): New.
7411         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
7412         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
7413         (assemble_static_space): Set SYMBOL_REF_FLAGS.
7414         (assemble_trampoline_template): Likewise.
7415         (output_constant_def, force_const_mem): Likewise.
7416         (default_encode_section_info): New.
7417         * output.h: Declare it.
7418         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
7419
7420 2003-04-11  Richard Henderson  <rth@redhat.com>
7421
7422         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
7423         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
7424         * optabs.c (init_optabs): Initialize them.
7425         (init_libfuncs): Use init_one_libfunc.
7426         * calls.c (expand_call): Use gcov_flush_libfunc.
7427         * expr.c (store_constructor): Use setbits_libfunc.
7428         * function.c (expand_main_function): Use init_one_libfunc.
7429         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
7430
7431 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
7432
7433         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
7434         documentation; add DECL_FRIEND_CONTEXT.
7435
7436 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7437
7438         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
7439         notes on linker selection and configuration for 64-bit HP-UX port.
7440         * doc/invoke.texi (hppa): Remove hppa text from description for
7441         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
7442         and -threads options.
7443
7444         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
7445         libc.a on libdld.sl when -static is specified and -nolibdld is not
7446         specified.
7447         * pa64-hpux.h (LIB_SPEC): Likewise.
7448         * pa-hpux11.h (LIB_SPEC): Likewise.
7449         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
7450         is not specified.
7451
7452 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
7453
7454         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
7455         not IDENTIFIER_LOCAL_VALUE.
7456
7457 2003-04-11  Richard Henderson  <rth@redhat.com>
7458
7459         PR c/10201
7460         * expr.c (expand_expr): Move DECL_RTL frobbing ...
7461         * stor-layout.c (layout_decl): ... here.
7462
7463 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
7464
7465         * doc/invoke.texi: Eliminate extra white-space caused by
7466         @gccoptlist{ on its own line.
7467         * doc/invoke.texi: Ensured there are two spaces between each option.
7468         * doc/invoke.texi: Re-wrapped option lines that were too wide.
7469         Added @gol to options that didn't have them.
7470
7471 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
7472
7473         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
7474         gcov-iov.h.
7475
7476         Simplify interface to gcov reading and writing.
7477         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
7478         gcov_alloc, gcov_modified, gcov_errored): Move into ...
7479         (struct gcov_var gcov_var): ... this static structure.
7480         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
7481         Return void.
7482         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
7483         read object.
7484         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
7485         (gcov_reserve_length): Remove.
7486         (gcov_write_tag): New.
7487         (gcov_write_length): Adjust.
7488         (gcov_read_summary, gcov_write_summary): Adjust.
7489         (gcov_eof, gcov_ok): Rename to ...
7490         (gcov_is_eof, gcov_is_error): ... here. Return error code.
7491         (gcov_save_position, gcov_resync): Rename to ...
7492         (gcov_position, gcov_seek): ... here.
7493         (gcov_skip, gcov_skip_string): Remove.
7494         (gcov_error): Remove.
7495         (gcov_open, gcov_close): Adjust.
7496         * gcov.c (find_source): Take const char *, copy it on allocation.
7497         (read_graph_file): Adjust.
7498         (read_count_file): Adjust.
7499         * libgcov.c (gcov_exit): Adjust.
7500         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
7501         tag_arc_counts, tag_summary): Return void. Adjust.
7502         (struct tag_format): Adjust proc member.
7503         (dump_file): Adjust gcov calls.
7504
7505 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
7506
7507         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
7508         mkfixinc.sh.
7509         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
7510         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
7511         build != host sysrooted builds.
7512         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
7513         TARGET_SYSTEM_ROOT even on sysrooted natives.
7514         * configure: Rebuilt.
7515
7516 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
7517
7518         * c-decl.c (struct binding_level): Add shadowed_tags and
7519         function_body; remove this_block, tag_transparent, and
7520         subblocks_tag_transparent; update comments.
7521         (clear_binding_level, lookup_tag_reverse): Kill.
7522         (make_binding_level): Use ggc_alloc_cleared or memset.
7523         (lookup_tag): Remove struct binding_level* parameter.  All
7524         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
7525         current_binding_level->tags if asked for thislevel_only or if
7526         we might have to diagnose "struct foo; union foo;"
7527         (pushlevel): Ignore argument.  Do not push another binding
7528         level on the transition from the parameters to the top level
7529         of the function body; just tweak the flags and proceed.
7530         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
7531         a function body, separate the parameter list from the
7532         top-level local variables.
7533         (set_block): Do nothing.
7534         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
7535         shadowed_tags if necessary.
7536         (warn_if_shadowing): Nuke the special case for local shadowing
7537         parameter.
7538         (pushdecl): Do not create a shadow entry if we are replacing
7539         an older decl in the same binding level.
7540         (pushdecl_function_level): Tweak for new way of indicating
7541         function scope.
7542         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
7543         (start_function): Don't set subblocks_tag_transparent.
7544         (finish_function): Fix up the binding_level stack for totally
7545         empty functions.  Otherwise, don't call poplevel.
7546
7547         * c-common.c (shadow_warning): MANDATORY argument is no longer
7548         necessary.  Always use plain warning.
7549         * c-common.h: Update to match.
7550
7551         * cfglayout.c (scope_to_insns_initialize): Clear block when we
7552         hit the FUNCTION_DECL.
7553         * function.c: Do not create cyclic tree structure.
7554
7555 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
7556
7557         * c-tree.h (struct lang_identifier): Replace global_value,
7558         local_value members with symbol_value, tag_value.  Kill
7559         implicit_decl and limbo_value.
7560         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
7561         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
7562         C_MISSING_PROTOTYPE_WARNED): Kill.
7563         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
7564         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
7565         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
7566         (implicit_decl_warning, lookup_name_current_level,
7567         record_function_scope_shadow): Don't prototype.
7568         (pushdecl_function_level): Prototype.
7569
7570         * c-decl.c (truly_local_externals): New variable.
7571         (struct binding_level): Adjust commentary.
7572         (get_function_binding_level, clear_limbo_values,
7573         record_function_scope_shadow): Kill.
7574         (lookup_name_current_level, implicit_decl_warning): Are now static.
7575         (any_external_decl, record_external_decl): New static functions.
7576         (clone_underlying type): Split out of pushdecl.
7577         (c_print_identifier): Update to match changes to struct
7578         lang_identifier.
7579         (poplevel): Delete #if 0 block.  Make externals invisible
7580         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
7581         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
7582         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
7583         (duplicate-decls): For real parm decl after a forward decl,
7584         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
7585         foo(...) { } with only a warning.  Say whether a previous
7586         declaration was implicit.
7587         (warn_if_shadowing): Now handles all shadowing, not just
7588         local-over-local.  Clarify comments.
7589         (pushdecl): Rewritten.  There is no longer a distinction
7590         between global and local symbol values; they're all
7591         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
7592         DECL_EXTERNAL decls, and use any_external_decl to check
7593         against previous externals.  Kill #if 0 blocks.  Don't
7594         tolerate error_mark_node being NULL.
7595         (pushdecl_top_level): Handle only those cases which
7596         Objective C (the only user) needs.
7597         (pushdecl_function_level): New function.
7598         (implicitly_declare): Create ordinary decls with
7599         C_DECL_IMPLICIT set.  Recycle old decls, however they got
7600         created.
7601         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
7602         for C_DECL_INVISIBLE symbols.
7603         (lookup_name_current_level): Likewise.  Use chain_member.
7604         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
7605         Use pushdecl_function_level.
7606         (builtin_function): Use C_DECL_INVISIBLE.
7607         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
7608         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
7609         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
7610         (identifier_global_value): Same.  Must scan
7611         global_binding_level in extremis.
7612
7613         * c-typeck.c (undeclared_variable): New static function, split
7614         from build_external_ref.
7615         (build_external_ref): Use DECL_CONTEXT, not
7616         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
7617         an instance variable.  Restructure for clarity.
7618         * objc/objc-act.c: Use identifier_global_value, not
7619         IDENTIFIER_GLOBAL_VALUE.
7620
7621 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
7622
7623         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
7624         not Working Paper.
7625         * doc/invoke.texi (C++ Dialect Options): Same.
7626
7627 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
7628
7629         * tree.c (tree_operand_check_failed): New function.
7630         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
7631         TREE_RTL_OPERAND_CHECK): New checking macros.
7632         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
7633         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
7634         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
7635         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
7636         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
7637         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
7638         checking macros.
7639
7640 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
7641
7642         PR inline-asm/8803
7643         * function.c (instantate_virtual_regs):  Verify that all ASM statements
7644         match after the virutal regs instantiation.
7645
7646 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
7647
7648         * ia64-protos.h (addp4_optimize_ok): New.
7649         * ia64.c (addp4_optimize_ok): New.
7650         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
7651         (*ptr_extend_plus_2): Ditto.
7652
7653 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
7654
7655         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
7656         not with convert_memory_address.
7657         (store_constructor): Ditto, and same for copy_size_rtx.
7658         (expand_expr): Ditto.
7659
7660 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
7661
7662         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
7663
7664 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
7665
7666         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
7667         even if it is configured to be write-through.
7668
7669 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
7670
7671         * config/s390/s390.c (larl_operand): Do not allow symbols
7672         marked with '@'.
7673         (s390_encode_section_info): Mark symbols with forced 1-byte
7674         alignment with '@'.
7675         (s390_strip_name_encoding): Strip '@'.
7676         (legitimize_pic_address): Handle symbols that are not valid
7677         LARL operands in 64-bit mode.
7678
7679 2003-04-10  Andrew Haley  <aph@redhat.com>
7680
7681         * tree-inline.c (inlinable_function_p): Disable inlining for
7682         synchronized methods.
7683
7684 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
7685
7686         * c-common.h (lang_statement_code_p): Remove declaration.
7687         (statement_code_p): Ditto.
7688         (c_common_stmt_codes): Define; list of c-common statement codes.
7689         (statement_code_p): New extern declaration.
7690         (STATEMENT_CODE_P): Define.
7691         (INIT_STATEMENT_CODES): Define.
7692         * c-common.c (statement_code_p): Kill the function, declare
7693         as an array of bools instead.
7694         (lang_statement_code_p): Remove.
7695         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
7696         (c_safe_from_p): Ditto.
7697         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
7698         to initialize the statement_code_p array.
7699         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
7700         statement_code_p.
7701         (copy_tree_r): Ditto.
7702         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
7703         statement tree codes.
7704         * cp/lex.c (cxx_init): Add missing print line break.  Use
7705         INIT_STATEMENT_CODES to initialize the statement_code_p array.
7706         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
7707         instead of statement_code_p.
7708         * cp/pt.c (tsubst_expr): Ditto.
7709         * cp/tree.c (verify_stmt_tree_r): Ditto.
7710         (cp_statement_code_p): Remove.
7711         (init_tree): Don't set lang_statement_code_p, it's gone.
7712
7713 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
7714             Zack Weinberg  <zack@codesourcery.com>
7715
7716         * regrename.c (struct du_chain): Use a bitfield for reg_class.
7717         * cse.c (struct qty_table_elem, struct table_elt, struct set):
7718         Use bitfields for fields holding enum rtx_code or
7719         enum machine_mode values.  Add comments explaining size choices.
7720
7721 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
7722
7723         * config/fp-bit.c (unpack_d): Handle pair of doubles with
7724         different signs correctly.
7725
7726 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
7727
7728         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
7729         (reg_pending_barrier): Make it of the enumeration type.
7730         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
7731         TRUE_BARRIER.
7732         (sched_analyze): Ditto.
7733         (sched_analyze_insn): Ditto.  Use anti-dependencies for
7734         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
7735         (init_deps_global): Initialize the barrier as NO_BARRIER.
7736
7737 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
7738
7739         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
7740         Check that asm insn starts on a new cycle.  Add nops after asm
7741         insn to end bundle.
7742         (bundling): Move insn type evaluation from the loop.  Call
7743         issue_nops_and_insn with the new parameter.  Ignore changing
7744         position for nops after asm insn.
7745
7746 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
7747
7748         * optabs.c: Comment that gen_add2_insn and others may actually
7749         return emitted insns, if the gen functions turn out to return
7750         emitted insns.
7751         * reload1.c (reload_cse_move2add): Cope with emitted insns from
7752         gen_add2_insn.
7753
7754 2003-04-09  Richard Henderson  <rth@redhat.com>
7755
7756         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
7757         but not tls_symbolic_operand.
7758         (ia64_expand_load_address): Remove scratch operand.
7759         (ia64_expand_tls_address): Split out from ia64_expand_move.
7760         (ia64_expand_move): Split symbolics only after reload.
7761         (ia64_emit_cond_move): New.
7762         * config/ia64/ia64-protos.h: Update.
7763         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
7764         (symbolic splitter): Accept SImode operands too.
7765         (cmove splitter): Use ia64_emit_cond_move.
7766
7767 2003-04-09  Nick Clifton  <nickc@redhat.com>
7768
7769         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
7770         newer.
7771         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
7772         instead of -mno-fpu.
7773         * config/arm/semi.h (ASM_SPEC): Likewise.
7774         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
7775         but only if -msoft-float is specified pass.  Otherwise pass
7776         -mfpu=softvfp.
7777
7778 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7779
7780         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
7781         free_EXPR_LIST_node.
7782
7783 2003-04-08  Roger Sayle  <roger@eyesopen.com>
7784
7785         * fold-const.c (fold):  Use "fold" following build in more places.
7786         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
7787         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
7788
7789 2003-04-08  Roger Sayle  <roger@eyesopen.com>
7790
7791         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
7792         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
7793         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
7794         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
7795         Delete function scope "fcode" variable to avoid shadowing.
7796
7797 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
7798
7799         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
7800         Take into account DWARF_INITIAL_LENGTH_SIZE.
7801
7802 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
7803
7804         * reorg.c (fill_slots_from_thread): When considering changing the
7805         insn following a reg-to-reg copy insn to use the source reg of the
7806         copy, bail out if there's overlap between the registers.
7807
7808 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7809
7810         * function.c (postponed_insns): New.
7811         (purge_addressof_1): Postpone processing of insns if addressofs
7812         are not put into stack.
7813         (purge_addressof): Process postponed insns.
7814
7815 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
7816
7817         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
7818         this is FP_MODE_DOUBLE .
7819         * sh.c (ra.h): #include.
7820         (push_regs): Add second parameter.  Changed all callers.
7821         If necessary, set fpscr before saving floating point registers.
7822         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
7823         do saves / restores with SZ == 1.
7824         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
7825         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
7826         registers are being restored, restore FPSCR only after restoring them.
7827
7828 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
7829
7830         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
7831         regardless of architecture.
7832         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
7833
7834 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
7835
7836         * sh.c (push_regs, calc_live_regs): Return int.  Take single
7837         HARD_REG_SET * parameter.  Changed all callers.
7838
7839 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
7840
7841         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
7842         GOTOFF operand.
7843         (legitimize_pic_address): Move plus outside the unspec.
7844         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
7845         for validity.
7846
7847 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
7848
7849         * gcov-io.h (gcov_save_position): Remove __inline__ from
7850         declaration.
7851
7852 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
7853
7854         * doc/install.texi: Use @command and @samp for single- and
7855         multi-word commands respectively.
7856         * doc/makefile.texi: Likewise.
7857         * doc/sourcebuild.texi: Likewise.
7858
7859 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
7860             Richard Henderson  <rth@redhat.com>
7861
7862         PR c/9516
7863         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
7864         favour of looping and tail recursion for TREE_LIST and binops.
7865
7866 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7867
7868         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
7869         for insns without luid.
7870
7871 2003-04-07  Glen Nakamura  <glen@imodulo.com>
7872
7873         PR opt/8634
7874         * explow.c (maybe_set_unchanging): Don't flag non-static const
7875         aggregate type initializers with RTX_UNCHANGING_P.
7876
7877 2003-04-07  Richard Henderson  <rth@redhat.com>
7878
7879         PR opt/8634
7880         * function.c (purge_addressof_1): Don't try arithmetics for
7881         unchanging memories.
7882
7883 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
7884
7885         * doc/sourcebuild.texi (Test Suites): Document testing support for
7886         gcov and profile-directed optimizations; describe gcc.misc-tests.
7887
7888 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
7889
7890         PR target/10077
7891         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
7892
7893 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
7894
7895         * doc/rtl.texi (Comparison operations): Update to
7896         record the allowed comparison modes.
7897
7898 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
7899
7900         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
7901         V2SI_type_node to opaque_V2SI_type_node.  Rename all
7902         V2SF_type_node to opaque_V2SF_type_node.
7903         (rs6000_init_builtins): Define opaque_V2SI_type_node and
7904         opaque_V2SF_type_node.
7905         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
7906         opaque_V2SF_type_node are opaque types.
7907
7908 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
7909
7910         * gcse.c (replace_store_insn): Use single_set.
7911
7912 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
7913
7914         Change gcov file interface to single file at a time.
7915         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
7916         Convert to C89 prototypes.
7917         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
7918         gcov_error, gcov_modified): New static variables.
7919         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
7920         functions.
7921         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
7922         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
7923         (gcov_read_summary, gcov_write_summary): Adjust.
7924         (gcov_save_position, gcov_reserve_length, gcov_write_length):
7925         Adjust.
7926         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
7927         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
7928         (da_file_position, da_file_seek, da_file_write, da_file_read):
7929         Remove.
7930         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
7931         * gcov.c (gcov_type): Don't typedef here.
7932         (IN_GCOV): #define
7933         (read_graph_file, read_count_file): Adjust.
7934         * gcov-dump.c (gcov_type): Don't typedef here.
7935         (IN_GCOV): #define.
7936         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
7937         Remove FILE parameter, adjust.
7938         (struct tag_format): Adjust proc member.
7939         (dump_file): Adjust.
7940         * libgcov.c (IN_LIBGCOV): #define.
7941         (gcov_exit): Adjust.
7942         * loop-init.c: Don't #include gcov-io.h
7943         * profile.c (struct counts_entry): New structure to hold counter
7944         values.
7945         (struct section_reference, struct da_index_entry): Remove.
7946         (bbg_file, da_file): Remove.
7947         (htab_counts_index_hash, htab_counts_index_eq,
7948         htab_counts_index_del): Replace with ...
7949         (htab_counts_entry_hash, htab_counts_entry_eq,
7950         htab_counts_entry_del): ... these.
7951         (cleanup_counts_index, index_counts_file): Remove.
7952         (read_counts_file): New function.
7953         (get_exec_counts): Adjust.
7954         (compute_branch_probabilities): Don't free the exec counts here.
7955         (branch_prob): Adjust.
7956         (init_branch_prob): Adjust.
7957         (end_branch_prob): Adjust.
7958
7959 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
7960
7961         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7962         -mfloat-gprs.
7963
7964         * config/rs6000/rs6000.c: Delete rs6000_fprs.
7965         Declare rs6000_float_gprs.
7966         Declare rs6000_float_gprs_string.
7967         (rs6000_parse_float_gprs_option): New.
7968         (rs6000_override_options): Genericize rs6000_parse_* calls to use
7969         rs6000_parse_yes_no_option.
7970         Change check for cpu=8540, to use TARGET_E500.
7971         (rs6000_parse_isel_option): Delete.
7972         (rs6000_parse_spe_option): Delete.
7973         (rs6000_parse_vrsave_option): Delete.
7974
7975         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
7976         Define rs6000_float_gprs_string.
7977         (TARGET_OPTIONS): Add rs6000_float_gprs option.
7978
7979         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
7980
7981         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
7982
7983 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
7984
7985         PR opt/10024
7986         * cfglayout.c (cfg_layout_redirect_edge):
7987         Redirect any branch edges unified with the fallthru one.
7988         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
7989         case fallthru edges when called via cfglayout.c
7990
7991 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
7992
7993         * c-typeck.c (output_init_element): Check for type == error_mark_node.
7994
7995 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
7996
7997         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
7998         split.
7999         (a splitter): Do zero-extension via HImode.
8000
8001 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
8002
8003         * doc/invoke.texi: Eliminate extra white-space caused by
8004         @gccoptlist{ on its own line.
8005         * doc/invoke.texi: Ensured there are two spaces between each option.
8006         * doc/invoke.texi: Re-wrapped option lines that were too wide.
8007         Added @gol to options that didn't have them.
8008
8009 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
8010
8011         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
8012
8013 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
8014
8015         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
8016         at the sizes of the relevant structures, rather than relying
8017         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
8018         sizes of any such we don't know about.  Use
8019         lang_hooks.identifier_size for IDENTIFIER_NODE.
8020
8021         (initializer_zerop): Use CONSTRUCTOR_ELTS.
8022         * tree.def: Update commentary.  Make fourth element of
8023         the definition for all 'c' and 'x' nodes zero.
8024
8025         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
8026         * langhooks-def.h: Update to match.
8027         * langhooks.c: New default, lhd_tree_size.
8028
8029         * c-common.def (SRCLOC): Kill.
8030         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
8031         Remove entirely - was already #if-ed out.
8032
8033
8034 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
8035
8036         * mklibgcc.in: Use a here document to avoid running afoul of
8037         shells that generate control-A from "echo \1".
8038
8039 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
8040
8041         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
8042         option.
8043
8044         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8045         rs6000_spe.
8046
8047         * config/rs6000/eabi.h (TARGET_E500): Define.
8048
8049         * config/rs6000/rs6000.h (TARGET_E500): Define.
8050         (TARGET_OPTIONS): Add spe= option.
8051         Declare rs6000_spe and rs6000_spe_string extern.
8052
8053         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
8054         Change TARGET_SPE to TARGET_E500.
8055         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
8056         !TARGET_FPRS.
8057         (print_operand): Same.
8058         (rs6000_generate_compare): Same.
8059         (output_cbranch): Same.
8060         (rs6000_spe): Declare.
8061         (rs6000_spe_string): Declare.
8062         (rs6000_override_options): Call rs6000_parse_spe_option.
8063         (rs6000_parse_spe_option): New.
8064
8065 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
8066
8067         * hashtable.c (gcc_obstack_init): Delete this function
8068         and everything related to it.
8069         * hashtable.h: Remove prototype.
8070         * bitmap.c (bitmap_element_allocate): Cleanup redundant
8071         defines.  Cleanup some unnecessary whitespace.
8072         * defaults.h (obstack_chunk_alloc): Redefine with
8073         appropriate casts for libiberty obstacks.
8074         (obstack_chunk_free): Ditto.
8075         (OBSTACK_CHUNK_SIZE): Define, default to 0.
8076         (gcc_obstack_init): Define as a call to _obstack_begin.
8077         * tree.c (print_obstack_statistics): Delete this unused
8078         function.
8079         * tree.h (obstack): Don't forward-declare.
8080         (print_obstack_statistics): Delete prototype.
8081         (print_obstack_name): Ditto.
8082         (gcc_obstack_init): Ditto.
8083         * rtl.h (gcc_obstack_init): Ditto.
8084         * java/jv-scan.c (gcc_obstack_init): Delete this
8085         function, its prototype and related defines.
8086         * java/jvgenmain.c (gcc_obstack_init): Delete this
8087         function, and related defines.
8088         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
8089         (obstack_chunk_free): Ditto
8090
8091 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
8092
8093         * dbxout.c (dbxout_handle_pch): Move prototype out from
8094         #if defined DBX_DEBUGGING_INFO.
8095
8096 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
8097
8098         * gcov.c (struct arc_info): Replace local_span with cycle.
8099         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
8100         (solve_flow_graph): Set is_call_return.
8101         (add_line_counts): Adjust. In block mode, blocks attach to last line.
8102         (accumulate_line_counts): Find graph cycles, not spanning tree.
8103         (output_branch_count): Adjust.
8104         (output_lines): Adjust.
8105         * doc/gcov.texi: Update.
8106
8107 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
8108
8109         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
8110         the second alternative to "#".
8111
8112 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
8113
8114         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
8115         (single_zero_operand): Likewise.
8116
8117 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
8118
8119         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
8120         * df.c: Include alloc-pool.h, not obstack.h.
8121         (df_ref_obstack): Remove.
8122         (df_ref_pool, df_link_pool): Add pools.
8123         (df_alloc): Init the new pools.
8124         (df_free): And free them.
8125         (df_link_create): Use the pools.
8126         (df_ref_create): Ditto.
8127
8128 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
8129
8130         * simplify-rtx.c: Fix formatting.
8131
8132 2003-04-05  Andrew Pinski  <apinski@apple.com>
8133
8134         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
8135         reg with reg1 == reg2 and offset1 = -8.
8136
8137 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
8138
8139         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
8140         multiply costs.  Correct Power4 divide costs.
8141         * config/rs6000/power4.md: Restore multiply and FP latency.
8142
8143 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8144
8145         * alias.c (find_base_term): Export.
8146         * rtl.h (find_base_term): Declare.
8147         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
8148         instead of flag_exceptions.  Move test for parameter passing ...
8149         (store_killed_in_insn): ... here.
8150
8151 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8152
8153         PR bootstrap/10267
8154         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
8155         for configuring.
8156
8157 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
8158
8159         * dbxout.c (scope_labelno): Add GTY.
8160         (have_used_extensions): Add GTY.
8161         (source_label_number): Add GTY.
8162         (lastfile): Add GTY.
8163         (lastfile_is_base): New.
8164         (base_input_file): New.
8165         (dbxout_handle_pch): New.
8166         (dbx_debug_hooks): Add handle_pch.
8167         (xcoff_debug_hooks): Likewise.
8168         (dbxout_function_end): Remove scope_labelno.
8169         (dbxout_init): Set base_input_file.
8170         (dbxout_handle_pch): New.
8171         (dbxout_source_file): Honour lastfile_is_base.
8172         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
8173         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
8174         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
8175         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
8176         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
8177         * debug.h (struct gcc_debug_hooks): Add handle_pch.
8178         * c-pch.c (pch_init): Don't call start_source_file, but do call
8179         handle_pch.
8180         (c_common_write_pch): Call handle_pch.
8181         (c_common_read_pch): Don't call start_source_file,
8182         or end_source_file.
8183
8184 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
8185
8186         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
8187         use of default attributes to agree MEM_ALIGN macro.
8188
8189 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
8190
8191         * dbxout.c (dbxout_type): When printing type index of range type
8192         whose bounds are printed in octal format, print type of parent type if
8193         it exists so enumerated type descriptions are not transformed
8194         into unsigned types.
8195
8196 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
8197
8198         * config/h8300/h8300-protos.h: Add a prototype for
8199         compute_a_shift_cc.
8200         * config/h8300/h8300.c (shift_one): Update the CC status.
8201         (shift_two): Likewise.
8202         (output_a_shift_cc): Set cc_inline and cc_special.
8203         (compute_a_shift_cc): New.
8204         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
8205
8206 2003-04-04  Richard Henderson  <rth@redhat.com>
8207
8208         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
8209
8210 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
8211
8212         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
8213         * fixinc/fixincl.x: Rebuilt.
8214         * fixinc/tests/base/stdio.h: Regenerated.
8215
8216 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
8217
8218         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
8219
8220 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
8221
8222         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
8223         (NORMAL_MODE).
8224         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
8225
8226 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8227
8228         * doc/contrib.texi (Contributors): Add entries for Wolfgang
8229         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
8230         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
8231         Danny Smith, and Ulrich Weigand.
8232         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
8233         entry.
8234
8235 2003-04-04  Nick Clifton  <nickc@redhat.com>
8236
8237         * config/sparc/sol2-bi.h: Revert previous delta.
8238         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
8239
8240 2003-04-04  Nick Clifton  <nickc@redhat.com>
8241
8242         * config/v850/v850.c (expand_prologue): Only use register save
8243         helper functions if long calls are not being used.
8244         Add a clobber of r11 id using long calls.
8245         (pattern_is_ok_for_prologue): Account for the extra clobber.
8246         (construct_save_jarl): Likewise.
8247         * config/v850/v850.md (prolog pattern): Do not use this pattern
8248         for v850e's.
8249
8250 2003-04-04  Andreas Schwab  <schwab@suse.de>
8251
8252         * stor-layout.c (layout_decl): Avoid syntax error in last change
8253         when PCC_BITFIELD_TYPE_MATTERS is defined but not
8254         EMPTY_FIELD_BOUNDARY.
8255
8256 2003-04-03  Jason Merrill  <jason@redhat.com>
8257
8258         PR c/10175
8259         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
8260         Look backwards for a line note.
8261
8262 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
8263
8264         * fix-header.c (read_scan_file): Defer switch processing.
8265
8266 2003-04-03  Matt Austern  <austern@apple.com>
8267
8268         * cpppch.c (reset_ht): Remove.
8269         (cpp_read_state): Remove loop to reset hashtable identifiers.
8270         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
8271         after pch file is written.
8272         * ggc.h (gt_pch_fixup_stringpool): Declare.
8273         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
8274         hashnode's value to another hashtable, then clear the original.
8275         (saved_ident_hash): Define.
8276         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
8277         store definitions in ident_hash, and clear ident_hash.
8278         (gt_pch_fixup_stringpool): Define.  Restore definitions from
8279         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
8280
8281 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
8282
8283         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
8284
8285 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
8286
8287         PR optimization/10157
8288         * gcse.c (can_copy_p): Rename it to can_copy.
8289         (can_copy_init_p): Remove.
8290         (compute_can_copy): Use can_copy instead of can_copy_p.
8291         (can_copy_p): New exported function. Call compute_can_copy.
8292         (hash_scan_set): Use it.
8293         (gcse_main): Don't call compute_can_copy.
8294         (bypass_jumps): Don't call compute_can_copy.
8295         * rtl.h (can_copy_p): Declare.
8296         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
8297         copy if the mode doesn't support copy operations.
8298
8299 2003-04-03  Jason Merrill  <jason@redhat.com>
8300
8301         * Makefile.in (unstrap): Also remove stage_last.
8302
8303         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
8304         (dwarf2out_source_line): Don't do anything if line==0.
8305
8306         * stor-layout.c (do_type_align): New fn, split out from...
8307         (layout_decl): ...here.  Do all alignment calculations for
8308         FIELD_DECLs here.
8309         (update_alignment_for_field): Not here.
8310         (start_record_layout, debug_rli): Remove unpadded_align.
8311         * tree.h (struct record_layout_info_s): Remove unpadded_align.
8312         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
8313         or DECL_MODE on the CONST_DECLs.
8314         (finish_struct): Don't mess with DECL_ALIGN.
8315
8316 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
8317
8318         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
8319
8320 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
8321
8322         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
8323         function is an interrupt handler.
8324
8325         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
8326         restoring target registers with EH_RETURN_STACKADJ_RTX; use
8327         multiple registers in round-robin fashion.
8328
8329 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8330
8331         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
8332         * system.h (CHAR_BITFIELD): New.
8333
8334 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
8335
8336         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
8337         and LE.
8338         (another peephole2): Likewise.
8339
8340 2003-04-03  Nick Clifton  <nickc@redhat.com>
8341
8342         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
8343         (DEF_ARCH64_SPEC): Likewise.
8344
8345 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
8346
8347         * i386.c (constant_address_p): Use legitimate_constant_p.
8348         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
8349
8350 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
8351
8352         * config/h8300/h8300-protos.h: Add a prototype for
8353         gtle_operator.
8354         * config/h8300/h8300.c (gtle_operator): New.
8355         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
8356         gtle_operator.
8357         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
8358         and LE.
8359
8360 2003-04-02  Richard Henderson  <rth@redhat.com>
8361
8362         * libgcc-std.ver (_Unwind_GetCFA): New.
8363         * unwind-dw2.c (_Unwind_GetCFA): New.
8364         * unwind-libunwind.c (_Unwind_GetCFA): New.
8365         * unwind-sjlj.c (_Unwind_GetCFA): New.
8366         * unwind.h: Declare it.
8367
8368 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
8369
8370         PR inline-asm/8088
8371         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
8372         when MMX/SSE is not available.
8373
8374 2003-04-02  Mike Stump  <mrs@apple.com>
8375
8376         * doc/install.texi (Specific): Update pointers to apple.com.
8377
8378 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
8379
8380         * i386.c (override_options):  Disable red zone by default on i386.
8381         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
8382         Do not test TARGET_64BIT together with TARGET_RED_ZONE
8383
8384 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
8385
8386         * config/h8300/h8300.md (a peephole2): Tighten the condition.
8387
8388 2003-04-02  Richard Henderson  <rth@redhat.com>
8389
8390         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
8391
8392 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
8393
8394         * config/h8300/h8300.md (a peephole2): New.
8395
8396 2003-04-02  Richard Henderson  <rth@redhat.com>
8397
8398         * except.c (sjlj_find_directly_reachable_regions): Recognize when
8399         must-not-throw region has been deleted.
8400
8401 2003-04-02  Richard Henderson  <rth@redhat.com>
8402
8403         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
8404         optimization when flag_exceptions not enabled.
8405
8406 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
8407
8408         * config/rs6000/rs6000.c
8409         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
8410         macros.
8411         (rs6000_issue_rate): Add case for 8540.
8412         (rs6000_use_sched_lookahead): New function.
8413
8414         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
8415         units into MU ones.
8416         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
8417         reservation before retirement.
8418         (ppc8540_multiply, ppc8540_load, ppc8540_store,
8419         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
8420         Remove additional cycle in the reservation before retirement.
8421         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
8422         reservation of ppc8540_issue.
8423
8424 2003-04-02  Andreas Schwab  <schwab@suse.de>
8425
8426         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
8427
8428 2003-04-01  Richard Henderson  <rth@redhat.com>
8429
8430         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
8431         notes for nothrow calls if flag_forced_unwind_exceptions.
8432         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
8433         (sjlj_find_directly_reachable_regions): Likewise.
8434         (reachable_handlers): Likewise.
8435         (can_throw_external): Likewise.
8436         (collect_one_action_chain): Record cleanups after catch-all and
8437         must-not-throw if flag_forced_unwind_exceptions.
8438         * flags.h (flag_forced_unwind_exceptions): Declare.
8439         * toplev.c (flag_forced_unwind_exceptions): New.
8440         (lang_independent_options): Add it.
8441         * doc/invoke.text: Add it.
8442
8443 2003-04-01  David Mosberger <davidm@hpl.hp.com>
8444
8445         * config/ia64/crti.asm: Clean up trailing whitespace.
8446         Remove trailing hashes (#) from identifiers.
8447
8448         * config/ia64/crtn.asm: Ditto.
8449
8450         * config/ia64/crtend.asm: Remove trailing hashes (#) from
8451         identifiers.
8452         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
8453         directives.  Drop explicit bundling---it just makes the code
8454         harder to read.  Don't save/restore gp needlessly.
8455
8456         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
8457         identifiers (they're only needed if the identifier would clash
8458         with a register name otherwise).
8459         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
8460         directives.  Drop explicit bundling---it just makes the code
8461         harder to read.
8462         (__do_jv_register_classes): Ditto.
8463         (.fini_array): Remove "progbits" (newer
8464         assemblers don't like wrong section-types).
8465         (.init_array): Ditto.
8466
8467 2003-04-01  Roger Sayle  <roger@eyesopen.com>
8468
8469         PR fortran/9974
8470         * gcse.c (reg_killed_on_edge): New function to test whether the
8471         given reg is overwritten by any instruction queued on an edge.
8472         (bypass_block): Ignore substitutions killed on incoming edges.
8473         Don't bypass outgoing edges that have queued instructions.
8474
8475 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
8476
8477         * real.h (EXP_BITS): Make room for...
8478         (struct real_value): ... added canonical bit.
8479         (struct real_format): Added pnan.
8480         (mips_single_format, mips_double_format, mips_extended_format,
8481         mips_quad_format): New.
8482         * real.c: Copy p to pnan in all formats.
8483         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
8484         (real_nan): Use pnan to compute significand's shift.
8485         (real_identical): Disregard significand in canonical
8486         NaNs.
8487         (real_hash): Likewise.  Take signalling into account.
8488         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
8489         Disregard significand bits in canonical NaNs.  Set all bits of
8490         canonical NaN if !qnan_msb_set.
8491         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
8492         qnan_msb_set to tell the base double format.
8493         (ibm_extended_format): Use 53 as pnan.
8494         (mips_single_format, mips_double_format, mips_extended_format,
8495         mips_quad_format): Copied from the corresponding ieee/ibm
8496         formats, with qnan_msb_set false.
8497         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
8498         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
8499         * config/mips/mips.c (override_options): Use mips_single_format
8500         and mips_double_format.  Default TFmode to mips_quad_format.
8501         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
8502         * config/mips/t-irix6: Likewise.
8503         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
8504         * config/fp-bit.c (pack_d, unpack_d): Obey it.
8505
8506 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
8507
8508         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
8509         (live_image_destructor): Reset image to initial state.
8510         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
8511
8512 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
8513
8514         * config/sparc/sparc.c (input_operand): Accept bare
8515         CONSTANT_P_RTX operands.
8516
8517 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8518
8519         * gcse.c (struct ls_expr): Added pattern_regs field.
8520         (ldst_entry): Initialize it.
8521         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
8522         (store_ops_ok): Use regs precomputed by them.
8523         (find_loads, store_killed_in_insn, load_kills_store): Change return
8524         type to bool.
8525         (store_killed_before, store_killed_after): Take position of register
8526         set in account.
8527         (reg_set_info): Store position of the setter.
8528         (gcse_main): Enable store motion.
8529         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
8530         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
8531         sharing.
8532         (simple_mem): Enable store motion of non-symbol mems.
8533         (regvec): Type changed.
8534         (LAST_AVAIL_CHECK_FAILURE): New.
8535         (compute_store_table_current_insn): New.
8536         (build_store_vectors): Computation of availability and anticipatability
8537         moved ...
8538         (compute_store_table, find_moveable_store): ... here.
8539         (delete_store): Remove senseless comment.
8540         (store_motion): Reorganize.
8541
8542 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
8543
8544         * config/mips/mips.c (override_options): Provide mappings for
8545         HI_REGNUM and LO_REGNUM.
8546         * config/mips/mips.h (MD_DBX_FIRST): Define.
8547
8548 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8549
8550         * combine.c (merge_outer_ops): Fix typo.
8551
8552         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
8553
8554 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
8555
8556         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
8557         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
8558         imul_compare.  Add lmul_compare.
8559         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
8560         in second pair of dispatch slots.  Model stores more accurately.
8561         Tweak multiply model.  Add bypasses for CR instructions dependent
8562         on complicated compares.
8563         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
8564         (muldi3): Add lmul_compare patterns.
8565         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
8566         and FPSTORE_UX to split instructions and add COMPARE,
8567         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
8568         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
8569         (rs6000_rtx_costs): Separate POWER4 multiply case.
8570
8571 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
8572
8573         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
8574         Do nothing if __builtin_return_address was not used.
8575
8576 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
8577
8578         * i386.md (test patterns):  Allow memory operand in operand1.
8579
8580 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
8581
8582         * testsuite/gcc.c-torture/execute/simd-3.c: New.
8583
8584         * expr.c (expand_expr): Handle VECTOR_CST.
8585         (const_vector_from_tree): New.
8586
8587         * varasm.c (output_constant): Handle VECTOR_CST.
8588
8589         * c-typeck.c (digest_init): Build a vector constant from a
8590         VECTOR_TYPE.
8591
8592         * config/rs6000/rs6000.c: Remove prototype for
8593         easy_vector_constant.
8594         (easy_vector_constant): Add mode parameter.  Rewrite to handle
8595         more easy constants.
8596         (rs6000_emit_move): Pass mode to easy_vector_constant.
8597         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
8598         (emit_easy_vector_insn): New.
8599         (easy_vector_same): New.
8600         (EASY_VECTOR_15): New macro.
8601         (EASY_VECTOR_15_ADD_SELF): New macro.
8602         (bdesc_2arg): Rename to xorv2si3.
8603         (easy_vector_constant_add_self): New.
8604         (input_operand): Allow vector constants.
8605
8606         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
8607         easy_vector_constant, easy_vector_constant_add_self.
8608         (EXTRA_CONSTRAINT): Add 'W'.
8609
8610         * config/rs6000/rs6000-protos.h: Add prototype for
8611         easy_vector_constant, emit_easy_vector_insn.
8612
8613         * config/rs6000/altivec.md (xorv8hi3): New.
8614         (xorv16qi3): New.
8615         Remove all _const0 patterns.
8616         (movv4si_internal): Rewrite to use code.  Add vector constant to
8617         vector alternative.  Add splitter.
8618         (movv8hi_internal): Same.
8619         (movv16qi_internal): Same.
8620         (movv4sf_internal): Same.
8621         Change the unspecs for vspltis* to use constants.
8622
8623         * config/rs6000/spe.md ("xorv4hi3"): New.
8624         ("spe_evxor"): Rename to xorv2si3.
8625         ("xorv1di3"): New.
8626         Remove all _const0 patterns.
8627         (movv2si_internal): Rewrite to use code.  Add vector constant to
8628         alternatives.  Add splitter.
8629         (movv4hi_internal): Add vector constant to alternatives.
8630         (movv1di_internal): Same.
8631         (movv2sf_internal): Same.
8632
8633 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
8634
8635         PR c/9936
8636         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
8637         variably-sized arrays in parameters.
8638         (set_save_expr_context): New function.
8639         (c_expand_body): Use it, via walk_tree.
8640
8641 2003-03-31  Eric Christopher  <echristo@redhat.com>
8642
8643         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
8644         (combinable_i3pat): Remove call to expand_field_assignment and
8645         #if 0'd code.
8646
8647 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
8648
8649         PR c++/10278
8650         * c-common.c (finish_label_address_expr): Handle the
8651         error_mark_node.
8652
8653 2003-03-31  Richard Henderson  <rth@redhat.com>
8654
8655         * real.c (real_identical): Reorg so as to not compare
8656         signalling for normals.
8657
8658 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
8659
8660         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
8661
8662 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
8663
8664         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
8665         notes as they are boggus.
8666         (m68hc11_gen_movqi): Likewise.
8667
8668 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
8669
8670         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
8671         save the soft registers after the frame pointer so that gdb can unwind
8672         the frame more easily.
8673         (expand_epilogue): Likewise in opposite order; allow to use X register
8674         as scratch if the return value is by reference.
8675
8676 2003-03-31  Jason Merrill  <jason@redhat.com>
8677
8678         PR java/10145
8679         * stor-layout.c (update_alignment_for_field): Respect
8680         DECL_USER_ALIGN for zero-length bitfields, too.
8681         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
8682         fields.
8683
8684 2003-03-31  Matt Austern  <austern@apple.com>
8685
8686         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
8687         (count_defs): Keep track of number of defs as well as total size.
8688         (write_defs): Put every definition in cpp_savedstate's defs array.
8689         (comp_hashnode): Define.  Comparison function for qsort.
8690         (cpp_write_pch_deps): Sort definitions before writing them.
8691         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
8692         (collect_ht_nodes): Define.
8693         (cpp_valid_state): When verifying that undefined identifiers in
8694         the pch file are still undefined, read a sorted list of undefined
8695         identifiers, collect all defined identifiers into a sorted list,
8696         and walk through both lists to make sure there's no match.
8697
8698 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
8699
8700         * config/h8300/h8300.md (a peephole2): New.
8701
8702 2003-03-31  Michael Matz  <matz@suse.de>
8703
8704         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
8705
8706 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
8707
8708         PR target/10177
8709         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
8710         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
8711         all call-clobbered registers as used.
8712
8713 2003-03-31  Michael Matz  <matz@suse.de>
8714
8715         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
8716         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
8717
8718 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
8719
8720         * gcov.c: Add -a & -u options.
8721         (struct arc_info): Add local_span, is_call_non_return,
8722         is_nonlocal_return, is_unconditional flags, remove is_call flag.
8723         (struct block_info): Add flags, is_call_site, is_nonlocal_return
8724         members. Make encodings a union with span member.
8725         (struct function_info): Add blocks_executed, line, src, line_next
8726         members.
8727         (struct coverage_info): Make branches a union with blocks member.
8728         (struct source_info): Add functions member.
8729         (object_summary, program_count): New global variables.
8730         (flag_all_blocks, flag_unconditional): New flags.
8731         (find_source, output_branch_count): New functions.
8732         (print_usage): Adjust.
8733         (options): Adjust.
8734         (process_args): Adjust.
8735         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
8736         <GCOV_TAG_BLOCKS>: Read flags.
8737         <GCOV_TAG_LINES>: Adjust.
8738         (read_count_file): Process SUMMARY tags.
8739         (solve_flow_graph): Set is_unconditional and clear is_call_site
8740         appropriately.
8741         (add_branch_counts): Adjust. Don't count unconditional branches.
8742         (add_line_counts): Deal with all-blocks mode, accumulate block
8743         coverage.
8744         (accumulate_line_counts): Adjust, generate local spanning tree for
8745         all-blocks mode.
8746         (output_lines): Adjust.
8747         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
8748         * doc/gcov.texi: Document.
8749
8750 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
8751
8752         * config/h8300/h8300.md: Organize peephole2's that transform
8753         (compare (reg:HI) (const_int)).
8754
8755 2003-03-31  Roger Sayle  <roger@eyesopen.com>
8756
8757         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
8758         (init_emit_once): Initialize dconstm2 and dconsthalf here.
8759         * real.h (dconstm2, dconsthalf): Add prototypes here.
8760         * real.c (real_sqrt): Use dconsthalf rather than local copy.
8761         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
8762         exp(x/2.0) remember to fold the division if possible.
8763         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
8764         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
8765         1.0/(x*x) and pow(x,0.5) as sqrt(x).
8766
8767 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
8768
8769         * config/h8300/h8300.md (a new peephole2): New.
8770
8771 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
8772
8773         * gcse.c (simple_mem): Return false for floating-point accesses
8774         if flag_float_store is true.
8775
8776 2003-03-30  Roger Sayle  <roger@eyesopen.com>
8777
8778         * gcse.c (gcse_constant_p): New function to identify constants
8779         suitable for constant propagation, including COMPARE with two
8780         integer constant arguments.
8781         (hash_scan_set): Use gcse_constant_p.
8782         (find_avail_set): Likewise.
8783         (cprop_insn): Likewise.
8784         (do_local_cprop): Likewise.
8785         (find_implicit_sets): Likewise.
8786         (find_bypass_set): Likewise.
8787
8788 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
8789
8790         * except.h: Remove definition of varray_type.
8791
8792 2003-03-30  Richard Henderson  <rth@redhat.com>
8793
8794         PR opt/10011, opt/10252:
8795         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
8796         before post-gcse cse pass.
8797
8798 2003-03-30  Roger Sayle  <roger@eyesopen.com>
8799
8800         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
8801
8802 2003-03-30  DJ Delorie  <dj@redhat.com>
8803
8804         * profile.c (instrument_edges): Make sure any newly created
8805         jump insns have correct jump label info.
8806
8807 2003-03-30  Richard Henderson  <rth@redhat.com>
8808
8809         * cfgbuild.c (make_edges): Use tablejump_p.
8810         * cfgcleanup.c (label_is_jump_target_p): Likewise.
8811         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
8812         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
8813         (try_redirect_by_replacing_jump): Likewise.
8814         (redirect_edge_and_branch): Likewise.
8815         * cse.c (fold_rtx): Likewise.
8816         * jump.c (delete_related_insns): Likewise.
8817         * rtlanal.c (get_jump_table_offset): Likewise.
8818         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
8819
8820 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8821
8822         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
8823         (STRICT2_WARN): Likewise.
8824
8825 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8826
8827         PR other/6955
8828         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
8829         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
8830
8831 2003-03-30  Richard Henderson  <rth@redhat.com>
8832
8833         PR c/10083
8834         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
8835         don't zero_extend const inputs.
8836
8837 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
8838
8839         * reload1.c (reload_cse_move2add): Fix a comment typo.
8840
8841 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
8842
8843         * config/h8300/h8300.md (a peephole2): Remove useless code.
8844
8845 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
8846
8847         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
8848         (*iorsi3_and_lshiftrt): Likewise.
8849         (*iorsi3_zero_extract): Likewise.
8850
8851 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
8852
8853         * config/h8300/h8300.md (*insv_si_8_8): New.
8854         (*insv_si_8_8_lshiftrt_8): Likewise.
8855         (a peephole2): Likewise.
8856
8857 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8858
8859         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
8860         Uniformly use bugfix instead of bug fix.
8861
8862 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8863
8864         PR doc/895
8865         * ONEWS: Remove those items that already appear in the EGCS
8866         release notes on our web pages.
8867
8868 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
8869
8870         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
8871         TARGET_HARD_FLOAT.  Reformat.
8872         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
8873
8874 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
8875
8876         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
8877         work on Solaris 2.5.1.
8878
8879 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
8880
8881         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
8882         section of h8300.md
8883         (*addsi3_and_nor_r_1): Likewise.
8884
8885 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
8886
8887         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
8888         set up before any trapping memory access if flag_non_call_exceptions.
8889
8890 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
8891
8892         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
8893
8894         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
8895
8896 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
8897
8898         * configure.in: Clarify comments.
8899         * configure: Regenerate.
8900
8901 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
8902
8903         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
8904         label even if pool empty when generating PIC.
8905         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
8906
8907 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
8908             Dhananjay Deshpande  <dhananjayd@kpit.com>
8909
8910         PR target/10205
8911         * config/h8300/h8300.c (h8300_initial_elimination_offset):
8912         Correct the offset computation when TARGET_NORMAL.
8913
8914 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
8915
8916         PR target/10067
8917         * config/sparc/sparc.md (jump pattern): Correct order
8918         when issuing the annuling marker.
8919
8920 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
8921
8922         PR c/8281
8923         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
8924         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
8925
8926 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
8927
8928         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
8929         globalize_label.
8930         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8931         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8932         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8933         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8934         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8935         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8936         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
8937
8938 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
8939
8940         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
8941         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
8942         notes after hoisting.
8943         (load_mems): Adjust replace_loop_mems call.
8944
8945 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
8946             Richard Henderson  <rth@redhat.com>
8947
8948         PR target/10114 and PR target/10084
8949         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
8950
8951 2003-03-27  Richard Henderson  <rth@redhat.com>
8952
8953         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
8954
8955 2003-03-27  Roger Sayle  <roger@eyesopen.com>
8956
8957         * fold-const.c (fold_inf_compare):  New function to simplify FP
8958         comparisons against +Infinity or -Infinity.
8959         (fold):  Optimize floating point comparisons against Infs and NaNs.
8960
8961 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
8962
8963         * libgcov.c: Provide only dummy functions if libc is not available.
8964
8965 2003-03-27  Richard Henderson  <rth@redhat.com>
8966
8967         * real.h (struct real_value): Add signalling.
8968         (EXP_BITS): Decrement.
8969         * real.c (get_canonical_qnan): Don't set MSB-1.
8970         (get_canonical_snan): Likewise.  Set signalling.
8971         (real_identical): Compare signalling.
8972         (round_for_format): Remove force-one-bit on code.
8973         (real_nan): Likewise.  Set signalling.
8974         (encode_ieee_single): Add force-one-bit code; honor signalling.
8975         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
8976         (decode_ieee_single): Set signalling.
8977         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
8978
8979 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
8980
8981         PR ada/9953
8982         * ada/Makefile.in (gnatlib configuration for HPUX): Split
8983         the general section for HPUX into specific sections for
8984         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
8985         11 case.
8986
8987 2003-03-27  Glen Nakamura  <glen@imodulo.com>
8988
8989         PR opt/10087
8990         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
8991         while incrementing giv.
8992         (record_biv): Check for duplicate biv locations and
8993         set (struct induction *) v->same if found.
8994
8995 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
8996
8997         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
8998         v0.9 API change: replace read of UNW_REG_HANDLER with
8999         unw_get_proc_info().
9000         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
9001         with unw_get_proc_info().
9002         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
9003         unw_get_proc_info().
9004
9005 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
9006
9007         * config/rs6000/8540.md: Use presence_set instead of absence_set.
9008
9009 2003-03-26  Richard Henderson  <rth@redhat.com>
9010
9011         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
9012
9013 2003-03-26  Roger Sayle  <roger@eyesopen.com>
9014
9015         PR bootstrap/10051, PR bootstrap/10169.
9016         * mips-tfile.c (init_file): Don't provide a static initializer.
9017         (initialize_init_file): Initialize the contents of init_file.
9018         (add_file): Call initialize_init_file if not already initialized.
9019
9020 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
9021
9022         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
9023         registers used for global asm variables.
9024         (s390_frame_info, s390_arg_frame_offset): Likewise.
9025         (s390_emit_prologue, s390_emit_epilogue): Likewise.
9026
9027 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
9028
9029         * config/rs6000/8540.md: New file.
9030
9031         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
9032         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
9033         reservations for imul.
9034
9035         * config/rs6000/rs6000.md: Include 8540.md.  Change
9036         delayed_compare onto mult_compare for insns generating
9037         multiplication.
9038         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
9039         New type attribute values.
9040
9041         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
9042         fpsimple instead of fp.
9043         (*divsf3_gpr): Use type vecfdiv instead of fp.
9044         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
9045         instead of vecfloat.
9046         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
9047         (spe_brinc): Use type brinc instead of veccomplex.
9048         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
9049         veccomplex.
9050         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
9051         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
9052         *movv2sf_internal): Define type attribute values for all
9053         alternatives.
9054         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
9055         of fpcompare.
9056         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
9057         instead of fpcompare.
9058
9059 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
9060
9061         * config/rs6000/power4.md: Allow delay between dispatch and
9062         function units for simple instructions.  Correct store units.
9063         Allow branch to occupy as many dispatch slots as necessary.
9064
9065 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
9066
9067         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
9068         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
9069         zero extend old to it.
9070         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
9071         operand.
9072
9073 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
9074
9075         PR target/7784
9076         * reload.c (find_reloads_address): Handle
9077         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
9078         all base registers.
9079
9080 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
9081
9082         PR other/10203
9083         * version.c: Reference the GCC web site in the URL.
9084
9085 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
9086
9087         * c-incpath.c (add_standard_paths): Add both "translated" and
9088         non-translated header paths.
9089
9090 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
9091
9092         * doc/install.texi (*-*-freebsd*): Update with known status.
9093
9094 2003-03-21  Jason Merrill  <jason@redhat.com>
9095
9096         PR optimization/10171
9097         * unroll.c (unroll_loop): Don't delete the jump at the end unless
9098         we also delete a jump at the beginning.
9099
9100 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
9101
9102         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
9103         contributor.
9104
9105 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
9106
9107         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
9108         constants are not expensive.
9109
9110 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
9111
9112         PR opt/10056
9113         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
9114         jump jumping to the next instruction.
9115         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
9116
9117 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9118
9119         * doc/passes.texi (Passes): Properly document that we do not
9120         perform jump2 any longer; remove command-line option -dJ.
9121
9122 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
9123
9124         PR optimization/8746
9125         * config/i386/i386.md (and promoting splitters): Disable HImode to
9126         SImode promoting when the sign bit matters and is not preserved, or
9127         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
9128         for size.
9129
9130 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
9131
9132         * config/h8300/h8300.md (a peephole2): Extend to support loads
9133         in QImode and HImode.
9134
9135 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
9136
9137         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
9138         _return_far
9139         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
9140         (MULTILIB_EXCEPTIONS): Likewise.
9141         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
9142         by calling some board support routine.
9143         ("call_value"): Likewise.
9144         ("*return_void"): Likewise for return.
9145         ("*return_16bit"): Likewise.
9146         ("*return_32bit"): Likewise.
9147         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
9148         for 68HC11 too.
9149         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
9150         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
9151         -mlong-calls for 68HC11.
9152         * config/m68hc11/larith.asm (declare_near): New macro.
9153         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
9154         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
9155         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
9156         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
9157         (__mulhi32): Likewise.
9158         (ret): Update macro for 68HC11.
9159         (__far_trampoline): Implement for 68HC11.
9160         (__call_a16, __call_a32, __return_void, __return_16): New support
9161         routines for 68HC11 memory bank switching calling support.
9162         (__return_32): Likewise.
9163
9164 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
9165
9166         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
9167
9168 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
9169
9170         * doc/install.texi (Testing): Mention test result links from build
9171         status pages.
9172
9173 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
9174
9175         * function.c (put_var_into_stack): Change bool parameter to int.
9176         (gen_mem_addressof): Likewise.
9177         * rtl.h (gen_mem_addressof): Likewise.
9178         * tree.h (put_var_into_stack): Likewise.
9179         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
9180         gen_mem_addressof or put_var_into_stack.
9181         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
9182         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
9183
9184 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
9185
9186         * config/h8300/h8300.md (a peephole2): New.
9187
9188 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
9189
9190         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
9191
9192 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9193
9194         * doc/contrib.texi (Contributors): Update Janis Johnson.
9195
9196 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
9197
9198         PR target/10072
9199         * combine.c (simplify_if_then_else): Check that the mode
9200         has MODE_INT class before applying the (OP Z (mult COND C2))
9201         transformation.
9202
9203 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
9204
9205         PR optimization/9414
9206         * config/sparc/sparc.md (widening peepholes): Use
9207         widen_memory_access instead of change_address.
9208
9209 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
9210
9211         PR c++/7086
9212         * c-typeck.c (c_mark_addressable): Adjust calls to
9213         put_var_into_stack.
9214         * expr.c (expand_expr): Likewise.
9215         * function.c (put_var_into_stack): Add rescan parameter.  Do not
9216         call fixup_var_refs when rescan is false.
9217         (gen_mem_addressof): Likewise.
9218         (assign_parms): Adjust calls to put_var_into_stack.
9219         (setjmp_protect): Likewise.
9220         (setjmp_protect_args): Likewise.
9221         * rtl.h (gen_mem_addressof): Change prototype.
9222         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
9223         * tree.h (put_var_into_stack): Change prototype.
9224
9225 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
9226
9227         PR middle-end/9967
9228         * builtins.c (expand_builtin_fputs): When optimizing for size,
9229         don't transform fputs into fwrite.
9230
9231 2003-03-23  Glen Nakamura <glen@imodulo.com>
9232
9233         PR c/8224
9234         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
9235         when signedness changes for division or modulus.
9236
9237 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
9238
9239         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
9240         globalize_label.
9241
9242 2003-03-23  Roger Sayle  <roger@eyesopen.com>
9243
9244         PR c/10178
9245         * stmt.c (expand_end_case_type): Check for overflow in range when
9246         determining whether to use a bit-test implementation.
9247
9248 2003-03-23  Richard Henderson  <rth@redhat.com>
9249
9250         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
9251         before flow2.
9252         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
9253
9254 2003-03-23  Richard Henderson  <rth@redhat.com>
9255
9256         PR opt/10116
9257         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
9258         from then_bb or else_bb after flow2.
9259
9260 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
9261
9262         * configure.in: Check whether it is necessary to link against
9263         libm to use ldexp.
9264         * configure: Regenerate.
9265         * Makefile.in: Add LDEXP_LIB substitution variable.
9266
9267 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
9268
9269         * config/h8300/h8300.md: Fix comment typos.
9270
9271 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9272
9273         * pa.c (output_cbranch): Fix typo in comment.
9274
9275 2003-03-22  Richard Henderson <rth@redhat.com>
9276
9277         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
9278         after reload.
9279
9280 2003-03-22  DJ Delorie  <dj at redhat dot com>,
9281         Bruce Korb  <bkorb at gnu dot org>
9282
9283         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
9284         buggy Solaris 2.6 mutex/cond initializers.
9285         (solaris_mutex_init): Rename to solaris_mutex_init_2.
9286         * fixinc/fixincl.x: Regenerate.
9287         * fixinc/tests/base/pthread.h: Update.
9288         * fixinc/fixincl.c(initialize): be explicit about the default case
9289         and indicate verbose level when being very, very verbose.
9290         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
9291
9292 2003-03-22  Andreas Jaeger  <aj@suse.de>
9293
9294         * config/i386/i386.c (ix86_init_machine_status): Return value.
9295
9296 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9297
9298         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
9299         conditional branch to the following instruction.  Use next_real_insn
9300         instead of next_active_insn.
9301         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
9302         instead of next_active_insn.
9303
9304 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
9305
9306         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
9307         instead of 'm' constraint in forced-split alternatives.
9308         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
9309         VALIDATE_ADDRESS parameter to operand_subword.
9310
9311 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
9312
9313         * config/h8300/h8300.c (notice_update_cc): Correctly handle
9314         the case where the set destination is STRICT_LOW_PART.
9315
9316 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
9317
9318         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
9319         c30 instead of a c40 processor.
9320
9321 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
9322
9323         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
9324
9325 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
9326
9327         * c-common.c: Include intl.h.
9328         (shadow_warning): Rewrite to allow better diagnostic translations.
9329         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
9330         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
9331         use it throughout.
9332         * Makefile.in (c-common.o): Add intl.h.
9333
9334 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
9335
9336         * config.gcc: Remove 'float_format'.
9337
9338         * fixproto: Define NULL and size_t in generated stdlib.h and
9339         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
9340         Rearrange file generation loop for readability.  Generate time.h,
9341         string.h if missing.
9342         * tsystem.h: Include <string.h>, <time.h> unconditionally.
9343         * config.gcc: Blow away POSIX defines.
9344
9345 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
9346
9347         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
9348
9349 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
9350
9351         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
9352         writing .interrupt command.
9353         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
9354         if it's a far or near function.
9355         ("call_value"): Likewise.
9356         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
9357         near attributes.
9358         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
9359         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
9360         (m68hc11_initial_elimination_offset): Set current_function_far
9361         according to attributes.
9362         (expand_prologue): Likewise.
9363         (trap_handler_symbol): New global to keep track of trap handlers.
9364         (m68hc11_encode_section_info): Mark symbol as far if needed; set
9365         trap symbol.
9366         (m68hc11_is_far_symbol): New function.
9367         (m68hc11_is_trap_symbol): New function.
9368         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
9369         (m68hc11_is_trap_symbol): Declare.
9370
9371 2003-03-21  Jan Hubicka  <jh@suse.cz>
9372
9373         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
9374         only when amount of saved regs changed.
9375         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
9376         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
9377
9378 2003-03-21  Jan Hubicka  <jh@suse.cz>
9379
9380         PR inline-asm/7916
9381         * function.c (instantiate_virtual_regs_lossage): New function.
9382         (instantiate_virtual_regs_1): Use it.
9383         (instantiate_virtual_regs): Do not continue in substition when insn has
9384         been deleted.
9385
9386 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
9387
9388         * combine.c (make_field_assignment): Fix a warning.
9389
9390 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
9391
9392         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
9393
9394 2003-03-21  Dale Johannesen  <dalej@apple.com>
9395
9396         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
9397         priority for R2 on Darwin.
9398         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
9399
9400 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
9401
9402         * combine.c (make_field_assignment): Remove unnecessary AND
9403         when storing into zero_extract.
9404
9405 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
9406
9407         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
9408         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
9409         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
9410         in comment.
9411
9412 2003-03-21  DJ Delorie  <dj@redhat.com>
9413
9414         * optabs.c (init_integral_libfuncs): Make sure we init at least up
9415         to "long long" size words.
9416
9417 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
9418
9419         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
9420         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
9421         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
9422
9423 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9424
9425         PR doc-bug/9813
9426         * doc/extend.texi: Move misplaced paragraph about underscores in
9427         variables in macros.
9428
9429 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
9430             Richard Henderson  <rth@redhat.com>
9431
9432         PR optimization/8366
9433         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
9434         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
9435         PIC+SYMBOLIC_CONST in other modes than Pmode.
9436         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
9437         the form PIC+SYMBOLIC_CONST as mode dependent.
9438
9439 2003-03-21  DJ Delorie  <dj@redhat.com>
9440
9441         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
9442         sure we always emit at least one insn.
9443
9444 2003-03-21  Christopher Faylor  <cgf@redhat.com>
9445
9446         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
9447         stub t-cygming. Use common target header cygming.h. Add extra
9448         c_target_obj and cxx_target_obj file. Default cygwin to posix
9449         threading. Enforce i386 as float format.
9450         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
9451         Remove cygwin.h as target header. Use common target header
9452         cygming.h  Enforce i386 as float format. Correct typo.
9453         * config/i386/cygming.h: New file, containing definitions
9454         common to mingw32 and cygwin.
9455         * config/i386/cygwin.h: Remove definitions common to cygwin and
9456         mingw.  Simplify special spec logic.  Define "wrappers" around
9457         certain include path defines to accommodate -mno-cygwin.
9458         Remove some #if 0'ed code.
9459         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
9460         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
9461         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
9462         * config/i386/mingw32.h: Remove definitions common to cygwin and
9463         mingw.
9464         (EXTRA_OS_CPP_BUILTINS): Adjust.
9465         (TARGET_VERSION): Define.
9466         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
9467         mingw32.h definitions.
9468         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
9469         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
9470         Add compilation rules for cygwin1.o cygwin2.o.
9471         * config/i386/cygwin1.c: New file.
9472         * config/i386/cygwin2.c: New file.
9473         * config/i386/t-cygming: New makefile stub.
9474
9475 2003-03-20  Richard Henderson  <rth@redhat.com>
9476
9477         * fold-const.c (extract_muldiv_1): Revert changing order of
9478         operands in case MULT_EXPR of 2003-02-16 patch.
9479
9480 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
9481         Merge changes from new-regalloc-branch
9482
9483         From Michael Matz  <matz@suse.de>
9484         * df.c (df_ref_record_1): Move init of loc to safe point.
9485         Only recurse on interesting things in parallels.
9486         Handle CLASS_CANNOT_CHANGE_MODE smarter.
9487         (df_uses_record): Ditto.
9488
9489         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
9490         it's already okay to use memory operands in (IE doesn't require
9491         adding another insn or anything).
9492
9493 2003-03-20  Richard Henderson  <rth@redhat.com>
9494
9495         PR middle-end/6348
9496         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
9497         different from word_mode.
9498
9499 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
9500
9501         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
9502         source operand to those that can be extracted with bld.
9503
9504 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
9505
9506         PR 10066
9507         * arm.md (UNSPEC_PIC_BASE): New constant.
9508         (pic_add_dot_plus_four): Wrap with unspec.
9509         (pic_add_dot_plus_eight): Likewise.
9510
9511 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
9512
9513         * config/h8300/h8300.md (*insv_si_1_n): New.
9514         (*insv_si_1_n_lshiftrt): Likewise.
9515
9516 2003-03-20  Roger Sayle  <roger@eyesopen.com>
9517
9518         * fold-const.c (fold_mathfn_compare): New function to simplify
9519         comparisons against built-in math functions.  Fold comparisons
9520         of sqrt against constants.
9521         (fold): Call fold_mathfn_compare when appropriate.
9522
9523 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
9524
9525         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
9526         information.
9527
9528 2003-03-20  Per Bothner  <pbothner@apple.com>
9529
9530         Various cleanups to help compile server.
9531
9532         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
9533         and pass that to _cpp_init_hashtable.
9534         (cpp_read_main_file):  Drop hash_table* argument; don't call
9535         _cpp_init_hashtable.
9536         * cpplib.h:  Update declarations to match.
9537         * c-opts.c (c_common_init_options):  Pass ident_hash to
9538         cpp_create_reader.
9539         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
9540         * fix-header.c (read_scan_file):  Likewise pass NULL table to
9541         cpp_create_reader rather than cpp_read_main_file.
9542
9543         * cppfiles.c (cpp_rename_file):  Generalized and renamed
9544         to cpp_change_file.
9545         * cpplib.h:  Update declaration to match.
9546         * c-opts.c (push_command_line_line, finish_options):  Change
9547         cpp_rename_file calls to cpp_change_file.
9548
9549         * line-map.c (add_line_map):  Allow leaving the outermost file.
9550         Allowing entering an outermost-file after the initial time.
9551
9552         * toplev.c (pop_srcloc):  Allow popping from initial file.
9553
9554 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
9555
9556         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
9557
9558 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
9559
9560         * config/h8300/h8300.md (a peephole2): New.
9561
9562 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
9563
9564         * config/h8300/h8300.md (*addsi3_and_r_1): New.
9565         (*addsi3_and_not_r_1): Likewise.
9566
9567 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
9568
9569         * Makefile.in (STRICT2_WARN): Add @WERROR@.
9570         (GCC_WARN_CFLAGS): Remove $(WERROR).
9571         (fixinc.sh-warn): New.
9572         * ada/Make-lang.in (ada-warn): Add $(WERROR).
9573         * cp/Make-lang.in (cp-warn): Add $(WERROR).
9574         * f/Make-lang.in (f-warn): Add $(WERROR).
9575         * java/Make-lang.in (java-warn): Add $(WERROR).
9576         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
9577
9578 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
9579
9580         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
9581         langhooks-def.h (lhd_tree_dump_dump_tree),
9582         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
9583         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
9584         true and false in return statements.
9585
9586 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
9587
9588         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
9589         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
9590         DWARF_INITIAL_LENGTH_SIZE.
9591         (output_compilation_unit_header, output_pubnames, output_aranges)
9592         (output_line_info): Output 0xffffffff escape value for 64-bit
9593         DWARF extension.
9594         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
9595
9596 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
9597
9598         * config/s390/s390.c (s390_preferred_reload_class): Do not
9599         force constants to the pool unless necessary.
9600         (s390_decompose_address): Prefer to use pointer as base,
9601         not index register.
9602         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
9603         Q alternative.
9604         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
9605         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
9606         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
9607         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
9608         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
9609
9610 2003-03-19  Jan Hubicka  <jh@suse.cz>
9611
9612         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
9613         * i386.c (use_fast_prologue_epilogue): Remove.
9614         (ix86_frame): New field save_regs-using_mov;
9615         (ix86_compute_frame_layout):  Decide on fast prologues;
9616         allocate saved registers in red zone.
9617         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
9618
9619 2003-03-19  Nick Clifton  <nickc@redhat.com>
9620
9621         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
9622
9623 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9624
9625         PR 10062
9626         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
9627         * pa-protos.h (output_lbranch): New prototype.
9628         * pa.c (compute_frame_size): Change size of the frame marker on the
9629         64-bit ports to 48 bytes.
9630         (pa_output_function_prologue): Document why SAVE_SP is set.
9631         (hppa_expand_prologue): Save previous stack pointer into frame marker
9632         on targets which use the hpux unwind library.
9633         (output_cbranch): Use output_lbranch.
9634         (output_lbranch): New function to output long unconditional branches.
9635         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
9636         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
9637         64-bit ports.
9638         * pa.md (jump): Use output_lbranch.
9639         (allocate_stack): New expander for dynamic stack allocation.
9640
9641 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
9642
9643         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
9644         when debugging on XCOFF targets.  Delete "abi" temp.
9645
9646         PR target/10073
9647         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
9648
9649 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
9650
9651         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
9652         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
9653         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
9654
9655         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
9656         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
9657         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
9658
9659 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
9660
9661         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
9662         the result of machopic_function_base_name.
9663         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
9664         string rather than a static array.
9665
9666         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
9667
9668         * gengtype.c: Include rtl.h.
9669         (enum rtx_code): Don't define.
9670         (rtx_format): Make declaration match rtl.h.
9671         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
9672         users.
9673         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
9674         * Makefile.in (gengtype.o): Update dependencies.
9675
9676 2003-03-18  Andreas Schwab  <schwab@suse.de>
9677
9678         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
9679         martin@blom.org.
9680
9681 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
9682
9683         * function.c (next_block_index): Mark with GTY.
9684
9685         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
9686
9687 2003-03-18  Richard Henderson  <rth@redhat.com>
9688
9689         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
9690         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
9691         until after reload.
9692
9693 2003-03-18  Richard Henderson  <rth@redhat.com>
9694
9695         * builtins.c (expand_builtin_unop): New target_mode operand;
9696         use it to convert the result to the correct mode.
9697         (expand_builtin): Update all callers.
9698
9699 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
9700
9701         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
9702
9703 2003-03-18  Jan Hubicka  <jh@suse.cz>
9704
9705         * i386.md:  Fix previous commit that mistakely applied the patch
9706         twice.
9707
9708         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
9709         canonicalized.
9710         (memrefs_conflict_p): Likewise.
9711         (addr_side_effect_eval): Canonicalize the constructed address.
9712
9713 2003-03-18  Jan Hubicka  <jh@suse.cz>
9714
9715         * i386.md (cvtts?2si peep2): New.
9716
9717 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
9718
9719         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
9720
9721 2003-03-18  Andreas Schwab  <schwab@suse.de>
9722
9723         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
9724         for format.
9725
9726 2003-03-17  Jason Merrill  <jason@redhat.com>
9727
9728         PR c++/10091
9729         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
9730         an unaligned member of TREE_ADDRESSABLE type.
9731
9732 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
9733
9734         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
9735         (TARGET_PROFILE_KERNEL): Define.
9736         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
9737         (PROFILE_BEFORE_PROLOGUE): Don't define.
9738         (PROFILE_KERNEL): Remove hacks.
9739         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
9740         (rs6000_stack_info): No need to save lr if just for profiling when
9741         TARGET_PROFILE_KERNEL.
9742         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
9743         (output_function_profiler): Localize label generation.  Emit code
9744         for kernel profiling.
9745
9746 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
9747
9748         * config/h8300/h8300-protos.h: Add a prototype for
9749         byte_accesses_mergeable_p.
9750         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
9751         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
9752         (a splitter): Likewise.
9753         (*iorsi3_ashift_16_ashift_24): Likewise.
9754         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
9755
9756 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9757
9758         * dwarf2asm.h: Delete obsolete comment.
9759         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
9760         dw2_asm_output_pcrel, dw2_asm_output_addr,
9761         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
9762         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
9763         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
9764         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
9765
9766 2003-03-17  Zack Weinberg <zack@codesourcery.com>
9767
9768         * c-tree.h (struct lang_identifier): Remove error_locus field.
9769         (IDENTIFIER_ERROR_LOCUS): Kill.
9770         (record_function_scope_shadow): New prototype.
9771         * c-typeck.c (build_external_ref): Don't complain if
9772         decl is error_mark_node.  When not at file scope, bind the
9773         decl's local value to error_mark_node to suppress further
9774         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
9775
9776         * c-decl.c (get_function_binding_level): New static function.
9777         (record_function_scope_shadow): New exported function.
9778         (c_make_fname_decl): Use get_function_binding_level.
9779
9780 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
9781
9782         * stmt.c (tail_recursion_args): Call promote_mode to set
9783         unsignedp flag correctly before calling convert_move.
9784
9785 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9786
9787         * loop-unroll.c (decide_peel_completely,
9788         decide_unroll_constant_iterations, decide_unroll_stupid,
9789         decide_unroll_runtime_iterations, decide_peel_simple): Set
9790         loop->has_desc.
9791
9792 2003-03-17  Jan Hubicka  <jh@suse.cz>
9793
9794         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
9795
9796 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
9797
9798         * function.c (assign_parms): For a struct value address passed as
9799         first argument, delay the function's result RTL setup code until
9800         after the emission of parameter conversions.
9801
9802 2003-03-17  Dave Love  <fx@gnu.org>
9803             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9804
9805         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
9806         __arch64__ to match Compaq cc.
9807
9808 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
9809
9810         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
9811         (c_common_init): Set EBCDIC in cpp options.
9812         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
9813         not conditional compilation.
9814         * cpplib.h (struct cpp_options): New entry EBCDIC.
9815
9816 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
9817
9818         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
9819
9820 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9821
9822         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
9823         argument to 0 for redirect_jump.
9824
9825 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
9826
9827         PR c++/8805
9828         * except.c (eh_region_u_cleanup): Add prev_try.
9829         (expand_eh_region_end_cleanup): Set it.
9830         (reachable_handlers): Use it to skip over cleanup blocks.
9831
9832 2003-03-17  Andreas Jaeger  <aj@suse.de>
9833
9834         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
9835
9836 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
9837
9838         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
9839         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
9840         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
9841         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
9842
9843 2003-03-16  Richard Henderson  <rth@redhat.com>
9844
9845         * simplify-rtx (simplify_binary_operation): Don't abort for
9846         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
9847
9848 2003-03-16  Richard Henderson  <rth@redhat.com>
9849
9850         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
9851         optimize_size as well.
9852
9853 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
9854
9855         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
9856         for D register to specify the low part of it, aka B.
9857         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
9858         the register if we are loading 1 or -1 to it; avoid using temp
9859         register when moving X/Y to Y/X.
9860         (m68hc11_gen_movqi): Likewise.
9861         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
9862
9863 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
9864
9865         PR optimization/9016
9866         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
9867         into the constant pool.
9868
9869 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
9870
9871         PR target/9164
9872         * tree.c (get_narrower): For extensions with unchanged bit number,
9873         return the unsignedness of the outer mode.
9874
9875 2003-03-16  Roger Sayle  <roger@eyesopen.com>
9876
9877         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
9878         to avoid "may be used uninitialized" warning on ia64-hpux.
9879         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
9880
9881 2003-03-16  Andreas Jaeger  <aj@suse.de>
9882
9883         * configure.in: Improve check for memcheck.h.
9884         * configure: Regenerated.
9885
9886 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
9887
9888         * doc/cppopts.texi: Remove documentation of -A-.
9889
9890 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
9891
9892         * doc/libgcc.texi: Remove @tie.
9893
9894 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
9895
9896         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
9897         (rtx_pair): Added new element update_label_nuses, renamed to
9898         replace_label_data.
9899         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
9900         replace_label_data instead of rtx_pair.
9901         * loop.c (load_mems): Likewise.
9902         * rtlanal.c (replace_label): Replace label in pool constants and in
9903         INSN_LIST (in REG_LABEL note).
9904         (subrtx_p): Renamed to rtx_referenced_p.
9905         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
9906         LABEL_REF with CODE_LABEL, traverse constants from pool.
9907
9908 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
9909             Zack Weinberg  <zack@codesourcery.com>
9910
9911         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
9912         * doc/libgcc.texi: New file.
9913         * doc/interface.texi: Delete paragraph about libgcc interface.
9914         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
9915
9916 2003-03-15  Jason Merrill  <jason@redhat.com>
9917
9918         PR debug/9039
9919         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
9920
9921         PR debug/6387
9922         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
9923         function DIEs at toplevel.
9924         (decls_for_scope): At -g1, don't descend into subblocks.
9925
9926 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
9927
9928         * varasm.c (struct rtx_const): Change type of un.addr member
9929         to struct holding an additional 'symbol' member.
9930         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
9931         with equal string addresses as equal.
9932         (simplify_subtraction): Adapt to struct rtx_const change.
9933
9934 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
9935
9936         * fix-header.c (read_scan_file): Read main file before handling -D.
9937
9938 2003-03-15  Roger Sayle  <roger@eyesopen.com>
9939
9940         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
9941         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
9942         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
9943         (find_sub_basic_blocks): Likewise.
9944         * cgraphunit.c (cgraph_expand_functions): Likewise.
9945         * dwarf2out.c (prune_unused_types): Likewise.
9946         * expr.c (store_field): Likewise.
9947         * genextract.c (print_path): Likewise.
9948         * haifa-sched.c (schedule_insn): Likewise.
9949         * lcm.c (compute_antinout_edge): Likewise.
9950         * loop-unroll.c (decide_peel_once_rolling): Likewise.
9951         * ra-colorize.c (ra_colorize_free_all): Likewise.
9952         * ra-debug.c (dump_igraph): Likewise.
9953         (debug_hard_reg_set): Likewise.
9954         * reg-stack.c (reg_to_stack): Likewise.
9955         * rtlanal.c (refers_to_regno_p): Likewise.
9956         * tracer.c (layout_superblocks): Likewise.
9957
9958 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
9959
9960         * fix-header.c (read_scan_file): Fix thinko.
9961
9962 2003-03-15  Glen Nakamura  <glen@imodulo.com>
9963
9964         * reload1.c (choose_reload_regs): Use && instead of ||
9965         with REG_CANNOT_CHANGE_MODE_P condition.
9966
9967 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
9968
9969         * Makefile.in: Update.
9970         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
9971         * c-lex.c (init_c_lex): Register builtins hook is dead.
9972         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
9973         (c_common_decode_option): Don't call cpp_handle_option.
9974         Handle -A, -D and -U.
9975         (handle_deferred_opts): Simplify.
9976         (finish_options): Define builtins and command line macros.
9977         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
9978         * cppinit.c: Don't include intl.h.
9979         (init_builtins): Rename cpp_init_builtins.  No hook to call.
9980         (init_library): Don't need to sort options.
9981         (cpp_create_reader): Don't set pending.
9982         (cpp_destroy): Don't free pending.
9983         (struct pending_option, cl_directive_handler, struct cpp_pending,
9984         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
9985         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
9986         cl_options, cpp_handle_option): Remove.
9987         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
9988         cpp_finish_options): Remove.
9989         (cpp_init_builtins): New.
9990         * fix-header.c (read_scan_file): Update to handle -D.  Fix
9991         handling of -I.  Replace call to cpp_finish_options.
9992
9993 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9994
9995         PR optimization/9387
9996         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
9997         for conditional returns.
9998
9999 2003-03-14  Jason Merrill  <jason@redhat.com>
10000
10001         PR optimization/6871
10002         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
10003
10004 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
10005
10006         * c-opts.c (finish_options): New.
10007         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
10008         (missing_arg): Handle OPT_include and OPT_imacros.
10009         (c_common_init, c_common_parse_file): Use finish_options.
10010         (handle_deferred_opts): Update.
10011         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
10012         (cpp_finish_options): Don't handle -imacros here.
10013         (no_fil): Remove.
10014         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
10015
10016 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
10017
10018         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
10019         rs6000_maybe_dead if !fromprolog.
10020
10021 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
10022
10023         * Makefile.in: Update.
10024         * c-common.h (fe_file_change, pp_file_change): New.
10025         * c-lex.c (init_c_lex): Don't set cb_file_change.
10026         (c_common_parse_file): Move to c-opts.c.
10027         (cb_file_change): Rename fe_file_change.
10028         * c-opts.c: Include debug.h.
10029         (warn_unused_macros, include_cursor): New.
10030         (push_command_line_include, cb_file_change): New.
10031         (COMMAND_LINE_OPTIONS): Handle -include.
10032         (c_common_decode_option): Use local warn_unused_macros.
10033         Handle OPT_include.
10034         (c_common_post_options): Set file change callback.
10035         (handle_deferred_opts): Skip -include.  Don't free the array.
10036         (c_common_init): Call cpp_finish_options here, and push an
10037         initial -include file.
10038         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
10039         (preprocess_file): Don't call cpp_finish_options.
10040         (init_pp_output): Don't set the file change callback.
10041         (pp_file_change): Return if no line commands or no output.
10042         * cpphash.h (next_include_file, first_unused_line): Remove.
10043         * cppinit.c (include_head, include_tail): Remove.
10044         (cpp_destroy): Don't free -include chain.
10045         (cpp_finish_options): Don't handle -include, or worry about
10046         -Wunused-macros.
10047         (_cpp_maybe_push_include_file): Remove.
10048         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
10049         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
10050         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
10051         Used flag is set based upon the state of the warn_unused_macros
10052         flag, and so use of first_unused_line is unnecessary.
10053
10054 2003-03-13  Jan Hubicka  <jh@suse.cz>
10055
10056         * cselib.c (clear_table): Do not take argument; always clear just
10057         used slots.
10058         (cselib_process_insn):  Update call of clear_table
10059         (cselib_init): Do not call clear_table.
10060         (cselib_finish): Clear table.
10061
10062         * cse.c (count_reg_usage): Do not check side_effects_p.
10063         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
10064         like noop.
10065         (find_reg_equal_equiv_note): Do not use find_reg_note.
10066
10067 2003-03-14  Richard Henderson  <rth@redhat.com>
10068
10069         PR target/9700
10070         * config/alpha/alpha.c (alpha_va_start): Account for
10071         current_function_pretend_args_size in the AP offset.
10072
10073         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
10074         (INITIAL_ELIMINATION_OFFSET): Move out of line.
10075         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
10076         (alpha_initial_elimination_offset) New.
10077         * config/alpha/alpha-protos.h: Update.
10078
10079 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
10080
10081         * stmt.c (expand_start_case): Call emit_queue ().
10082
10083 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
10084             Alexandre Oliva  <aoliva@redhat.com>
10085
10086         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
10087         words in new abis.
10088
10089 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
10090
10091         PR optimization/8396
10092         * tree-inline.c (initialize_inlined_parameters): Make sure the value
10093         of read-only constant arguments is passed with the right type.
10094
10095 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
10096
10097         * doc/extend.texi (Function Names): Make the example compilable.
10098
10099 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
10100
10101         * config/rs6000/rs6000.c (processor_target_table): Really allow
10102         GP optional instructions on Power4.
10103
10104 2003-03-13  Roger Sayle  <roger@eyesopen.com>
10105
10106         * calls.c (flags_from_decl_or_type): Factor and remove redundant
10107         conditional tests.
10108
10109 2003-03-13  Mike Stump  <mrs@apple.com>
10110
10111         * ggc-page.c (struct page_entry): Remove varray.h header.
10112         Add index_by_depth field.
10113         Remove save_in_use_p field.
10114         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
10115         by_depth_max, by_depth, and save_in_use fields.
10116         (INITIAL_PTE_COUNT): Add.
10117         (save_in_use_p_i): Add.
10118         (save_in_use_p): Add.
10119         (adjust_depth): Add.
10120         (move_ptes_to_front): Add.
10121         (push_depth): Add.
10122         (push_by_depth): Add.
10123         (prefetch): Add.
10124         (free_page): Add support for and use faster data structures.
10125         (ggc_alloc): Likewise.
10126         (init_ggc): Likewise.
10127         (ggc_recalculate_in_use_p): Likewise.
10128         (ggc_pop_context): Likewise.
10129         (clear_marks): Likewise.
10130         (ggc_pch_read): Likewise.
10131         * Makefile.in (ggc-page.o): Remove varray.h.
10132
10133 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
10134
10135         * ChangeLog: Rotated last year's entries to...
10136         * ChangeLog.8: New.
10137
10138         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
10139         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
10140         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
10141         config/ia64/ia64-protos.h, config/ia64/ia64.c,
10142         config/ia64/ia64.h, config/ia64/ia64.md,
10143         config/ia64/itanium1.md, config/ia64/itanium2.md,
10144         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
10145         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
10146
10147 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
10148
10149         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
10150         Differentiate endianness.
10151         (s6000_override_options): Use cpu type instead of TARGET_SPE.
10152
10153 2003-03-13  Nick Clifton  <nickc@redhat.com>
10154
10155         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
10156         LDM instructions with writeback enabled.
10157         (output_return_instruction): Likewise.
10158
10159         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
10160         (CALL_USED_REGISTERS): Remove definition.
10161         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
10162
10163 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
10164
10165         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
10166         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
10167         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
10168         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
10169         (rs6000_legitimize_address): Formatting.
10170         (rs6000_emit_move): Likewise.
10171         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
10172         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
10173         (rs6000_elf_select_section): Comment reason for shlib being
10174         set for ABI_AIX.
10175         (rs6000_elf_unique_section): Likewise.
10176         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
10177         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
10178         as well as flag_pic.
10179         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
10180         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
10181         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
10182
10183 2003-03-13  Richard Henderson  <rth@redhat.com>
10184
10185         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
10186
10187         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
10188         (ia64_gp_save_reg): Remove.
10189         (struct ia64_frame_info): Move to the beginning of the file;
10190         add reg_save_gp.
10191         (ia64_expand_call): Rearrange for new call patterns.
10192         (ia64_reload_gp): New.
10193         (ia64_split_call): New.
10194         (ia64_compute_frame_size): Allocate reg_save_gp.
10195         (ia64_expand_prologue): Save reg_save_gp.
10196         (ia64_expand_epilogue): Don't restore gp.
10197         (ia64_hard_regno_rename_ok): Remove R4 hack.
10198         (ia64_function_ok_for_sibcall): New.
10199         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
10200         call try_split on sibcall pattern.
10201         * config/ia64/ia64-protos.h: Update.
10202         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
10203         Rename from nopic versions.  Confiscate 2nd argument to call as
10204         a marker.
10205         (call_pic, call_value_pic, sibcall_pic): Remove.
10206         (call_gp, call_value_gp, sibcall_gp): New.
10207         (builtin_setjmp_setup): Remove.
10208         (builtin_setjmp_receiver): Call ia64_reload_gp.
10209
10210 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10211
10212         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
10213         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
10214         "GNU CC" with "GCC".
10215
10216         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
10217         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10218         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
10219         GCC, not GNU CC.
10220
10221         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
10222         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
10223
10224         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
10225         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
10226         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
10227         "GNU CC" with "GCC".
10228
10229         * config/v850/lib1funcs.asm, config/v850/rtems.h,
10230         config/v850/v850-c.c, config/v850/v850-protos.h,
10231         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
10232         GCC, not GNU CC.
10233
10234         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
10235         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
10236         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
10237         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
10238         GNU CC.
10239
10240 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
10241
10242         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
10243
10244 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10245
10246         * fixinc/fixinc.interix: Remove dead code (most of it).
10247         * fixinc/fixinc.dgux: Remove.
10248
10249         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
10250         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
10251
10252 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10253
10254         * pa.c (pa_init_builtins): Fix warning.
10255
10256 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
10257
10258         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
10259         (ASM_OUTPUT_XDATA_SHORT): Remove.
10260         (ASM_OUTPUT_XDATA_INT): Remove.
10261         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
10262         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
10263         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
10264         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
10265
10266 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
10267
10268         PR c++/7050
10269         * expr.c (store_expr): Don't attempt to store void-typed trees,
10270         just evaluate them for side effects.
10271
10272 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
10273
10274         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
10275         * cppinit.c (push_include): Move with changes to cppfiles.c.
10276         (cpp_read_main_file): Mark named operators here...
10277         (cpp_finish_options): ...not here.  Update.
10278         (_cpp_maybe_push_include_file): Update.
10279         * cpplib.h (cpp_push_include, cpp_rename_file): New.
10280
10281 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10282
10283         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
10284         _gcc_COMPUTE_GAS_VERSION.
10285         * configure.in: Use them.
10286         * configure: Regenerate.
10287
10288 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
10289
10290         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
10291         to detect carry.
10292         (subdi3): Reorder emitted instructions.
10293
10294 2003-03-12  Andreas Jaeger  <aj@suse.de>
10295
10296         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
10297         NETBSD_OS_CPP_BUILTINS_LP64.
10298
10299 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10300
10301         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
10302         Rearrange.  Reorganize.
10303         * configure.in: Rearrange.
10304         * configure: Regenerate.
10305
10306 2003-03-12  Andreas Jaeger  <aj@suse.de>
10307
10308         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
10309         LP64 targets.
10310
10311         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
10312         _LP64.
10313
10314         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
10315         _LP64 macros here.
10316         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
10317
10318         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
10319         NETBSD_OS_CPP_BUILTINS_LP64.
10320         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
10321         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
10322
10323         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
10324
10325 2003-03-12  Jan Hubicka  <jh@suse.cz>
10326
10327         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
10328
10329 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
10330
10331         Fix PR target/9797 and PR c/9853.
10332         * stmt.c (expand_decl_init): Call push_temp_slots () and
10333         pop_temp_slots ().
10334
10335 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
10336
10337         * sh.c: Include basic-block.h.
10338         (sh_output_mi_thunk, emit_load_ptr): New functions.
10339         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
10340
10341 2003-03-12  Nick Clifton  <nickc@redhat.com>
10342
10343         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
10344         (CALL_USED_REGISTERS): Likewise.
10345         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
10346         describing how this value is calculated.
10347
10348 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
10349
10350         * configure.in (rlim_t): Define to long if no valid definition
10351         found in sys/resource.h.
10352         * config.in, configure: Regenerate.
10353
10354 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
10355
10356         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
10357         TARGET_OS_CPP_BUILTINS.
10358         * config/mcore/mcore-pe.h: Similarly.
10359         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
10360         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
10361
10362 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
10363
10364         PR c/9928
10365         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
10366         only if it is a VAR_DECL.
10367
10368 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
10369
10370         PR optimization/9888
10371         * config/i386/i386.md (jcc_1): Fix range.
10372         (jcc_2): Likewise.
10373         (jump): LIkewise.
10374         (doloop_end_internal): Likewise.
10375
10376 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
10377
10378         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
10379         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
10380         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
10381         DLL_IMPORT_EXPORT_PREFIX and "i."
10382         (i386_pe_dllexport_name_p): Here.
10383         (i386_pe_dllimport_name_p): Here.
10384         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
10385         not 9 chars when getting identifier name.
10386         (i386_pe_mark_dllimport): Here.
10387         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
10388         not 9 chars when getting identifier name. Correct comment.
10389         (i386_pe_strip_name_encoding): Here. Add comments for different
10390         cases.
10391         (gen_fastcall_suffix): Break down xmalloc() argument to
10392         components.
10393         (gen_stdcall_suffix): Likewise.
10394         Update copyright year.
10395
10396 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
10397
10398         PR optimization/9888
10399         * config/i386/i386.md (movsi_1): Remove special alternatives
10400         for %eax register.
10401         (movsi_1_nointernunit): Likewise.
10402         (movhi_1): Likewise.
10403         * config/i386/i386.c (memory_address_length): Do not use
10404         short displacement when there is no base.
10405         (ix86_attr_length_address_default): Handle LEA instructions.
10406
10407 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
10408
10409         * c-cppbuiltin.c (builtin_define_std): Make non-static.
10410
10411 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
10412
10413         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
10414         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
10415         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
10416         * config/freebsd.h (CPP_PREDEFINES): Remove.
10417         (TARGET_OS_CPP_BUILTINS): New.
10418         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
10419         instead of TARGET_OS_CPP_BUILTINS.
10420         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
10421
10422 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
10423
10424         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
10425
10426 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
10427
10428         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
10429         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
10430
10431         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
10432
10433 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
10434
10435         * toplev.c (independent_decode_option): Return success for --help,
10436         --target-help and --version.
10437
10438 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
10439
10440         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
10441         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
10442         specified.
10443         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
10444         DRIVER_SELF_SPECS.
10445         (LINK_SPEC): Let endian options affect the linker emulation name.
10446
10447 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
10448
10449         * sh.md (reload_inqi): Fix mode for source in second set.
10450
10451 2003-03-11  Jan Hubicka  <jh@suse.cz>
10452
10453         * cselib.c (cselib_invalidate_mem_1): Move too ...
10454         (cselib_invalidate_mem): ... here; use new list
10455         (dummy_val, first_containing_mem): New static variables.
10456         (clear_table): Initialize first_containing_mem.
10457         (discard_useless_values):  Compact the containing_mem list.
10458         (add_mem_for_addr): Add to the list.
10459         * cselib.h (cselib_val): Add next_containing_mem.
10460
10461 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
10462
10463         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
10464         instructions for e500.
10465
10466 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
10467
10468         * Makefile.in: Update.
10469         * c-cppbuiltin.c: Include tm_p.h.
10470
10471 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
10472
10473         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
10474
10475         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
10476         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
10477         (_Unwind_SetGR): Same.
10478         (_Unwind_GetGRPtr): New.
10479         (_Unwind_SetGRPtr): New.
10480         (uw_update_context_1): Use accesor functions instead of accessing
10481         context->reg[] directly.
10482         (uw_install_context_1): Same.
10483         (execute_cfa_program): Same.
10484         (__frame_state_for): Same.
10485
10486         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
10487         the synthetic register offset.
10488
10489         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
10490
10491 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
10492
10493         * config/cris/cris.md: Remove lingering EGCS reference.
10494         ("*extopqihi_side_biap"): For HI operation, match
10495         cris_additive_operand_extend_operator, not
10496         cris_operand_extend_operator.  Adjust condition.
10497         ("*extopqihi_side", "*extopqihi"): Ditto.
10498         ("*extopqisi_side_biap"): Correct operand numbers in condition.
10499         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
10500         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
10501         ("*extophisi_swap"): Ditto.
10502         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
10503         PLUS, not cris_operand_extend_operator.  Adjust condition and
10504         output template.
10505         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
10506         * config/cris/cris.h (PREDICATE_CODES): Add
10507         cris_additive_operand_extend_operator.
10508         * config/cris/cris.c (cris_additive_operand_extend_operator):
10509         New predicate.
10510
10511 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
10512
10513         * df.c (read_modify_subreg_p): Change from static to global.
10514         * df.h (read_modify_subreg_p): Add prototype.
10515         * sched-deps.c (sched_analyze_1): Generate true dependency for
10516         strict_low_part, certain subregs and zero/sign_extract.
10517
10518 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
10519
10520         * Makefile.in: Update.
10521         * c-common.c: Don't include real.h or except.h.
10522         (REGISTER_PREFIX): Remove.
10523         (builtin_define_std, builtin_define_with_value,
10524         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
10525         builtin_define_type_max, builtin_define_type_precision,
10526         builtin_define_float_constants): Move to c-cppbuiltin.c.
10527         (c_stddef_cpp_builtins): New.
10528         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
10529         * c-cppbuiltin.c: New, extracted from c-common.c.
10530         (define__GNUC__): New.
10531         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
10532         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
10533         (cpp_unique_options): Don't support no-gcc.
10534         (do_spec_1): Remove support of version specs.
10535         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
10536         * doc/passes.texi: Update.
10537         * doc/tm.texi: Update.
10538
10539 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
10540
10541         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
10542
10543 2003-03-10  Andrew Pinski  <apinski@apple.com>
10544
10545         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
10546         is on should not get here.
10547         (machopic_indirect_data_reference): If dynamic-no-pic is on just
10548         generate high/low parts of the address.
10549         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
10550         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
10551         symbol and labels with a new reg.  Dynamic-no-pic does not have a
10552         pic_offset_table_rtx.
10553         (machopic_select_section): Change references of flag_pic to
10554         MACHOPIC_INDIRECT.
10555         (machopic_asm_out_destructor): Likewise.
10556         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
10557         reference of flag_pic to MACHOPIC_INDIRECT.
10558         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
10559         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
10560         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
10561         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
10562         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
10563         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
10564         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
10565         (TARGET_DYNAMIC_NO_PIC): Define.
10566         (SUBTARGET_SWITCHES): Define, have sub-target switches for
10567         dynamic-no-pic.
10568         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
10569         rs6000_override_options to here. Dynamic-no-pic overrides
10570         pic.
10571         (CC1_SPEC): Change from not static then pic to not static and not
10572         dynamic-no-pic then pic.
10573         * config/rs6000/rs6000.c (rs6000_override_options): Move the
10574         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
10575         (rs6000_legitimize_reload_address): Add case for loading floating in
10576         dynamic-no-pic.
10577         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
10578         of flag_pic to MACHOPIC_INDIRECT.
10579         (secondary_reload_class): Conditional change the reference of
10580         flag_pic to MACHOPIC_INDIRECT.
10581         (rs6000_output_mi_thunk): Change reference of flag_pic to
10582         MACHOPIC_INDIRECT.
10583         (output_profile_hook): Likewise.
10584         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
10585         * config/rs6000/rs6000.md (movdf_low): Add the case for
10586         MACHO_DYNAMIC_NO_PIC_P.
10587         (call): Change references for flag_pic in TARGET_MACHO to
10588         MACHOPIC_INDIRECT.
10589         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
10590         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
10591         * doc/invoke.texi (-mdynamic-no-pic): Document.
10592
10593 2003-03-10  Devang Patel  <dpatel@apple.com>
10594
10595         PR c++/9394
10596         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
10597         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
10598         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
10599         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
10600         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
10601         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
10602
10603 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
10604
10605         PR optimization/7189
10606         * toplev.c (rest_of_compilation):  Move
10607         check_function_return_warnings up to just after
10608         delete_unreachable_blocks.
10609
10610 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
10611
10612         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
10613         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
10614         Declare.
10615         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
10616         for reg rename optimization to avoid using Z and Y registers.
10617
10618 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
10619
10620         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
10621         when adding to X and Y since leax/leay are fast.
10622         ("*addhi3"): Accept 'I' constraint when adding to address register.
10623         ("rotlhi3"): Operand 1 must be a register_operand.
10624         (peephole2): New peephole to optimize some adds.
10625         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
10626         to represent -2 .. 2 small integer range.
10627
10628 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
10629
10630         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
10631         each 16-bit rotation.
10632
10633 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
10634
10635         * c-opts.c (add_prefixed_path): Don't use concat.  When
10636         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
10637         cpp_GCC_INCLUDE_DIR_len characters.
10638
10639 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
10640
10641         * testsuite/gcc.dg/altivec-9.c: New file.
10642
10643         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
10644         (rs6000_emit_prologue): Use rs6000_frame_related instead.
10645
10646 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
10647
10648         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
10649         vectors.
10650         (__ev_convert_u64): Remove macro.  Define as inline.
10651         (__ev_convert_s64): Same.
10652
10653 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
10654
10655         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
10656         (rs6000_stack_t): Add spe_64bit_regs_used.
10657
10658         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
10659         spe_64bit_regs_used, and use it to determine the size of the
10660         frame.
10661         (spe_func_has_64bit_regs_p): New.
10662         (spe_synthesize_frame_save): New.
10663         (rs6000_frame_related): Handle SPE synthetic registers.
10664         (rs6000_emit_prologue): Only save in 64-bits if the function used
10665         any registers in 64-bit mode.
10666         (rs6000_emit_epilogue): Same, but for restore.
10667
10668 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
10669
10670         * arm.h (enum floating_point_type): Delete.  Replace with...
10671         (enum fputype): ... new.
10672         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
10673         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
10674         * arm.md (attr fpu): Reworked for new underlying enum values.
10675         * arm.c (arm_fpu_arch): Now enum fputype.
10676         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
10677         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
10678         Update uses of arm_fpu_arch and arm_fpu_tune.
10679
10680 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
10681
10682         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
10683         (try_crossjump_to_edge): Replace refereces to one jump table by
10684         references to identical jump table.
10685         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
10686         (replace_label): Moved to rtlanal.c.
10687         (struct rtx_pair): Moved to rtl.h.
10688         * rtl.h (struct rtx_pair): Moved from loop.c.
10689         (replace_label): New extern function.
10690         (subrtx_p): New extern function.
10691         (tablejump_p): New extern function.
10692         * rtlanal.c (replace_label): Moved from loop.c.
10693         (subrtx_p_1): New static function.
10694         (subrtx_p): New function.
10695         (tablejump_p): New function.
10696
10697 2003-03-10  Jan Hubicka  <jh@suse.cz>
10698
10699         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
10700
10701         * cfgcleanup.c (merge_blocks): Return where to iterate next.
10702         (try_optimize_cfg): Use return value of merge_blocks
10703
10704 2003-03-10  Michael Matz  <matz@suse.de>
10705
10706         * cfg.c (unchecked_make_edge): New.
10707         (cached_make_edge): Use it.
10708         * basic-block.h (unchecked_make_edge): Declare.
10709         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
10710
10711 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
10712
10713         * fpa.md: New file.  Move all patterns relating to FPA co-processor
10714         to here...
10715         * arm.md: ... from here.
10716         (cirrus.md, fpa.md): Include at end of description.
10717         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
10718         (pic_load_addr_based): Remove register constraint from expander.
10719         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
10720         (sordered, sungt, sunle, sunge, sunlt): Likewise.
10721         (eh_epilogue, tablejump): Likewise.
10722
10723 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10724
10725         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
10726         on operands if it has a PLACEHOLDER_EXPR.
10727
10728 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
10729             Mostafa Hagog
10730
10731         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
10732         condition.
10733
10734 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
10735
10736         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
10737         * config/ip2k/ip2k.h: Similarly.
10738         * config/m32r/m32r.h: Similarly.
10739         * config/m68hc11/m68hc11.h: Similarly.
10740         * config/mn10200/mn10200.h: Similarly.
10741         * config/mn10300/mn10300.h: Similarly.
10742         * config/pdp11/pdp11.h: Similarly.
10743         * config/v850/v850.h: Similarly.
10744         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
10745         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
10746         * config/mips/iris3.h: Remove #if 0 block.
10747
10748 2003-03-09  Roger Sayle  <roger@eyesopen.com>
10749             Joern Rennecke <joern.rennecke@superh.com>
10750
10751         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
10752         pending argument upon return from handle_braces here.
10753         (do_spec_2): Instead handle it upon return from do_spec_1 here.
10754
10755 2003-03-09  Roger Sayle  <roger@eyesopen.com>
10756             Joern Rennecke <joern.rennecke@superh.com>
10757
10758         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
10759         pending argument upon return from handle_braces here.
10760         (do_spec_2): Instead handle it upon return from do_spec_1 here.
10761
10762 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10763
10764         * varasm.c (make_decl_one_only): Use declare_weak().
10765
10766 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10767
10768         PR middle-end/9986
10769         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
10770         after the common builtins.
10771         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
10772         * pa.c (TARGET_INIT_BUILTINS): Define.
10773         (pa_init_builtins): New function.
10774
10775         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
10776         space has been allocated for the outgoing arguments, set the arg
10777         pointer for a call emitted after virtuals have been instantiated
10778         using the stack pointer offset, otherwise abort.
10779
10780 2003-03-09  DJ Delorie  <dj@redhat.com>
10781
10782         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
10783
10784 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
10785
10786         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
10787         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
10788         conversion to integer.
10789         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
10790
10791 2003-03-09  Roger Sayle  <roger@eyesopen.com>
10792
10793         * builtins.def: Fix typo and improve grammar.
10794         * loop-unroll.c (decide_peel_completely): Tidy log message.
10795
10796 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
10797
10798         * config/h8300/h8300.md (*tstsi_upper_bit): New.
10799         (*iorsi3_e2f): Likewise.
10800
10801 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
10802
10803         * config/h8300/h8300.c (h8300_and_costs): Return the number of
10804         assembly instructions needed.
10805         (h8300_shift_costs): Likewise.
10806
10807 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
10808
10809         * config/cris/aout.h (ENDFILE_SPEC): Undef.
10810
10811         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
10812         moves from here ...
10813         * expr.c (emit_move_insn_1): ... to here.
10814
10815         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
10816         (TARGET_OS_CPP_BUILTINS): New macro.
10817         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
10818         (TARGET_OS_CPP_BUILTINS): New macro.
10819         (CPP_PREDEFINES): Don't define.  Move old definitions and...
10820         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
10821         (TARGET_CPU_CPP_BUILTINS): New macro.
10822         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
10823         definitions and the optional __PIC__, __pic__ and
10824         __NO_UNDERSCORES__ definitions to...
10825         (TARGET_OS_CPP_BUILTINS): New macro.
10826
10827         * flags.h (flag_leading_underscore): Declare.
10828
10829         * c-opts.c (c_common_post_options): On fopen failure, return
10830         false, not NULL.
10831
10832 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
10833
10834         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
10835         config.h.
10836         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
10837         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
10838
10839 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
10840
10841         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
10842         CPP_PREDEFINES.
10843         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
10844         CPP_PREDEFINES.
10845
10846 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
10847
10848         * c-common.h (c_common_init, c_common_post_options): Update.
10849         * c-objc-common.c (c_objc_common_init): Update for new prototype.
10850         * c-opts.c (saved_lineno): New.
10851         (c_common_post_options, c_common_init): Update prototypes,
10852         move call to cpp_read_main_file from latter to former.
10853         * c-tree.h (c_ojbc_common_init): Update.
10854         * langhooks-def.h (lhd_post_options): New.
10855         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
10856         * langhooks.c (lhd_post_options): New.
10857         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
10858         * toplev.c (no_backend): New.
10859         (process_options): Call post_options hook and set main_input_filename
10860         and input_filename here.
10861         (lang_dependent_init, do_compile): post_options hook moved to
10862         process_options.
10863         * objc/objc-act.c (objc_init): Update prototype.
10864         * objc/objc-act.h (objc_init): Update prototype.
10865
10866 2003-03-08  Roger Sayle  <roger@eyesopen.com>
10867
10868         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
10869         a complex or vector type, using a load in the original mode.
10870
10871 2003-03-08  Jan Hubicka  <jh@suse.cz>
10872
10873         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
10874         * gt-cgraph.h: New GC file.
10875         * cgraph.c (known_fns): New static variable.
10876         (cgraph_node): Add the decl into varray.
10877
10878 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
10879
10880         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
10881
10882 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
10883
10884         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
10885         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
10886         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
10887         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
10888         All callers changed.
10889         * arm.md, arm.h, arm-protos.h: Updated.
10890
10891         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
10892         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
10893         * arm.c (arm_regno_class, f_register_operand): Updated.
10894
10895 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
10896
10897         * config/cris/cris.h: Remove EGCS references.
10898         (CPP_SPEC): Remove "-$".
10899         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
10900
10901 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
10902
10903         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
10904         preference to CPP_PREDEFINES.
10905
10906 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
10907
10908         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
10909
10910 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
10911
10912         * config/h8300/h8300.md (*extzv_16_8): New.
10913
10914 2003-03-08  Jan Hubicka  <jh@suse.cz>
10915
10916         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
10917         * cgraph.h: (cgraph_local_info): Add can_inline_once
10918         (cgraph_global_info): Add inline_once.
10919         (cgraph_node): Add previous.
10920         (cgraph_remove_node): New.
10921         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
10922         function.
10923         (cgraph_optimize): Call it.
10924         (cgraph_finalize_function):  Set inlinable flags.
10925         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
10926         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
10927         (cgraph_expand_function): Likewise.
10928         * cgraph.c
10929         (cgraph_node): Put nodes into doubly linked chain.
10930         (cgraph_remove_node): New function.
10931         * flags.h (flag_inline_functions_called_once): Declare.
10932         * tree-inline.c: Include cgraph.h
10933         (inlinable_functions_p): Add extra argument to bypass limits.
10934         (expand_call_inline):  Obey cgraph flag.
10935         * tree-inline.h (tree_inlinable_function_p): Update prototype.
10936
10937 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10938
10939         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
10940         irreducible loops.
10941
10942         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
10943         loops info correctly.
10944
10945 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
10946
10947         PR middle-end/7796
10948         * unroll.c (calculate_giv_inc): Handle constants being
10949         loaded with LSHIFTRT.
10950
10951 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
10952
10953         * config/rs6000/rs6000.c (processor_target_table): Do not disable
10954         GP optional instructions on Power3, Power4, 620, and 630.
10955
10956 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
10957
10958         * calls.c: Fix comment formatting.
10959         * cfgloopanal.c: Likewise.
10960         * cfgloopmanip.c: Likewise.
10961         * combine.c: Likewise.
10962         * dwarf2out.c: Likewise.
10963         * ggc-common.c: Likewise.
10964         * langhooks.c: Likewise.
10965         * loop-unroll.c: Likewise.
10966         * loop.c: Likewise.
10967         * ra-build.c: Likewise.
10968         * sbitmap.c: Likewise.
10969         * toplev.c: Likewise.
10970
10971 2003-03-07  James E Wilson  <wilson@tuliptree.org>
10972
10973         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
10974
10975 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
10976
10977         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
10978         support -no-integrated-cpp.
10979
10980         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
10981         than langhooks.name.
10982
10983 2003-03-07  Michael Matz  <matz@suse.de>
10984
10985         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
10986         (DF_FOR_REGALLOC): New.
10987         * df.c (df_ref_record): Set DF_REF_STRIPPED.
10988         (read_modify_subreg_p): Simplify.
10989         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
10990         Use DF_FOR_REGALLOC.
10991         * ra.h (struct web): New member subreg_stripped.
10992         (invalid_mode_change_regs): Declare.
10993         * ra.c (invalid_mode_change_regs): New.
10994         (init_ra): Initialize it.
10995         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
10996         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
10997         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
10998         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
10999         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
11000
11001 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
11002
11003         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
11004         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
11005         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
11006         machine description file from ...
11007         * cirrus.md: ... here.
11008
11009 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
11010
11011         * config/h8300/h8300.md (a peephole2): Don't use
11012         reg_overlap_mentioned_p.
11013
11014 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
11015
11016         * c-pch.c: Include langhooks.h.
11017         (IDENT_LENGTH): New.
11018         (get_ident): New.
11019         (pch_ident): Delete.
11020         (pch_init): Use get_ident, IDENT_LENGTH.
11021         (c_common_valid_pch): Likewise.  Also, use actual language
11022         in warning message.
11023         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
11024
11025         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
11026         c-parse.in.
11027         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
11028         gt-objc-objc-act.h.
11029         (gt-objc-objc-act.h): New rule.
11030         * objc/lang-specs.h: Support PCH.
11031         * objc/objc-act.c: Include gt-objc-objc-act.h.
11032         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
11033         (build_selector_reference_decl): Move idx out, mark for PCH.
11034         (build_class_reference_decl): Likewise.
11035         (build_objc_string_decl): Move *_idx out, mark for PCH.
11036         (build_tmp_function_decl): Move xxx out, mark for PCH.
11037
11038 2003-03-06  Dale Johannesen  <dalej@apple.com>
11039
11040         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
11041         global functions for inlining on Darwin.
11042
11043 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
11044
11045         * haifa-sched.c (schedule_block): Don't call reorder when sorting
11046         is prohibited.
11047
11048 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
11049
11050         * Makefile.in (c-ppoutput.o): Update.
11051         * c-common.h (init_pp_output): New.
11052         (preprocess_file): Update.
11053         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
11054         Register builtins.
11055         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
11056         Make call to cpp_read_main_file common to whether preprocessing
11057         or not.  Don't register builtins.
11058         * c-ppoutput.c: Include c-pragma.h.
11059         (setup_callbacks): Rename init_pp_output.
11060         (preprocess_file): No longer setup callbacks or call
11061         cpp_read_main_file.
11062         * cpphash.h (_cpp_init_mbchar): New.
11063         * cppinit.c (init_library): Call _cpp_init_mbchar.
11064         * cpplex.c (_cpp_init_mbchar): New.
11065
11066 2003-03-06  Roger Sayle  <roger@eyesopen.com>
11067
11068         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
11069         MEM, try loading the MEM into a register and taking the low-part
11070         of that, to help CSE see the use of the MEM in its true mode.
11071
11072 2003-03-05  Tom Tromey  <tromey@redhat.com>
11073
11074         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
11075         Define.
11076
11077 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
11078
11079         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
11080         operand 2.
11081         ("*ineqbranchsi"): Likewise.
11082
11083 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
11084
11085         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
11086         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
11087         register store followed by a stack increment.
11088
11089 2003-03-05  Chris Moller  <cmoller@redhat.com>
11090
11091         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
11092         to inhibit saving CARRY_REGS.
11093
11094         * config/stormy16/stormy16.c (xs_hi_general_operand):
11095         added predicate to detect and error-out on out-of-range
11096         const_ints for movhi.
11097         * config/stormy16/stormy16.md (movhi): use
11098         xs_hi_general_operand.
11099
11100         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
11101         added a check for local vbl size overflow.
11102         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
11103         added predicate to detect and error-out on out-of-range
11104         const_ints for addhi and subhi.
11105         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
11106         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
11107
11108         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11109         add a term to accept PRE_MODIFY addresses.
11110         * config/stormy16/stormy16.c (xstormy16_expand_move):
11111         add code to expand PRE_MODIFY addresses to an add followed
11112         by a move.
11113
11114 2003-03-06  Jason Merrill  <jason@redhat.com>
11115
11116         * tree-inline.c (inlinable_function_p): Revert earlier change
11117         pending investigation.
11118
11119 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
11120
11121         * config/h8300/h8300.md (a new peephole2): New.
11122
11123 2003-03-06  Jan Hubicka  <jh@suse.cz>
11124
11125         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
11126
11127 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11128
11129         * dwarf2out.c (size_of_die): Compute size of external reference to
11130         die correctly.
11131
11132 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
11133
11134         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
11135         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
11136         expanders.
11137
11138 2003-03-05  Roger Sayle  <roger@eyesopen.com>
11139
11140         * expr.h (lang_expand_expr): Delete obsolete prototype.
11141
11142 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
11143
11144         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
11145
11146 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
11147
11148         * config/h8300/h8300.md (a peephole2): Generalize to
11149         accept a memory operand.
11150
11151 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
11152
11153         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
11154         * config/alpha/alpha.c (print_operand, case '+'): New.
11155         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
11156         (call_value_osf_1_noreturn): Likewise.
11157
11158 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11159
11160         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
11161         (expand_end_bindings): Likewise.
11162
11163 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11164
11165         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
11166         (epilogue): Don't generate return_external_pic when emitting PA 2.0
11167         code.
11168
11169 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
11170
11171         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
11172
11173         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
11174
11175         * hooks.c (hook_rtx_rtx_null): New.
11176
11177         * hooks.h (hook_rtx_rtx_null): Protoize.
11178
11179         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
11180         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
11181
11182         * target.h (struct gcc_target): Add dwarf_register_span.
11183
11184         * dwarf2out.c (multiple_reg_loc_descriptor): New.
11185         (one_reg_loc_descriptor): New.
11186         (reg_loc_descriptor): Add support for values that span more than
11187         one register.
11188
11189 2003-03-05  Jan Hubicka  <jh@suse.cz>
11190
11191         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
11192         * alias.c:  Include cgraph.h
11193         (mark_constant_function): Use cgraph_rtl_info.
11194         * calls.c:  Include cgraph.h
11195         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
11196         calls.
11197         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
11198         * cgraph.c (cgraph_rtl_info): New function.
11199         * cgraph.h (cgraph_rtl_info): Declare
11200         (cgraph_rtl_info): Likewise.
11201         * function.h (struct function): Add recursive_call_emit.
11202         * toplev.c: Include cgraph.h.
11203         (rest_of_compilation): Set preferred_incoming_stack_boundary.
11204
11205 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
11206
11207         * config/h8300/h8300.c (output_simode_bld): Clear the
11208         destination first if possible.
11209         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
11210         alternative.
11211         (extzv_1_r_inv_h8300hs): Likewise.
11212
11213 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11214
11215         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
11216         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
11217         * cfgloop.c (flow_loop_free): Made global.
11218         (establish_preds): New static function.
11219         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
11220         (get_loop_exit_edges): New.
11221         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
11222         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
11223         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
11224         loops.
11225         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
11226         removability of an edge.
11227         (fix_irreducible_loops): New static function.
11228         (find_path, remove_path): Add ability to remove enclosing loops.
11229         (unloop): New.
11230         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
11231         flags.
11232         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
11233         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
11234         not neccessary.
11235         (decide_peel_completely, peel_loops_completely): Allow complete peeling
11236         of non-duplicable once rolling loops.
11237         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
11238
11239 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
11240
11241         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
11242         for align_jumps is 4.
11243
11244         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
11245         use GENERAL_REGS.
11246
11247 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
11248
11249         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
11250         according to va_arg type.
11251         (EXPAND_BUILTIN_VA_ARG): Remove.
11252         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
11253         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
11254
11255 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
11256
11257         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
11258         else clauses.
11259
11260 2003-03-05  Michael Matz  <matz@suse.de>
11261
11262         * i386/i386.c (ix86_save_reg): Also test
11263         current_function_uses_const_pool.
11264
11265 2003-03-05  Michael Matz  <matz@suse.de>
11266
11267         * unwind.h: Add the GPL exception.
11268         * Makefile.in (USER_H): Add unwind.h.
11269
11270 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
11271
11272         PR c/9799
11273         * c-typeck.c (push_init_level): Add sanity check.
11274
11275 2003-03-05  Jan Hubicka  <jh@suse.cz>
11276
11277         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
11278         RTL inlining is done.
11279
11280         * cgraphunit.c (cgraph_mark_local_functions): New local function.
11281         (cgraph_optimize): Mark local functions.
11282         * i386-protos.h (init_cumulative_args): Update prototype.
11283         * i386.c (init_cumulative_args): Use register passing convention for
11284         local functions.
11285
11286         * cgraph.c (cgraph_global_info_ready): New global variable
11287         (cgraph_local_info, cgraph_global_info): New functions.
11288         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
11289         structures.
11290         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
11291         Declare.
11292         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
11293         (cgraph_mark_functions_to_output): Use inline_many.
11294         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
11295         (cgraph_expand_functions): Expand inline functions last.
11296         (cgraph_optimize): Do not emit uneeded functions.
11297
11298 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
11299
11300         * expr.c (convert_modes): Check for legal hard register.
11301
11302 2003-03-04  Tom Tromey  <tromey@redhat.com>
11303
11304         * doc/sourcebuild.texi (Front End Directory): Document tags.
11305         * configure: Rebuilt.
11306         * configure.in (target_list): Added tags.
11307         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
11308         TAGS files by reference.
11309         * objc/Make-lang.in (objc.tags): New target.
11310
11311 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11312
11313         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
11314         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
11315         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
11316         gcov_read_string, gcov_write_length): Modified to enable reading/
11317         writing of whole .da file just once.
11318         (da_file_open, da_file_close, da_file_eof, da_file_error,
11319         da_file_position, da_file_seek, da_file_write, da_file_read): New
11320         functions.
11321         (actual_da_file, actual_da_file_position, actual_da_file_length,
11322         actual_da_file_buffer, actual_da_file_buffer_size): New static
11323         functions.
11324         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
11325         just once.
11326
11327
11328 2003-03-04  Andreas Schwab  <schwab@suse.de>
11329
11330         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
11331         offset without frame pointer.
11332
11333 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
11334
11335         * expr.c (expand_expr): Call promote_mode to set unsignedp.
11336
11337 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
11338
11339         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
11340         * configure: Regenerated.
11341         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
11342
11343 2003-03-04  Andreas Jaeger  <aj@suse.de>
11344
11345         * configure.in: Check for <memcheck.h>.
11346         * configure: Regenerated.
11347
11348         * config.in: Define HAVE_MEMCHECK_H.
11349
11350         * ggc-common.c: Use <memcheck.h> if available instead of
11351         <valgrind.h>.
11352         * ggc-page.c: Likewise.
11353         * cppfiles.c: Likewise.
11354
11355 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
11356
11357         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
11358
11359 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
11360
11361         PR c/9262
11362         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
11363         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
11364
11365 2003-03-04  Jan Hubicka  <jh@suse.cz>
11366
11367         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
11368         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
11369         for -O3.
11370
11371 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
11372
11373         * configure.in: Delete three unused variables.  Move a variable
11374         definition closer to its use.  Simplify use_collect2 logic.  Start to
11375         organize.  Simplify tests for in-tree gas and ld.
11376         * configure: Regenerate.
11377
11378 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
11379
11380         * Makefile.in: Update.
11381         * c-common.c (flag_no_line_commands, flag_no_output,
11382         flag_dump_macros, flag_dump_includes): New.
11383         * c-common.h (flag_no_line_commands, flag_no_output,
11384         flag_dump_macros, flag_dump_includes, preprocess_file): New.
11385         (init_c_lex): Update prototype.
11386         * c-lex.c (init_c_lex): Update prototype; move some code to
11387         c_common_init.
11388         * c-opts.c (preprocess_file): Subsume into c_common_init.
11389         (c_common_decode_option): Update flags.
11390         (c_common_init): Move code from preprocess_file and init_c_lex.
11391         (sanitize_cpp_opts): Update.
11392         * c-ppoutput.c: New, cppmain.c almost verbatim.
11393         * cpphash.h (struct printer): Remove.
11394         (struct cpp_reader): Remove print.
11395         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
11396         cpp_preprocess_file): Remove.
11397         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
11398         and dump_includes.
11399         * cppmain.c: Remove.
11400         * doc/passes.texi: Update.
11401
11402 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11403
11404         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
11405         (assign_stack_local_1): Perform overall stack alignment only when
11406         STACK_ALIGNMENT_NEEDED is non-zero.
11407         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
11408
11409         * pa.c (compute_frame_size): Rename fsize to size.  Account for
11410         alignment to a word boundary before general register save block.  Only
11411         account for double-word alignment before floating point register save
11412         block if one or more are saved.  Don't allocate space for %r3 when
11413         frame pointer is needed.
11414         (hppa_expand_prologue): Include alignment to word boundary in local
11415         frame size.
11416         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
11417         (STACK_ALIGNMENT_NEEDED): Define.
11418
11419 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
11420
11421         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
11422         global register variables.
11423
11424 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
11425
11426         * reload.c (reload_adjust_reg_for_mode): New function.
11427         (subst_reloads): Call it.
11428         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
11429         * reload.h (reload_adjust_reg_for_mode): Declare.
11430         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
11431         Call it.
11432
11433 2003-03-03  James E Wilson  <wilson@tuliptree.org>
11434
11435         * optabs.c (add_equal_note): Delete SUBREG_REG use.
11436         Fixes PR c/7872.
11437
11438 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
11439
11440         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
11441         (*ixorsi3_lshiftrt_16): New.
11442         (*iorsi3_ashift_16): Remove.
11443
11444 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
11445
11446         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
11447         pattern.
11448
11449 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
11450
11451         * doc/install.texi (Specific): Update entry for powerpc-darwin.
11452
11453 2003-03-03  Richard Henderson  <rth@redhat.com>
11454
11455         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
11456
11457 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
11458
11459         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
11460         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
11461         (rs6000_variable_issue): Do not return negative value.
11462         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
11463         scheduling pass.
11464
11465 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11466
11467         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
11468         prune_unused_types calls.
11469
11470 2003-03-03  Jason Merrill  <jason@redhat.com>
11471
11472         * tree-inline.c (find_builtin_longjmp_call): Save and restore
11473         lineno and input_filename.
11474         (find_alloca_call): Likewise.
11475         (inlinable_function_p): Run the langhook earlier.
11476
11477         * calls.c (compute_argument_addresses): Give the new MEMs a
11478         minimum alignment of PARM_BOUNDARY.
11479
11480 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
11481
11482         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
11483         subtarget_asm_isa_spec.
11484         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
11485         (ASM_SPEC): Define as SH_ASM_SPEC.
11486         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
11487         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
11488         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
11489         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
11490
11491         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
11492         and align_jumps if not set.
11493         Force align_jumps to be at least 2.
11494         When relaxing, force align_functions to be at least the maximum of
11495         align_loops, align_jumps and 4.
11496         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
11497         (sh_loop_align): Honour align_loops_log.
11498
11499         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
11500         to check for indirect_jump_scratch.
11501         (indirect_jump_scratch): Add second set.
11502         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
11503         when looking for indirect_jump_scratch.
11504         Extract scratch register taking new structure of indirect_jump_scratch
11505         into account.
11506         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
11507
11508 2003-03-03  Jan Hubicka  <jh@suse.cz>
11509
11510         * calls.c (rtx_for_function_call): Take the address as an argument
11511         (expand_call): Do not modify the expression.
11512
11513         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
11514         optimizing.
11515
11516 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
11517
11518         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
11519         TARGET_H8300H and TARGET_H8300S.
11520
11521 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
11522
11523         * config/h8300/h8300.md (a peephole2): New.
11524
11525 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
11526
11527         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
11528         operands[0] and operands[1] are different.
11529
11530 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
11531
11532         * reload1.c (reload_cse_move2add): Remove variable success.
11533
11534 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11535
11536         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
11537         warnings.
11538
11539 2003-03-02  Richard Henderson  <rth@redhat.com>
11540
11541         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
11542         * config.in, configure: Rebuild.
11543         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
11544         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
11545         paired ldtoffx and ldxmov annotations.
11546         (load_symptr_internal1): Remove.
11547         (load_symptr_high, load_symptr_low): New.
11548
11549 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
11550
11551         * c-incpath.c (add_path): Fix sysp assignment.
11552
11553 2003-03-02  Kurt Garloff  <garloff@suse.de>
11554
11555         * params.def: Introduce parameter max-inline-insns-rtl for
11556         a separate limit for the RTL inliner.
11557         * params.h: Likewise.
11558         * integrate.c (function_cannot_inline_p): Use it.
11559         * toplev.c (decode_f_option): Set multiple parameters
11560         controlling inlining with -finline-limit.
11561         * params.def: Fix orthographic and typographic errors.
11562         * doc/invoke.texi: Document parameters controlling inlining
11563         and the way -finline-limit sets multiple of them.
11564
11565         * tree.h (struct tree_decl): Introduce inlined_function_flag,
11566         recording whether the function became eligible for inlining
11567         by a compiler flag rather than the declaration.
11568         Provide DID_INLINE_FUNC macro to access it.
11569         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
11570         * cp/decl.c (grokfndecl): Likewise.
11571         * toplev.c (rest_of_compilation): Likewise.
11572         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
11573         * print-tree.c (print_node): Report it.
11574         * params.def: Introduce new max-inline-insns-auto limit.
11575         * params.h: Likewise.
11576         * tree-inline.c (inlinable_function_p): Apply it to functions
11577         with DID_INLINE_FUNC set.
11578         * toplev.c (decode_f_option): Initialize it from -finline-limit
11579         value.
11580         * doc/invoke.texi: Document new parameter.
11581
11582 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
11583
11584         * fix-header.c (read_scan_file): Don't reference simplify_path.
11585
11586 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
11587
11588         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
11589         min/max instructions by default as may result in reload errors.
11590
11591 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
11592
11593         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
11594         avoid reload problems; define split for it.
11595
11596 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
11597
11598         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
11599         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
11600         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
11601         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
11602         rotatert and rotate.
11603         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
11604         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
11605         ("*rotrhi3_addr"): New split for shift insns on address register.
11606         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
11607         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
11608         (___rotrhi3): Likewise.
11609         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
11610
11611 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
11612
11613         * toplev.c (aux_base_name): Moved from toplev.h.
11614         (filename): Constify.
11615         (lang_dependent_init): Don't duplicate name.
11616         (process_options): Set aux_base_name here, not...
11617         (do_compile): ...here.  Change protoype.
11618         (toplev_main): Move some code from do_compile.
11619         * toplev.h: Remove aux_base_name.
11620
11621 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
11622
11623         * config/h8300/h8300-protos.h: Add a prototype for
11624         iorxor_operator.
11625         * config/h8300/h8300.c (print_operand): Handle 'c'.
11626         (iorxor_operator): New.
11627         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
11628         * config/h8300/h8300.md (*iorhi3_zext): Remove.
11629         (*iorsi3_zexthi): Likewise.
11630         (*iorsi3_zextsi): Likewise.
11631         (*xorhi3_zextqi): Likewise.
11632         (*xorsi3_zexthi): Likewise.
11633         (*xorsi3_zextsi): Likewise.
11634         (*ixorhi3_zext): New.
11635         (*ixorsi3_zext_qi): Likewise.
11636         (*ixorsi3_zext_hi): Likewise.
11637
11638 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
11639
11640         * c-incpath.c (remove_component_p, simplify_path): Move back to
11641         cppfiles.c.
11642         (remove_duplicates): Use cpp_simplify_path.
11643         * c-incpath.h (simplify_path): Remove.
11644         * c-lex.c: Don't include c-incpath.h.
11645         (init_c_lex): Remove simplify_path.
11646         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
11647         (find_or_create_entry, validate_pch): Revert.
11648
11649 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
11650
11651         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
11652           an external cpp during compilation.
11653         (option_map): Likewise.
11654         * objc/lang-specs.h (default_compilers): Similarly.
11655         * doc/invoke.texi: Document -no-integrated-cpp flag.
11656
11657 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
11658
11659         * config/h8300/h8300.md (zero_extendqisi2): Change to an
11660         expander.
11661         (*zero_extendqisi2_h8300): New.
11662         (*zero_extendqisi2_h8300hs): New.
11663         (two splitters): New.
11664
11665 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11666
11667         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
11668
11669 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
11670
11671         * config/h8300/h8300.md (a peephole2): Remove dead code.
11672
11673 2003-03-01  Roger Sayle  <roger@eyesopen.com>
11674
11675         PR c++/9367
11676         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
11677         (BT_FN_INT_CONST_STRING_VALIST_ARG,
11678         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
11679         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
11680         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
11681         BT_FN_INT_STRING_CONST_STRING_VAR,
11682         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
11683         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
11684         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
11685         ATTR_NONNULL_3): Also include the nothrow attribute.
11686         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
11687         vsnprintf, vscanf, vsscanf): Don't define attributes here.
11688         * builtins.def (putchar, puts): Make full C89 built-ins.
11689         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
11690         vsscanf, vsnprintf, vsprintf): New built-ins.
11691         * c-common.c (c_common_nodes_and_builtins): Handle new macro
11692         DEF_FUNCTION_TYPE_VAR_3.
11693
11694         * doc/extend.texi: Document these new built-in functions.
11695
11696 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
11697
11698         * config/h8300/h8300.md (a peephole2): New.
11699
11700 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
11701
11702         * predict.c (estimate_bb_frequencies): Correctly set
11703         real_values_initialized after initialization.
11704
11705 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
11706
11707         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
11708         cppinit.o, cppdefault.o, fix-header): Update.
11709         * c-incpath.c: New file.
11710         * c-incpath.h: New file.
11711         * c-lex.c: Include c-incpath.h.
11712         (init_c_lex): Register path simplifier.
11713         * c-opts.c: Include cppdefault.h and c-incpath.h.
11714         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
11715         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
11716         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
11717         (missing_arg, c_common_decode_option): Handle them.
11718         (c_common_post_options): Register include chains.
11719         (print_help): Update.
11720         * cppdefault.h (struct default include): Update.
11721         Move some macros to ...
11722         * cppdefault.c: ... here.
11723         (cpp_include_defaults): Add extra field add_sysroot.
11724         * cppfiles.c (include_file, search_from, find_or_create_entry,
11725         cpp_included, find_include_file, remap_filename): Update for
11726         renaming of search_path to cpp_path, and of the chain headers.
11727         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
11728         * cpphash.h (struct search_path): Move to cpplib.h.
11729         (struct cpp_buffer, struct cpp_reader): Update.
11730         (_cpp_simplify_pathname): Remove.
11731         * cppinit.c: Don't include prefix.h and cppdefault.h.
11732         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
11733         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
11734         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
11735         no_pth, cpp_handle_options): Remove.
11736         (struct pending_option): Remove chain members.
11737         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
11738         cpp_handle_option): Update.
11739         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
11740         (struct cpp_options): Remove quote_include, bracket_include,
11741         include_prefix, include_prefix_len, verbose, ignore_srcdir,
11742         no_standard_includes, no_standard_cplusplus_includes.
11743         (struct cpp_callbacks): Add simplify_path.
11744         (cpp_handle_options): Remove.
11745         * fix-header.c: Include c-incpath.h.
11746         (read_scan_file): Update to use c-incpath functionality.
11747         * doc/passes.texi: Update.
11748
11749 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
11750
11751         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
11752         satisfies EXTRA_CONSTRAINT 'U'.
11753
11754 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
11755
11756         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
11757         register.
11758         (*tst_extzv_memqi_1_n): Change to a splitter.
11759         (a peephole2): Update.
11760
11761 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
11762
11763         * predict.c (estimate_bb_frequencies): Initialize the sreal
11764         constants once per compilation.
11765
11766 2003-02-28  Richard Henderson  <rth@redhat.com>
11767
11768         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
11769
11770 2003-02-28  scott snyder  <snyder@fnal.gov>
11771
11772         * flags.h: Add flag_eliminate_unused_debug_types.
11773         * toplev.c: Add flag_eliminate_unused_debug_types.
11774         (f_options): Add -feliminate-unused-debug-types.
11775         * dwarf2out.c (struct file_table): Add emitted member.
11776         (splice_child_die): Fix the parent pointer for the child being
11777         spliced.
11778         (lookup_filename): Maintain file_table.emitted array.  Don't
11779         output .file directive here.
11780         (maybe_emit_file): (new)
11781         (init_file_table): Set up file_table.emitted.
11782         (dwarf2out_source_line): Use maybe_emit_file.
11783         (dwarf2out_start_source_file): Use maybe_emit_file.
11784         (dwarf2out_init): Use maybe_emit_file.
11785         (prune_unused_types_walk_attribs): (new)
11786         (prune_unused_types_mark): (new)
11787         (prune_unused_types_walk): (new)
11788         (prune_unused_types_prune): (new)
11789         (prune_unused_types): (new)
11790         (dwarf2out_finish): Call prune_unused_types if
11791         flag_eliminate_unused_debug_types is set.
11792         * doc/invoke.texi (Option Summary): Add
11793         -feliminate-unused-debug-types.
11794         (Debugging Options): Likewise.
11795
11796 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
11797
11798         * doc/invoke.texi: Change .pch to .gch.
11799         * cppfiles.c (open_file_pch): Likewise.
11800         * gcc.c (default_compilers): Likewise.
11801
11802 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
11803
11804         * floatlib.c: Remove.
11805
11806 2003-02-28  Jason Merrill  <jason@redhat.com>
11807
11808         * stor-layout.c (variable_size): Leave a "minus 1" outside the
11809         SAVE_EXPR.
11810
11811 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
11812
11813         * config/rs6000/power4.md: Add compare bypass.
11814
11815 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
11816
11817         * config/netbsd.h: Update copyright years.
11818         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
11819         -pthread is specified on the command line.
11820
11821 2003-02-28  Dale Johannesen <dalej@apple.com>
11822
11823         * loop.c (struct movable): Add insert_temp, shrink savemode.
11824         (scan_loop): Accept invariants that require copying; mark as
11825         insert_temp.
11826         (combine_movables): Don't combine insert_temp movables.
11827         (move_movables): Insert copies for insert_temp movables.
11828         Don't record the info based on regno for insert_temp's.
11829
11830 2003-02-28  Joel Sherrill <joel@OARcorp.com>
11831
11832         PR 9638/other
11833         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
11834         this constant defaults to 1.
11835
11836 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
11837
11838         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
11839
11840 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
11841
11842         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
11843         ARMv5e processor, not just for XScale.  Instructions are predicable.
11844         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
11845
11846 2003-02-28  Nick Clifton  <nickc@redhat.com>
11847
11848         * config/arm/arm.c (note_invalid_constants): Change parameter type
11849         from bool to int.
11850
11851 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
11852
11853         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
11854         test of bit 7.
11855         (*tst_extzv_memqi_1_n): Likewise.
11856         (a peephole2): New.
11857
11858 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
11859
11860         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
11861         #ifndef __mips16.
11862
11863 2003-02-28  Jan Hubicka  <jh@suse.cz>
11864
11865         * combine.c (gen_lowpart_for_combine): Update handling of
11866         subregs_of_mode
11867         * flow.c (life_analysis, mark_used_regs): Likewise.
11868         * regclass.c (subregs_of_mode): Turn into single bitmap.
11869         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
11870         dealing with subregs_of_mode
11871         * regs.h (subregs_of_mode): Update prototype.
11872
11873 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
11874
11875         * emit-rtl.c (set_reg_attrs_for_parm): New function.
11876         * rtl.h (set_reg_attrs_for_parm): New exported function.
11877         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
11878         set_reg_attrs_from_mem.
11879
11880 2003-02-27  Roger Sayle  <roger@eyesopen.com>
11881             Zack Weinberg <zack@codesourcery.com>
11882
11883         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
11884
11885 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
11886
11887         * reload1.c (sext_for_mode): Remove.
11888         (reload_cse_move2add): Use trunc_int_for_mode instead of
11889         sext_for_mode.
11890         (move2add_note_store): Likewise.
11891         Reset register information if we see a set in non-integer
11892         mode.
11893
11894 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
11895
11896         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
11897         option.
11898         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
11899         * config/rs6000/aix51.h: Same.
11900         * config/rs6000/aix52.h: Same.
11901         * config/rs6000/power4.md: Additional VMX bypasses.
11902
11903 2003-02-27   Geert Bosch <bosch@gnat.com>
11904
11905         * toplev.c (print_version): Add indentation for GGC heuristics and
11906         output after printing version information.
11907
11908 2003-02-27  James E Wilson  <wilson@tuliptree.org>
11909
11910         * combine.c (simplify_comparison): Require integral mode when
11911         permuting SUBREG with AND.
11912
11913 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
11914
11915         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
11916
11917 2003-02-27  Nick Clifton  <nickc@redhat.com>
11918
11919         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
11920         deleted when cirrus instructions were added.
11921
11922 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
11923
11924         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
11925         POSIX thread support by default.
11926
11927 2003-02-27  Roger Sayle  <roger@eyesopen.com>
11928
11929         * config/i386/cygwin.h: Don't include any other files directly.
11930         * config/i386/mingw32.h: Don't include cygwin.h directly.
11931         * config.gcc (cygwin, mingw32, uwin): Instead make these files
11932         explicit in the tm_files variable.
11933
11934 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
11935
11936         * config/rs6000/rs6000.md: Add TI constant splitter.
11937
11938 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
11939
11940         * builtins.c (purge_builtin_constant_p): Handle subreg of
11941         constant_p_rtx too.
11942
11943         * function.c (assign_stack_local_1): Truncate constant added to
11944         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
11945
11946 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
11947
11948         * config.gcc: Add power4 to PowerPC with_cpu list.
11949
11950 2003-02-26  Jan Hubicka  <jh@suse.cz>
11951
11952         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
11953
11954 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11955
11956         * gcov-dump.c (print_prefix): Fix signedness warning.
11957         * gcov-io.h (struct counter_section, struct counter_section_data): New.
11958         (struct function_info): n_arc_counts field removed, n_counter_sections,
11959         counter_sections fields added.
11960         (struct gcov_info): arc_counts, n_arc_counts fields removed,
11961         n_counter_sections, counter_sections fields added.
11962         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
11963         profile sections.
11964         * profile.h (MAX_COUNTER_SECTIONS): New.
11965         (struct section_info): New.
11966         (struct profile_info): count_instrumented_edges,
11967         count_edges_instrumented_now fields removed, n_sections, section_info
11968         fields added.
11969         (find_counters_section): Declare.
11970         * profile.c (struct function_list): count_edges field removed,
11971         n_counter_sections, counter_sections fields added.
11972         (set_purpose, label_for_tag, build_counter_section_fields,
11973         build_counter_section_value, build_counter_section_data_fields,
11974         build_counter_section_data_value, build_function_info_fields,
11975         build_function_info_value, build_gcov_info_fields,
11976         build_gcov_info_value): New static functions.
11977         (find_counters_section): New function.
11978         (instrument_edges, get_exec_counts, compute_branch_probabilities,
11979         branch_prob, create_profiler): Modified to support multiple profile
11980         sections.
11981
11982 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11983
11984         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
11985         is 8 * STACK_BOUNDARY.
11986         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
11987
11988 2003-02-26  Michael Matz  <matz@suse.de>
11989
11990         * ra-colorize.c (merge_moves): Fix list handling.
11991
11992 2003-02-26  Nick Clifton  <nickc@redhat.com>
11993
11994         * config/arm/arm.c (is_load_address): Rename to...
11995         (arm_memory_load_p) ... this and make it check for SUBREGs and
11996         constant loads that will be converted into loads from the
11997         minipool.
11998         (is_cirrus_insn): Rename to ...
11999         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
12000         of CIRRUS_NO with CIRRUS_NOT.
12001         (cirrus_reorg): Use renamed functions.
12002         (note_invalid_constants): Change from a void function to bool.
12003         Add an extra parameter, saying whether the fixups should be
12004         pushed.  Return true if fixups are needed.
12005         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
12006         of CIRRUS_NO with CIRRUS_NOT.
12007         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
12008         other floating point co-processors can also affect this.
12009         * config/arm/arm.md ("type" attribute): Add mav_farith and
12010         mav_dmult.  Replace references to "cirrus_type" attribute with
12011         "type".
12012         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
12013         ("cirrus_type" attribute): Delete - use "type" instead.
12014         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
12015         'normal'.
12016
12017 2003-02-25  Jan Hubicka  <jh@suse.cz>
12018
12019         * objc-act.c: Include cgraph.h
12020         (mark_referenced_methods): New function.
12021         (objc_init): Call it.
12022         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
12023
12024         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
12025         mode.
12026
12027         * optabs.c (expand_fix): Do not widen the input operand.
12028
12029         * expr.c (emit_group_store):  Fix crash when converting single
12030         register into complex register.
12031
12032         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
12033         * alias.c: Include timevar.h
12034         (init_alias_analysis):  Set timevar
12035         * jump.c: Include timevar.h
12036         (rebuild_jump_labels):  Set timevar
12037         * regcalss.c: Include timevar.h
12038         (reg_scan):  Set timevar
12039         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
12040
12041 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12042
12043         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
12044
12045         * Makefile.in (loop-unroll.o): New.
12046         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
12047         (unroll_and_peel_loops): Declare.
12048         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
12049         flag_old_unroll_loops.
12050         * loop.c (loop_invariant_p): Ditto.
12051         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
12052         flag_old_unroll_all_loops.
12053         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
12054         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
12055         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
12056         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
12057         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
12058         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
12059         PARAM_MAX_ONCE_PEELED_INSNS): New.
12060         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
12061         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
12062         instead of old one.
12063         (flag_peel_loops): New.
12064         (lang_independent_options): The new flags added.
12065         (rest_of_compilation): Call new unroller.
12066         (process_options): Setup flags for coexistence of old and new unroller.
12067         * doc/invoke.texi: Document new options.
12068         * doc/passes.texi: Document new unroller pass.
12069
12070 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
12071
12072         * fixinc/fixincl.x: Regenerate
12073
12074 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
12075
12076         * function.c (assign_parms): Set reg_attrs for parameters passed in
12077         registers.
12078
12079 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
12080
12081         PR target/9681
12082         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
12083
12084 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
12085
12086         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
12087         pseudo-op.
12088
12089 2003-02-25  Roger Sayle  <roger@eyesopen.com>
12090
12091         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
12092         * cse.c (invalidate_skipped_set):  Likewise.
12093         * integrate.c (subst_constants):  Likewise.
12094         * jump.c (reversed_comparison_code_parts):  Likewise.
12095         * loop.c (canonicalize_condition):  Likewise.
12096         * simplify-rtx.c (simplify_relational_operation):  Likewise.
12097
12098 2003-02-25  Roger Sayle  <roger@eyesopen.com>
12099
12100         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
12101         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
12102         the appropriate macro to define built-in function.
12103         (fmod,fmodf,fmodl): New built-in functions.
12104
12105         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
12106
12107 2003-02-25  Richard Henderson  <rth@redhat.com>
12108
12109         * config/i386/i386.c (function_arg): Pass variable sized
12110         structures correctly on the stack.
12111
12112 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
12113
12114         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
12115         does not reduce the cost of SET.
12116
12117 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12118
12119         PR target/9732
12120         * config/rs6000/rs6000.c (first_reg_to_save): Handle
12121         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
12122         (rs6000_emit_prologue): Likewise.
12123         (rs6000_emit_epilogue): Likewise.
12124         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
12125         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
12126
12127 2003-02-25  Richard Henderson  <rth@redhat.com>
12128
12129         * real.c (real_to_integer2): Force overflow result only for
12130         unsigned overflow.
12131
12132 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
12133
12134         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
12135
12136 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
12137             Richard Henderson  <rth@redhat.com>
12138
12139         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
12140         there is no similar load.
12141
12142 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
12143             Richard Henderson  <rth@redhat.com>
12144
12145         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
12146         sched-rgn.c.
12147         (add_forward_dependence): New function prototype.
12148
12149         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
12150         sched-init.h.
12151         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
12152         them to haifa-sched.c.
12153
12154         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
12155         haifa_classify_insn): Move them from sched-rgn.c.
12156
12157         * sched-deps.c (add_dependence): Return flag of creating a new
12158         entry.
12159         (add_forward_dependence): New function.
12160         (compute_forward_dependences): Use the function.
12161
12162         * sched-ebb.c (earliest_block_with_similiar_load): New function.
12163         (add_deps_for_risky_insns): New function.
12164         (schedule_ebb): Call the function.
12165
12166 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
12167
12168         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
12169         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
12170
12171         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
12172         opaque types fail.
12173
12174         * c-typeck.c (comptypes): Change call to vector_types_compatible
12175         to vector_opaque_p.
12176         (convert_for_assignment): Call vector_opaque_p instead of
12177         vector_types_compatible.
12178         (really_start_incremental_init): Disallow initialization of opaque
12179         types.
12180
12181         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
12182         Define TARGET_VECTOR_OPAQUE_P.
12183         (TARGET_INITIALIZER): Same.
12184
12185         * target.h (struct gcc_target): Remove vector_types_compatible.
12186         Add vector_opaque_p.
12187
12188         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
12189         Remove.
12190         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
12191         a vector type.  Change return type to bool.
12192         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
12193         (TARGET_VECTOR_OPAQUE_P): Define.
12194
12195         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
12196         target hook.
12197         Include target.h.
12198         (cp_parser_init_declarator): Fix typo in function comments.
12199
12200 2003-02-25  Jan Hubicka  <jh@suse.cz>
12201
12202         * Makefile.in (lcm.o):  Add dependency on function.h
12203         * lcm.c (function.h): Include.
12204         * i386.c (machine_function, ix86_stack_locals,
12205         * ix86_save_varrargs_registers) : Move to
12206         ...
12207         * i386.h (machine_function, ix86_stack_locals,
12208         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
12209         (ix86_optimize_mode_switching): New.
12210         * i386.md (fix patterns): Set ix86_optimize_mode_switching
12211
12212 2003-02-25  Nick Clifton  <nickc@redhat.com>
12213
12214         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
12215         of fourth arg is 'fndecl' not 'indirect'.  Update comment
12216         describing the function's parameters.
12217
12218 2003-02-24  Jan Hubicka  <jh@suse.cz>
12219
12220         * combine.c (simplify_shift_const):  Fix previous patch.
12221
12222 2003-02-24  Jeff Law  <law@redhat.com>
12223
12224         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
12225         alternative.
12226         (testsi_1, testhi_1, testqi_1): Likewise.
12227
12228 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12229
12230         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
12231         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
12232         * doc/extend.texi (Tru64 Pragmas): Reflect this.
12233
12234         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
12235         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
12236         * fixinc/fixincl.x: Regenerate.
12237         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
12238         testcase.
12239         Fixes PR c/5059, c/6126, other/9671.
12240
12241 2003-02-24  Roger Sayle  <roger@eyesopen.com>
12242
12243         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
12244         from handle_braces in "%{...}".
12245
12246 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
12247
12248         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
12249         (prepare_move_operands): Handle TLS operands.
12250         (tls_symbolic_operand): New.
12251         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
12252         (legitimize_pic_address): Do nothing for the TLS symbol.
12253         (sh_encode_section_info): Handle TLS case.
12254         (sh_strip_name_encoding): Drop TLS encoding.
12255         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
12256         * config/sh/sh.h (SH_TLS_ENCODING): Define.
12257         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
12258         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
12259         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
12260         * config/sh/sh.md: Define TLS UNSPEC constants.
12261         (type): Add tls_load.
12262         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
12263         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
12264         ("tls_initial_exec"): New insn.
12265         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
12266         ("load_gbr"): New insn.
12267
12268         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
12269         * configure: Regenerate.
12270
12271 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
12272
12273         PR 9297, PR 9722
12274         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
12275         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
12276         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
12277         (enum block_op_methods): Reorder for better store_expr optimization.
12278         * expr.c (store_expr): Test bit 1 of "want_value" for call param
12279         stores, test bit 0 for original want_value meaning.  Pass
12280         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
12281         recursive calls, and calls to expand_param.
12282         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
12283         expected, set target to 0 rather than to subtarget.  Formatting.
12284
12285 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
12286
12287         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
12288
12289 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12290
12291         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
12292         new default behavior.
12293         * ggc-common.c: Include sys/resource.h.
12294         (ggc_rlimit_bound): New function.
12295         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
12296         defaults to account for rlimits.
12297
12298 2003-02-22  Richard Henderson  <rth@redhat.com>
12299
12300         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
12301
12302 2003-02-22  Kelley Cook <kelley@dwhoops.info>
12303
12304         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
12305         (ix86_tune_string): Rename from ix86_cpu_string.
12306
12307 2003-02-22  Kelley Cook <kelleycook@comcast.net>
12308
12309         * config/i386/i386.c: Replace "mcpu" with "mtune".
12310         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
12311         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
12312         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
12313         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
12314
12315 2003-02-23  Andreas Schwab  <schwab@suse.de>
12316
12317         * config.gcc: Delete references to m68k/t-linux and
12318         m68k/t-linux-aout.
12319         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
12320
12321 2003-02-22  Jan Hubicka  <jh@suse.cz>
12322
12323         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
12324         of track scheduling patch.
12325
12326 2003-02-22  Jan Hubicka  <jh@suse.cz>
12327
12328         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
12329         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
12330
12331 2003-02-22  Jan Hubicka  <jh@suse.cz>
12332
12333         * c-decl.c (c_expand_body_1): Fix.
12334
12335 2003-02-22  Jan Hubicka  <jh@suse.cz>
12336
12337         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
12338
12339         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
12340         when not optimizing.
12341         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
12342         when not expensive.
12343         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
12344         optimizing;  Delete trivially dead insns early; fix optimize check.
12345
12346         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
12347         dependency on cgraph.h
12348         * c-decl.c: Include cgraph.h
12349         (finish_function): Update call of tree_inlinable_function_p.
12350         * c-objc-common.c: Include cgraph.h
12351         * cgraph.h: New file.
12352         * cgraphunit.c: New file.
12353         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
12354         (cgraph_nodes, cgraph_n_nodes): Globalize.
12355         (cgraph_finalize_function, cgraph_finalize_compilation_unit
12356         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
12357         Move into cgraphunit.c
12358         * tree-inline.c: Include cgraph.h
12359         * tree-inline.c: Include cgraph.h
12360
12361 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
12362
12363         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
12364         for copying a register.
12365
12366 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
12367
12368         PR other/3782
12369         * toplev.c (process_options): If flag_detailed_statistics is set,
12370         then set time_report as well.
12371
12372         PR c/8828
12373         * jump.c (never_reached_warning): Don't fall through BARRRIER
12374         insns.  Update comments to reflect what the function really does.
12375
12376 2003-02-21  Roger Sayle  <roger@eyesopen.com>
12377
12378         * fold-const.c (omit_one_operand): No longer static.
12379         * tree.h (omit_one_operand): Prototype here.
12380         (div_and_round_double): Keep fold-const.c prototypes together.
12381         * builtins.c (builtin_mathfn_code): Handle binary built-in
12382         funtions, such as "pow" and "atan2".
12383         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
12384         Simplify optimizations using "type" the builtin's return type.
12385
12386 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
12387
12388         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
12389         Fix functionalization typo.
12390
12391         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
12392         in an asm.
12393
12394 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12395
12396         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
12397         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
12398         documentation.
12399         * ggc-common.c: Include params.h
12400         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
12401         init_ggc_heuristics): New functions.
12402         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
12403         init_ggc_heuristics): Prototype.
12404         * toplev.c (print_version):  Output GGC heuristics.
12405         (parse_options_and_default_flags): Call init_ggc_heuristics.
12406
12407 2003-02-22  Jan Hubicka  <jh@suse.cz>
12408
12409         * i386.c (def_builtin):  Special case 64bit builtins.
12410         (MASK_SSE164, MASK_SSE264): New constants.
12411         (builtin_description): Add 64bit builtins.
12412         (ix86_init_mmx_sse_builtins): Likewise.
12413         * i386.h (enum ix86_builtins): Likewise.
12414         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
12415         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
12416         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
12417         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
12418         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
12419         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
12420         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
12421
12422 2003-02-22  Jan Hubicka  <jh@suse.cz>
12423
12424         * i386.c (builtin_description): Add __builtin_ia32_paddq and
12425         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
12426          and __builtin_ia32_psubq128.
12427         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
12428         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
12429         (mmx_adddi3, mmx_subdi3): New.
12430         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
12431         * xmmintrin.h (_mm_movepi64_pi64): New.
12432         (_mm_add_epi64, _mm_sub_epi64): fix.
12433         (_mm_mul_pu16): Rename to...
12434         (_mm_mul_su32): ... this one.
12435
12436         * builtins.c (expand_builtin_expect):  Do not predict
12437         flag_guess_branch_prob is not set.
12438         * c-semantics.c (expand_stmt): Likewise.
12439         * predict.c (predict_insn): Likewise.
12440         * stmt.c (expand_continue_loop): Likewise.
12441         * toplev.c (rest_of_compilation): Do not call
12442         note_prediction_to_br_prob and note_prediction_to_br_prob
12443         when not optimizing.
12444
12445 2003-02-21  Jan Hubicka  <jh@suse.cz>
12446
12447         * cfgrtl.c (commit_edge_insertions):  Call
12448         find_many_sub_basic_block only when some code has been emitted.
12449         (commit_edge_insertions_watch_calls): Bring into sync with
12450         commit_edge_insertions
12451
12452 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
12453
12454         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
12455
12456         * sh.md (binary_sf_op): Use extra constant operand instead of
12457         negating constant operand 4.
12458         * sh.c (sh_expand_binop_v2sf): Supply it.
12459
12460 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
12461
12462         * cpphash.h (struct lexer_state): Add directive_wants_padding.
12463         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
12464         for directives of type INCL.
12465         (glue_header_name, parse_include): Use get_token_no_padding.
12466         * cppmacro.c (replace_args): If directive_wants_padding,
12467         provide padding tokens.
12468
12469 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
12470
12471         * config/h8300/h8300.md (a peephole2): New.
12472
12473 2003-02-21  Jan Hubicka  <jh@suse.cz>
12474
12475         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
12476         (commit_edge_insertions): Call find_many_sub_basic_blocks
12477
12478         * reg-stack.c (convert_regs): Cleax aux for blocks.
12479
12480 2003-02-21  Jan Hubicka  <jh@suse.cz>
12481
12482         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
12483
12484 2003-02-21  Glen Nakamura  <glen@imodulo.com>
12485
12486         PR optimization/8613
12487         * builtins.c (expand_builtin): Emit postincrements before expanding
12488         builtin functions.
12489
12490 2003-02-21  Ben Elliston  <bje@redhat.com>
12491
12492         PR other/5634
12493         * doc/install.texi (Configuration): Explain using $HOME instead of
12494         the ~ metacharacter when referring to home directories.
12495
12496 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
12497
12498         * configure.in (TARGET_SYSTEM_ROOT): Set default to
12499         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
12500         '${exec_prefix}' (in addition to the expansion thereof) as
12501         relocatable.
12502         * configure: Rebuilt.
12503
12504 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
12505
12506         * config/h8300/h8300.md (addhi3_incdec): Change the name to
12507         *addhi3_incdec.
12508         (addsi3_incdec): Change the name to *addsi3_incdec.
12509
12510 2003-02-20  Roger Sayle  <roger@eyesopen.com>
12511
12512         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
12513
12514 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
12515
12516         PR fortran/9038
12517         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
12518         options to be ignored.
12519         (c_common_decode_option): Ignore them when preprocessing.
12520
12521 2003-02-20  Jan Hubicka  <jh@suse.cz>
12522
12523         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
12524         global variables.
12525         (lang_independent_options):  Add -fsched2-use-superblocks
12526         -fsced2-use-traces.
12527         (rest_of_compilation): Deal with it.
12528         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
12529         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
12530         Declare.
12531         * rtl.h (reg_to_stack):  Update prototype.
12532         * reg-stack.c (reg_to_stack): Return when something has changed;
12533         update liveness when executing after superblock scheduling.
12534
12535         * combine.c (simplify_shift_const):  Simplify few special cases
12536         into constants.
12537
12538 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
12539
12540         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
12541         (add.,subf.,neg.): Change attribute to fast_compare.
12542         All DFA descriptions updated.
12543
12544 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
12545
12546         Change base class access representation.
12547         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
12548         TREE_VIA_PRIVATE): Remove.
12549         (BINFO_BASEACCESSES): New binfo elt.
12550         (BINFO_BASEACCESS): New accessor.
12551         (BINFO_ELTS): Increase.
12552         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
12553         (access_public_node, access_protected_node,
12554         access_private_node): New global nodes.
12555         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
12556         * dbxout.c (dbxout_type): Adjust.
12557         * dwarf2out.c (gen_inheritance_die): Add access parameter.
12558         (gen_member_die): Adjust.
12559         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
12560         (output_type): Adjust.
12561         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
12562
12563         Change base class access representation. Share virtual base
12564         binfos.
12565         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
12566         call.
12567         * cp/class.c (build_base_path): Likewise.
12568         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
12569         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
12570         (make_new_vtable): Adjust.
12571         (force_canonical_binfo_r): Delete.
12572         (force_canonical_binfo): Delete.
12573         (mark_primary_virtual_base): Delete.
12574         (dfs_unshared_virtual_bases): Delete.
12575         (mark_primary_bases): Adjust.
12576         (maybe_warn_about_overly_private_class): Adjust.
12577         (dfs_base_derived_from): Delete.
12578         (base_derived_from): Follow the inheritance chain.
12579         (struct find_final_overrider_data): Add vpath member.
12580         (dfs_find_final_overrider): Adjust.
12581         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
12582         (find_final_overrider): Adjust.
12583         (update_vtable_entry_for_fn): Adjust.
12584         (modify_all_vtables): Adjust.
12585         (walk_subobject_offsets): Adjust.
12586         (layout_nonempty_base_or_field): Adjust.
12587         (layout_empty_base): Remove last parameter. Adjust.
12588         (build_base_field): Adjust.
12589         (build_base_fields): Adjust.
12590         (propagate_binfo_offsets): Remove last parameter. Adjust.
12591         (dfs_set_offset_for_unshared_vbases): Delete.
12592         (layout_virtual_bases): Adjust.
12593         (finish_struct_1): Adjust.
12594         (init_class_processing): Don't init access nodes.
12595         (dfs_get_primary_binfo): Delete.
12596         (get_primary_binfo): Adjust.
12597         (dump_class_hierarchy_r): Remove most derived arg, add IGO
12598         parameter. Adjust.
12599         (dump_class_hierarchy): Adjust.
12600         (finish_vtbls): Adjust.
12601         (get_original_base): Delete.
12602         (build_vtt_inits): Adjust.
12603         (dfs_build_secondary_vptr_vtt_inits): Adjust.
12604         (dfs_ctor_vtable_bases_queue_p): Adjust.
12605         (build_ctor_vtbl_group): Adjust.
12606         (dfs_accumulate_vtbl_inits): Adjust.
12607         (build_vtbl_initializer): Adjust.
12608         (build_vbase_offset_vtbl_entries): Adjust.
12609         (add_vcall_offset_vtbl_entries_1): Adjust.
12610         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
12611         (access_*_node): Remove.
12612         (CANONICAL_BINFO): Delete.
12613         (BINFO_UNSHARED_MARKED): Remove.
12614         (BINFO_MARKED): Set LANG_FLAG_0 directly.
12615         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
12616         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
12617         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
12618         Delete.
12619         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
12620         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
12621         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
12622         Delete.
12623         (BINFO_DEPENDENT_BASE_P): New.
12624         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
12625         index.
12626         (markedp, unmarkedp): Adjust.
12627         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
12628         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
12629         find_vbase_instance, binfo_for_vbase): Delete.
12630         (copied_binfo, original_binfo): Declare.
12631         (finish_base_specifier): Add virtual_p arg.
12632         (unshare_base_binfos): Delete.
12633         (copy_base_binfos): Declare.
12634         (reverse_path): Delete.
12635         * cp/decl.c (xref_basetypes): Access and virtuality passed
12636         differently. Don't copy direct base binfos here. Call
12637         copy_base_binfos.
12638         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
12639         (initialize_vtbl_ptrs): Adjust.
12640         (expand_member_init): Adjust.
12641         * cp/parser.c (cp_parser_base_specifier): Adjust.
12642         * cp/pt.c (instantiate_class_template): Adjust.
12643         (get_template_base_recursive): Adjust.
12644         * cp/rtti.c (get_pseudo_ti_init): Adjust.
12645         (get_pseudo_ti_desc): Adjust.
12646         * cp/tree.c (unshare_base_binfos): Rename to ...
12647         (copy_base_binfos): ... here, reimplement.
12648         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
12649         (reverse_path): Remove.
12650         * cp/typeck.c (get_delta_difference): Adjust error messages.
12651         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
12652         * cp/search.c (lookup_base_r): Adjust.
12653         (dynamic_cast_base_recurse): Adjust.
12654         (canonical_binfo): Remove.
12655         (dfs_canonical_queue): Remove.
12656         (dfs_assert_unmarked_p): Remove.
12657         (assert_canonical_unmarked): Remove.
12658         (shared_marked_p, shared_unmarked_p): Remove.
12659         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
12660         (dfs_access_in_type): Adjust.
12661         (access_in_type): Adjust.
12662         (dfs_accessible_queue_p): Adjust.
12663         (dfs_accessible_p): Adjust.
12664         (is_subobject_of_p_1, is_subobject_of_p): Remove.
12665         (struct lookup_field_info): Remove from_dep_base_p field.
12666         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
12667         (lookup_field_r): Remove dependent base code.
12668         (lookup_member): Likewise.
12669         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
12670         (dfs_unmarked_real_bases_queue_p): Remove.
12671         (dfs_marked_real_bases_queue_p): Remove.
12672         (dfs_skip_vbases): Remove.
12673         (dfs_get_pure_virtuals): Adjust.
12674         (markedp, unmarkedp): Adjust.
12675         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
12676         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
12677         (dfs_unmark): Adjust.
12678         (dfs_get_vbase_types):Remove.
12679         (dfs_build_inheritance_graph_order): Remove.
12680         (get_vbase_types): Remove
12681         (dfs_find_vbase_instance): Remove.
12682         (find_vbase_instance): Remove.
12683         (dfs_debug_unmarkedp): Adjust.
12684         (dependent_base_p): Remove.
12685         (dfs_push_type_decls): Adjust.
12686         (dfs_push_decls): Adjust.
12687         (dfs_no_overlap_yet): Adjust.
12688         (copied_binfo): New function.
12689         (original_binfo): New function.
12690         (binfo_for_vbase): Remove.
12691
12692         Change base class access representation.
12693         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
12694         (add_interface_do): Likewise.
12695
12696 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
12697
12698         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12699         * config/rs6000/power4.md (power4-store,power4-vecstore): New
12700         insn reservations.
12701         (power4-fpstore): Compact.
12702
12703 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
12704
12705         * config/h8300/h8300.md (*iorsi3_w): New.
12706
12707 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
12708
12709         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
12710         * rtl.c (reg_note_name): Likewise.
12711         * rtl.h (enum reg_note): Likewise.
12712         * doc/invoke.texi: Likewise.
12713         * doc/rtl.texi: Likewise.
12714
12715 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
12716
12717         * bb-reorder.c (find_traces_1_round): Fix comment typo.
12718
12719 2003-02-19  Roger Sayle  <roger@eyesopen.com>
12720
12721         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
12722         addition in the presence of signaling NaNs.
12723
12724 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
12725
12726         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
12727
12728 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
12729
12730         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
12731         ORing with 0xffff??00 with the highest bit of the ?? part set.
12732         (compute_logical_op_length): Update.
12733         (compute_logical_op_cc): Likewise.
12734
12735 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
12736
12737         * bb-reorder.c (find_traces_1_round): Fixed condition for small
12738         destination block with multiple predecessors.
12739         (connect_traces): Check whether the block is a start of trace.
12740
12741 2003-02-19  Jan Hubicka  <jh@suse.cz>
12742
12743         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
12744         * function.c (assign_params): Likewise.
12745         * arm-protos.h (arm_init_cumulative_args): Update prototype.
12746         * arm.c (arm_init_cumulative_args): Update function.
12747         * arm.h (INIT_CUMULATIVE_ARGS): Update.
12748         * avr-protos.h (init_cumulative_args): Update prototype.
12749         * avr.c (init_cumulative_args): Update function.
12750         * avr.h (INIT_CUMULATIVE_ARGS): Update.
12751         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
12752         * d30v.c (d30v_init_cumulative_args): Update function.
12753         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
12754         * frv-protos.h (frv_init_cumulative_args): Update prototype.
12755         * frv.c (frv_init_cumulative_args): Update function.
12756         * frv.h (INIT_CUMULATIVE_ARGS): Update.
12757         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
12758         * pa.h (INIT_CUMULATIVE_ARGS): Update.
12759         * sparc-protos.h (init_cumulative_args): Update prototype.
12760         * sparc.c (init_cumulative_args): Update function.
12761         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
12762         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
12763
12764 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
12765
12766         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
12767         (*ashiftsi_sextqi_7): Likewise.
12768
12769 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12770
12771         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
12772         ISO C99 and C++.
12773
12774         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
12775         for C++ on IRIX 6.5.1[89].
12776         * fixinc/tests/base/internal/sgimacros.h: New file.
12777
12778         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
12779         * fixinc/tests/base/internal/wchar_core.h: New file.
12780
12781         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
12782         socklen_t definition.
12783         * fixinc/fixincl.x: Regenerate.
12784         * fixinc/tests/base/sys/socket.h: New file.
12785         Fixes PR libgcj/9652.
12786
12787 2003-02-19  Jan Hubicka  <jh@suse.cz>
12788
12789         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
12790
12791 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
12792
12793         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
12794         align_jumps_max_skip and align_loops_max_skip.
12795
12796 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
12797
12798         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
12799         test size if named section.
12800
12801 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
12802
12803         * expr.c (expand_expr): Use gen_int_mode for the argument
12804         to gen_rtx_MULT.
12805
12806 2003-02-19  Jan Hubicka  <jh@suse.cz>
12807
12808         * i386.md (cosxf2):  Fix conditional.
12809
12810 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
12811
12812         * config/h8300/h8300.md (extendqisi2): Change to an expander.
12813         (*extendqisi2_h8300): New.
12814         (*extendqisi2_h8300hs): Likewise.
12815
12816 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
12817
12818         * config/h8300/h8300-protos.h: Update the prototype for
12819         split_adds_subs.  Remove the prototypes for
12820         const_int_le_2_operand and const_int_le_6_operand.
12821         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
12822         (const_int_le_2_operand): Remove.
12823         (const_int_le_6_operand): Likewise.
12824         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
12825         for const_int_le_2_operand and const_int_le_6_operand.
12826         * config/h8300/h8300.md: Update all uses of split_adds_subs.
12827         (a peephole2): New.
12828
12829 2003-02-18  Jan Hubicka  <jh@suse.cz>
12830
12831         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
12832         (cgraph_expand_function): Rewrite.
12833
12834 2003-02-18  Matt Austern <austern@apple.com>
12835
12836         * toplev.c, langhooks.c, langhooks-def.h: Move
12837         write_global_declarations from toplev.c to langhooks.c.
12838
12839 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
12840
12841         * config/h8300/h8300.c (general_operand_src): Always check
12842         MODE.
12843         (general_operand_dst): Likewise.
12844
12845 2003-02-18  Roger Sayle  <roger@eyesopen.com>
12846
12847         * convert.c (convert_to_real): Also optimize (float)log(x) into
12848         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
12849
12850 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
12851
12852         * config/sh/sh.c (unspec_caller_rtx_p): New.
12853         (sh_cannot_copy_insn_p): New.
12854         (TARGET_CANNOT_COPY_INSN_P): New.
12855
12856 2003-02-18  Richard Henderson  <rth@redhat.com>
12857
12858         * c-common.c (handle_used_attribute): Accept static data too.
12859
12860 2003-02-18  Nick Clifton  <nickc@redhat.com>
12861             Aldy Hernandez  <aldyh@redhat.com>
12862
12863         * testsuite/gcc.dg/20030218-1.c: New.
12864
12865         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
12866
12867         * target-def.h (TARGET_INITIALIZER): Add
12868         TARGET_VECTOR_TYPES_COMPATIBLE.
12869         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
12870
12871         * target.h (struct gcc_target): Add field vector_types_compatible.
12872
12873         * c-typeck.c (comptypes): Take into account
12874         TARGET_VECTOR_TYPES_COMPATIBLE.
12875         (convert_for_assignment): Same.
12876
12877         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
12878         (rs6000_spe_vector_types_compatible): New.
12879         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
12880
12881 2003-02-19  Andreas Schwab  <schwab@suse.de>
12882
12883         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
12884         * toplev.c: Include langhooks-def.h.
12885
12886 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
12887
12888         * config/mips/mips.h (enum processor_type): Sort entries
12889         alphabetically.
12890         * config/mips/mips.md (define_attr cpu): Sync with processor_type
12891         enum values, including adding entries that were missing.
12892
12893 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
12894
12895         * sh.c (calc_live_regs): Also check GET_CODE when checking if
12896         initial value for PR_REG is still the PR_REG register.
12897
12898 2003-02-18  Jim Wilson  <wilson@redhat.com>
12899
12900         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
12901         instruction in output template.
12902         (bsp_value): Change output template from string to C code, add %,
12903         before actual instruction.
12904         (flushrs): Mark as not predicable.
12905
12906 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
12907
12908         * inclhack.def (netbsd_bogus_semicolon): New fix.
12909         * fixincl.x: Rebuilt.
12910         * tests/base/ctype.h: Update.
12911
12912 2003-02-18  Roger Sayle  <roger@eyesopen.com>
12913
12914         * fold-const.c (negate_expr_p): New function to determine whether
12915         an expression can be negated cheaply.
12916         (fold) [MINUS_EXPR]: Use it to determine whether to transform
12917         -A - B into -B - A for floating point types.
12918
12919 2003-02-18  Roger Sayle  <roger@eyesopen.com>
12920
12921         * sbitmap.c (sbitmap_resize): New function.
12922         * sbitmap.h (sbitmap_resize): Prototype here.
12923         * recog.c (split_all_insns): Use sbitmap_resize.
12924
12925 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
12926
12927         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
12928         insn length.
12929         (extendqisi2): Likewise.
12930         (*extendhisi2_h8300): Likewise.
12931
12932 2003-02-18  Matt Austern <austern@apple.com>
12933
12934         * langhooks.h, langhooks-def.h: introduce new langhook,
12935         final_write_globals, with write_global_declarations as default.
12936         * toplev.c: Move invocation of wrapup_global_declarations from
12937         compile_file to new function, write_global_declarations.  Change
12938         compile_file to use final_write_globals hook.  Change
12939         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
12940         conditional.
12941
12942 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12943
12944         * pa.md: Correct and enhance comment.
12945
12946 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
12947
12948         * gcc.c (validate_switches): Don't scan past closing '}'.
12949
12950 2003-02-18  Ben Elliston  <bje@redhat.com>
12951
12952         PR c++/1607
12953         * doc/extend.texi (Function Attributes): Document the effect of
12954         the C++ "this" parameter on the counting of arguments for the
12955         "format" and "format_arg" attributes.
12956
12957 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
12958
12959         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
12960         (__ev_stdw): Same.
12961         (__ev_stdh): Same.
12962
12963 2003-02-17  Jan Hubicka  <jh@suse.cz>
12964
12965         * recog.c (split_all_insns):  Fix memory overflow.
12966
12967 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
12968
12969         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
12970         (cmphi): Likewise.
12971         (*cmphi_h8300): Likewise.
12972         (*cmphi_h8300hs): Likewise.
12973         (cmpsi): Likewise.
12974         (7 peephole2): Likewise.
12975
12976 2003-02-16  Jan Hubicka  <jh@suse.cz>
12977
12978         * c-typeck.c (build_c_cast):  Fold constant variables into
12979         initial values.
12980
12981 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12982
12983         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
12984         (Binaries): Ditto for Sinix/Reliant Unix.
12985
12986 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
12987
12988         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
12989         not overlap the final result register.
12990
12991 2003-02-16 Arend Bayer <arend.bayer@web.de>
12992            Richard Henderson  <rth@redhat.com>
12993
12994         PR c/8068
12995         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
12996         rearrange mult arguments for less recursion.
12997         (extract_muldiv): New.  Prevent runaway recursion.
12998
12999 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
13000
13001         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
13002         MASK_ALIGN_DOUBLE.
13003
13004 2003-02-15  Roger Sayle  <roger@eyesopen.com>
13005
13006         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
13007         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
13008         (ext_80387_constants_table): Global table of 80387 special constants
13009         guarded by ext_80387_constants_init flag when not initialized.
13010         (init_ext_80387_constants): New function to initialize this table.
13011         (standard_80387_constant_p): Extend to recognize extra 80387
13012         constants, in XFmode, on processors where this is a win.
13013         (standard_80387_constant_opcode): New function to return the
13014         opcode associated with standard_80387_constant_p.
13015         (standard_80387_constant_rtx): New function to return the XFmode
13016         CONST_DOUBLE associated with standard_80387_constant_p.
13017         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
13018
13019         * config/i386/i386-protos.h (standard_80387_constant_opcode):
13020         Prototype here.
13021         (standard_80387_constant_rtx): Likewise.
13022
13023         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
13024         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
13025         *movtf_integer): Simplify using new standard_80387_constant_opcode.
13026
13027 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
13028
13029         * doc/invoke.texi (Optimize Options): Correct @option syntax.
13030
13031 2003-02-15  Richard Henderson  <rth@redhat.com>
13032
13033         * Makefile.in (cfglayout.o): Depend on TARGET_H.
13034         * cfglayout.c: Include target.h.
13035         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
13036         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
13037         * target.h (struct gcc_target): Add cannot_copy_insn_p.
13038
13039         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
13040         (TARGET_CANNOT_COPY_INSN_P): New.
13041         (override_options): Revert 2003-02-08 hack.
13042
13043 2003-02-15  Richard Henderson  <rth@redhat.com>
13044
13045         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
13046         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
13047
13048 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
13049
13050         * config/rs6000/rs6000.h (processor_type): Add PPC440.
13051         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
13052         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
13053         TARGET_SCHED_VARIABLE_ISSUE): Define.
13054         (rs6000_use_dfa_pipeline_interface): New function.
13055         (rs6000_multipass_dfa_lookahead): New Function.
13056         (rs6000_variable_issue): New function.
13057         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
13058         (rs6000_issue_rate): Add PPC440.
13059         * config/rs6000/rs6000.md (unspec list): Correct typo.
13060         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
13061         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
13062         cmp, delayed_cr, mfcr, mtcr.
13063         (automata_option): Set "ndfa".
13064         (extendMMNN2): Update attributes.
13065         (movcc_internal1): Discourage move to non-cr0.  Update
13066         attributes.
13067         (movMM_update): Update attributes.
13068         (cmpMM_internal): Update attributes.
13069         (sCC CR materialization): Update attributes.
13070         (branch patterns): Do not discourage non-cr0.
13071         (cr logical patterns): Prefer destructive register allocation.
13072         Update attributes.
13073         (movesi_from_cr): Update attribute.
13074         (mtcrf_operation): Update attribute.
13075         (mtcrfsi): Update attribute.
13076         * config/rs6000/40x.md: New file.
13077         * config/rs6000/603.md: New file.
13078         * config/rs6000/6xx.md: New file.
13079         * config/rs6000/7450.md: New file.
13080         * config/rs6000/7xx.md: New file.
13081         * config/rs6000/mpc.md: New file.
13082         * config/rs6000/power4.md: New file.
13083         * config/rs6000/rios1.md: New file.
13084         * config/rs6000/rios2.md: New file.
13085         * config/rs6000/rs64.md: New file.
13086         [Some DFA descriptions based on work by Michael Hayes]
13087
13088 2003-02-15  Richard Henderson  <rth@redhat.com>
13089
13090         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
13091         successors with multiple predecessors.
13092         (connect_traces): Try harder to copy traces of length 1.
13093
13094         * function.h (struct function): Add computed_goto_common_label,
13095         computed_goto_common_reg.
13096         * function.c (free_after_compilation): Zap them.
13097         * stmt.c (expand_computed_goto): Use them to produce one
13098         indirect branch per function.
13099
13100 2003-02-15  Richard Henderson  <rth@redhat.com>
13101
13102         * cfgcleanup.c: Include params.h.
13103         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
13104         too many outgoing edges from a block.
13105         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
13106         * params.def (max-crossjump-edges): New.
13107         * doc/invoke.texi: Document it.
13108
13109 2003-02-15  Richard Henderson  <rth@redhat.com>
13110
13111         * recog.c (split_all_insns): Include new blocks in life update;
13112         do a global life update.
13113
13114 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
13115
13116         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
13117         Update copyright.
13118         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
13119         -mno-cygwin case.
13120
13121 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
13122
13123         PR optimization/7702
13124         * reload1.c (reload_cse_simplify_set): Honor
13125         CANNOT_CHANGE_MODE_CLASS.
13126
13127 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
13128
13129         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
13130         function.
13131         * config/mn10300/mn10300-protos.h: Declare it.
13132         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
13133         attribute cc of instructions that may use clr.
13134
13135 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
13136
13137         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
13138         (x - (x & y)) is found.
13139
13140 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13141
13142         * configure.in: Fix typo.
13143         * configure: Regenerate.
13144
13145 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
13146
13147         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
13148
13149 2003-02-13  Adam Nemet  <anemet@lnxw.com>
13150
13151         PR opt/2391
13152         * combine.c: Fix spelling in comment.
13153         (cached_nonzero_bits): New function.
13154         (cached_num_sign_bit_copies): New function.
13155         (nonzero_bits_with_known): New macro.
13156         (num_sign_bit_copies_with_known): New macro.
13157         (nonzero_bits1): Rename from nonzero_bits.  Add three new
13158         arguments.  Change calls from nonzero_bits to
13159         nonzero_bits_with_known.
13160         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
13161         three new arguments.  Change calls from num_sign_bit_copies to
13162         num_sign_bit_copies_with_known.
13163         (nonzero_bits): New macro.
13164         (num_sign_bit_copies): New macro.
13165         (update_table_tick): Don't traverse identical subexpression more
13166         than once.
13167         (get_last_value_validate): Likewise.
13168
13169 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
13170
13171         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
13172         * function.h (struct emit_status): Length of regno_pointer_align
13173         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
13174         not regno_pointer_align_length (i.e. length actually used, not
13175         length as allocated)
13176
13177         * config/i386/i386.c (struct stack_local_entry): New.
13178         (struct machine_function): Replace huge array with alist.
13179         (assign_386_stack_local): Change to match.
13180
13181 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
13182
13183         * inclhack.def (hpux_long_double): Tighten select and add bypass
13184         regexp.
13185         * fixincl.x: Rebuilt.
13186
13187 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
13188
13189         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
13190         edge and block ends with a jump insn it must be simple jump.
13191
13192 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
13193
13194         * Makefile.in (PREPROCESSOR_DEFINES): Add
13195         @TARGET_SYSTEM_ROOT_DEFINE@.
13196         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
13197         is specified or if building a cross compiler.
13198         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
13199         if the sysroot is under $exec_prefix.
13200         * configure: Regenerated.
13201         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
13202         defined.
13203         (struct default_include): Add add_sysroot field.
13204         (cpp_SYSROOT): Declare.
13205         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
13206         field.
13207         (cpp_SYSROOT): New variable.
13208         * cppinit.c (cpp_create_reader): Initialize
13209         CPP_OPTION (pfile, sysroot).
13210         (init_standard_includes): Handle add_sysroot.  Do not
13211         add unrelocated copies of relocated directories.
13212         (COMMAND_LINE_OPTIONS): Add -isysroot.
13213         (cpp_handle_option): Handle -isysroot.
13214         * cpplib.h (struct cpp_options): Add sysroot member.
13215         * gcc.c (The Specs Language): Update description of %I.
13216         (target_system_root_changed): New variable.
13217         (process_command): Conditionalize make_relative_prefix call
13218         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
13219         target_system_root_changed.
13220         (do_spec_1): Add -isysroot to %I.
13221         * doc/invoke.texi (Spec Files): Update description of %I.
13222         * doc/install.texi (--with-sysroot): Update comment about
13223         relocation.
13224
13225 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
13226
13227         * config/h8300/h8300.md (a peephole2): New.
13228
13229 2003-02-13  Robert Lipe <robertlipe@usa.net>
13230             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13231
13232         * doc/install.texi (Specific): Update three SCO-related URLs.
13233
13234 2003-02-13  Andreas Schwab  <schwab@suse.de>
13235
13236         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
13237         Parenthesize properly.
13238         (NPREDECESORS): Parenthesize properly.
13239
13240 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13241
13242         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
13243
13244 2003-02-12  Roger Sayle  <roger@eyesopen.com>
13245
13246         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
13247         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
13248
13249         * reg-stack.c (subst_stack_regs_pat): Add support for binary
13250         UNSPEC instructions (e.g. "fpatan").
13251
13252 2003-02-12  Mike Stump  <mrs@apple.com>
13253
13254         * varray.c (element_size): Remove.
13255         (uses_ggc): Remove.
13256         (element): Add.
13257         (varray_init): Use new interface.
13258         (varray_grow): Use new interface.
13259         (varray_clear): Use new interface.
13260
13261 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
13262
13263         * config/rs6000/spe.h: Add casts to the arguments of the following
13264         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
13265         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
13266         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
13267         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
13268         __ev_get_u16, __ev_get_s16.
13269
13270 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
13271
13272         * config/h8300/h8300.md (a peephole2): New.
13273
13274 2003-02-12  Jan Hubicka  <jh@suse.cz>
13275
13276         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
13277         (OBJS): Add callgraph.o
13278         (callgraph.o): New.
13279         * c-decl.c (expand_body_1): Break out from ...
13280         (expand_body): This one;  change calling convention
13281         (finish_function): Move some of expand_body logic here.
13282         (c_expand_deferred_function): Update call of expand_body
13283         (c_expand_stmt): Use c_expand_body_1.
13284         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
13285         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
13286         * c-tree.h (c_expand_body): Declare.
13287         * callgraph.c: New file.
13288         * flags.h (flag_unit_at_a_time): Declare.
13289         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
13290         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
13291         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
13292         * langhooks.h (struct lang_hooks_for_callgraph): New.
13293         (struct lang_hooks): Add callgraph field.
13294         * toplev.c (flag_unit_at_a_time): New.
13295         (lang_independent_options): Add flag_unit_at_a_time.
13296         (process_options): Disable unit-at-a-time mode for frontends not
13297         supporting callgraph.
13298         * tree-inline.c (typedef struct inline_data): Add "decl"
13299         (expand_call_inline): Update callgraph.
13300         (optimize_inline_calls): Set id.decl.
13301         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
13302         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
13303         cgraph_calls_p): Declare.
13304         * invoke.texi (-funit-at-a-time): Document
13305
13306 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
13307
13308         * config/rs6000/spe.h: Fix misc formatting.
13309         (__ev_create_ufix32_fs): Cast ev argument.
13310         (__ev_create_sfix32_fs): Same.
13311         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
13312         (__ev_get_ufix32_fs_internal): Same.
13313
13314 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
13315
13316         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
13317         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
13318
13319 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
13320
13321         * cpplib.c (do_include_common): Move warnings for
13322         #include_next and #import out to callers.  Use early-return
13323         instead of nested ifs.  Don't do check_eol here.
13324         (parse_include): Do check_eol here with the rest of the
13325         parsing stuff.
13326         (do_include_next, do_import): Now handle warnings.
13327
13328 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13329
13330         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
13331
13332 2003-02-12  Jan Hubicka  <jh@suse.cz>
13333
13334         * predict.c (estimate_probability):  Fix roundoff error.
13335
13336 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
13337
13338         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
13339         (two peephole2): New.
13340
13341 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
13342
13343         * config/h8300/h8300.md (several peephole2): Replace
13344         find_regno_note with peep2_reg_dead_p.
13345
13346 2003-02-11  Richard Henderson  <rth@redhat.com>
13347
13348         * gcse.c (lookup_set): Remove unused argument PAT.  Update
13349         both callers.
13350
13351 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
13352
13353         * diagnostic.c (real_abort): New.
13354         (diagnostic_report_diagnostic): Call real_abort on error.
13355         * diagnostic.h (diagnostic_abort_on_error): New.
13356         (struct diagnostic_context): Add abort_on_error field.
13357         * toplev.c (setup_core_dumping): New.
13358         (decode_d_option): Handle 'H' case.
13359         * doc/invoke.texi (Debugging Options): Document -dH.
13360
13361 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
13362
13363         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
13364         which refers to obsolete directories.
13365
13366 2003-02-11  Richard Henderson  <rth@redhat.com>
13367
13368         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
13369
13370 2002-10-21  Jan Hubicka  <jh@suse.cz>
13371
13372         * i386.c (contains_128bit_aligned_vector_p): New function.
13373         (ix86_function_arg_boundary): Properly align vector modes.
13374
13375 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
13376
13377         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
13378         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
13379         as a SET pattern.
13380
13381 2003-02-11  Roger Sayle  <roger@eyesopen.com>
13382
13383         * builtins.c:  Fix failure caused by commiting wrong patch.
13384
13385 2003-02-11  Dale Johannesen  <dalej@apple.com>
13386         * ra-build.c (compare_and_free_webs):  Relax checking.
13387         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
13388         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
13389
13390 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
13391
13392         PR optimization/9651
13393         * rtlanal.c (may_trap_p): Handle FIX.
13394
13395 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
13396
13397         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
13398         * doc/invoke.texi: Extra alias.
13399
13400 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
13401
13402         * config/rs6000/host-darwin.c: Fix comment.
13403
13404 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
13405
13406         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
13407         predicate for mod result.
13408
13409 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13410
13411         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
13412         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
13413         * fixincl.x: Rebuilt.
13414         * tests/base/stdlib.h: Update.
13415         * tests/base/ctype.h: New file.
13416
13417 2003-02-11  Jan Hubicka  <jh@suse.cz>
13418
13419         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
13420
13421 2003-02-11  Richard Henderson  <rth@redhat.com>
13422
13423         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
13424         appropriated as globals.
13425         (ix86_expand_clrstr): Similarly.
13426         * config/i386/i386.md (cmpstrsi): Similarly.
13427
13428 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
13429
13430         * config/h8300/h8300.md (a peephole2): Add a case of 255.
13431
13432 2003-02-11  Roger Sayle  <roger@eyesopen.com>
13433
13434         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
13435         (pow_optab, atan2_optab): Define corresponding macros.
13436         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
13437         * genopinit.c (optabs): Implement pow_optab and atan2_optab
13438         using pow?f3 and atan2?f3 patterns.
13439         * builtins.c (expand_errno_check): New function to update errno
13440         if necessary, split out from expand_builtin_mathfn.
13441         (expand_builtin_mathfn): Use expand_errno_check.
13442         (expand_builtin_mathfn_2): New function to handle expanding binary
13443         math functions, reusing the code in expand_errno_check.
13444         (expand_builtin): Handle the pow and atan2 math built-ins,
13445         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
13446         expand_builtin_mathfn_2.
13447
13448         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
13449
13450 2003-02-11  Jan Hubicka  <jh@suse.cz>
13451
13452         * combine.c (combine_simplify_rtx): Fix folding of
13453         nested float_truncates.
13454
13455 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
13456
13457         * config/h8300/h8300.md (a peephole2): Fix a typo.
13458
13459 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
13460
13461         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
13462         register number.
13463
13464 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
13465
13466         * config/h8300/h8300-protos.h: Add a prototype for
13467         gtuleu_operator.
13468         * config/h8300/h8300.c (gtuleu_operator): New.
13469         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
13470         * config/h8300/h8300.md (a peephole2): New.
13471
13472 2003-02-11  Jan Hubicka  <jh@suse.cz>
13473
13474         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
13475
13476 2003-02-11  Jan Hubicka  <jh@suse.cz>
13477
13478         * predict.c (choose_function_section): Choose sections correctly.
13479
13480 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13481
13482         * reload1.c (first_label_num): New.
13483         (reload): Index offsets_known_at and offsets_at using difference of
13484         label number and first label number.  Don't use offset pointers.
13485         (set_label_offsets, set_initial_label_offsets): Likewise.
13486
13487 2003-02-10  Roger Sayle  <roger@eyesopen.com>
13488
13489         * mips-tfile.c (init_file): Add missing initializers in the
13490         "#ifdef __alpha" case.
13491         (file_offset, max_file_offset): Declare as unsigned long.
13492         (write_varray): Cast to "unsigned long" in comparisons against
13493         either file_offset or max_file_offset.
13494         (write_object): Likewise.
13495         (read_seek): Likewise.
13496         (copy_object): Likewise. Declare "ifd" as int to match its use
13497         in add_ext_symbol, and avoid signed/unsigned conditional warning.
13498
13499 2003-02-10  Nick Clifton  <nickc@redhat.com>
13500             Aldy Hernandez  <aldyh@redhat.com>
13501
13502         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
13503         override options which have been specified on the command line.
13504
13505 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
13506
13507         * config/h8300/h8300.md (abssf2): New.
13508         (*abssf2_h8300): Likewise.
13509         (*abssf2_h8300hs): Likewise.
13510
13511 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
13512
13513         * tree.c (build_tree_list):  Fix parameter names in comment.
13514
13515 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
13516
13517         * config/rs6000/ppc64-fp.c: New file.
13518         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
13519
13520 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
13521
13522         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
13523         * bb-reorder.c (make_reorder_chain): Deleted.
13524         (make_reorder_chain_1): Deleted.
13525         (find_traces): New function.
13526         (rotate_loop): New function.
13527         (mark_bb_visited): New function.
13528         (find_traces_1_round): New function.
13529         (copy_bb): New function.
13530         (bb_to_key): New function.
13531         (better_edge_p): New function.
13532         (connect_traces): New function.
13533         (copy_bb_p): New function.
13534         (get_uncond_jump_length): New function.
13535         (reorder_basic_blocks): Use new functions (Software Trace Cache).
13536         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
13537         boundaries.
13538
13539 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
13540
13541         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
13542
13543 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
13544
13545         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
13546         (DECL_LIVE_RANGE_RTL): Remove.
13547
13548 2003-02-10  Nick Clifton  <nickc@redhat.com>
13549
13550         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
13551         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
13552         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
13553         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
13554         config/arm/freebsd.h, config/arm/linux-elf.h,
13555         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
13556         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
13557         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
13558         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
13559         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
13560         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
13561         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
13562         and reformat as appropriate.
13563
13564 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
13565
13566         * config/h8300/clzsi2.c: Remove.
13567         * config/h8300/ctzsi2.c: Likewise.
13568         * config/h8300/paritysi2.c: Likewise.
13569         * config/h8300/popcountsi2.c: Likewise.
13570         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
13571         ctzsi2, paritysi2, and popcountsi2.
13572
13573 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
13574             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
13575
13576         PR c/7741
13577         * c-decl.c (duplicate_decls): Discard the initializer of the
13578         new decl when the types are conflicting.
13579
13580 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
13581
13582         * Makefile.in (sreal.o): Added.
13583         (predict.o): Depends on sreal.h instead of real.h.
13584         * sreal.c: New file.
13585         * sreal.h: New file.
13586         * predict.c: Use sreal.c instead of real.c.
13587
13588 2003-02-10  Nick Clifton  <nickc@redhat.com>
13589
13590         * Contributed support for the Cirrus EP9312 "Maverick"
13591         floating point co-processor.  Written by Aldy Hernandez
13592         <aldyh@redhat.com>.
13593         (config/arm/arm.c): Add Cirrus support.
13594         (config/arm/arm.h): Likewise.
13595         (config/arm/aout.h): Likewise.
13596         (config/arm/arm.md): Likewise.
13597         (config/arm/arm-protos.h): Likewise.
13598         (config.gcc): Likewise.
13599         (doc/invoke.texi): Describe new -mcpu value and new
13600         -mcirrus-fix-invalid-insns switch,
13601         (cirrus.md): New file.
13602
13603 2003-02-10  Jan Hubicka  <jh@suse.cz>
13604
13605         * combine.c (combine_simplify_rtx): Simplify using
13606         (float_truncate (float x)) is (float x)
13607         (float_extend (float_extend x)) is (float_extend x).
13608
13609 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
13610
13611         * calls.c (try_to_integrate): Tidy stack_usage_map access.
13612         (emit_library_call_value_1): Likewise.  Formatting.
13613         (store_one_arg): Likewise.
13614
13615 2003-02-09  Nick Clifton  <nickc@redhat.com>
13616             Aldy Hernandez  <aldyh@redhat.com>
13617
13618         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
13619         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
13620         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
13621         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
13622         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
13623         docs.  Add range test for immediate value.
13624
13625 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
13626
13627         Rename spe_evxor to xorv2si3.
13628         (xorv4hi3): New.
13629         (xorv1di3): New.
13630
13631 2003-02-10  Glen Nakamura  <glen@imodulo.com>
13632
13633         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
13634         tag.
13635
13636 2003-02-10  Jan Hubicka  <jh@suse.cz>
13637
13638         * i386.c (vector_move_operand): New predicate.
13639         (ix86_expand_vector_move): Be happy about 0.
13640         * i386.h (PREDICATE_CODES): Add sse-move_operand.
13641         * i386.md (mov*_internal): Add 'C' alternative.
13642
13643 2003-02-09  Jan Hubicka  <jh@suse.cz>
13644
13645         * i386.md (floathi*): Deal with SSE.
13646
13647 2003-02-09  Jan Hubicka  <jh@suse.cz>
13648
13649         * simplify-rtx.c (simplify_unary_operation,
13650         simplify_binary_operation):  Deal with vector modes
13651         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
13652
13653 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
13654
13655         * toplev.c (rest_of_compilation): Recompute register usage after
13656         split_all_insns.
13657
13658 2003-02-09  Richard Henderson  <rth@redhat.com>
13659
13660         * libgcc-std.ver (__clztf2): New.
13661         (__ctztf2, __popcounttf2, __paritytf2): New.
13662         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
13663         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
13664         adjust code to match the different type sizes.
13665         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
13666         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
13667
13668         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
13669         TImode; select word_mode and twice that.
13670         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
13671         select the modes from float, double, and long double.
13672         (init_optabs): Remove duplicate initializations.
13673
13674 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
13675
13676         * doc/install.texi: Squeeze and streamline section on
13677         testing and regression checking.
13678
13679 2003-02-09  Jan Hubicka  <jh@suse.cz>
13680
13681         * i386.md (ahi?v*3): Set third operand type to TImode.
13682         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
13683
13684         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
13685         integer mode.
13686
13687         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
13688         Change code so they are arithmetic expressions now.
13689         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
13690         simplify_ternary_operation): Deal with VEC_* expressions.
13691
13692         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
13693
13694 2003-02-08  Jan Hubicka  <jh@suse.cz>
13695
13696         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
13697         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
13698         possibly got duplicated.
13699
13700 2003-02-08  Richard Henderson  <rth@redhat.com>
13701
13702         * config/alpha/alpha.c (override_options): Turn off explicit
13703         relocs until post-peep2 code duplication resolved.
13704
13705 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
13706
13707         * optabs.c (expand_unop): Widen clz properly when clz is done
13708         via libcall.
13709
13710 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
13711
13712         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
13713         * config/h8300/crti.asm: Likewise.
13714         * config/h8300/crtn.asm: Likewise.
13715         * config/h8300/ctzsi2.c: Likewise.
13716         * config/h8300/fixunssfsi.c: Likewise.
13717         * config/h8300/h8300-protos.h: Likewise.
13718         * config/h8300/h8300.c: Likewise.
13719         * config/h8300/h8300.h: Likewise.
13720         * config/h8300/h8300.md: Likewise.
13721         * config/h8300/paritysi2.c: Likewise.
13722         * config/h8300/popcountsi2.c: Likewise.
13723         * config/h8300/rtems.h: Likewise.
13724
13725 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13726
13727         * doc/invoke.texi: Documentation for my previous commit.
13728         * doc/passes.texi: Ditto.
13729
13730 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13731
13732         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
13733         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
13734         Declare.
13735         (DLTHE_FLAG_UPDATE_FREQ): New.
13736         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
13737         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
13738         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
13739         fix_bb_placement, fix_bb_placements, place_new_loop,
13740         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
13741         New static functions.
13742         (fix_loop_placement, can_duplicate_loop_p,
13743         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
13744         New functions.
13745
13746         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
13747         unswitch_loops): Declare.
13748         * loop-init.c: New file.
13749         * loop-unswitch.c: New file.
13750         * Makefile.in (loop-init.o, loop-unswitch.o): New.
13751         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
13752         * toplev.c (DFI_loop2): New dump.
13753         (flag_unswitch_loops): New.
13754         (lang_independent_options): Add it.
13755         (rest_of_compilation): Call new loop optimizer.
13756         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
13757
13758 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
13759
13760         * config/h8300/clzsi2.c: New.
13761         * config/h8300/ctzsi2.c: Likewise.
13762         * config/h8300/paritysi2.c: Likewise.
13763         * config/h8300/popcountsi2.c: Likewise.
13764         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
13765
13766 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
13767
13768         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
13769         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
13770         (ctzsi2): New pattern.
13771         (ffssi2): Use clz instead of unspec.
13772         (clzdi2): Rename from cntlzd2.
13773         (ctzdi2): New pattern.
13774         (ffsdi2): Use clz instead of unspec.
13775
13776 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
13777
13778         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
13779         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
13780         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
13781         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
13782
13783 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
13784
13785         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
13786
13787 2003-02-07  Richard Henderson  <rth@redhat.com>
13788
13789         PR 9226
13790         * gcse.c (local_cprop_find_used_regs): New.
13791         (local_cprop_pass): Use it.
13792
13793 2003-02-07  Fred Fish  <fnf@intrinsity.com>
13794
13795         * mips-tfile.c (parse_def): Parenthesize assignments to fix
13796         precedence bugs.
13797
13798 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
13799
13800         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
13801
13802 2003-02-07  Roger Sayle  <roger@eyesopen.com>
13803
13804         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
13805         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
13806         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
13807         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
13808         builtin functions (and their __builtin_* variants).
13809         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
13810         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
13811         when not optimizing.
13812
13813         * doc/extend.texi: Document new pow and atan2 builtins, and
13814         their float and long double variants.  Realphabetize builtins.
13815
13816 2003-02-07  Jan Hubicka  <jh@suse.cz>
13817
13818         * i386.md (sse2_nandv2di3): Fix.
13819
13820 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
13821
13822         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
13823         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
13824         definition.
13825         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
13826         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
13827
13828 2003-02-07  Jan Hubicka  <jh@suse.cz>
13829
13830         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
13831
13832 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
13833
13834         * cfg.c (dump_flow_info): Add back accidently deleted line.
13835
13836 2003-02-07  Andrey Petrov <petrov@netbsd.org>
13837
13838         * optabs.c (expand_float): Search wider integer modes first.
13839
13840 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
13841
13842         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
13843         based on preprocessor flag.
13844
13845 2003-02-07  Roger Sayle  <roger@eyesopen.com>
13846             Richard Henderson  <rth@redhat.com>
13847
13848         * gcse.c (implicit_sets): New.
13849         (compute_hash_table_work): Include them in hash table.
13850         (find_implicit_sets, fis_get_condition): New.
13851         (one_cprop_pass): Allocate and free implicit_sets; call
13852         find_implicit_sets before building hash table.
13853
13854 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
13855
13856         * config/t-netbsd (USER_H): Revert previous change.
13857
13858 2003-02-07  Gabor Greif  <ggreif@lucent.com>
13859
13860         * doc/c-tree.texi (Namespaces): Fix typo.
13861
13862 2003-02-07  Jan Hubicka  <jh@suse.cz>
13863
13864         * regrename.c (do_replace, find_oldest_value_reg,
13865         copyprop_hardreg_forward_1): Update register attributes.
13866
13867 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
13868
13869         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
13870         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
13871         variables starting with underscore.
13872         (struct unit_usage): New structure.
13873         (unit_usages, cycle_alt_unit_usages): New global variables.
13874         (check_unit_distribution_in_reserv): Remove it.
13875         (store_alt_unit_usage): New function.
13876         (check_regexp_units_distribution): Rewrite it.
13877
13878 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13879
13880         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
13881         target_cpu_default.
13882         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
13883         if not MASK_NO_SPACE_REGS.
13884         (output_call): Adjust return pointer, don't load new space register
13885         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
13886         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
13887         TARGET_NO_SPACE_REGS is true.
13888         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
13889         conditions.
13890         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
13891         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
13892         true.  Use bve when TARGET_64BIT is true.
13893
13894 2003-02-06  Richard Henderson  <rth@redhat.com>
13895
13896         * combine.c (nonzero_bits): Fix double break.
13897
13898 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
13899             Richard Henderson <rth@redhat.com>
13900
13901         PR c/9530
13902         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
13903         from functions that return a float to functions that don't.
13904
13905 2003-02-06  Jan Hubicka  <jh@suse.cz>
13906
13907         * i386.c (x86_inter_unit_moves): New variable.
13908         (ix86_secondary_memory_needed): Fix 64bit case, honor
13909         TARGET_INTER_UNIT_MOVES
13910         * i386.h (x86_inter_unit_moves): Declare.
13911         (TARGET_INTER_UNIT_MOVES): New macro.
13912         * i386.md (movsi_1): Cleanup constraints; disable
13913         when not doing inter-unit moves.
13914         (movsi_1_nointernunit): New.
13915         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
13916         (movdi_1_rex64_nointerunit): New.
13917         (mivsf_1): disable when not doing inter-unit moves.
13918         (movsf_1_nointerunit): New.
13919
13920         * basic-block.h (inside_basic_block_p):  Declare.
13921         * cfgbuild.c (inside_basic_block_p): Make global.
13922         * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
13923         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
13924         update CFG.
13925         (fix_basic_block_boundaries, add_missing_bbs): New.
13926         (rank): Use profile.
13927         (scheudle_ebbs): Rely on CFG; update coments.
13928
13929 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
13930
13931         * Makefile.in (host_hook_obj): New.
13932         (OBJS): Add $(host_hook_obj).
13933         (host_default.o): New rule.
13934         * config.gcc (host_hook_obj): New, default to host-default.o.
13935         (powerpc-*-darwin*): Use host-darwin.o.
13936         (out_host_hook_obj): New.
13937         * configure: Regenerate.
13938         * configure.in: Print information about out_host_hook_obj, substitute
13939         into output files.
13940         * host-default.c: New file.
13941         * hosthooks.h: New file.
13942         * toplev.c (general_init): Call host_hooks.extra_signals.
13943         * config/rs6000/host-darwin.c: New file.
13944         * config/rs6000/x-darwin: New file.
13945         * doc/hostconfig.texi: Add documentation for new host hook.
13946         Rearrange existing documentation.
13947
13948 2003-02-05  Roger Sayle  <roger@eyesopen.com>
13949
13950         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
13951         with *targetm.delegitimize_address.
13952         (rtl_for_decl_location): Likewise.
13953         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
13954         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
13955
13956         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
13957         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
13958         prototype.
13959         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
13960         i386_simplify_dwarf_addr.  Made static.  Prototyped.
13961         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
13962         i386_simplify_dwarf_addr to ix86_delegitimize_address.
13963         (ix86_find_base_term): Likewise.
13964         (maybe_get_pool_constant): Likewise.
13965
13966         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
13967         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
13968         prototype.
13969         * config/s390/s390.c (s390_delegitimize_address): Renamed from
13970         s390_simplify_dwarf_addr.  Made static.  Prototyped.
13971         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
13972
13973 2003-02-05  Richard Henderson  <rth@redhat.com>
13974
13975         PR c/8602
13976         * integrate.c (output_inline_function): Reset input_filename
13977         and lineno from the decl before rest_of_compilation.
13978
13979 2003-02-05  Richard Henderson  <rth@redhat.com>
13980
13981         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
13982         (CTZ_DEFINED_VALUE_AT_ZERO): New.
13983         * doc/rtl.texi, doc/tm.texi: Document them.
13984
13985         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
13986         of the value at zero properly.
13987         * fold-const.c (tree_expr_nonnegative_p): Likewise.
13988         * simplify-rtx.c (simplify_unary_operation): Likewise.
13989
13990         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
13991         (CTZ_DEFINED_VALUE_AT_ZERO): New.
13992
13993         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
13994         (TARGET_EXPAND_BUILTIN): Remove.
13995         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
13996         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
13997         (enum arm_builtins): Remove.
13998         * config/arm/arm.md (UNSPEC_CLZ): Remove.
13999         (clzsi2): Rename from clz; use clz instead of unspec.
14000         (ctzsi2): New.
14001         * config/arm/arm-protos.h: Update.
14002
14003 2003-02-05  Jan Hubicka  <jh@suse.cz>
14004
14005         * i386-protos.h (x86_emit_floatuns):  Declare.
14006         * i386.c (x86_emit_floatuns): New global function.
14007         * i386.md (floatunssisf2, floatunsdisf2,
14008         floatunsdidf2):  New patterns.
14009
14010 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14011
14012         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
14013
14014 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
14015
14016         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
14017           config/ia64/linux.h
14018
14019 2003-02-05  Roger Sayle  <roger@eyesopen.com>
14020
14021         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
14022
14023 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
14024
14025         PR optimization/8555
14026         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
14027         instead of aborting.
14028
14029 2003-02-04  Richard Henderson  <rth@redhat.com>
14030
14031         * config/i386/i386.md (UNSPEC_BSF): Remove.
14032         (ffssi2): Split into cmove and no_cmove insns and splitters;
14033         lose pentium float trick for now.
14034         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
14035         (ctzsi2, clzsi2, bsr): New.
14036
14037 2003-02-04  Richard Henderson  <rth@redhat.com>
14038
14039         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
14040         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
14041         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
14042         (ffsdi2): Use popcount instead of unspec.
14043         (popcountdi2): Rename from *popcnt.
14044         (ctzdi2, clzdi2, getf_exp_tf): New.
14045
14046 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
14047
14048         * genconfig.c (main): Generate CC0_P.
14049         * rtl.h (CC0_P): Remove.
14050
14051 2003-02-04  Richard Henderson  <rth@redhat.com>
14052
14053         * libgcc2.h, libgcc2.c (__ffsSI2): New.
14054         (__ffsDI2): Rename from __ffsdi2.
14055         * mklibgcc.in (lib2funcs): Add _ffssi2.
14056
14057 2003-02-04  Richard Henderson  <rth@redhat.com>
14058
14059         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
14060         rounds with a "bit table" lookup.
14061
14062 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14063
14064         * reload.c (find_reloads): Do not use the mode specified in the insn
14065         pattern as reload mode for address operands.  Do not generate optional
14066         reloads for operands where a mandatory reload was already pushed.
14067
14068 2003-02-04  Richard Henderson  <rth@redhat.com>
14069
14070         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
14071         builtins instead of inline assembly.
14072
14073 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
14074
14075         PR c/9376
14076         * libgcc2.c (__subvdi3): Fix typo.
14077
14078 2003-02-04  Jan Hubicka  <jh@suse.cz>
14079
14080         * i386.md (movti_rex64):  Fix constraint.
14081
14082 2003-02-04  Jan Hubicka  <jh@suse.cz>
14083
14084         * i386.md (vector push splitters):  Fix typo in resolving conflict.
14085
14086 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
14087
14088         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
14089
14090 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
14091
14092         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
14093         for recent libstdc++.  Remove formatting cruft.
14094
14095 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
14096
14097         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
14098         attribute even if input file name is absolute, but one of the
14099         includes is relative.
14100
14101 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
14102
14103         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
14104         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
14105         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
14106
14107 2003-02-03  Richard Henderson  <rth@redhat.com>
14108
14109         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
14110         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
14111         return type to "int".  Shuffle declarations and undef int trap.
14112         * libgcc2.h: Remove their declarations.
14113         * optabs.c (expand_unop): Force outmode to int for bitops.
14114
14115 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
14116
14117         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
14118         coprocessor registers before floating-point registers.
14119         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
14120         to account for a previously removed register.
14121         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
14122         Delete unused macros.
14123
14124 2003-02-03  Jan Hubicka  <jh@suse.cz>
14125
14126         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
14127         (mov*_internal): Fix predicates; require one of operands to not be
14128         memory.
14129         (SSE?MMX move expanders):  Fix predicates; force one of operands to
14130         register.
14131         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
14132         (movups/movupd/movdqu patterns): Force one of operands to not be
14133         memory.
14134
14135 2003-02-03  Roger Sayle  <roger@eyesopen.com>
14136
14137         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
14138         takes a single rtx and returns it unmodified.
14139         * hooks.h (hook_rtx_rtx_identity): Prototype here.
14140         * target.h (struct gcc_target): Add "delegitimize_address"
14141         field to target structure.
14142         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
14143         for delegitimize_address target using hook_rtx_rtx_identity.
14144         (TARGET_INITIALIZER): Initialize delegitimize_address field
14145         using TARGET_DELEGITIMIZE_ADDRESS macro.
14146         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
14147         extensions of constant pool references.  Use delegitimize_address
14148         to undo the obfuscation of "-fpic".
14149         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
14150
14151         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
14152         i386_simplify_dwarf_addr.
14153         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
14154         (maybe_get_pool_constant): Likewise.
14155
14156 2003-02-03  Jan Hubicka  <jh@suse.cz>
14157
14158         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
14159
14160 2003-02-03  Jan Hubicka  <jh@suse.cz>
14161
14162         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
14163
14164 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14165
14166         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
14167         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
14168
14169 2003-02-02  Andreas Schwab  <schwab@suse.de>
14170
14171         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
14172
14173 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
14174
14175         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
14176         (epilogue_insns): Likewise.
14177
14178 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14179
14180         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
14181
14182 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14183
14184         * pa-protos.h (attr_length_millicode_call): Remove second argument.
14185         (attr_length_indirect_call, attr_length_indirect_call,
14186         attr_length_save_restore_dltp): New prototypes.
14187         * pa.c (attr_length_millicode_call): Remove second argument.  Check
14188         INSN_ADDRESSES_SET_P in distance calculation.
14189         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
14190         INSN_ADDRESSES.
14191         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
14192         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
14193         Call attr_length_call directly.
14194         (attr_length_indirect_call, output_indirect_call,
14195         attr_length_save_restore_dltp): New functions.
14196         * pa.md (attr_length_millicode_call): Drop second argument from all
14197         patterns.
14198         (return_internal_pic): Delete.
14199         (return_external_pic): Remove use of PIC register and pic operand and
14200         flag checks.
14201         (epilogue): Use return_internal for both normal and pic code.
14202         (call, call_value): Emit new 32-bit pic patterns for symref and
14203         indirect calls.  Remove uses for arg pointer and pic register.
14204         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
14205         call_reg_pic_post_reload, call_val_symref_pic,
14206         call_val_symref_pic_post_reload, call_val_reg_pic,
14207         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
14208         Implement define_split and define_peephole2 patterns for pre reload
14209         patterns.
14210         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
14211         call_value_internal_reg_64bit): Shorten names.
14212         (all call patterns): Explicitly indicate registers used and clobbered.
14213         Use attr_length_indirect_call and attr_length_save_restore_dltp for
14214         attribute length calculation.  Move code generation for indirect calls
14215         to output_indirect_call.
14216         (sibcall, sibcall_value): Don't restore PIC register.
14217         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
14218         register retore.
14219
14220 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14221
14222         * doc/install.texi (Testing): Simplify and compress instructions
14223         concerning Dejagnu.
14224
14225 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14226
14227         * collect2.c (pexecute_pid): Rename to pid.
14228         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
14229         pid.
14230
14231 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
14232
14233         * doc/extend.texi (Function Attributes): Remove documentation
14234         for PowerPC Windows NT function attributes..
14235
14236 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
14237
14238         * dwarf2out.c (gen_type_die): Check for typedefs before calling
14239         for TYPE_MAIN_VARIANT.
14240
14241 2003-02-01  Richard Henderson  <rth@redhat.com>
14242
14243         * libgcc2.c: Include auto-host.h.
14244         (ATTRIBUTE_HIDDEN): New.
14245         (__clz_tab): Don't declare here for clz and ctz.
14246         (__clzsi2, __clzdi2): Use count_leading_zeros.
14247         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
14248         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
14249         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
14250         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
14251
14252 2003-02-01  Richard Henderson  <rth@redhat.com>
14253
14254         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
14255         to the conditional.
14256         (ashlsi3_1_zext splitter): Likewise.
14257
14258 2003-02-01  Richard Henderson  <rth@redhat.com>
14259
14260         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
14261         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
14262         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
14263         return type to Wtype.
14264
14265         * libgcc-std.ver (GCC_3.4): Fix inheritance.
14266
14267         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
14268         expander input constraint.
14269
14270 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
14271
14272         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
14273         OTI_parity.
14274         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
14275         * optabs.c (widen_clz, expand_parity): New.
14276         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
14277         for libcalls to clz, ctz, popcount, and parity.
14278         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
14279         parity_optab, and set up libfunc handlers.
14280         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
14281         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
14282         __popcount_tab): New.
14283         * libgcc2.h: Declare them.
14284         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
14285         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
14286         and parity_optab.
14287         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
14288         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
14289         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
14290         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
14291         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
14292         BUILT_IN_PARITYLL): New.
14293         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
14294         and add optab argument.
14295         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
14296         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
14297         * expr.c (expand_expr): Handle them.
14298         * fold-const.c (tree_expr_nonnegative_p): Likewise.
14299         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
14300         * reload1.c (eliminate_regs): Handle them.
14301         (elimination_effects): Likewise.
14302         * function.c (instantiate_virtual_regs_1): Likewise
14303         * genattrtab.c (check_attr_value): Likewise.
14304         * simplify-rtx.c (simplify_unary_operation): Likewise.
14305         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
14306         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
14307         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
14308         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
14309         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
14310         __builtin_arm_clz.
14311         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
14312         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
14313         * doc/extend.texi (Other Builtins): Add new builtins.
14314         * doc/md.texi (Standard Names): Add new patterns.
14315
14316 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
14317
14318         * reload.c: Revert 2003-01-31 change.
14319
14320 2003-02-01  Jan Hubicka  <jh@suse.cz>
14321
14322         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
14323
14324 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
14325
14326         * flags.h (flag_volatile): Remove declaration.
14327         (flag_volatile_global, flag_volatile_static): Likewise.
14328         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
14329         * toplev.c (flag_volatile): Remove definition.
14330         (flag_volatile_global, flag_volatile_static): Likewise.
14331         (f_options): Remove corresponding entries here.
14332         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
14333         or flag_volatile_static.
14334         * doc/invoke.texi: Remove documentation of -fvolatile,
14335         -fvolatile-global and -fvolatile-static.
14336
14337 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14338
14339         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
14340         updating of total_code_bytes from prologue to epilogue.
14341
14342 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
14343
14344         * reload.c (find_reloads): Do not use the mode specified in the insn
14345         pattern as reload mode for address operands.  Do not generate optional
14346         reloads for operands where a mandatory reload was already pushed.
14347         Generate optional reloads only in the final pass though find_reloads.
14348         (have_replacement_p): New function.
14349
14350 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14351
14352         * doc/install.texi (Testing): Remove a reference to our obsolete
14353         /testresults web pages and strip redundant information concerning
14354         test results.
14355         (Binaries): Refer to Microsoft Windows instead of listing all
14356         possible variants.
14357
14358 2003-02-01  Jan Hubicka  <jh@suse.cz>
14359
14360         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
14361         RTL chain.
14362
14363         * combine.c (simplify_set): Reverse order of ragumetns to
14364         REG_CANNOT_CHANGE_MODE_P
14365         * df.c (df_def_record_1): Likewise.
14366         * recog.c (register_operand): Likewise.
14367         * simplify-rtx.c (simplify_subreg): Likewise.
14368         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
14369         CANNOT_CHANGE_MODE_CLASS.
14370         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
14371         Likewise.
14372         * reload.c (push_reload): Likewise.
14373         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
14374         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
14375         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
14376         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
14377         * mips.c (mips_cannot_change_mode_class): Update.
14378         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
14379         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
14380         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
14381         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
14382         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
14383         * sh.c (sh_cannot_change_mode_class): Update.
14384         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
14385         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
14386
14387 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
14388
14389         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
14390         change to LINK_COMMAND_SPEC in gcc.c.
14391
14392 2003-01-31  Jan Hubicka  <jh@suse.cz>
14393
14394         PR c/9506
14395         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
14396
14397 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14398
14399         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
14400         duplicated code.
14401
14402 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
14403
14404         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
14405         (BINFO_ELTS): New #define.
14406         * stor-layout.c (finalize_record_size): Don't set them.
14407         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
14408         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
14409         (BINFO_LANG_ELTS): New #define.
14410         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
14411         * java/class.c (make_class): Use BINFO_ELTS.
14412         (set_super_info): Likewse.
14413         (add_interface_do): Likewise.
14414         * objc/objc-act.c (start_class): Use BINFO_ELTS.
14415
14416 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
14417
14418         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
14419         (times): Don't ever declare if not HAVE_TIMES.
14420         (clock): Don't ever declare if not HAVE_CLOCK.
14421
14422 2003-01-30  Richard Henderson  <rth@redhat.com>
14423
14424         * flow.c (update_life_info): Zap life info after cleanup_cfg.
14425         (regno_uninitialized): Use correct live at function entry set.
14426         (regno_clobbered_at_setjmp): Likewise.
14427
14428         * expr.c (store_expr): Promote all MEM intermediates to regs.
14429
14430 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
14431
14432         * config/arm/arm.c: Fix comment typos.
14433         * config/arm/arm.h: Likewise.
14434         * config/arm/netbsd-elf.h: Likewise.
14435         * config/arm/netbsd.h: Likewise.
14436
14437 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
14438
14439         * gengtype.c (struct walk_type_data): Add needs_cast_p.
14440         (walk_type): Set needs_cast_p in walk_type_data.
14441         (write_types_process_field): Supply casts when required to suppress
14442         warnings.
14443         (write_root): Cast gt_pch_n_S to suppress warning.
14444         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
14445         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
14446         when they might exist.
14447         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
14448         insn-conditions.o, and rs6000.o.
14449
14450 2003-01-30  Richard Henderson  <rth@redhat.com>
14451
14452         * ggc-page.c (G.context_depth_allocations): New.
14453         (G.context_depth_collections): New.
14454         (alloc_page): Set G.context_depth_allocations.
14455         (ggc_collect): Set G.context_depth_collections.
14456         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
14457         (ggc_pop_context): Early exit for no allocations or collections.
14458
14459 2003-01-30  Richard Henderson  <rth@redhat.com>
14460
14461         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
14462
14463 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
14464
14465         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
14466         size, the link register is always saved if any other register is
14467         saved.
14468
14469 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
14470
14471         * config/h8300/h8300-protos.h: Update the prototype for
14472         compute_plussi_cc.
14473         (cpp_reader): Declare before it is used.
14474         * config/h8300/h8300.c (compute_plussi_cc): Change the return
14475         type to int.
14476         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
14477         see an unknown H8 variant.
14478
14479 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
14480
14481         PR target/9316
14482         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
14483         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
14484         * config/rs6000/t-rtems: New file. multilib variants to match OS.
14485         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
14486         rs6000/t-ppcgas so we get the desired multilibs.
14487
14488 2003-01-30  Nick Clifton  <nickc@redhat.com>
14489
14490         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
14491         when popping saved IP register off the stack.
14492
14493 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
14494
14495         * config/rs6000/aix43.h: Fix comment typos.
14496         * config/rs6000/aix51.h: Likewise.
14497         * config/rs6000/aix52.h: Likewise.
14498         * config/rs6000/altivec.h: Likewise.
14499         * config/rs6000/rs6000.c: Likewise.
14500         * config/rs6000/rs6000.h: Likewise.
14501         * config/rs6000/rs6000.md: Likewise.
14502         * config/rs6000/spe.md: Likewise.
14503
14504 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
14505
14506         * c-common.c (builtin_define_float_constants): Define
14507         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
14508
14509 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
14510
14511         * config/sh/lib1funcs.asm: Fix comment typos.
14512         * config/sh/linux.h: Likewise.
14513         * config/sh/sh.c: Likewise.
14514         * config/sh/sh.md: Likewise.
14515
14516 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
14517
14518         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
14519
14520 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
14521
14522         * config/fp-bit.h (__make_dp): Declare if TMODES.
14523
14524 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
14525
14526         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
14527         general_operand_src and general_operand_dst.
14528
14529 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
14530
14531         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
14532         Return true for variable sized types.
14533         (rs6000_va_arg): Handle variable sized types passed by reference
14534         on non-SVR4 ABI.
14535
14536 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
14537
14538         * arm.c (arm_legtimize_address): New function.
14539         * arm-protos.h (arm_legtimize_address): Add prototype.
14540         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
14541         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
14542         do ... while (0)
14543
14544 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
14545
14546         PR bootstrap/9296
14547         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
14548         depended on it being defined until now.
14549
14550 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
14551
14552         PR target/9295
14553         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
14554         RTEMS code knows which C++ initialization style the toolset
14555         configuration is using.
14556
14557 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
14558
14559         PR bootstrap/9293
14560         * config/m68k/t-crtstuff: Replace spaces with tabs, add
14561          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
14562
14563 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
14564
14565         PR bootstrap/9292
14566         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
14567         RTEMS threads.
14568         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
14569
14570 2003-01-29  Nick Clifton  <nickc@redhat.com>
14571
14572         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
14573         not $(srcdir).
14574
14575 2003-01-29  Andrew Haley  <aph@redhat.com>
14576
14577         * tree-inline.c (walk_tree): Add CHAR_TYPE.
14578
14579 2003-01-29  Jan Hubicka  <jh@suse.cz>
14580
14581         * i386.md (subdi3_carry_rex64): Fix typo.
14582
14583 2003-01-28  Stan Shebs  <shebs@apple.com>
14584
14585         * coretypes.h (cpp_reader): Forward declare struct.
14586         * c-pragma.h (cpp_reader): Remove forward declaration.
14587         * hashtable.h (cpp_reader): Likewise.
14588         * scan.h (cpp_reader): Likewise.
14589         * tree.h (cpp_reader): Likewise.
14590         * config/darwin-protos.h (cpp_reader): Likewise.
14591         * config/arm/arm-protos.h (cpp_reader): Likewise.
14592         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
14593         struct cpp_reader in prototypes.
14594
14595 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
14596
14597         * doc/install.texi: Add documentation for installation into
14598         tooldirs and with DESTDIR.
14599
14600 2003-01-28  Richard Henderson  <rth@redhat.com>
14601
14602         * config.gcc (ia64*-*-aix*): Remove.
14603         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
14604         * config/ia64/unwind-aix.c: Remove file.
14605
14606 2003-01-28  Andreas Schwab  <schwab@suse.de>
14607
14608         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
14609         register.
14610         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
14611         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
14612         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
14613         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
14614         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
14615         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
14616         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
14617
14618 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
14619
14620         * combine.c (nonzero_bits): Fix check for negative divide operands.
14621
14622 2003-01-28  Richard Henderson  <rth@redhat.com>
14623
14624         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
14625         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
14626
14627 2003-01-28  Richard Henderson  <rth@redhat.com>
14628
14629         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
14630
14631         * config/cris/cris.c (cris_address_cost): Make static.
14632         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
14633         * config/cris/cris.h (ADDRESS_COST): Remove.
14634         * config/cris/cris-protos.h: Update.
14635
14636 2003-01-23  Mike Stump  <mrs@apple.com>
14637
14638         * regclass.c (init_reg_autoinc): New function.
14639         (regclass): Move initialization of forbidden_inc_dec_class from
14640         here...
14641         (init_regs): to here.  Avoids reinitialization for each function,
14642         saving compilation time.
14643
14644 2003-01-28  Jason Merrill  <jason@redhat.com>
14645
14646         * cpplib.h (struct cpp_options): Add warn_deprecated field.
14647         * cppinit.c (cpp_create_reader): Turn it on by default.
14648         * c-opts.c (c_common_decode_option): Set it.
14649         * cpplib.c (do_pragma_once): Only complain about #pragma once
14650         if warn_deprecated is set.
14651
14652 2003-01-28  Dale Johannesen  <dalej@apple.com>
14653
14654         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
14655         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
14656         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
14657
14658 2003-01-28  Richard Henderson  <rth@redhat.com>
14659
14660         * target.h (targetm.address_cost): New.
14661         * target-def.h (TARGET_ADDRESS_COST): New.
14662         (TARGET_RTX_COSTS): Uncomment.  Oops.
14663         * cse.c (address_cost): Use new target hook.
14664         (default_address_cost): New.
14665         * output.h (default_address_cost): Declare.
14666         * hooks.c (hook_int_rtx_0): New.
14667         * hooks.h (hook_int_rtx_0): Declare.
14668         * loop.c (combine_givs_p): Remove if 0 code.
14669         * system.h (ADDRESS_COST): Poison.
14670
14671         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
14672         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
14673         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
14674         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
14675         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
14676         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
14677         config/xtensa/xtensa.c, config/xtensa/xtensa.h
14678         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
14679         (ADDRESS_COST): Remove.
14680
14681         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
14682         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
14683         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14684         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
14685         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
14686         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
14687         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
14688         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
14689         config/mips/mips.c, config/mips/mips.h,
14690         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
14691         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
14692         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
14693         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
14694         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
14695         config/vax/vax.c, config/vax/vax.h
14696         (foo_address_cost): Make static.
14697         (TARGET_ADDRESS_COST): New.
14698         (ADDRESS_COST): Remove.
14699
14700         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
14701         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
14702         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
14703         config/stormy16/stormy16.h
14704         (ADDRESS_COST): Move code ...
14705         (foo_address_cost): ... here.
14706         (TARGET_ADDRESS_COST): New.
14707
14708         * config/m32r/m32r.c (m32r_address_cost): Remove.
14709         * config/m32r/m32r-protos.h: Update.
14710
14711         * config/mmix/mmix.c (mmix_address_cost): Remove.
14712         * config/mmix/mmix-protos.h: Update.
14713
14714         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
14715         mn10300_address_cost; move unsig allocation ...
14716         (mn10300_address_cost): ... here.
14717         (TARGET_ADDRESS_COST): New.
14718         * config/mn10300/mn10300-protos.h: Update.
14719         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
14720
14721         * doc/tm.texi: Update.
14722
14723 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
14724
14725         * haifa-sched.c (schedule_insn): Return necessary cycle advance
14726         after issuing the insn.
14727         (rank_for_schedule): Make a insn with /S the highest priority
14728         insn.
14729         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
14730         (choose_ready): Check SCHED_GROUP_P.
14731         (schedule_block): Advance cycle after issuing insn if it is
14732         necessary.  Don't reorder insns if there is an insn with /S.
14733         (set_priorities): Ignore schedule groups.
14734
14735         * sched-deps.c (remove_dependence, group_leader): Remove the
14736         functions.
14737         (add_dependence): Ignore schedule groups.
14738         (set_sched_group_p): Don't make copy of dependencies from previous
14739         insn of the schedule group.  Add anti-dependency to the previous
14740         insn of the schedule group.
14741         (compute_forward_dependences): Ignore schedule groups.
14742
14743         * sched-ebb.c (init_ready_list): Ignore schedule groups.
14744
14745         * sched-rgn.c (init_ready_list): Ditto.
14746         (can_schedule_ready_p): Ditto.
14747
14748 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
14749
14750         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
14751         register to another one.
14752
14753 2003-01-28  Richard Henderson  <rth@redhat.com>
14754
14755         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
14756
14757 2003-01-28  Roger Sayle  <roger@eyesopen.com>
14758
14759         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
14760
14761 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
14762
14763         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
14764         class contains a floating-point register, return the size of the
14765         mode in half words.
14766
14767 2003-01-28  Jan Hubicka  <jh@suse.cz>
14768
14769         * i386.c (ix86_carry_flag_operator):  New predicate.
14770         (fcmov_operator): Fix whitespace.
14771         (ix86_expand_carry_flag_compare):  Deal with floating point.
14772         (ix86_expand_int_movcc): Deal with fp; update insn expansion
14773         (ix86_expand_int_addcc): Likewise.
14774         (ix86_expand_strlensi_unroll_1): likewsie.
14775         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
14776         * i386.md (add?i_carry_rex64): Use new predicate.
14777         (sub?i3_carry_rex64): Likewise.
14778         (x86_mov?icc_0_m1*): Likewise.
14779
14780 2003-01-28  Andreas Schwab  <schwab@suse.de>
14781
14782         * cfgloopmanip.c (create_preheader): Initialize src to avoid
14783         warning.
14784
14785         * expmed.c (emit_store_flag): Fix cast to avoid sign
14786         comparison warning.
14787
14788         * combine.c (force_to_mode): Add cast to fix warning when
14789         STORE_FLAG_VALUE is negative.
14790
14791 2003-01-27  Richard Henderson  <rth@redhat.com>
14792
14793         * Makefile.in (cse.o): Depend on TARGET_H.
14794         * cse.c (rtx_cost): Use targetm.rtx_costs.
14795         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
14796         * doc/tm.texi: Update.
14797
14798         * target.h (targetm.rtx_costs): New.
14799         * target-def.h (TARGET_RTX_COSTS): New.
14800         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
14801         * hooks.h: Update.
14802
14803         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
14804         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
14805         * config/alpha/alpha.h (PROCESSOR_MAX): New.
14806         (CONST_COSTS, RTX_COSTS): Remove.
14807
14808         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
14809         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
14810         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
14811         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
14812         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
14813         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
14814         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
14815         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
14816         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
14817         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
14818         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
14819         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
14820         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
14821         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
14822         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
14823         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
14824         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
14825         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
14826         config/v850/v850.c, config/v850/v850.h,
14827         config/xtensa/xtensa.c, config/xtensa/xtensa.h
14828         (CONST_COSTS, RTX_COSTS): Move code ...
14829         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
14830
14831         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
14832         (arm_rtx_costs, TARGET_RTX_COSTS): New.
14833         * config/arm/arm-protos.h: Update.
14834         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
14835
14836         * config/avr/avr.h (CONST_COSTS): Move code ...
14837         * config/avr/avr.c (avr_rtx_costs): ... here.
14838         (default_rtx_costs): Make static.
14839         * config/avr/avr-protos.h: Update.
14840
14841         * config/h8300/h8300.c (const_costs): Make static.
14842         (h8300_and_costs, h8300_shift_costs): Likewise.
14843         * config/h8300/h8300-protos.h: Update.
14844
14845         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
14846         (CONST_COSTS): Move code ...
14847         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
14848         default_rtx_costs; update for signature change.
14849         * config/ip2k/ip2k-protos.h: Update.
14850
14851         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
14852         (CONST_COSTS): Move code ...
14853         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
14854         (TARGET_RTX_COSTS): New.
14855         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
14856         * config/m68hc11/m68hc11-protos.h: Update.
14857
14858         * config/m68k/m68k.c (const_int_cost): Make static.
14859         * config/m68k/m68k-protos.h: Update.
14860
14861         * config/mcore/mcore.c (mcore_const_costs): Make static.
14862         (mcore_and_cost, mcore_ior_cost): Likewise.
14863         * config/mcore/mcore-protos.h: Update.
14864
14865         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
14866         (mmix_rtx_cost_recalculated): Remove.
14867         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
14868         * config/mmix/mmix-protos.h: Update.
14869
14870         * config/sh/sh.c (shiftcosts): Make static.
14871         (addsubcosts, andcosts, multcosts): Likewise.
14872         * config/sh/sh-protos.h: Update.
14873
14874         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
14875         (sparc_rtx_costs): Make static; update for change in signature.
14876         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
14877         * config/sparc/sparc-protos.h: Update.
14878
14879         * config/v850/v850.c (const_costs): Make static.
14880         * config/v850/v850-protos.h: Update.
14881
14882         * config/vax/vax.h (RTX_COSTS): Remove.
14883         (CONST_COSTS): Move code ...
14884         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
14885         from vax_rtx_cost.
14886         (vax_rtx_costs, TARGET_RTX_COSTS): New.
14887
14888 2003-01-27  Richard Henderson  <rth@redhat.com>
14889
14890         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
14891         * config/vax/vax-protos.h: Update.  Really.
14892
14893 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
14894
14895         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
14896         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
14897         zero if no hardware floating point.
14898         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
14899         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
14900         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
14901         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
14902         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
14903         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
14904         even FP registers on N32 and N64.
14905         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
14906         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
14907         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
14908         even-register-like alignment to 128-bit arguments.
14909         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
14910         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
14911         on N32 or N64.
14912         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
14913         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
14914         (TPBIT): Set to tp-bit.c.
14915         (tp-bit.c): Create out of fp-bit.c.
14916
14917 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14918
14919         * c-parse.in: Remove '%expect 32' directive in objc mode.
14920
14921 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
14922
14923         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
14924         (LIBGCOV): New variable.
14925         (libgcc.mk): Add LIBGCOV.
14926         (LIBGCC_DEPS): Add libgcov.c.
14927         (libgcov.a): New target.
14928         (clean): Remove libgcov.a.
14929         (install-libgcc): Do libgcov too.
14930         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
14931         with libgcov.a.
14932         * libgcc2.c (L_gcov): Move into ...
14933         * libgcov.c: ... here. New file.
14934         * mklibgcc.in: Add libgcov rules.
14935         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
14936
14937         * doc/invoke.texi (profile-arcs, test-coverage): Update and
14938         clarify.
14939
14940         * profile.c (index_counts_file): Remove duplicate check for open file.
14941
14942 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
14943
14944         * gcc/doc/invoke.texi (Optimization Options): Group together
14945         optional and experimental flags.  Move trapv and bounds-check
14946         out of this section.  Group floating point flags together.
14947         (Code Gen Options): Move trapv and bounds-check to here.
14948
14949 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
14950
14951         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
14952
14953 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
14954
14955         PR optimization/9090
14956         * function.c (purge_addressof_1): After pushing an addressed register
14957         onto the stack, simplify the result.
14958
14959 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
14960
14961         * doc/extend.texi: Fix typo.
14962
14963 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
14964
14965         * doc/cppopts.texi: Fix typo.
14966         * doc/objc.texi: Likewise.
14967         * doc/passes.texi: Likewise.
14968
14969 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
14970
14971         * real.c (ibm_extended_format): Add 53 to minimum exponent.
14972         (encode_ibm_extended): Adjust.
14973
14974 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
14975
14976         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
14977         timevar_id enumerations.
14978
14979 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
14980
14981         * combine.c: Fix formatting.
14982
14983 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
14984
14985         * doc/gccint.texi: Update the copyright.
14986
14987 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
14988
14989         * doc/cpp.texi: Fix typos.
14990         * doc/extend.texi: Likewise.
14991         * doc/gty.texi: Likewise.
14992         * doc/install.texi: Likewise.
14993         * doc/passes.texi: Likewise.
14994         * doc/rtl.texi: Likewise.
14995         * doc/tm.texi: Likewise.
14996
14997 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
14998
14999         * config/ia64/fde-glibc.c: Fix comment typos.
15000         * config/ia64/hpux.h: Likewise.
15001         * config/ia64/ia64.c: Likewise.
15002         * config/ia64/ia64.h: Likewise.
15003         * config/ia64/unwind-ia64.c: Likewise.
15004
15005 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
15006
15007         * config/i386/i386-modes.def: Fix comment typos.
15008         * config/i386/i386.c: Likewise.
15009         * config/i386/i386.md: Likewise.
15010
15011 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
15012
15013         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
15014         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
15015         ASM_FINISH_DECLARE_OBJECT before defining it.
15016         * toplev.c (rest_of_decl_compilation):  Don't define
15017         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
15018         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
15019         parameters for DWARF2 targets because they _are_ used.
15020
15021 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
15022
15023         * fp-bit.h: Define macros for TFmode floating-point constants
15024         in IBM-extended TFmode types.
15025         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
15026         widths.
15027         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
15028         TFmode type.
15029
15030         * config/fp-bit.h: Define macros for TFmode floating-point
15031         constants in IEEE quad TFmode type.  Declare functions according
15032         to L_ macros.
15033         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
15034         (TFtype, TItype, UTItype): Define if TMODES is defined.
15035         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
15036         (F_T_BITOFF, D_T_BITOFF): Define.
15037         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
15038         guaranteed to be wide enough.
15039         * config/fp-bit.c: Check for L_ macros for tf functions.
15040         (__thenan_tf): New.
15041         (nan): Adjust.
15042         (pack_d, unpack_d): Support IEEE 854 quad type.
15043         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
15044         from FRAC_NBITS, FRAC_BITS and NGARDS.
15045         (usi_to_float): Cast constants to be shifted to fractype
15046         instead of assuming long long is wide enough.
15047         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
15048
15049 2003-01-26  Andreas Jaeger  <aj@suse.de>
15050
15051         * df.c: Remove prototype of unused function df_regno_rtl_debug.
15052
15053 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
15054
15055         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
15056         (DBBIT_FUNCS): Added _df_to_tf.
15057         (TPBIT_FUNCS): New.
15058         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
15059         (LIBGCC_DEPS): Added TPBIT.
15060         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
15061
15062         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
15063         been able to move the result to target.
15064
15065         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
15066         for the appropriate mode.
15067
15068         * calls.c (emit_library_call_value_1): Handle return values
15069         in a PARALLEL.
15070
15071         * rtl.c (get_mode_alignment): Moved to...
15072         * stor-layout.c: ... here.
15073
15074         * print-rtl.c (print_rtx): Don't print MEM details in
15075         GENERATOR_FILEs.
15076
15077 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
15078
15079         * df.h: Update comments, tidy formatting.
15080         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
15081         REVERSE, UNION, INTERSECTION.  All uses updated.
15082         (OLD_DF_INTERFACE): Remove.
15083         (struct insn_info): Remove commented out insn field.
15084         * df.c: Update comments, tidy formatting.
15085         (df_def_table_realloc): Remove.
15086
15087
15088 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
15089
15090         * calls.c (save_fixed_argument_area): Tidy.
15091         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
15092         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
15093         call chain loop at 1 if !try_tail_call.  Formatting.
15094         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
15095         Use save_fixed_argument_area and restore_fixed_argument_area.
15096
15097 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15098
15099         * df.c (df_uses_record): Handle CC0.
15100
15101 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
15102
15103         * reload.c (maybe_memory_address_p): New function.
15104         (find_reloads_address): Use it instead of memory_address_p.
15105
15106 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
15107
15108         * final.c (shorten_branches): Align the address of code label
15109         when computing initial lengths and addresses.
15110
15111 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
15112
15113         * config/m68hc11/m68hc11.md: Fix a comment typo.
15114
15115 2003-01-25  Andreas Jaeger  <aj@suse.de>
15116
15117         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
15118         TARGET_MACHO.
15119
15120 2003-01-25  Roger Sayle  <roger@eyesopen.com>
15121
15122         * gcse.c (bypass_last_basic_block): New global variable.
15123         (bypass_block):  Use redirect_edge_and_branch_force to redirect
15124         fall-through edges.  Use bypass_last_basic_block to determine
15125         which blocks have valid PRE information.
15126         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
15127
15128 2003-01-25  Jan Hubicka  <jh@suse.cz>
15129
15130         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
15131
15132 2003-01-25  Jan Hubicka  <jh@suse.cz>
15133                               Eric Botcazou <ebotcazou@libertysurf.fr>
15134         PR opt/8492
15135         * gcse.c (one_cprop_pass): Delete unreachable blocks.
15136
15137 2003-01-25  Richard Henderson  <rth@redhat.com>
15138
15139         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
15140         from ia64_aix_select_rtx_section.
15141         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
15142         instead of saving and restoring flag_pic.
15143         (ia64_rwreloc_unique_section): Similarly.
15144         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
15145         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
15146         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
15147         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
15148
15149 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
15150
15151         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
15152         comment.
15153
15154 2003-01-25  Richard Henderson  <rth@redhat.com>
15155
15156         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
15157
15158 2003-01-25  Kelley Cook <kelleycook@comcast.net>
15159
15160         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
15161
15162 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
15163
15164         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
15165         type for bitmaps.  Use unsigned long.
15166         (nBITMAP_WORD_BITS): New macro.
15167         (BITMAP_WORD_BITS): New macro.
15168         (rest of file): Use it.
15169         * bitmap.c: Use it.
15170
15171 2003-01-25  Richard Henderson  <rth@redhat.com>
15172
15173         2002-02-19  Robert Lipe  <robertlipe@usa.net>
15174         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
15175
15176 2003-01-25  Roger Sayle  <roger@eyesopen.com>
15177
15178         * builtins.c (purge_builtin_constant_p): Scan insn stream
15179         sequentially rather than by basic block.
15180         * function.c (purge_addressof): Simplify test with INSN_P.
15181
15182 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
15183
15184         * combine.c (simplify_comparison, case AND): Remove a redundant test.
15185
15186 2003-01-25  Roger Sayle  <roger@eyesopen.com>
15187
15188         * function.h (struct function): New field calls_constant_p.
15189         (current_function_calls_constant_p): New macro for above.
15190         * function.c (prepare_function_start): Initialize calls_eh_return
15191         and calls_constant_p.
15192         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
15193         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
15194         when the current_function_calls_constant_p.
15195         * integrate.c (expand_inline_function): Set calls_constant_p if
15196         the function being inlined has calls_constant_p set.
15197
15198 2003-01-25  Roger Sayle  <roger@eyesopen.com>
15199
15200         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
15201         optimizing, even if flag_gcse is true.
15202         * toplev.c (rest_of_compilation): purge_builtin_constant_p
15203         only needs to be called when "optimize > 0 && flag_gcse".
15204
15205 2003-01-25  Roger Sayle  <roger@eyesopen.com>
15206
15207         * stmt.c (emit_case_bit_tests): New routine to implement suitable
15208         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
15209         (case_bit_test_cmp): New comparison function for "qsort" to order
15210         case_bit_tests by decreasing number of destination nodes.
15211         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
15212         (expand_end_case_type): Use emit_case_bit_tests to implement
15213         suitable switch statments.
15214         (CASE_USE_BIT_TESTS): New target macro to disable the above.
15215         * Makefile.in (stmt.o): Add dependency on optab.h.
15216         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
15217
15218 2003-01-23  Andreas Schwab  <schwab@suse.de>
15219
15220         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
15221         __do_global_ctors_aux hidden global and don't put it in
15222         .init_array.
15223         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
15224         instead so that it comes first.
15225
15226 2003-01-25  Jan Hubicka  <jh@suse.cz>
15227
15228         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
15229         subreg is read/modify.
15230
15231 2003-01-25  Jan Hubicka  <jh@suse.cz>
15232
15233         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
15234         do libcall for large blocks.
15235         * i386.md (comi patterns): Set type to ssecomi.
15236         (sse2_unpck?pd): Fix mode of vec_select.
15237
15238         * cse.c: Include except.h
15239         (cse_set_around_loop):  Do not create new basic blocks.
15240         * Makefile.in (cse.o): Add dependnecy on except.h
15241
15242 2003-01-25  Jan Hubicka  <jh@suse.cz>
15243
15244         * builtins.c (fold_trunc_transparent_mathfn): New function.
15245         (fold_builtin): Use it.
15246         * convert.c (convert_to_real): Re-enable code to convert
15247         math functions; add support for floor familly functions.
15248
15249 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15250
15251         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
15252         dependencies on coretypes.h and $(TM_H).
15253
15254 2003-01-25  Jan Hubicka  <jh@suse.cz>
15255
15256         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
15257
15258 2003-01-24  Stuart Hastings  <stuart@apple.com>
15259
15260         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
15261
15262 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15263
15264         * config/c4x/c4x.md (UNSPEC_BU): New constants.
15265         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
15266         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
15267         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
15268         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
15269         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
15270         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
15271         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
15272
15273 2003-01-24  Jan Hubicka  <jh@suse.cz>
15274
15275         * emit-rtl.c (reg_attrs_htab): New static variable.
15276         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
15277         functions.
15278         (reg_rtx): Do not maintain regno_decl.
15279         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
15280         set_mem_attrs_from_reg): New global function.
15281         (init_emit): Do not initialize regno_decl.
15282         (init_emit_once): initialize reg_attrs_htab.
15283         * final.c (alter_subreg): Do not replace REG by SUBREG.
15284         (gen_mem_expr_from_op): Improve output.
15285         (output_asm_operands): Likewise.
15286         * function.c (assign_params): Do not set REGNO_DECL.
15287         * function.h (struct function): Kill regno_decl.
15288         (REGNO_DECL): Kill.
15289         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
15290         * print_rtl.c (print_rtx): Output REG information.
15291         * regclass.c (reg_scan_mark_refs): Update attrs.
15292         * reload1.c (alter_reg): Likewise.
15293         * simplify_rtx.c (simplify_subreg): Likewise.
15294         * stmt.c (expand_decl): Likewise.
15295         * rtl.def (REG): Add new field.
15296         * rtl.h (struct reg_attrs): New.
15297         (rtunion_def): At rtreg.
15298         (X0MEMATTR): Add checking.
15299         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
15300         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
15301         Declare.
15302         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
15303
15304 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
15305
15306         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
15307         (xtensa_emit_call, print_operand): Fix printf format strings
15308         to avoid compile warnings.
15309         (xtensa_function_prologue, xtensa_function_epilogue): Change type
15310         of "size" argument to HOST_WIDE_INT to fix compile warnings.
15311         * config/xtensa/xtensa-protos.h
15312         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
15313
15314 2003-01-24  Jan Hubicka  <jh@suse.cz>
15315
15316         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
15317         (implicit_built_in_decls): New global array.
15318         (mathfn_built_in): New global function.
15319         (fold_trunc_transparent_mathfn): New static function
15320         (expand_builtin_strstr, expand_bultin_strchr,
15321         expand_builtin_strpbrk, expand_builtin_strcpy,
15322         expand_builtin_strncpy, expand_bultin_strcmp,
15323         expand_bultin_strncat, expand_builtin_fputs): Use
15324         implicint_built_in_decls.
15325         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
15326         * builtins.def: Fix comments.
15327         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
15328         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
15329         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
15330         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
15331         (DEF_C99_C90RES_BULTIN): New.
15332         (*f, *l builtins): Update.
15333         * c-common.c (DEF_BUILTIN): Initialize implicit array.
15334         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
15335         * convert.c (strip_float_extensions): New global function.
15336         * tree.h (DEF_BUILTIN): Accept 10 arguments.
15337         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
15338         Declare.
15339         * java/builtins.c (define_builtin): Handle implicit.
15340         (DEF_BUILTIN): Update.
15341         * tm.texi (TARGET_C99_FUNCTIONS): Document.
15342         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
15343         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
15344         when using glibc2.
15345
15346 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
15347
15348         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
15349         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
15350         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
15351         * config/xtensa/crti.asm: New file.
15352         * config/xtensa/crtn.asm: New file.
15353         * config/xtensa/t-elf: New file.
15354         * config/xtensa/t-linux: New file.
15355         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
15356         Move various CFLAGS settings to new t-elf file.
15357
15358 2003-01-24  Richard Henderson  <rth@redhat.com>
15359
15360         PR optimization/4382
15361         * tree-inline.c (find_builtin_longjmp_call_1): New.
15362         (find_builtin_longjmp_call): New.
15363         (inlinable_function_p): Use it.
15364
15365 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15366
15367         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
15368         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
15369         * config/i386/i386.c (function_arg_pass_by_reference): New.
15370         (ix86_va_arg): Support arguments passed by reference.
15371
15372 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15373
15374         * cfgloopanal.c: New file.
15375         * cfgloopmanip.c: New file.
15376         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
15377         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
15378         cfglayout.o): Add dependency on cfgloop.h.
15379         (cfgloop.o): Add flags.h dependency.
15380         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
15381         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
15382         (struct loop, struct loops, flow_loops_find, flow_loops_update,
15383         flow_loops_free, flow_loops_dump, flow_loop_dump,
15384         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
15385         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
15386         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
15387         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
15388         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
15389         find_common_loop, verify_loop_structure): Declarations moved to ...
15390         * cfgloop.h: New file.
15391         * bb-reorder.c (reorder_basic_blocks): Modified.
15392         * cfglayout.c: Include cfgloop.h.
15393         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
15394         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
15395         (break_superblocks): New static function.
15396         (cfg_layout_finalize): Use it.
15397         (cfg_layout_split_block): New function.
15398         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
15399         fields.
15400         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
15401         changed.
15402         (cfg_layout_split_block): Declare.
15403         * cfgloop.c: Include cfgloop.h and flags.h.
15404         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
15405         get_loop_body): Avoid signed versus unsigned comparison warnings.
15406         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
15407         loop_latch_edge): Modified.
15408         (verify_loop_structure): Modified to use flags stored in loop structure;
15409         check irreducible loops.
15410         (cancel_loop, cancel_loop_tree): New functions.
15411         (estimate_probability): Use loop analysis code for predictions.
15412         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
15413         warnings.
15414         * doloop.c: Include cfgloop.h.
15415         * loop.c: Include cfgloop.h.
15416         * predict.c: Include cfgloop.h.
15417         * toplev.c: Include cfgloop.h.
15418         * unroll.c: Include cfgloop.h.
15419         * tracer.c (tracer): Modified.
15420
15421 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
15422
15423         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
15424
15425 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
15426
15427         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
15428         * configure: Regenerate.
15429
15430         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
15431         (tls_symbolic_reference_mentioned_p): Add prototype.
15432         (s390_tls_get_offset): Add prototype.
15433         (emit_pic_move): Remove prototype, replace by ...
15434         (emit_symbolic_move): .. this new prototype.
15435
15436         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
15437         (tls_model_chars): New global variable.
15438         (s390_encode_section_info): Encode TLS model.
15439         Use targetm.binds_local_p to check for local symbols.
15440         (s390_strip_name_encoding): New function.
15441         (TARGET_STRIP_NAME_ENCODING): Define.
15442
15443         (get_thread_pointer): New function.
15444         (legitimize_tls_address): New function.
15445         (legitimize_address): Call it.
15446         (emit_pic_move): Remove, replace by ...
15447         (emit_symbolic_move): ... this new function.
15448
15449         (larl_operand): Handle TLS operands.
15450         (legitimate_constant_p): Likewise.
15451         (s390_decompose_address): Likewise.
15452         (s390_cannot_force_const_mem): New function.
15453         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
15454
15455         (s390_output_symbolic_const): Handle TLS unspecs.
15456         (print_operand): New code 'J'.
15457         (machine_function): Add struct member 'some_ld_name'.
15458         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
15459
15460         (enum s390_builtin): New type.
15461         (code_for_builtin_64, code_for_builtin_31): New global variables.
15462         (s390_init_builtins, s390_expand_builtin): New functions.
15463         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15464
15465         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
15466         (ASM_OUTPUT_LABELREF): Define.
15467         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
15468
15469         * config/s390/s390.md: Define TLS UNSPEC constants.
15470         ("movdi", "movsi"): Handle TLS operands.
15471         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
15472         ("*tls_load_64", "*tls_load_31"): New insns.
15473         ("call_value_tls", "call_value_tls_exp"): New expanders.
15474         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
15475         "bas_tls_64", "bas_tls_31"): New insns.
15476
15477 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
15478
15479         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
15480         spe ABI is configured, if requested.
15481
15482 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15483
15484         * doc/passes.texi: Fix typo.
15485
15486 2003-01-24  Andreas Schwab  <schwab@suse.de>
15487
15488         * stor-layout.c (excess_unit_span): Only define if used.
15489
15490 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
15491
15492         * gcc/doc/invoke.texi (Optimization Options): List -O levels
15493         for each optimization flag.
15494
15495 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
15496
15497         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
15498
15499 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15500
15501         * doc/bugreport.texi: Use @command instead of @code for commands.
15502         * doc/collect2.texi: Likewise.
15503         * doc/headerdirs.texi: Likewise.
15504         * doc/invoke.texi: Likewise.
15505         * doc/standards.texi: Likewise.
15506         * doc/tm.texi: Likewise.
15507         * doc/trouble.texi: Likewise.
15508
15509 2003-01-24  Nick Clifton  <nickc@redhat.com>
15510
15511         * config/arm/arm.c (use_return_insn): Do not use a single return
15512         instruction for interrupt handelrs which have to create a stack
15513         frame.
15514         (arm_expand_prologue): Do not pre-bias the return address of
15515         interrupt handlers which create a stack frame.
15516
15517 2003-01-24  Nick Clifton  <nickc@redhat.com>
15518
15519         * Add sh2e support:
15520
15521         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
15522
15523                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
15524                 med_cbranches.  Fix logic in short_cbranches.
15525
15526         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
15527
15528                 * config/sh/sh.md (delay for cbranch): Don't annul delay
15529                 slots on SH2e.
15530                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
15531                 cbranch with unfilled delay slot on SH2e.
15532                 (output_branch): Fill with a nop the delay slot of a
15533                 branch that required a delay slot but didn't get one.
15534
15535         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
15536
15537                 * doc/invoke.texi (SH options): Document -m2e.
15538                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
15539                 * config/sh/lib1funcs.asm: Likewise.
15540                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
15541                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
15542                 not __sh1__.
15543                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
15544                 SH2E up.
15545                 (SH3E_BIT): Renamed to...
15546                 (SH_E_BIT): ... this.  Replace all uses.
15547                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
15548                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
15549                 (TARGET_SWITCHES): Added 2e.
15550                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
15551                 (processor_type): Added PROCESSOR_SH2E.
15552                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
15553                 TARGET_SH2E, except in sqrtsf2_i.
15554                 (attribute cpu): Added sh2e.
15555                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
15556                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
15557                 * config.gcc: Add sh2e target support.
15558
15559 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
15560
15561         Rename -W to -Wextra.
15562         * c-decl.c:  Update comments.
15563         * c-typeck.c:  Likewise.
15564         * flags.h:  Likewise.
15565         * function.c:  Likewise.
15566         * stmt.c:  Likewise.
15567         * toplev.c:  Update comments.
15568         (W_options):  Add 'extra'.
15569         (display_help):  Remove '-W'.
15570         (decode_W_option):  Special warn_uninitialized treatment in the case
15571         of -Wextra.
15572         * doc/invoke.texi:  Update with new entries.
15573
15574 2003-01-23  Richard Henderson  <rth@redhat.com>
15575
15576         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
15577         in no-else-block case.  Add commentary.
15578
15579 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15580
15581         * configure.in: Revert last change.
15582
15583 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15584
15585         * configure.in: Don't include ansidecl.h in tconfig.h.
15586         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
15587         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
15588         ATTRIBUTE_UNUSED.
15589
15590         * configure: Regenerate.
15591
15592 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15593
15594         PR java/6748
15595         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
15596         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
15597         kernels.
15598
15599 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15600
15601         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
15602
15603 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
15604
15605         * genattrtab.c (write_attr_get): Mark 'insn' paramter
15606         as ATTRIBUTE_UNUSED.
15607
15608 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
15609
15610         * arm.c (thumb_base_register_rtx_p): New function.
15611         (thumb_index_register_rtx_p): New function.
15612         (thumb_legitimate_address_p): New function.
15613         (thumb_legitimate_offset_p): New function.
15614         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
15615         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
15616         definitions.
15617         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
15618         (THUMB_LEGITIMATE_OFFSET): Delte.
15619         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
15620         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
15621         (thumb_legitimate_offset_p): Likewise.
15622
15623 2003-01-23  Andreas Schwab  <schwab@suse.de>
15624
15625         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
15626
15627 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15628
15629         * fixinc/Makefile.in (FL_LIST): Revert last change.
15630
15631 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15632
15633         PR other/7341
15634         * invoke.texi (ftest-coverage): Fix broken cross-reference.
15635         Change @code to @command for gcov command.
15636
15637         * gcc.texi: Adjust title of gcov section.
15638         Adjust copyright.
15639         * gcov.texi: Likewise.
15640
15641 2003-01-22  Roger Sayle  <roger@eyesopen.com>
15642
15643         PR optimization/8423
15644         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
15645         its argument is constant, or 0 if !flag_gcse.
15646         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
15647         if it's argument is constant.
15648         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
15649         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
15650         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
15651         * builtins.c (purge_builtin_constant_p): New function to force
15652         instantiation of any remaining CONSTANT_P_RTX nodes.
15653         * rtl.h (purge_builtin_constant_p): Prototype here.
15654         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
15655         pass after GCSE and before loop.
15656         (flag_gcse): No longer static.
15657         * flags.h (flag_gcse): Prototype here.
15658
15659 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
15660
15661         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
15662         introduced by last change.
15663
15664 2003-01-22  Andreas Schwab  <schwab@suse.de>
15665
15666         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
15667
15668 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
15669
15670         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
15671         request a scratch reg on H8S when the shift count is 8.
15672
15673 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
15674
15675         * config/s390/s390-protos.h (preferred_la_operand_p):
15676         Remove second parameter.
15677         * config/s390/s390.c (preferred_la_operand_p): Likewise.
15678         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
15679         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
15680         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
15681         Add peepholes to transform ADD to LOAD ADDRESS.
15682
15683 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
15684
15685         * arm.c (arm_address_register_rtx_p): New function.
15686         (arm_legitimate_address_p): New function.
15687         (arm_legitimate_index_p): New function.
15688         (legitimize_pic_address): Use arm_legitimate_index_p.
15689         * arm-protos.h (arm_legtimate_address_p): Add prototype.
15690         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
15691         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
15692
15693 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
15694
15695         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
15696         * config/s390/2064.md (define_bypass): Correct 'Load' and
15697         'Load-address' bypass values.
15698
15699 2003-01-22  Andreas Schwab  <schwab@suse.de>
15700
15701         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
15702
15703 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
15704
15705         * genautomata.c (output_internal_insn_latency_func,
15706         output_print_reservation_func): Short circuit when there is no
15707         automaton to generate code for.
15708
15709 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15710
15711         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
15712         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
15713
15714 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
15715
15716         * config/rs6000/rs6000.md: Remove warning.
15717         (builtin_setjmp_receiver): Likewise.
15718         * config/darwin.c (update_stubs): Slightly improve terrible hack
15719         with identifiers.  Add comment pointing out problems with it.
15720         (update_non_lazy_ptrs): Likewise.
15721
15722 2003-01-21  Richard Henderson  <rth@redhat.com>
15723
15724         * dwarf2out.c (lookup_filename): Fix printf format warning.
15725         * system.h (fread_unlocked, fwrite_unlocked): Undef.
15726
15727         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
15728         (fixincl.o-warn, gnu-regex.o-warn): New.
15729         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
15730         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
15731         * fixinc/fixincl.c (process): Fix printf format warning.
15732
15733 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
15734
15735         * dwarf2out (output_file_names): Don't crash if called
15736         with empty file_table.
15737
15738 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
15739
15740         * genautomata.c (output_internal_insn_latency_func): Add
15741         missing break statement to generated code.
15742
15743 2003-01-21  Roger Sayle  <roger@eyesopen.com>
15744
15745         * stmt.c (same_case_target_p): New function to determine whether
15746         two case labels branch to the same target.  Split out from...
15747         (group_case_nodes): ... here.  Use same_case_target_p instead.
15748         (strip_default_case_nodes): Remove explicit case nodes
15749         that branch to the default destination.
15750         (expand_end_case_type): Call strip_default_case_nodes after
15751         group_case_nodes, to simplify the case-list before we count it.
15752         Only generate table_label RTX when actually needed.  Try to share
15753         thiscase->exit_label and thiscase->data.case_stmt.default_label
15754         when a switch has no explicit default case.  Simplify test for
15755         constant index.
15756
15757 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
15758
15759         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
15760         \t.
15761         (*negsf2_h8300hs): Likewise.
15762         (*addsi3_lshiftrt_16_zexthi): Likewise.
15763         (*iorhi3_lshiftrt_8): Likewise.
15764
15765 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
15766
15767         * dwarf2out.c (fde_table_in_use): Mark GTY.
15768         (dwarf2out_cfi_label_num): New variable, marked GTY.
15769         (dwarf2out_cfi_label): Use it instead of static label_num.
15770         * emit-rtl.c (label_num): Mark GTY.
15771
15772 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
15773
15774         * config/h8300/h8300.c (output_plussi): Support H8/300.
15775         (compute_plussi_length): Likewise.
15776         (compute_plussi_cc): Likewise.
15777         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
15778         output assembly instructions.
15779
15780 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15781
15782         * calls.c (fix_unsafe_tree): Prototype.
15783
15784         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
15785         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
15786         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
15787         c-parse.o-warn): Add -Wno-error.
15788         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
15789
15790         * configure.in (--enable-werror): Add new flag.
15791         * doc/install.texi (--enable-werror): Document.
15792         * configure: Regenerate.
15793
15794         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
15795
15796 2003-01-21  Andreas Schwab  <schwab@suse.de>
15797
15798         * genautomata.c (output_internal_insn_latency_func): Fix missing
15799         close paren in output.
15800
15801 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
15802
15803         * genautomata.c: Space savings in generated code:
15804         (output_dfa_insn_code_func): Split out the table-enlargement
15805         path to an out-of-line static function, dfa_insn_code_enlarge.
15806         (output_internal_insn_latency_func): Use a lookup table for the
15807         default latencies.
15808         (output_print_reservation_func): Use a lookup table for the
15809         strings.
15810
15811 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
15812
15813         PR opt/7507
15814         * calls.c (fix_unsafe_tree): Split out from ...
15815         (expand_call): ... here.  Use it on the function address too.
15816
15817 2003-01-20  Richard Henderson  <rth@redhat.com>
15818
15819         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
15820
15821 2003-01-20  Richard Henderson  <rth@redhat.com>
15822
15823         PR opt/7154
15824         * stmt.c (expand_asm_operands): Validize memory operands.
15825
15826 2003-01-20  Richard Henderson  <rth@redhat.com>
15827
15828         PR opt/8848
15829         * ifcvt.c (noce_process_if_block): Correct arguments to
15830         modified_between_p for no-else-block case.
15831
15832 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
15833
15834         * config/h8300/h8300.c (const_costs): Remove a warning.
15835         (output_plussi): Likewise.
15836         (compute_plussi_length): Likewise.
15837         (compute_plussi_cc): Likewise.
15838
15839 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
15840
15841         * config/h8300/h8300.md (addsi_h8300): Remove the last
15842         alternative.
15843
15844 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
15845
15846         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
15847
15848 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15849
15850         * system.h (__NO_STRING_INLINES): Define.
15851
15852 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15853
15854         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
15855         is not a scalar int mode.
15856
15857 2003-01-20  Roger Sayle  <roger@eyesopen.com>
15858
15859         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
15860         insn's notes following a substitution inside a libcall.
15861
15862 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
15863
15864         * configure.in: Check for system-provided 'uchar' type.
15865         * configure, config.in: Regenerate.
15866         * cpphash.h: Only typedef 'uchar' if the system doesn't.
15867
15868 2003-01-20  Richard Henderson  <rth@redhat.com>
15869
15870         * expr.h (MUST_PASS_IN_STACK): Move implementation...
15871         * calls.c (default_must_pass_in_stack): ... here.
15872
15873 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
15874
15875         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
15876
15877         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
15878
15879         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
15880         Wrap up definition of `insn_alts'.
15881
15882         * genattrtab.c (main): Wrap up `insn_alts'.
15883
15884 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15885
15886         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
15887         prototyping.
15888         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
15889
15890         * config.in, configure: Regenerate.
15891
15892 2003-01-20  Nick Clifton  <nickc@redhat.com>
15893
15894         * config/arm/arm.md (sibcall_epilogue): Add an
15895         UNSPEC_PROLOGUE_USE to prevent the link register from being
15896         considered dead.
15897
15898 2003-01-20  Jan Hubicka  <jh@suse.cz>
15899
15900         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
15901
15902 2003-01-20  Andreas Schwab  <schwab@suse.de>
15903
15904         * system.h: Don't declare strsignal if the decl test hasn't been
15905         run yet.
15906
15907 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
15908
15909         * config/h8300/h8300.c (notice_update_cc): Don't assume that
15910         recog_data.operands[0] is always associated with cc0.
15911
15912 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
15913
15914         * collect2.c (ldgetname): Expand declaration to prototype.
15915         * read-rtl.c (atoll): Add prototype.
15916         * system.h (strsignal): Also declare if no declaration found.
15917
15918 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
15919
15920         * config.gcc (mips64*-*-linux*): Added.
15921         * config/mips/linux64.h, config/mips/t-linux64: New file.
15922         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
15923         * config/mips/mips.c (override_options): Use it.
15924         * config/mips/mips.h (TARGET_SWITCHES): Added...
15925         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
15926         * Makefile.in (SPECS): New.
15927         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
15928         * gcc.c (process_command): Move self-spec processing past spec
15929         file loading.
15930         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
15931         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
15932         CRTSTUFF_T_CFLAGS.
15933         (SPECS): Document.
15934         * doc/invoke.texi (-mabi-fake-default): Document.
15935
15936 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
15937
15938         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
15939         z_reg, z_reg_qi): Declare static and GTY().
15940         (da_reg): Remove.
15941         (create_regs_rtx): Don't create da_reg.
15942         ("gt-m68hc11.h"): Include for GTY roots.
15943         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
15944         and GTY() here.
15945         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
15946         (m68hc11_soft_tmp_reg): Likewise.
15947         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
15948
15949 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
15950
15951         * basic-block.h: Fix comment formatting.
15952         * calls.c: Likewise.
15953         * combine.c: Likewise.
15954         * convert.c: Likewise.
15955         * gcov.c: Likewise.
15956         * haifa-sched.c: Likewise.
15957         * libgcc2.c: Likewise.
15958         * loop.c: Likewise.
15959         * profile.c: Likewise.
15960         * system.h: Likewise.
15961
15962 2003-01-18  Roger Sayle  <roger@eyesopen.com>
15963
15964         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
15965
15966 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15967
15968         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
15969
15970 2003-01-17  Dale Johannesen  <dalej@apple.com>
15971
15972         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
15973           (*floatunssidf2_internal):  Ditto.
15974
15975 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
15976
15977         * alias.c: Fix comment typos.
15978         * basic-block.h: Likewise.
15979         * c-common.c: Likewise.
15980         * c-common.h: Likewise.
15981         * c-decl.c: Likewise.
15982         * c-opts.c: Likewise.
15983         * c-pragma.c: Likewise.
15984         * c-pretty-print.h: Likewise.
15985         * cfg.c: Likewise.
15986         * cfganal.c: Likewise.
15987         * cfgbuild.c: Likewise.
15988         * cfgcleanup.c: Likewise.
15989         * cfglayout.c: Likewise.
15990         * cfgrtl.c: Likewise.
15991         * convert.c: Likewise.
15992         * cpphash.h: Likewise.
15993         * cpplex.c: Likewise.
15994         * cpplib.h: Likewise.
15995         * df.h: Likewise.
15996         * diagnostic.c: Likewise.
15997         * diagnostic.h: Likewise.
15998         * dwarf2.h: Likewise.
15999
16000 2003-01-17  Stan Shebs  <shebs@apple.com>
16001
16002         * config/darwin-protos.h: Forward-declare struct cpp_reader.
16003
16004 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
16005
16006         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
16007         mistake in last checkin.
16008
16009 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
16010
16011         * et-forest.c: Fix comment typos.
16012         * et-forest.h: Likewise.
16013         * except.c: Likewise.
16014         * expr.c: Likewise.
16015         * flags.h: Likewise.
16016         * flow.c: Likewise.
16017         * gcc.c: Likewise.
16018         * gcse.c: Likewise.
16019         * genattrtab.c: Likewise.
16020         * genautomata.c: Likewise.
16021         * gengtype.c: Likewise.
16022         * genrecog.c: Likewise.
16023         * global.c: Likewise.
16024         * gthr-rtems.h: Likewise.
16025
16026 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16027
16028         * i386.c (x86_function_profiler): Fix format specifier.
16029
16030 2003-01-17  Richard Henderson  <rth@redhat.com>
16031
16032         * gengtype.c (walk_type): Allow paramN_is.
16033
16034 2003-01-17  Nick Clifton  <nickc@redhat.com>
16035
16036         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
16037
16038 2003-01-16  Richard Henderson  <rth@redhat.com>
16039
16040         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
16041
16042 2003-01-16  Richard Henderson  <rth@redhat.com>
16043
16044         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
16045         (alpha_next_sequence_number): Likewise.
16046         (alpha_this_literal_sequence_number): Likewise.
16047         (alpha_this_gpdisp_sequence_number): Likewise.
16048         (struct alpha_funcs, alpha_funcs_num): Likewise.
16049         (struct alpha_links): Fix branch merge error.
16050         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
16051
16052 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
16053
16054         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
16055         R. Ghazi.
16056
16057 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
16058
16059         * ifcvt.c: Fix comment typos.
16060         * lcm.c: Likewise.
16061         * libgcc2.c: Likewise.
16062         * local-alloc.c: Likewise.
16063         * loop.c: Likewise.
16064         * predict.c: Likewise.
16065         * ra-build.c: Likewise.
16066         * ra.c: Likewise.
16067         * ra-colorize.c: Likewise.
16068         * ra.h: Likewise.
16069         * ra-rewrite.c: Likewise.
16070         * regmove.c: Likewise.
16071         * reload.h: Likewise.
16072         * rtlanal.c: Likewise.
16073         * toplev.c: Likewise.
16074         * tree.h: Likewise.
16075         * unwind-dw2-fde-glibc.c: Likewise.
16076         * vmsdbgout.c: Likewise.
16077
16078 2003-01-16  Richard Henderson  <rth@redhat.com>
16079
16080         * dwarf2out.c (struct file_table): Remove.
16081         (FILE_TABLE_INCREMENT): Remove.
16082         (file_table): Make a varray; mark for GC.  Update all users.
16083         (file_table_last_lookup_index): Extract from struct file_table.
16084         (output_file_names): Fix unsigned compare warnings.
16085         (add_name_attribute): Remove inline marker.
16086         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
16087         (lookup_filename): Don't manage size of file_table.
16088         (init_file_table): Allocate file_table with GC.
16089         (dwarf2out_init): Don't record main_input_filename here.
16090         (dwarf2out_finish): Do it here instead.
16091
16092 2003-01-16  Bruce Korb  <bkorb@gnu.org>
16093
16094         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
16095
16096 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
16097
16098         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
16099         instead of rotldi3_mextr.
16100
16101 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
16102
16103         * haifa-sched.c (move_insn): Restore moving all schedule group.
16104         (set_priorities): Restore taking SCHED_GROUP_P into account.
16105
16106         * sched-deps.c (add_dependence): Restore processing the last group
16107         insn.
16108         (remove_dependence, group_leader): Restore the functions.
16109         (set_sched_group_p): Restore adding dependencies from previous insn
16110         in the group.
16111         (compute_forward_dependences): Restore usage of group_leader.
16112
16113         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
16114         account.
16115
16116         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
16117         account.
16118         (can_schedule_ready_p): Ditto.
16119         (add_branch_dependences): Restore skipping over the group insns.
16120
16121 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
16122
16123         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
16124         68HC12 pre/post inc/dec side effects.
16125
16126 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
16127
16128         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
16129
16130 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
16131
16132         * sh.md (mshflo_w_x): Fix description of operation.
16133
16134 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
16135
16136         * config/rs6000/rs6000.h: Mention Altivec registers in
16137         commentary.  Fix typo.
16138
16139 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
16140
16141         * config/rs6000/rs6000.md (movti_string): Remove clobber.
16142         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
16143         generate PARALLEL with clobber for TARGET_POWER.
16144
16145 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16146
16147         * ra-colorize.c (colorize_one_web): Initialize variable.
16148         * regmove.c (fixup_match_1): Likewise.
16149         * reload1.c (reload_as_needed): Likewise.
16150         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
16151
16152 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16153
16154         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
16155
16156 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16157
16158         * dbxout.c (lastfile, cwd): Fix `unused' warning.
16159         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
16160         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
16161         is_main_source, file_table, decl_die_table_in_use,
16162         abbrev_die_table_in_use, line_info_table_in_use,
16163         separate_line_info_table_in_use, pubname_table_in_use,
16164         arange_table_in_use, ranges_table_in_use,
16165         current_function_has_inlines): Likewise.
16166         * flow.c (life_analysis): Likewise.
16167         * genemit.c (gen_insn): Likewise.
16168         * protoize.c (cplus_suffix): Likewise.
16169
16170         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
16171         * arm.h (ROUND_UP_WORD): Likewise.
16172
16173         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
16174         warning.
16175         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
16176         init_emit_once): Likewise.
16177         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
16178         Likewise.
16179         * function.c (assign_stack_temp_for_type): Likewise.
16180         * loop.c (loop_invariant_p): Likewise.
16181         * recog.c (push_operand): Likewise.
16182         * regclass.c (init_reg_sets_1): Likewise.
16183         * reload.c (update_auto_inc_notes): Likewise.
16184         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
16185         * stmt.c (expand_asm_operands): Likewise.
16186         * stor-layout.c (start_record_layout): Likewise.
16187
16188 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
16189
16190         * config/c4x/c4x.md (epilogue): Correct last patch.
16191
16192 2003-01-15  Richard Henderson  <rth@redhat.com>
16193
16194         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
16195         also check that GP is being used.
16196         (alpha_find_lo_sum_using_gp): New.
16197         (alpha_does_function_need_gp): Use get_attr_usegp.
16198         * config/alpha/alpha-protos.h: Update.
16199         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
16200         as needed.
16201
16202 2003-01-15  Roger Sayle  <roger@eyesopen.com>
16203
16204         * gcse.c (one_cprop_pass): Change function arguments to take both
16205         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
16206         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
16207         (bypass_jumps): New function to perform separate jump bypassing pass.
16208         * rtl.h (bypass_jumps): Add function prototype.
16209         * timevar.def (TV_BYPASS): New timing variable.
16210         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
16211         (dump_file): New entry for the bypass RTL dump file.
16212         (rest_of_compilation): Insert new jump bypassing optimization
16213         pass after loop.
16214         * doc/passes.texi: Document new pass.
16215
16216 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16217
16218         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
16219         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
16220         * pa.h (TARGET_SOM_SDEF): Define.
16221         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
16222
16223 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
16224
16225         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
16226         allocate 4-bytes of locals on 68HC11.
16227         (expand_epilogue): Likewise.
16228         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
16229
16230 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
16231
16232         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
16233         and -mshort-double to the assembler to specify the ABI.
16234         (LINK_SPEC): Likewise.
16235         (CPP_SPEC): Pass HCS12 specific define.
16236         (MASK_M68S12): New define.
16237         (TARGET_M68S12): Likewise.
16238         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
16239         (TARGET_VERSION): Update.
16240         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
16241         (LINK_SPEC): Update.
16242         (ASM_SPEC): Update.
16243         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
16244         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
16245
16246 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
16247
16248         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
16249         the return code.
16250
16251 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
16252
16253         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
16254         flag before setting it.
16255
16256 2003-01-15  Roger Sayle  <roger@eyesopen.com>
16257
16258         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
16259         when loop condition is known true, i.e.  "while (1) { ... }".
16260         (genrtl_for_stmt): Similarly for "for" statements.
16261
16262 2003-01-15  Roger Sayle  <roger@eyesopen.com>
16263
16264         * real.c (real_sqrt): Return a bool result indicating whether
16265         a floating point exception or trap should be raised.
16266         * real.h (real_sqrt): Update function prototype.
16267         * builtins.c (fold_builtin): Only fold non-trapping square
16268         roots unless we're ignoring errno and trapping math.
16269
16270 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
16271
16272         * expr.h (emit_conditional_add): Add PARAMS to declaration.
16273         * gengtype-lex.l (malloc, realloc): Move defines after include of
16274         system.h.  Remove duplicate include of system.h.
16275
16276 2003-01-15  Roger Sayle  <roger@eyesopen.com>
16277
16278         PR middle-end/9009
16279         * optabs.c (expand_unop):  When manipulating the FP sign bit
16280         using integer operations, account for targets with different
16281         integer and FP word orders.
16282         (expand_abs): Likewise.
16283
16284 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
16285
16286         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
16287         file extension in section name.
16288
16289 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
16290
16291         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
16292         constant offset.
16293
16294 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
16295
16296         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
16297         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
16298         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
16299         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
16300
16301 2003-01-15  Jan Hubicka  <jh@suse.cz>
16302
16303         PR f/9258
16304         * global.c (struct allocno): Add no_stack_reg.
16305         (global_conflicts): Set no_stack_reg.
16306         (find_reg): Use it.
16307
16308         * convert.c (convert_to_real): Fold - and abs only when profitable.
16309         * fold-const.c (fold): Fold truncates in - and abs.
16310
16311 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
16312
16313         Segher Boessenkool  <segher@koffie.nl>
16314
16315         * predict.c (real_inv_br_prob_base): New variable.
16316         (propagate_freq): Use multiply by reciprocal instead of
16317         division.  Don't divide by 1.0 at all.
16318         (estimate_bb_frequencies): Similar.
16319
16320 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
16321
16322         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
16323         * configure: Rebuilt.
16324
16325 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
16326
16327         * config/s390/s390.c (s390_safe_attr_type): New function.
16328         (s390_use_dfa_pipeline_interface): New function, return true for z900.
16329         (s390_issue_rate): New function.
16330         (s390_agen_dep_p): New function.
16331         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
16332         (s390_adjust_cost): Return 'cost' if new DFA is used.
16333         (s390_adjust_priority): Delete function.
16334         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
16335         * config/s390/s390.md (atype attribute): Attribute 'atype' default
16336         determined by 'op_type'.
16337         (type attribute): Added more type attributes.
16338         * config/s390/2064.md: New DFA description for z900 pipeline.
16339
16340 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
16341
16342         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
16343         forced to memory.  Fixes PR bootstrap/9036.
16344
16345         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
16346         to set $gp before the call.
16347
16348 2003-01-14  Richard Henderson  <rth@redhat.com>
16349
16350         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
16351         for force_const_mem.
16352
16353 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16354
16355         * genattr.c (main): Rearrange output to avoid prototype warning.
16356         * genautomata.c (transform_3): Fix ambiguous-else warning.
16357         * local-alloc.c (requires_inout): Add parentheses around
16358         assignment used as truth-value.
16359         * timevar.c: Move system includes above local includes.  Include
16360         toplev.h
16361         * Makefile.in (timevar.o): Depend on toplev.h.
16362
16363 2003-01-14  Denis Chertykov  <denisc@overta.ru>
16364
16365         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
16366         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
16367
16368         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
16369         attributes.
16370         (TARGET_ATTRIBUTE_TABLE): New macro.
16371         (valid_machine_type_attribute): Remove.
16372         (valid_machine_decl_attribute): Remove.
16373         (ip2k_handle_progmem_attribute): New function.
16374         (ip2k_handle_fndecl_attribute): New function.
16375
16376 2003-01-10  Andrew Haley  <aph@redhat.com>
16377
16378         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
16379         registers to be in correct order.  Add rip.
16380
16381 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
16382
16383         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
16384         (*iorsi3_and_lshiftrt_9_sb): Likewise.
16385
16386 2003-01-14  Jan Hubicka  <jh@suse.cz>
16387
16388         * convert.c (strip_float_extensions):  Look for narrowest type handling
16389         FP constants.
16390
16391         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
16392         float1 CMP float2.
16393         * convert.c (strip_float_extensions): Make global.
16394         * tree.h (strip_float_extensions): Declare.
16395
16396 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16397
16398         * timevar.def: define TV_NAME_LOOKUP.
16399         * timevar.c (timevar_pop): Be verbose when aborting.
16400
16401 2003-01-13  Andreas Schwab  <schwab@suse.de>
16402
16403         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
16404         $(parsedir), just move the temporary file at the end.
16405         ($(parsedir)/gengtype-yacc.c): Likewise.
16406
16407 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
16408
16409         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
16410         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
16411         splitting.
16412         * configure: Rebuilt.
16413
16414 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16415
16416         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
16417         internal_mcount): Don't use PARAMS.
16418         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
16419         ISO C style.
16420         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
16421
16422 2003-01-13  Andreas Schwab  <schwab@suse.de>
16423
16424         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
16425         directive.
16426
16427 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
16428
16429         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
16430         (*iorsi3_and_lshiftrt_n_sb): Likewise.
16431
16432 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
16433
16434         PR c++/9264
16435         * c-lex.c (c_lex): Set the token value to error_mark_node for
16436         invalid numeric constants.
16437
16438 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16439
16440         * c-pch.c (asm_file_startpos): Change to `long'.
16441         (pch_init): Use ftell, not ftello.
16442         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
16443         Use `long' instead of `off_t'.
16444         (c_common_read_pch): Likewise.
16445         * ggc-common.c (gt_pch_save): Use long/ftell instead of
16446         off_t/ftello.
16447
16448 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
16449
16450         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
16451
16452 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
16453
16454         * arm-protos.h (struct cpp_reader): Add declaration.
16455
16456 2003-01-11  Jan Hubicka  <jh@suse.cz>
16457
16458         PR target/9068
16459         * i386.c (output_fp_compare): Fix typo.
16460
16461 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
16462
16463         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
16464
16465 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
16466
16467         * Makefile.in (parsedir): New variable.
16468         (docobjdir): New variable.
16469         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
16470         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
16471         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
16472         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
16473         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
16474         Use docobjdir.
16475         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
16476         objc.maintainer-clean): Use parsedir.
16477
16478         * varasm.c (struct constant_descriptor_rtx): Remove unused
16479         `label' field.
16480
16481         * toplev.c (documented_lang_options): Document -Winvalid-pch.
16482
16483 2003-01-10  Richard Henderson  <rth@redhat.com>
16484
16485         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
16486         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
16487
16488 2003-01-10  Richard Henderson  <rth@redhat.com>
16489
16490         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
16491         not INTEGRAL_MODE_P when widening extensions.
16492
16493 2003-01-10  Richard Henderson  <rth@redhat.com>
16494
16495         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
16496
16497 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
16498
16499         * ggc-page.c (ggc_collect): Avoid overflow computing
16500         min_expand.
16501
16502         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
16503         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
16504         Remove calls.
16505         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
16506
16507 2003-01-10  Jan Hubicka  <jh@suse.cz>
16508
16509         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
16510         with weird operands.
16511
16512 2003-01-10  Dale Johannesen <dalej@apple.com>
16513
16514         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
16515         parameters.  Call check_sibcall_argument_overlap if indicated.
16516         (check_sibcall_argument_overlap):  Add mark_stored_args_map
16517         parameter.  Don't mark parameter area as clobbered if not set.
16518         (expand_call):  Adjust calls to above.
16519
16520 2003-01-10 Kelley Cook <kelleycook@comcast.net>
16521
16522         * configure.in (linker read-only and read-write section mixing):
16523         Squelch some assembler warnings.
16524         * configure: Likewise.
16525
16526 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
16527
16528         * doc/invoke.texi: Document -mtune, delete -mcpu
16529         option for S/390 and zSeries.
16530         * config/s390/s390.c (s390_tune_string) New variable.
16531         (s390_cpu_string) Delete variable.
16532         (override_options): Use s390_tune_string instead of
16533         s390_cpu_string.
16534         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
16535
16536 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
16537
16538         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
16539
16540 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
16541
16542         * jump.c (next_nonnote_insn_in_loop): New function.
16543         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
16544         next_nonnote_insn.
16545         (duplicate_loop_exit_test). Likewise.
16546
16547 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
16548
16549         Merge from pch-branch:
16550
16551         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
16552
16553         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
16554         load.
16555
16556         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
16557
16558         * cpplib.c (count_registered_pragmas): New function.
16559         (save_registered_pragmas): New function.
16560         (_cpp_save_pragma_names): New function.
16561         (restore_registered_pragmas): New function.
16562         (_cpp_restore_pragma_names): New function.
16563         * cpphash.h (_cpp_save_pragma_names): Prototype.
16564         (_cpp_restore_pragma_names): Likewise.
16565         * cpppch.c (struct save_macro_item): Split from save_macro_data.
16566         (struct save_macro_data): New field 'saved_pragmas'.
16567         (save_macros): Update for changes to struct save_macro_data.
16568         (cpp_prepare_state): Call _cpp_save_pragma_names, update
16569         for changes to struct save_macro_data.
16570         (cpp_read_state): Call _cpp_restore_pragma_names, update
16571         for changes to struct save_macro_data.
16572
16573         * cpppch.c (cpp_read_state): Restore the hashtable references
16574         in the cpp_reader.
16575
16576         * tree.h (built_in_decls): Mark for PCH.
16577
16578         * dbxout.c (lastfile): Don't mark for PCH.
16579
16580         * ggc.h: Document PCH calls into memory managers.
16581
16582         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
16583
16584         * doc/invoke.texi (Precompiled Headers): Document the
16585         directory form of PCH.
16586         * cppfiles.c (validate_pch): New function.
16587         (open_file_pch): Search suitably-named directories for PCH files.
16588
16589         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
16590
16591         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
16592         reorder options.
16593         (Type Information): Mention that the information is also
16594         used to implement PCH.
16595         * doc/passes.texi (Passes): Improve documentation of
16596         language-specific files.
16597
16598         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
16599
16600         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
16601         (struct walk_type_data): Add reorder_fn field.
16602         (walk_type): Process 'reorder' option.
16603         (write_types_process_field): Reorder parameters to gt_pch_note_object,
16604         call reorder_note_routine.
16605         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
16606         (ggc_wtd): Update for change to struct write_types_data.
16607         (pch_wtd): Likewise.
16608         * ggc.h (gt_pch_note_object): Reorder parameters.
16609         (gt_handle_reorder): New definition.
16610         (gt_pch_note_reorder): New prototype.
16611         * ggc-common.c (struct ptr_data): Add reorder_fn.
16612         (gt_pch_note_object): Reorder parameters.
16613         (gt_pch_note_reorder): New.
16614         (gt_pch_save): Call reorder_fn.
16615         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
16616
16617         * dbxout.c (cwd): Don't mark for PCH.
16618
16619         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
16620
16621         * gengtype.c (finish_root_table): Fix some warnings.
16622         (write_root): Handle TYPE_STRING.
16623         * ggc.h (gt_ggc_m_S): Add prototype.
16624         * stringpool.c (gt_ggc_m_S): New function.
16625
16626         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
16627
16628         * dwarf2out.c (dw2_string_counter): New.
16629         (AT_string_form): Use it.
16630         (same_dw_val_p): Update for removal of hashtable.h hash tables.
16631
16632         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
16633
16634         * dbxout.c: Include gt-dbxout.h.
16635         (lastfile): Mark for PCH/GGC.
16636         (cwd): Likewise.
16637         (struct typeinfo): Likewise.
16638         (typevec): Likewise.
16639         (typevec_len): Likewise.
16640         (next_type_number): Likewise.
16641         (struct dbx_file): Likewise.
16642         (current_file): Likewise.
16643         (next_file_number): Likewise.
16644         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
16645         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
16646         (dbxout_end_source_file): Don't free struct dbx_file.
16647         (dbxout_type): Use GGC to allocate typevec.
16648         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
16649         (GTFILES): Add dbxout.c.
16650         (gt-dbxout.h): New rule.
16651
16652         * Makefile.in (c-pch.o): Add debug.h as dependency.
16653         * c-pch.c: Include debug.h.
16654         (pch_init): Call start_source_file to keep nesting right.
16655         (c_common_read_pch): Add orig_name parameter.  Call
16656         start_source_file debug hook.  Call end_source_file debug hook.
16657         * c-common.h (c_common_read_pch): Update prototype.
16658         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
16659         callback.
16660         * cppfiles.c (struct include_file): Add new field `header_name'.
16661         (find_or_create_entry): Default it to `name'.
16662         (open_file_pch): Set it to the original header file searched for.
16663         (stack_include_file): Don't stack an empty buffer, just handle
16664         PCH files immediately.  Pass header_name field to read_pch callback.
16665
16666         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
16667
16668         * function.c (funcdef_no): Mark to be saved in a PCH.
16669
16670         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
16671
16672         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
16673
16674         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
16675
16676         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
16677
16678         * optabs.h (code_to_optab): Add GTY marker.
16679
16680         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
16681
16682         * Makefile.in (GTFILES): Add cpplib.h.
16683         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
16684         * c-decl.c (build_compound_literal): Don't use var_labelno.
16685         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
16686         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
16687         * varasm.c (const_labelno): Use gengtype to mark.
16688         (var_labelno): Likewise.
16689         (in_section): Likewise.
16690         (in_named_name): Likewise.
16691         (struct in_named_entry): Likewise.
16692         (in_named_htab): Likewise.
16693         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
16694         (init_varasm_once): Use GGC to allocate in_named_htab.
16695         * config/darwin.c (current_pic_label_num): Mark for PCH.
16696
16697         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
16698
16699         * ggc-simple.c (init_ggc_pch): New stub procedure.
16700         (ggc_pch_count_object): Likewise.
16701         (ggc_pch_total_size): Likewise.
16702         (ggc_pch_this_base): Likewise.
16703         (ggc_pch_alloc_object): Likewise.
16704         (ggc_pch_prepare_write): Likewise.
16705         (ggc_pch_write_object): Likewise
16706         (ggc_pch_finish): Likewise.
16707         (ggc_pch_read): Likewise.
16708
16709         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
16710
16711         * c-pch.c (c_common_write_pch): Write the macro definitions after
16712         the GCed data.
16713         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
16714         definitions after the GCed data.
16715         * cpplib.c (save_macros): New.
16716         (reset_ht): New.
16717         (cpp_write_pch_deps): Split out of cpp_write_pch.
16718         (cpp_write_pch_state): Split out of cpp_write_pch.
16719         (cpp_write_pch): Delete.
16720         (struct save_macro_data): Delete.
16721         (cpp_prepare_state): New.
16722         (cpp_read_state): Erase and restore initial macro definitions.
16723         * cpplib.h (struct save_macro_data): Forward-declare.
16724         (cpp_write_pch_deps): Prototype.
16725         (cpp_write_pch_state): Prototype.
16726         (cpp_write_pch): Delete prototype.
16727         (cpp_prepare_state): Prototype.
16728         (cpp_read_state): Add fourth argument.
16729
16730         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
16731
16732         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
16733         (write_array): Remove warning.
16734
16735         * gengtype.c (contains_scalar_p): New.
16736         (finish_root_table): Add the table to all languages, even if it's
16737         empty.
16738         (write_roots): Output gt_pch_scalar_rtab.
16739         * ggc-common.c (gt_pch_save): Write out scalars.
16740         (gt_pch_restore): Read scalars back.
16741
16742         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
16743         (struct page_entry): Delete pch_page field.
16744         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
16745         (clear_marks): Likewise.
16746         (sweep_pages): Likewise.
16747         (poison_pages): Likewise.
16748         (ggc_print_statistics): Likewise.
16749         (ggc_pch_read): Don't free objects read from a PCH.
16750         Properly set up in_use_p and page_tails.
16751
16752         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
16753
16754         * gengtype.c (struct write_types_data): New.
16755         (struct walk_type_data): Make `cookie' const; add extra
16756         prev_val item; add `orig_s' field.
16757         (walk_type): Update prev_val[3].
16758         (write_types_process_field): New.
16759         (write_func_for_structure): Take write_types_data structure.
16760         (write_types): New.
16761         (ggc_wtd): New.
16762         (pch_wtd): New.
16763         (write_types_local_process_field): New.
16764         (gc_mark_process_field): Delete.
16765         (write_local_func_for_structure): New.
16766         (gc_mark_func_name): Delete.
16767         (write_gc_types): Delete.
16768         (write_local): New.
16769         (finish_root_table): Don't include 'ggc_' in PFX.
16770         (write_root): Rename from write_root.  Fill pchw field of structures.
16771         (write_array): New.
16772         (write_roots): Rename from write_gc_roots.  Split out to write_array.
16773         Update to changes to other routines.  Write gt_pch_cache_rtab table.
16774         (main): Write PCH walking routines.
16775         * ggc-common.c: Include toplev.h, sys/mman.h.
16776         (ggc_mark_roots): For cache hashtables, also mark the hash table
16777         and the array of entries.
16778         (saving_htab): New.
16779         (struct ptr_data): New.
16780         (POINTER_HASH): New.
16781         (gt_pch_note_object): New.
16782         (saving_htab_hash): New.
16783         (saving_htab_eq): New.
16784         (struct traversal_state): New.
16785         (call_count): New.
16786         (call_alloc): New.
16787         (compare_ptr_data): New.
16788         (relocate_ptrs): New.
16789         (write_pch_globals): New.
16790         (struct mmap_info): New.
16791         (gt_pch_save): New.
16792         (gt_pch_restore): New.
16793         * ggc-page.c (ROUND_UP_VALUE): New.
16794         (ROUND_UP): New.
16795         (struct page_entry): Add field `pch_page'.
16796         (init_ggc): Use ROUND_UP.
16797         (struct ggc_pch_data): Declare.
16798         (init_ggc_pch): New.
16799         (ggc_pch_count_object): New.
16800         (ggc_pch_total_size): New.
16801         (ggc_pch_this_base): New.
16802         (ggc_pch_alloc_object): New.
16803         (ggc_pch_prepare_write): New.
16804         (ggc_pch_write_object): New.
16805         (ggc_pch_finish): New.
16806         (ggc_pch_read): New.
16807         * ggc.h (gt_pointer_operator): New.
16808         (gt_note_pointers): New.
16809         (gt_pch_note_object): New prototype.
16810         (gt_pointer_walker): New.
16811         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
16812         (LAST_GGC_ROOT_TAB): Update.
16813         (gt_pch_cache_rtab): Declare.
16814         (gt_pch_scalar_rtab): Declare.
16815         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
16816         (LAST_GGC_CACHE_TAB): Update.
16817         (gt_pch_save_stringpool): Declare.
16818         (gt_pch_restore_stringpool): Declare.
16819         (gt_pch_p_S): Declare.
16820         (gt_pch_n_S): Declare.
16821         (struct ggc_pch_data): Forward-declare.
16822         (init_ggc_pch): Declare.
16823         (ggc_pch_count_object): Declare.
16824         (ggc_pch_total_size): Declare.
16825         (ggc_pch_this_base): Declare.
16826         (ggc_pch_alloc_object): Declare.
16827         (ggc_pch_prepare_write): Declare.
16828         (ggc_pch_write_object): Declare.
16829         (ggc_pch_finish): Declare.
16830         (ggc_pch_read): Declare.
16831         (gt_pch_save): Declare.
16832         (gt_pch_restore): Declare.
16833         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
16834         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
16835         const_double_htab, mem_attrs_htab using GGC.
16836         * c-pch.c: Include ggc.h.
16837         (pch_init): Allow reading PCH file back.
16838         (c_common_write_pch): Call gt_pch_save.
16839         (c_common_read_pch): Call gt_pch_restore.
16840         * c-parse.in (init_reswords): Delete now-untrue comment.
16841         Allocate ridpointers using GGC.
16842         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
16843         calling expand_deferred_fns.
16844         * c-common.h (ridpointers): Mark for GTY machinery.
16845         * Makefile.in (stringpool.o): Update dependencies.
16846         (c-pch.o): Update dependencies.
16847         (ggc-common.o): Update dependencies.
16848         * stringpool.c: Include gt-stringpool.h.
16849         (gt_pch_p_S): New.
16850         (gt_pch_n_S): New.
16851         (struct string_pool_data): New.
16852         (spd): New.
16853         (gt_pch_save_stringpool): New.
16854         (gt_pch_restore_stringpool): New.
16855         * tree.c (init_ttree): Make type_hash_table allocated using GC.
16856
16857         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
16858
16859         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
16860         (output_mangled_typename): Don't pass size_t to printf.
16861
16862         * tree.h (union tree_type_symtab): Add tag to `address' field.
16863         (union tree_decl_u2): Add tag to 'i' field.
16864         * varasm.c (union rtx_const_un): Add tags to all fields.
16865         * gengtype.c (struct walk_type_data): New.
16866         (output_escaped_param): Take struct walk_type_data parameter.
16867         (write_gc_structure_fields): Delete.
16868         (walk_type): New.
16869         (write_gc_marker_routine_for_structure): Delete.
16870         (write_func_for_structure): New.
16871         (gc_mark_process_field): New.
16872         (gc_mark_func_name): New.
16873         (gc_counter): Delete.
16874         (write_gc_types): Use write_func_for_structure.
16875         (write_gc_roots): Use walk_type.
16876
16877         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
16878
16879         * ggc-common.c (ggc_mark_roots): Delete 'x'.
16880         (ggc_splay_dont_free): Fix warning about unused 'x'.
16881         (ggc_print_common_statistics): Remove warnings.
16882
16883         2002-10-01  Mike Stump  <mrs@apple.com>
16884
16885         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
16886         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
16887
16888         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
16889             Catherine Moore  <clm@redhat.com>
16890
16891         * Makefile (c-pch.o): Update dependencies.
16892         (LIBCPP_OBJS): Add cpppch.o.
16893         (cpppch.o): New.
16894         * c-common.c (c_common_init): Don't call pch_init here.
16895         * c-common.h (c_common_read_pch): Update prototype.
16896         * c-lex.c (c_common_parse_file): Call pch_init here.
16897         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
16898         (c_common_decode_option): Handle them.
16899         * c-pch.c: Include c-pragma.h.
16900         (save_asm_offset): Delete.
16901         (pch_init): Move contents of save_asm_offset into here, call
16902         cpp_save_state.
16903         (c_common_write_pch): Call cpp_write_pch.
16904         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
16905         cpp_valid_state.
16906         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
16907         * cppfiles.c (stack_include_file): Update for change to
16908         parameters of cb.read_pch.
16909         * cpphash.h (struct cpp_reader): Add `savedstate' field.
16910         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
16911         `restore_pch_deps' fields.
16912         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
16913         (cpp_save_state): Prototype.
16914         (cpp_write_pch): Prototype.
16915         (cpp_valid_state): Prototype.
16916         (cpp_read_state): Prototype.
16917         * cpppch.c: New file.
16918         * flags.h (version_flag): Remove prototype.
16919         * mkdeps.c (deps_save): New.
16920         (deps_restore): New.
16921         * mkdeps.h (deps_save): Prototype.
16922         (deps_restore): Prototype.
16923         * toplev.c (late_init_hook): Delete.
16924         (version_flag): Make static again.
16925         (compile_file): Don't call late_init_hook.
16926         * toplev.h (late_init_hook): Delete.
16927         * doc/cppopts.texi: Document -fpch-deps.
16928         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
16929
16930         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
16931
16932         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
16933         callers.
16934         (c_common_valid_pch): Rename from c_valid_pch, change callers.
16935         (c_common_read_pch): Rename from c_read_pch, change callers.
16936
16937         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
16938         a space between it and its argument.
16939
16940         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
16941
16942         * c-pch.c: New file.
16943         * toplev.h (late_init_hook): Declare.
16944         * toplev.c (late_init_hook): Define.
16945         (version_flag): Make globally visible.
16946         (compile_file): Call late_init_hook.
16947         (init_asm_output): Make output file seekable.
16948         * gcc.c (default_compilers): Update c-header rule.
16949         * flags.h (version_flag): Declare.
16950         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
16951         fields.
16952         * cppfiles.c (struct include_file): Add 'pch' field.
16953         (INCLUDE_PCH_P): New.
16954         (open_file_pch): New.
16955         (stack_include_file): Handle PCH files specially.
16956         (find_include_file): Call open_file_pch instead of open_file.
16957         (_cpp_read_file): Explain why open_file is used instead of
16958         open_file_pch.
16959         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
16960         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
16961         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
16962         in cpplib callbacks.
16963         * c-common.c (pch_file): Correct comment.
16964         (allow_pch): Define.
16965         (c_common_init): Call pch_init.
16966         * c-common.h (allow_pch): Declare.
16967         (pch_init): Declare.
16968         (c_valid_pch): Declare.
16969         (c_read_pch): Declare.
16970         (c_write_pch): Declare.
16971         * Makefile.in (c-pch.o): New.
16972         (C_AND_OBJC_OBJS): Add c-pch.o.
16973         * doc/invoke.texi (Precompiled Headers): Add index entries,
16974         complete truncated paragraph.
16975
16976         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
16977
16978         * c-common.c: (pch_file): Define.
16979         * c-common.h (pch_file): Declare.
16980         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
16981         (missing_arg): Require --output-pch= to have an argument.
16982         (c_common_decode_option): Handle --output-pch=.
16983         * gcc.c: Document new %V.
16984         (default_compilers): Handle compiling C header files.
16985         (do_spec_1): Implement %V.
16986         (main): Handle "gcc foo.h" without trying to run linker.
16987         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
16988         (Overall Options): Document what the driver does with header files,
16989         document new -x option possibilities.
16990         (Invoking G++): More documentation for PCH.
16991         (Precompiled Headers): New.
16992
16993         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
16994
16995         * ggc.h: Don't include varray.h.  Rearrange functions to be more
16996         organized.
16997         (ggc_add_root): Delete.
16998         (ggc_mark_rtx): Delete.
16999         (ggc_mark_tree): Delete.
17000         (struct ggc_statistics): Remove contents.
17001         * ggc-common.c: Remove unneeded includes.
17002         (struct ggc_root): Delete.
17003         (roots): Delete.
17004         (ggc_add_root): Delete.
17005         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
17006         (ggc_print_common_statistics): Remove most of the contents.
17007         * Makefile.in (GGC_H): No longer uses varray.h.
17008         (ggc-common.o): Update dependencies.
17009         (c-parse.o): Add varray.h to dependencies.
17010         (c-common.o): Add varray.h.
17011         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
17012         (mark_ident_hash): Rename to ggc_mark_stringpool.
17013         (init_stringpool): Don't use ggc_add_root.
17014         * c-parse.in: Include varray.h.
17015         * c-common.c: Include varray.h.
17016         * objc/Make-lang.in (objc-act.o): Add varray.h.
17017         * objc/objc-act.c: Include varray.h.
17018
17019         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
17020
17021         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
17022         (dw_cfi_oprnd1_desc): Likewise.
17023
17024         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
17025
17026         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
17027         move out of ifdef.
17028         (alpha_links): Use gengtype to mark; move out of ifdef.
17029         (mark_alpha_links_node): Delete.
17030         (mark_alpha_links): Delete.
17031         (alpha_need_linkage): Use GGC to allocate splay tree, struct
17032         alpha_links, strings.  Don't use ggc_add_root.
17033         * ggc-common.c (ggc_splay_alloc): New.
17034         (ggc_splay_dont_free): New.
17035         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
17036         (ggc_mark_tree): Likewise.
17037         (splay_tree_new_ggc): New.
17038         (ggc_splay_alloc): Declare.
17039         (ggc_splay_dont_free): Declare.
17040         * dwarf2asm.c: Include gt-dwarf2asm.h.
17041         (mark_indirect_pool_entry): Delete.
17042         (mark_indirect_pool): Delete.
17043         (indirect_pool): Use gengtype to mark.
17044         (dw2_force_const_mem): Don't use ggc_add_root.
17045         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
17046         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
17047         (gt-dwarf2asm.h): Depend on s-gtype.
17048
17049         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
17050
17051         * tree.h (union tree_type_symtab): Mark `die' field.
17052         * Makefile.in (dwarf2out.o): Update dependencies.
17053         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
17054         hash tables.
17055         (dw_cfi_oprnd1_desc): New function.
17056         (dw_cfi_oprnd2_desc): New function.
17057         (indirect_string_alloc): Delete.
17058         (debug_str_do_hash): New function.
17059         (debug_str_eq): New function.
17060         (mark_limbo_die_list): Delete.
17061         (dwarf2out_init): Don't call ggc_add_root.
17062
17063 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
17064
17065         The following changes are merged from itanium-sched-branch:
17066
17067         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
17068
17069         * doc/md.texi: Clarify assignment of units to automata description.
17070
17071         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
17072
17073         * genautomata.c (unit_decl): Remove members
17074         `the_same_automaton_unit' and
17075         `the_same_automaton_message_reported_p'.
17076         (process_unit_to_form_the_same_automaton_unit_lists,
17077         form_the_same_automaton_unit_lists_from_regexp,
17078         form_the_same_automaton_unit_lists, the_same_automaton_lists):
17079         Remove them.
17080         (annotation_message_reported_p): New global variable.
17081         (check_unit_distribution_in_reserv,
17082         check_regexp_units_distribution): New functions.
17083         (check_unit_distributions_to_automata): Rewrite it.
17084
17085         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
17086
17087         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
17088         Use continue instead of break if cycle is too big.
17089
17090         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
17091
17092         * genautomata.c (check_unit_distributions_to_automata): Output at
17093         most one message for a unit.
17094         (process_unit_to_form_the_same_automaton_unit_lists): Check
17095         automaton of units instead of units themself.
17096
17097         * doc/md.texi: Describe the constraint about assigning unit to
17098         automata.
17099
17100         2002-12-20  Jan Hubicka  <jH@suse.cz>
17101                     Vladimir Makarov  <vmakarov@redhat.com>
17102
17103         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
17104         and `in_set_p'.
17105         (gen_cpu_unit): Initialize the new members.
17106         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
17107         up `min_occ_cycle_num'.
17108         (evaluate_max_reserv_cycles): Change the function call.
17109         (CLEAR_BIT): New macro.
17110         (states_union, state_shift): Use the mask.
17111         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
17112         (form_reservs_matter): New function.
17113         (make_automaton): Call the function and use the mask.
17114         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
17115         account.
17116
17117         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
17118
17119         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
17120
17121         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
17122
17123         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
17124         for Itanium.
17125
17126         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
17127
17128         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
17129         default cpu.
17130
17131         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
17132                 2002-10-31  Dale Johannesen <dalej@apple.com>
17133
17134         * haifa-sched.c (find_set_reg_weight): New function.
17135         (find_insn_reg_weight): Use the new function.
17136         (schedule_block): Do sorting ready queue always
17137         after insn issue.
17138
17139         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
17140
17141         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
17142
17143         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
17144
17145         * haifa-sched.c (choice_entry): New structure.
17146         (choice_stack, cycle_issued_insns): New variables.
17147         (max_issue): Rewrite it.
17148         (choose_ready): Set up ready_try for unknown insns too.
17149         (schedule_block): Allocate and free choice_stack.  Set up
17150         and modify cycle_issued_insns.
17151
17152         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
17153         with and without filling the bundle.
17154         (bundling): Combine calls of issue_nops_and_insn.
17155
17156         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
17157
17158         * config/ia64/itanium1.md: New file.
17159
17160         * config/ia64/itanium2.md: New file.
17161
17162         * config/ia64/ia64.md: Move DFA descriptions into the new files.
17163         Remove the old pipeline description.
17164
17165         * config/ia64/ia64.c (ia64_override_options): Add aliases of
17166         itanium processor names.
17167
17168         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
17169
17170         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
17171         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
17172
17173         * config/ia64/ia64.md: Add descriptions for Itanium2.
17174
17175         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
17176
17177         * config/ia64/ia64.h (processor_type): New enumeration.
17178         (ia64_tune, ia64_tune_string): New external declarations.
17179         (TARGET_OPTIONS): Add option `tune='.
17180
17181         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
17182         variables.
17183         (ia64_override_options): Set up `ia64_tune'.
17184         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
17185         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
17186         (bundling): Add nops for MM-insns only for Itanium.
17187         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
17188         Itanium.
17189
17190         * config/ia64/ia64.md (cpu): New attribute.
17191         (DFA description): Enable it only for Itanium.
17192
17193         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
17194                     Richard Henderson  <rth@redhat.com>
17195
17196         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
17197         MASK_EARLY_STOP_BITS.
17198         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
17199         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
17200         `early-stop-bits'.
17201
17202         * config/ia64/ia64.c (ia64_dfa_new_cycle,
17203         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
17204         instead of TARGET_TUNE_STOP_BITS.
17205
17206         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
17207         `-mearly-stop-bits'.
17208
17209         * config/ia64/ia64.c (automata_option "v"): Comment it.
17210
17211         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
17212
17213         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
17214         New macros.
17215         (TARGET_SWITCHES): Add entries for the new option.
17216
17217         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
17218         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
17219         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
17220         global variables.
17221         (ia64_sched_reorder2): Set up `clocks'.
17222         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
17223         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
17224         queue when TARGET_TUNE_STOP_BITS.
17225         (bundling): Insert additional nops for MM-insns.
17226         (final_emit_insn_group_barriers): Add insertion of stop bits
17227         according `stops_p'.
17228         (ia64_reorg): Initiate the new varibales.
17229
17230         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
17231
17232         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
17233
17234         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
17235         insns at the end of block insn scheduling.
17236
17237         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
17238
17239         * sched-deps.c (remove_dependence, group_leader): Remove it.
17240         (add_dependence): Add dependence to group leader to.
17241         (set_sched_group_p): Add dependence to the first insn of the
17242         schedule group too.
17243         (sched_analyze_insn): Make dependence to jump as anti-dependence.
17244         Change true dependence by anti-dependence when
17245         `reg_pending_barrier'.
17246
17247         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
17248         add_branch_dependences): Ignore schedule groups.
17249
17250         * sched-ebb.c (init_ready_list): Ditto.
17251
17252         * (move_insn, set_priorities): Ditto.
17253
17254         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
17255         flag is clear after reload.
17256         (adjust_cost): Change cost only for output dependencies.
17257
17258         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
17259
17260         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
17261
17262         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
17263
17264         * target.h (gcc_target): Add member
17265         `dependencies_evaluation_hook'.
17266
17267         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
17268         macro.
17269         (TARGET_SCHED): Add initiatialization of the new member.
17270
17271         * sched-ebb.c: Include `target.h'.
17272         (schedule_ebb): Call `dependencies_evaluation_hook'.
17273
17274         * sched-rgn.c (schedule_region): Call
17275         `dependencies_evaluation_hook'.
17276
17277         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
17278         New macro.
17279         (ia64_dependencies_evaluation_hook): New function.
17280
17281         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
17282         Describe the new hook.
17283
17284         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
17285
17286         * target.h (gcc_target): Add members
17287         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
17288
17289         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
17290         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
17291         macros.
17292         (TARGET_SCHED): Add initiatialization of the new members.
17293
17294         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
17295         insn scheduling too.
17296         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
17297         initialize `ready_try'.
17298         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
17299         `dfa_new_cycle' says not to do it.
17300
17301         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
17302         bundling.
17303
17304         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
17305
17306         * config/ia64/ia64.c: Include `hashtab.h'.
17307         (ia64_first_cycle_multipass_dfa_lookahead_guard,
17308         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
17309         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
17310         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
17311         bundle_state_eq_p, insert_bundle_state,
17312         initiate_bundle_state_table, finish_bundle_state_table,
17313         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
17314         get_template, get_next_important_insn, bundling): New functions.
17315         (ia64_internal_sched_reorder): Remove it.
17316         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
17317         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
17318         (ia64_safe_itanium_requires_unit0): Remove it.
17319         (group_barrier_needed_p): Place group barrier right before a real
17320         insn.
17321         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
17322         Remove them.
17323         (bundle_name): New variable.
17324         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
17325         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
17326         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
17327         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
17328         temp_dfa_state, prev_cycle_state): New global variables.
17329         (insn_matches_slot, maybe_rotate, finish_last_head,
17330         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
17331         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
17332         find_best_packet, itanium_reorder, dump_current_packet,
17333         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
17334         (sched_data, sched_ready, sched_types): Remove them.
17335         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
17336         `init_insn_group_barriers'.
17337         (ia64_sched_reorder, ia64_sched_reorder2): Call
17338         ia64_dfa_sched_reorder.
17339         (ia64_variable_issue): Rewrite it.
17340         (bundle_state): New structure.
17341         (index_to_bundle_states, bundle_states_num,
17342         allocated_bundle_states_chain, free_bundle_state_chain): New
17343         global variables.
17344         (ia64_sched_finish): Add stop bits and call `bundling' after the
17345         2nd insn scheduling.
17346         (ia64_use_dfa_pipeline_interface): Return zero always.
17347         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
17348         insn scheduling.
17349         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
17350         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
17351         (ia64_reorg): Add bundling insns.
17352
17353         * doc/tm.texi
17354         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
17355         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
17356
17357         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
17358
17359         * config/ia64/ia64.md: Add Itanium1 DFA description.
17360         (itanium_class): Add `nop' and `pre_cycle'.  Add
17361         define_function_unit for `nop'.
17362         (nop): Change attribute `itanium_class'.
17363         (pre_cycle): New define_insn.
17364
17365         * config/ia64/ia64-protos.h (bundling_p): New external variable.
17366         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
17367         ia64_produce_address_p): New function prototypes.
17368
17369         * config/ia64/ia64.c (bundling_p): New global variable.
17370         (ia64_use_dfa_pipeline_interface,
17371         ia64_first_cycle_multipass_dfa_lookahead,
17372         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
17373         functions.
17374         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
17375         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
17376         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
17377         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
17378         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
17379         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
17380         (dfa_pre_cycle_insn): New variable.
17381
17382         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
17383
17384         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
17385         constructions.
17386
17387         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
17388         New function prototypes.
17389
17390         * genattrtab.c (main): Process the new constructions.
17391
17392         * genautomata.c (gen_presence_absence_set,
17393         process_presence_absence_names, process_presence_absence_patterns,
17394         add_presence_absence, check_absence_pattern_sets): Add parameter
17395         `final_p'.
17396         (unit_decl): Add new members `final_presence_list' and
17397         `final_absence_list'.
17398         (unit_pattern_rel_decl): Add new member `final_p'.
17399         (gen_final_presence_set, gen_final_absence_set): New functions.
17400         (process_decls): Use member `final_p'.
17401         (temp_reserv): New global variable.
17402         (reserv_sets_are_intersected): Add processing `final_presence_set'
17403         and `final_absence_set'.
17404         (initiate_states): Allocate `temp_reserv'.
17405         (unit_final_presence_set_table, unit_final_absence_set_table): New
17406         gloabal variables.
17407         (initiate_presence_absence_pattern_sets): Initiate them.
17408         (NDFA_to_DFA): Fix typo.
17409         (output_description): Output `final_presence_set' and
17410         `final_absence_set'.
17411
17412         * doc/md.texi (final_presence_set, final_absence_set): Describe
17413         them.
17414
17415         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
17416
17417         * genautomata.c (transform_3): Process a missing case (nothing on
17418         unit place).
17419
17420         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
17421
17422         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
17423         comments about queried units and the minimization.
17424
17425         * doc/md.texi: Ditto.
17426
17427         * genautomata.c (create_composed_state): Return nonzero if the new
17428         state has been created.
17429         (first_cycle_unit_presence): New function.
17430         (state_is_differed): Add new parameter.  Use the new function.
17431         Take queried units into account.
17432         (partition_equiv_class): Pass additional parameter to
17433         `state_is_differed'.
17434         (merge_states): Process composed states too.
17435         (build_automaton, create_automata, output_min_issue_delay_table,
17436         output_tables, output_statistics): Output more information.
17437         (output_reserved_units_table): Use function
17438         `first_cycle_unit_presence'.
17439         (output_tables): Output table of queried units even if the
17440         minimization is switched on.
17441         (write_automata): Output code for querying units even if the
17442         minimization is switched on.
17443
17444         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
17445
17446         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
17447         syntax of the constructions.
17448
17449         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
17450         extended syntax of the constructions.
17451
17452         * genautomata.c (unit_rel_decl): Rename it to
17453         `unit_pattern_rel_decl'.
17454         (pattern_set_el, pattern_reserv): New structures.
17455         (pattern_set_el_t, pattern_reserv_t): New types.
17456         (gen_presence_absence_set): New function.
17457         (process_presence_absence): Remove it.
17458         (process_presence_absence_names,
17459         process_presence_absence_patterns): New functions.
17460         (get_presence_absence_set): Remove it.
17461         (initiate_presence_absence_sets): Rename it on
17462         `initiate_presence_absence_pattern_sets'.  Use new function
17463         `form_reserv_sets_list'.
17464         (form_reserv_sets_list, check_presence_pattern_sets,
17465         check_absence_pattern_sets, output_pattern_set_el_list): New
17466         functions.
17467         (unit_decl): Change types of members `presence_list' and
17468         `absence_list'.
17469         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
17470         (decl): Change types of members `excl', `presence', and `absence'.
17471         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
17472         at the end of the vector.
17473         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
17474         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
17475         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
17476         (gen_presence_set, gen_absence_set): Use new function
17477         `gen_presence_absence_set'.
17478         (add_presence_absence): Process `pattern_list' instead of
17479         `source_list'.
17480         (process_decls): USe new functions
17481         `process_presence_absence_names' and
17482         `process_presence_absence_patterns'.
17483         (reserv_sets_are_intersected): Use new function
17484         `check_presence_pattern_sets'.
17485         (presence_set, absence_set): Remove them.
17486         (unit_presence_set_table, unit_absence_set_table): New global
17487         variables.
17488         (output_description): Use new function
17489         `output_pattern_set_el_list'.
17490         (generate): Use `initiate_presence_absence_pattern_sets'.
17491
17492         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
17493
17494         * genattr.c (main): Add output of prototype of new interface
17495         function `dfa_clean_insn_cache'.
17496
17497         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
17498         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
17499         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
17500         the generated code.
17501         (write_automata): Call the new function.
17502
17503 2003-01-09  Jan Hubicka  <jh@suse.cz>
17504
17505         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
17506         correctly.
17507
17508 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
17509
17510         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
17511
17512 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
17513
17514         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
17515         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
17516         (CONSTRAINT_LEN): Provide default definition.
17517         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
17518         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
17519         (EXTRA_CONSTRAINT_STR): Likewise.
17520         (REG_CLASS_FROM_CONSTRAINT): Define.
17521         * genoutput.c (check_constraint_len, constraint_len): New functions.
17522         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
17523         constraint / modifier.
17524         (gen_insn): Call check_constraint_len.
17525         * local-alloc.c (block_alloc): Update to use new macros / pass
17526         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
17527         * ra-build.c (handle_asm_insn): Likewise.
17528         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
17529         (constrain_operands, peep2_find_free_register): Likewise.
17530         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
17531         * regmove.c (find_matches): Likewise.
17532         * reload.c (push_secondary_reload, find_reloads): Likewise.
17533         (alternative_allows_memconst): Likewise.
17534         * reload1.c (maybe_fix_stack_asms): Likewise.
17535         (reload_cse_simplify_operands): Likewise.
17536         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
17537         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
17538         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
17539         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
17540         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
17541         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
17542
17543         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
17544
17545 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
17546
17547         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
17548         length.
17549         (*extzv_1_r_h8300hs): Likewise.
17550         (*extzv_1_r_inv_h8300): Likewise.
17551         (*extzv_1_r_inv_h8300hs): Likewise.
17552
17553 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
17554
17555         * config/h8300/h8300.h (PREDICATE_CODES): New.
17556
17557 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
17558
17559         * config/h8300/h8300.md (*addsi3_upper): New.
17560         (*iorsi3_shift): Likewise.
17561         (two splitters): Likewise.
17562         (*addsi3_shift): Likewise.
17563         (two splitters): Likewise.
17564
17565 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
17566
17567         * Makefile.in (optabs.o): Add dependency on basic-block.h.
17568         * basic-block.h (control_flow_insn_p): Fuction was exported.
17569         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
17570         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
17571         notes only when the region is contained in a single basic block.
17572
17573 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
17574
17575         PR inline-asm/8832
17576         * tree.h (expand_asm): New prototype.
17577         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
17578         to do so.
17579         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
17580         down to expand_asm.
17581         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
17582         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
17583         (volatile_refs_p) [ASM_INPUT]: Likewise.
17584         (side_effects_p) [ASM_INPUT]: Likewise.
17585
17586 2003-01-09  Jan Hubicka  <jh@suse.cz>
17587
17588         * i386.md (*mul*): FIx constraints; remove confused comment; fix
17589         athlon_decode attributes
17590         (imul/k8 optimization peep2s): New.
17591
17592         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
17593         * i386.md (type attribute): Add ssecomi.
17594         (unit, memory, prefix attributes): Handle ssecomi.
17595         (cvt?2? patterns): Fix athlon_decode attribute
17596         (comi patterns): Set attribute to ssecomi.
17597
17598         PR target/8343
17599         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
17600
17601 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
17602
17603         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
17604         that match register_operands.
17605         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
17606         register_operand the default case.
17607
17608 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
17609
17610         PR c/8032
17611         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
17612         an empty element, do not advance the pointer to unfilled
17613         fields if there are pending initializers.
17614
17615 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
17616
17617         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
17618         (install-gcc-tooldir, install-cpp, installdirs,
17619         install-common, install-driver, install-info, install-man,
17620         install-headers, install-include-dir, install-headers-tar,
17621         install-headers-cpio, install-headers-cp, install-mkheaders,
17622         install-collect2, uninstall): Prepend $(DESTDIR) to
17623         destination paths in all (un)installation commands.
17624         (install-driver): Rewrite $(LN) commands to support DESTDIR
17625         with "ln" as well as with "ln -s".
17626         (installdirs): Simply use mkinstalldirs.
17627         (install-libgcc, install-multilib): Also pass DESTDIR.
17628         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
17629         installation destination variable ldir.
17630         * config/alpha/t-osf4, config/arm/t-netbsd,
17631         config/ia64/t-hpux, config/mips/t-iris5-6,
17632         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
17633         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
17634         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
17635         in the definition of SHLIB_INSTALL.
17636         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
17637         $(libsubdir) in the installation commands.
17638
17639 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
17640
17641         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
17642         non-optimizing compile.
17643         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
17644         compile.
17645
17646 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
17647
17648         * config/i386/i386.c (ix86_attribute_table): Add new attributes
17649         ms_struct and gcc_struct.
17650         (ix86_handle_struct_attribute): New function.
17651         (ix86_ms_bitfield_layout_p): Update to take new attributes
17652         into account.
17653         * doc/extend.texi: Document new attributes.
17654         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
17655
17656 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
17657
17658         PR optimization/8750
17659         * config/i386/i386.c (ix86_expand_prologue): Don't allow
17660         scheduling pass to move insns across __alloca call.
17661
17662 2003-01-08  Dale Johannesen  <dalej@apple.com>
17663
17664         * config/rs6000/rs6000.md:  Replace *store_multiple_string
17665         with *stmsi[3-8].
17666
17667 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
17668
17669         PR target/9210
17670         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
17671         Set SYMBOL_REF_FLAG on local data sym_ref.
17672
17673 2003-01-08  Dale Johannesen  <dalej@apple.com>
17674
17675         * function.c (assign_parms):  Don't set pretend_args_size if
17676           REG_PARM_STACK_SPACE.
17677           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
17678           pretend_args_size.
17679
17680 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
17681
17682         * gcc.hlp: Delete.
17683
17684 2003-01-09  Jan Hubicka  <jh@suse.cz>
17685
17686         * i386.c  (ix86_expand_int_addcc): Fix thinko.
17687
17688 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
17689
17690         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
17691         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
17692         as hook_bool_tree_hwi_hwi_tree_true.
17693         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
17694         (rs6000_emit_epilogue): Same.
17695         (rs6000_output_mi_thunk): Re-implement as RTL.
17696         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
17697         xcoffout_declare_function if any debugging enabled.
17698
17699 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
17700
17701         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
17702         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
17703         * config/mips/mips.h (enum processor_type): Rename
17704         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
17705         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
17706         Add PROCESSOR_M4K.
17707         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
17708         (ISA_MIPS32R2): New define.
17709         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
17710         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
17711         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
17712         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
17713         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
17714         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
17715         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
17716         compiling MIPS16 code.
17717         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
17718         comment.
17719         (ISA_HAS_SEB_SEH): New define.
17720         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
17721         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
17722         processor_type value renaming.  Add support for MIPS32R2.
17723         Clean up comments, and move "sb1" entry with other MIPS64 CPU
17724         entries.
17725         (override_options): Reimplement -mipsN option handling so that
17726         it will work correctly for -mips32r2.  Avoid branch-likely
17727         instructions on MIPS32R2.
17728         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
17729         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
17730         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
17731         (extendhisi2_hw, extendqisi2_hw): New.
17732         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
17733         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
17734         MIPS32R2, and MIPS64.
17735         (LINK_SPEC): Pass -mips32r2 to linker.
17736         * config/mips/t-isa3264: Built -mips32r2 multilibs.
17737         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
17738         for mips32r2 in the -march description.  Alphabetically sort
17739         CPU names in the -march description.  Add long-missed -mips32
17740         and -mips64 to MIPS option summary.
17741
17742         * config.gcc: Update copyright years to include 2003.
17743         * config/mips/mips.c: Likewise.
17744         * config/mips/mips.h: Likewise.
17745         * config/mips/mips.md: Likewise.
17746         * config/mips/netbsd.h: Likewise.
17747         * doc/invoke.texi: Likewise.
17748
17749 2003-01-08  Andreas Schwab  <schwab@suse.de>
17750
17751         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
17752         variable.
17753         * configure: Regenerated.
17754
17755 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
17756
17757         * config/h8300/h8300.c (output_logical_op): Replace byte/word
17758         extraction of det with b0, b1, w0, w2, etc.
17759         (compute_logical_op_length): Likewise.
17760         (compute_logical_op_cc): Likewise.
17761
17762 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
17763
17764         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
17765         HIGH on all variants.
17766
17767 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
17768
17769         * Makefile.in (PARTITION_H): New.
17770         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
17771         * basic-block.h: Include hard-reg-set.h.
17772
17773 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
17774
17775         * arm.h (ENABLE_XF_PATTERNS): Delete.
17776         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
17777         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
17778         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
17779         (cmpxf_trap): Delete.
17780         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
17781
17782 2003-01-08  Jan Hubicka  <jh@suse.cz>
17783
17784         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
17785         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
17786         (add??cc): New expanders.
17787         * i386.c (expand_int_addcc): New function.
17788         * i386-protos.h (expand_int_addcc): Declare.
17789
17790         * alias.c (memory_modified_1): New static function.
17791         (memory_modified): New static varaible.
17792         (memory_modified_in_insn_p): New global function.
17793         * rtl.h (memory_modified_in_insn_p): Declare.
17794         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
17795         references.
17796
17797         * expr.h (emit_conditional_add): Declare.
17798
17799 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
17800
17801         PR other/8947
17802         * doc/invoke.texi (-malign-double): Explain that the option breaks
17803         binary compatibility.
17804
17805 2003-01-08  Andreas Schwab  <schwab@suse.de>
17806
17807         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
17808         should come from the generic *-*-linux* entry.
17809
17810 2003-01-07  Jan Hubicka  <jh@suse.cz>
17811
17812         * cselib.c (cselib_current_insn_in_libcall): New static variable.
17813         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
17814         we are inside libcall.
17815         * cselib.h (elt_loc_list): Add in_libcall.
17816         * gcse.c (do_local_cprop): Do not copy propagate using insns
17817         in libcalls.
17818
17819 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
17820
17821         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
17822         not normally affect to issue rate.
17823
17824 2003-01-07  Jan Hubicka  <jh@suse.cz>
17825
17826         * genopinit.c (optabs): Add addc_optab.
17827         * ifcvt.c (noce_try_store_flag): Rename to ...
17828         (noce_try_addcc): ... this one; handle generic conditional increment.
17829         (noce_process_if_block): Update noce_try_addcc call.
17830         * optabs.c (emit_conditional_add): New.
17831         (init_obtabs): Initialize addc_optab.
17832         * optabs.h (optab_index): Add OTI_addcc.
17833         (addcc_optab): New macro.
17834         * md.texi: Document addMcc
17835
17836         PR target/8322
17837         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
17838         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
17839         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
17840
17841         * reload1.c (delete_output_reload): Avoid repeated attempts
17842         to delete insn.
17843
17844 2003-01-07  Andreas Schwab  <schwab@suse.de>
17845
17846         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
17847         Move --enable-initfini-array check ...
17848         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
17849         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
17850         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
17851         * configure: Rebuild.
17852
17853 2003-01-07  Richard Henderson  <rth@redhat.com>
17854
17855         * alias.c (find_base_value): Only use new_reg_base_value shortcut
17856         if the register is set once.
17857
17858 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
17859
17860         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
17861         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
17862         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
17863
17864 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
17865             Sunil Davasam  <sunil.k.davasam@intel.com>
17866
17867         PR libstdc++/9076
17868         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
17869         DW_CFA_same_value, read next and ignore.
17870
17871 2003-01-07  Richard Henderson  <rth@redhat.com>
17872
17873         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
17874
17875 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
17876
17877         * cfg.c: Include alloc-pool.h
17878         (edge_pool): New pool.
17879         (bb_pool): New pool.
17880         (first_deleted_edge): Remove.
17881         (first_deleted_block): Remove.
17882         (init_flow): Alloc/free the pools.
17883         (free_edge): Use pools.
17884         (alloc_block): Ditto.
17885         (expunge_block): Ditto.
17886         (cached_make_edge): Ditto.
17887
17888         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
17889
17890 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
17891
17892         * et-forest.c: Include alloc-pool.h.
17893         (struct et_forest): Add node_pool and occur_pool.
17894         (et_forest_create): Create the new pools.
17895         (et_forest_delete): Delete them.
17896         (et_forest_add_node): Allocate and free using pools.
17897         (et_forest_add_edge): Ditto.
17898         (et_forest_remove_node): Ditto.
17899         (et_forest_remove_edge): Ditto.
17900
17901         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
17902
17903 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
17904
17905         * config/h8300/h8300.c (output_logical_op): Simplify and
17906         optimize the handling of SImode.
17907         * config/h8300/h8300.c (compute_logical_op_length): Update
17908         accordingly.
17909         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
17910
17911 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
17912
17913         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
17914         big-endian correction to indirect arguments too.
17915
17916 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
17917
17918         Segher Boessenkool  <segher@koffie.nl>
17919
17920         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
17921         (alt_reg_names): Ditto, fix formatting.
17922         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
17923
17924 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
17925
17926         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
17927         (output_logical_op): Constify intval and det.
17928         (compute_logical_length): Likewise.
17929         (compute_logical_cc): Likewise.
17930         (output_a_shift): Constify mask.
17931         (h8300_encode_label): Constify len.
17932
17933 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
17934
17935         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
17936         (h8300_expand_epilogue): Likewise.
17937
17938 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
17939
17940         Segher Boessenkool  <segher@koffie.nl>
17941
17942         * config/rs6000/altivec.md: Remove spaces from assembler
17943         instruction argument lists.
17944
17945 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17946
17947         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
17948         c4x_assembler_function_p.
17949         (c4x_null_epilogue_p): Complement return value, all uses updated.
17950         (c4x_insert_attributes): Add naked.
17951         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
17952         * doc/extend.texi: Update C4x function attributes.
17953
17954 2003-01-06  Richard Henderson  <rth@redhat.com>
17955
17956         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
17957         properly when changing "local-ness".
17958         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
17959
17960 2003-01-06  Dale Johannesen  <dalej@apple.com>
17961
17962         * config/darwin-protos.h:  Add prototypes for new section functions.
17963
17964 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
17965
17966         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
17967         to EABI.
17968
17969 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
17970
17971         * hwint.h: If the current compiler has no 64-bit type at all,
17972         make HOST_WIDEST_INT 32 bits.
17973
17974 2003-01-06  Eric Christopher  <echristo@redhat.com>
17975
17976         * config/mips/mips.md (movdf_internal2): Fix constraints.
17977
17978 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
17979
17980         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
17981
17982 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
17983
17984         * config/mips/mips.md (leadi): Use dla rather than la.
17985
17986 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
17987
17988         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
17989         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
17990
17991 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
17992
17993         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
17994         redefinition.
17995
17996 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
17997
17998         * config/h8300/h8300.md (*extzv_8_23): New.
17999
18000 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18001
18002         * pa64-hpux.h (JCR_SECTION_NAME): Define.
18003         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
18004         USE_EH_FRAME_REGISTRY when defining.
18005
18006 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
18007
18008         * config/h8300/h8300.c (output_a_shift): Do not output a
18009         variable shift.
18010         * config/h8300/h8300.md (two splitters): New.
18011
18012 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
18013
18014         * config/mips/mips.md: Disable the movstrsi define_split.
18015
18016 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18017
18018         * alloc-pool.c: Don't include "libiberty.h".
18019         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
18020         * convert.c (convert_to_real): Hide unused variable.
18021
18022 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18023
18024         * Makefile.in (gtyp-gen.h): Const-ify.
18025         * gcov-dump.c (tag_table): Likewise.
18026
18027 2003-01-04  Bruce Korb  <bkorb@gnu.org>
18028
18029         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
18030         of *both* the file name and the fix name.
18031
18032 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
18033
18034         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
18035         collect2.
18036         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
18037         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
18038         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
18039         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
18040         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
18041         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
18042         elfos.h.
18043         (EH_FRAME_IN_DATA_SECTION): Delete define.
18044         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
18045         (STARTFILE_SPEC): Use crtbegin.o.
18046         (ENDFILE_SPEC): Use crtend.o.
18047         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
18048         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
18049         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
18050         DTOR_LIST_BEGIN): Define.
18051         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
18052         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
18053         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
18054
18055 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
18056
18057         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
18058         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
18059         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
18060         Cleanup handling of replacement text.
18061         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
18062
18063 2003-01-04  Bruce Korb  <bkorb@gnu.org>
18064
18065         * fixinc/tests/base/math.h: removed obsolete results
18066         * fixinc/tests/base/stdlib.h: ditto
18067         * fixinc/tests/base/sys/param.h: ditto
18068         * fixinc/tests/base/sys/stat.h: ditto
18069         * fixinc/tests/base/time.h: ditto
18070         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
18071         * fixinc/tests/base/sys/byteorder.h: ditto
18072         * fixinc/inclhack.def: Remove superfluous backslashes
18073
18074 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
18075
18076         * config/h8300/h8300-protos.h: Add prototypes for
18077         the new functions defined below.
18078         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
18079         define.
18080         (dosize): Emit RTL instead of assembly code.
18081         (push): Likewise.
18082         (pop): Likewise.
18083         (h8300_output_function_prologue): Remove.
18084         (h8300_expand_prologue): New.
18085         (h8300_expand_epilogue): New.
18086         (h8300_output_function_epilogue): Do only the reset of
18087         pragma_saveall.
18088         * config/h8300/h8300.md (push_h8300): New.
18089         (push_h8300hs): Likewise.
18090         (pop_h8300): Likewise.
18091         (pop_h8300hs): Likewise.
18092         (*stm_h8300s_2): Change the name to stm_h8300s_2.
18093         (*stm_h8300s_3): Change the name to stm_h8300s_3.
18094         (*stm_h8300s_4): Change the name to stm_h8300s_4.
18095         (*ldm_h8300s_2): New.
18096         (*ldm_h8300s_3): Likewise.
18097         (*ldm_h8300s_4): Likewise.
18098         (return): Likewise.
18099         (*return_1): Likewise.
18100         (prologue): Likewise.
18101         (epilogue): Likewise.
18102         (monitor_prologue): Likewise.
18103
18104 2003-01-03  Dale Johannesen  <dalej@apple.com>
18105
18106         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
18107           machopic_picsymbol_stub1.
18108           (EXTRA_SECTION_FUNCTIONS):  Ditto.
18109         * rs6000/rs6000.c:  Update copyright.
18110           (machopic_output_stub):  Use them.  Remove an insn from stub code.
18111
18112 2003-01-02  Jason Merrill  <jason@redhat.com>
18113
18114         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
18115
18116         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
18117         static/external decls.
18118
18119         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
18120         outermost scope.
18121         * c-decl.c (c_make_fname_decl): Push the decls there, too.
18122
18123 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
18124
18125         * config/h8300/h8300-protos.h: Add a prototype for
18126         h8300_current_function_interrupt_function_p.
18127         * config/h8300/h8300.c (interrupt_handler): Remove.
18128         (os_task): Likewise.
18129         (monitor): Likewise.
18130         (pragma_interrupt): New.
18131         (WORD_REG_USED): Use
18132         h8300_current_function_interrupt_function_p.
18133         (dosize): Likewise.
18134         (h8300_output_function_prologue): Likewise.
18135         Do not set interrupt_handler, os_task, monitor.
18136         (h8300_output_function_prologue): Use
18137         h8300_current_function_interrupt_function_p.
18138         Do not set interrupt_handler, os_task, monitor.
18139         (h8300_current_function_interrupt_function_p): New.
18140         (h8300_pr_interrupt): Set pragma_interrupt.
18141         (h8300_insert_attributes): Reset pragma_interrupt.
18142
18143 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18144
18145         * doc/install.texi (Configuration): Fix markup for reference to
18146         gcc/config.gcc.
18147
18148 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
18149
18150         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
18151         (*iorhi3_two_qi): Likewise.
18152         (*iorsi3_zexthi): Likewise.
18153         (*xorhi3_zextqi): Likewise.
18154         (*xorsi3_zexthi): Likewise.
18155         (*xorsi3_zextqi): Likewise.
18156
18157 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
18158
18159         * config/h8300/h8300.c (stack_pointer_operand): New.
18160         (const_int_gt_2_operand): Likewise.
18161         (const_int_ge_8_operand): Likewise.
18162         * config/h8300/h8300.md (a splitter): Likewise.
18163         (a peephole2): Likewise.
18164         * config/h8300/h8300-protos.h: Add prototypes for the new
18165         functions above.
18166
18167 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
18168
18169         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
18170         objc/objc-act.h: Fix copyright years.
18171
18172 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
18173
18174         * doc/passes.texi: Fix documentation for -fssa-ccp
18175
18176 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
18177
18178         * gccbug.in: Update for new categories.
18179
18180 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
18181
18182         * config/h8300/h8300.md: Reorder some patterns.
18183
18184 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
18185
18186         * config/h8300/h8300.c (output_logical_op): Fix a warning.
18187
18188 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
18189
18190         * config/darwin-protos.h, config/c4x/c4x-protos.h,
18191         config/cris/cris-protos.h, config/i370/i370-protos.h,
18192         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
18193         config/v850/v850-protos.h: Use struct, and don't conditionally
18194         compile on GCC_C_PRAGMA_H.
18195
18196 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
18197
18198         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
18199         * config/h8300/h8300-protos.h: Likewise.
18200         * config/sh/sh-protos.h: Likewise.
18201
18202 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
18203
18204         * config/arm/arm-protos.h: Use struct cpp_reader instead of
18205         cpp_reader.
18206         * config/h8300/h8300-protos.h: Likewise.
18207         * config/sh/sh-protos.h: Likewise.
18208
18209 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
18210
18211         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
18212         arm_pr_long_calls_off): Use struct.
18213         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
18214         : Similarly.
18215         Don't include cpplib.h.
18216         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
18217         sh_pr_nosave_low_regs): Similarly.
18218
18219 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
18220
18221         * config/h8300/h8300.c: Include cpplib.h.
18222
18223 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
18224
18225         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
18226           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
18227           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
18228           "GCC" in the copyright header.
18229
18230 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
18231
18232         * c-pragma.c (c_register_pragma): New.
18233         (init_pragma): Use it.
18234         * c-pragma.h (cpp_register_pragma): Don't declare.
18235         (c_register_pragma): New.
18236         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
18237         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
18238         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
18239         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
18240         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
18241         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
18242         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
18243         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
18244         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
18245         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
18246         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
18247         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
18248
18249 See ChangeLog.8 for earlier changes.