OSDN Git Service

2003-06-12 Aldy Hernandez <aldyh@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
2
3         * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
4
5 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
6
7         * c-opts.c (complain_wrong_lang): Add on argument.
8         Print no- switch if on is false.
9         (c_common_decode_option): Adjust caller.
10
11 2003-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
12
13         * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
14         to initialize GOT register.
15
16 2003-06-12  Roger Sayle  <roger@eyesopen.com>
17
18         * fold-const.c (tree_expr_nonnegative_p): Add support for
19         floating point constants, addition and multiplication.
20
21 2003-06-12  J"orn Rennecke <joern.rennecke@superh.com>
22
23         * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
24         constraint modifier for operand 0.
25
26 2003-06-12  Hans-Peter Nilsson  <hp@axis.com>
27
28         Don't warn on dollars in builtin macro definitions,
29         e.g. __REGISTER_PREFIX__.
30         * cpphash.h (struct cpp_reader): Move member warn_dollars...
31         * cpplib.h (struct cpp_options): ...to here.  Change type to
32         unsigned char.
33         * cppinit.c (cpp_create_reader): Set it to 1 here.
34         (post_options): Don't set it here.
35         * c-opts.c (c_common_init_options): Reset it to 0 here.
36         (finish_options): Set it here.
37         * cpplex.c (forms_identifier_p): Tweak for new location of
38         warn_dollars.
39
40         * configure.in (assembler dwarf2 debug_line support): Define insn
41         for cris-*-* and mmix-*-*.
42         * configure: Regenerate.
43
44 2003-06-11  Uwe Stieber  <uwe@kaos-group.de>
45
46         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
47         powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
48         (sh-*-elf*): Add sh*-*-kaos* support.
49         * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
50         config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
51         config/sh/kaos-sh.h: New files.
52
53 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
54
55         * gcse.c (fis_get_condition): Make it a global function.
56         * reload1.c (reload_cse_move2add): Detect implicit sets.
57         * rtl.h: Add a prototype for fis_get_condition.
58
59 2003-06-11  Richard Henderson  <rth@redhat.com>
60
61         * stmt.c (expand_asm_operands): Don't warn for memories with
62         queued addresses.
63
64 2003-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
65
66         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
67         brackets.
68
69 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
70
71         * hooks.c (hook_int_size_t_constcharptr_int_0): New.
72         * hooks.h (hook_int_size_t_constcharptr_int_0): New.
73         * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
74         (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
75         * langhooks.c (lhd_decode_option): Remove.
76         * langhooks.h (struct lang_hooks): Remove decode_option.
77         * opts.c (handle_option): No longer use decode_option.
78
79 2003-06-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
80
81         * cfgloopanal.c (variable_initial_value): Update the set of altered
82         registers correctly.
83
84 2003-06-11  Roger Sayle  <roger@eyesopen.com>
85             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
86
87         * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
88         * config/i386/netbsd-elf.h: Likewise.
89         * config/m32r/m32r.h: Likewise.
90         * config/mn10300/mn10300.h: Likewise.
91         * config/stormy16/stormy16.h: Likewise.
92         * config/v850/v850.h: Likewise.
93         * config/vax/netbsd-elf.h: Likewise.
94         * config/xtensa/elf.h: Likewise.
95         * config/xtensa/linux.h: Likewise.
96
97 2003-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
98
99         * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
100         DWARF 2 default.
101
102         * config/mips/dbxmdebug.h: New file.
103         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
104         gas and --with-stabs.
105
106 2003-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
107
108         * expr.c (can_move_by_pieces): align argument may be unused.
109
110 2003-06-11  J"orn Rennecke <joern.rennecke@superh.com>
111
112         * expr.c (convert_move): Handle moves between two CONCATs.
113
114 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
115
116         * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
117         !TARGET_H8300.
118
119 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
120
121         * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
122         * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
123         (TARGET_RTL_DUMP): Likewise.
124         (TARGET_SWITHCES): Remove -mrtl-dump.
125
126 2003-06-10  Richard Henderson  <rth@redhat.com>
127
128         * optabs.c (gen_cond_trap): Fix prepare_operand typo.
129
130 2003-06-10  Richard Henderson  <rth@redhat.com>
131
132         * config/ia64/ia64.md (call_gp): Fix memory mode.
133
134 2003-06-10  James E Wilson  <wilson@tuliptree.org>
135
136         PR target/8812
137         * reload1.c (choose_reload_regs): For equiv reg, add loop over all
138         hard regs for reload_reg_used_at_all and reg_class_contents checks.
139
140 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
141
142         * config/h8300/h8300.c (print_operand): Remove support for
143         operand character 'b'.
144         Add the AND case to operand character 'c'.
145         * config/h8300/h8300.md (two anonymous patterns): Replace
146         operand character 'b' with 'c'.
147
148 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
149
150         * config/h8300/h8300.c (print_operand): Remove support for
151         operand character 'u'.
152
153 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
154
155         * configure.in: Fix typo.
156         * configure: Regenerate.
157
158 2003-06-10  Loren James Rittle  <ljrittle@acm.org>
159
160         * config/alpha/alpha.c (unicosmk_file_end): Add conditional
161         compilation guard.
162
163 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
164
165         * sh-protos.h (function_symbol): Declare.
166         * sh.c (expand_block_move, expand_ashiftrt): Use it.
167         (sh_expand_prologue, sh_expand_epilogue): Likewise.
168         (sh_initialize_trampoline): Likewise.
169         (function_symbol): New function.
170         * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
171         (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
172         (call_value_pop, shcompact_return_tramp): Likewise.
173
174         * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
175
176         * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
177         target register.
178
179 2003-06-10  DJ Delorie  <dj@redhat.com>
180
181         * doc/md.texi (Machine Constraints): Document stormy's Z
182         constraint.
183
184 2003-06-10  Geoffrey Keating  <geoffk@apple.com>
185
186         * except.c (call_site_base): Mark with GTY.
187
188 2003-06-10  Richard Earnshaw  <rearnsha@arm.com>
189
190         * arm-proto.h: Convert to ISO C90 prototypes.
191         * arm.c: Likewise.
192
193 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
194
195         * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
196
197 2003-06-10  Steve Ellcey  <sje@cup.hp.com>
198
199         * calls.c (expand_call): Convert structure_value_addr to Pmode if
200         necessary.
201
202 2003-06-10  Andrew Haley  <aph@redhat.com>
203
204         * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
205         (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
206         (lhd_decl_ok_for_sibcall): New.
207         * langhooks.c (lhd_decl_ok_for_sibcall): New.
208         * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
209         * calls.c (expand_call): Check lang_hook before generating a
210         sibcall.
211
212 2003-06-10  DJ Delorie  <dj@redhat.com>
213
214         * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
215         which matches (const_int 0) for addhi3.
216         * config/stormy16/stormy16.md: Document known constraints.
217         (addhi3): Handle adding zero.
218
219 2003-06-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
220
221         * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
222         * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
223         * config/m32r/m32r-protos.h: Prototype it.
224
225 2003-06-10  Janis Johnson  <janis187@us.ibm.com>
226
227         * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
228         common to rs6000 sysv targets.
229         * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
230         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
231
232 2003-06-10  Nick Clifton  <nickc@redhat.com>
233
234         * config.gcc: Add arm-wince-pe target.
235         * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
236         Add comment about default apcs26 support.
237         * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
238         multilib.
239         (MULTILIB_DIRNAMES): Add 'apcs32'.
240         * config/arm/t-wince-pe: New makefile fragment.
241         * config/arm/wince-pe.h: New file.  Overrides a few definitions
242         in arm/pe.h
243
244 2003-06-10  Roger Sayle  <roger@eyesopen.com>
245
246         * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
247         * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
248         when x is easily negated and f is sin, tan or atan.
249         (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
250         sin(x) with flag_unsafe_math_optimizations.
251         (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
252         sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
253
254 2003-06-10  Roger Sayle  <roger@eyesopen.com>
255
256         * fold-const.c (fold <EQ_EXPR>):  Don't fold x == x only if x
257         is a floating point type *and* we currently honor NaNs.
258         (fold <NE_EXPR>): Likewise.
259
260 2003-06-10  Mark Mitchell  <mark@codesourcery.com>
261
262         PR c++/11131
263         * tree-inline.c (inlinable_function_p): Call the language-specific
264         hook early.
265
266 2003-06-09  David Taylor  <dtaylor@emc.com>
267
268         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg):  Skip over
269         the f_res field.
270
271 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
272
273         * configure.in: Remove references to host_truncate_target.
274         * configure: Regenerate.
275         * config.gcc: Remove references to truncate_target,
276         host_truncate_target.
277
278         * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
279         Replace "build_canonical" with build, "host_canonical" with host.
280         * configure.in: Use GCC_TOPLEV_SUBDIRS.
281         * aclocal.m4: Include ../config/acx.m4.
282         * configure: Regenerate.
283
284 2003-06-09  David Taylor  <dtaylor@emc.com>
285
286         * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
287         bytes of padding in the __va_list_tag structure a name (reserved).
288
289 2003-06-09  Jason Merrill  <jason@redhat.com>
290
291         * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
292
293 2003-06-09  Osku Salerma  <osku@iki.fi>
294
295         * c-format.c (check_format_string, get_constant): New.
296         (handle_format_attribute, handle_format_arg_attribute,
297         decode_format_attr): Change to use above functions.
298
299 2003-06-09  Richard Henderson  <rth@redhat.com>
300
301         * stmt.c (expand_asm_operands): Re-word warning.
302
303 2003-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
304
305         PR target/8787
306         * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
307         if -masm=intel.
308
309 2003-06-09  James E Wilson  <wilson@tuliptree.org>
310
311         * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
312         config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
313         Add libgcc exception.
314
315 2003-06-09  David Edelsohn  <edelsohn@gnu.org>
316             Ayal Zaks  <gcchaifa@us.ibm.com>
317
318         * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
319         (insvsi*): Add insert_word attribute.
320         * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
321         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
322         power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
323
324 2003-06-09  Kazu Hirata  <kazu@cs.umass.edu>
325
326         * fold-const.c (fold): Fix a comment typo.
327
328 2003-06-09  Nathan Sidwell  <nathan@codesourcery.com>
329
330         * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
331         removed.
332
333 2003-06-09  J"orn Rennecke <joern.rennecke@superh.com>
334
335         * sh.c (gen_block_redirect): Use locators.
336
337 2003-06-09  Richard Earnshaw  <rearnsha@arm.com>
338
339         * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
340         cast to int.
341
342 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
343
344         * configure.in: Assume gas 2.14 and above can handle MIPS relocation
345         operators.
346         * configure: Regenerated.
347
348 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
349             Alexandre Oliva  <aoliva@redhat.com>
350
351         * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
352         (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
353         (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
354         n32/64 PIC.
355         (MUST_SAVE_REGISTERS): Delete.
356         * config/mips/mips.c (mips_frame_info): Remove extra_size field.
357         (machine_function): Add global_pointer field.
358         (mips_classify_constant): Check for (const $gp) using pointer equality
359         with pic_offset_table_rtx.
360         (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
361         (mips_restore_gp): Use current_function_outgoing_args_size.
362         (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
363         GP_REG_FIRST + 28.  Handle relocation strings that have
364         more than one '('.
365         (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
366         (mips_global_pointer): New function.
367         (mips_save_reg_p): New function, mostly split out from...
368         (compute_frame_size): ...here.  Remove handling of extra_size.
369         Reclaim args_size if no variables depend on it.  Don't treat gp
370         as a special case: handle it in the main GPR loop.
371         (mips_initial_elimination_offset): Fix comment.
372         (save_restore_insns): Save every register in the GPR mask,
373         removing distinction between mask and real_mask.
374         (mips_output_function_prologue): Update .frame psuedo-op after
375         the removal of extra_size.  Move the SVR4 PIC stack allocation
376         and cprestore instructions to mips_expand_prologue.
377         (mips_gp_insn): New function.
378         (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
379         the chosen global pointer.  Handle SVR4 PIC stack allocation
380         in the same way as other ABIs.  Adjust varargs code accordingly.
381         Emit a cprestore insn after allocating the stack.  Use mips_gp_insn
382         to emit the loadgp sequence.  Follow it with a loadgp_blockage
383         if not using explicit relocs.
384         (mips_output_function_epilogue): Reinstate the default gp register.
385         (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
386         (mips16_optimize_gp): Likewise.
387         * config/mips/mips.md (UNSPEC_LOADGP): Remove.
388         (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
389         (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
390         (loadgp): Remove.
391         (loadgp_blockage, cprestore): New instructions.
392         (builtin_setjmp_setup): Implement using emit_move_insn.  Use
393         pic_offset_table_rtx.
394         (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
395         (builtin_longjmp): Use gen_raw_REG to force use of $28.
396
397 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
398
399         * config/mips/mips-protos.h (mips_output_division): Declare.
400         * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
401         (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
402         (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
403         (TARGET_CHECK_ZERO_DIV): New macro.
404         (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
405         * config/mips/mips.c (mips_output_division): New function.
406         * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
407         account when calculating the default length of a division.
408         (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
409         Enable regardless of optimization level.  Use mips_output_division.
410         (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
411         udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
412         divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
413         modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
414         udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
415         umoddi3_internal): Remove.
416
417 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
418
419         * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
420         (mips_sw_reg_names): Likewise.
421         (mips_regno_to_class): Change hilo entry to NO_REGS.
422         (hilo_operand): Use MD_REG_P.
423         (extend_operator): New predicate.
424         (override_options): Remove 'a' constraint.
425         (mips_secondary_reload_class): Remove hilo handling.  Also remove
426         handling of (plus sp reg) reloads for mips16.
427         (mips_register_move_cost): Remove hilo handling.
428         * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
429         (MD_REG_LAST): Remove hilo from range.
430         (HILO_REGNUM): Delete.
431         (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
432         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
433         (PREDICATE_CODES): Add entry for extend_operator.
434         (DEBUG_REGISTER_NAMES): Change hilo entry to "".
435         * config/mips/mips.md: Remove hilo clobbers wherever they occur.
436         Remove constraints from multiplication define_expands.  Remove
437         clobbers from "decorative" define_expand patterns.
438         (UNSPEC_HILO_DELAY): Delete.
439         (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
440         (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
441         Adjust C code to just emit insns for !TARGET_64BIT.
442         (mulsidi3_internal): Rename to mulsidi3_32bit.
443         (mulsidi3_64bit): Use a "d" constraint for the destination.
444         Use extend_operator so that the pattern can handle umulsidi3 as well.
445         Split the instruction after reload.
446         (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
447         (umulsidi3_internal): Rename to umulsidi3_32bit.
448         (umulsidi3_64bit): Remove.
449         (*smsac_di, *umsac_di): Line-wrap fixes.
450         (udivsi3_internal): Don't allow operand 2 to be constant.
451         (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
452         (movdi_internal2, movsi_internal): Remove hilo alternatives.
453         (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
454
455 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
456
457         PR target/10913
458         * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
459         PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
460         PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
461         PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
462         SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
463         (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
464         PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
465         asm_out_text_file with asm_out_file.
466         * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
467         * config/mips/elf.h (TEXT_SECTION): Undefine.
468         * config/mips/elf64.h (TEXT_SECION): Undefine.
469         * config/mips/openbsd.h (TEXT_SECION): Undefine.
470         * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
471         (override_options): Disable small-data optimizations unless using
472         gas or explicit relocations.
473         (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
474         iris6_asm_named_section, iris6_asm_file_start): Remove code for
475         handling TARGET_FILE_SWITCHING.
476         (copy_file_data): Move into TARGET_IRIX6 block.
477
478 2003-06-08  Richard Henderson  <rth@redhat.com>
479
480         * expr.h (EXPAND_MEMORY): New.
481         * expr.c (expand_expr): Check it.
482         * stmt.c (expand_asm_operands): Provide it when the constraint
483         requires a memory.  Warn for memory input constraints without
484         a memory operand.
485
486 2003-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
487
488         * varasm.c: Don't include c-tree.h.
489
490 2003-06-08  Andreas Jaeger  <aj@suse.de>
491
492         * predict.h: Convert to ISO C90 prototypes.
493         * predict.c: Likewise.
494         * tree-dump.h: Likewise.
495         * tree-dump.c: Likewise.
496         * diagnostic.h: Likewise.
497         * diagnostic.c: Likewise.
498         * combine.c: Likewise.
499
500         * rtl.h: Convert prototypes of combine.c to ISO C90.
501
502 Sun Jun  8 21:27:41 CEST 2003  Jan Hubicka  <jh@suse.cz>
503
504         * cfglayout.c (insn_scope): New static function
505         (block_locators_*, line_locators*, file_locators*): New static varrays.
506         (scope_to_insns_initialize): Use them.
507         (insn_line, insn_file): New functions.
508         (scope_to_insns_finalize): Use insn_scope.
509         (prologue_locator, epilogue_locator): New global variables.
510         * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
511         make_call_insn_raw, emit_copy_of_insn_after): Use locators.
512         (emit_insn_after_scope, emit_insn_before_scope
513         emit_jump_insn_after_scope, emit_jump_insn_before_scope
514         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
515         (emit_insn_after_setloc, emit_insn_before_setloc
516         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
517         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
518         use locators.
519         * final.c (notice_source_line): Use locators.
520         (final_start_function): Set initial source file and line.
521         (final_scan_insn): Use locators.
522         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
523         noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
524         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
525         noce_process_if_block, find_cond_trap): Likewise.
526         * integrate.c (copy_insn_list): Likewise.
527         * jump.c (duplicate_loop_exit_test): LIkewise.
528         * print-rtl.c (print_rtx): Print locators.
529         * recog.c (peephole2_optimize): Likewise.
530         * rtl.h (INSN_SCOPE): Remove.
531         (emit_insn_after_scope, emit_insn_before_scope
532         emit_jump_insn_after_scope, emit_jump_insn_before_scope
533         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
534         (emit_insn_after_setloc, emit_insn_before_setloc
535         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
536         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
537         (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
538         * unroll.c (copy_loop_body): Use locators.
539         * function.c (set_insn_locators): New function.
540         (thread_prologue_and_epilogue_insns): Set the locators accordingly.
541
542 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
543
544         * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
545         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
546         _fixsfdi _fixunssfdi.
547         (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
548         popcounthi2.
549         (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
550         * config/h8300/clzhi2.c: New.
551         * config/h8300/ctzhi2.c: Likewise.
552         * config/h8300/parityhi2.c: Likewise.
553         * config/h8300/popcounthi2.c: Likewise.
554
555 Sun Jun  8 15:52:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
556
557         * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
558         * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
559
560         * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
561         (dump_bb): New based on old dump_bb in cfgrtl.c
562         (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
563         * cfghooks.h (cfgh_verify_flow_info): Return status.
564         * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
565         * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
566         (dump_bb): Remove generic parts.
567         (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
568         (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
569
570 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
571
572         * Makefile.in: Rename options.c and options.h to c-options.c and
573         c-options.h.
574         (OBJS): Remove options.o.
575         * c-opts.c: Don'tInclude c-options.h instead of options.h.
576         * opts.c: Don't include options.h.
577         (find_opt): Can't use enum opt_code or N_OPTS.
578         * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
579         * opts.sh: ... here.
580
581 2003-06-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
582             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
583
584         PR pch/9830
585         * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
586         if HAVE_MINCORE is defined.
587         (MAP_FAILED): Define if not defined.
588         (gt_pch_save): Test against MAP_FAILED.
589         (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
590         the mapping address to the preferred base after checking it
591         is possible to do so. Test against MAP_FAILED.
592         * configure.in: Test for the presence of mincore in libc.
593         * config.in: Regenerate.
594         * configure: Regenerate.
595
596 2003-06-07  Richard Henderson  <rth@redhat.com>
597
598         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
599         conditional compilation guard.
600
601 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
602
603         * optabs.c (expand_abs): Set result_unsignedp to 1 if
604         flag_trav is zero.
605
606 2003-06-07  Richard Henderson  <rth@redhat.com>
607
608         * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
609
610 2003-06-07  Richard Henderson  <rth@redhat.com>
611
612         * basic-block.h (EDGE_SIBCALL): New.
613         (EDGE_ALL_FLAGS): Update.
614         * cfg.c (dump_edge_info): Add sibcall name.
615         * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
616         * cfgrtl.c (purge_dead_edges): Handle sibcalls.
617
618 2003-06-07  Andreas Jaeger  <aj@suse.de>
619
620         * mklibgcc.in (lib2funcs): Remove _exit.
621         * libgcc2.c: Remove L_exit.
622         * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
623
624         * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
625
626         * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
627
628         * ggc.h: Convert to ISO C90 prototypes.
629         * ggc-none.c: Likewise.
630         * ggc-common.c: Likewise.
631         * ggc-page.c: Likewise.
632         * ggc-simple.c: Likewise.
633
634         * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
635
636         * system.h: Poison INIT_SECTION_PREAMBLE.
637
638 2003-06-07  Zack Weinberg  <zack@codesourcery.com>
639
640         * config.gcc (with_cpu handling): Translate sparc64 in
641         $machine to --with-cpu=v9.
642         * config/alpha/alpha.c
643         (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
644         (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
645
646         * target.h: New hook asm_out.file_end.
647         * target.h: Update to match.  New hook macro TARGET_ASM_FILE_END.
648         * toplev.c (compile_file): Use targetm.asm_out.file_end.
649         * system.h: Poison ASM_FILE_END.
650         * varasm.c (file_end_indicate_exec_stack): New.
651         * output.h: Prototype it.
652         * doc/tm.texi: Document TARGET_ASM_FILE_END and
653         file_end_indicate_exec_stack.  Delete references to attasm.h.
654
655         * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
656         (ASM_FILE_END): Delete; move code...
657         * config/darwin.c (darwin_file_end): Here; new function.
658         * config/darwin-protos.h: Prototype it.
659         * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
660         rename unicosmk_file_end.
661         * config/arm/aof.h (ASM_FILE_END): Delete; move code...
662         * config/arm/arm.c (aof_file_end): ... here; new static function.
663         Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
664         Make aof_dump_imports and aof_dump_pic_table static.
665         * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
666         Set TARGET_ASM_FILE_END to avr_file_end.
667         * config/c4x/c4x.c (c4x_file_end): Make static.  Take no arguments.
668         Set TARGET_ASM_FILE_END to c4x_file_end.
669         * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
670         make static. Take no arguments.  Set TARGET_ASM_FILE_END to
671         h8300_file_end.
672         * config/i370/i370.h (ASM_FILE_END): Delete; move code...
673         * config/i370/i370.c (i370_file_end): ... here; new static function.
674         Set TARGET_ASM_FILE_END to i370_file_end.
675          * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
676          Take no arguments.  Call file_end_indicate_exec_stack if
677          NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
678         * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
679         Define NEED_INDICATE_EXEC_STACK to 0.
680         * config/i386/linux.h, config/i386/linux64.h: Redefine
681         NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
682         * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
683         i386_pe_file_end.  Take no arguments.  Use ix86_file_end.
684         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
685         ia64_hpux_file_end, make static.  Take no arguments.
686         * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
687         commands_in_prologues, commands_in_epilogues): Delete.
688         (function_epilogue): Update to match.
689         * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
690         make static.  Take no arguments.
691         (iris6_asm_file_end): Rename iris6_file_end, make static, use
692         mips_file_end, take no arguments.
693         Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
694         appropriate.
695         * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
696         make static, take no arguments. Set TARGET_ASM_FILE_END to
697         mmix_file_end.
698         * config/pa/pa.c (output_deferred_plabels): Make static, take
699         no arguments.  Set TARGET_ASM_FILE_END to output_deferred_plabels.
700         * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
701         (ASM_FILE_END): Delete; move code...
702         * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
703         new static function.
704
705         * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
706         * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
707         Don't set ASM_FILE_END.
708         * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
709         * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
710         * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
711         file_end_indicate_exec_stack; don't set ASM_FILE_END.
712         * config/alpha/unicosmk.h, config/i386/cygming.h
713         * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
714         * config/arm/arm-protos.h, config/alpha/alpha-protos.h
715         * config/avr/avr-protos.h, config/c4x/c4x-protos.h
716         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
717         * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
718         * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
719
720 Sat Jun  7 18:32:13 CEST 2003  Jan Hubicka  <jh@suse.cz>
721
722         * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
723         specified.
724
725 Sat Jun  7 15:20:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
726
727         * Makefile.in (stageprofile_build): Kill redundant target.
728         * i386.c (mdep_reorg): Don't pad jumps for Athlon.
729
730 2003-06-07  Andreas Jaeger  <aj@suse.de>
731
732         * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
733
734         * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
735         * config/dsp16xx/dsp16xx.h: Likewise.
736         * config/i386/i386.h: Likewise.
737         * config/ip2k/ip2k.h: Likewise.
738
739 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
740
741         * Makefile.in (OJBS, c-opts.o): Update.
742         (c-options.c, c-options.h): Rename options.h and options.c.
743         (options.h): Rename options_.h.
744         (opts.o): New.
745         * c-common.h (c_common_handle_option): Replace c_common_decode_option.
746         (c_common_init_options): Update prototype.
747         * c-lang.c (c_init_options): Update prototype.
748         (LANG_HOOKS_HANDLE_OPTION): Override.
749         (LANG_HOOKS_DECODE_OPTION): Drop.
750         * c-opts.c: Include opts.h and options.h instead of c-options.h
751         and c-options.c.
752         (lang_flags): Move to file scope.
753         (find_opt, c_common_decode_option): Remove.
754         (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
755         CL_REJECT_NEGATIVE): Move to opts.h.
756         (missing_arg): Update prototype.
757         (c_common_init_options): Update for new prototype.
758         (c_common_handle_options): Filenames are passed as N_OPTS.
759         * hooks.c (hook_int_void_0): New.
760         * hooks.h (hook_int_void_0): New.
761         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
762         (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
763         (LANG_HOOKS_INITIALIZER): Update.
764         * langhooks.h (init_options): Update.
765         (handle_option): New.
766         * opts.c, opts.h: New files.
767         * opts.sh: Update c file to include opts.h and options.h.
768         * toplev.c: Include opts.h; change options.h to options_.h.
769         (parse_options_and_default_flags): Get lang_mask, use
770         handle_option for language-specific handling.
771         * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
772         (LANG_HOOKS_HANDLE_OPTION): Override.
773         (objc_init_options): Update.
774
775 2003-06-07  Magnus Kreth <magnus.kreth@gmx.de>
776             Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
777
778         PR other/7031
779         * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
780         gcov.
781
782 2003-06-07  Kelley Cook  <kelleycook@wideopenwest.com>
783
784         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
785         section names.
786         * configure: Regenerate.
787
788 2003-06-07  Alan Modra  <amodra@bigpond.net.au>
789
790         * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
791
792 2003-06-06  James E Wilson  <wilson@tuliptree.org>
793
794         PR inline-asm/10890
795         * reload1.c (merge_assigned_reloads): Abort only if two reloads have
796         different in fields.
797
798 2003-06-06  Nathanael Nerode  <neroden@gcc.gnu.org>
799
800         * configure.in: Make $(target_subdir) correspond with top level usage.
801         * Makefile.in: Likewise.
802         * configure: Regenerate.
803
804 2003-06-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
805
806         * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
807         ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
808         unsigned HOST_WIDE_INT.
809         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
810         Likewise.
811         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
812         Likewise.
813
814 2003-06-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
815
816         * doc/install.texi (Prerequisites): New section documenting
817         tools and packages necessary prior to building and/or
818         modifying GCC.
819         * doc/install.texi2html: Also generate prerequisites.html.
820
821 2003-06-06  Richard Earnshaw  <rearnsha@arm.com>
822
823         PR target/11052
824         * ifcvt.c (noce_process_if_block): Fail if the destination has
825         side-effects.
826
827 2003-06-06  Jason Merrill  <jason@redhat.com>
828
829         * stmt.c (resolve_asm_operand_names): Rename from
830         resolve_operand_names.  No longer static.  Avoid needless copying.
831         Don't build array of constraints.
832         (expand_asm_operands): Build it here.
833         * tree.h: Declare resolve_asm_operand_names.
834
835         * stmt.c (expand_decl): Put artificial vars into registers even
836         when not optimizing, and don't mark the regs as user vars.
837
838 2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
839
840         * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
841         of the generated register.
842
843 2003-06-06  Daniel Jacobowitz  <drow@mvista.com>
844
845         * config.gcc: Add a missing sparc64 case.
846
847 2003-06-06  Jakub Jelinek  <jakub@redhat.com>
848
849         * mklibgcc.in: Propagate .note.GNU-stack section if needed into
850         the .hidden assembly stubs.
851
852 2003-06-06  H.J. Lu <hongjiu.lu@intel.com>
853
854         * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
855         and x86_64-*-*.
856
857         * config/i386/mmintrin.h: Update version and add alternate
858         intrinsic names.
859         * config/i386/xmmintrin.h: Likewise.
860
861         * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
862         intrinsics to ...
863         * config/i386/emmintrin.h: Here. New file.
864
865 2003-06-06  Roger Sayle  <roger@eyesopen.com>
866
867         * fold-const.c (fold <ABS_EXPR>):  Re-fold the result of folding
868         fabs(-x) into fabs(x).  Use tree_expr_nonnegative_p to determine
869         when the ABS_EXPR (fabs or abs) is not required.
870         (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
871         always nonnegative from fold to here.  Additionally, cabs and fabs
872         are always non-negative, and pow and atan are non-negative if
873         their first argument is non-negative.
874
875         * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
876         Evaluate cabs of a constant at compile-time.  Convert cabs of a
877         non-complex argument into fabs.  Convert cabs(z) into
878         sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
879         -funsafe-math-optimizations or -ffast-math.
880         (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
881         Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
882
883 Thu Jun  5 20:51:09 CEST 2003  Jan Hubicka  <jh@suse.cz>
884
885         * sourcebuild.texi (Front End Directory): Document new hooks.
886
887 Fri Jun  6 11:02:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
888
889         * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
890         * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
891         stack frames.
892         (pro_epilogue_adjust_stack_rex64_2): New pattern
893
894 Fri Jun  6 11:03:14 CEST 2003  Jan Hubicka  <jh@suse.cz>
895                                Pop Sebastian
896                                Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
897
898         * cfghooks.h, cfghooks.c: New files.
899         * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
900         (OBJS): Add cfghooks.o.
901         (cfghooks.o): New rule.
902         * basic-block.h (split_edge): Rename to rtl_split_edge.
903         (verify_flow_info): Rename to rtl_verify_flow_info.
904         (cfghooks.h): Included here.
905         * cfgrtl.c (split_edge): Renamed rtl_split_edge.
906         (verify_flow_info): Renamed rtl_verify_flow_info.
907         * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
908
909         * basic-block.h (split_block, split_edge, flow_delete_block,
910         redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
911         (flow_delete_block_noexpunge):  Return void.
912         * cfg.c (verify_flow_info): New function.
913         * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
914         try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
915         Use delete_block.
916         * cfglayout.c (function_footer): Rename to...
917         (cfg_layout_function_footer): ... this variable
918         (unlink_insn_chain): Make global.
919         (fixup_reorder_chain, record_effective_endpoints): Update.
920         (cleanup_unconditional_jumps): Use delete_block.
921         (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
922         (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
923         (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
924         * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block):  Delete.
925         (cfg_layout_function_footer): Declare.
926         * cfgloopmanip (split_loop_bb): Do not update RBI.
927         (remove_bbs): Use delete_block.
928         (loop_reidrect_edge, loop_delete_branch_edge): Use
929         redirect_edge_and_branch.
930         (create_preheader): Use split_block and redirect_edge_and_branch_force.
931         (split_edge_with): Likewise.
932         * cfgrtl.c: Include cfglayout.h
933         (split_edge): Rename to ...
934         (rtl_split_edge) ... this one; make local.
935         (redirect_edge_and_branch): Rename to ...
936         (rtl_redirect_edge_and_branch) ... this one; make local.
937         (redirect_edge_and_branch_force): Rename to ...
938         (rtl_redirect_edge_and_branch_force) ... this one; make local.
939         (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
940         (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
941         cfglayout.c; update to directly call RTL counterparts.
942         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
943         * ifcvt.c (find_cond_trap): Use delete_block.
944         (find_if_case_1): Use delete_block.
945         (find_if_case_2): Use delete_block.
946         * rtl.h (unlink_insn_chain): Declare.
947         * toplev.c (rtl_reigster_cfg_hooks): New.
948
949 2003-06-05  Richard Henderson  <rth@redhat.com>
950
951         * recog.c (peephole2_optimize): Revert last change.
952
953 2003-06-05  Richard Henderson  <rth@redhat.com>
954
955         * recog.c (peephole2_optimize): Don't split block unless
956         can_throw_internal.
957
958 2003-06-06  Kazu Hirata  <kazu@cs.umass.edu>
959
960         * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
961         * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
962
963 2003-06-05  Kelley Cook  <kelleycook@wideopenwest.com>
964
965         PR optimization/4490
966         * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
967         * doc/invoke.texi (m96bit-long-double, m128bit-long-double):  Reword
968         documentation to accurately reflect what these options do.
969
970 2003-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
971
972         * config/sh/linux.h (STARTFILE_SPEC): Handle -pie.  Simplify.
973         (ENDFILE_SPEC): Redefine to handle -pie.
974
975 2003-06-05  Phil Edwards <phil@jaj.com>
976
977         * Makefile.in (qmtest-g++): Use target_alias, not target.
978
979 2003-06-05  Per Bothner  <pbothner@apple.com>
980
981         * toplev.c (push_srcloc):  Simplify behavior to save current location
982         and set current location to parameters.
983         (pop_srcloc):  Simplify semantics.
984         (lang_dependent_init):  Remove now-useless initial push_srcloc.
985
986 2003-05-06  Richard Henderson  <rth@redhat.com>
987
988         * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
989         language-specific tree codes.
990
991 2003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
992
993         PR middle-end/9986
994         * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
995         BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
996
997 Thu Jun  5 18:32:46 CEST 2003  Jan Hubicka  <jh@suse.cz>
998
999         * install.tex: Document profiledbootstrap.
1000
1001         * configure.in:  Add support for lang.stageprofile and
1002         lang.stagefeedback
1003         * Makefile.in (clean, distclean): Kill new stages
1004         (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
1005         (STAGE2_FLAGS_TO_PASS): ... this one.
1006         (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
1007         (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
1008         (stageprofile_build, stageprofile_copy, stagefeedback_build,
1009         stagefeedback_copy): New.
1010         (restageprofile, restagefeedback, stageprofile-start,
1011         stageprofile, stagefeedback-start): Likewise.
1012
1013 2003-06-05  David Miller  <davem@redhat.com>
1014             Richard Henderson  <rth@redhat.com>
1015
1016         * optabs.c (HAVE_conditional_trap): Provide default.
1017         (gen_conditional_trap): Likewise.
1018         (init_optabs): Merge init_traps.
1019         (gen_cond_trap): Use prepare_operand.  Restructure and avoid ifdef.
1020
1021 Thu Jun  5 14:59:44 CEST 2003  Jan Hubicka  <jh@suse.cz>
1022
1023         * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
1024         is REG for nonzero_bits (REG) == 8.
1025
1026 Thu Jun  5 13:23:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
1027
1028         * i386.md (align): Fix warning; clarify what to do when no p2align
1029         is available.
1030
1031 2003-06-05  Nick Clifton  <nickc@redhat.com>
1032
1033         * config.gcc (m32r-elf): Revert previous delta.
1034         * config/m32r/t-m32r (crtinit.o): Fix rule to work with
1035         multilibs.  Remove m32rx specific version.
1036         (crtfini.o): Likewise.
1037         (EXTRA_MULTILIB_PARTS): Define.
1038
1039 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
1040
1041         * doc/md.texi (Machine Constraints): Correct the meaning of
1042         constraints related to floating-point registers on SPARC.
1043
1044 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
1045             Paolo Bonzini  <bonzini@gnu.org>
1046
1047         PR target/10663
1048         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
1049         assembler and linker output to /dev/null.
1050         Use a 'sed' construct instead of 'grep -A1'.
1051         * configure: Regenerate.
1052
1053 2003-06-04  Richard Henderson  <rth@redhat.com>
1054
1055         * config/i386/i386.c (struct ix86_address): Add seg.
1056         (no_seg_address_operand): New.
1057         (ix86_decompose_address): Restructure PLUS loop.  Accept one
1058         UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS.  Adjust ESP swap test
1059         to test for a regnum, not stack_pointer_rtx.
1060         (ix86_address_cost): Reduce cost if non-default segment.
1061         (legitimate_address_p): Remove UNSPEC_TP check.
1062         (get_thread_pointer): Add to_reg argument.  Don't represent
1063         the thread pointer as a memory load.
1064         (legitimize_tls_address): Split out of ...
1065         (legitimize_address): ... here.
1066         (print_operand_address): Handle parts.seg.
1067         (ix86_expand_move): Use legitimize_tls_address.
1068         (ix86_rtx_costs): Handle UNSPEC_TP.
1069         * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
1070         (TARGET_TLS_DIRECT_SEG_REFS): New.
1071         (TARGET_SWITCHES): Add tls-direct-seg-refs.
1072         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
1073         (PREDICATE_CODES): Add no_seg_address_operand.
1074         * config/i386/i386.md (lea_1): Use it.
1075         (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
1076         (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
1077         * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
1078         * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
1079         * doc/invoke.texi: Add -mtls-direct-seg-refs.
1080
1081 2003-06-04  Mark Mitchell  <mark@codesourcery.com>
1082
1083         * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
1084         (QMTEST_GPP_TESTS): Use "g++" by default.
1085         (stamp-qmtest): Tweak database creation.
1086         (QMTEST_DIR/context): Update context file format.
1087         (qmtest-g++): Tweak command-line.
1088
1089 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1090
1091         * Makefile.in (varasm.o): Don't set -Wno-error.
1092         * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
1093
1094 2003-06-04  Zack Weinberg  <zack@codesourcery.com>
1095
1096         PR bootstrap/3163
1097         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
1098         (gcc_AC_FUNC_MMAP_BLACKLIST): New.
1099         * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
1100         and AC_CHECK_FUNCS lists, respectively.  Use
1101         gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
1102         AC_FUNC_MMAP_FILE.
1103         * configure, config.in: Regenerate.
1104
1105 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1106
1107         * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
1108         * arm.c (arm_output_function_prologue): Fix format specifiers.
1109         * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
1110         * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
1111         HOST_WIDE_INT_PRINT_DEC.
1112         * vax.c (vax_output_function_prologue): Fix format specifiers.
1113
1114 2003-06-04  Richard Henderson  <rth@redhat.com>
1115
1116         * cse.c (find_best_addr): Consider binary operators even if second
1117         argument is not CONST_INT.
1118
1119 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1120
1121         * doc/invoke.texi (max-cse-path-length): Document.
1122
1123 2003-06-04  Richard Henderson  <rth@redhat.com>
1124
1125         * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
1126
1127 2003-06-04  Andrew Pinski <pinskia@physics.uc.edu>
1128
1129         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
1130         Remove semi-colon at the end of the expression.
1131
1132 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1133
1134         * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
1135         * i370.h (mvs_function_name_length): Likewise.
1136         * i960.h (CONSTANT_ALIGNMENT): Likewise.
1137         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1138         * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1139         * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1140         * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
1141         variable.
1142
1143 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
1144
1145         * config.gcc: Reorganize --with-cpu logic.  Set
1146         configure_default_options according to the default CPU, --with-cpu,
1147         --with-arch, --with-tune, --with-schedule, --with-abi, and
1148         --with-float.  Check for legal values of various options.
1149         * configure.in: Define configure_default_options in configargs.h.
1150         * configure: Regenerated.
1151         * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
1152         (TARGET_DEFAULT_FLOAT_P): New macros.
1153         * gcc.c (do_option_spec): New function.
1154         (struct default_spec, option_default_specs): New.
1155         (main): Call do_option_spec.
1156         * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
1157         config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
1158         config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
1159
1160         * doc/install.texi: Update --with-cpu documentation.  Mention
1161         --with-arch, --with-schedule, --with-tune, --with-abi, and
1162         --with-float.
1163         * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
1164
1165 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
1166
1167         * config.gcc: Only process --with-cpu logic in the third pass.
1168
1169 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
1170
1171         * config.gcc: Reorganize --with-cpu section.  Remove an
1172         obsolete comment about the default CPU for x86-64.  Fix
1173         a typo for the ep9312.  Update the list of supported PowerPC
1174         CPUs.  Support a limited set of new --with-cpu options
1175         for i386.
1176
1177 2003-06-04  Aldy Hernandez  <aldyh@redhat.com>
1178
1179         * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
1180         complex numbers <= 32 bits into two registers.
1181
1182 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1183
1184         * alpha.c (print_operand_address): Fix format specifier warnings.
1185         * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1186         * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1187         * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
1188         * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
1189         * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
1190         ASM_OUTPUT_SKIP): Likewise.
1191         * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1192         * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1193         * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
1194         Likewise.
1195         * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1196         * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
1197         * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
1198         * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1199         * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
1200         * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1201         * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1202         * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1203         * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1204         * svr3.h (ASM_OUTPUT_COMMON): Likewise.
1205
1206 2003-06-04  J"orn Rennecke <joern.rennecke@superh.com>
1207
1208         * c-decl.c (c_init_decl_processing): Clear input_file_name
1209         while building common nodes.
1210         * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
1211         Don't add working directory for strings like <built-in> .
1212
1213 2003-06-04  David Edelsohn  <edelsohn@gnu.org>
1214
1215         * doc/install.texi (*-ibm-aix*): Native as and ld required
1216         to bootstrap on AIX 5L.
1217
1218 2003-06-04  Richard Henderson  <rth@redhat.com>
1219
1220         * c-common.c (handle_cleanup_attribute): New.
1221         (c_common_attributes): Add it.
1222         * c-decl.c (finish_decl): Honor the cleanup attribute.
1223         * doc/extend.texi (Variable Attributes): Document it.
1224
1225         * unwind-c.c: New file.
1226         * Makefile.in (LIB2ADDEH): Add it.
1227         * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
1228         config/ia64/t-ia64: Likewise.
1229
1230 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
1231
1232         * function.c (trampolines_created): New variable.
1233         (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
1234         * function.h (trampolines_created): Add.
1235         * config/s390/linux.h (ASM_FILE_END): Define.
1236         * config/alpha/linux-elf.h (ASM_FILE_END): Define.
1237         * config/m68k/linux.h (ASM_FILE_END): Define.
1238         * config/rs6000/linux.h (ASM_FILE_END): Define.
1239         * config/rs6000/linux64.h (ASM_FILE_END): Define.
1240         * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
1241         * config/sparc/linux.h (ASM_FILE_END): Define.
1242         * config/sparc/linux64.h (ASM_FILE_END): Define.
1243         * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
1244         * config/i386/linux.h (SUBTARGET_FILE_END): Define.
1245         * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
1246
1247 Wed Jun  4 18:39:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
1248
1249         * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
1250         (ix86_reorg): Use it.
1251         * i386.md (align): New insn pattern.
1252
1253 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1254
1255         * toplev.c (rest_of_type_compilation): Fix typo.
1256
1257 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
1258             Alan Modra  <amodra@bigpond.net.au>
1259
1260         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
1261         * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
1262         * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
1263         * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
1264         * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
1265         * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
1266         (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
1267         * config/rs6000/rs6000.c (output_profile_hook): Likewise.
1268
1269         * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
1270         Pass it to $gcc_cv_as.
1271         * configure: Rebuilt.
1272
1273         * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
1274         (print_operand): Allow TARGET_AIX to be non-constant.
1275         (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
1276         Define unconditionally.
1277         (rs6000_elf_declare_function_name): New function.
1278         * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
1279         non-constant.
1280         * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
1281         to 1.
1282         (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
1283         [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
1284         is defined.
1285         (TARGET_AIX): Define to 1 if TARGET_64BIT.
1286         (PROCESSOR_DEFAULT): Remove.
1287         (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
1288         INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
1289         [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
1290         (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
1291         -m32 and -m64.
1292         (MULTILIB_DEFAULTS): Define.
1293         (SUBSUBTARGET_EXTRA_SPECS): Define.
1294         (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
1295         (TARGET_TOC): Define only if !RS6000_BI_ARCH.
1296         (TARGET_NO_TOC): Remove.
1297         [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
1298         TARGET_PROTOTYPE): Define to 0.
1299         (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
1300         (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
1301         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
1302         if !TARGET_64BIT.
1303         (USER_LABEL_PREFIX): Remove.
1304         (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
1305         (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
1306         if TARGET_64BIT.
1307         (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
1308         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
1309         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
1310         (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
1311         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
1312         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
1313         TARGET_64BIT.
1314         (RS6000_CALL_GLUE): Likewise.
1315         (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
1316         RESTORE_FP_SUFFIX): Likewise.
1317         (ASM_DECLARE_FUNCTION_NAME): Remove.
1318         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
1319         DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
1320         name if TARGET_64BIT.
1321         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
1322         !TARGET_64BIT.
1323         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
1324         (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
1325         (DRAFT_V4_STRUCT_RET): Define.
1326         (SIGNAL_FRAMESIZE): New enum value.
1327         (MD_FALLBACK_FRAME_STATE_FOR): Define.
1328         * config/rs6000/default64.h: New file.
1329         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
1330         options.
1331         (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
1332         to RS6000_ABI_NAME.  Only disallow mixing of -fPIC with -mcall-aixdesc
1333         if !TARGET_64BIT.
1334         [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
1335         (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
1336         function.
1337         (TARGET_OS_SYSV_CPP_BUILTINS): Define.
1338         (TARGET_OS_CPP_BUILTINS): Use it.
1339         (CPP_SYSV_SPEC): Remove.
1340         (CPP_SPEC): Remove cpp_sysv.
1341         (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
1342         Add SUBSUBTARGET_EXTRA_SPECS.
1343         (SUBSUBTARGET_EXTRA_SPECS): Define.
1344         * config/rs6000/biarch64.h: New file.
1345         * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
1346         New prototype.
1347         * config/rs6000/x-linux64: New file.
1348         * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
1349         multilibs.
1350         * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
1351         * config/rs6000/eabi-cn.asm: Likewise.
1352         * config/rs6000/tramp.asm: Likewise.
1353         * config/rs6000/sol-ci.asm: Likewise.
1354         * config/rs6000/sol-cn.asm: Likewise.
1355         * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
1356         (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
1357         * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
1358         _CALL_AIXDESC section.
1359         * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
1360         defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
1361         or default32.
1362
1363 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
1364
1365         * config.gcc: Revert accidentally committed ARM changes.
1366
1367 2003-06-04  Roger Sayle  <roger@eyesopen.com>
1368
1369         * builtins.c (dconstpi, dconste): New mathematical constants.
1370         (init_builtin_dconsts): New function to initialize dconstpi
1371         and dconste.
1372         (fold_builtin): Optimize exp(1.0) = e.  Evaluate exp(x) at
1373         compile time with -ffast-math when x is an integer constant.
1374         Optimize tan(0.0) = 0.0.  Optimize atan(0.0) = 0.0,
1375         atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
1376
1377 2003-06-04  Roger Sayle  <roger@eyesopen.com>
1378
1379         * calls.c (expand_call): Avoid calling pure or const functions
1380         when the result is ignored (or void) and none of the arguments
1381         are volatile.  Move warning diagnostic earlier in function.
1382
1383 2003-06-04  Andreas Jaeger  <aj@suse.de>
1384
1385         * system.h: Do not poison TDESC_SECTION_ASM_OP,
1386         RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
1387
1388 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1389
1390         * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
1391         optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
1392         handle %ll, optimize regular character case.
1393
1394 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1395
1396         * Makefile.in (cse.o): Add params.h dependency.
1397         * cse.c: Include params.h.
1398         (PATHLENGTH): Removed.
1399         (struct cse_basic_block_data): Make path array dynamic.
1400         (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
1401         of PATHLENGTH.
1402         (cse_main, cse_basic_block): Allocate path array.
1403         * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
1404
1405 Wed Jun  4 09:49:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
1406
1407         * i386.c (ix86_reorg): Replace the jump instead of adding nop.
1408         * i386.md (UNSPEC_REP): New constant.
1409         (return_internal_long): New pattern.
1410
1411 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1412
1413         PR optimization/11018
1414         * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
1415         consistently to decide whether the scratch register is really
1416         required.
1417
1418 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1419
1420         PR optimization/10876
1421         * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
1422         new 'O' constraint for constant 4096.
1423         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
1424         * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
1425         Do not transform into MINUS insn for constant 4096.
1426         (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
1427         for constant 4096 as third operand.
1428         (addsi3 expander): Remove.
1429         (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
1430         new alternative for constant 4096 as third operand.
1431         (subdi3 expander): Do not transform into PLUS insn for constant 4096.
1432         (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
1433         operand.
1434         (subsi3 expander): Remove.
1435         (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
1436         constant 4096 as third operand.
1437         * doc/md.texi (Machine Constraints): Document new 'O' constraint for
1438         the SPARC port.
1439
1440 2003-06-03  Chris Demetriou  <cgd@broadcom.com>
1441
1442         * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
1443
1444 2003-06-04  Andreas Jaeger  <aj@suse.de>
1445
1446         * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
1447
1448         * config/i386/i386.c (ix86_expand_prologue): Do not use
1449         SUBTARGET_PROLOGUE.
1450
1451         * system.h: Poision SUBTARGET_PROLOGUE.
1452
1453         * config/arm/arm-protos.h: Remove unused rdate_section prototype.
1454
1455         * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
1456         dependend code.
1457
1458         * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
1459
1460         * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
1461         INSN_CACHE_LINE_WIDTH.
1462
1463         * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
1464         (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
1465         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
1466
1467         * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
1468         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
1469
1470         * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
1471         (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
1472         (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
1473         (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
1474         (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
1475         (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
1476
1477         * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
1478         DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
1479         DBX_WORKING_DIRECTORY.
1480
1481         * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
1482         DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
1483
1484         * config/frv/frv-protos.h: Remove unused const_section
1485         declaration.
1486         * config/vax/vax-protos.h: Likewise.
1487
1488         * output.h: Remove CONST_SECTION_ASM_OP usage.
1489
1490         * system.h: Poison CONST_SECTION_ASM_OP.
1491
1492         * crtstuff.c (__do_global_dtors_aux): Remove usage of
1493         CRT_GET_RFIB_TEXT.
1494         (frame_dummy): Likewise.
1495         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
1496         * system.h: Poison CRT_GET_RFIB_TEXT.
1497
1498         * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
1499
1500         * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
1501         (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
1502         (recognized_function): Likewise.
1503         (read_scan_file): Likewise.
1504
1505 2003-06-03  Roger Sayle  <roger@eyesopen.com>
1506
1507         * optabs.c (expand_binop): Optimize complex multiplication for
1508         the case of squaring a complex argument.
1509
1510 2003-06-03  Roger Sayle  <roger@eyesopen.com>
1511
1512         * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
1513         non-volatile operands of binary operations.
1514         (prepare_cmp_insn): Likewise.
1515
1516 2003-06-03  Roger Sayle  <roger@eyesopen.com>
1517
1518         * varasm.c (force_const_mem): Handle alignment of constants not
1519         representable as a type in the front-end language.
1520
1521 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
1522
1523         * flow.c (initialize_uninitialized_subregs): Use
1524         emit_move_insn instead of emitting a hardcoded move.
1525
1526 2003-06-03  Richard Henderson  <rth@redhat.com>
1527
1528         * optabs.c (expand_abs_nojump): Split out from ...
1529         (expand_abs): ... here.
1530         * optabs.h (expand_abs_nojump): Declare.
1531         * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
1532         * Makefile.in (ifcvt.o): Depend on optabs.h.
1533
1534 2003-06-03  Alan Modra  <amodra@bigpond.net.au>
1535
1536         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
1537
1538 2003-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
1539
1540         * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
1541         (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
1542         to yes.
1543         * configure.in: Allow default_use_cxa_atexit to determine the
1544         value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
1545         disabled.
1546         * configure: Regenerate.
1547
1548 2003-06-03  Douglas B Rupp  <rupp@gnat.com>
1549
1550         * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
1551         * doc/gcc.texi: Remove vms.texi section.
1552         * doc/vms.texi: Remove obsolete file.
1553
1554 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
1555
1556         * configure.in (inhibit_libc): Don't define when configuring
1557         with --with-newlib --with-headers.
1558         * configure: Regenerate.
1559
1560         * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
1561
1562 2003-06-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1563
1564         * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
1565         IRIX 6 without GNU ld.
1566         * configure: Regenerate.
1567
1568 2003-06-03  Roger Sayle  <roger@eyesopen.com>
1569
1570         * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
1571         of a complex number rather than invoke mov_optab directly.
1572
1573 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
1574
1575         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
1576         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
1577
1578 2003-06-03  Nathanael Nerode  <neroden@gcc.gnu.org>
1579
1580         * config/i386/x86-64.h: Remove two target-independent comments;
1581          replace "GNU CC" with "GCC".
1582
1583 2003-06-03  Anthony Green  <green@redhat.com>
1584
1585         * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
1586
1587 2003-06-03  Roger Sayle  <roger@eyesopen.com>
1588
1589         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
1590         New builtins representing ISO C99's cabs, cabsf and cabsl.
1591         * builtins.c (expand_builtin_fabs): New function.
1592         (expand_builtin_cabs): New function.
1593         (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
1594         using expand_builtin_fabs and expand_builtin_cabs respectively.
1595
1596         * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
1597
1598 2003-06-03  Aldy Hernandez  <aldyh@redhat.com>
1599
1600         * function.c (assign_parms): Split complex arguments.
1601
1602         * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
1603
1604         * expr.h (SPLIT_COMPLEX_ARGS): Define.
1605         (split_complex_types): Protoize.
1606         (split_complex_values): Protoize.
1607
1608         * calls.c (expand_call): Split complex arguments on architectures
1609         that require it.
1610         (split_complex_values): New.
1611         (split_complex_types): New.
1612
1613         * config/rs6000/rs6000.c (rs6000_libcall_value): New.
1614         (rs6000_function_value): Handle complex values on AIX.
1615         (rs6000_complex_function_value): New.
1616
1617         * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
1618
1619         * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
1620         (SPLIT_COMPLEX_ARGS): New.
1621
1622 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
1623
1624         * configure.in (HAVE_LD_PIE): Check for ld -pie.
1625         * config.in: Rebuilt.
1626         * configure: Rebuilt.
1627         * toplev.c (flag_pie, flag_shlib): New variables.
1628         (f_options): Add -fpie and -fPIE.
1629         (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
1630         Set flag_shlib if flag_pic and not -fpie/-fPIE.
1631         * flags.h (flag_pic, flag_shlib): Add.
1632         * varasm.c (default_binds_local_p): Use flag_shlib instead of
1633         flag_pic.
1634         * gcc.c (LINK_PIE_SPEC): Define.
1635         (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
1636         (option_map): Add --pie -> -pie mapping.
1637         * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
1638         and -fPIE the same way as -fPIC.
1639         * config/openbsd.h (ASM_SPEC): Likewise.
1640         * config/frv/frv.h (ASM_SPEC): Likewise.
1641         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
1642         * config/arm/semi.h (ASM_SPEC): Likewise.
1643         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
1644         * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
1645         * config/i386/beos-elf.h (CC1_SPEC): Likewise.
1646         * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
1647         * config/m68k/linux.h (CPP_SPEC): Likewise.
1648         * config/m68k/netbsd.h (ASM_SPEC): Likewise.
1649         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
1650         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
1651         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
1652         * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
1653         * config/pa/pa-linux.h (CPP_SPEC): Likewise.
1654         * config/netbsd-aout.h (ASM_SPEC): Likewise.
1655         * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
1656         * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
1657         * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
1658         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
1659         * config/sparc/sparc.h (ASM_SPEC): Likewise.
1660         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
1661         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
1662         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
1663         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
1664         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
1665         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
1666         Simplify.
1667         * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1668         * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1669         * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1670         * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1671         * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1672         * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1673         * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1674         * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
1675
1676 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
1677
1678         * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
1679         != 0 handling.  Pass 0 to store_by_pieces.
1680         (expand_builtin_mempcpy): Add endp argument.  Don't call
1681         expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
1682         directly.  If ignoring result, only do expand_call.
1683         (expand_builtin_stpcpy): Likewise.  Call expand_builtin_mempcpy
1684         otherwise.
1685         (expand_builtin_strncpy, expand_builtin_memset): Adjust
1686         store_by_pices callers.
1687         (expand_builtin): Adjust expand_builtin_memcpy and
1688         expand_builtin_mempcpy callers.
1689         * expr.c (can_move_by_pieces): New function.
1690         (move_by_pieces): Add endp argument, return to resp. memory at end
1691         or one byte earlier depending on endp.
1692         (store_by_pieces): Likewise.
1693         (emit_block_move): Adjust call to move_by_pieces.
1694         (emit_push_insn): Adjust move_by_pieces caller.
1695         * expr.h (can_move_by_pieces): New prototype.
1696         (store_by_pieces): Adjust prototypes.
1697         * rtl.h (move_by_pieces): Adjust prototype.
1698         * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
1699         caller.
1700
1701 2003-06-03  Ben Elliston  <bje@wasabisystems.com>
1702
1703         * doc/md.texi (Processor pipeline description): Improve wording.
1704
1705 2003-06-03  Neil Booth  <neil@daikokuya.co.uk>
1706
1707         * c-opts.c (c_common_handle_option): New, pulled out of
1708         c_common_decode_option.  Substitute uses of argv.
1709         (c_common_decode_option): Broken into two.
1710
1711 2003-06-02  Roger Sayle  <roger@eyesopen.com>
1712             Zack Weinberg  <zack@codesourcery.com>
1713
1714         * emit-rtl.c (gen_complex_constant_part):  Remove unnecessary
1715         test of TREE_CONSTANT_POOL_ADDRESS_P.
1716
1717 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1718
1719         * mips.c: Don't include output.h twice.
1720         * stormy16.c: Likewise.
1721         * xtensa.c: Likewise.
1722         * output.h: Protect against multiple inclusion.
1723
1724 2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
1725
1726         * sh.h (OLD_ARG_MODE): New macro.
1727         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
1728         (FUNCTION_ARG_1): Break out of:
1729         (FUNCTION_ARG).  Use OLD_ARG_MODE.
1730
1731 2003-06-02  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
1732
1733         * gcc/config.gcc Add support multilib parts for m32rx processor.
1734
1735 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1736
1737         * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
1738         (mostlyclean): Delete c-options.c and c-options.h.
1739
1740 2003-06-02  Neil Booth  <neil@daikokuya.co.uk>
1741
1742         * c-opts.c (CL_REJECT_NEGATIVE): New.
1743         (c_common_decode_option): Update to use it.
1744         * c.opt: Update documentation; use RejectNegative.
1745         * opts.sh: Handle RejectNegative.
1746
1747 2003-06-01  Zack Weinberg  <zack@codesourcery.com>
1748
1749         * ggc-page.c (init_ggc): Give better diagnostics on failure to
1750         open /dev/zero.
1751         * toplev.c (crash_signal): Reset handling for received signal
1752         to SIG_DFL.
1753
1754 2003-06-02  Ben Elliston  <bje@wasabisystems.com>
1755
1756         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
1757         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
1758         (arm_use_dfa_pipeline_interface): Implement.
1759         * config/arm/arm.md (arm): New automaton.
1760         (write_buf): Remove function units; new cpu unit.
1761         (write_blockage): Remove function units; new cpu unit.
1762         (core): Remove function units; new cpu unit.
1763         (r_mem_f_wbuf): New instruction reservation.
1764         (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
1765         (store1_ldsched, store2, store3, store4): Likewise.
1766         (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
1767         (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
1768         (multi_cycle, single_cycle): Likewise.
1769         * config/arm/fpa.md (armfp): New automaton.
1770         (fpa): Remove function units; new cpu unit.
1771         (fpa_mem): Remove function unit; new cpu unit.
1772         (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
1773         (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
1774
1775 2003-06-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1776
1777         * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
1778         * c-format.c (enum format_type): Add asm_fprintf_format_type.
1779         (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
1780         asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
1781         (format_types_orig): Renamed from format_types.  Add new data.
1782         (format_types): Declare as pointer.
1783         (handle_format_attribute): Move later in file so we have all
1784         necessary declarations.  Add section to capture HOST_WIDE_INT.
1785         * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
1786         (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
1787
1788 2003-06-01  Andreas Jaeger  <aj@suse.de>
1789
1790         * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
1791         ROUND_TYPE_SIZE_UNIT.
1792
1793         * stor-layout.c (finalize_record_size): Remove usages of
1794         ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
1795         (finalize_type_size): Likewise.
1796         (layout_type): Likewise.
1797
1798         * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
1799
1800         * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
1801
1802         * config/d30v/d30v.h: Remove text copied from the manual.
1803
1804 2003-06-01  Roger Sayle  <roger@eyesopen.com>
1805             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1806             Geoffrey Keating  <geoffk@apple.com>
1807
1808         * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
1809         constants as condition code values.
1810
1811 2003-06-01  DJ Delorie  <dj@redhat.com>
1812
1813         * cppmacro.c (warn_of_redefinition): Handle cases where the two
1814         definitions have different numbers of tokens.
1815
1816 2003-06-01  Andreas Jaeger  <aj@suse.de>
1817
1818         * gen-protos.c (main): Readd unused attribute for argc.
1819
1820 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
1821
1822         * Makefile.in (c-options.c, c-options.h): Parallel make safe.
1823         * c.opt: End in blank line.
1824         * opts.sh: Take AWK from environment if available; use C locale.
1825
1826 2003-06-01  Andreas Schwab  <schwab@suse.de>
1827
1828         * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
1829
1830 2003-06-01  Andreas Jaeger  <aj@suse.de>
1831
1832         * gen-protos.c (main): Revert patch to check for argument.
1833
1834 2003-06-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
1835
1836         PR target/11044
1837         * config/i386/i386.md (length attribute): Set length to 4
1838         for instructions of type "fcmp".
1839
1840 2003-06-01  Andreas Jaeger  <aj@suse.de>
1841
1842         * toplev.c: Use ISO C90 prototypes.
1843
1844         * toplev.h: Use ISO C90 prototypes.
1845
1846         * genrecog.c: Use ISO C90 prototypes.
1847         (nodes_identical): Correct declaration to match prototype.
1848         (maybe_both_true): Likewise.
1849         (merge_trees): Likewise.
1850
1851         * genpeep.c (gen_peephole): Remove #if 0 code.
1852         Use ISO C90 prototypes.
1853
1854         * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
1855         Remove #if 0'ed function simplify_by_alternatives.
1856         (optimize_attrs): Remove #if 0'ed code.
1857         Remove ^L.
1858         Use ISO C90 prototypes.
1859         (make_canonical): Remove #if 0'ed code.
1860         (convert_const_symbol_ref): Remove #if 0'ed function.
1861
1862         * gen-protos.c (main): Check for argument.
1863
1864         * rtl.h: Use ISO C90 prototypes for functions from lists.c.
1865
1866         * params.h: Use ISO C90 prototypes.
1867         * params.c: Likewise.
1868         * intl.c: Likewise.
1869         * intl.h: Likewise.
1870         * lists.c: Likewise.
1871         * errors.c: Likewise.
1872         * errors.h: Likewise.
1873         * gencodes.c: Likewise.
1874         * genpreds.c: Likewise.
1875         * genattr.c: Likewise.
1876         * gen-protos.c: Likewise.
1877         * genflags.c: Likewise
1878         * genconditions.c: Likewise.
1879         * genautomata.c: Likewise.
1880         * gencheck.c: Likewise.
1881         * genconfig.c: Likewise.
1882         * genconstants.c: Likewise.
1883         * genemit.c: Likewise.
1884         * genextract.c: Likewise.
1885         * gengenrtl.c: Likewise.
1886         * gengtype.c: Likewise.
1887         * gengtype.h: Likewise.
1888         * genopinit.c: Likewise.
1889         * genoutput.c: Likewise.
1890         * gensupport.c: Likewise.
1891         * gensupport.h: Likewise.
1892
1893         * sdbout.h: Use ISO C90 prototypes.
1894
1895         * sdbout.c (CONTIN): Removed empty macro.
1896         (sdbout_one_type): Remove CONTIN usages.
1897         Remove ^Ls.
1898         (tag_of_ru_type): Remove #if 0'ed function.
1899         (sdbout_symbol): Remove #if 0'ed code.
1900         (sdbout_one_type): Remove a #if 1.
1901         (sdbout_one_type): Remove #if 0'ed code.
1902         (sdbout_init): Remove RMS_QUICK_HACK_1 code.
1903         Remove PARAMS, use ISO C90 prototypes for all functions.
1904
1905 2003-06-01  Josef Zlomek  <zlomekj@suse.cz>
1906
1907         * rtl.def (CONST_DOUBLE): Update comment.
1908
1909 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
1910
1911         * opts.sh: Remove path from sort.
1912
1913 2003-06-01  Aldy Hernandez  <aldyh@redhat.com>
1914
1915         PR/9680
1916         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
1917         TARGET_SPE for SPE_VECTOR_MODE.
1918
1919 2003-05-31  Aldy Hernandez  <aldyh@redhat.com>
1920
1921         * toplev.c (botch): Remove.
1922         (do_abort): Remove.
1923         (set_Wunused): Comment.
1924         (set_Wextra): Comment.
1925         Remove ^L's.
1926         (rest_of_compilation): Factor out common code into functions.
1927         (rest_of_handle_inlining): New.
1928         (rest_of_handle_ssa): New.
1929         (rest_of_handle_cse): New.
1930         (rest_of_handle_gcse): New.
1931         (rest_of_handle_loop_optimize): New.
1932         (rest_of_handle_jump_bypass): New.
1933         (rest_of_handle_sibling_calls): New.
1934         (rest_of_handle_null_pointer): New.
1935         (rest_of_handle_addresof): New.
1936         (rest_of_handle_flow): New.
1937         (rest_of_handle_branch_prob): New.
1938         (rest_of_handle_if_conversion): New.
1939         (rest_of_handle_tracer): New.
1940         (rest_of_handle_loop2): New.
1941         (rest_of_handle_cse2): New.
1942         (rest_of_handle_life): New.
1943         (rest_of_handle_combine): New.
1944         (rest_of_handle_if_after_combine): New.
1945         (rest_of_handle_regmove): New.
1946         (rest_of_handle_sched): New.
1947         (rest_of_handle_old_regalloc): New.
1948         (rest_of_handle_new_regalloc): New.
1949         (rest_of_handle_regrename): New.
1950         (rest_of_handle_reorder_blocks): New.
1951         (rest_of_handle_sched2): New.
1952         (rest_of_handle_new_regalloc): New.
1953         (rest_of_handle_old_regalloc): New.
1954         (rest_of_handle_regrename): New.
1955         (rest_of_handle_reorder_blocks): New.
1956         (rest_of_handle_stack_regs): New.
1957         (rest_of_handle_machine_reorg): New.
1958         (rest_of_handle_delay_slots): New.
1959         (rest_of_handle_final): New.
1960
1961         * toplev.h (botch): Remove prototype.
1962         (do_abort): Same.
1963
1964 2003-05-31  Neil Booth  <neil@daikokuya.co.uk>
1965
1966         * Makefile.in (c-opts.o, c-options.h): Update dependencies.
1967         * c-opts.c: Include c-options.h and c-options.c.
1968         (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
1969         Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
1970         (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
1971         OPT, opt_comp): Remove.
1972         (missing_arg, c_common_init_options, c_common_decode_option,
1973         write_langs): Update for macro redefinitions and enumeration
1974         name changes.
1975         * c.opt, opts.sh: New files.
1976         * doc/passes.texi: Update.
1977
1978 2003-05-31  Andreas Jaeger  <aj@suse.de>
1979
1980         * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
1981         usage.
1982
1983         * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
1984
1985         * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
1986
1987         * system.h: Poison ALLOCATE_TRAMPOLINE.
1988
1989         * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
1990         * system.h: Poison HANDLE_PRAGMA.
1991
1992 2003-05-31  Kazu Hirata  <kazu@cs.umass.edu>
1993
1994         * doc/invoke.texi: Update dump file names.
1995
1996 2003-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1997
1998         * c-format.c (format_length_info, format_char_info,
1999         format_flag_spec, format_flag_pair, format_kind_info):
2000         De-const-ify structure members.
2001
2002 2003-05-31  Roger Sayle  <roger@eyesopen.com>
2003
2004         * flags.h (flag_wrapv): New flag controlling overflow semantics.
2005         * toplev.c (flag_wrapv): Declare the variable with default false.
2006         (lang_independent_options): New option "-fwrapv" to set the above.
2007
2008         * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
2009         as x, when signed arithmetic overflow wraps around.
2010         (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
2011         * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
2012         overflow when flag_wrapv is true.
2013
2014         * doc/invoke.texi: Document new -fwrapv command line option.
2015         * doc/c-tree.texi: Mention that the overflow semantics of
2016         NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
2017         upon both flag_wrapv and flag_trapv.
2018
2019 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
2020
2021         * doc/install.texi (mips-sgi-irix5): Add missing
2022         HTML <hr> marker.
2023
2024 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
2025
2026         * doc/md.texi (Machine Constraints): Document
2027         missing SPARC constraints.
2028
2029 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
2030
2031         * doc/md.texi (Automaton pipeline description): Use
2032         "type" instead of "cpu" as the attribute in the examples.
2033
2034 2003-05-30  Stan Shebs  <shebs@apple.com>
2035
2036         * system.h: Poison OBJC_PROLOGUE.
2037
2038 2003-05-30  Roger Sayle  <roger@eyesopen.com>
2039
2040         * emit-rtl.c (gen_complex_constant_part): New function for getting
2041         the constant real or imaginary part of a complex constant.
2042         (gen_realpart): Use it.
2043         (gen_imagpart): Likewise.
2044
2045 2003-05-30  Kazu Hirata  <kazu@cs.umass.edu>
2046
2047         * doc/invoke.texi: Fix typos.
2048         * doc/rtl.texi: Likewise.
2049
2050 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
2051
2052         * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
2053         mode.
2054         * config/h8300/crtn.asm: Likewise.
2055         * config/h8300/lib1funcs.asm: Likewise.
2056         * config/h8300/h8300.c (asm_file_start): Likewise.
2057         * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
2058         h8300snelf emulations for normal mode.
2059         * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
2060         emulations for normal mode.
2061
2062 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
2063
2064         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
2065         true if TARGET_NORMAL_MODE.
2066
2067 2003-05-30  Roger Sayle  <roger@eyesopen.com>
2068
2069         * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
2070         making a substitution.
2071         (dead_libcall_p): If directly replacing a libcall with a
2072         constant value produces an invalid instruction, also try forcing
2073         the constant into the constant pool.
2074         * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
2075         obvious that the source is a constant.
2076         (compress_float_constant): Use set_unique_reg_note to place
2077         REG_EQUAL notes on instructions.
2078
2079 2003-05-30  Eric Christopher  <echristo@redhat.com>
2080
2081         * config/mips/mips.c (extern_list): Add GTY marker.
2082         (extern_head): Separate out definition. Add marker.
2083         (mips_output_external): Use ggc_alloc for extern_list
2084         allocation.
2085         (mips_output_external_libcall): Ditto.
2086
2087 2003-05-30  Florian Weimer  <fw@deneb.enyo.de>
2088
2089         * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
2090         later.
2091
2092 2003-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2093
2094         * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
2095         warnings.
2096         (PRINT_OPERAND): Likewise.
2097
2098 2003-05-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2099
2100         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
2101         -mdebug/-no-mdebug switches ...
2102         (MDEBUG_ASM_SPEC): ... here.
2103         Use only with gas.
2104         (EXTRA_SPECS): Initialize mdebug_asm_spec.
2105
2106 2003-05-29  Matt Kraai  <kraai@alumni.cmu.edu>
2107
2108         * gthr-gnat.c: Remove #undef UNUSED.
2109         (__gnat_default_lock, __gnat_default_unlock): Prototype.
2110         (__gnat_task_lock, __gnat_task_unlock): Make declarations
2111         prototypes.
2112         (__gnat_install_locks): Convert declaration to ISO C90, make
2113         parameter declarations prototypes, and remove blank line.
2114         * gthr-gnat.h (__gnat_install_locks): Make parameter
2115         declarations prototypes.
2116
2117 2003-05-29  Jason Merrill  <jason@redhat.com>
2118
2119         * Makefile.in (unstrap): Remove stage_last after make unstage1.
2120
2121 2003-05-29  Roger Sayle  <roger@eyesopen.com>
2122
2123         * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
2124
2125 2003-05-29  Roger Sayle  <roger@eyesopen.com>
2126             Kaveh Ghazi  <ghazi@caip.rutgers.edu>
2127
2128         PR bootstrap/10169
2129         * mips-tfile.c (main): Use getopt_long instead of getopt.
2130         Add new command line option --version to display version.
2131         Treat --verbose like -v to report a single line version.
2132         (options): New global variable for getopt_long.
2133         * mips-tdump.c (main): Use getopt_long instead of getopt.
2134         New command line options -v, --version and -verbose to display
2135         the program version number (to match mips-tfile's behavior).
2136         (options): New global variable for getopt_long.
2137
2138         * gcov.c (options): Zero-terminate getopt_long array.
2139         * gcov-dump.c (options): Likewise.
2140
2141         * Makefile.in (mips-tdump.o): Add dependency on version.h.
2142
2143 2003-05-29  Stan Shebs  <shebs@apple.com>
2144
2145         Remove OBJC_PROLOGUE everywhere.
2146         * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
2147         * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
2148         * config/d30v/d30v.h: Similarly.
2149         * config/ip2k/ip2k.h: Similarly.
2150         * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
2151
2152 2003-05-29  Roger Sayle  <roger@eyesopen.com>
2153
2154         * c-semantics.c (genrtl_do_stmt_1): New function split out from...
2155         (gen_rtl_do_stmt): ... here.  Call genrtl_do_stmt_1.
2156         (expand_unreachable_stmt): Expand unreachable while statements
2157         using genrtl_do_stmt_1.
2158
2159 2003-05-29  Richard Sandiford  <rsandifo@redhat.com>
2160
2161         * config/mips/mips-protos.h (mips_output_load_label): Declare.
2162         * config/mips/mips.c (mips_output_load_label): New function.
2163         (mips_output_conditional_branch): Use it.
2164         * config/mips/mips.md (jump): And here.
2165
2166 2003-05-28  Bob Wilson  <bob.wilson@acm.org>
2167
2168         * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
2169         (xtensa_split_operand_pair): New proto.
2170         * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
2171         (smalloffset_double_mem_p): Delete.
2172         (gen_float_relational, printx, print_operand, xtensa_va_arg):
2173         Fix whitespace.
2174         (xtensa_split_operand_pair): New.
2175         (xtensa_dbx_register_number): Fix formatting.
2176         * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
2177         * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
2178         instead of splitting them into single-word moves.  Remove unnecessary
2179         checks for reload_in_progress and reload_completed.
2180         (movdi_internal, movdf_internal): Change to post-reload split patterns.
2181         Add constraints to allow constant operands.
2182         (movsf_internal): Allow CONST_INT operands.
2183
2184 2003-05-27  Danny Smith   <dannysmith@users.sourceforge.net>
2185
2186         * config.gcc (i[34567]86-*-mingw32*): Add host makefile
2187         fragment i386/x-mingw32.
2188         * config/i386/x-mingw32: New file. Make local_includedir
2189         relative to EXEC_PREFIX.
2190
2191 2003-05-27  Aaron W. LaFramboise  <awlaframboise@aol.com>
2192
2193         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
2194         (MD_STARTFILE_PREFIX): Define.
2195
2196 2003-05-27  Denis Chertykov  <denisc@overta.ru>
2197
2198         * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
2199         VOIDmode.
2200         * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
2201         call of cselib_invalidate_regno.
2202
2203 2003-05-28  Daniel Jacobowitz  <drow@mvista.com>
2204
2205         * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
2206         -lthread to -lpthread.
2207
2208 2003-05-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
2209             Bruce Korb  <bkorb@gnu.org>
2210             Arno Klaassen  <arno@heho.snv.jussieu.fr>
2211
2212         * fixinc/inclhack.def: Add missing declaration of getpagesize()
2213         to unistd.h on Solaris 2.5.1.
2214         Fix prototype of recv() and send() in sys/socket.h on
2215         Solaris 2.5.1 and 2.6.
2216         * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
2217         * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
2218         * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
2219         * fixinc/fixincl.x: Regenerate.
2220
2221 2003-05-27  Jason Merrill  <jason@redhat.com>
2222
2223         * tree.c (expr_first, expr_length): New fns.
2224         * tree.h: Declare them.
2225
2226         * tree.c (iterative_hash_expr): Hash commutative expressions
2227         consistently.
2228
2229 2003-05-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2230
2231         * tree.h (contains_placeholder_p): Now returns bool.
2232         (CONTAINS_PLACEHOLDER_P): New macro.
2233         (type_contains_placeholder_p): New function.
2234         * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
2235         (contains_placeholder_p): Now returns bool.
2236         Rework to use CONTAINS_PLACEHOLDER_P macro.
2237         (type_contains_placeholder_p): New function.
2238         * fold-const.c (fold, case COMPONENT_REF): Don't fold if
2239         type_contains_placeholder_p.
2240         (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
2241         Use CONTAINS_PLACEHOLDER_P macro.
2242         * builtins.c (fold_builtin): Likewise.
2243         * calls.c (initialize_argument_information): Likewise.
2244         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2245         * explow.c (expr_size): Likewise.
2246         * expr.c (store_constructor, get_inner_reference): Likewise.
2247         * function.c (assign_parms): Likewise.
2248         * stor-layout.c (variable_size): Likewise.
2249
2250 2003-05-25  Gabriel Dos Reis <gdr@integrable-solutions.net>
2251
2252         * diagnostic.h (output_verbatim, verbatim):  Remove  printf
2253         attribute.
2254
2255 2003-05-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2256
2257         * doc/contrib.texi (Contributors): Update Kean Johnston.
2258
2259 2003-05-24  David Edelsohn  <edelsohn@gnu.org>
2260
2261         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
2262
2263 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
2264
2265         * config/rs6000/440.md, config/stormy16/stormy16protos.h,
2266         config/stormy16/stormy16.c, config/stormy16/stormy16.md:
2267         Replace "GNU CC" with "GCC".
2268
2269 2003-05-24  Matt Kraai  <kraai@alumni.cmu.edu>
2270
2271         * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
2272         intermediate computation.
2273
2274 2003-05-23  Eric Christopher  <echristo@redhat.com>
2275
2276         * config/mips/mips.md (clzsi, clzdi): New patterns.
2277
2278 2003-05-23  Geoffrey Keating  <geoffk@apple.com>
2279
2280         * gcc.c (default_compilers): Use -o to specify preprocessor's output
2281         file.  Make -no-integrated-cpp work when building PCH files.
2282         * objc/lang-specs.h: Likewise.
2283
2284 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2285
2286         * fixinc/Makefile.in: Correct description.
2287         * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
2288         fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
2289         fixinc/genfixes: Replace "GNU CC" with "GCC".
2290
2291 2003-05-23  Roger Sayle  <roger@eyesopen.com>
2292
2293         * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
2294         builtin functions (and their __builtin_* variants).
2295         * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
2296         (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
2297         optimizing.
2298
2299         * doc/extend.texi: Document new tan and atan builtins, and
2300         their float and long double variants.
2301
2302 2003-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
2303
2304         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
2305         __sparcv9 in the TARGET_ARCH64 case.
2306
2307 Fri May 23 22:17:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
2308
2309         * i386.c (ix86_reorg): Calls are also jumps.
2310
2311 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
2312
2313         * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
2314         note containing an EXPR_LIST, process all the arguments.
2315
2316 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
2317                                Andreas Jaeger  <aj@suse.de>
2318
2319         * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
2320         do not use assertion.
2321
2322 2003-05-23  Mike Stump  <mrs@apple.com>
2323
2324         * tlink.c (scan_linker_output): Add support for darwin linker, as it
2325         emits unresolved symbols one per line, consuming the entire line.
2326
2327 2003-05-23  Larin Hennessy <larin@science.oregonstate.edu>
2328             Zack Weinberg <zack@codesourcery.com>
2329
2330         * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
2331         * config/m68k/m68k.c (m68k_output_function_prologue):
2332         Remove code under #if NEED_PROBE.
2333         * config/m68k/m68k.h: Don't define NEED_PROBE.
2334         * config/m68k/m68k.md: Remove "probe" insn.
2335         * doc/md.texi: Remove documentation of "probe" pattern.
2336
2337 2003-05-23  Dorit Naishlos  <gcchaifa@il.ibm.com>
2338
2339         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
2340
2341 2003-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2342
2343         * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
2344         Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
2345
2346 2003-05-22  Roger Sayle  <roger@eyesopen.com>
2347
2348         * real.c (real_maxval): New function to return the largest finite
2349         value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
2350         * real.h (real_maxval): Prototype here.
2351         * fold-const.c (fold_inf_compare): Transform comparisons against
2352         +-Infinity into comparisons against DBL_MAX (or equivalent).
2353
2354 2003-05-22  Mike Stump  <mrs@apple.com>
2355
2356         * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
2357         default.
2358
2359 2003-05-22  DJ Delorie  <dj@redhat.com>
2360
2361         * calls.c (expand_call): If the arg block is going to grow
2362         downward, we need argblock to point to the top of the block,
2363         not the bottom.
2364
2365 2003-05-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2366
2367         * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
2368
2369         * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
2370         constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
2371
2372 2003-05-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2373
2374         * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
2375         * m68k.c: Likewise.
2376         * m68k.h: Likewise.
2377
2378 2003-05-22  Zack Weinberg  <zack@codesourcery.com>
2379
2380         PR other/2873
2381         * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
2382         expressions to prevent triggering on recent curses.h,
2383         linux/nls.h, or X11/Xlib.h.
2384         (stdio_va_list): Add _G_va_list to bypass pattern.
2385         (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
2386         * fixinc/fixincl.x: Regenerate.
2387
2388 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
2389
2390         * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
2391         switches when --target-help option is specified.
2392
2393 2003-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2394
2395         PR bootstrap/10805
2396         * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
2397         failure with Sun assembler 5.0 Alpha 03/27/98.
2398
2399 2003-05-21  Loren James Rittle  <ljrittle@acm.org>
2400
2401         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
2402         to match system compiler convention.
2403
2404 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2405
2406         * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for non-zero
2407         value, not just if defined.
2408         Update copyright year.
2409
2410 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2411
2412         PR target/6428
2413         * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
2414         directories from LIB_SPEC to LINK_SPEC.  Emit warning if `-p' or `-pg'
2415         option is used without `-static'.
2416         * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
2417         * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
2418
2419 2003-05-21  Bob Wilson  <bob.wilson@acm.org>
2420
2421         * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
2422         TARGET_SERIALIZE_VOLATILE): Delete.
2423         (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
2424         (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
2425         (TARGET_SWITCHES): Remove "-mserialize-volatile" and
2426         "-mno-serialize-volatile".
2427         * config/xtensa/xtensa.c (print_operand): Remove checks of
2428         TARGET_SERIALIZE_VOLATILE.
2429         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
2430         * doc/invoke.texi (Option Summary, Xtensa Options): Remove
2431         "-mserialize-volatile" and "-mno-serialize-volatile" options.
2432
2433 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
2434
2435         * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
2436         (nested_function): Likewise.
2437         (notype_nested_function): Likewise.
2438
2439 2003-05-21  Nick Clifton  <nickc@redhat.com>
2440
2441         * config/stormy16/stormy-abi: Update overflow type for
2442         R_XSTORMY16_16 reloc.
2443
2444 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
2445
2446         * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
2447         * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
2448         (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
2449         * print-tree.c (print_node): Remove ambient-boundedness.
2450         * tree.h (tree_common): Remove bounded_flag.
2451         (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
2452         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
2453         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
2454         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
2455         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
2456         Remove.
2457         (TYPE_QUALS): Remove BOUNDED.
2458         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
2459         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
2460         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
2461         TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
2462         VA_LIST_POINTER_DEPTH): Remove.
2463         (struct tree_type): Remove pointer_depth.
2464
2465 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2466
2467         * c-pretty-print.c (pp_c_integer_literal): Use
2468         HOST_WIDE_INT_PRINT_DOUBLE_HEX.
2469
2470 2003-05-20  Roger Sayle  <roger@eyesopen.com>
2471             Kazu Hirata  <kazu@cs.umass.edu>
2472             Joern Rennecke  <joern.rennecke@superh.com>
2473
2474         * gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
2475         setcc and jump, if they exist.  If substituted instruction
2476         fails to validate, store current effort in a REG_EQUAL note.
2477         (cprop_insn): Don't attempt further substitutions if the
2478         current instruction has been deleted.
2479         (local_cprop_pass): Likewise.
2480
2481         * jump.c (redirect_jump):  Also update REG_EQUAL note, if
2482         one is attached to the jump instruction.
2483         (invert_jump): Delete REG_EQUAL note on jump, if one exists.
2484
2485 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2486
2487         PR c++/9738
2488         * config/i386/winnt.c (i386_pe_encode_section_info): Enable
2489         even if not first.
2490
2491 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2492
2493         * genautomata.c (output_description, output_automaton_units,
2494         output_state_arcs): Add missing specifiers.
2495
2496 2003-05-20  Bob Wilson  <bob.wilson@acm.org>
2497
2498         * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
2499         (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
2500         (__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
2501         (nsau): Rename to do_nsau.  Provide alternate version for use when
2502         the NSAU instruction is available.
2503         (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
2504         (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
2505         * config/xtensa/xtensa-config.h: Update comments to match binutils.
2506         (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
2507         * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
2508         (TARGET_ABS, TARGET_ADDX): Define.
2509         (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
2510         (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
2511         * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
2512         *subx8): Set predicate condition to TARGET_ADDX.
2513         (abssi2): Set predicate condition to TARGET_ABS.
2514         * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
2515         "-maddx", and "-mno-addx" options.
2516         (Xtensa Options): Likewise.  Also tag some opcode names with @code.
2517
2518 2003-05-20  Kevin Ryde <user42@zip.com.au>
2519             Wolfgang Bangerth <bangerth@dealii.org>
2520
2521         PR/10355
2522         * doc/extend.texi: Put a warning into the documentation
2523         of attribute regparm.
2524
2525 2003-05-20  Jason Merrill  <jason@redhat.com>
2526
2527         * tree.c (expr_last): New fn.
2528         * tree.h: Declare it.
2529         * objc/objc-act (expr_last): Rename to objc_expr_last.
2530
2531 2003-05-20  J"orn Rennecke <joern.rennecke@superh.com>
2532
2533         * sh.c (sh_register_move_cost): Add clase for moving between
2534         FP registers and MAC registers.
2535
2536 2003-05-19  John David Anglin  <dave.anglin@nrc-gnrc.gc.ca>
2537
2538         * pa/milli64.S ($$mulI): Fix typo.
2539
2540 2003-05-19  Matt Kraai  <kraai@alumni.cmu.edu>
2541
2542         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
2543         (nonlocal_set_p): Remove initial blank line.
2544         * dwarf2out.c (simple_type_size_in_bits): Likewise.
2545         * et-forest.c (et_forest_create): Likewise.
2546         * explow.c (stabilize): Likewise.
2547         * fix-header.c (write_lbrac): Likewise.
2548         * graph.c (start_fct, node_data): Likewise.
2549         * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
2550         * rtlanal.c (global_reg_mentioned_p): Likewise.
2551         * tree.c (bit_position): Likewise.
2552
2553 2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
2554
2555         * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
2556         -lthread to -lpthread.
2557
2558 2003-05-19  Neil Booth  <neil@daikokuya.co.uk>
2559
2560         * c-opts.c (c_common_decode_option): Don't accept dollars
2561         as identifier characters in assembly.
2562         * doc/cpp.texi: Document this.
2563
2564 2003-05-19  Seth Arnold  <sarnold@wirex.com>
2565             Aldy Hernandez  <aldyh@redhat.com>
2566
2567         * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
2568         vrsave_size twice.
2569
2570 2003-05-19  Aldy Hernandez  <aldyh@redhat.com>
2571
2572         * doc/tm.texi (function_arg): Fix typo.
2573
2574 2003-05-19  Matt Austern  <austern@apple.com>
2575
2576         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
2577         * c-common.h (warn_invalid_offsetof): Declare.
2578         * c-common.c (warn_invalid_offsetof): Define.
2579         * doc/invoke.texi: Document -Winvalid-offsetof.
2580         * testsuite/g++.dg/other/offsetof3.C: New.
2581         * testsuite/g++.dg/other/offsetof4.C: New.
2582
2583 2003-05-19  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
2584             David Edelsohn  <edelsohn@gnu.org>
2585
2586         * config/rs6000/rs6000.c (rs6000_alignment_string,
2587         rs6000_alignment_flags): New variables.
2588         (rs6000_parse_alignment_option): New function.
2589         (rs6000_override_options): Call it.
2590         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
2591         (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
2592         macros.
2593         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
2594         natural alignment if TARGET_NATURAL_ALIGNMENT
2595         (ROUND_TYPE_ALIGN): Always use default record alignment if
2596         TAGET_NATURAL_ALIGNMENT.
2597         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
2598         (ROUND_TYPE_ALIGN): Same.
2599         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
2600         (ROUND_TYPE_ALIGN): Same.
2601         * doc/invoke.texi (Option Summary, PowerPC Options): Document
2602         new options.
2603
2604 2003-05-19  J"orn Rennecke <joern.rennecke@superh.com>
2605
2606         * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
2607         of a function using ASMSPEC, prepend a star.
2608
2609 2003-05-19  Jason Merrill  <jason@redhat.com>
2610
2611         * tree-inline.c (copy_body_r): Avoid generating &* during inline
2612         substitution.
2613
2614 2003-05-19  Andrew Macleod  <amacleod@redhat.com>
2615
2616         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
2617         not mark assignments to the hard frame pointer as being stack
2618         frame related.
2619         (xstormy16_expand_epilogue): Mark adjustments to the stack
2620         pointer as being stack frame related.
2621
2622 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
2623
2624         * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
2625         ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
2626         (PREDICATE_CODES): Add hilo_operand.
2627         * config/mips/mips.c (hilo_operand): New predicate.
2628         (mips_adjust_insn_length): Account for the number nops that might
2629         be needed to avoid hardware hazards.
2630         * config/mips/mips.md (dslot): Remove attribute.
2631         (hazard): New attribute.
2632         (can_delay): Use it.  Check for calls, branches & jumps.
2633         (muldi3): Use the standard dmult pattern for mips16 code.
2634         (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
2635
2636 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
2637
2638         * config/mips/mips-protos.h (final_prescan_insn,
2639         mips_count_memory_refs, mips_fill_delay_slot): Remove.
2640         * config/mips/mips.h (delay_type, dslots_load_total,
2641         dslots_load_filled, dslots_jump_total, dslots_jump_filled,
2642         dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
2643         mips_load_reg3, mips_load_reg4): Remove.
2644         (MASK_STATS): Remove.
2645         (MASK_EXPLICIT_RELOCS): Reuse its value.
2646         (TARGET_STATS): Remove.
2647         (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
2648         Warn that -mstats is now ignored.
2649         (FINAL_PRESCAN_INSN): Undefine.
2650         (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
2651         (ASM_OUTPUT_REG_POP): Likewise.
2652         * config/mips/mips.c (dslots_load_total, dslots_load_filled,
2653         dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
2654         mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
2655         mips_fill_delay_slot, mips_count_memory_refs,
2656         final_prescan_insn): Remove.
2657         (output_block_move): Remove calls to mips_count_memory_refs.
2658         (print_operand): Remove printing of #nop for TARGET_STATS.
2659         (mips_output_function_epilogue): Remove TARGET_STATS code.
2660         Reorganize setting of fnnmae.
2661         * config/mips/mips.md: Remove handling of dslot statistics
2662         throughout file.  Change all fcmp patterns into normal asm
2663         templates, removing calls to mips_fill_delay_slot.
2664         * doc/invoke.texi: Remove documentation of -mstats.
2665
2666 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
2667
2668         * config/mips/mips.c (mips_class_max_nregs): Return the number of
2669         words in the mode.
2670
2671 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
2672
2673         * config/mips/mips.c (override_options): Disable explicit
2674         relocs for old ABIs unless using gas.
2675
2676 2003-05-18  Eric Christopher  <echristo@redhat.com>
2677
2678         * config/mips/mips.h: Remove definition of g_switch_value.
2679
2680 2003-05-18  Matt Kraai  <kraai@alumni.cmu.edu>
2681
2682         * flags.h (g_switch_value): Change to an unsigned
2683         HOST_WIDE_INT.
2684         * toplev.c (g_switch_value): Likewise.
2685
2686         * config/alpha/alpha.c (small_symbolic_operand): Remove
2687         g_switch_value cast.
2688         (alpha_in_small_data_p): Cast size to an unsigned
2689         HOST_WIDE_INT.
2690
2691         * config/frv/frv.c (frv_in_small_data_p): Cast size to an
2692         unsigned HOST_WIDE_INT.
2693         * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
2694         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
2695
2696         * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
2697         unsigned HOST_WIDE_INT.
2698         (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
2699         * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
2700         (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
2701
2702         * config/rs6000/rs6000.c (rs6000_file_start): Use
2703         HOST_WIDE_INT_PRINT_UNSIGNED.
2704         (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
2705         (rs6000_elf_in_small_data_p): Cast size to unsigned
2706         HOST_WIDE_INT.
2707         * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
2708         Remove.
2709         (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
2710         g_switch_set.
2711         (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
2712         g_switch_value cast.
2713
2714 2003-05-18  Roger Sayle  <roger@eyesopen.com>
2715             Zack Weinberg  <zack@codesourcery.com>
2716
2717         PR middle-end/10472
2718         * builtins.c (expand_builtin_memcpy):  Call force_operand on
2719         expressions and use simplify_gen_binary to create the addition.
2720
2721 2003-05-18  Andreas Schwab  <schwab@suse.de>
2722
2723         * config/m68k/m68k.md: Use define_constants for unspec numbers.
2724
2725 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
2726
2727         * config/sparc/sparc.h: Define sparc for now.
2728 2003-05-18  Nathanael Nerode  <neroden@gcc.gnu.org>
2729
2730         * config.gcc: Clear xm_file, md_file at the beginning of each pass.
2731
2732         * config/stormy16/stormy16.h: Remove about 3000 lines of
2733         target-independent comments.  Update copyright notice.
2734
2735         * doc/collect2.texi: GNU CC -> GCC.
2736         * doc/headerdirs.texi: GNU CC -> GCC.
2737
2738 2003-05-18  Gabriel Dos Reis <gdr@integrable-solutions.net>
2739
2740         * hashtable.h (struct ht_identifier): Add data member "hash_value".
2741         * hashtable.c (ht_lookup): Use it when searching, remember.
2742         (ht_expand): Do not recompute.
2743         * tree.h (IDENTIFIER_HASH_VALUE): New macro.
2744
2745 2003-05-18  Nathan Sidwell  <nathan@codesourcery.com>
2746
2747         * gcov-io.c (gcov_read_bytes): Fix fread thinko.
2748
2749 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
2750
2751         * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
2752         Default here.
2753         (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
2754         * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
2755         * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
2756         * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
2757         config/arm/linux-elf.h, config/arm/rtems-elf.h,
2758         config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
2759         config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
2760         config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
2761         config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
2762         config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
2763         config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
2764         config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
2765         config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
2766         config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
2767         config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
2768         config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
2769         Don't define __ELF__.
2770         * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
2771         Define __ELF__.
2772         * doc/cpp.texi: Document __ELF__.
2773         * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS.     *
2774
2775 2003-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2776
2777         * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
2778         always use stdarg.
2779         * c-errors.c (pedwarn_c99): Likewise.
2780         * c-format.c (status_warning): Likewise.
2781         * c-semantics.c (build_stmt): Likewise.
2782         * calls.c (emit_library_call, emit_library_call_value): Likewise.
2783         * collect2.c (notice, fatal_perror, fatal, error): Likewise.
2784         * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
2785         * diagnostic.c (build_message_string, output_printf,
2786         output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
2787         fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
2788         error_with_decl, fnotice): Likewise.
2789         * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
2790         dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
2791         dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
2792         dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
2793         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
2794         dw2_asm_output_encoded_addr_rtx): Likewise.
2795         * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
2796         * errors.c (warning, error, fatal, internal_error): Likewise.
2797         * final.c (output_operand_lossage, asm_fprintf): Likewise.
2798         * fix-header.c (fatal): Likewise.
2799         * gcc.c (fatal, error, notice): Likewise.
2800         * gcov.c (fnotice): Likewise.
2801         * genattrtab.c (attr_rtx, attr_printf): Likewise.
2802         * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
2803         * gensupport.c (message_with_line): Likewise.
2804         * mips-tfile.c (fatal, error): Likewise.
2805         * protoize.c (notice): Likewise.
2806         * ra-debug.c (ra_debug_msg): Likewise.
2807         * read-rtl.c (fatal_with_file_and_line): Likewise.
2808         * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
2809         * tree.c (build, build_nt, build_function_type_list): Likewise.
2810
2811 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
2812
2813         * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
2814         * gcc.c (cpp_predefines): Remove.
2815         (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
2816         (static_specs): Remove predefines.
2817         * system.h: Poison CPP_PREDEFINES.
2818         * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
2819         config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
2820
2821 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
2822
2823         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
2824         config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
2825         config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
2826         use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
2827
2828 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
2829
2830         PR c/9209
2831         * c-common.c, c-common.h (dollars_in_ident): Remove.
2832         * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
2833         (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
2834         * cpphash.h (warned_dollar): Rename warn_dollars.
2835         * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
2836         Permit dollars regardless of -std=.
2837         (post_options): Set warn_dollars.
2838         * cpplex.c (forms_identifier_p): Use warn_dollars.
2839         * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
2840         Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
2841         * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
2842         Update documentation.
2843
2844 2003-05-17  Andreas Schwab  <schwab@suse.de>
2845
2846         * config/m68k/m68k.c (m68k_output_function_prologue): Use
2847         HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
2848         formatting a HOST_WIDE_INT.
2849         (m68k_output_function_epilogue): Likewise.
2850
2851 2003-05-17  Zack Weinberg  <zack@codesourcery.com>
2852
2853         * doc/install.texi: Remove information about desupported targets.
2854
2855 2003-05-17  Andreas Schwab  <schwab@suse.de>
2856
2857         * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
2858         * config/m68k/linux.h: Likewise.
2859         * config/m68k/m68k-none.h: Likewise.
2860         * config/m68k/netbsd-elf.h: Likewise.
2861         * config/m68k/sgs.h: Likewise.
2862         * config/m68k/m68k.h: Likewise.
2863         * config/m68k/m68k.md: Likewise.
2864         * config/m68k/m68k.c: Likewise.
2865         * doc/md.texi (Machine Constraints): Remove Sun FPA specific
2866         constraints.
2867         * doc/invoke.texi (Option Summary): Remove -mfpa.
2868         (M680x0 Options): Likewise.
2869
2870 2003-05-17  David Edelsohn  <edelsohn@gnu.org>
2871
2872         * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
2873
2874 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
2875
2876         * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
2877         * config/sparc/liteelf.h, config/sparc/openbsd64.h,
2878         config/sparc/rtemself.h, config/sparc/sol2-64.h,
2879         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
2880         Update for use of TARGET_SUB_OS_CPP_BUILTINS.
2881
2882 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
2883
2884         * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
2885         TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
2886
2887 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
2888
2889         * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
2890         * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
2891         sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
2892         sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
2893         sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
2894         sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
2895         sparc/sysv4.h,
2896         * sparc/sysv4-only.h: New.
2897
2898 2003-05-17  Alan Modra  <amodra@bigpond.net.au>
2899
2900         * function.c (assign_parms): Check for zero size args.
2901
2902 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2903
2904         * cfgloopanal.c (test_for_iteration): Use string concatentation on
2905         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
2906         function calls into one.
2907         * dbxout.c (dbxout_symbol): Likewise.
2908         * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
2909         * dwarf2asm.c (dw2_asm_output_data_uleb128,
2910         dw2_asm_output_data_sleb128): Likewise.
2911         * genrecog.c (debug_decision_2): Likewise.
2912         * loop.c (emit_prefetch_instructions): Likewise.
2913         * print-rtl.c (print_rtx): Likewise.
2914         * print-tree.c (print_node_brief, print_node): Likewise.
2915         * ra-debug.c (dump_igraph, dump_graph_cost,
2916         dump_static_insn_cost): Likewise.
2917         * ra-rewrite.c (dump_cost): Likewise.
2918         * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
2919         * sreal.c (dump_sreal): Likewise.
2920         * unroll.c (unroll_loop, precondition_loop_p): Likewise.
2921         * varasm.c (assemble_vtable_entry): Likewise.
2922
2923         * avr.c (avr_output_function_prologue,
2924         avr_output_function_epilogue, print_operand): Fix format specifier
2925         warnings.
2926         (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
2927         * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
2928
2929 2003-05-16  Geoffrey Keating  <geoffk@apple.com>
2930
2931         * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
2932         and ! TARGET_STRING cases.
2933
2934         * doc/cppopts.texi (-undef): Fix texinfo warning.
2935
2936         * doc/cppopts.texi (-H): Document that -H works for PCH files too.
2937         * cppfiles.c (validate_pch): When -H is used, print some information
2938         about PCH files found.
2939
2940 2003-05-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2941
2942         * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
2943         * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
2944         * config/mips/t-sr71k: Likewise.
2945
2946 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2947
2948         * arc.c (arc_output_function_prologue,
2949         arc_output_function_epilogue): Fix format specifier warnings.
2950         * arc.h (LARGE_INT): Fix signed/unsigned warnings.
2951
2952         * v850.c (print_operand): Fix format specifier warnings.
2953
2954         * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
2955         specifier warnings.
2956
2957         * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
2958         format specifier warnings.
2959
2960         * ip2k.c (function_prologue, function_epilogue, print_operand):
2961         Fix format specifier warnings.
2962         * ip2k.md: Likewise.
2963
2964         * i960.c (i960_output_function_prologue, i960_print_operand,
2965         i960_print_operand_addr): Fix format specifier warnings.
2966
2967         * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
2968         (i370_output_function_prologue): Fix format specifier warnings.
2969         * i370.h (PRINT_OPERAND): Likewise.
2970
2971         * fr30.c (fr30_print_operand): Fix format specifier warnings.
2972
2973         * dsp16xx.c (print_operand_address): Fix format specifier warning.
2974         * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
2975
2976         * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
2977         specifier warnings.
2978
2979         * alpha.c (print_operand_address, alpha_start_function,
2980         unicosmk_output_ssib): Use string concatentation on
2981         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
2982         function calls into one.
2983         * arm.c (arm_print_operand): Likewise.
2984         * cris.c (cris_asm_output_mi_thunk): Likewise.
2985         * frv.c (frv_asm_output_mi_thunk): Likewise.
2986         * ia64.c (ia64_print_operand, process_set): Likewise.
2987         * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
2988         Likewise.
2989         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
2990         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
2991         * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
2992         * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
2993         * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
2994         * s390.c (s390_assemble_integer): Likewise.
2995         * sparc.c (sparc_flat_function_prologue,
2996         sparc_flat_function_epilogue): Likewise.
2997         * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
2998         * vax.c (vax_output_mi_thunk): Likewise.
2999
3000         * frv.c (frv_print_operand_memory_reference): Fix format specifier
3001         warning.
3002         (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
3003
3004         * m68k.c (m68k_output_function_epilogue): Fix format specifier
3005         warnings.
3006
3007         * stormy16-protos.h (xs_hi_general_operand,
3008         xs_hi_nonmemory_operand): Prototype.
3009         * stormy16.c (xstormy16_output_shift): Fix format specifier
3010         warnings.
3011
3012         * cris.c: Fix format specifier warnings.
3013
3014 2003-05-16  Nick Clifton  <nickc@redhat.com>
3015
3016         * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
3017
3018 2003-05-16  Wolfgang Bangerth <bangerth@dealii.org>
3019
3020         * doc/bugreport.texi: Remove most of the of the preface of the
3021         bugs section.
3022
3023 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
3024
3025         * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
3026         .save XX, r0.
3027
3028 2003-05-15  Roger Sayle  <roger@eyesopen.com>
3029
3030         * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
3031
3032 2003-05-15  Eric Christopher  <echristo@redhat.com>
3033
3034         * cfgcleanup.c (merge_blocks): Fix return value.
3035
3036 2003-05-15 Eric Christopher <echristo@redhat.com>
3037
3038         * combine.c (expand_compound_operation): Make sure
3039         that zero_extend operation is profitable.
3040
3041 2003-05-15  Richard Henderson  <rth@redhat.com>
3042
3043         * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
3044         code protected by USE_GNULIBC_1.
3045
3046 2003-05-15  Zack Weinberg  <zack@codesourcery.com>
3047
3048         * config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
3049         remove hppa*-*-mpeix* which could not be built, and prune
3050         files from tmake_file= or tm_file= lists that don't exist.
3051
3052         * config/alpha/alpha-interix.h, config/alpha/alpha32.h
3053         * config/alpha/t-interix, config/arm/conix-elf.h
3054         * config/arm/t-arm-aout, config/arm/t-strongarm-coff
3055         * config/arm/unknown-elf-oabi.h, config/i386/win32.h
3056         * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
3057         * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
3058         * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
3059         * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
3060         * config/m68k/m68k-psos.h, config/m68k/mot3300.h
3061         * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
3062         * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
3063         * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
3064         * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
3065         * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
3066         * config/m68k/tower-as.h, config/m68k/tower.h
3067         * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
3068         * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
3069         * config/m88k/m88k-protos.h, config/m88k/m88k.c
3070         * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
3071         * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
3072         * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
3073         * config/mips/rtems64.h, config/mips/sni-gas.h
3074         * config/mips/sni-svr4.h, config/mips/t-ecoff
3075         * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
3076         * config/mn10200/mn10200.c, config/mn10200/mn10200.h
3077         * config/mn10200/mn10200.md, config/mn10200/t-mn10200
3078         * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
3079         * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
3080         * config/romp/romp-protos.h, config/romp/romp.c
3081         * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
3082         * config/rs6000/aix3newas.h, config/rs6000/mach.h
3083         * config/sparc/bsd.h, config/sparc/hal.h
3084         * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
3085         * config/sparc/lynx.h, config/sparc/netbsd.h
3086         * config/sparc/sp86x-aout.h, config/sparc/splet.h
3087         * config/sparc/sun4gas.h, config/sparc/sun4o3.h
3088         * config/sparc/sunos4.h, config/sparc/t-chorus-elf
3089         * config/sparc/t-halos, config/sparc/t-sparcbare
3090         * config/sparc/t-splet, config/sparc/t-sunos41
3091         * config/v850/rtems.h: Delete file.
3092
3093 2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
3094
3095         * config/rs6000/rs6000-protos.h (function_value): Protoize.
3096
3097         * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
3098
3099         * config/rs6000/rs6000.c (rs6000_function_value): New.
3100
3101 2003-05-15  Philip Blundell  <philb@gnu.org>
3102
3103         * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
3104         All uses updated.
3105         (arm_tune_xscale): New variable.
3106         (arm_override_options): Set it.
3107         (arm_adjust_cost): Use it in place of arm_arch_xscale.
3108         (arm_gen_load_multiple): Likewise.
3109         (arm_gen_store_multiple): Likewise.
3110         * config/arm/arm.md (is_xscale): Likewise.
3111         * config/arm/arm.h (arm_tune_xscale): Declare.
3112
3113 2003-05-15  Philip Blundell  <philb@gnu.org>
3114
3115         PR target/10730
3116         * config/arm/arm.c (adjacent_mem_locations): Reject offsets
3117         involving invalid constants.
3118
3119 2003-05-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3120
3121         * pa.c (hppa_expand_prologue): Remove blockage.
3122
3123 2003-05-15  Wolfgang Bangerth <bangerth@dealii.org>
3124
3125         * doc/bugreport.texi: Remove most of the bug reporting
3126         instructions and merge them into bugs.html.
3127
3128 2003-05-14  Matt Kraai  <kraai@alumni.cmu.edu>
3129
3130         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
3131         g_switch_value to unsigned HOST_WIDE_INT.
3132
3133 2003-05-14  Eric Christopher  <echristo@redhat.com>
3134
3135         * combine.c: Fix header comments.
3136         (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
3137         to all calls and prototype.
3138
3139 2003-05-14  Roger Sayle  <roger@eyesopen.com>
3140
3141         PR optimization/10764
3142         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
3143         Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
3144         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
3145         add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
3146         (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
3147         the corresponding *fyl2x_?fxf3 instructions.
3148
3149 2003-05-14  Bob Wilson  <bob.wilson@acm.org>
3150
3151         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
3152         * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
3153         XCHAL_HAVE_L32R): New.
3154         * config/xtensa/xtensa-protos.h (non_const_move_operand,
3155         xtensa_load_constant, xtensa_function_prologue,
3156         xtensa_function_epilogue): Delete prototypes.
3157         (xtensa_expand_prologue): New.
3158         * config/xtensa/xtensa.c (frame_size_const,
3159         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
3160         non_const_move_operand, xtensa_load_constant, xtensa_reorg,
3161         xtensa_function_prologue): Delete.
3162         (add_operand, xtensa_mem_offset): Formatting.
3163         (move_operand): If the const16 option is available, allow any SFmode
3164         and SImode constants.
3165         (xtensa_emit_move_sequence): Inline the former contents of
3166         xtensa_load_constant with modifications to handle the const16 option.
3167         (override_options): Add xtensa_char_to_class['W'] and set it to
3168         the general register class only if the const16 option is enabled.
3169         Fix formatting.  Disallow PIC when using the const16 option.
3170         (print_operand): Reorganize to switch on "letter" instead of the
3171         RTL code.  Add output_operand_lossage calls for invalid cases.
3172         Add support for 't' and 'b' letters.
3173         (xtensa_expand_prologue): New function to replace
3174         xtensa_function_prologue and xtensa_reorg.
3175         (xtensa_function_epilogue): Declare this as static.  Delete code
3176         to print the retw.n or retw instruction.
3177         (xtensa_return_addr): Use A0_REG instead of 0.
3178         (xtensa_rtx_costs): Add costs for using the const16 option.
3179         * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
3180         (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
3181         (TARGET_SWITCHES): Add "const16" and "no-const16".
3182         (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
3183         (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
3184         using the const16 option.
3185         (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
3186         (TRAMPOLINE_SIZE): Change from 49 to 59.
3187         (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
3188         (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
3189         when using the const16 option.
3190         (PREDICATE_CODES): Delete non_const_move_operand.
3191         * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
3192         UNSPECV_ENTRY.
3193         (movdi, movdf): If the source is a constant, always expand to a
3194         sequence of movsi insns.
3195         (movdi_internal, movdf_internal): Remove alternative using l32r insns.
3196         (movsi_internal, movsf_internal): Add alternative using const16 insns.
3197         (movsf): Add const16 support.
3198         (entry, prologue, epilogue): New.
3199         (set_frame_ptr): Add missing mode for unspec_volatile operation.
3200         Likewise for subsequent split pattern.
3201         * doc/invoke.texi (Option Summary, Xtensa Options): Document new
3202         "-mconst16" and "-mno-const16" options.
3203
3204 2003-05-14  Richard Henderson  <rth@redhat.com>
3205
3206         * config/ia64/ia64.c (ia64_expand_load_address): Force destination
3207         to be DImode register.  Merge load_symptr.
3208         * config/ia64/ia64.md (load_symptr): Remove.
3209
3210 2003-05-14  Richard Henderson  <rth@redhat.com>
3211
3212         * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
3213         DEFERRED_CONSTANT_P.
3214         * integrate.c (copy_rtx_and_substitute): Update use.
3215         * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
3216         to the copy generated.
3217         (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
3218         of the constant to see if we should emit.
3219         (mark_constant): Similarly.
3220         (output_constant_def_contents): Set TREE_ASM_WRITTEN.
3221
3222 2003-05-14  David Edelsohn  <edelsohn@gnu.org>
3223
3224         * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
3225         move record condition.
3226         (movdi_internal2): Same.
3227
3228 2003-05-14  Nathan Sidwell  <nathan@codesourcery.com>
3229
3230         * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
3231         (GCOV_TAG_*) Force type to gcov_unsigned_t.
3232         (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
3233         (struct gcov_var): Remove modified. Add start, length, offset,
3234         overread. Have buffer array for libgcov.
3235         (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
3236         (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
3237         * gcov-io.c (gcov_open): Set mode, do not read anything.
3238         (gcov_close): Write final block.
3239          (gcov_write_block, gcov_allocate): New.
3240         (gcov_write_bytes): Make static. Write or allocate buffer.
3241         (gcov_write_unsigned, gcov_write_counter): Buffer can never be
3242         null.
3243         (gcov_write_string): Adjust.
3244         (gcov_write_tag)
3245         (gcov_write_length): Adjust. Flush the block.
3246         (gcov_write_tag_length): Buffer can never be null.
3247         (gcov_read_bytes): Make static. Read in block.
3248         (gcov_sync): Moved here. Adjust.
3249         (gcov_seek): Moved here. Adjust.
3250         * coverage.c (read_counts_file): Adjust.
3251         * gcov-dump.c (print_prefix): Add position parameter.
3252         (flag_dump_positions): New flag.
3253         (options, main, print_usage): Add it.
3254         (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
3255         tag_summary): Adjust.
3256         * gcov.c (read_graph_file, read_count_file): Adjust.
3257         * libgcov.c (gcov_exit): Adjust.
3258
3259         * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
3260         (libgcov.a): Depend on libgcc.a.
3261         (gcov.o, gcov-dump.o): Add gcov-io.c.
3262         * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
3263
3264         * loop.c (check_dbra_loop): Factor common test.
3265
3266 2003-05-14  Ben Elliston  <bje@wasabisystems.com>
3267
3268         * doc/md.texi (Automaton pipeline description): Grammar fixes.
3269
3270 2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
3271
3272         * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
3273         (TARGET_INITIALIZER): Include it.
3274         * target.h (struct gcc_target): Add machine_dependent_reorg field.
3275         * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
3276         * system.h: Poison MACHINE_DEPENDENT_REORG.
3277
3278         * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
3279         * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
3280         * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3281         (alpha_handle_trap_shadows): Remove "first insn" parameter.
3282         (alpha_align_insns): Likewise.
3283         (alpha_reorg): Likewise.  Make static.  Update calls to above
3284         functions.
3285
3286         * config/arm/arm-protos.h (arm_reorg): Remove declaration.
3287         * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
3288         * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3289         (arm_reorg): Remove parameter.  Make static.
3290
3291         * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
3292         * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
3293         * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3294         (avr_reorg): Renamed from machine_dependent_reorg.  Make static.
3295         Remove parameter.
3296
3297         * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
3298         * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
3299         * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3300         (c4x_reorg): Renamed from c4x_process_after_reload.  Make static.
3301         Remove parameter.
3302
3303         * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
3304         * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
3305         * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
3306
3307         * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
3308         * config/frv/frv.c: Remove orphaned comment.
3309
3310         * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
3311         * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
3312         * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3313         (ix86_reorg): Renamed from x86_machine_dependent_reorg.  Make static.
3314         Remove parameter.
3315
3316         * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
3317         * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
3318         * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3319         (emit_insn_group_barriers): Remove "first insn" parameter.
3320         (emit_all_insn_group_barriers): Likewise.
3321         (ia64_reorg): Likewise.  Make static.  Update calls to above functions.
3322         (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
3323
3324         * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
3325         * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
3326         * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3327         (ip2k_reorg): Renamed from machine_dependent_reorg.  Make static.
3328         Remove parameter.
3329
3330         * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
3331         * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
3332         * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3333         (m68hc11_reorg): Make static.  Remove parameter.
3334
3335         * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
3336         * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
3337         * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3338         (conditionalize_optimization): Remove parameter.
3339         (mcore_reorg): Renamed from mcore_dependent_reorg.  Remove parameter.
3340         Make static.  Update call to conditionalize_optimization.
3341
3342         * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
3343         * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
3344         * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3345         (mips_reorg): Renamed from machine_dependent_reorg.  Remove parameter.
3346         Make static.
3347
3348         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
3349         * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
3350         * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3351         (mmix_reorg): Renamed from mmix_machine_dependent_reorg.  Make static.
3352         Remove parameter.
3353
3354         * config/pa/pa-protos.h (pa_reorg): Remove declaration.
3355         * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
3356         * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3357         (pa_combine_instructions): Remove "first insn" parameter.
3358         (remove_useless_addtr_insns): Likewise.
3359         (pa_reorg): Likewise.  Make static.  Update calls to above functions.
3360
3361         * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
3362         commented-out definition.
3363
3364         * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
3365         * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
3366         * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3367         (s390_reorg): Renamed from s390_machine_dependent_reorg.  Make static.
3368         Remove parameter.
3369
3370         * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
3371         * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
3372         * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3373         (sh_reorg): Renamed from machine_dependent_reorg.  Make static.
3374         Remove parameter.
3375         (sh_output_mi_thunk): Call sh_reorg directly.
3376         * config/sh/sh.md: Update comment.
3377
3378         * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
3379         commented-out definition.
3380
3381         * config/v850/v850-protos.h (v850_reorg): Remove declaration.
3382         * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
3383         * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3384         (v850_reorg): Make static.  Remove parameter.
3385
3386         * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
3387         * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
3388         * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3389         (xtensa_reorg): Make static.  Remove parameter.
3390
3391         * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
3392         (TARGET_MACHINE_DEPENDENT_REORG): Document.
3393
3394 2003-05-13  Richard Henderson  <rth@redhat.com>
3395
3396         * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
3397         the old decl had instantiated DECL_RTL.
3398
3399 2003-05-13  Mike Stump  <mrs@apple.com>
3400
3401         * doc/invoke.texi (Option Summary): Kill off documentation for -$.
3402
3403 2003-05-13  Janis Johnson  <janis187@us.ibm.com>
3404
3405         * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
3406         HOST_WIDE_INT argument.
3407
3408 2003-05-13  Jason Merrill  <jason@redhat.com>
3409
3410         * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
3411
3412         * tree.c (iterative_hash_expr): New fn.
3413
3414         * c-semantics.c (emit_local_var): Don't mess with temp slots if
3415         there's no initializer.
3416
3417 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
3418
3419         * final.c (final_scan_insn): Apply the effects of frame-related
3420         delay slot insns before emitting a delayed branch.
3421
3422 2003-05-13  Nick Clifton  <nickc@redhat.com>
3423
3424         * config/mcore/mcore.md (jump): Use emit_jump_insn.
3425
3426 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3427
3428         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
3429         parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
3430
3431 2003-05-12  DJ Delorie  <dj@redhat.com>
3432
3433         * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
3434         (emit_push_insn): Don't use push when the source alignment is less
3435         than the stack's push rounding.
3436
3437 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
3438
3439         * diagnostic.c (output_format): Add support for %m.
3440         (output_printf, output_verbatim, diagnostic_set_info,
3441         verbatim): Set err_no field of the text_info structure being
3442         initialized.
3443         (fatal_io_error): Delete function.
3444         * diagnostic.h (text_info): Add err_no field.
3445         * toplev.h (fatal_io_error): Delete prototype.
3446
3447         * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
3448         * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
3449         * objc/objc-act.c: Replace all calls to fatal_io_error with
3450         calls to fatal_error; add ": %m" to the end of all the affected
3451         error messages.
3452
3453 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
3454
3455         * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
3456         * rtl.h: Prototype it.
3457         * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
3458         when appropriate.
3459
3460 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3461
3462         * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
3463         ("*iorsi3_oi"): Likewise.
3464
3465 2003-05-13  Richard Earnshaw  <rearnsha@arm.com>
3466
3467         * arm.md (compare_scc): Use shorter sequence for EQ case.
3468         (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
3469         (and_scc_scc): Ensure split only applies when there is a dominance
3470         of the comparisons.
3471         (and_scc_scc_nodom): New insn-and-split pattern.
3472
3473 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
3474
3475         * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
3476         to _Unwind_SetGRPtr().
3477
3478 2003-05-13  Michael Eager <eager@mvista.com>
3479
3480         * Makefile.in: Initialize program_transform_cross_name from
3481         @program_transform_name@ instead of target_alias.
3482
3483 2003-05-12  Janis Johnson  <janis187@us.ibm.com>
3484             Alan Modra  <amodra@bigpond.net.au>
3485             Jakub Jelinek  <jakub@redhat.com>
3486
3487         * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
3488         * configure: Rebuild.
3489         * config/rs6000/rs6000-protos.h: Update.
3490         * config/rs6000/rs6000.c (rs6000_tls_size): New.
3491         (rs6000_tls_size_string): New.
3492         (rs6000_parse_tls_size_option): New.
3493         (rs6000_legitimize_tls_address): New.
3494         (rs6000_tls_get_addr): New.
3495         (rs6000_got_sym): New.
3496         (rs6000_tls_symbol_ref): New.
3497         (rs6000_tls_symbol_ref_1): New.
3498         (rs6000_get_some_local_dynamic_name): New.
3499         (rs6000_get_some_local_dynamic_name_1): New.
3500         (TARGET_HAVE_TLS): New.
3501         (TARGET_CANNOT_FORCE_CONST_MEM): New.
3502         (rs6000_override_options): Handle -mtls-size option.
3503         (constant_pool_expr_1): Handle TLS symbols.
3504         (rs6000_legitimize_address): Handle TLS symbols.
3505         (rs6000_tls_referenced_p): New.
3506         (rs6000_legitimate_address): Handle TLS symbols.
3507         (rs6000_emit_move): Handle TLS symbols.
3508         (print_operand): Handle TLS symbols.
3509         (uses_TOC): Handle TLS symbols.
3510         (rs6000_emit_prologue): Use symbol for unspec constant.
3511         * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
3512         (some_ld_name): New.
3513         (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
3514         (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
3515         (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
3516         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
3517         Support TLS.
3518         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
3519         tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
3520         tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
3521         tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
3522         tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
3523         tls_tls_64): New.
3524         * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
3525
3526 2003-05-12  Neil Booth  <neil@cat.daikokuya.co.uk>
3527
3528         * Makefile.in (stage2_build, stage3_build, stage4_build):
3529         Set BUILD_CC to the same as CC.
3530
3531 2003-05-12  Neil Booth  <neil@daikokuya.co.uk>
3532
3533         * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
3534
3535 2003-05-12  Andreas Schwab  <schwab@suse.de>
3536
3537         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
3538         as unused.
3539         (bundling): Initialize 'pos'.
3540         (ia64_expand_builtin): Initialize 'rmode'.
3541
3542 2003-05-12  David Edelsohn  <edelsohn@gnu.org>
3543
3544         * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
3545         (ASM_OUTPUT_ALIGNED_COMMON): Same.
3546         (ASM_OUTPUT_LOCAL): Same.
3547
3548 Mon May 12 21:53:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
3549
3550         * varasm.c (output_constant):  Fix underflow.
3551
3552 2003-05-12  Mark Mitchell  <mark@codesourcery.com>
3553
3554         PR other/10745
3555         * configure.in: Correct detection of GNU ld version number.
3556         * configure: Regenerated.
3557
3558 2003-05-12  Zack Weinberg  <zack@codesourcery.com>
3559
3560         * diagnostic.c (diagnostic_for_decl): Take a
3561         diagnostic_context argument.  Restructure to be consistent
3562         with diagnostic_report_diagnostic.
3563         (diagnostic_count_diagnostic): Now static.  Take a
3564         diagnostic_info argument, not just a diagnostic_t.  Some code
3565         moved here from internal_error.  Move a case label for
3566         clarity.
3567         (diagnostic_action_after_output): New function.  Code moved
3568         here from internal_error and fatal_error.
3569         (bug_report_request): New #define so that this text appears in
3570         only one place.
3571         (diagnostic_report_diagnostic): Update to match changes to
3572         diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
3573         (diagnostic_set_info): Call gettext here.
3574
3575         (pedwarn): Update comment.  Don't call gettext here.
3576         (sorry): Use report_diagnostic.  Don't call gettext here.
3577         (fatal_error): Remove final fnotice and exit, but call
3578         real_abort to prevent warnings about noreturn function returning.
3579         (internal_error): Likewise.  Don't do ICE suppression here nor
3580         call context->internal_error.
3581         (warning_with_decl): Suppress for decls in system headers.
3582         Adjust call to diagnostic_for_decl.
3583         (pedwarn_with_decl): Likewise.
3584         (error_with_decl): Adjust call to diagnostic_for_decl.
3585         (error_recursion): Use bug_report_request.
3586
3587         * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
3588         * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
3589         diagnostic_count_diagnostic.
3590
3591 2003-05-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3592
3593         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
3594
3595 Mon May 12 15:57:54 CEST 2003  Jan Hubicka  <jh@suse.cz>
3596
3597         * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
3598         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
3599         * mips/mips.h (ASM_OUTPUT_SKIP):  Fix typo in the previous patch.
3600
3601 2003-05-12  Roger Sayle  <roger@eyesopen.com>
3602
3603         * doc/rtl.texi: Document zero_extract as a valid destination
3604         of a set insn.
3605
3606 2003-05-12  Richard Earnshaw  <rearnsha@arm.com>
3607
3608         * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
3609         '.'.  Change all local symbol definitions and references to use LSYM.
3610
3611 Mon May 12 11:32:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
3612
3613         * expr.h (assemble_static_space): Update prototype.
3614         * output.h (assemble_zeros, output_constant): Likewise.
3615         * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
3616         * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
3617         it 64bit clean.
3618         * elf.h (ASM_OTUPUT_SKIP): Likewise.
3619         * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
3620         * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
3621         Expect HOST_WIDE_INT operand.
3622         * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
3623         Expect HOST_WIDE_INT operand.
3624         * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
3625         Expect HOST_WIDE_INT operand.
3626         * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
3627         HOST_WIDE_INT operand.
3628         * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
3629         ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
3630         * aout.h (ASM_OTUPUT_SKIP): Likewise.
3631         * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
3632         * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
3633         * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
3634         * frv.h (ASM_OTUPUT_SKIP): Likewise.
3635         * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
3636         * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
3637         Make it 64bit
3638         clean.
3639         * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
3640         * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
3641         Make it 64bit clean.
3642         * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
3643         * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
3644         HOST_WIDE_INT operand
3645         * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
3646         Expect HOST_WIDE_INT operand
3647         * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
3648         * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
3649         ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
3650         * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
3651         Likewise.
3652         * m32r.h (ASM_OUTPUT_COMMON): Likewise.
3653         * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
3654         Likewise.
3655         * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3656         * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3657         * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
3658         ASM_OUTPUT_SKIP): Likewise.
3659         * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
3660         Likewise.
3661         * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
3662         ASM_OUTPUT_SKIP): Likewise.
3663         * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
3664         ASM_OUTPUT_SKIP): Likewise.
3665         * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
3666         * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
3667         ASM_OUTPUT_SKIP): Likewise.
3668         * sgs.h (ASM_OUTPUT_SKIP): Likewise.
3669         * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
3670         ASM_OUTPUT_SKIP): Likewise.
3671         * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
3672         Likewise.
3673         * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
3674         * iris.h (ASM_OUTPUT_LOCAL): Likewise.
3675         * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
3676         * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
3677         ASM_OUTPUT_SKIP): Make it 64bit clean.
3678         * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
3679         Make it 64bit clean.
3680         * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
3681         ASM_OUTPUT_SKIP): Make it 64bit clean.
3682         * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
3683         64bit clean.
3684         * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
3685         HOST_WIDE_INT argument
3686         * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
3687         * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
3688         HOST_WIDE_INT argument
3689         * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
3690         * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
3691         * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
3692         * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
3693         HOST_WIDE_INT argument
3694         * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
3695         * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
3696         * varasm.c (asm_output_bss, asm_output_aligned_bss,
3697         asm_emit_uninitialized, assemble_zeros, assemble_static_space):
3698         HOST_WIDE_INT argument
3699
3700 2003-05-10  Steven Bosscher  <steven@gcc.gnu.org>
3701
3702         * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
3703         favor of walk_tree_without_duplicates.  Add comments.
3704
3705 2003-05-12  Josef Zlomek  <zlomekj@suse.cz>
3706
3707         * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
3708         (struct alloc_pool_def): New element 'id'.
3709         * alloc-pool.c (fancy_abort): Extern function prototype.
3710         (abort): Macro which uses fancy_abort.
3711         (struct allocation_object_def): New structure.
3712         (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
3713         (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
3714         (last_id): New variable.
3715         (create_alloc_pool): Add the offset of u.data to size of element,
3716         increase and use last_id.
3717         (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
3718         (pool_alloc): Likewise. Set ID for elements.
3719         (pool_free): Check whether the PTR was allocated from POOL.
3720
3721 2003-05-11  Richard Henderson  <rth@redhat.com>
3722
3723         PR c/10675
3724         * c-decl.c: Include hashtab.h.
3725         (detect_field_duplicates): New.
3726         (finish_struct): Use it.
3727         * Makefile.in (c-decl.o): Update.
3728         * c-parse.in (structsp_attr): Nreverse component_decl_list results.
3729         (component_decl_list, component_decl_list2,
3730         components, components_notype): Build list in reverse order.
3731         (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
3732
3733         * tree.c (chainon): Special case op2 null as well.
3734         Reorg for clarity.
3735
3736 2003-05-11  Roger Sayle  <roger@eyesopen.com>
3737
3738         * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
3739         to implement log, logf and logl built-ins as inline x87 intrinsics.
3740         (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
3741         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
3742         patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
3743
3744         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
3745         UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
3746
3747 2003-05-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3748
3749         * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
3750
3751         * sparc.c (print_operand): Fix uninitialized warning.
3752
3753 2003-05-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3754
3755         * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
3756         real insns.
3757         * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
3758         condition.
3759
3760 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
3761
3762         * doc/cpp.texi: Fix typos.
3763
3764 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
3765
3766         * config/s390/s390.c (s390_function_arg_float): New function.
3767         (s390_function_arg_pass_by_reference): Use it.
3768         (s390_function_arg_advance): Likewise.
3769         (s390_function_arg): Likewise.
3770         (s390_va_arg): Likewise
3771
3772 2003-05-11  Nathan Sidwell  <nathan@codesourcery.com>
3773
3774         * coverage.h (coverage_counter_alloc): New function.
3775         * function.h (struct function): Remove arc_profile flag.
3776         * coverage.c (fn_ident): Remove.
3777         (fn_b_ctrs, no_coverage): New.
3778         (get_coverage_counts): Use current_function_funcdef_no.
3779         (coverage_counter_alloc): New.
3780         (coverage_counter_ref): Adjust.
3781         (coverage_begin_output): Check no_coverage. Use
3782         current_function_funcdef_no.
3783         (coverage_end_function): Likewise.
3784         (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
3785         than clearing flag_inline_functions. Do not clear arc_profile
3786         flag.
3787         * function.c (prepare_function_start): Do not set arc_profile
3788         flag.
3789         * profile.c (instrument_edges): Return number of instrumented
3790         edges. Use a for loop.
3791         (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
3792         local to here and simplify. Use profile_arc_flag not arc_profile
3793         flag.
3794         (find_spanning_tree): Reformat.
3795         * toplev.c (rest_of_compilation): Use profile_arc_flags and
3796         flag_test_coverage rather than arc_profile flag.
3797
3798 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
3799
3800         * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
3801
3802 2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3803
3804         * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
3805
3806 2003-05-11  Bruno Haible  <bruno@clisp.org>
3807
3808         * cppfiles.c (find_or_create_entry): Preserve errno.
3809
3810 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
3811
3812         * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
3813         cpplib as it's a Standard Predefined Macro.
3814         * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
3815         * cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
3816         __STDC_HOSTED__ appropriately.
3817         * cpplib.h (_cpp_init_builtins): Update.
3818         * fix-header.c (read_scan_file): Update.
3819         * doc/cpp.texi, doc/cppopts.texi: Update documentation.
3820
3821 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3822
3823         PR C++/689
3824         PR C++/9257
3825         * c-opts.c (c_common_decode_option): Don't set
3826         warn_ctor_dtor_privacy wen -Wall.
3827         * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
3828
3829 2003-05-10  Alexandre Oliva  <aoliva@redhat.com>
3830
3831         * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
3832         patch.
3833
3834 2003-05-10  Zack Weinberg  <zack@codesourcery.com>
3835
3836         * diagnostic.c: Reorder functions for clarity, putting all the
3837         functions in the "error" family next to each other, and
3838         likewise all the functions in the "error_with_decl" family.
3839         Some other routines were moved too.  Add comments.
3840         (vbuild_message_string): Fold into sole caller.
3841
3842
3843 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
3844
3845         * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
3846         (EH_RETURN_HANDLER_RTX): Likewise.
3847         (expand_builtin_eh_return): Do not copy stack adjustment
3848         if EH_RETURN_STACKADJ_RTX is not defined.
3849         (expand_eh_return): Likewise.  Also, do not pass stack
3850         adjustment as argument to the eh_return pattern.
3851         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
3852         because EH_RETURN_STACKADJ_RTX is not defined.
3853         * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
3854         is not defined, treat stack pointer like a regular register.
3855         (uw_init_context_1): Set up fake initial stack pointer register.
3856         (uw_install_context_1): Do not compute stack adjustment if
3857         EH_RETURN_STACKADJ_RTX is not defined.
3858
3859         * config/i386/i386.md ("eh_return"): Remove first argument.
3860         * config/mips/mips.md ("eh_return"): Likewise.
3861         * config/rs6000/rs6000.md ("eh_return"): Likewise.
3862         * config/sh/sh.md ("eh_return"): Likewise.
3863
3864         * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
3865
3866 2003-05-10  Alexander Aganichev  <aaganichev@yandex.ru>
3867
3868         * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
3869
3870 2003-05-10  Nathan Sidwell  <nathan@codesourcery.com>
3871
3872         * defaults.h (GCOV_TYPE_SIZE): Remove.
3873         * gcov-io.h (gcov_type): Set to specific mode int on target.
3874         (gcov_unsigned_t, gcov_position_t): New.
3875         (GCOV_TYPE_NODE): New.
3876         (GCOV_TAG_SUMMARY_LENGTH): Adjust.
3877         (GCOV_COUNTERS_SUMMABLE): New.
3878         (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
3879         gcov_ctr_info, gcov_info): Adjust types.
3880         (gcov_var): Adjust types.
3881         (gcov_write_unsigned, gcov_write_tag,
3882         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
3883         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
3884         (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
3885         * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
3886         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
3887         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
3888         * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
3889         __gcov_init, __gcov_merge_add): Adjust gcov types.
3890         * coverage.c (ctr_merge_functions): Constify.
3891         (ctr_names): New.
3892         (read_counts_file): Adjust gcov types. Only summarize & merge
3893         summable counters.
3894         (coverage_counter_ref): Use GCOV_TYPE_NODE.
3895         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
3896         build_ctr_info_value, build_gcov_info): Adjust types.
3897         * profile.c (branch_prob): Adjust gcov types.
3898         * gcov_dump (dump_file): Adjust gcov types.
3899
3900 2003-05-10  Richard Earnshaw  <rearnsha@arm.com>
3901
3902         * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
3903         constants.
3904         (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
3905         * arm.c (arm_select_dominance_cc_mode): Renamed from
3906         select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
3907         Callers updated.
3908         * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
3909
3910 2003-05-09  Roger Sayle  <roger@eyesopen.com>
3911
3912         * config/alpha/alpha.c (alpha_start_function): Declare frame_size
3913         as unsigned to avoid signed/unsigned comparison warnings.
3914
3915 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
3916
3917         * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
3918         instruction if the Xtensa density option is enabled.
3919
3920 2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>
3921
3922        * mklibgcc.in: Remove extra quotes.
3923
3924 2003-05-09  Mark Mitchell  <mark@codesourcery.com>
3925
3926         * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
3927         of int_ftype_void.
3928
3929 2003-05-09  Alexandre Oliva  <aoliva@redhat.com>
3930
3931         * reload1.c (reload_cse_move2add): Don't turn an implicit
3932         truncation into a self-set in the narrow mode.
3933
3934 2003-05-09  Richard Earnshaw  <rearnsha@arm.com>
3935
3936         * arm.md (clzsi2): The CLZ instruction is predicable.
3937
3938 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
3939
3940         * config/xtensa/xtensa.c: Formatting.
3941
3942 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
3943
3944         * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
3945         instead of TREE_OPERAND to access the operand of a
3946         CONSTRUCTOR node.
3947
3948 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
3949
3950         * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
3951         one operand.
3952
3953 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
3954
3955         * toplev.h (warning_with_file_and_line): Don't declare.
3956         (error_with_file_and_line): Likewise.
3957         * diagnostic.c (error_with_file_and_line): Remove.
3958         (warning_with_file_and_line): Likewise.
3959
3960 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
3961
3962         * c-parse.in (if_stmt_locus): New object.
3963         (if_prefix rule): Use it.  Don't use warning_with_file_and_line.
3964         (select_or_iter_stmt rule): Likewise.
3965         (if_stmt_file): Remove.
3966         (if_stmt_line): Likewise.
3967         * jump.c: include "diagnostic.h"
3968         (never_reached_warning): Don't use warning_with_file_and_line.
3969         * Makefile.in (jump.o): Add dependce on diagnostic.h
3970
3971 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
3972
3973         * expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
3974         Move code handling pieces not larger than a word to..
3975         * function.c (assign_parms): ..here, but use change_address instead
3976         of adjust_address and operand_subword, and expand_binop instead of
3977         expand_shift.  Adjust calls to move_block_from_reg.
3978         * expr.h (move_block_from_reg): Update declaration.
3979         (copy_blkmode_from_reg): Formatting.
3980         * Makefile.in (function.o): Add $(OPTABS_H) to deps.
3981         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
3982         move_block_from_reg calls.
3983         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
3984         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
3985         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
3986         * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
3987         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
3988         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3989         * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
3990         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
3991         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
3992
3993 2003-05-08  DJ Delorie  <dj@redhat.com>
3994
3995         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
3996         to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
3997         variable-sized types).
3998         (xstormy16_function_arg): New.  Pass them that way too.
3999         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
4000         * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
4001
4002 2003-05-08  Aldy Hernandez  <aldyh@redhat.com>
4003
4004         * mklibgcc.in: Use mkinstalldirs when installing multilib
4005         directories.
4006
4007 2003-05-08  J"orn Rennecke <joern.rennecke@superh.com>
4008
4009         * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
4010         instead of CODE_FOR_jump
4011
4012 2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>
4013
4014         * objc/objc-act.c (error_with_ivar): Don't use
4015         error_with_file_and_line.
4016         (warn_with_method): Don't use warning_with_file_and_line.
4017
4018 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4019
4020         * stmt.c (emit_locus): New macro.
4021         (emit_filename): Remove.
4022         (emit_lineno): Likewise.
4023         (struct stmt_status): Replace members x_emit_filename and
4024         x_emit_lineno with x_emit_locus.
4025         (set_file_and_line_for_stmt): Adjust.
4026         (expand_expr_stmt_value): Don't use warning_with_file_and_line.
4027         (warn_if_unused_value): Likewise.
4028         (check_seenlabel): Likewise.
4029
4030 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4031
4032         * c-decl.c (define_label): Tidy.  Don't use any of
4033         error_with_file_and_line or warning_with_file_and_file.
4034         (pending_xref_error): Likewise.
4035         (store_parm_decls): Likewise.
4036         (current_function_prototype_locus): New object.  Package from
4037         current_function_prototype_file and current_function_prototype_line.
4038         (start_function): Use it.
4039         (current_function_prototype_file): Remove.
4040         (current_function_prototype_line): Remove;
4041
4042 2003-05-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4043
4044         * builtins.c (readonly_data_expr): New function.
4045         (expand_builtin_memmove): Optimize any rodata source, not just
4046         strings.
4047
4048 2003-05-07  David Mosberger <davidm@hpl.hp.com>
4049
4050         * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
4051
4052 2003-05-07  Richard Henderson  <rth@redhat.com>
4053
4054         * config/i386/i386.c (ix86_split_long_move): Fix base register
4055         mode for XFmode splits for TARGET_64BIT.
4056
4057 2003-05-07  Richard Henderson  <rth@redhat.com>
4058
4059         * sched-ebb.c (schedule_ebb): Supply the correct starting
4060         block number to save_line_notes.
4061
4062 2003-05-07  Richard Henderson  <rth@redhat.com>
4063
4064         * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
4065         (dump_file): Likewise.
4066
4067 2003-05-07  David Mosberger <davidm@hpl.hp.com>
4068
4069         * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
4070         forget to preserve gp.
4071         * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
4072
4073         * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
4074         .prologue directive.
4075         Use .skip instead of data8 for .bss section to make Intel
4076         Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
4077         explicit in the .mib bundles and remove the unnecessary stop
4078         bits.  Replace local labels with normal labels, to make ias
4079         happy.  Don't register __do_global_ctors_aux here, do it in
4080         crtend.asm instead.
4081
4082         * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
4083         __do_global_ctors_aux in .init_array section instead of
4084         declaring it as a hidden global.  Replace local labels with
4085         ordinary labels to make ias happy.
4086
4087 2003-05-07  Richard Henderson  <rth@redhat.com>
4088
4089         PR c++/10570
4090         * except.c: Revert 04-01 and 04-02 forced-unwind changes.
4091         * flags.h, toplev.c, doc/invoke.texi: Likewise.
4092
4093         * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
4094         * unwind.inc (_Unwind_DeleteException): Check for null
4095         exception_cleanup.
4096
4097         * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
4098         * unwind.inc (_Unwind_Resume_or_Rethrow): New.
4099         * unwind.h: Declare them.
4100         * libgcc-std.ver (GCC_3.3): Export them.
4101
4102 2003-05-07  Richard Henderson  <rth@redhat.com>
4103
4104         * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
4105         not _Unwind_Word.
4106
4107 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
4108
4109         * stmt.c (force_label_rtx): New function, based on logic
4110         formerly found in expand_expr.
4111         * expr.h: Prototype it.
4112         * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
4113         appropriate.
4114         * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
4115
4116         * print-tree.c (debug_tree): Free the table after we're done
4117         with it.  Use putc.
4118
4119 2003-05-07  Aldy Hernandez  <aldyh@redhat.com>
4120
4121         * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
4122         Unreverse arguments for __ev_subw.
4123
4124         * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
4125
4126 2003-05-07  Nick Clifton  <nickc@redhat.com>
4127
4128         * config/stormy16/stormy-abi: Update to include
4129         R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
4130         R_XSTORMY16_12 relocs.
4131
4132 2003-05-07  Alan Modra  <amodra@bigpond.net.au>
4133
4134         * function.c (assign_parms): Correct reversed reg_parm_stack_space
4135         test.  Add partial in-regs size to stack_args_size.
4136
4137 2003-05-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4138
4139         * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
4140         as a C only option.
4141
4142 2003-05-07  Nathan Sidwell  <nathan@codesourcery.com>
4143
4144         * gcov-io.h (GCOV_LOCKED): New #define.
4145         (GCOV_LINKAGE): Make sure it is #defined.
4146         (gcov_write_string, gcov_write_tag, gcov_write_length,
4147         gcov_read_string, gcov_time): Poison in libgcov.
4148         (gcov_seek_end): Remove.
4149         (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
4150         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
4151         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
4152         GCOV_TAG_SUMMARY_LENGTH): New #defines.
4153         (gcov_write_tag, gcov_write_length): Not in libgcov.
4154         * gcov-io.c (gcov_open): Use GCOV_LOCKED.
4155         (gcov_write_tag, gcov_write_length): Not in libgcov.
4156         (gcov_write_tag_length): New.
4157         (gcov_write_summary): Use gcov_write_tag_length.
4158         * libgcov.c: Always #include gcov-io.h.
4159         (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
4160         (GCOV_LINKAGE): Define to nothing for L_gcov.
4161         (gcov_exit): Replace gcov_write_tag, gcov_write_length with
4162         gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
4163         * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
4164         (read_count_file): Likewise.
4165         * gcov-dump.c (dump_file): Likewise.
4166         * coverag.c (read_counts_file): Likewise.
4167
4168 2003-05-06  Mark Mitchell  <mark@codesourcery.com>
4169
4170         PR other/10658
4171         * gcc.c (process_command): Update copyright date.
4172
4173 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
4174
4175         * doc/install.texi (mips-*-*):  Add note about libstdc++.
4176
4177 2003-05-06  DJ Delorie  <dj@redhat.com>
4178
4179         * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
4180         * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
4181         * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
4182
4183 2003-05-06    <neil@cat.daikokuya.co.uk>
4184
4185         * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
4186         and -Wstrict-prototypes if C++.
4187
4188 2003-05-06  Aldy Hernandez  <aldyh@redhat.com>
4189
4190         * config/rs6000/linuxspe.h: New file.
4191
4192         * config.gcc: Add powerpc-*-linux-gnuspe* target.
4193
4194 2003-05-06  Richard Henderson  <rth@redhat.com>
4195
4196         * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
4197         previous frame didn't save sp.  Clear sp for next frame.
4198         (uw_install_context_1): Honor saved sp from frame.
4199
4200 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
4201
4202         * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
4203         (mips_move_1word, mips_move_2words): Remove declaration.
4204         (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
4205         (mips_restore_gp): Remove insn argument.
4206         * config/mips/mips.h (FP_REG_RTX_P): New macro.
4207         * config/mips/mips.c (volatile_buffer): Remove.
4208         (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
4209         (mips_move_1word, mips_move_2words): Remove, replacing with...
4210         (mips_output_move): ...this new function.
4211         (mips_restore_gp): Remove insn argument.  Adjust for above changes.
4212         (print_operand): Make '%h' print %hi(op) for HIGH operands.  Remove
4213         handling of floating-point constants.  Handle zero CONST_DOUBLE
4214         arguments.
4215         (mips_annotate_frame_insn): Replace with...
4216         (mips_set_frame_expr): ...this, which just takes one argument.
4217         (mips_frame_set): Change the register argument to an rtx.
4218         (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
4219         check whether moves should be split.  Use mips_split_64bit_move
4220         to split them.  Use mips_subword to generate the high and low
4221         parts of a paired FPR.  Adjust calls to frame_set and
4222         mips_set_frame_expr.
4223         (mips_expand_prologue): Simplify due to above changes.
4224         * config/mips/mips.md:  Add splitters for 64-bit moves on 32-bit
4225         targets, replacing xisting register-only versions.
4226         (UNSPEC_STORE_DF_HIGH): New unspec.
4227         (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
4228         (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
4229         (*paradoxical_extendhidi2): Remove.
4230         (movdi_internal, movdi_internal2): Use mips_output_move.
4231         (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
4232         (movsf_internal1, movsf_internal2): Likewise.
4233         (movdf_internal1a): Likewise.  Fix length and type of f <- G case.
4234         (movdf_internal1b): Use mips_output_move.  Fix type of f <- G case.
4235         (movdf_internal2): Use mips_output_move.  Fix lengths of FPR moves.
4236         Add m <- G alternative.
4237         (load_df_low, load_df_high, store_df_low): New patterns.
4238         (movhi_internal): Use @ template instead of calling a function.
4239         Remove unnecessary 'z' alternatives.
4240         (movqi_internal): Likewise.
4241         (exception_receiver): Update call to mips_restore_gp.
4242
4243 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
4244
4245         * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
4246         (mips_delegitimize_address): Declare.
4247         * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
4248         (FIND_BASE_TERM): Define.
4249         * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
4250         (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
4251         Handle small-data addresses.
4252
4253 2003-05-05  Roger Sayle  <roger@eyesopen.com>
4254
4255         * real.c (real_powi): New function to calculate the value of
4256         a real raised to an integer power, i.e. pow(x,n) for int n.
4257         (real_sqrt): Convert to using the faster do_add, do_multiply
4258         and do_divide API for consistency with the rest of real.c.
4259         * real.h (real_powi): Prototype here.
4260         * builtins.c (fold_builtin):  Avoid local variable mode when
4261         evaluating sqrt at compile time.  Attempt to evaluate pow at
4262         compile-time, by checking for an integral exponent.
4263
4264 2003-05-05  Richard Henderson  <rth@redhat.com>
4265
4266         * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
4267
4268 2003-05-05  David O'Brien  <obrien@FreeBSD.org>
4269
4270         * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
4271         other FreeBSD ports.
4272         (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
4273         (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
4274
4275 2003-05-05  Janis Johnson  <janis187@us.ibm.com>
4276
4277         * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
4278         expanded variables.
4279         * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
4280
4281 2003-05-05  Zack Weinberg  <zack@codesourcery.com>
4282
4283         * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
4284         * varasm.c (struct varasm_status): Add deferred_constants field.
4285         (n_deferred_strings): Delete variable.
4286         (n_deferred_constants): New #define.
4287         (struct constant_descriptor_tree): Kill next and label fields.
4288         (const_hash_table, MAX_HASH_TABLE): Delete.
4289         (const_desc_htab): New static variable.
4290         (const_hash): Rename const_desc_hash, and make it fit the
4291         hashtab.h interface.
4292         (const_desc_eq): New.
4293         (const_hash_1, compare_constant): Const-ify arguments.
4294         (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
4295         SYMBOL_REFs.  Clarify comments.  Don't set desc->label.
4296         (output_constant_def): Do the lookup/insert using the
4297         hashtab.h interface.  Don't muck with n_deferred_constants or
4298         DEFERRED_CONSTANT_P here.
4299         Always call maybe_output_constant_def_contents.
4300         (maybe_output_constant_def_contents): Take a pointer to the
4301         descriptor, not the EXP and RTL separately.  Return
4302         immediately if this constant is not deferred.  Defer output of
4303         everything, except writable string constants.  Update
4304         n_deferred_constants here.
4305         (output_constant_def_contents): Now takes just one argument,
4306         an rtx.  Clear DEFERRED_CONSTANT_P here.
4307         (mark_constant_pool): Update for rename of n_deferred_strings.
4308         (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
4309
4310         (init_varasm_status): Clear p->deferred_constants.
4311         (init_varasm_once): Call htab_create_ggc for const_desc_htab.
4312
4313 2003-05-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4314
4315         * builtins.c (expand_builtin_stpcpy): Only expand when the length
4316         of the source string can be evaluated at compile-time.
4317
4318 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
4319
4320         * testsuite/gcc.c-torture/compile/simd-6.c: New.
4321
4322         * c-typeck.c (digest_init): Handle arrays of vector constants.
4323
4324 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
4325
4326         * builtins.c (expand_builtin_mempcpy): New function.
4327         (expand_builtin_stpcpy): Optimize stpcpy whose return value is
4328         ignored into strcpy no matter what arguments it has.
4329         (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
4330         expand_builtin_mempcpy.
4331
4332 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
4333
4334         * testsuite/gcc.dg/20030505.c: New.
4335
4336         * c-typeck.c (convert_for_assignment): Opaque pointers can
4337         interconvert.
4338
4339         * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
4340         (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
4341         (spe_init_builtins): Rename all pv2si_type_node to
4342         opaque_p_V2SI_type_node.
4343         Remove declaration of pv2si_type_node.
4344         (is_ev64_opaque_type): Accept opaque pointers.
4345
4346 2003-05-05  Geoffrey Keating  <geoffk@apple.com>
4347
4348         * config/rs6000/rs6000.c (validate_condition_mode): Use
4349         flag_finite_math_only.
4350         (rs6000_reverse_condition): Never return UNKNOWN; use
4351         flag_finite_math_only.
4352         (rs6000_generate_compare): Use flag_finite_math_only.
4353         (rs6000_emit_cmove): Handle UNLE.  Support UNEQ under -ffast-math.
4354         Use HONOR_* rather than flag_unsafe_math_optimizations.  Correct
4355         UNGE and GT cases.  Handle UNEQ and LTGT when ! HONOR_NANS.
4356
4357         * toplev.c (check_global_declarations): Suppress not-used warning
4358         for volatile variables.
4359
4360 2003-05-05  Olivier Hainque  <hainque@act-europe.fr>
4361
4362         * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
4363         usage of bitfield instructions for mode1 != BLKmode, only ignoring
4364         SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
4365         (store_field): Likewise.
4366
4367 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
4368
4369         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
4370         evsubifw to builtins accepting 5-bit unsigned constants.
4371         (easy_vector_constant): Return if V1DImode.  Fix typo.
4372
4373 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
4374
4375         * config/rs6000/spe.h: Revert licensing change from last patch.
4376
4377 2003-05-05  DJ Delorie  <dj@redhat.com>
4378
4379         * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
4380         before reload, but defer the split until after.
4381         * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
4382         to match.
4383
4384 2003-05-05  David Edelsohn  <edelsohn@gnu.org>
4385
4386         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
4387         * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
4388
4389 2003-05-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4390
4391         * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
4392         is defined.
4393
4394 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4395
4396         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
4397         ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
4398         ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
4399
4400         (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
4401         ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
4402         ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
4403         New.
4404
4405         * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
4406         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
4407
4408         (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
4409         BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
4410         BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
4411         BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
4412         BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
4413         BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
4414         BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
4415         BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
4416         BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
4417         BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
4418         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
4419         BUILT_IN_STRDUP): Add "nonnull" attribute.
4420
4421 2003-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4422
4423         * expr.c (store_field): Don't clobber TEMP in shift: it might be
4424         a variable.
4425         (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
4426         whose purpose is to step up the alignment.
4427         (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
4428
4429         * stor-layout.c (compute_record_mode): Relax restriction
4430         on fields crossing word boundaries forcing BLKmode.
4431
4432 2003-05-04  Neil Booth  <neil@daikokuya.co.uk>
4433
4434         * cppinit.c (cpp_create_reader, post_options): Warn about
4435         trigraphs unless explicity set or -trigraphs.
4436         * cpplex.c (warn_in_comment): New.
4437         (_cpp_process_line_notes): Better handling of -Wtrigraphs.
4438         (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
4439         * doc/cppopts.texi, doc/cpp.texi: Update.
4440
4441 2003-05-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4442
4443         * Makefile.in (LIBGCOV): Add _gcov_merge_add.
4444         * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
4445         namespace clash.
4446         (GCOV_MERGE_FUNCTIONS): New.
4447         (gcov_merge_fn): Declare.
4448         (struct gcov_ctr_info): New field "merge".
4449         (__gcov_merge_add): Declare.
4450         * coverage.c (ctr_merge_functions): New.
4451         (build_ctr_info_type, build_ctr_info_value): Initialize merge field
4452         of gcov_ctr_info type.
4453         * libgcov.c (__gcov_merge_add): New.
4454         (gcov_exit): Call a hook to merge values of counters.
4455
4456 2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
4457
4458         * toplev.h (pedwarn_with_file_and_line): Don't declare.
4459         * diagnostic.c (pedwarn_with_file_and_line): Remove.
4460
4461 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4462
4463         * varasm.c (assemble_variable): Don't use error_with_file_and_line.
4464
4465 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4466
4467         * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
4468         expand_builtin_frame_address): Update prototypes.
4469         (expand_builtin_constant_p, expand_builtin_strlen,
4470         expand_builtin_strcpy, expand_builtin_memset,
4471         expand_builtin_bzero, expand_builtin_args_info,
4472         expand_builtin_frame_address): Pass in just the argument(s)
4473         needed, not the entire expression `exp'.
4474         (expand_builtin): Update all calls to these functions.
4475
4476 2003-05-03  Richard Henderson  <rth@redhat.com>
4477
4478         * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
4479         <BUILT_IN_DWARF_SP_COLUMN>: New.
4480         * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
4481         (BUILT_IN_DWARF_SP_COLUMN): New.
4482         * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
4483         (expand_builtin_dwarf_sp_column): New.
4484         * except.h: Update to match.
4485         * unwind-dw2.c (execute_stack_op): Correct stack push typo.
4486         (execute_cfa_program): Record location expression address
4487         before extracting length.
4488         (uw_update_context_1): Install old CFA into stack pointer column.
4489         (uw_init_context_1): Set cfa_reg to stack pointer column.
4490
4491 2003-05-03  Richard Henderson  <rth@redhat.com>
4492
4493         * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
4494         return bool.
4495         (toc_relative_expr_p): Likewise.
4496         (SPE_CONST_OFFSET_OK): Move from rs6000.h.
4497         (legitimate_constant_pool_address_p): Move from rs6000.h, change
4498         into a function, downcase all users.
4499         (legitimate_small_data_p): Likewise.
4500         (legitimate_offset_address_p): Likewise.
4501         (legitimate_indexed_address_p): Likewise.
4502         (legitimate_indirect_address_p): Likewise.
4503         (legitimate_lo_sum_address_p): Likewise.
4504         (rs6000_mode_dependent_address): Likewise.
4505         * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
4506         (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
4507         LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
4508         LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
4509         LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
4510         (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
4511         (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
4512         * config/rs6000/rs6000-protos.h: Update.
4513
4514 2003-05-03  Geoffrey Keating  <geoffk@apple.com>
4515
4516         * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
4517         (REVERSE_CONDITION): Define.
4518
4519         * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
4520         to branch_positive_comparison_operator.
4521         (ccr_bit): Check that sCOND conditions are actually a positive bit.
4522         (print_operand): Remove %D substitution.
4523         (rs6000_emit_sCOND): Generate complement operation to ensure that
4524         sCOND input is a positive bit.
4525         * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
4526         same order as bCOND, and add the missing ones.  Remove the %D
4527         substitutions from the scc patterns.
4528
4529         * simplify-rtx.c (simplify_relational_operation): Add case for
4530         ! (fabs(x) < 0.0).
4531
4532 2003-05-03  Bruce Korb  <bkorb@gnu.org>
4533
4534         * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
4535         in fixincl.x
4536         * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
4537
4538 2003-05-03  Aldy Hernandez  <aldyh@redhat.com>
4539
4540         * config/rs6000/spe.h: Remove unecessary casts.  Misc cleanups.
4541
4542 2003-05-03  Zack Weinberg  <zack@codesourcery.com>
4543
4544         PR c/10604
4545         * c-common.c (warn_sign_compare): Initialize to -1.
4546         * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
4547         (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
4548         for C++ only.
4549         (c_common_post_options): Set warn_sign_compare from extra_warnings
4550         if it's still -1 at this point.
4551
4552         * toplev.c (maybe_warn_unused_parameter): New static variable.
4553         (set_Wextra): New static function.
4554         (W_options): Remove "extra".
4555         (decode_W_option): Call set_Wextra.
4556         (independent_decode_option): Likewise.
4557         (set_Wunused): Cooperate with set_Wextra in setting
4558         warn_unused_parameter.
4559         (rest_of_compilation): No need to check extra_warnings as
4560         well as warn_uninitialized.
4561
4562         * c-typeck.c (build_binary_op, build_conditional_expr):
4563         No need to check extra_warnings as well as warn_sign_compare.
4564         (internal_build_compound_expr): No need to check extra_warnings
4565         as well as warn_unused_value.
4566         * function.c (expand_function_end): No need to check extra_warnings
4567         as well as warn_unused_parameter.
4568         * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
4569         as well as warn_unused_value.
4570
4571         * doc/invoke.texi: Clarify documentation of -Wsign-compare.
4572
4573         * Makefile.in: Disable -Werror for gengtype-lex.o.
4574
4575 2003-05-03  Olivier Hainque  <hainque@act-europe.fr>
4576
4577         * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
4578         * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
4579         * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
4580         * calls.c (emit_call_1): Likewise.
4581         (expand_call): For calls initializing constant memory, replace
4582         emission of standalone mem /u clobber with function usage entry.
4583         * expr.c (emit_block_move_via_libcall): Likewise.
4584         * cse.c (count_reg_usage, case EXPR_LIST): New case.
4585         * flow.c (propagate_one_insn): Pass entire operand of
4586         CALL_INSN_FUNCTION_USAGE to mark_used_regs.
4587         * integrate.c (try_constants): For CALL_INSNs, substitute constants
4588         within the FUNCTION_USAGE also.
4589         * loop.c (prescan_loop): Note clobbers of const mem mentioned in
4590         FUNCTION_USAGE lists.
4591         * reload1.c (replace_pseudos_in): Renamed.
4592         (reload): Use it for clobbers surviving until the end of the reload.
4593
4594 2003-05-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4595
4596         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
4597         gen_lowpart on non-integer modes.
4598
4599         * stor-layout.c (place_field): When adjusting offset_align, use
4600         desired_align, not DECL_ALIGN.
4601
4602 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
4603
4604         * c-decl.c (pending_invalid_xref_file): Remove.
4605         (pending_invalid_xref_line): Remove.
4606         (pending_invalid_xref_location): New.
4607         (lookup_label): Use location_t and input_location directly.
4608         (lookup_tag): Likewise.
4609         (pending_xref_error): Likewise.
4610         (c_expand_body_1): Likewise.
4611         * c-common.c (x_expand_start_cond): Likewise.
4612         * c-semantics.c (genrtl_for_stmt): Likewise.
4613         (find_reachable_label): Likewise.
4614         * expr.c (expand_expr): Likewise.
4615         * integrate.c (output_inline_function): Likewise.
4616         * tree-inline.c (find_alloca_call): Likewise.
4617         (find_builtin_longjmp_call): Likewise.
4618         * gcc.c (input_filename): Make static.
4619
4620 2003-05-03  Richard Sandiford  <rsandifo@redhat.com>
4621
4622         * config/mips/mips.md: Fix comment typo.
4623
4624         * config/mips/mips.c (mips_integer_op): New structure.
4625         (MIPS_MAX_INTEGER_OPS): Define.
4626         (mips_const_insns): Use mips_build_integer to determine the number
4627         of instructions needed to load a CONST_INT.
4628         (move_operand): Reject compound CONST_INTs.
4629         (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
4630         (mips_move_integer): New fn.
4631         (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
4632         (mips_legitimize_move): Only legitimize constants when moving
4633         word or subword values.
4634
4635 2003-05-02  Matt Kraai  <kraai@alumni.cmu.edu>
4636
4637         * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
4638
4639 2003-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4640
4641         * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
4642         modifying it.
4643
4644 2003-05-03  Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
4645             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4646
4647         * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
4648         Hernandez, and Kazu Hirata.  Update Richard Henderson.
4649
4650 2003-05-02  Geoffrey Keating  <geoffk@apple.com>
4651
4652         * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
4653         to tentative declaration.
4654
4655         * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
4656         (SYMBOL_FLAG_SMALL_V4): Delete.
4657         * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
4658         (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
4659         (rs6000_elf_in_small_data_p): Add extra section names.  Add
4660         comment about TREE_PUBLIC test.
4661
4662         * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
4663         expand_stmt on result of expand_unreachable_stmt.
4664
4665 2003-05-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4666
4667         * doc/contrib.texi (Contributors): Add Daniel Berlin.
4668
4669 2003-05-02  David Edelsohn  <edelsohn@gnu.org>
4670
4671         * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
4672         number of automata.
4673
4674         * config/rs6000/rs6000.c (symbol_ref_operand): Check
4675         SYMBOL_REF_FUNCTION_P on AIX.
4676         (current_file_function_operand): Same.
4677         * config/rs6000/rs6000.md (call,call_value): Force non-function
4678         symbol_ref into register on AIX.
4679
4680 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
4681
4682         * calls.c (struct arg_data): Move offset, slot_offset, size and
4683         alignment_pad to struct locate_and_pad_arg_data.  Update all refs.
4684         (initialize_argument_information): Adjust call to locate_and_pad_parm.
4685         Delete alignment_pad var.  Don't calculate slot_offset here.
4686         (emit_library_call_value_1): Delete alignment_pad, offset and size
4687         vars.  Use struct locate_and_pad_arg_data instead.  Adjust refs.
4688         Adjust call to locate_and_pad_parm.  Don't tweak arg size for
4689         partial in-regs here.  Formatting fixes.
4690         * expr.h (struct locate_and_pad_arg_data): New struct.
4691         (locate_and_pad_parm): Adjust declaration.
4692         * function.c (assign_parms): Localize vars.  Use "locate" instead of
4693         other arg location vars.  Don't invoke FUNCTION_ARG or
4694         FUNCTION_INCOMING_ARG unless pretend_named is different from
4695         named_arg.  Heed MUST_PASS_IN_STACK and set up "partial" before
4696         calling locate_and_pad_parm.  Adjust locate_and_pad_parm call.
4697         Use slot_offset for stack home of reg parms.  Correct test for
4698         parm passed in memory.  Formatting fixes.
4699         (locate_and_pad_parm): Add "partial" to params.  Replace offset_ptr
4700         arg_size_ptr and alignment pad with "locate".  Set slot_offset here.
4701         Correct initial_offset_ptr handling.  Localize vars.  Always pad
4702         locate->offset even when in_regs.
4703
4704 2003-05-02  Nathan Sidwell  <nathan@codesourcery.com>
4705
4706         * Makefile.in (TREE_H): Replace location.h with input.h.
4707         (GTFILES) Remove location.h
4708         (gt-lists.h): Replace gt-location.h with gt-input.h
4709         * input.h (input_filename, input_line): Remove variables.
4710         (location_s, location_t): Move from location.h.
4711         (input_location): New.
4712         (input_filename, input_line): New #defines.
4713         * location.h: Remove.
4714         * tree.h: Replace location.h with input.h.
4715         (input_filename, input_line): Remove.
4716         * diagnostic.h: Replace location.h with input.h.
4717         * gcc.h (input_filename, input_filename_length): Remove declarations.
4718         * toplev.c (input_filename, input_line): Remove.
4719         (input_location): Define.
4720         (push_srcloc, pop_srcloc): Adjust.
4721         * diagnostic.c (diagnostic_report_current_module): Adjust.
4722
4723 2003-05-02  Nick Clifton  <nickc@redhat.com>
4724
4725         * configure.in: Add xstormy16 to list of targets that has a nop
4726         instruction and hence which can be tested to see if the
4727         assembler supports the --gdwarf2 switch.
4728         * configure: Regenerate.
4729
4730 2003-05-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4731
4732         PR target/8257
4733         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
4734         alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
4735         Avoid undefined shifts by making the shift operand unsigned.
4736
4737 2003-05-01  DJ Delorie  <dj@redhat.com>
4738
4739         * reload.c (find_reloads): Also check that all of a multi-reg
4740         value is in the class.
4741
4742 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
4743
4744         * scan.h (lineno): Revert the rename here.
4745
4746 2003-05-01  Stan Shebs  <shebs@apple.com>
4747
4748         * config/darwin.c (darwin_encode_section_info): Call
4749         default_encode_section_info.
4750
4751 2003-05-01  David Edelsohn  <edelsohn@gnu.org>
4752
4753         * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
4754         (movsi_internal1): Use new mfjmpr attribute.
4755         (movhi_internal): Same.
4756         (movqi_internal): Same.
4757         (movcc_internal1): Same.
4758         (movdi_internal64): Same.
4759         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
4760         power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
4761         * config/rs6000/40x.md: Add fpu_405.
4762         * config/rs6000/power4.md: Merge power4lsu and power4disp automata
4763         into power4misc automata.  Remove extraneous parentheses.
4764         * config/rs6000/440.md: New file.
4765         * config/rs6000/rs6000.c (processor_target_table): Add 440,
4766         440fp.  Rename 405f to 405fp.
4767         (function_arg_padding): Correct formatting.
4768         (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
4769
4770 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
4771
4772         * input.h (lineno): Rename to ...
4773         (input_line): ... here.
4774         * tree.h (lineno): Rename to ...
4775         (input_line): ... here.
4776         * scan.h (lineno): Rename to ...
4777         (input_line): ... here.
4778         * toplev.c (lineno): Rename to ...
4779         (input_line): ... here.
4780         (push_srcloc, pop_srcloc):  Rename lineno to input_line.
4781         * c-common.c (c_expand_start_cond, fname_decl): Likewise.
4782         * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
4783         store_parm_decls, c_expand_body_1): Likewise.
4784         * c-errors.c (pedwarn_c99): Likewise.
4785         * c-format.c (status_warning): Likewise.
4786         * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
4787         * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
4788         * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
4789         * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
4790         gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
4791         genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
4792         genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
4793         build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
4794         prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
4795         * coverage.c (create_coverage): Likewise.
4796         * diagnostic.c (pedwarn, sorry, error, fatal_error,
4797         internal_error, warning, diagnostic_report_current_module,
4798         inform): Likewise.
4799         * expr.c (expand_expr): Likewise.
4800         * integrate.c (expand_inline_function,
4801         output_inline_function): Likewise.
4802         * rtl-error.c (file_and_line_for_asm): Likewise.
4803         * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
4804         walk_tree): Likewise.
4805         * tree.c (make_node): Likewise.
4806         * ada, cp, f, java, objc, treelang: Likewise.
4807         * objc/objc-act.c (objc_init): Rename lineno to input_line.
4808         (build_module_descriptor, build_selector_translation_table,
4809         build_protocol_template, build_method_prototype_list_template,
4810         build_category_template, build_selector_table,
4811         build_class_template, build_super_template, build_ivar_template,
4812         build_ivar_list_template, build_method_list_template,
4813         build_method_template, add_instance_variable): Likewise.
4814
4815         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
4816         name from input_filename.
4817
4818 2003-04-30  Eric Christopher  <echristo@redhat.com>
4819             Richard Sandiford <rsandifo@redhat.com>
4820
4821         * configure: Regenerate from patches below.
4822         * combine.c (gen_lowpart_for_combine): Fix comment and add tests
4823         for all symbolic operands.
4824         * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
4825         to function.
4826         * config/mips/linux.h: Fix typo.
4827         * Merge from mips-3_4-rewrite branch:
4828
4829         2003-04-07  Richard Sandiford  <rsandifo@redhat.com>
4830
4831                 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
4832                 handling local labels when TARGET_ABICALLS.
4833
4834         2003-04-04  Richard Sandiford  <rsandifo@redhat.com>
4835
4836                 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
4837                 integer argument.
4838                 (mips_expand_call): Likewise.
4839                 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
4840                 (FIXED_REGISTERS): Clear $31 entry.
4841                 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
4842                 (EPILOGUE_USES): Define.
4843                 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
4844                 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
4845                 (override_options): Add a 'j' register class.
4846                 (mips_expand_call): Handle sibcalls
4847                 (mips_expand_epilogue): Handle epilogues for sibcalls.
4848                 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
4849                 (sibcall_epilogue): New pattern.
4850                 (call, call_value): Adjust calls to mips_expand_call.
4851                 (sibcall, sibcall_value): New expanders.
4852                 (sibcall_internal, sibcall_value_internal): New patterns.
4853                 (sibcall_value_multiple_internal): New pattern.
4854
4855         2003-03-25  Richard Sandiford  <rsandifo@redhat.com>
4856
4857                 * config/mips/mips.md (extended_mips16): New attribute.
4858                 (define_attr length): Default to 8 if extended_mips16 == yes.
4859                 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
4860                 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
4861                 (call_internal): Set extended_mips16 to yes for direct jumps.
4862                 Remove redundant mode attribute.
4863                 (call_value_internal, call_value_multiple_internal): Likewise.
4864                 (call_split): Remove redundant mode attribute.
4865                 (call_value_split, call_value_multiple_split): Likewise.
4866
4867                 * config/mips/mips.c (mips_symbol_insns): Rework.  Fix handling
4868                 of unaligned offsets.
4869
4870                 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
4871                 of SYMBOL_GENERAL.
4872
4873         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
4874
4875                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
4876                 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
4877                 for mips16 code.
4878
4879         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
4880
4881                 * config/mips/mips.h (ADDRESS_COST): Define.
4882
4883         2003-03-20  Richard Sandiford  <rsandifo@redhat.com>
4884
4885                 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
4886                 'R' to 'U'.  Make 'R' mean a single-instruction memory reference.
4887                 * config/mips/mips.md: Replace 'R' constraints with 'U'.
4888
4889         2003-03-18  Richard Sandiford  <rsandifo@redhat.com>
4890
4891                 * config/mips/mips.md (truncdisi2): Add commentary.  Use sll instead
4892                 of a two-instruction sequence.  Add register->memory alternative.
4893                 (truncdihi2, truncdiqi2): Likewise.
4894                 Rework shift/truncate instructions so that they only handle right
4895                 shifts of 32 (or more, in the case of arithmetic shifts).
4896                 Add patterns for truncate/sign-extend.
4897
4898         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
4899
4900                 * configure.in (mips*-*-*): Check for explicit relocation support.
4901                 * configure: Regenerate.
4902
4903         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
4904
4905                 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
4906                 and -mno-explicit-relocs.
4907                 (MASK_EXPLICIT_RELOCS): Define.
4908                 (TARGET_EXPLICIT_RELOCS): Use it.
4909                 (mips_split_addresses): Remove declaration.
4910                 * config/mips/mips.c (override_options): Update comment for
4911                 mips_split_addresses.  Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
4912
4913         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
4914
4915                 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
4916                 a CONST as identity.  Check the return value of gen_lowpart_common.
4917
4918         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
4919
4920                 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
4921                 references for TARGET_EXPLICIT_RELOCS.
4922                 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
4923                 !TARGET_MIPS16.
4924
4925         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
4926
4927                 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
4928                 (addsi3): Remove redundant constraints.
4929                 (addsi3_internal): Use separate register & constant alternatives.
4930                 Use a 'Q' constraint and "addiu" insn for the latter.
4931                 (adddi3_internal_3, addsi3_internal_2): Likewise.
4932
4933         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
4934
4935                 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
4936                 (mips_expand_unaligned_store): Declare.
4937                 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
4938                 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
4939                 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
4940                 (UNSPEC_ULD, UNSPEC_USD): Remove.
4941                 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
4942                 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
4943                 (extv, extzv): Use mips_expand_unaligned_load.
4944                 (insv): Use mips_expand_unaligned_store.  Use a reg_or_0_operand
4945                 predicate for operand 3.
4946                 (movsi_ulw, movsi_usw): Replace with...
4947                 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
4948                 (movdi_uld, movdi_usd): Likewise replace with...
4949                 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
4950
4951         2003-02-26  Richard Sandiford  <rsandifo@redhat.com>
4952
4953                 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
4954                 * config/mips/mips.h (LEA_REGS): New register class.
4955                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
4956                 (GR_REG_CLASS_P): Include LEA_REGS.
4957                 (DANGEROUS_FOR_LA25_P): New macro.
4958                 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
4959                 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
4960                 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
4961                 entries to LEA_REGS.
4962                 (mips_global_pic_constant_p): New function.
4963                 (override_options): Add 'e' register constraint.
4964                 (mips_secondary_reload_class): Return LEA_REGS when reloading
4965                 a dangerous constant into a class containing $25.
4966                 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
4967                 (movsi_internal): Likewise.
4968
4969         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
4970
4971                 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
4972                 * config/mips/mips.md (call_split): New insn.
4973                 (call_value_split, call_value_multiple_split): New insns.
4974                 (call_internal): Turn into a define_insn_and_split.  Split the
4975                 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
4976                 (call_value_internal, call_value_multiple_internal): Likewise.
4977
4978         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
4979
4980                 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
4981                 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
4982                 (mips_encode_section_info): Don't take symbol visibility into
4983                 account if TARGET_ABICALLS.  Add more commentary.
4984                 * config/mips/mips.md: Add commentary above reloc constants.
4985
4986         2003-02-12  Richard Sandiford  <rsandifo@redhat.com>
4987
4988                 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
4989                 from mips_legitimize_move.  Legitimize constant pool references.
4990                 (mips_legitimize_move): Call mips_legitimize_const_move.  Attach
4991                 a REG_EQUAL note to the last instruction.
4992
4993         2003-02-11  Richard Sandiford  <rsandifo@redhat.com>
4994
4995                 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
4996                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
4997                 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
4998                 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
4999                 * config/mips/mips.md (UNSPEC_HIGH): New constant.
5000                 (UNSPEC_RELOC_GPREL16): Rename to...
5001                 (RELOC_GPREL16): ...this.
5002                 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
5003                 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
5004                 (macro_calls): New attribute.
5005                 (length): Use it to set the default length of calls.  Don't allow
5006                 calls to have delay slots if macro_calls is "yes".
5007                 (luisi, luidi): New patterns.
5008                 (lowsi, lowdi): Use '%R' to print the relocation.
5009                 (lowdi_extend): Remove.
5010                 (loadgp): Remove mode from operand 0.  Use '%0' instead of '%a0'.
5011                 (call_internal): Merge alternatives.  Always use "jal".
5012                 (call_value_internal, call_value_multiple_internal): Likewise.
5013                 (reloc_gprel16): Remove.
5014                 * config/mips/mips.c (mips_got_alias_set): New variable.
5015                 (mips_classify_constant): Handle the new relocation constants.
5016                 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
5017                 (mips_symbolic_address_p): Return false if generating explicit relocs.
5018                 Otherwise allow local PIC symbols to have an offset.
5019                 (mips_splittable_symbol_p): New function.
5020                 (mips_classify_address): Use it to check whether a LO_SUM is valid.
5021                 (mips_const_insns): Always accept HIGH.
5022                 (call_insn_operand): Don't accept global symbols if using explicit
5023                 relocs.
5024                 (move_operand): Don't accept HIGH when generating PIC.
5025                 (mips_reloc, mips_lui_reloc): New functions.
5026                 (mips_force_temporary): Remove MODE argument.  Expect VALUE to
5027                 be a valid right-hand-side for a SET pattern.
5028                 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
5029                 (mips_emit_high): New function.
5030                 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
5031                 case.  Use mips_splittable_symbol_p to check whether a LO_SUM
5032                 address should be used.  Use mips_emit_high to generate the
5033                 high part of such an address.  Adjust the global symbol + offset
5034                 case to match the change to mips_force_temprorary.
5035                 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
5036                 If generating explicit-reloc PIC, load the address of global
5037                 symbols from the GOT.  Use mips_emit_high to emit the high part
5038                 of an address.
5039                 (mips_simplify_dwarf_addr): New function.
5040                 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
5041                 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
5042                 (mips_expand_call): Load the addresses of global functions using
5043                 %call* relocs if generating explicit-reloc PIC.  Don't generate
5044                 an exception_receiver pattern.
5045                 (override_options): Initialize mips_got_alias_set.
5046                 (print_relocation): Remove in favour of...
5047                 (mips_reloc_string): ...this new function.
5048                 (print_operand): Handle '%R'.  Use mips_reloc_string.
5049                 (print_operand_address): Use print_operand to print the symbolic
5050                 part of a LO_SUM address.
5051                 (mips_output_function_prologue): Use .cprestore, reverting last patch.
5052                 (mips_encode_section_info): Factor out DECL_RTL accesses.  Reverse
5053                 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
5054                 for local symbols.
5055
5056         2003-02-02  Eric Christopher  <echristo@redhat.com>
5057
5058                 * config/mips/mips.c (mips_sign_extend): Remove.
5059                 * config/mips/mips-protos.h: Ditto.
5060                 * config/mips/mips.md (movdi_internal2_extend): Remove.
5061                 (extendsidi2): Fix mode of convert_memory_address.
5062
5063         2003-01-24  Eric Christopher  <echristo@redhat.com>
5064
5065                 * config/mips/mips.md: Rewrite zero_extend* and extend*
5066                 patterns. Use explicit instructions and split after reload
5067                 for register extensions.
5068                 (ashlsi3_internal1_extend): New combiner pattern for
5069                 shift and extend combinations.
5070                 * config/mips/mips.h: Change Pmode back to ptr_mode
5071                 for performance enhancement.
5072                 * combine.c (expand_compound_operation): Make sure
5073                 that zero_extend operation is profitable.
5074
5075         2003-01-14  Richard Sandiford  <rsandifo@redhat.com>
5076
5077                 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
5078                 addresses depend on ptr_mode rather than Pmode.
5079                 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
5080                 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
5081                 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
5082                 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
5083                 * config/mips/mips.md (tablejump): Likewise.  Remove Pmode
5084                 condition for selecting cpaddsi or cpadddi: use cpadd instead.
5085                 (tablejump_internal1): Remove condition.
5086                 (tablejump_internal2): Change condition to TARGET_64BIT.
5087                 (cpaddsi): Rename to...
5088                 (cpadd): ...this.
5089                 (cpadddi): Remove.
5090
5091         2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
5092
5093                 * config/mips/mips-protos.h (mips16_constant_after_function_p,
5094                 mips_address_cost, mips_check_split, double_memory_operand,
5095                 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
5096                 pic_address_needs_scratch, symbolic_operand): Remove declarations.
5097                 (mips_legitimate_address_p): Return bool.
5098                 (mips_address_insns, mips_fetch_insns, mips_const_insns,
5099                 mips_legitimize_address, mips_legitimize_move,
5100                 mips_expand_call): Declare.
5101                 (mips_return_addr): Move outside #ifdef RTX_CODE.
5102
5103                 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
5104                 (PIC_FN_ADDR_REG): New reg_class.
5105                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
5106                 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
5107                 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
5108                 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
5109                 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
5110                 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
5111                 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
5112                 (LEGITIMATE_PIC_OPERAND): Undefine.
5113                 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
5114                 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
5115                 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
5116                 (FUNCTION_MODE): Change to SImode.
5117                 (CONST_COSTS): Use mips_const_insns to calculate the cost of
5118                 most constants.  Treat const_artih_operands specially if they
5119                 occur in a PLUS or MINUS.
5120                 (CONSTANT_POOL_COST): New macro.
5121                 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
5122                 Add LO_SUM handling.
5123                 (ADDRESS_COST): Undefine.
5124                 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
5125                 Add CONST to the list of codes for arith_operand.  Add LABEL_REF
5126                 to call_insn_operand and remove CONST_INT.
5127
5128                 * config/mips/mips.c: Include integrate.h.
5129                 (SINGLE_WORD_MODE_P): New macro.
5130                 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
5131                 (mips_constant_info, mips_address_info): New structs.
5132                 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
5133                 (mips_classify_constant, mips_classify_symbol,
5134                 mips_valid_base_register_p, mips_symbolic_address_p,
5135                 mips_classify_address, mips_symbol_insns,
5136                 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
5137                 mips_fetch_insns, mips_force_temporary, mips_add_offset,
5138                 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
5139                 mips_print_relocation): New functions.
5140                 (const_arith_operand): New operand predicate.
5141                 (arith_operand): Use it.
5142                 (mips_const_double_ok, mips16_simple_memory_operand,
5143                 simple_memory_operand, double_memory_operand, mips_check_split,
5144                 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
5145                 mips16_gp_offset_p, mips16_output_gp_offset,
5146                 mips16_constant_after_function_p, mips16_constant): Remove.
5147                 (call_insn_operand): Be more fussy about symbolic constants.
5148                 Use register_operand.
5149                 (move_operand): Use mips_symbolic_address_p to check symbolic
5150                 operands and general_operand to check the rest.
5151                 (symbolic_operand): Use mips_classify_constant.
5152                 (mips_legitimate_address_p): Use mips_classify_address.
5153                 (mips_move_1word): Combine handling of symbolic addresses.
5154                 Remove special treatment of gp-relative loads for TARGET_MIPS16.
5155                 (move_move_2words): Likewise.  Assume addresses are offsettable
5156                 if they need to refer to more than one word.  Add HIGH handling.
5157                 (mips_restore_gp): Use ptr_mode for the GP save slot.
5158                 (mips_expand_call): New function, combining the old mips.md
5159                 call and call_internal define_expands.  If the address isn't
5160                 a call_insn_operand, force it into a register.  For SVR4 PIC,
5161                 emit an exception_receiver instruction after the call.
5162                 (override_options): Only override flag_pic for TARGET_ABICALLS
5163                 if it is currently zero.  Allow mips_split_addresses when
5164                 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
5165                 Add new register class letter, 'c'.
5166                 (print_operand): Use mips_classify_constant for constant operands.
5167                 (print_operand_address): Use mips_classify_address.
5168                 (mips_output_function_prologue): Don't use .cprestore.
5169                 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
5170                 via the frame pointer if current_function_calls_eh_return.
5171                 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
5172                 to mark whether a symbol is local or global.
5173                 (build_mips16_call_stub): Expect the address of the function rather
5174                 than a MEM reference to it.  Update call generation sequences.
5175                 (mips16_optimize_gp): Remove Pmode checks.  Temporarily disable
5176                 small-data adjustments.
5177
5178                 * config/mips/mips.md: Remove 'R'/'m' memory distinction.  Use default
5179                 length for loads and stores.
5180                 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
5181                 (define_attr type): Add const and prefetch.
5182                 (define_attr length): Use mips_const_insns for const instructions.
5183                 Use mips_fetch_insns for load and store instructions.
5184                 (define_attr single_insn): New.
5185                 (define_attr can_delay): Use it.
5186                 (define_attr abicalls): Remove.
5187                 (define_delay): Use can_delay.  Always allow calls to have delay slots.
5188                 (addsi3_internal_2): Add 'Q' constraint.
5189                 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
5190                 (high): Remove.
5191                 (lowsi): Renamed from low.
5192                 (lowdi): New pattern.
5193                 (movdi, movsi): Use mips_legitimize_move.  Remove define_split.
5194                 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
5195                 (loadgp): Change operand 0 to an immediate_operand.
5196                 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
5197                 beforehand.
5198                 (cpaddsi, cpadddi): New patterns.
5199                 (tablejump_internal3, tablejump_internal4): Remove define_expands
5200                 and associated define_splits.
5201                 (call, call_value): Use mips_expand_call.
5202                 (call_internal): New, replacing all existing call_internal* insns.
5203                 (call_value_internal): Likewise call_value_internal*.
5204                 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
5205                 (untyped_call): Remove if (operands[0]) magic.
5206                 (prefetch_si_address, prefetch_si): Change type to "prefetch".
5207                 (prefetch_di_address, prefetch_di): Likewise.
5208                 (leasi, leadi): Remove.
5209                 (reloc_gprel16): New.
5210
5211                 * config/mips/5400.md (ir_vr54_hilo): Include const type.
5212                 * config/mips/5500.md (ir_vr55_hilo): Likewise.
5213                 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
5214
5215         2003-01-08  Eric Christopher  <echristo@redhat.com>
5216
5217                 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
5218                 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
5219                 configure check for libgloss.
5220                 * config/mips/elf64.h: Ditto.
5221                 * config/mips/mips.c: Remove ABI_MEABI.
5222                 * config/mips/mips.h: Ditto.
5223
5224         2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
5225
5226                 Fix merge fallout.
5227                 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
5228                 (muldi3_internal): Remove outdated comment.
5229                 (*muls_di, *umuls_di): Fix comment and 64-bitness.
5230                 (*smsac_di, *umsac_di): Likewise.  Reformat.
5231                 (umulsi3_highpart): Minor formatting tweaks.
5232                 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.  Remove
5233                 redundant scratch operand.  Minor formatting tweak.
5234                 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
5235                 (umulsi3_highpart_neg_mulhi_internal): Likewise.  Fix asm template.
5236                 (smulsi3_highpart): As for the unsigned version.
5237                 (smulsi3_highpart_internal): Likewise.
5238                 (smulsi3_highpart_mulhi_internal): Likewise.
5239                 (smulsi3_highpart_neg_mulhi_internal): Likewise.
5240                 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
5241                 (*smul_acc_di): Remove duplicated pattern.
5242                 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
5243                 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
5244                 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
5245
5246         2002-10-22  Eric Christopher  <echristo@redhat.com>
5247
5248                 * config/mips/mips-protos.h (mips_return_addr): New.
5249                 * config/mips/mips.c (mips_return_addr): New.
5250                 (movdi_operand): Remove.
5251                 (se_register_operand): Ditto.
5252                 (se_reg_or_0_operand): Ditto.
5253                 (se_uns_arith_operand): Ditto.
5254                 (se_arith_operand): Ditto.
5255                 (se_nonmemory_operand): Ditto.
5256                 (extend_operator): Ditto.
5257                 (highpart_shift_operator): Ditto.
5258                 (mips_initial_elimination_offset): Remove return address pointer
5259                 elimination.
5260                 (mips_reg_names): Remove $ra.
5261                 (mips_regno_to_class): Ditto.
5262                 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
5263                 and TARGET_64BIT.
5264                 (POINTER_BOUNDARY): Remove.
5265                 (POINTERS_EXTEND_UNSIGNED): Define to 0.
5266                 (PROMOTE_MODE): Promote to Pmode.
5267                 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
5268                 (Pmode): Define to TARGET_64BIT.
5269                 (FUNCTION_MODE): Define as Pmode.
5270                 (mips_args): Remove deleted functions.
5271                 (SIZE_TYPE): Depend on POINTER_SIZE.
5272                 (PTRDIFF_TYPE): Ditto.
5273                 (FIXED_REGISTERS): Fix extra registers.
5274                 (CALL_USED_REGISTERS): Ditto.
5275                 (CALL_REALLY_USED_REGISTERS): Ditto.
5276                 (RAP_REG_NUM): Remove.
5277                 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
5278                 (RETURN_ADDR_RTX): Define to mips_return_addr.
5279                 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
5280                 (CAN_ELIMINATE): Ditto.
5281                 * config/mips/mips.md: For DImode patterns, take into account
5282                 deletions above. Split mulsidi patterns into sign_extend and
5283                 zero_extend.
5284
5285         2002-10-16  Richard Sandiford  <rsandifo@redhat.com>
5286                     Michael Meissner  <meissner@redhat.com>
5287
5288                 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
5289                 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
5290                 mop up unnecessarly moves through LO.
5291                 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
5292                 (*macc): New pattern for ISA_HAS_MACC.  Add define_peephole2s to
5293                 change mtlo/macc sequences into mul/add sequences when a three-
5294                 address mul is available.
5295                 (*macc2): New pattern.  Add a define_peephole2 to generate it.
5296                 (*mul_sub_si): Fix contraint for operand 5.
5297                 (*muls): Use in 32-bit code as well.
5298                 (*msac): Likewise.  Use msub instead of msac in vr5500 code
5299                 if the destination is LO.  Remove duplicate define_split.
5300                 (*muls_di): Use only in 32-bit code.  Adjust rtl accordingly.
5301                 (*msac_di): Likewise.  Fix formatting.
5302                 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
5303                 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
5304                 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
5305                 (*xmulsi3_neg_highpart_mulhi): Likewise.
5306                 (*mul_acc_64bit_di): Remove.
5307                 (*mul_acc_di): Use only in 32-bit code.  Handle ISA_HAS_MACC as well.
5308
5309         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
5310
5311                 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
5312                 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
5313                 (MULTILIB_DIRNAMES): Remove long32.
5314                 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
5315                 (MULTILIB_REDUNDANT_DIRS): Remove.
5316
5317         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
5318
5319                 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
5320                 * gcc.c (driver_self_specs): New variable.
5321                 (do_self_spec): New function.
5322                 (main): Use it to process driver_self_specs.
5323
5324         2002-10-09  Richard Sandiford  <rsandifo@redhat.com>
5325
5326                 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
5327                 Remove DImode define_split for !TARGET_64BIT.
5328                 (anddi3): Remove !TARGET_64BIT support from here as well.
5329                 Change operand 2's predicate to se_uns_arith_operand.
5330                 Add constant alternatives to define_insn.
5331                 (iordi3, xordi3, *nordi3): Likewise.
5332                 (anddi3_internal1, xordi3_immed): Remove.
5333
5334         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
5335
5336                 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
5337                 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
5338                 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
5339                 * config/mips/mips.md: Apply same renaming here.
5340
5341         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
5342
5343                 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
5344                 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
5345                 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
5346                 * config/mips/mips.md (define_attr cpu): Remove r4320.
5347                 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
5348
5349         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
5350
5351                 * config/mips/mips.c (mips16_strings): New variable.
5352                 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
5353                 symbol in mips16_strings.  Free the list.
5354                 (mips_encode_section_info): Keep track of local strings.
5355
5356         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
5357
5358                 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
5359                 (sordered_df, sordered_sf): Remove.
5360                 * config/mips/mips.c (get_float_compare_codes): New fn.
5361                 (gen_int_relational, gen_conditional_move): Use it.
5362
5363         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
5364
5365                 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
5366                 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
5367                 * config/mips/mips.c (fcc_register_operand): New function.
5368                 (mips_emit_fcc_reload): New function, extracted from reload_incc.
5369                 (override_options): Allow TFmode values in float registers
5370                 if ISA_HAS_8CC.
5371                 * cnfig/mips/mips.md (reload_incc): Change destination prediate
5372                 to fcc_register_operand.  Remove misleading source constraint.
5373                 Use mips_emit_fcc_reload.
5374                 (reload_outcc): Duplicate reload_incc.
5375
5376
5377 2003-04-30  Diego Novillo  <dnovillo@redhat.com>
5378
5379         * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
5380
5381 2003-04-30  Geoffrey Keating  <geoffk@apple.com>
5382
5383         * tree-inline.c (inlinable_function_p): Back out last change, it's
5384         unnecessary.
5385
5386 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
5387
5388         * ggc-page.c (TREE_EXP_SIZE): Define.
5389         (extra_order_size_table): New entry for expr trees with
5390         two operands.
5391
5392 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
5393
5394         * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
5395         (c_expand_start_cond): Adjust.
5396         (c_expand_end_cond): Don't use warning_with_file_and_file.
5397         (shadow_warning): Likewise.
5398
5399 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
5400
5401         * tree.h (DECL_POINTER_DEPTH): Remove.
5402         (struct tree_decl): Remove pointer_depth.
5403
5404 2003-04-30  Janis Johnson  <janis187@us.ibm.com>
5405
5406         * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
5407         * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
5408         (rs6000_xcoff_encode_section_info): Remove.
5409         (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
5410         (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
5411         (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
5412         Use SYMBOL_REF_FLAGS.
5413         (rs6000_elf_encode_section_info): Call default_encode_section_info for
5414         generic flags, use SYMBOL_REF_FLAGS; code cleanups.
5415         * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
5416         (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
5417         * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
5418         (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
5419
5420 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
5421
5422         * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
5423
5424 2003-04-30  Andreas Schwab  <schwab@suse.de>
5425
5426         * doc/extend.texi (Other Builtins): Enclose multiple word data
5427         type in braces for @deftypefn.
5428
5429 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5430
5431         * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
5432
5433         * doc/install.texi (--enable-threads): Document "gnat" option.
5434
5435 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
5436
5437         * diagnostic.h (output_formatted_scalar): Tweak.
5438         * diagnostic.c (output_long_decimal): Likewise.
5439         (output_unsigned_decimal): Likewise.
5440         (output_long_unsigned_decimal): Likewise.
5441         (output_octal): Likewise.
5442         (output_long_octal): Likewise.
5443         (output_hexadecimal): Likewise.
5444         (output_long_hexadecimal): Likewise.
5445         (output_pointer): New function.
5446         (output_format): Use it.  Recognize "%p" format specifier.
5447
5448 2003-04-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5449
5450         * function.c (purge_addressof_1): Postpone insn in fewer cases.
5451
5452 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
5453
5454         * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
5455         call abort() after running out of stack space.
5456
5457         * c-typeck.c (function_types_compatible_p): Ignore incompatible
5458         'volatile' qualifiers on a function's return type in GNU mode.
5459
5460 2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
5461
5462         * expr.c (emit_group_load): Dump parallels of simd types to
5463         memory.
5464
5465 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5466
5467         * genautomata.c (add_vect): Check undefined value for range type
5468         too.
5469
5470 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
5471
5472         * configure.in:  More general test for cmp --ignore-initial.
5473         * configure:  Regenerate.
5474
5475 2003-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5476
5477         * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
5478         (layout_decl, place_field): Likewise.
5479         Also make minor type and whitespace changes.
5480
5481         * tree.c (save_expr): Don't fold a COMPONENT_REF.
5482
5483 2003-04-29  Olivier Hainque <hainque@act-europe.fr>
5484
5485         * calls.c (expand_call): When modes of target and valreg match, force
5486         sibcall failure when target is a MEM.
5487
5488 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
5489
5490         * tree-inline.c (inlinable_function_p): Don't support inlining
5491         functions using varargs.
5492
5493         * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
5494
5495         * dwarf2out.c (output_call_frame_info): No need to output EH
5496         unwind information if all_throwers_are_sibcalls.
5497
5498         * c-semantics.c (expand_unreachable_stmt): Return a tree.
5499         (expand_stmt): Update for change to expand_unreachable_stmt.
5500         (expand_unreachable_if_stmt): Likewise.
5501
5502         * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
5503
5504 2003-04-29  Jason Merrill  <jason@redhat.com>
5505
5506         PR middle-end/10336
5507         * jump.c (never_reached_warning): Really stop looking if we reach
5508         the beginning of the function.
5509
5510 2003-04-29  Bob Wilson  <bob.wilson@acm.org>
5511
5512         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
5513         Remove redundant macros.
5514         (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
5515         (LOCAL_LABEL_PREFIX): Define unconditionally.
5516         (NO_DOT_IN_LABEL): Clarify comment.
5517         * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
5518         definition to "long int".
5519
5520 2003-04-29  Alexander Kabaev  <kan@FreeBSD.ORG>
5521
5522         bootstrap/10452
5523         * gengtype-yacc.y: Improve portability.
5524
5525 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
5526
5527         * config.gcc: Install obsolete target list for GCC 3.3.
5528         * doc/install.texi: Mention in specific-target instructions
5529         that certain configurations are deprecated.
5530
5531 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
5532
5533         * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
5534
5535 2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
5536
5537         * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
5538         * gcc.c (display_help): Likewise.
5539         * toplev.c (f_options): Likewise.
5540         * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
5541         * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
5542         * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
5543         * config/s390/s390.h (TARGET_SWITCHES): Likewise.
5544         * config/v850/v850.h (TARGET_SWITCHES): Likewise.
5545
5546 2003-04-29  J"orn Rennecke <joern.rennecke@superh.com>
5547
5548         * varasm.c (default_assemble_visibility): Use assemble_name.
5549
5550 2003-04-29  David O'Brien  <obrien@FreeBSD.org>
5551
5552         * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
5553         * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
5554         (SIZE_TYPE): New macro.
5555         * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
5556         (SET_ASM_OP): New macro.
5557         (HANDLE_SYSV_PRAGMA): New macro.
5558         (ASM_WEAKEN_LABEL): New macro.
5559
5560 2003-04-28  Mark Mitchell  <mark@codesourcery.com>
5561
5562         PR c++/10180
5563         * tree-inline.c (expand_call_inline): Call push_srcloc when
5564         encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.
5565
5566 2003-04-28  Mike Stump  <mrs@apple.com>
5567
5568         * gdbinit.in: Update to reflect new identifier structure.
5569
5570 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
5571
5572         * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
5573         (struct tree_int_cst, struct tree_real_cst, struct tree_string,
5574         struct tree_complex, struct tree_vector): Remove RTL field.
5575         (CONSTRUCTOR_ELTS): Use elt 0.
5576         * tree.def (CONSTRUCTOR): Delete first of its two operands.
5577         * varasm.c (output_constant_def): Remove early exit if
5578         TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
5579         (decode_addr_const): Don't mention TREE_CST_RTL in comment.
5580         * target.h (select_section): Don't mention TREE_CST_RTL in comment.
5581         * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
5582
5583 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
5584
5585         * c-decl.c (finish_decl): When prototype with asmspec is found
5586         for built-in, adjust built_in_decls as well as expr.c decls.
5587         * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
5588         (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
5589         * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
5590
5591 2003-04-28  Richard Henderson  <rth@redhat.com>
5592
5593         * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
5594         * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
5595         integral constant mult operand.
5596         (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
5597         (const_smulsi3_highpart_v8plus): Likewise.
5598         (const_smulsi3_highpart): Likewise.
5599         (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
5600         (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
5601         (const_umulsi3_highpart_v8plus): Likewise.
5602         (const_umulsi3_highpart): Likewise.
5603
5604 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
5605
5606         * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
5607         Define as 1.
5608
5609 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
5610
5611         * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
5612
5613 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
5614
5615         * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
5616         * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
5617         * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
5618         functions.
5619         (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
5620
5621 2003-04-28  Nick Clifton  <nickc@redhat.com>
5622
5623         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
5624
5625 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
5626
5627         * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
5628         output_constant_def, use its result instead of TREE_CST_RTL (exp).
5629         Can assume it has the form (mem (symbol_ref ".LCxxx")).
5630         (expand_expr <COMPONENT_REF>): Can always just extract the
5631         relevant field of a CONSTRUCTOR.
5632         (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
5633         ARRAY_RANGE_REF>): Make control flow explicit.
5634         * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
5635         an INTEGER_CST.
5636
5637 2003-04-27  Kazu Hirata  <kazu@cs.umass.edu>
5638
5639         * reload1.c (reg_set_luid): Fix a comment typo.
5640
5641 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
5642
5643         * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
5644         struct deferred_string, const_str_htab): Kill.
5645         (n_deferred_strings): New static variable.
5646         (build_constant_desc): Set SYMBOL_REF_DECL of the new
5647         symbol_ref to point to the constant.
5648         (output_constant_def): When a deferred string is forced out,
5649         just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
5650         (mark_constant): Likewise.
5651         (maybe_output_constant_def_contents): When deferring a string
5652         constant, just set STRING_POOL_ADDRESS_P and increment
5653         n_deferred_strings.
5654         (mark_constant_pool): Check n_deferred_strings, not the size
5655         of const_str_htab.
5656         (init_varasm_once): No need to create const_str_htab.
5657
5658         * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
5659         SYMBOL_REF_DECL points to a constant.
5660
5661 2003-04-26  Zack Weinberg  <zack@codesourcery.com>
5662
5663         * varasm.c (output_constant_def): Split out two new static
5664         functions, build_constant_desc and maybe_output_constant_def_contents.
5665         Restructure for comprehensibility.  Don't call
5666         output_addressed_constants.  Treat defstr being non-NULL for
5667         STRING_POOL_ADDRESS_P constants as an invariant.
5668         (struct deferred_string): Remove labelno field.
5669         (output_constant_def_contents): Kill labelno argument. Call
5670         output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
5671         asm_out.internal_label.
5672         (mark_constant): Update call to output_constant_def_contents.
5673         Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
5674         constants as an invariant.
5675
5676 2003-04-26  Richard Henderson  <rth@redhat.com>
5677
5678         * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
5679         (ix86_expand_call, ix86_rtx_consts): Likewise.
5680
5681 2003-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5682
5683         * doc/md.texi (cmpstr): Document additional restrictions.
5684
5685 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
5686
5687         * flags.h (time_report): Remove.
5688         * timevar.c (timevar_enable): New.
5689         (TIMEVAR_ENABLE): Remove, use timevar_enable.
5690         (timevar_init): Rename from init_timevar.
5691         * timevar.h (timevar_init): Rename from init_timevar.
5692         * toplev.c (time_report): Make static.
5693         (do_compile): Conditionally call init_timevar first.
5694         (preprocess_options): Move some code to do_compile.
5695
5696 2003-04-26  Stephane Carrez  <stcarrez@nerim.fr>
5697
5698         * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
5699
5700 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
5701
5702         * _cpp_lex_direct: Remove pointless code.
5703
5704 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
5705
5706         * doc/extend.texi (Function Attributes): Document "near" and "far"
5707         for 68HC11 and 68HC12.
5708
5709 2003-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5710
5711         * expr.c (store_field): When making temporary for store, don't
5712         make it TYPE_QUAL_CONST.
5713
5714 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
5715
5716         * toplev.c (read_integral_parameter):  Use "argument" in error
5717         message to distinguish it from actual invalid options.
5718
5719 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
5720
5721         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
5722         addition of __PIC__ and __pic__ macros.
5723         * config/xtensa/xtensa.h: Clean up indentation.
5724
5725 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
5726
5727         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
5728         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
5729         (SUBTARGET_CPP_SPEC): Define.
5730         (LIB_SPEC): Delete.
5731         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
5732         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
5733         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
5734         Define.
5735         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5736         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
5737
5738 2003-04-25  H.J. Lu <hjl@gnu.org>
5739
5740         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
5741         for return mode.
5742         (ia64_expand_builtin): Set rmode to SImode for
5743         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
5744         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
5745         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
5746         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
5747
5748 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
5749
5750         * configure.in (make_compare_target):  Test for GNU cmp and set this
5751         variable appropriately.
5752         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
5753         compare4-lean): Rename actual targets to slowcompare*.  New compare*
5754         targets depend on names based on make_compare_target.
5755         * configure:  Regenerated.
5756
5757 2003-04-25  Richard Henderson  <rth@redhat.com>
5758
5759         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
5760         to clobber ar.pfs and ar.unat.
5761         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
5762         fix test for spilling ar.pfs to the stack.
5763
5764 2003-04-25  Richard Henderson  <rth@redhat.com>
5765
5766         PR opt/10315
5767         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
5768         checks during reload; use validize_mem instead of adjust_address.
5769
5770 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
5771
5772         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
5773         return values from recog_memoized().
5774
5775 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5776
5777         PR opt/8705
5778         * gcse.c (try_replace_reg): On a successful substitution of a constant
5779         into a single set, try to simplify the source of the set.
5780         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
5781         constant source.
5782
5783 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
5784
5785         * cpplex.c (cpp_token_len): Tighten up.
5786         (cpp_token_as_text): Need extra byte now.
5787         * cpplib.c (glue_header_name): Need extra 2 bytes.
5788         * cppmacro.c (cpp_macro_definition): Need extra byte.
5789
5790 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
5791
5792         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
5793         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
5794         where they might be not present. Use their _sp64 equivalent
5795         instead.
5796
5797 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
5798
5799         * i386.md (cvtsi2sdq): Fix typo in previous patch.
5800
5801 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
5802
5803         * configure.in: Check whether mbstowcs works.
5804         * configure, config.in: Regenerate.
5805         * intl.c: Use HAVE_WORKING_MBSTOWCS.
5806
5807 2003-04-24  H.J. Lu <hjl@gnu.org>
5808
5809         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
5810         for __sync_bool_compare_and_swap_di for int return type.
5811
5812         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
5813         Change return type to int.
5814         (__sync_bool_compare_and_swap): Likewise.
5815
5816 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
5817
5818         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
5819         looking for fallthru edge.
5820
5821         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
5822         Fix.
5823         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
5824         athlon-fvector): New.
5825         (athlon_*): Revisit to match new optimization guide.
5826         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
5827         * i386.md (cvt??2?? patterns): Fix modes.
5828         (fistp patterns): Set modes.
5829
5830         Accidentaly commited with my earlier reload patch:
5831         PR c/10308
5832         * reload.c (find_reloads_address_1): Reload plus at the place of
5833         index register.
5834
5835 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
5836
5837         New GCOV_TAG_FUNCTION layout
5838         * coverage.c (struct function_list): Replace name with ident.
5839         (struct counts_entry): Likewise.
5840         (fn_ident): New.
5841         (htab_counts_entry_hash, htab_counts_entry_eq,
5842         htab_counts_entry_del): Adjust.
5843         (reads_count_file, get_coverage_counts,
5844         coverage_begin_output, coverage_end_function): Adjust.
5845         (build_fn_info_type, build_fn_info_value): Likewise.
5846         * gcov-dump.c (tag_function): Adjust.
5847         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
5848         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
5849         * gcov.c (struct function_info): Add ident.
5850         (read_graph_file, read_count_file): Adjust.
5851         * libgcov.c (gcov_exit): Adjust.
5852
5853 2003-04-23  Richard Henderson  <rth@redhat.com>
5854
5855         PR opt/8300
5856         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
5857         after initialize_uninitialized_subregs; update reg info assuming
5858         new pseudos were created.
5859
5860 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
5861
5862         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
5863         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
5864         (lex_string): Take cpp_string with full spelling.
5865         (cb_ident): Update.
5866         (c_lex): Update diagnostics.
5867         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
5868         (create_literal): New.
5869         (lex_string): Unterminated literals have type CPP_OTHER.
5870         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
5871         for CPP_OTHER.
5872         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
5873         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
5874         * cpplib.c (parse_include, do_line, do_linemarker,
5875         destringize_and_run): Update for token storing full spelling.
5876         * cpplib.h: Update token spelling types.
5877         * cppmacro.c (stringify_arg, check_trad_stringification):
5878         Update for token storing full spelling.
5879
5880 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
5881
5882         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
5883
5884 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
5885
5886         * arm.h (TARGET_OPTIONS): Add value field.
5887
5888 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
5889
5890         * doc/extend.texi: Remove duplicate 2003 copyright date.
5891
5892 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
5893
5894         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
5895         (libgcov.a): Depends on LIBGCC_DEPS.
5896         * basic-block.h (profile_info): Moved here from coverage.h. Made
5897         a pointer.
5898         * coverage.c (struct function_list): Fixed array of counter types.
5899         (struct counts_entry): Keyed by counter type, contains summary.
5900         (profile_info): Moved to profile.c.
5901         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
5902         vars.
5903         (profiler_label): Remove.
5904         (ctr_labels): New.
5905         (set_purpose, label_for_tag, build_counter_section_fields,
5906         build_counter_section_value, build_counter_section_data_fields,
5907         build_counter_section_data_values, build_function_info_fields,
5908         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
5909         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
5910         build_ctr_info_value, build_gcov_info): New.
5911         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
5912         (reads_counts_file): Adjust.
5913         (get_coverage_counts): Takes counter number. Add summary
5914         parameter. Adjust.
5915         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
5916         create counter array labels.
5917         (coverage_end_function): Adjust.
5918         (create_coverage): Adjust.
5919         (find_counters_section): Remove.
5920         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
5921         (struct section_info, struct profile_info): Remove.
5922         (profile_info): Moved to basic-block.h.
5923         (coverage_counter_ref): Takes a counter number.
5924         (get_coverage_counts): Takes a counter number. Added summary
5925         parameter.
5926         (find_counters_section): Remove.
5927         * gcov-dump.c (tag_arc_counts): Rename to ...
5928         (tag_counters): ... here. Adjust.
5929         (tag_table): Move tag_counters to 3rd entry. Remove
5930         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
5931         (dump_file): Check for counter tag values here.
5932         (tag_summary): Adjust.
5933         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
5934         * gcov-io.h (GCOV_LOCKED): New.
5935         (GCOV_TAG_ARC_COUNTS): Rename to ...
5936         (GCOV_TAG_COUNTS_BASE): ... here.
5937         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
5938         Remove.
5939         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
5940         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
5941         GCOV_TAG_IS_COUNTER): New.
5942         (struct gcov_ctr_summary): New.
5943         (struct gcov_summary): Adjust.
5944         (struct gcov_counter_section): Remove.
5945         struct gcov_counter_section_data): Remove.
5946         (struct gcov_function_info): Rename to ...
5947         (struct gcov_fn_info): ... here. Adjust.
5948         (struct gcov_ctr_info): New.
5949         (struct gcov_info): Adjust.
5950         * gcov.c (read_count_file): Adjust.
5951         (output_lines): Adjust.
5952         * libgcov.c (gcov_exit): Adjust.
5953         (__gcov_flush): Adjust.
5954         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
5955         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
5956         probably_never_executed_bb_p, compute_frequency_function): Adjust
5957         profile_info use.
5958         * profile.c (struct counts_entry): Remove.
5959         (profile_info): Define here.
5960         (get_exec_counts): Adjust get_coverage_counts call.
5961         (compute_branch_probablilities): Remove find_counters_section
5962         call.
5963         (gen_edge_profiler): Adjust coverage_counter_ref call.
5964         * tracer.c (tail_duplicate): Adjust profile_info use.
5965
5966 2003-04-23  Roger Sayle  <roger@eyesopen.com>
5967
5968         PR optimization/10339
5969         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
5970         directly instead of unsafely transforming call into a memcmp.
5971         (expand_builtin_strncmp): Likewise.
5972
5973 2003-04-22  Roger Sayle  <roger@eyesopen.com>
5974
5975         * alias.c (mark_constant_function):  Check for constancy and
5976         purity even of void functions.  Update both the function decl
5977         and the cgraph RTL info with the results.
5978
5979 2003-04-22  Roger Sayle  <roger@eyesopen.com>
5980
5981         * real.c (do_add): Change to return a bool indicating that the
5982         result of the operation may be inexact due to loss of precision.
5983         (do_multiply): Likewise.
5984         (do_divide): Likewise.
5985
5986 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
5987             Loren James Rittle  <ljrittle@acm.org>
5988
5989         * dwarf2out.c (fde_table_allocated): Mark with GTY.
5990         (decl_die_table_allocated): Likewise.
5991         (abbrev_die_table_allocated): Likewise.
5992         (line_info_table_allocated): Likewise.
5993         (separate_line_info_table_allocated): Likewise.
5994         (pubname_table_allocated): Likewise.
5995         (arange_table_allocated): Likewise.
5996         (ranges_table_allocated): Likewise.
5997         (decl_die_table_in_use): Unconditionalize; mark with GTY.
5998         (abbrev_die_table_in_use): Likewise.
5999         (line_info_table_in_use): Likewise.
6000         (separate_line_info_table_in_use): Likewise.
6001         (pubname_table_in_use): Likewise.
6002         (arange_table_in_use): Likewise.
6003         (ranges_table_in_use): Likewise.
6004         (have_location_lists): Likewise.
6005         (emitcount): New GTY-marked static, moved...
6006         (maybe_emit_file): ...from here.
6007         (label_num): New GTY-marked static, moved...
6008         (gen_internal_sym): ...from here.
6009
6010 2003-04-22  Richard Henderson  <rth@redhat.com>
6011
6012         PR 8866
6013         * rtl.h (MEM_NOTRAP_P): New.
6014         (MEM_COPY_ATTRIBUTES): Copy it.
6015         * rtlanal.c (may_trap_p): Check it.
6016         * expr.c (do_tablejump): Set it.
6017         * doc/rtl.texi (Flags): Document it.
6018
6019         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
6020
6021 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
6022
6023         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
6024         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
6025
6026 2003-04-22  Vincent Celier <celier@gnat.com>
6027
6028         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
6029         --enable-threads=gnat.
6030         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
6031         * configure.in: Add gnat to the list of thread packages
6032         * configure: Rebuild.
6033         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
6034
6035 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
6036
6037         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
6038
6039 2003-04-22  Devang Patel  <dpatel@apple.com>
6040
6041         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
6042         parameter count.
6043         (_cpp_copy_replacement_text): Same.
6044
6045 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
6046
6047         * c-lex.c (c_lex): Handle CPP_OTHER differently.
6048         * cppexp.c (_cpp_parse_expr): Similarly.
6049         * cpplex.c (SPELL_CHAR): Remove.
6050         (_cpp_lex_direct): Stray chars are saved as byte strings.
6051         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
6052         handle SPELL_CHAR.
6053         (cpp_avoid_paste): Update handling of CPP_OTHER.
6054         * cpplib.h: Spell CPP_OTHER like a number.
6055         (struct cpp_token): Remove member c.
6056         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
6057
6058 2003-04-22  David Turner <novalis@gnu.org>
6059
6060         * gbl-ctors.h: Add special license exception.
6061         * libgcc2.h: Likewise.
6062         * tsystem.h: Likewise.
6063         * gcov-io.h: Likewise.
6064
6065 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
6066
6067         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
6068         macro defaulting to original BRANCH_COST heuristic.
6069         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
6070
6071         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
6072
6073 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
6074
6075         * config/rs6000/t-spe: Merge in t-fprules into file.
6076
6077         * config.gcc: Add t-spe to powerpc-eabispe.
6078
6079 2003-04-22  Kean Johnston  <jkj@sco.com>
6080
6081         * tlink.c (recompile_files): Add missing '=' to putenv calls
6082
6083 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
6084
6085         * ginclude/stddef.h: Provide C++ safe offsetof.
6086
6087 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
6088
6089         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
6090         for reg notes, if there are no substitutions, just use a SUBREG.
6091
6092 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
6093
6094         * Makefile.in (calls.o): Depend on except.h.
6095         * calls.c: Include except.h.
6096         (emit_call_1): Call note_eh_region_may_contain_throw if
6097         appropriate.
6098         * except.c (eh_region): Add may_contain_throw.
6099         (expand_eh_region_end_cleanup): Do not include handler code when
6100         it cannot be reached.
6101         (note_eh_region_may_contain_throw): New function.
6102         * except.h (note_eh_region_may_contain_throw): New function.
6103
6104 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
6105
6106         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
6107         changes.
6108
6109 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
6110
6111         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
6112         64-bit long doubles.
6113
6114 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
6115
6116         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
6117         a number of conversions required for type consistency and previously
6118         stripped off by STRIP_NOPS.
6119
6120         * calls.c (expand_call): Prevent sibcall optimization for calls to
6121         nested subprograms.
6122
6123         * expmed.c (extract_bit_field): Reverse operands of && condition to
6124         prevent a potential division by zero in the previously first branch.
6125         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
6126
6127 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
6128
6129         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
6130         (subrange_type_die): Likewise.
6131         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
6132         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
6133
6134 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
6135
6136         Break out coverage routines to new file.
6137         * Makefile.in (COVERAGE_H): New variable
6138         (C_OBJS): Add coverage.o
6139         (coverage.o): New target.
6140         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
6141         dependencies.
6142         (GTFILES): Adjust.
6143         (gt-coverage.h): New target.
6144         (gt-profile.h): Remove.
6145         * profile.h: Remove. Move to ...
6146         * coverage.h: ... here. New. #include gcov-io.h.
6147         * gcov-io.h: Move function definitions to ...
6148         * gcov-io.c: ... here. New.
6149         * profile.c: Move coverage routines to coverage.c.
6150         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
6151         end_branch_prob): Adjust.
6152         * coverage.c: New. Coverage routines from profile.c
6153         (coverage_counter_ref, coverage_init, coverage_finish,
6154         coverage_end_function, coverage_begin_output,
6155         coverage_counter_ref, get_coverage_counts): Define.
6156         * gcov-dump.c, gcov.c: #include gcov-io.c.
6157         * libgcov.c: Likewise. Adjust.
6158         * loop-init.c: Don't #include profile.h
6159         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
6160         * rtl.h: Add coverage prototypes.
6161         * toplev.c (compile_file): Init coverage, not branch_prob.
6162         Always call coverage_finish.
6163         (rest_of_compilation): Call coverage_end_function.
6164
6165 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
6166
6167         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
6168
6169 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
6170
6171         * c-ppoutput.c (cb_include): Don't take a cpp_token.
6172         * cppfiles.c: Don't undef strcmp.
6173         (find_include_file): Don't take a cpp_token.  Check for empty
6174         file names.
6175         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
6176         (cpp_push_include): Simplify.
6177         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
6178         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
6179         (parse_include): Similary.  Don't check for zero-length filenames.
6180         (do_include_common, do_pragma_dependency): Update accordingly.
6181         * cpplib.h (struct cpp_callbacks): Change prototype of include.
6182
6183 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6184
6185         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
6186         details of conflict handling.
6187
6188         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
6189         when conversion overflows.
6190
6191         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
6192
6193         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
6194         before clearing.
6195
6196 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
6197
6198         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
6199         have the same form as the old RTL.
6200
6201 2003-04-21  Andreas Jaeger  <aj@suse.de>
6202
6203         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
6204
6205 2003-04-20  Chris Lattner  <sabre@nondot.org>
6206             Zack Weinberg  <zack@codesourcery.com>
6207
6208         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
6209         genrtl_cleanup_stmt.  Correct comment at head of
6210         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
6211
6212         * stmt.c (struct nesting): Kill n_function_calls.
6213         (expand_start_bindings): Don't set
6214         thisblock->data.block.n_function_calls.
6215         (expand_end_bindings): Compare function_call_count against 0.
6216         (expand_cleanups): Kill DONT_DO argument; all callers passed
6217         NULL_TREE. All callers updated to match.
6218
6219 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
6220
6221         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
6222         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
6223         (output_constant_def): Remove code predicated on
6224         defer_addressed_constants_flag.
6225
6226         * output.h: Remove prototypes of deleted functions.
6227         * c-typeck.c (constructor_subconstants_deferred): Kill.
6228         (struct initializer_stack): Remove 'deferred' field.
6229         (start_init): Remove all references to the above.
6230         (finish_init): Likewise. Also remove never-executed call to
6231         output_deferred_addressed_constants.  Pull assignment to
6232         defstr out of if expression.
6233
6234 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
6235
6236         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
6237         NOTE_NEWLINE): Remove.
6238         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
6239         to handle new form of line note type.
6240
6241 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
6242
6243         * target.h (encode_section_info): Add new argument carrying
6244         the RTL to be modified by the hook.
6245
6246         * varasm.c (make_decl_rtl, output_constant_def): Update calls
6247         to encode_section_info.
6248         (default_encode_section_info): Take and use RTL argument,
6249         don't use TREE_CST_RTL or DECL_RTL.
6250         * output.h: Update prototype of default_encode_section_info.
6251         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
6252         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
6253         Update calls to encode_section_info.
6254
6255         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
6256         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
6257         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
6258         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
6259         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
6260         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
6261         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
6262         except for PE dllimport/dllexport.  Update calls to
6263         default_encode_section_info.
6264
6265         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
6266         Update prototypes.
6267
6268         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
6269
6270 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6271
6272         PR/8705
6273         * pa.md (movccfp): New expander.
6274         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
6275         Reverse fcmp conditions.
6276
6277 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6278
6279         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
6280         of operand 1 correctly.
6281
6282 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
6283
6284         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
6285         * gcov.c (output_lines): Don't be so fussy about going past EOF.
6286
6287 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
6288
6289         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
6290         (cppcharset.o): New target.
6291         * c-lex.c (is_extended_char): Move to cppcharset.c.
6292         (utf8_extend_token): Delete.
6293         * cppcharset.c: New file.
6294         * cpphash.h (_cpp_valid_ucn): New.
6295         * cpplex.c (lex_identifier): Update prototype.
6296         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
6297         escapes.
6298         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
6299         in cppcharset.c.
6300         (lex_number, lex_identifier, cpp_parse_escape): Update.
6301         (_cpp_lex_direct): Update to handle UCNs.
6302         (cpp_avoid_paste): Don't paste to form a UCN.
6303
6304 2003-04-19  Roger Sayle  <roger@eyesopen.com>
6305
6306         * builtins.c (expand_builtin):  Don't expand a pure or const
6307         built-in function if the result will be ignored and none of
6308         its arguments are volatile.
6309
6310 2003-04-19  Kean Johnston  <jkj@sco.com>
6311
6312         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
6313         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
6314         target fragment now: t-sco5; dont compile crti.o.
6315         * config/i386/sco5.h: major overhaul to remove all COFF remnants
6316         and to use elfos.h for most definitions.
6317         (BSS_SECTION_ASM_OP): set correct segment attributes.
6318         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
6319         (DWARF2_UNWIND_INFO): Always set to 1.
6320         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
6321         (MD_STARTFILE_PREFIX_1): Define.
6322         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
6323         (DEFAULT_LINKER): Define if not specified to configure.
6324         (CTORS_SECTION_ASM_OP): Remove COFF crud.
6325         (DTORS_SECTION_ASM_OP): Remove COFF crud.
6326         (WINT_TYPE): Define.
6327         (SDB_DEBUGGING_INFO): Remove.
6328         (EXTRA_SECTIONS): Likewise.
6329         (EXTRA_SECTION_FUNCTIONS): Likewise.
6330         (CTOR_LIST_BEGIN): Likewise.
6331         (CTOR_LIST_END): Likewise.
6332         (INIT_SECTION_FUNCTION): Likewise.
6333         (FINI_SECTION_FUNCTION): Likewise.
6334         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
6335         (LOCAL_LABEL_PREFIX): Likewise.
6336         (NON_SAVING_SETJMP): Likewise.
6337         (RETURN_POPS_ARGS): Likewise.
6338         (ASM_OUTPUT_SKIP): Likewise.
6339         (TARGET_ASM_NAMED_SECTION): Likewise.
6340         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
6341         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
6342         (ASM_OUTPUT_IDENT): Likewise.
6343         (ASM_OUTPUT_CASE_LABEL): Likewise.
6344         (ASM_OUTPUT_ASCII): Likewise.
6345         (ASM_OUTPUT_LIMITED_STRING): Likewise.
6346         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
6347         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6348         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6349         (ASM_FINISH_DECLARE_OBJECT): Likewise.
6350         (ASM_DECLARE_OBJECT_NAME): Likewise.
6351         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
6352         (ASM_DECLARE_FUNCTION_NAME): Likewise.
6353         (ASM_DECLARE_RESULT): Likewise.
6354         (ASM_WEAKEN_LABEL): Likewise.
6355         (SUPPORTS_WEAK): Likewise.
6356         (APPLY_RESULT_SIZE): Likewise.
6357         (LPREFIX): Likewise.
6358         (ALIGN_ASM_OP): Likewise.
6359         (ASCII_DATA_ASM_OP): Likewise.
6360         (IDENT_ASM_OP): Likewise.
6361         (ASM_SHORT): Likewise.
6362         (ASM_LONG): Likewise.
6363         (TYPE_ASM_OP): Likewise.
6364         (SIZE_ASM_OP): Likewise.
6365         (STRING_ASM_OP): Likewise.
6366         (SKIP_ASM_OP): Likewise.
6367         (EH_FRAME_SECTION_ASM_OP): Likewise.
6368         (READONLY_DATA_SECTION_ASM_OP): Likewise.
6369         (INIT_SECTION_ASM_OP): Likewise.
6370         (FINI_SECTION_ASM_OP): Likewise.
6371         (TEXT_SECTION_ASM_OP): Likewise.
6372         (DATA_SECTION_ASM_OP): Likewise.
6373         (TYPE_OPERANT_FORMAT): Likewise.
6374         (ASM_SPEC): Remove COFF code.
6375         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
6376         cause -pg to emit an error; use pcrt1elf.o with -pp
6377         (ENDFILE_SPEC): Likewise.
6378         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
6379         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
6380         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
6381         add -z alt_resolve to support weak symbols the way GCC wants them.
6382         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
6383         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
6384         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
6385         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
6386         (CRTSTUFF_T_CFLAGS_S): Define.
6387         (MULTILIB_OPTIONS): Likewise.
6388         (MULTILIB_DIRNAMES): Likewise.
6389         (MULTILIB_MATCHES): Likewise.
6390         (MULTILIB_EXTRA_OPTS): Likewise.
6391         (LIBGCC): Likewise.
6392         (INSTALL_LIBGCC): Likewise.
6393         (crti.o): Remove.
6394         * config/i386/t-sco5gas: Remove.
6395         * doc/install.texi: Updated for new OpenServer instructions.
6396         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
6397
6398 2003-04-19  Kean Johnston  <jkj@sco.com>
6399
6400         * fixinc/check.tpl: Allow user to over-ride diff program.
6401         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
6402         (sco_math): Added test for SCO math header files.
6403         (sco_regset): Added check for conflicts with ieeefp.h.
6404         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
6405         * fixinc/fixincl.x: Regenerated
6406         * fixinc/tests/base/math.h: Added sco_math tests.
6407         * fixinc/tests/base/string.h: New file.
6408         * fixinc/tests/base/sys/regset.h: New file.
6409
6410 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
6411
6412         * cpphash.h (struct cpp_buffer): Remove backup_to.
6413         * cpplex.c (BACKUP, get_effective_char): Die.
6414         (_cpp_skip_block_comment): Assume '*' is location on entry.
6415         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
6416         (IF_NEXT_IS): Update.
6417         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
6418
6419 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
6420
6421         * README.Portability: Move to a new section and obsolete K+R
6422         portability issues.
6423
6424 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
6425
6426         * rtlanal.c (subreg_offset_representable_p):  Fix call of
6427         subreg_lowpart.
6428
6429 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
6430
6431         * cpphash.h (struct cpp_reader): New member warned_dollar.
6432         * cpplex.c (continues_identifier_p): New function.
6433         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
6434         lex_number and lex_string, and simplify.
6435         (parse_slow, unescaped_terminator_p): Die.
6436         (_cpp_lex_direct): Update.
6437
6438 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6439
6440         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
6441
6442 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
6443
6444         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
6445         fork behaviour.
6446
6447 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
6448
6449         * cppexp.c (eval_token): Permit true and false even if pedantic.
6450
6451 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
6452
6453         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
6454
6455 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
6456
6457         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
6458         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
6459         (struct include_file): Remove fefcnt, mapped members.
6460         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
6461         (read_include_file): Don't use mmap, terminate buffers in '\r'.
6462         (purge_cache): Don't use munmap.
6463         * cpphash.h (CPP_BUF_COLUMN): Update.
6464         (lexer_state): Remove lexing_comment.
6465         (struct _cpp_line_note): New.
6466         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
6467         next_line and need_line.  Remove col_adjust and saved_flags.
6468         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
6469         _cpp_skip_block_comment, scan_out_logical_line): New.
6470         (_cpp_init_mbchar): Remove.
6471         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
6472         (cpp_read_main_file): Set line to 1 earlier.
6473         (post_options): -traditional-cpp doesn't want trigraphs.
6474         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
6475         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
6476         _cpp_get_fresh_line): New.
6477         (handle_newline, skip_escaped_newlines, trigraph_p,
6478         continue_after_nul, _cpp_init_mbchar): Remove.
6479         (get_effective_char): Update.
6480         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
6481         (skip_line_comment): Simplify.
6482         (skip_whitespace, parse_identifier, parse_slow, parse_number,
6483         parse_string): Update.
6484         (cpp_lex_direct): Use clean lines and process line notes.  Update.
6485         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
6486         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
6487         directly.
6488         (_cpp_handle_directive): Don't set saved_flags.
6489         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
6490         cpp_undef, handle_assertion, cpp_push_buffer): Update.
6491         (_cpp_pop_buffer): Free notes.
6492         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
6493         * cpppch.c (cpp_read_state): \n terminate buffer.
6494         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
6495         (copy_comment): Use _cpp_skip_block_comment.
6496         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
6497         Simplify.
6498         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
6499         save_replacement_text): Update.
6500         (scan_out_logical_line): Update to use clean lines and process
6501         line notes.
6502         * fix-header.c (read_scan_file): Update.
6503
6504 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
6505
6506         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
6507         null begin parameter (as well as pointer to null).
6508         (__deregister_frame_info_bases): Likewise.
6509
6510 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6511
6512         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
6513         hard or virtual register and copy into pseudo if replacement fails.
6514
6515         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
6516
6517         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
6518
6519 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
6520
6521         * calls.c (expand_call): Move special case for constructor calls
6522         to right place. Ensures constructor calls used to initialize
6523         arguments get a clean outgoing argument block for themselves.
6524         Move check for stack deallocation completeness until after last
6525         deallocation.  Add stack_pointer_delta to set of state
6526         variables saved and restored along with current stack_level.
6527
6528         * integrate.c (expand_inline_function): Ensure non-const actuals
6529         don't end up const in the caller's flow after conversion to possibly
6530         const formal type.
6531
6532 2003-04-18  Vincent Celier  <celier@gnat.com>
6533
6534         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
6535         and *_DIV_EXPR as TRUNC_*_EXPR.
6536
6537 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
6538
6539         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
6540         for orphaned jump tables.
6541
6542 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
6543
6544         * reload1.c: Revert my previous patch on 2002-04-17.
6545
6546 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6547
6548         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
6549         Add Segher Boessenkool.
6550
6551 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
6552
6553         PR c/9177
6554         * c-decl.c (c_expand_body): Don't garbage collect the function
6555         body if we are going to dump it later.
6556
6557 2003-04-18  Richard Henderson  <rth@redhat.com>
6558
6559         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
6560         (alpha_end_function): Don't set them.
6561         (decl_in_text_section): Remove.
6562         (alpha_encode_section_info): Remove.
6563         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
6564         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
6565         sections, rather than decl_in_text_section results.
6566
6567 2003-04-18  Roger Sayle  <roger@eyesopen.com>
6568
6569         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
6570         and SIGN_EXTRACT.
6571
6572 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
6573
6574         PR optimization/7675
6575         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
6576         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
6577         nested functions if they refer to declarations from parent functions.
6578         * stmt.c (expand_decl): Don't put automatic variables in registers
6579         if the DECL_NONLOCAL flag is set.
6580
6581 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6582
6583         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
6584         consider those to be movable where the source matches
6585         want_to_gcse_p.
6586         (update_ld_motion_stores): In comment, refer to
6587         compute_ld_motion_mems for validity of replacement.
6588
6589 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
6590
6591         * gcov-dump.c (tag_summary): Remove max_sum
6592         * gcov-io.h (gcov_summary, gcov_write_summary,
6593         gcov_read_summary): Kill max_sum.
6594         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
6595         message more verbose.
6596
6597         * emit-rtl.c (subreg_hard_regno):  Check that register is
6598         representable.
6599
6600         * reload.c (reload_inner_reg_of_subreg):  When register is not
6601         representable, reload the whole thing.
6602         (find_reloads): Likewsie.
6603         * rtlanal.c (subreg_representable_p):  New function.
6604
6605         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
6606         allow negative probabilities for edges from the call to exit.
6607         (branch_prob): Do not add fake edges for functions that may return
6608         twice.
6609
6610 2003-04-17  DJ Delorie  <dj@redhat.com>
6611
6612         * toplev.c (target_options): Add value field.
6613         (set_target_switch): Handle target options with values.
6614         * doc/tm.texi: Document how fixed vs variable target
6615         options work.
6616         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
6617         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
6618         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6619         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
6620         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
6621         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
6622         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
6623         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
6624         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
6625         Add value initializer to target options.
6626
6627 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
6628
6629         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
6630
6631 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
6632
6633         * reload1.c (move2add_last_cc0): New.
6634         (reload_cse_move2add): Detect implicit sets.
6635         (move2add_note_store): Notice a store into cc0.
6636
6637 2003-04-17  Roger Sayle  <roger@eyesopen.com>
6638
6639         PR c/10375
6640         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
6641         function attributes.
6642
6643 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
6644
6645         * doc/sourcebuild.texi (Test Suites): Document support for testing
6646         binary compatibility (moved from testsuite/README.compat).
6647
6648 2003-04-17  Richard Henderson  <rth@redhat.com>
6649
6650         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
6651
6652 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
6653
6654         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
6655         the one provided by the FSF.
6656
6657 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6658
6659         * doc/install.texi (Binaries): Update URL and list of platforms
6660         provided by ftp.thewrittenword.com.
6661
6662 2003-04-17  Richard Henderson  <rth@redhat.com>
6663
6664         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
6665         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
6666         * config/xtensa/xtensa.md (call, call_value): Likewise.
6667
6668 2003-04-17  Richard Henderson  <rth@redhat.com>
6669
6670         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
6671         (print_operand_address): Likewise.
6672         (ep_memory_operand): Likewise.
6673         (special_symbolref_operand): Likewise.
6674         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
6675         (v850_encode_section_info): Call default_encode_section_info.
6676         (v850_strip_name_encoding): Remove.
6677         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
6678         (ASM_OUTPUT_LABELREF): Remove.
6679         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
6680         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
6681         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
6682         (ENCODED_NAME_P): Remove.
6683         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
6684         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
6685         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
6686
6687 2003-04-17  Richard Henderson  <rth@redhat.com>
6688
6689         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
6690         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
6691         SYMBOL_REF_FUNCTION_P.
6692
6693 2003-04-17  Richard Henderson  <rth@redhat.com>
6694
6695         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
6696         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
6697         (text_segment_operand): Likewise.
6698
6699 2003-04-17  Richard Henderson  <rth@redhat.com>
6700
6701         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
6702         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
6703         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
6704         (sh_encode_section_info): Remove.
6705         (sh_strip_name_encoding): Remove.
6706         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
6707         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
6708         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
6709         (ASM_OUTPUT_LABELREF): Remove.
6710         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
6711         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
6712
6713 2003-04-17  Richard Henderson  <rth@redhat.com>
6714
6715         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
6716         (tls_model_chars): Remove.
6717         (larl_operand): Use SYMBOL_REF_FLAGS.
6718         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
6719         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
6720         (s390_output_mi_thunk): Likewise.
6721         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
6722         (s390_function_profiler): Likewise.
6723         (s390_encode_section_info): Use default_encode_section_info
6724         and SYMBOL_FLAG_ALIGN1.
6725         (s390_strip_name_encoding): Remove.
6726         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
6727         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
6728         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
6729
6730 2003-04-17  Richard Henderson  <rth@redhat.com>
6731
6732         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
6733         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
6734         (print_operand_address): Likewise.
6735
6736         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
6737         * config/ns32k/ns32k.c (expand_block_move): Don't check
6738         flag_unroll_loops.
6739
6740 2003-04-17  Richard Henderson  <rth@redhat.com>
6741
6742         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
6743         SYMBOL_REF_FLAG.
6744
6745 2003-04-17  Richard Henderson  <rth@redhat.com>
6746
6747         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
6748
6749         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
6750         (SYMBOL_REF_MODEL): New.
6751         (LIT_NAME_P): Move from m32r.h.
6752         (m32r_select_section): Remove.
6753         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
6754         (m32r_strip_name_encoding): Remove.
6755         (m32r_in_small_data_p): New.
6756         (small_data_operand): Use SYMBOL_REF_SMALL_P.
6757         (addr24_operand): Use SYMBOL_REF_MODEL.
6758         (call26_operand): Likewise.
6759         (addr32_operand): Tidy.
6760         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
6761         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
6762         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
6763         (READONLY_DATA_SECTION_ASM_OP): Remove.
6764         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
6765         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
6766         (TARGET_ASM_SELECT_SECTION): Remove.
6767         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
6768         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
6769         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
6770         (ASM_OUTPUT_LABELREF): Remove.
6771
6772 2003-04-17  Richard Henderson  <rth@redhat.com>
6773
6774         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
6775         (encode_section_info): Remove.
6776         * config/ip2k/ip2k-protos.h: Update.
6777
6778 2003-04-17  Richard Henderson  <rth@redhat.com>
6779
6780         * varasm.c (default_encode_section_info): Don't set
6781         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
6782         * config/i370/i370.c (i370_encode_section_info): Remove.
6783         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
6784         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
6785         * config/i370/i370.md (movsi): Likewise.
6786
6787         * config/i370/t-i370: Add missing backslash.
6788
6789 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
6790
6791         * doc/invoke.texi (inline-limit): Fix pasto.
6792
6793 2003-04-17  Richard Henderson  <rth@redhat.com>
6794
6795         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
6796         (small_call_insn_operand): Use it.
6797         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
6798         (h8300_eightbit_constant_address_p): Use it.
6799         (SYMBOL_FLAG_TINY_DATA): New.
6800         (h8300_tiny_constant_address_p): Use it.
6801         (h8300_encode_label, h8300_strip_name_encoding): Remove.
6802         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
6803         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
6804         (ASM_OUTPUT_LABELREF): Remove.
6805
6806 2003-04-16  Richard Henderson  <rth@redhat.com>
6807
6808         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
6809         all users with SYMBOL_REF_SMALL_P.
6810         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
6811         (frv_encode_section_info): Remove.
6812         (frv_strip_name_encoding): Remove.
6813         (frv_in_small_data_p): Merge tests from encode_section_info.
6814         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
6815         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
6816         (SDATA_NAME_P): Remove.
6817         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
6818         (ASM_OUTPUT_LABELREF): Remove.
6819         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
6820
6821         * config/frv/frv.c (frv_asm_out_constructor): New.
6822         (frv_asm_out_destructor): New.
6823         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
6824         (DTORS_SECTION_ASM_OP): New.
6825         (ASM_OUTPUT_CONSTRUCTOR): Remove.
6826         (ASM_OUTPUT_DESTRUCTOR): Remove.
6827
6828 2003-04-16  Richard Henderson  <rth@redhat.com>
6829
6830         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
6831         SYMBOL_REF_LOCAL_P; abort if not pic.
6832         (cris_encode_section_info): Remove.
6833
6834 2003-04-16  Richard Henderson  <rth@redhat.com>
6835
6836         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
6837         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
6838
6839         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
6840         flag_inline_trees.
6841
6842 2003-04-16  Richard Henderson  <rth@redhat.com>
6843
6844         * config/avr/avr.c (avr_encode_section_info): Remove.
6845         (avr_insert_attributes): New.
6846         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
6847         (avr_assemble_integer): Likewise.
6848
6849 2003-04-16  Richard Henderson  <rth@redhat.com>
6850
6851         * arc.c (arc_encode_section_info): Remove.
6852         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
6853         (arc_print_operand, arc_print_operand_address): Likewise.
6854         * arc.h (EXTRA_CONSTRAINT): Likewise.
6855
6856 2003-04-16  Roger Sayle  <roger@eyesopen.com>
6857
6858         * c-semantics.c (find_reachable_label): New function to find a
6859         potentially reachable label in an expression.
6860         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
6861         assumes the start of the IF_STMT is unreachable (dead) code.
6862         (expand_unreachable_stmt): Similar to expand_stmt but assumes
6863         the start of the statement list is unreachable (dead) code.
6864         (genrtl_if_stmt):  If the controlling expression of the IF
6865         is constant, use expand_unreachable_stmt for the THEN or ELSE
6866         clause as appropriate.
6867         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
6868         the body of a SWITCH statement.
6869         (expand_stmt): The code immediately following a "return",
6870         "break", "continue" or "goto" is unreachable.
6871         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
6872
6873 2003-04-16  Richard Henderson  <rth@redhat.com>
6874
6875         * rtl.h (MEM_ALIAS_SET): Update documentation.
6876         * doc/rtl.texi (Special Accessors): New node.
6877         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
6878
6879 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
6880
6881         * reload1.c (reload_cse_noop_set_p): Return false if mode of
6882         SET_DEST is not the same as that returned by...
6883         * cselib.h (cselib_reg_set_mode): ... new function.
6884         * cselib.c (cselib_reg_set_mode): Define it.
6885         (REG_VALUES): Document semantics of first element as set mode.
6886         (cselib_subst_to_values): Skip first element if ELT is NULL.
6887         (cselib_lookup): Likewise.  Insert past the first element.
6888         (cselib_invalidate_regno): NULLify first element.
6889         (cselib_record_set): Set first element.
6890
6891 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
6892
6893         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
6894         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
6895         * tree.h: Add prototypes for the two new functions.
6896         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
6897         updates introduced in the previous revision by call to saved_expr_p.
6898         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
6899
6900         * expr.c (store_field): Force usage of bitfield instructions when
6901         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
6902         (expand_expr, case BIT_FIELD_REF): likewise.
6903
6904 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
6905
6906         PR middle-end/8866
6907         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
6908         jumptables.
6909
6910 2003-04-16  Richard Henderson  <rth@redhat.com>
6911
6912         * config/ia64/ia64.c (sdata_symbolic_operand): Use
6913         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
6914         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
6915         (function_operand): Use SYMBOL_REF_FUNCTION_P.
6916         (ia64_expand_load_address): Likewise.
6917         (ia64_assemble_integer): Likewise.
6918         (ia64_encode_section_info): Remove.
6919         (ia64_strip_name_encoding): Remove.
6920         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
6921         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
6922
6923 2003-04-16  Richard Henderson  <rth@redhat.com>
6924
6925         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
6926         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
6927         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
6928         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
6929         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
6930         (global_symbolic_operand): Similarly.
6931         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
6932         (tls_symbolic_operand_type): Likewise.
6933         (alpha_encode_section_info): Use default_encode_section_info.
6934         (alpha_strip_name_encoding): Remove.
6935         (get_tls_get_addr): Split out from ...
6936         (alpha_legitimize_address): ... here.
6937         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
6938         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
6939         (alpha_initialize_trampoline): Use init_one_libfunc.
6940         (alpha_setup_incoming_varargs): Mark unused parameters.
6941         (alpha_initial_elimination_offset): Likewise.
6942         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
6943         (unicosmk_unique_section): Use default_strip_name_encoding.
6944         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
6945
6946 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
6947
6948         * config.gcc: Add t-spe for eabispe.
6949
6950         * config/rs6000/t-spe: New.
6951
6952 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
6953
6954         Re-apply this patch:
6955
6956         2002-05-16  Dale Johannesen  <dalej@apple.com>
6957           * combine.c (cant_combine_insn_p):  Reenable combinations
6958           involving hard regs unless CLASS_LIKELY_SPILLED_P.
6959
6960 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6961
6962         PR/10271
6963         * pa-protos.h (function_arg): Remove last argument.
6964         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
6965         * pa.h (struct hppa_args): Add member incoming.
6966         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
6967         member incoming.
6968         (FUNCTION_ARG): Revise call to function_arg.
6969         (FUNCTION_INCOMING_ARG): Delete.
6970
6971 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
6972
6973         * configure.in: Unify the code which creates symlinks to a
6974         just-built as, ld, objdump, and nm with the code that detects
6975         their presence for purposes of feature tests.
6976         * configure: Regenerate.
6977
6978 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
6979
6980         * varasm.c (output_constant_def): Do not consult
6981         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
6982         (after_function_constants, output_after_function_constants): Delete.
6983         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
6984         * config/mips/mips-protos.h, config/mips/mips.c
6985         (mips16_constant_after_function_p): Delete.
6986         * config/mips/mips.h: Delete #if-0-ed definition of
6987         CONSTANT_AFTER_FUNCTION_P.
6988         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
6989         mention of CONSTANT_AFTER_FUNCTION_P in comment.
6990
6991 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
6992
6993         * tree.c (next_decl_uid): Mark with GTY.
6994         (next_type_uid): Likewise.
6995
6996 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
6997
6998         PR target/9594:
6999         * sh.c (barrier_align): Also recognize stuff_delay_slot as
7000         an indicator that a barrier was created by branch splitting.
7001
7002 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
7003
7004         * c-decl.c (implicitly_declare): Copy declarations that are going
7005         to be placed in a local scope.
7006
7007 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
7008
7009         * invoke.texi (Spec Files): Wrap if-exists-else example.
7010         (MCore): Remove duplicate @itemx entries and @opindex entries.
7011
7012 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
7013
7014         * unwind.inc (_Unwind_Backtrace): New function.
7015         * unwind.h (_Unwind_Backtrace): Declare it.
7016         * libgcc-std.ver (_Unwind_Backtrace): Export it.
7017
7018 2003-04-14  Jason Merrill  <jason@redhat.com>
7019
7020         PR middle-end/10336, c++/10401
7021         * jump.c (never_reached_warning): Also stop looking if we reach the
7022         beginning of the function.
7023
7024 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7025
7026         PR target/10338
7027         PR bootstrap/10198
7028         PR bootstrap/10140
7029         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
7030
7031 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
7032
7033         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
7034
7035 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7036
7037         * optabs.c (expand_binop): In multi-word add cases, ensure
7038         XTARGET is copied to TARGET if they are different.
7039
7040 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
7041
7042         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
7043         to region, possible after integration of function with unreachable
7044         regions that were optimized away.
7045
7046 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
7047
7048         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
7049         instead of TOC_REGISTER in epilogue in
7050         current_function_calls_eh_return functions.
7051
7052 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
7053
7054         * doc/extend.texi (Empty Structures): Correct description of G++'s
7055         handling of these structures.
7056
7057         * c-decl.c (grokdeclarator): Reject extern redeclarations of
7058         static variables.
7059
7060 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
7061
7062         * config/rs6000/rs6000.md (define_constants): Define constants for
7063         all UNSPEC usage, including new values for TLS support.
7064         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
7065         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
7066         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
7067         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
7068         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
7069         eh_set_lr_di): Use them.
7070         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
7071         rs6000_emit_epilogue) Use them.
7072
7073         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
7074
7075 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
7076
7077         * Makefile.in (c-opts.o): Use custom action.
7078
7079 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
7080
7081         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
7082
7083 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7084
7085         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
7086         handle "superflat arrays" in Ada.
7087
7088         * integrate.c (expand_inline_function): Don't inline if would
7089         lose /u on a BLKmode TARGET.
7090
7091 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
7092
7093         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
7094         extracted from dbxout_type.
7095         (dbxout_range_type): print large bounds in octal format.
7096         (dbxout_type): Replace extracted code by call to
7097         print_int_cst_bounds_in_octal_p.
7098
7099         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
7100         of DW_LANG_Ada83 for Ada units.
7101
7102 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
7103
7104         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
7105         temporary used to round CONST_INT sizes.
7106
7107         * tree.c (int_fits_type_p): Extract generic checks from the case
7108         of constant type bounds. Refine the checks against constant type
7109         bounds to allow for possible decisions against each of these bounds
7110         without requiring both bounds to be constant.
7111         (tree_int_cst_msb): Put back.
7112         * tree.h (tree_int_cst_msb): Likewise.
7113
7114         * global.c (global_conflicts): Prevent allocation of call clobbered
7115         hard regs to pseudos live across abnormal edges, as later passes are
7116         not ready to handle them.
7117
7118         * fold-const.c (fold): Reorder tests for conditional expressions.
7119
7120         * expr.c (highest_pow2_factor): Return unsigned.
7121         * expr.h (offset_address): Likewise.
7122         * emit-rtl.c (offset_address): POW2 argument now unsigned.
7123
7124 2003-04-14  Roger Sayle  <roger@eyesopen.com>
7125
7126         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
7127         string literals at compile-time.
7128
7129 2003-04-14  Roger Sayle  <roger@eyesopen.com>
7130
7131         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
7132         comparison operation and c1/c2 are floating point constants into
7133         x swap(cmp) (c1 - c2).
7134
7135 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
7136
7137         * genautomata.c (output_translate_vect): Fix a typo in loop
7138         condition.
7139
7140 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
7141
7142         PR target/10377
7143         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
7144         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
7145         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
7146         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
7147         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
7148         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
7149         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
7150         ("*extopqihi_swap_side", "*extopqisi_swap_side")
7151         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
7152         When next to constraint R, replace constraint i with n.
7153
7154 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
7155
7156         PR opt/10024
7157         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
7158
7159 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
7160
7161         * doc/contrib.texi (Contributors): Correct my entry.
7162
7163 2003-04-13  Roger Sayle  <roger@eyesopen.com>
7164
7165         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
7166         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
7167         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
7168         implies DECL_BUILT_IN to simplify logic.
7169         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
7170
7171 2003-04-13  Roger Sayle  <roger@eyesopen.com>
7172
7173         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
7174         (BT_FN_PTR_SIZE_SIZE): Likewise.
7175         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
7176         New built-in functions for malloc, calloc and strdup respectively.
7177         * calls.c (special_function_p): No need to handle malloc-like
7178         functions any longer.  ECF_MALLOC is set via built-in attributes.
7179
7180         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
7181
7182         * doc/extend.texi: Document these new built-in functions.
7183
7184 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7185
7186         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
7187         (expand_builtin_stpcpy): New.
7188         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
7189         * builtins.def: Add mempcpy & stpcpy support.
7190         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
7191
7192 2003-04-13  Nick Clifton  <nickc@redhat.com>
7193
7194         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
7195         "GCC".
7196         * config/rs6000/40x.md, config/rs6000/603.md,
7197         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
7198         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
7199         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
7200         config/rs6000/aix43.h, config/rs6000/aix51.h,
7201         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
7202         config/rs6000/altivec.h, config/rs6000/altivec.md,
7203         config/rs6000/beos.h, config/rs6000/darwin.h,
7204         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
7205         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
7206         config/rs6000/freebsd.h, config/rs6000/gnu.h,
7207         config/rs6000/host-darwin.c, config/rs6000/linux.h,
7208         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
7209         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
7210         config/rs6000/netbsd.h, config/rs6000/power4.md,
7211         config/rs6000/rios1.md, config/rs6000/rios2.md,
7212         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
7213         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
7214         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
7215         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
7216         config/rs6000/spe.md, config/rs6000/sysv4.h,
7217         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
7218         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
7219
7220 2003-04-13  Nick Clifton  <nickc@redhat.com>
7221
7222         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
7223         support for -mcall-aix switch.
7224         * config/rs6000/eabiaix.h: Delete.
7225         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
7226         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
7227         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
7228         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
7229         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
7230         debug_stack_info, output_function_profiler,
7231         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
7232         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
7233         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
7234         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
7235         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
7236         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
7237         multilibs.
7238         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
7239         (MULTILIB_EXCEPTIONS): Delete.
7240         (MULTILIB_MATCHES): Remove mcall-aix matches.
7241
7242         * doc/fragments.texi: Replace -mcall-aix example with an ARM
7243         one.
7244         * doc/install.texi: Delete powerpc-*-eabiaix target.
7245         * doc/invoke.texi: Remove documentation of mcall-aix switch.
7246         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
7247         * config.gcc: Delete powerpc-*-eabiaix target.
7248
7249 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
7250
7251         * doc/invoke.texi: Fix typos.
7252         * doc/tm.texi: Likewise.
7253
7254 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
7255
7256         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
7257
7258 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
7259
7260         * tree.c (build_constructor): New function.
7261         * tree.h: Prototype it.
7262
7263         * c-typeck.c (build_c_cast, pop_init_level)
7264         * profile.c (build_function_info_value, build_gcov_info_value)
7265         (create_profiler):
7266         Use build_constructor.
7267
7268         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
7269
7270         * objc/objc-act.c (build_constructor):
7271         Rename objc_build_constructor. Use build_constructor.
7272         (build_objc_string_object, objc_add_static_instance)
7273         (init_def_list, init_objc_symtab, init_module_descriptor)
7274         (generate_static_references, build_selector_translation_table)
7275         (build_descriptor_table_initializer, generate_descriptor_table)
7276         (build_protocol_initializer, build_ivar_list_initializer)
7277         (generate_ivars_list, build_dispatch_table_initializer)
7278         (generate_dispatch_table, generate_protocol_list)
7279         (build_category_initializer, build_shared_structure_initializer):
7280         Update to match.
7281
7282 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
7283
7284         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
7285
7286 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
7287
7288         * config/m68hc11/m68hc11-protos.h
7289         (m68hc11_eq_compare_operator): Declare
7290         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
7291         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
7292         (d_register_operand): Check the operand mode.
7293         (hard_addr_reg_operand): Likewise.
7294
7295 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
7296
7297         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
7298         pattern for dbcc/ibcc generation for 68HC12.
7299         ("doloop_end"): New pattern.
7300         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
7301         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
7302         ("m68hc12_dbcc_dec_qi"): New pattern.
7303         ("m68hc12_dbcc_inc_qi"): New pattern.
7304         (split): Add split for the above when we can't use dbcc/ibcc due to
7305         reloading.
7306         (peephole2): Add peephole2 to generate the above when possible.
7307
7308 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
7309
7310         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
7311         mode of operand 0.
7312         (peephole2 optimize const load): Likewise for operand 2.
7313         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
7314         clobbers CC_REGNUM.
7315         ("*rotrhi3_with_carry"): Likewise.
7316         (ashift:DI 1 split): Update pattern to create the above rotate.
7317         (lshiftrt:DI 1 split): Likewise.
7318
7319 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
7320
7321         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
7322         ("tstqi_z_used" split): Use it.
7323         ("cmphi_z_used"): Likewise.
7324         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
7325         ("cmpqi_z_used"): Likewise.
7326
7327 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
7328
7329         PR c++/7910
7330         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
7331
7332 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
7333
7334         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
7335         * configure, config.in: Regenerate.
7336         * intl.c (gcc_gettext_width): New function.
7337         * intl.h: Prototype it.
7338
7339 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
7340
7341         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
7342         recognize -mnorelax.
7343         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
7344         (REG_CLASS_NAMES): Add its name.
7345         (REG_CLASS_CONTENTS): Define its content.
7346
7347 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
7348
7349         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
7350         parameters so that offsets are valid for far definition.
7351         (__mulsi3): Likewise and use ret to return.
7352         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
7353
7354 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
7355
7356         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
7357
7358 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
7359
7360         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
7361         containing a libgcc.a, move lib* to the corresponding stage dir.
7362
7363         * Makefile.in (stage1-start, stage2-start, stage3-start,
7364         stage4-start): Move $(SPECS) to specs in stage dir.
7365         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
7366         back as $(SPECS).
7367
7368         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
7369         object files from the non-libgcc/ multilib directories as well.
7370
7371 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
7372
7373         * profile.c (read_counts_file): Initialise 'checksum'.
7374
7375         * emit-rtl.c (gen_rtx): Really correct typo.
7376
7377         PR c++/9393
7378         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
7379         * configure.in: Check for gettimeofday.
7380         * tree.c (flag_random_seed): Define.
7381         (default_flag_random_seed): New.
7382         (append_random_chars): Use flag_random_seed rather than trying
7383         to acquire randomness here.
7384         * tree.h (default_flag_random_seed): Declare.
7385         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
7386         descriptions.
7387         (decode_f_option): Handle -frandom-seed.
7388         (print_switch_values): Call default_flag_random_seed.
7389         * flags.h (flag_random_seed): Declare.
7390         * configure: Regenerate.
7391         * config.in: Regenerate.
7392         * config/alpha/t-crtfm: Use -frandom-seed.
7393
7394         * doc/extend.texi (Empty Structures): New.
7395
7396         * c-pch.c: Include flags.h.  Add comments to routines.
7397         (struct c_pch_validity): New.
7398         (get_ident): Update PCH file version number.
7399         (pch_init): Output current debugging type.
7400         (c_common_valid_pch): Check debugging type.
7401         * Makefile.in (c-pch.o): Update dependencies.
7402         * flags.h (debug_type_names): Declare.
7403         * toplev.c (debug_type_names): Move out of decode_g_option.
7404
7405 2003-04-11  Eric Christopher  <echristo@redhat.com>
7406
7407         * emit-rtl.c (gen_rtx): Fix typos.
7408
7409 2003-04-11  Richard Henderson  <rth@redhat.com>
7410
7411         * emit-rtl.c (gen_rtx): Zero '0' fields.
7412
7413 2003-04-11  Richard Henderson  <rth@redhat.com>
7414
7415         PR c++/10202
7416         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
7417         not COMPLETE_TYPE_P for re-invoking layout_decl.
7418
7419 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
7420
7421         * doc/bugreport.texi: Fix paragraph breaking between sections
7422         in preparation for TeXinfo's paragraph indentation fixes.
7423         * doc/extend.texi: Ditto.
7424         * doc/invoke.texi: Ditto.
7425         * doc/objc.texi: Ditto.
7426         * doc/gcov.texi: Wrap 'gcov' in @command{}.
7427         * doc/invoke.texi (Darwin Options): Add a preamble.
7428
7429 2003-04-11  Richard Henderson  <rth@redhat.com>
7430
7431         * config/i386/i386.c (tls_model_chars): Remove.
7432         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
7433         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
7434         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
7435         (tls_symbolic_operand_1): Likewise.
7436         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
7437         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
7438         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
7439         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
7440         bits "copied from i386.h" with default_encode_section_info.
7441
7442 2003-04-11  Richard Henderson  <rth@redhat.com>
7443
7444         * rtl.def (SYMBOL_REF): Add two 0 fields.
7445         * gengtype.c (adjust_field_rtx_def): Handle them.
7446         * print-rtl.c (print_rtx): Print them.
7447         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
7448         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
7449         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
7450         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
7451         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
7452         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
7453         (SYMBOL_FLAG_MACH_DEP): New.
7454         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
7455         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
7456         (assemble_static_space): Set SYMBOL_REF_FLAGS.
7457         (assemble_trampoline_template): Likewise.
7458         (output_constant_def, force_const_mem): Likewise.
7459         (default_encode_section_info): New.
7460         * output.h: Declare it.
7461         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
7462
7463 2003-04-11  Richard Henderson  <rth@redhat.com>
7464
7465         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
7466         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
7467         * optabs.c (init_optabs): Initialize them.
7468         (init_libfuncs): Use init_one_libfunc.
7469         * calls.c (expand_call): Use gcov_flush_libfunc.
7470         * expr.c (store_constructor): Use setbits_libfunc.
7471         * function.c (expand_main_function): Use init_one_libfunc.
7472         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
7473
7474 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
7475
7476         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
7477         documentation; add DECL_FRIEND_CONTEXT.
7478
7479 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7480
7481         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
7482         notes on linker selection and configuration for 64-bit HP-UX port.
7483         * doc/invoke.texi (hppa): Remove hppa text from description for
7484         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
7485         and -threads options.
7486
7487         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
7488         libc.a on libdld.sl when -static is specified and -nolibdld is not
7489         specified.
7490         * pa64-hpux.h (LIB_SPEC): Likewise.
7491         * pa-hpux11.h (LIB_SPEC): Likewise.
7492         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
7493         is not specified.
7494
7495 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
7496
7497         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
7498         not IDENTIFIER_LOCAL_VALUE.
7499
7500 2003-04-11  Richard Henderson  <rth@redhat.com>
7501
7502         PR c/10201
7503         * expr.c (expand_expr): Move DECL_RTL frobbing ...
7504         * stor-layout.c (layout_decl): ... here.
7505
7506 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
7507
7508         * doc/invoke.texi: Eliminate extra white-space caused by
7509         @gccoptlist{ on its own line.
7510         * doc/invoke.texi: Ensured there are two spaces between each option.
7511         * doc/invoke.texi: Re-wrapped option lines that were too wide.
7512         Added @gol to options that didn't have them.
7513
7514 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
7515
7516         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
7517         gcov-iov.h.
7518
7519         Simplify interface to gcov reading and writing.
7520         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
7521         gcov_alloc, gcov_modified, gcov_errored): Move into ...
7522         (struct gcov_var gcov_var): ... this static structure.
7523         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
7524         Return void.
7525         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
7526         read object.
7527         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
7528         (gcov_reserve_length): Remove.
7529         (gcov_write_tag): New.
7530         (gcov_write_length): Adjust.
7531         (gcov_read_summary, gcov_write_summary): Adjust.
7532         (gcov_eof, gcov_ok): Rename to ...
7533         (gcov_is_eof, gcov_is_error): ... here. Return error code.
7534         (gcov_save_position, gcov_resync): Rename to ...
7535         (gcov_position, gcov_seek): ... here.
7536         (gcov_skip, gcov_skip_string): Remove.
7537         (gcov_error): Remove.
7538         (gcov_open, gcov_close): Adjust.
7539         * gcov.c (find_source): Take const char *, copy it on allocation.
7540         (read_graph_file): Adjust.
7541         (read_count_file): Adjust.
7542         * libgcov.c (gcov_exit): Adjust.
7543         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
7544         tag_arc_counts, tag_summary): Return void. Adjust.
7545         (struct tag_format): Adjust proc member.
7546         (dump_file): Adjust gcov calls.
7547
7548 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
7549
7550         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
7551         mkfixinc.sh.
7552         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
7553         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
7554         build != host sysrooted builds.
7555         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
7556         TARGET_SYSTEM_ROOT even on sysrooted natives.
7557         * configure: Rebuilt.
7558
7559 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
7560
7561         * c-decl.c (struct binding_level): Add shadowed_tags and
7562         function_body; remove this_block, tag_transparent, and
7563         subblocks_tag_transparent; update comments.
7564         (clear_binding_level, lookup_tag_reverse): Kill.
7565         (make_binding_level): Use ggc_alloc_cleared or memset.
7566         (lookup_tag): Remove struct binding_level* parameter.  All
7567         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
7568         current_binding_level->tags if asked for thislevel_only or if
7569         we might have to diagnose "struct foo; union foo;"
7570         (pushlevel): Ignore argument.  Do not push another binding
7571         level on the transition from the parameters to the top level
7572         of the function body; just tweak the flags and proceed.
7573         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
7574         a function body, separate the parameter list from the
7575         top-level local variables.
7576         (set_block): Do nothing.
7577         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
7578         shadowed_tags if necessary.
7579         (warn_if_shadowing): Nuke the special case for local shadowing
7580         parameter.
7581         (pushdecl): Do not create a shadow entry if we are replacing
7582         an older decl in the same binding level.
7583         (pushdecl_function_level): Tweak for new way of indicating
7584         function scope.
7585         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
7586         (start_function): Don't set subblocks_tag_transparent.
7587         (finish_function): Fix up the binding_level stack for totally
7588         empty functions.  Otherwise, don't call poplevel.
7589
7590         * c-common.c (shadow_warning): MANDATORY argument is no longer
7591         necessary.  Always use plain warning.
7592         * c-common.h: Update to match.
7593
7594         * cfglayout.c (scope_to_insns_initialize): Clear block when we
7595         hit the FUNCTION_DECL.
7596         * function.c: Do not create cyclic tree structure.
7597
7598 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
7599
7600         * c-tree.h (struct lang_identifier): Replace global_value,
7601         local_value members with symbol_value, tag_value.  Kill
7602         implicit_decl and limbo_value.
7603         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
7604         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
7605         C_MISSING_PROTOTYPE_WARNED): Kill.
7606         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
7607         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
7608         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
7609         (implicit_decl_warning, lookup_name_current_level,
7610         record_function_scope_shadow): Don't prototype.
7611         (pushdecl_function_level): Prototype.
7612
7613         * c-decl.c (truly_local_externals): New variable.
7614         (struct binding_level): Adjust commentary.
7615         (get_function_binding_level, clear_limbo_values,
7616         record_function_scope_shadow): Kill.
7617         (lookup_name_current_level, implicit_decl_warning): Are now static.
7618         (any_external_decl, record_external_decl): New static functions.
7619         (clone_underlying type): Split out of pushdecl.
7620         (c_print_identifier): Update to match changes to struct
7621         lang_identifier.
7622         (poplevel): Delete #if 0 block.  Make externals invisible
7623         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
7624         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
7625         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
7626         (duplicate-decls): For real parm decl after a forward decl,
7627         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
7628         foo(...) { } with only a warning.  Say whether a previous
7629         declaration was implicit.
7630         (warn_if_shadowing): Now handles all shadowing, not just
7631         local-over-local.  Clarify comments.
7632         (pushdecl): Rewritten.  There is no longer a distinction
7633         between global and local symbol values; they're all
7634         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
7635         DECL_EXTERNAL decls, and use any_external_decl to check
7636         against previous externals.  Kill #if 0 blocks.  Don't
7637         tolerate error_mark_node being NULL.
7638         (pushdecl_top_level): Handle only those cases which
7639         Objective C (the only user) needs.
7640         (pushdecl_function_level): New function.
7641         (implicitly_declare): Create ordinary decls with
7642         C_DECL_IMPLICIT set.  Recycle old decls, however they got
7643         created.
7644         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
7645         for C_DECL_INVISIBLE symbols.
7646         (lookup_name_current_level): Likewise.  Use chain_member.
7647         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
7648         Use pushdecl_function_level.
7649         (builtin_function): Use C_DECL_INVISIBLE.
7650         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
7651         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
7652         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
7653         (identifier_global_value): Same.  Must scan
7654         global_binding_level in extremis.
7655
7656         * c-typeck.c (undeclared_variable): New static function, split
7657         from build_external_ref.
7658         (build_external_ref): Use DECL_CONTEXT, not
7659         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
7660         an instance variable.  Restructure for clarity.
7661         * objc/objc-act.c: Use identifier_global_value, not
7662         IDENTIFIER_GLOBAL_VALUE.
7663
7664 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
7665
7666         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
7667         not Working Paper.
7668         * doc/invoke.texi (C++ Dialect Options): Same.
7669
7670 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
7671
7672         * tree.c (tree_operand_check_failed): New function.
7673         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
7674         TREE_RTL_OPERAND_CHECK): New checking macros.
7675         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
7676         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
7677         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
7678         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
7679         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
7680         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
7681         checking macros.
7682
7683 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
7684
7685         PR inline-asm/8803
7686         * function.c (instantate_virtual_regs):  Verify that all ASM statements
7687         match after the virutal regs instantiation.
7688
7689 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
7690
7691         * ia64-protos.h (addp4_optimize_ok): New.
7692         * ia64.c (addp4_optimize_ok): New.
7693         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
7694         (*ptr_extend_plus_2): Ditto.
7695
7696 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
7697
7698         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
7699         not with convert_memory_address.
7700         (store_constructor): Ditto, and same for copy_size_rtx.
7701         (expand_expr): Ditto.
7702
7703 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
7704
7705         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
7706
7707 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
7708
7709         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
7710         even if it is configured to be write-through.
7711
7712 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
7713
7714         * config/s390/s390.c (larl_operand): Do not allow symbols
7715         marked with '@'.
7716         (s390_encode_section_info): Mark symbols with forced 1-byte
7717         alignment with '@'.
7718         (s390_strip_name_encoding): Strip '@'.
7719         (legitimize_pic_address): Handle symbols that are not valid
7720         LARL operands in 64-bit mode.
7721
7722 2003-04-10  Andrew Haley  <aph@redhat.com>
7723
7724         * tree-inline.c (inlinable_function_p): Disable inlining for
7725         synchronized methods.
7726
7727 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
7728
7729         * c-common.h (lang_statement_code_p): Remove declaration.
7730         (statement_code_p): Ditto.
7731         (c_common_stmt_codes): Define; list of c-common statement codes.
7732         (statement_code_p): New extern declaration.
7733         (STATEMENT_CODE_P): Define.
7734         (INIT_STATEMENT_CODES): Define.
7735         * c-common.c (statement_code_p): Kill the function, declare
7736         as an array of bools instead.
7737         (lang_statement_code_p): Remove.
7738         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
7739         (c_safe_from_p): Ditto.
7740         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
7741         to initialize the statement_code_p array.
7742         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
7743         statement_code_p.
7744         (copy_tree_r): Ditto.
7745         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
7746         statement tree codes.
7747         * cp/lex.c (cxx_init): Add missing print line break.  Use
7748         INIT_STATEMENT_CODES to initialize the statement_code_p array.
7749         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
7750         instead of statement_code_p.
7751         * cp/pt.c (tsubst_expr): Ditto.
7752         * cp/tree.c (verify_stmt_tree_r): Ditto.
7753         (cp_statement_code_p): Remove.
7754         (init_tree): Don't set lang_statement_code_p, it's gone.
7755
7756 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
7757             Zack Weinberg  <zack@codesourcery.com>
7758
7759         * regrename.c (struct du_chain): Use a bitfield for reg_class.
7760         * cse.c (struct qty_table_elem, struct table_elt, struct set):
7761         Use bitfields for fields holding enum rtx_code or
7762         enum machine_mode values.  Add comments explaining size choices.
7763
7764 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
7765
7766         * config/fp-bit.c (unpack_d): Handle pair of doubles with
7767         different signs correctly.
7768
7769 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
7770
7771         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
7772         (reg_pending_barrier): Make it of the enumeration type.
7773         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
7774         TRUE_BARRIER.
7775         (sched_analyze): Ditto.
7776         (sched_analyze_insn): Ditto.  Use anti-dependencies for
7777         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
7778         (init_deps_global): Initialize the barrier as NO_BARRIER.
7779
7780 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
7781
7782         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
7783         Check that asm insn starts on a new cycle.  Add nops after asm
7784         insn to end bundle.
7785         (bundling): Move insn type evaluation from the loop.  Call
7786         issue_nops_and_insn with the new parameter.  Ignore changing
7787         position for nops after asm insn.
7788
7789 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
7790
7791         * optabs.c: Comment that gen_add2_insn and others may actually
7792         return emitted insns, if the gen functions turn out to return
7793         emitted insns.
7794         * reload1.c (reload_cse_move2add): Cope with emitted insns from
7795         gen_add2_insn.
7796
7797 2003-04-09  Richard Henderson  <rth@redhat.com>
7798
7799         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
7800         but not tls_symbolic_operand.
7801         (ia64_expand_load_address): Remove scratch operand.
7802         (ia64_expand_tls_address): Split out from ia64_expand_move.
7803         (ia64_expand_move): Split symbolics only after reload.
7804         (ia64_emit_cond_move): New.
7805         * config/ia64/ia64-protos.h: Update.
7806         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
7807         (symbolic splitter): Accept SImode operands too.
7808         (cmove splitter): Use ia64_emit_cond_move.
7809
7810 2003-04-09  Nick Clifton  <nickc@redhat.com>
7811
7812         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
7813         newer.
7814         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
7815         instead of -mno-fpu.
7816         * config/arm/semi.h (ASM_SPEC): Likewise.
7817         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
7818         but only if -msoft-float is specified pass.  Otherwise pass
7819         -mfpu=softvfp.
7820
7821 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7822
7823         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
7824         free_EXPR_LIST_node.
7825
7826 2003-04-08  Roger Sayle  <roger@eyesopen.com>
7827
7828         * fold-const.c (fold):  Use "fold" following build in more places.
7829         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
7830         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
7831
7832 2003-04-08  Roger Sayle  <roger@eyesopen.com>
7833
7834         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
7835         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
7836         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
7837         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
7838         Delete function scope "fcode" variable to avoid shadowing.
7839
7840 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
7841
7842         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
7843         Take into account DWARF_INITIAL_LENGTH_SIZE.
7844
7845 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
7846
7847         * reorg.c (fill_slots_from_thread): When considering changing the
7848         insn following a reg-to-reg copy insn to use the source reg of the
7849         copy, bail out if there's overlap between the registers.
7850
7851 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7852
7853         * function.c (postponed_insns): New.
7854         (purge_addressof_1): Postpone processing of insns if addressofs
7855         are not put into stack.
7856         (purge_addressof): Process postponed insns.
7857
7858 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
7859
7860         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
7861         this is FP_MODE_DOUBLE .
7862         * sh.c (ra.h): #include.
7863         (push_regs): Add second parameter.  Changed all callers.
7864         If necessary, set fpscr before saving floating point registers.
7865         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
7866         do saves / restores with SZ == 1.
7867         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
7868         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
7869         registers are being restored, restore FPSCR only after restoring them.
7870
7871 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
7872
7873         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
7874         regardless of architecture.
7875         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
7876
7877 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
7878
7879         * sh.c (push_regs, calc_live_regs): Return int.  Take single
7880         HARD_REG_SET * parameter.  Changed all callers.
7881
7882 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
7883
7884         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
7885         GOTOFF operand.
7886         (legitimize_pic_address): Move plus outside the unspec.
7887         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
7888         for validity.
7889
7890 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
7891
7892         * gcov-io.h (gcov_save_position): Remove __inline__ from
7893         declaration.
7894
7895 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
7896
7897         * doc/install.texi: Use @command and @samp for single- and
7898         multi-word commands respectively.
7899         * doc/makefile.texi: Likewise.
7900         * doc/sourcebuild.texi: Likewise.
7901
7902 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
7903             Richard Henderson  <rth@redhat.com>
7904
7905         PR c/9516
7906         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
7907         favour of looping and tail recursion for TREE_LIST and binops.
7908
7909 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7910
7911         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
7912         for insns without luid.
7913
7914 2003-04-07  Glen Nakamura  <glen@imodulo.com>
7915
7916         PR opt/8634
7917         * explow.c (maybe_set_unchanging): Don't flag non-static const
7918         aggregate type initializers with RTX_UNCHANGING_P.
7919
7920 2003-04-07  Richard Henderson  <rth@redhat.com>
7921
7922         PR opt/8634
7923         * function.c (purge_addressof_1): Don't try arithmetics for
7924         unchanging memories.
7925
7926 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
7927
7928         * doc/sourcebuild.texi (Test Suites): Document testing support for
7929         gcov and profile-directed optimizations; describe gcc.misc-tests.
7930
7931 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
7932
7933         PR target/10077
7934         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
7935
7936 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
7937
7938         * doc/rtl.texi (Comparison operations): Update to
7939         record the allowed comparison modes.
7940
7941 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
7942
7943         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
7944         V2SI_type_node to opaque_V2SI_type_node.  Rename all
7945         V2SF_type_node to opaque_V2SF_type_node.
7946         (rs6000_init_builtins): Define opaque_V2SI_type_node and
7947         opaque_V2SF_type_node.
7948         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
7949         opaque_V2SF_type_node are opaque types.
7950
7951 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
7952
7953         * gcse.c (replace_store_insn): Use single_set.
7954
7955 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
7956
7957         Change gcov file interface to single file at a time.
7958         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
7959         Convert to C89 prototypes.
7960         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
7961         gcov_error, gcov_modified): New static variables.
7962         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
7963         functions.
7964         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
7965         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
7966         (gcov_read_summary, gcov_write_summary): Adjust.
7967         (gcov_save_position, gcov_reserve_length, gcov_write_length):
7968         Adjust.
7969         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
7970         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
7971         (da_file_position, da_file_seek, da_file_write, da_file_read):
7972         Remove.
7973         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
7974         * gcov.c (gcov_type): Don't typedef here.
7975         (IN_GCOV): #define
7976         (read_graph_file, read_count_file): Adjust.
7977         * gcov-dump.c (gcov_type): Don't typedef here.
7978         (IN_GCOV): #define.
7979         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
7980         Remove FILE parameter, adjust.
7981         (struct tag_format): Adjust proc member.
7982         (dump_file): Adjust.
7983         * libgcov.c (IN_LIBGCOV): #define.
7984         (gcov_exit): Adjust.
7985         * loop-init.c: Don't #include gcov-io.h
7986         * profile.c (struct counts_entry): New structure to hold counter
7987         values.
7988         (struct section_reference, struct da_index_entry): Remove.
7989         (bbg_file, da_file): Remove.
7990         (htab_counts_index_hash, htab_counts_index_eq,
7991         htab_counts_index_del): Replace with ...
7992         (htab_counts_entry_hash, htab_counts_entry_eq,
7993         htab_counts_entry_del): ... these.
7994         (cleanup_counts_index, index_counts_file): Remove.
7995         (read_counts_file): New function.
7996         (get_exec_counts): Adjust.
7997         (compute_branch_probabilities): Don't free the exec counts here.
7998         (branch_prob): Adjust.
7999         (init_branch_prob): Adjust.
8000         (end_branch_prob): Adjust.
8001
8002 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
8003
8004         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8005         -mfloat-gprs.
8006
8007         * config/rs6000/rs6000.c: Delete rs6000_fprs.
8008         Declare rs6000_float_gprs.
8009         Declare rs6000_float_gprs_string.
8010         (rs6000_parse_float_gprs_option): New.
8011         (rs6000_override_options): Genericize rs6000_parse_* calls to use
8012         rs6000_parse_yes_no_option.
8013         Change check for cpu=8540, to use TARGET_E500.
8014         (rs6000_parse_isel_option): Delete.
8015         (rs6000_parse_spe_option): Delete.
8016         (rs6000_parse_vrsave_option): Delete.
8017
8018         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
8019         Define rs6000_float_gprs_string.
8020         (TARGET_OPTIONS): Add rs6000_float_gprs option.
8021
8022         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
8023
8024         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
8025
8026 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
8027
8028         PR opt/10024
8029         * cfglayout.c (cfg_layout_redirect_edge):
8030         Redirect any branch edges unified with the fallthru one.
8031         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
8032         case fallthru edges when called via cfglayout.c
8033
8034 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
8035
8036         * c-typeck.c (output_init_element): Check for type == error_mark_node.
8037
8038 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
8039
8040         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
8041         split.
8042         (a splitter): Do zero-extension via HImode.
8043
8044 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
8045
8046         * doc/invoke.texi: Eliminate extra white-space caused by
8047         @gccoptlist{ on its own line.
8048         * doc/invoke.texi: Ensured there are two spaces between each option.
8049         * doc/invoke.texi: Re-wrapped option lines that were too wide.
8050         Added @gol to options that didn't have them.
8051
8052 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
8053
8054         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
8055
8056 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
8057
8058         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
8059         at the sizes of the relevant structures, rather than relying
8060         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
8061         sizes of any such we don't know about.  Use
8062         lang_hooks.identifier_size for IDENTIFIER_NODE.
8063
8064         (initializer_zerop): Use CONSTRUCTOR_ELTS.
8065         * tree.def: Update commentary.  Make fourth element of
8066         the definition for all 'c' and 'x' nodes zero.
8067
8068         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
8069         * langhooks-def.h: Update to match.
8070         * langhooks.c: New default, lhd_tree_size.
8071
8072         * c-common.def (SRCLOC): Kill.
8073         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
8074         Remove entirely - was already #if-ed out.
8075
8076
8077 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
8078
8079         * mklibgcc.in: Use a here document to avoid running afoul of
8080         shells that generate control-A from "echo \1".
8081
8082 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
8083
8084         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
8085         option.
8086
8087         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8088         rs6000_spe.
8089
8090         * config/rs6000/eabi.h (TARGET_E500): Define.
8091
8092         * config/rs6000/rs6000.h (TARGET_E500): Define.
8093         (TARGET_OPTIONS): Add spe= option.
8094         Declare rs6000_spe and rs6000_spe_string extern.
8095
8096         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
8097         Change TARGET_SPE to TARGET_E500.
8098         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
8099         !TARGET_FPRS.
8100         (print_operand): Same.
8101         (rs6000_generate_compare): Same.
8102         (output_cbranch): Same.
8103         (rs6000_spe): Declare.
8104         (rs6000_spe_string): Declare.
8105         (rs6000_override_options): Call rs6000_parse_spe_option.
8106         (rs6000_parse_spe_option): New.
8107
8108 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
8109
8110         * hashtable.c (gcc_obstack_init): Delete this function
8111         and everything related to it.
8112         * hashtable.h: Remove prototype.
8113         * bitmap.c (bitmap_element_allocate): Cleanup redundant
8114         defines.  Cleanup some unnecessary whitespace.
8115         * defaults.h (obstack_chunk_alloc): Redefine with
8116         appropriate casts for libiberty obstacks.
8117         (obstack_chunk_free): Ditto.
8118         (OBSTACK_CHUNK_SIZE): Define, default to 0.
8119         (gcc_obstack_init): Define as a call to _obstack_begin.
8120         * tree.c (print_obstack_statistics): Delete this unused
8121         function.
8122         * tree.h (obstack): Don't forward-declare.
8123         (print_obstack_statistics): Delete prototype.
8124         (print_obstack_name): Ditto.
8125         (gcc_obstack_init): Ditto.
8126         * rtl.h (gcc_obstack_init): Ditto.
8127         * java/jv-scan.c (gcc_obstack_init): Delete this
8128         function, its prototype and related defines.
8129         * java/jvgenmain.c (gcc_obstack_init): Delete this
8130         function, and related defines.
8131         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
8132         (obstack_chunk_free): Ditto
8133
8134 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
8135
8136         * dbxout.c (dbxout_handle_pch): Move prototype out from
8137         #if defined DBX_DEBUGGING_INFO.
8138
8139 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
8140
8141         * gcov.c (struct arc_info): Replace local_span with cycle.
8142         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
8143         (solve_flow_graph): Set is_call_return.
8144         (add_line_counts): Adjust. In block mode, blocks attach to last line.
8145         (accumulate_line_counts): Find graph cycles, not spanning tree.
8146         (output_branch_count): Adjust.
8147         (output_lines): Adjust.
8148         * doc/gcov.texi: Update.
8149
8150 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
8151
8152         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
8153         the second alternative to "#".
8154
8155 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
8156
8157         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
8158         (single_zero_operand): Likewise.
8159
8160 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
8161
8162         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
8163         * df.c: Include alloc-pool.h, not obstack.h.
8164         (df_ref_obstack): Remove.
8165         (df_ref_pool, df_link_pool): Add pools.
8166         (df_alloc): Init the new pools.
8167         (df_free): And free them.
8168         (df_link_create): Use the pools.
8169         (df_ref_create): Ditto.
8170
8171 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
8172
8173         * simplify-rtx.c: Fix formatting.
8174
8175 2003-04-05  Andrew Pinski  <apinski@apple.com>
8176
8177         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
8178         reg with reg1 == reg2 and offset1 = -8.
8179
8180 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
8181
8182         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
8183         multiply costs.  Correct Power4 divide costs.
8184         * config/rs6000/power4.md: Restore multiply and FP latency.
8185
8186 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8187
8188         * alias.c (find_base_term): Export.
8189         * rtl.h (find_base_term): Declare.
8190         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
8191         instead of flag_exceptions.  Move test for parameter passing ...
8192         (store_killed_in_insn): ... here.
8193
8194 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8195
8196         PR bootstrap/10267
8197         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
8198         for configuring.
8199
8200 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
8201
8202         * dbxout.c (scope_labelno): Add GTY.
8203         (have_used_extensions): Add GTY.
8204         (source_label_number): Add GTY.
8205         (lastfile): Add GTY.
8206         (lastfile_is_base): New.
8207         (base_input_file): New.
8208         (dbxout_handle_pch): New.
8209         (dbx_debug_hooks): Add handle_pch.
8210         (xcoff_debug_hooks): Likewise.
8211         (dbxout_function_end): Remove scope_labelno.
8212         (dbxout_init): Set base_input_file.
8213         (dbxout_handle_pch): New.
8214         (dbxout_source_file): Honour lastfile_is_base.
8215         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
8216         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
8217         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
8218         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
8219         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
8220         * debug.h (struct gcc_debug_hooks): Add handle_pch.
8221         * c-pch.c (pch_init): Don't call start_source_file, but do call
8222         handle_pch.
8223         (c_common_write_pch): Call handle_pch.
8224         (c_common_read_pch): Don't call start_source_file,
8225         or end_source_file.
8226
8227 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
8228
8229         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
8230         use of default attributes to agree MEM_ALIGN macro.
8231
8232 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
8233
8234         * dbxout.c (dbxout_type): When printing type index of range type
8235         whose bounds are printed in octal format, print type of parent type if
8236         it exists so enumerated type descriptions are not transformed
8237         into unsigned types.
8238
8239 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
8240
8241         * config/h8300/h8300-protos.h: Add a prototype for
8242         compute_a_shift_cc.
8243         * config/h8300/h8300.c (shift_one): Update the CC status.
8244         (shift_two): Likewise.
8245         (output_a_shift_cc): Set cc_inline and cc_special.
8246         (compute_a_shift_cc): New.
8247         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
8248
8249 2003-04-04  Richard Henderson  <rth@redhat.com>
8250
8251         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
8252
8253 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
8254
8255         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
8256         * fixinc/fixincl.x: Rebuilt.
8257         * fixinc/tests/base/stdio.h: Regenerated.
8258
8259 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
8260
8261         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
8262
8263 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
8264
8265         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
8266         (NORMAL_MODE).
8267         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
8268
8269 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8270
8271         * doc/contrib.texi (Contributors): Add entries for Wolfgang
8272         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
8273         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
8274         Danny Smith, and Ulrich Weigand.
8275         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
8276         entry.
8277
8278 2003-04-04  Nick Clifton  <nickc@redhat.com>
8279
8280         * config/sparc/sol2-bi.h: Revert previous delta.
8281         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
8282
8283 2003-04-04  Nick Clifton  <nickc@redhat.com>
8284
8285         * config/v850/v850.c (expand_prologue): Only use register save
8286         helper functions if long calls are not being used.
8287         Add a clobber of r11 id using long calls.
8288         (pattern_is_ok_for_prologue): Account for the extra clobber.
8289         (construct_save_jarl): Likewise.
8290         * config/v850/v850.md (prolog pattern): Do not use this pattern
8291         for v850e's.
8292
8293 2003-04-04  Andreas Schwab  <schwab@suse.de>
8294
8295         * stor-layout.c (layout_decl): Avoid syntax error in last change
8296         when PCC_BITFIELD_TYPE_MATTERS is defined but not
8297         EMPTY_FIELD_BOUNDARY.
8298
8299 2003-04-03  Jason Merrill  <jason@redhat.com>
8300
8301         PR c/10175
8302         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
8303         Look backwards for a line note.
8304
8305 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
8306
8307         * fix-header.c (read_scan_file): Defer switch processing.
8308
8309 2003-04-03  Matt Austern  <austern@apple.com>
8310
8311         * cpppch.c (reset_ht): Remove.
8312         (cpp_read_state): Remove loop to reset hashtable identifiers.
8313         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
8314         after pch file is written.
8315         * ggc.h (gt_pch_fixup_stringpool): Declare.
8316         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
8317         hashnode's value to another hashtable, then clear the original.
8318         (saved_ident_hash): Define.
8319         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
8320         store definitions in ident_hash, and clear ident_hash.
8321         (gt_pch_fixup_stringpool): Define.  Restore definitions from
8322         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
8323
8324 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
8325
8326         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
8327
8328 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
8329
8330         PR optimization/10157
8331         * gcse.c (can_copy_p): Rename it to can_copy.
8332         (can_copy_init_p): Remove.
8333         (compute_can_copy): Use can_copy instead of can_copy_p.
8334         (can_copy_p): New exported function. Call compute_can_copy.
8335         (hash_scan_set): Use it.
8336         (gcse_main): Don't call compute_can_copy.
8337         (bypass_jumps): Don't call compute_can_copy.
8338         * rtl.h (can_copy_p): Declare.
8339         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
8340         copy if the mode doesn't support copy operations.
8341
8342 2003-04-03  Jason Merrill  <jason@redhat.com>
8343
8344         * Makefile.in (unstrap): Also remove stage_last.
8345
8346         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
8347         (dwarf2out_source_line): Don't do anything if line==0.
8348
8349         * stor-layout.c (do_type_align): New fn, split out from...
8350         (layout_decl): ...here.  Do all alignment calculations for
8351         FIELD_DECLs here.
8352         (update_alignment_for_field): Not here.
8353         (start_record_layout, debug_rli): Remove unpadded_align.
8354         * tree.h (struct record_layout_info_s): Remove unpadded_align.
8355         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
8356         or DECL_MODE on the CONST_DECLs.
8357         (finish_struct): Don't mess with DECL_ALIGN.
8358
8359 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
8360
8361         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
8362
8363 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
8364
8365         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
8366         function is an interrupt handler.
8367
8368         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
8369         restoring target registers with EH_RETURN_STACKADJ_RTX; use
8370         multiple registers in round-robin fashion.
8371
8372 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8373
8374         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
8375         * system.h (CHAR_BITFIELD): New.
8376
8377 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
8378
8379         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
8380         and LE.
8381         (another peephole2): Likewise.
8382
8383 2003-04-03  Nick Clifton  <nickc@redhat.com>
8384
8385         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
8386         (DEF_ARCH64_SPEC): Likewise.
8387
8388 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
8389
8390         * i386.c (constant_address_p): Use legitimate_constant_p.
8391         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
8392
8393 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
8394
8395         * config/h8300/h8300-protos.h: Add a prototype for
8396         gtle_operator.
8397         * config/h8300/h8300.c (gtle_operator): New.
8398         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
8399         gtle_operator.
8400         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
8401         and LE.
8402
8403 2003-04-02  Richard Henderson  <rth@redhat.com>
8404
8405         * libgcc-std.ver (_Unwind_GetCFA): New.
8406         * unwind-dw2.c (_Unwind_GetCFA): New.
8407         * unwind-libunwind.c (_Unwind_GetCFA): New.
8408         * unwind-sjlj.c (_Unwind_GetCFA): New.
8409         * unwind.h: Declare it.
8410
8411 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
8412
8413         PR inline-asm/8088
8414         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
8415         when MMX/SSE is not available.
8416
8417 2003-04-02  Mike Stump  <mrs@apple.com>
8418
8419         * doc/install.texi (Specific): Update pointers to apple.com.
8420
8421 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
8422
8423         * i386.c (override_options):  Disable red zone by default on i386.
8424         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
8425         Do not test TARGET_64BIT together with TARGET_RED_ZONE
8426
8427 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
8428
8429         * config/h8300/h8300.md (a peephole2): Tighten the condition.
8430
8431 2003-04-02  Richard Henderson  <rth@redhat.com>
8432
8433         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
8434
8435 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
8436
8437         * config/h8300/h8300.md (a peephole2): New.
8438
8439 2003-04-02  Richard Henderson  <rth@redhat.com>
8440
8441         * except.c (sjlj_find_directly_reachable_regions): Recognize when
8442         must-not-throw region has been deleted.
8443
8444 2003-04-02  Richard Henderson  <rth@redhat.com>
8445
8446         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
8447         optimization when flag_exceptions not enabled.
8448
8449 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
8450
8451         * config/rs6000/rs6000.c
8452         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
8453         macros.
8454         (rs6000_issue_rate): Add case for 8540.
8455         (rs6000_use_sched_lookahead): New function.
8456
8457         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
8458         units into MU ones.
8459         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
8460         reservation before retirement.
8461         (ppc8540_multiply, ppc8540_load, ppc8540_store,
8462         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
8463         Remove additional cycle in the reservation before retirement.
8464         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
8465         reservation of ppc8540_issue.
8466
8467 2003-04-02  Andreas Schwab  <schwab@suse.de>
8468
8469         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
8470
8471 2003-04-01  Richard Henderson  <rth@redhat.com>
8472
8473         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
8474         notes for nothrow calls if flag_forced_unwind_exceptions.
8475         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
8476         (sjlj_find_directly_reachable_regions): Likewise.
8477         (reachable_handlers): Likewise.
8478         (can_throw_external): Likewise.
8479         (collect_one_action_chain): Record cleanups after catch-all and
8480         must-not-throw if flag_forced_unwind_exceptions.
8481         * flags.h (flag_forced_unwind_exceptions): Declare.
8482         * toplev.c (flag_forced_unwind_exceptions): New.
8483         (lang_independent_options): Add it.
8484         * doc/invoke.text: Add it.
8485
8486 2003-04-01  David Mosberger <davidm@hpl.hp.com>
8487
8488         * config/ia64/crti.asm: Clean up trailing whitespace.
8489         Remove trailing hashes (#) from identifiers.
8490
8491         * config/ia64/crtn.asm: Ditto.
8492
8493         * config/ia64/crtend.asm: Remove trailing hashes (#) from
8494         identifiers.
8495         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
8496         directives.  Drop explicit bundling---it just makes the code
8497         harder to read.  Don't save/restore gp needlessly.
8498
8499         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
8500         identifiers (they're only needed if the identifier would clash
8501         with a register name otherwise).
8502         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
8503         directives.  Drop explicit bundling---it just makes the code
8504         harder to read.
8505         (__do_jv_register_classes): Ditto.
8506         (.fini_array): Remove "progbits" (newer
8507         assemblers don't like wrong section-types).
8508         (.init_array): Ditto.
8509
8510 2003-04-01  Roger Sayle  <roger@eyesopen.com>
8511
8512         PR fortran/9974
8513         * gcse.c (reg_killed_on_edge): New function to test whether the
8514         given reg is overwritten by any instruction queued on an edge.
8515         (bypass_block): Ignore substitutions killed on incoming edges.
8516         Don't bypass outgoing edges that have queued instructions.
8517
8518 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
8519
8520         * real.h (EXP_BITS): Make room for...
8521         (struct real_value): ... added canonical bit.
8522         (struct real_format): Added pnan.
8523         (mips_single_format, mips_double_format, mips_extended_format,
8524         mips_quad_format): New.
8525         * real.c: Copy p to pnan in all formats.
8526         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
8527         (real_nan): Use pnan to compute significand's shift.
8528         (real_identical): Disregard significand in canonical
8529         NaNs.
8530         (real_hash): Likewise.  Take signalling into account.
8531         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
8532         Disregard significand bits in canonical NaNs.  Set all bits of
8533         canonical NaN if !qnan_msb_set.
8534         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
8535         qnan_msb_set to tell the base double format.
8536         (ibm_extended_format): Use 53 as pnan.
8537         (mips_single_format, mips_double_format, mips_extended_format,
8538         mips_quad_format): Copied from the corresponding ieee/ibm
8539         formats, with qnan_msb_set false.
8540         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
8541         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
8542         * config/mips/mips.c (override_options): Use mips_single_format
8543         and mips_double_format.  Default TFmode to mips_quad_format.
8544         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
8545         * config/mips/t-irix6: Likewise.
8546         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
8547         * config/fp-bit.c (pack_d, unpack_d): Obey it.
8548
8549 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
8550
8551         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
8552         (live_image_destructor): Reset image to initial state.
8553         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
8554
8555 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
8556
8557         * config/sparc/sparc.c (input_operand): Accept bare
8558         CONSTANT_P_RTX operands.
8559
8560 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8561
8562         * gcse.c (struct ls_expr): Added pattern_regs field.
8563         (ldst_entry): Initialize it.
8564         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
8565         (store_ops_ok): Use regs precomputed by them.
8566         (find_loads, store_killed_in_insn, load_kills_store): Change return
8567         type to bool.
8568         (store_killed_before, store_killed_after): Take position of register
8569         set in account.
8570         (reg_set_info): Store position of the setter.
8571         (gcse_main): Enable store motion.
8572         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
8573         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
8574         sharing.
8575         (simple_mem): Enable store motion of non-symbol mems.
8576         (regvec): Type changed.
8577         (LAST_AVAIL_CHECK_FAILURE): New.
8578         (compute_store_table_current_insn): New.
8579         (build_store_vectors): Computation of availability and anticipatability
8580         moved ...
8581         (compute_store_table, find_moveable_store): ... here.
8582         (delete_store): Remove senseless comment.
8583         (store_motion): Reorganize.
8584
8585 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
8586
8587         * config/mips/mips.c (override_options): Provide mappings for
8588         HI_REGNUM and LO_REGNUM.
8589         * config/mips/mips.h (MD_DBX_FIRST): Define.
8590
8591 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8592
8593         * combine.c (merge_outer_ops): Fix typo.
8594
8595         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
8596
8597 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
8598
8599         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
8600         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
8601         imul_compare.  Add lmul_compare.
8602         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
8603         in second pair of dispatch slots.  Model stores more accurately.
8604         Tweak multiply model.  Add bypasses for CR instructions dependent
8605         on complicated compares.
8606         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
8607         (muldi3): Add lmul_compare patterns.
8608         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
8609         and FPSTORE_UX to split instructions and add COMPARE,
8610         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
8611         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
8612         (rs6000_rtx_costs): Separate POWER4 multiply case.
8613
8614 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
8615
8616         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
8617         Do nothing if __builtin_return_address was not used.
8618
8619 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
8620
8621         * i386.md (test patterns):  Allow memory operand in operand1.
8622
8623 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
8624
8625         * testsuite/gcc.c-torture/execute/simd-3.c: New.
8626
8627         * expr.c (expand_expr): Handle VECTOR_CST.
8628         (const_vector_from_tree): New.
8629
8630         * varasm.c (output_constant): Handle VECTOR_CST.
8631
8632         * c-typeck.c (digest_init): Build a vector constant from a
8633         VECTOR_TYPE.
8634
8635         * config/rs6000/rs6000.c: Remove prototype for
8636         easy_vector_constant.
8637         (easy_vector_constant): Add mode parameter.  Rewrite to handle
8638         more easy constants.
8639         (rs6000_emit_move): Pass mode to easy_vector_constant.
8640         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
8641         (emit_easy_vector_insn): New.
8642         (easy_vector_same): New.
8643         (EASY_VECTOR_15): New macro.
8644         (EASY_VECTOR_15_ADD_SELF): New macro.
8645         (bdesc_2arg): Rename to xorv2si3.
8646         (easy_vector_constant_add_self): New.
8647         (input_operand): Allow vector constants.
8648
8649         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
8650         easy_vector_constant, easy_vector_constant_add_self.
8651         (EXTRA_CONSTRAINT): Add 'W'.
8652
8653         * config/rs6000/rs6000-protos.h: Add prototype for
8654         easy_vector_constant, emit_easy_vector_insn.
8655
8656         * config/rs6000/altivec.md (xorv8hi3): New.
8657         (xorv16qi3): New.
8658         Remove all _const0 patterns.
8659         (movv4si_internal): Rewrite to use code.  Add vector constant to
8660         vector alternative.  Add splitter.
8661         (movv8hi_internal): Same.
8662         (movv16qi_internal): Same.
8663         (movv4sf_internal): Same.
8664         Change the unspecs for vspltis* to use constants.
8665
8666         * config/rs6000/spe.md ("xorv4hi3"): New.
8667         ("spe_evxor"): Rename to xorv2si3.
8668         ("xorv1di3"): New.
8669         Remove all _const0 patterns.
8670         (movv2si_internal): Rewrite to use code.  Add vector constant to
8671         alternatives.  Add splitter.
8672         (movv4hi_internal): Add vector constant to alternatives.
8673         (movv1di_internal): Same.
8674         (movv2sf_internal): Same.
8675
8676 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
8677
8678         PR c/9936
8679         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
8680         variably-sized arrays in parameters.
8681         (set_save_expr_context): New function.
8682         (c_expand_body): Use it, via walk_tree.
8683
8684 2003-03-31  Eric Christopher  <echristo@redhat.com>
8685
8686         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
8687         (combinable_i3pat): Remove call to expand_field_assignment and
8688         #if 0'd code.
8689
8690 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
8691
8692         PR c++/10278
8693         * c-common.c (finish_label_address_expr): Handle the
8694         error_mark_node.
8695
8696 2003-03-31  Richard Henderson  <rth@redhat.com>
8697
8698         * real.c (real_identical): Reorg so as to not compare
8699         signalling for normals.
8700
8701 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
8702
8703         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
8704
8705 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
8706
8707         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
8708         notes as they are boggus.
8709         (m68hc11_gen_movqi): Likewise.
8710
8711 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
8712
8713         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
8714         save the soft registers after the frame pointer so that gdb can unwind
8715         the frame more easily.
8716         (expand_epilogue): Likewise in opposite order; allow to use X register
8717         as scratch if the return value is by reference.
8718
8719 2003-03-31  Jason Merrill  <jason@redhat.com>
8720
8721         PR java/10145
8722         * stor-layout.c (update_alignment_for_field): Respect
8723         DECL_USER_ALIGN for zero-length bitfields, too.
8724         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
8725         fields.
8726
8727 2003-03-31  Matt Austern  <austern@apple.com>
8728
8729         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
8730         (count_defs): Keep track of number of defs as well as total size.
8731         (write_defs): Put every definition in cpp_savedstate's defs array.
8732         (comp_hashnode): Define.  Comparison function for qsort.
8733         (cpp_write_pch_deps): Sort definitions before writing them.
8734         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
8735         (collect_ht_nodes): Define.
8736         (cpp_valid_state): When verifying that undefined identifiers in
8737         the pch file are still undefined, read a sorted list of undefined
8738         identifiers, collect all defined identifiers into a sorted list,
8739         and walk through both lists to make sure there's no match.
8740
8741 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
8742
8743         * config/h8300/h8300.md (a peephole2): New.
8744
8745 2003-03-31  Michael Matz  <matz@suse.de>
8746
8747         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
8748
8749 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
8750
8751         PR target/10177
8752         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
8753         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
8754         all call-clobbered registers as used.
8755
8756 2003-03-31  Michael Matz  <matz@suse.de>
8757
8758         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
8759         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
8760
8761 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
8762
8763         * gcov.c: Add -a & -u options.
8764         (struct arc_info): Add local_span, is_call_non_return,
8765         is_nonlocal_return, is_unconditional flags, remove is_call flag.
8766         (struct block_info): Add flags, is_call_site, is_nonlocal_return
8767         members. Make encodings a union with span member.
8768         (struct function_info): Add blocks_executed, line, src, line_next
8769         members.
8770         (struct coverage_info): Make branches a union with blocks member.
8771         (struct source_info): Add functions member.
8772         (object_summary, program_count): New global variables.
8773         (flag_all_blocks, flag_unconditional): New flags.
8774         (find_source, output_branch_count): New functions.
8775         (print_usage): Adjust.
8776         (options): Adjust.
8777         (process_args): Adjust.
8778         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
8779         <GCOV_TAG_BLOCKS>: Read flags.
8780         <GCOV_TAG_LINES>: Adjust.
8781         (read_count_file): Process SUMMARY tags.
8782         (solve_flow_graph): Set is_unconditional and clear is_call_site
8783         appropriately.
8784         (add_branch_counts): Adjust. Don't count unconditional branches.
8785         (add_line_counts): Deal with all-blocks mode, accumulate block
8786         coverage.
8787         (accumulate_line_counts): Adjust, generate local spanning tree for
8788         all-blocks mode.
8789         (output_lines): Adjust.
8790         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
8791         * doc/gcov.texi: Document.
8792
8793 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
8794
8795         * config/h8300/h8300.md: Organize peephole2's that transform
8796         (compare (reg:HI) (const_int)).
8797
8798 2003-03-31  Roger Sayle  <roger@eyesopen.com>
8799
8800         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
8801         (init_emit_once): Initialize dconstm2 and dconsthalf here.
8802         * real.h (dconstm2, dconsthalf): Add prototypes here.
8803         * real.c (real_sqrt): Use dconsthalf rather than local copy.
8804         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
8805         exp(x/2.0) remember to fold the division if possible.
8806         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
8807         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
8808         1.0/(x*x) and pow(x,0.5) as sqrt(x).
8809
8810 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
8811
8812         * config/h8300/h8300.md (a new peephole2): New.
8813
8814 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
8815
8816         * gcse.c (simple_mem): Return false for floating-point accesses
8817         if flag_float_store is true.
8818
8819 2003-03-30  Roger Sayle  <roger@eyesopen.com>
8820
8821         * gcse.c (gcse_constant_p): New function to identify constants
8822         suitable for constant propagation, including COMPARE with two
8823         integer constant arguments.
8824         (hash_scan_set): Use gcse_constant_p.
8825         (find_avail_set): Likewise.
8826         (cprop_insn): Likewise.
8827         (do_local_cprop): Likewise.
8828         (find_implicit_sets): Likewise.
8829         (find_bypass_set): Likewise.
8830
8831 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
8832
8833         * except.h: Remove definition of varray_type.
8834
8835 2003-03-30  Richard Henderson  <rth@redhat.com>
8836
8837         PR opt/10011, opt/10252:
8838         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
8839         before post-gcse cse pass.
8840
8841 2003-03-30  Roger Sayle  <roger@eyesopen.com>
8842
8843         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
8844
8845 2003-03-30  DJ Delorie  <dj@redhat.com>
8846
8847         * profile.c (instrument_edges): Make sure any newly created
8848         jump insns have correct jump label info.
8849
8850 2003-03-30  Richard Henderson  <rth@redhat.com>
8851
8852         * cfgbuild.c (make_edges): Use tablejump_p.
8853         * cfgcleanup.c (label_is_jump_target_p): Likewise.
8854         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
8855         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
8856         (try_redirect_by_replacing_jump): Likewise.
8857         (redirect_edge_and_branch): Likewise.
8858         * cse.c (fold_rtx): Likewise.
8859         * jump.c (delete_related_insns): Likewise.
8860         * rtlanal.c (get_jump_table_offset): Likewise.
8861         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
8862
8863 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8864
8865         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
8866         (STRICT2_WARN): Likewise.
8867
8868 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8869
8870         PR other/6955
8871         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
8872         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
8873
8874 2003-03-30  Richard Henderson  <rth@redhat.com>
8875
8876         PR c/10083
8877         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
8878         don't zero_extend const inputs.
8879
8880 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
8881
8882         * reload1.c (reload_cse_move2add): Fix a comment typo.
8883
8884 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
8885
8886         * config/h8300/h8300.md (a peephole2): Remove useless code.
8887
8888 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
8889
8890         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
8891         (*iorsi3_and_lshiftrt): Likewise.
8892         (*iorsi3_zero_extract): Likewise.
8893
8894 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
8895
8896         * config/h8300/h8300.md (*insv_si_8_8): New.
8897         (*insv_si_8_8_lshiftrt_8): Likewise.
8898         (a peephole2): Likewise.
8899
8900 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8901
8902         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
8903         Uniformly use bugfix instead of bug fix.
8904
8905 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8906
8907         PR doc/895
8908         * ONEWS: Remove those items that already appear in the EGCS
8909         release notes on our web pages.
8910
8911 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
8912
8913         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
8914         TARGET_HARD_FLOAT.  Reformat.
8915         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
8916
8917 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
8918
8919         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
8920         work on Solaris 2.5.1.
8921
8922 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
8923
8924         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
8925         section of h8300.md
8926         (*addsi3_and_nor_r_1): Likewise.
8927
8928 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
8929
8930         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
8931         set up before any trapping memory access if flag_non_call_exceptions.
8932
8933 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
8934
8935         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
8936
8937         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
8938
8939 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
8940
8941         * configure.in: Clarify comments.
8942         * configure: Regenerate.
8943
8944 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
8945
8946         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
8947         label even if pool empty when generating PIC.
8948         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
8949
8950 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
8951             Dhananjay Deshpande  <dhananjayd@kpit.com>
8952
8953         PR target/10205
8954         * config/h8300/h8300.c (h8300_initial_elimination_offset):
8955         Correct the offset computation when TARGET_NORMAL.
8956
8957 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
8958
8959         PR target/10067
8960         * config/sparc/sparc.md (jump pattern): Correct order
8961         when issuing the annuling marker.
8962
8963 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
8964
8965         PR c/8281
8966         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
8967         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
8968
8969 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
8970
8971         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
8972         globalize_label.
8973         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8974         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8975         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8976         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8977         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8978         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8979         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
8980
8981 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
8982
8983         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
8984         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
8985         notes after hoisting.
8986         (load_mems): Adjust replace_loop_mems call.
8987
8988 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
8989             Richard Henderson  <rth@redhat.com>
8990
8991         PR target/10114 and PR target/10084
8992         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
8993
8994 2003-03-27  Richard Henderson  <rth@redhat.com>
8995
8996         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
8997
8998 2003-03-27  Roger Sayle  <roger@eyesopen.com>
8999
9000         * fold-const.c (fold_inf_compare):  New function to simplify FP
9001         comparisons against +Infinity or -Infinity.
9002         (fold):  Optimize floating point comparisons against Infs and NaNs.
9003
9004 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
9005
9006         * libgcov.c: Provide only dummy functions if libc is not available.
9007
9008 2003-03-27  Richard Henderson  <rth@redhat.com>
9009
9010         * real.h (struct real_value): Add signalling.
9011         (EXP_BITS): Decrement.
9012         * real.c (get_canonical_qnan): Don't set MSB-1.
9013         (get_canonical_snan): Likewise.  Set signalling.
9014         (real_identical): Compare signalling.
9015         (round_for_format): Remove force-one-bit on code.
9016         (real_nan): Likewise.  Set signalling.
9017         (encode_ieee_single): Add force-one-bit code; honor signalling.
9018         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
9019         (decode_ieee_single): Set signalling.
9020         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
9021
9022 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
9023
9024         PR ada/9953
9025         * ada/Makefile.in (gnatlib configuration for HPUX): Split
9026         the general section for HPUX into specific sections for
9027         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
9028         11 case.
9029
9030 2003-03-27  Glen Nakamura  <glen@imodulo.com>
9031
9032         PR opt/10087
9033         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
9034         while incrementing giv.
9035         (record_biv): Check for duplicate biv locations and
9036         set (struct induction *) v->same if found.
9037
9038 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
9039
9040         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
9041         v0.9 API change: replace read of UNW_REG_HANDLER with
9042         unw_get_proc_info().
9043         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
9044         with unw_get_proc_info().
9045         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
9046         unw_get_proc_info().
9047
9048 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
9049
9050         * config/rs6000/8540.md: Use presence_set instead of absence_set.
9051
9052 2003-03-26  Richard Henderson  <rth@redhat.com>
9053
9054         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
9055
9056 2003-03-26  Roger Sayle  <roger@eyesopen.com>
9057
9058         PR bootstrap/10051, PR bootstrap/10169.
9059         * mips-tfile.c (init_file): Don't provide a static initializer.
9060         (initialize_init_file): Initialize the contents of init_file.
9061         (add_file): Call initialize_init_file if not already initialized.
9062
9063 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
9064
9065         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
9066         registers used for global asm variables.
9067         (s390_frame_info, s390_arg_frame_offset): Likewise.
9068         (s390_emit_prologue, s390_emit_epilogue): Likewise.
9069
9070 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
9071
9072         * config/rs6000/8540.md: New file.
9073
9074         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
9075         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
9076         reservations for imul.
9077
9078         * config/rs6000/rs6000.md: Include 8540.md.  Change
9079         delayed_compare onto mult_compare for insns generating
9080         multiplication.
9081         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
9082         New type attribute values.
9083
9084         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
9085         fpsimple instead of fp.
9086         (*divsf3_gpr): Use type vecfdiv instead of fp.
9087         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
9088         instead of vecfloat.
9089         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
9090         (spe_brinc): Use type brinc instead of veccomplex.
9091         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
9092         veccomplex.
9093         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
9094         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
9095         *movv2sf_internal): Define type attribute values for all
9096         alternatives.
9097         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
9098         of fpcompare.
9099         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
9100         instead of fpcompare.
9101
9102 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
9103
9104         * config/rs6000/power4.md: Allow delay between dispatch and
9105         function units for simple instructions.  Correct store units.
9106         Allow branch to occupy as many dispatch slots as necessary.
9107
9108 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
9109
9110         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
9111         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
9112         zero extend old to it.
9113         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
9114         operand.
9115
9116 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
9117
9118         PR target/7784
9119         * reload.c (find_reloads_address): Handle
9120         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
9121         all base registers.
9122
9123 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
9124
9125         PR other/10203
9126         * version.c: Reference the GCC web site in the URL.
9127
9128 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
9129
9130         * c-incpath.c (add_standard_paths): Add both "translated" and
9131         non-translated header paths.
9132
9133 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
9134
9135         * doc/install.texi (*-*-freebsd*): Update with known status.
9136
9137 2003-03-21  Jason Merrill  <jason@redhat.com>
9138
9139         PR optimization/10171
9140         * unroll.c (unroll_loop): Don't delete the jump at the end unless
9141         we also delete a jump at the beginning.
9142
9143 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
9144
9145         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
9146         contributor.
9147
9148 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
9149
9150         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
9151         constants are not expensive.
9152
9153 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
9154
9155         PR opt/10056
9156         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
9157         jump jumping to the next instruction.
9158         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
9159
9160 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9161
9162         * doc/passes.texi (Passes): Properly document that we do not
9163         perform jump2 any longer; remove command-line option -dJ.
9164
9165 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
9166
9167         PR optimization/8746
9168         * config/i386/i386.md (and promoting splitters): Disable HImode to
9169         SImode promoting when the sign bit matters and is not preserved, or
9170         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
9171         for size.
9172
9173 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
9174
9175         * config/h8300/h8300.md (a peephole2): Extend to support loads
9176         in QImode and HImode.
9177
9178 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
9179
9180         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
9181         _return_far
9182         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
9183         (MULTILIB_EXCEPTIONS): Likewise.
9184         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
9185         by calling some board support routine.
9186         ("call_value"): Likewise.
9187         ("*return_void"): Likewise for return.
9188         ("*return_16bit"): Likewise.
9189         ("*return_32bit"): Likewise.
9190         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
9191         for 68HC11 too.
9192         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
9193         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
9194         -mlong-calls for 68HC11.
9195         * config/m68hc11/larith.asm (declare_near): New macro.
9196         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
9197         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
9198         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
9199         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
9200         (__mulhi32): Likewise.
9201         (ret): Update macro for 68HC11.
9202         (__far_trampoline): Implement for 68HC11.
9203         (__call_a16, __call_a32, __return_void, __return_16): New support
9204         routines for 68HC11 memory bank switching calling support.
9205         (__return_32): Likewise.
9206
9207 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
9208
9209         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
9210
9211 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
9212
9213         * doc/install.texi (Testing): Mention test result links from build
9214         status pages.
9215
9216 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
9217
9218         * function.c (put_var_into_stack): Change bool parameter to int.
9219         (gen_mem_addressof): Likewise.
9220         * rtl.h (gen_mem_addressof): Likewise.
9221         * tree.h (put_var_into_stack): Likewise.
9222         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
9223         gen_mem_addressof or put_var_into_stack.
9224         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
9225         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
9226
9227 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
9228
9229         * config/h8300/h8300.md (a peephole2): New.
9230
9231 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
9232
9233         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
9234
9235 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9236
9237         * doc/contrib.texi (Contributors): Update Janis Johnson.
9238
9239 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
9240
9241         PR target/10072
9242         * combine.c (simplify_if_then_else): Check that the mode
9243         has MODE_INT class before applying the (OP Z (mult COND C2))
9244         transformation.
9245
9246 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
9247
9248         PR optimization/9414
9249         * config/sparc/sparc.md (widening peepholes): Use
9250         widen_memory_access instead of change_address.
9251
9252 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
9253
9254         PR c++/7086
9255         * c-typeck.c (c_mark_addressable): Adjust calls to
9256         put_var_into_stack.
9257         * expr.c (expand_expr): Likewise.
9258         * function.c (put_var_into_stack): Add rescan parameter.  Do not
9259         call fixup_var_refs when rescan is false.
9260         (gen_mem_addressof): Likewise.
9261         (assign_parms): Adjust calls to put_var_into_stack.
9262         (setjmp_protect): Likewise.
9263         (setjmp_protect_args): Likewise.
9264         * rtl.h (gen_mem_addressof): Change prototype.
9265         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
9266         * tree.h (put_var_into_stack): Change prototype.
9267
9268 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
9269
9270         PR middle-end/9967
9271         * builtins.c (expand_builtin_fputs): When optimizing for size,
9272         don't transform fputs into fwrite.
9273
9274 2003-03-23  Glen Nakamura <glen@imodulo.com>
9275
9276         PR c/8224
9277         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
9278         when signedness changes for division or modulus.
9279
9280 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
9281
9282         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
9283         globalize_label.
9284
9285 2003-03-23  Roger Sayle  <roger@eyesopen.com>
9286
9287         PR c/10178
9288         * stmt.c (expand_end_case_type): Check for overflow in range when
9289         determining whether to use a bit-test implementation.
9290
9291 2003-03-23  Richard Henderson  <rth@redhat.com>
9292
9293         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
9294         before flow2.
9295         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
9296
9297 2003-03-23  Richard Henderson  <rth@redhat.com>
9298
9299         PR opt/10116
9300         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
9301         from then_bb or else_bb after flow2.
9302
9303 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
9304
9305         * configure.in: Check whether it is necessary to link against
9306         libm to use ldexp.
9307         * configure: Regenerate.
9308         * Makefile.in: Add LDEXP_LIB substitution variable.
9309
9310 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
9311
9312         * config/h8300/h8300.md: Fix comment typos.
9313
9314 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9315
9316         * pa.c (output_cbranch): Fix typo in comment.
9317
9318 2003-03-22  Richard Henderson <rth@redhat.com>
9319
9320         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
9321         after reload.
9322
9323 2003-03-22  DJ Delorie  <dj at redhat dot com>,
9324         Bruce Korb  <bkorb at gnu dot org>
9325
9326         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
9327         buggy Solaris 2.6 mutex/cond initializers.
9328         (solaris_mutex_init): Rename to solaris_mutex_init_2.
9329         * fixinc/fixincl.x: Regenerate.
9330         * fixinc/tests/base/pthread.h: Update.
9331         * fixinc/fixincl.c(initialize): be explicit about the default case
9332         and indicate verbose level when being very, very verbose.
9333         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
9334
9335 2003-03-22  Andreas Jaeger  <aj@suse.de>
9336
9337         * config/i386/i386.c (ix86_init_machine_status): Return value.
9338
9339 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9340
9341         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
9342         conditional branch to the following instruction.  Use next_real_insn
9343         instead of next_active_insn.
9344         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
9345         instead of next_active_insn.
9346
9347 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
9348
9349         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
9350         instead of 'm' constraint in forced-split alternatives.
9351         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
9352         VALIDATE_ADDRESS parameter to operand_subword.
9353
9354 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
9355
9356         * config/h8300/h8300.c (notice_update_cc): Correctly handle
9357         the case where the set destination is STRICT_LOW_PART.
9358
9359 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
9360
9361         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
9362         c30 instead of a c40 processor.
9363
9364 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
9365
9366         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
9367
9368 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
9369
9370         * c-common.c: Include intl.h.
9371         (shadow_warning): Rewrite to allow better diagnostic translations.
9372         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
9373         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
9374         use it throughout.
9375         * Makefile.in (c-common.o): Add intl.h.
9376
9377 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
9378
9379         * config.gcc: Remove 'float_format'.
9380
9381         * fixproto: Define NULL and size_t in generated stdlib.h and
9382         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
9383         Rearrange file generation loop for readability.  Generate time.h,
9384         string.h if missing.
9385         * tsystem.h: Include <string.h>, <time.h> unconditionally.
9386         * config.gcc: Blow away POSIX defines.
9387
9388 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
9389
9390         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
9391
9392 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
9393
9394         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
9395         writing .interrupt command.
9396         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
9397         if it's a far or near function.
9398         ("call_value"): Likewise.
9399         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
9400         near attributes.
9401         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
9402         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
9403         (m68hc11_initial_elimination_offset): Set current_function_far
9404         according to attributes.
9405         (expand_prologue): Likewise.
9406         (trap_handler_symbol): New global to keep track of trap handlers.
9407         (m68hc11_encode_section_info): Mark symbol as far if needed; set
9408         trap symbol.
9409         (m68hc11_is_far_symbol): New function.
9410         (m68hc11_is_trap_symbol): New function.
9411         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
9412         (m68hc11_is_trap_symbol): Declare.
9413
9414 2003-03-21  Jan Hubicka  <jh@suse.cz>
9415
9416         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
9417         only when amount of saved regs changed.
9418         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
9419         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
9420
9421 2003-03-21  Jan Hubicka  <jh@suse.cz>
9422
9423         PR inline-asm/7916
9424         * function.c (instantiate_virtual_regs_lossage): New function.
9425         (instantiate_virtual_regs_1): Use it.
9426         (instantiate_virtual_regs): Do not continue in substition when insn has
9427         been deleted.
9428
9429 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
9430
9431         * combine.c (make_field_assignment): Fix a warning.
9432
9433 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
9434
9435         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
9436
9437 2003-03-21  Dale Johannesen  <dalej@apple.com>
9438
9439         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
9440         priority for R2 on Darwin.
9441         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
9442
9443 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
9444
9445         * combine.c (make_field_assignment): Remove unnecessary AND
9446         when storing into zero_extract.
9447
9448 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
9449
9450         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
9451         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
9452         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
9453         in comment.
9454
9455 2003-03-21  DJ Delorie  <dj@redhat.com>
9456
9457         * optabs.c (init_integral_libfuncs): Make sure we init at least up
9458         to "long long" size words.
9459
9460 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
9461
9462         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
9463         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
9464         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
9465
9466 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9467
9468         PR doc-bug/9813
9469         * doc/extend.texi: Move misplaced paragraph about underscores in
9470         variables in macros.
9471
9472 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
9473             Richard Henderson  <rth@redhat.com>
9474
9475         PR optimization/8366
9476         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
9477         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
9478         PIC+SYMBOLIC_CONST in other modes than Pmode.
9479         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
9480         the form PIC+SYMBOLIC_CONST as mode dependent.
9481
9482 2003-03-21  DJ Delorie  <dj@redhat.com>
9483
9484         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
9485         sure we always emit at least one insn.
9486
9487 2003-03-21  Christopher Faylor  <cgf@redhat.com>
9488
9489         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
9490         stub t-cygming. Use common target header cygming.h. Add extra
9491         c_target_obj and cxx_target_obj file. Default cygwin to posix
9492         threading. Enforce i386 as float format.
9493         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
9494         Remove cygwin.h as target header. Use common target header
9495         cygming.h  Enforce i386 as float format. Correct typo.
9496         * config/i386/cygming.h: New file, containing definitions
9497         common to mingw32 and cygwin.
9498         * config/i386/cygwin.h: Remove definitions common to cygwin and
9499         mingw.  Simplify special spec logic.  Define "wrappers" around
9500         certain include path defines to accommodate -mno-cygwin.
9501         Remove some #if 0'ed code.
9502         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
9503         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
9504         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
9505         * config/i386/mingw32.h: Remove definitions common to cygwin and
9506         mingw.
9507         (EXTRA_OS_CPP_BUILTINS): Adjust.
9508         (TARGET_VERSION): Define.
9509         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
9510         mingw32.h definitions.
9511         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
9512         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
9513         Add compilation rules for cygwin1.o cygwin2.o.
9514         * config/i386/cygwin1.c: New file.
9515         * config/i386/cygwin2.c: New file.
9516         * config/i386/t-cygming: New makefile stub.
9517
9518 2003-03-20  Richard Henderson  <rth@redhat.com>
9519
9520         * fold-const.c (extract_muldiv_1): Revert changing order of
9521         operands in case MULT_EXPR of 2003-02-16 patch.
9522
9523 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
9524         Merge changes from new-regalloc-branch
9525
9526         From Michael Matz  <matz@suse.de>
9527         * df.c (df_ref_record_1): Move init of loc to safe point.
9528         Only recurse on interesting things in parallels.
9529         Handle CLASS_CANNOT_CHANGE_MODE smarter.
9530         (df_uses_record): Ditto.
9531
9532         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
9533         it's already okay to use memory operands in (IE doesn't require
9534         adding another insn or anything).
9535
9536 2003-03-20  Richard Henderson  <rth@redhat.com>
9537
9538         PR middle-end/6348
9539         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
9540         different from word_mode.
9541
9542 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
9543
9544         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
9545         source operand to those that can be extracted with bld.
9546
9547 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
9548
9549         PR 10066
9550         * arm.md (UNSPEC_PIC_BASE): New constant.
9551         (pic_add_dot_plus_four): Wrap with unspec.
9552         (pic_add_dot_plus_eight): Likewise.
9553
9554 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
9555
9556         * config/h8300/h8300.md (*insv_si_1_n): New.
9557         (*insv_si_1_n_lshiftrt): Likewise.
9558
9559 2003-03-20  Roger Sayle  <roger@eyesopen.com>
9560
9561         * fold-const.c (fold_mathfn_compare): New function to simplify
9562         comparisons against built-in math functions.  Fold comparisons
9563         of sqrt against constants.
9564         (fold): Call fold_mathfn_compare when appropriate.
9565
9566 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
9567
9568         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
9569         information.
9570
9571 2003-03-20  Per Bothner  <pbothner@apple.com>
9572
9573         Various cleanups to help compile server.
9574
9575         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
9576         and pass that to _cpp_init_hashtable.
9577         (cpp_read_main_file):  Drop hash_table* argument; don't call
9578         _cpp_init_hashtable.
9579         * cpplib.h:  Update declarations to match.
9580         * c-opts.c (c_common_init_options):  Pass ident_hash to
9581         cpp_create_reader.
9582         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
9583         * fix-header.c (read_scan_file):  Likewise pass NULL table to
9584         cpp_create_reader rather than cpp_read_main_file.
9585
9586         * cppfiles.c (cpp_rename_file):  Generalized and renamed
9587         to cpp_change_file.
9588         * cpplib.h:  Update declaration to match.
9589         * c-opts.c (push_command_line_line, finish_options):  Change
9590         cpp_rename_file calls to cpp_change_file.
9591
9592         * line-map.c (add_line_map):  Allow leaving the outermost file.
9593         Allowing entering an outermost-file after the initial time.
9594
9595         * toplev.c (pop_srcloc):  Allow popping from initial file.
9596
9597 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
9598
9599         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
9600
9601 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
9602
9603         * config/h8300/h8300.md (a peephole2): New.
9604
9605 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
9606
9607         * config/h8300/h8300.md (*addsi3_and_r_1): New.
9608         (*addsi3_and_not_r_1): Likewise.
9609
9610 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
9611
9612         * Makefile.in (STRICT2_WARN): Add @WERROR@.
9613         (GCC_WARN_CFLAGS): Remove $(WERROR).
9614         (fixinc.sh-warn): New.
9615         * ada/Make-lang.in (ada-warn): Add $(WERROR).
9616         * cp/Make-lang.in (cp-warn): Add $(WERROR).
9617         * f/Make-lang.in (f-warn): Add $(WERROR).
9618         * java/Make-lang.in (java-warn): Add $(WERROR).
9619         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
9620
9621 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
9622
9623         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
9624         langhooks-def.h (lhd_tree_dump_dump_tree),
9625         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
9626         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
9627         true and false in return statements.
9628
9629 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
9630
9631         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
9632         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
9633         DWARF_INITIAL_LENGTH_SIZE.
9634         (output_compilation_unit_header, output_pubnames, output_aranges)
9635         (output_line_info): Output 0xffffffff escape value for 64-bit
9636         DWARF extension.
9637         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
9638
9639 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
9640
9641         * config/s390/s390.c (s390_preferred_reload_class): Do not
9642         force constants to the pool unless necessary.
9643         (s390_decompose_address): Prefer to use pointer as base,
9644         not index register.
9645         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
9646         Q alternative.
9647         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
9648         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
9649         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
9650         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
9651         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
9652
9653 2003-03-19  Jan Hubicka  <jh@suse.cz>
9654
9655         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
9656         * i386.c (use_fast_prologue_epilogue): Remove.
9657         (ix86_frame): New field save_regs-using_mov;
9658         (ix86_compute_frame_layout):  Decide on fast prologues;
9659         allocate saved registers in red zone.
9660         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
9661
9662 2003-03-19  Nick Clifton  <nickc@redhat.com>
9663
9664         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
9665
9666 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9667
9668         PR 10062
9669         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
9670         * pa-protos.h (output_lbranch): New prototype.
9671         * pa.c (compute_frame_size): Change size of the frame marker on the
9672         64-bit ports to 48 bytes.
9673         (pa_output_function_prologue): Document why SAVE_SP is set.
9674         (hppa_expand_prologue): Save previous stack pointer into frame marker
9675         on targets which use the hpux unwind library.
9676         (output_cbranch): Use output_lbranch.
9677         (output_lbranch): New function to output long unconditional branches.
9678         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
9679         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
9680         64-bit ports.
9681         * pa.md (jump): Use output_lbranch.
9682         (allocate_stack): New expander for dynamic stack allocation.
9683
9684 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
9685
9686         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
9687         when debugging on XCOFF targets.  Delete "abi" temp.
9688
9689         PR target/10073
9690         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
9691
9692 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
9693
9694         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
9695         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
9696         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
9697
9698         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
9699         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
9700         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
9701
9702 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
9703
9704         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
9705         the result of machopic_function_base_name.
9706         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
9707         string rather than a static array.
9708
9709         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
9710
9711         * gengtype.c: Include rtl.h.
9712         (enum rtx_code): Don't define.
9713         (rtx_format): Make declaration match rtl.h.
9714         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
9715         users.
9716         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
9717         * Makefile.in (gengtype.o): Update dependencies.
9718
9719 2003-03-18  Andreas Schwab  <schwab@suse.de>
9720
9721         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
9722         martin@blom.org.
9723
9724 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
9725
9726         * function.c (next_block_index): Mark with GTY.
9727
9728         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
9729
9730 2003-03-18  Richard Henderson  <rth@redhat.com>
9731
9732         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
9733         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
9734         until after reload.
9735
9736 2003-03-18  Richard Henderson  <rth@redhat.com>
9737
9738         * builtins.c (expand_builtin_unop): New target_mode operand;
9739         use it to convert the result to the correct mode.
9740         (expand_builtin): Update all callers.
9741
9742 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
9743
9744         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
9745
9746 2003-03-18  Jan Hubicka  <jh@suse.cz>
9747
9748         * i386.md:  Fix previous commit that mistakely applied the patch
9749         twice.
9750
9751         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
9752         canonicalized.
9753         (memrefs_conflict_p): Likewise.
9754         (addr_side_effect_eval): Canonicalize the constructed address.
9755
9756 2003-03-18  Jan Hubicka  <jh@suse.cz>
9757
9758         * i386.md (cvtts?2si peep2): New.
9759
9760 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
9761
9762         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
9763
9764 2003-03-18  Andreas Schwab  <schwab@suse.de>
9765
9766         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
9767         for format.
9768
9769 2003-03-17  Jason Merrill  <jason@redhat.com>
9770
9771         PR c++/10091
9772         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
9773         an unaligned member of TREE_ADDRESSABLE type.
9774
9775 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
9776
9777         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
9778         (TARGET_PROFILE_KERNEL): Define.
9779         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
9780         (PROFILE_BEFORE_PROLOGUE): Don't define.
9781         (PROFILE_KERNEL): Remove hacks.
9782         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
9783         (rs6000_stack_info): No need to save lr if just for profiling when
9784         TARGET_PROFILE_KERNEL.
9785         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
9786         (output_function_profiler): Localize label generation.  Emit code
9787         for kernel profiling.
9788
9789 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
9790
9791         * config/h8300/h8300-protos.h: Add a prototype for
9792         byte_accesses_mergeable_p.
9793         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
9794         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
9795         (a splitter): Likewise.
9796         (*iorsi3_ashift_16_ashift_24): Likewise.
9797         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
9798
9799 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9800
9801         * dwarf2asm.h: Delete obsolete comment.
9802         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
9803         dw2_asm_output_pcrel, dw2_asm_output_addr,
9804         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
9805         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
9806         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
9807         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
9808
9809 2003-03-17  Zack Weinberg <zack@codesourcery.com>
9810
9811         * c-tree.h (struct lang_identifier): Remove error_locus field.
9812         (IDENTIFIER_ERROR_LOCUS): Kill.
9813         (record_function_scope_shadow): New prototype.
9814         * c-typeck.c (build_external_ref): Don't complain if
9815         decl is error_mark_node.  When not at file scope, bind the
9816         decl's local value to error_mark_node to suppress further
9817         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
9818
9819         * c-decl.c (get_function_binding_level): New static function.
9820         (record_function_scope_shadow): New exported function.
9821         (c_make_fname_decl): Use get_function_binding_level.
9822
9823 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
9824
9825         * stmt.c (tail_recursion_args): Call promote_mode to set
9826         unsignedp flag correctly before calling convert_move.
9827
9828 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9829
9830         * loop-unroll.c (decide_peel_completely,
9831         decide_unroll_constant_iterations, decide_unroll_stupid,
9832         decide_unroll_runtime_iterations, decide_peel_simple): Set
9833         loop->has_desc.
9834
9835 2003-03-17  Jan Hubicka  <jh@suse.cz>
9836
9837         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
9838
9839 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
9840
9841         * function.c (assign_parms): For a struct value address passed as
9842         first argument, delay the function's result RTL setup code until
9843         after the emission of parameter conversions.
9844
9845 2003-03-17  Dave Love  <fx@gnu.org>
9846             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9847
9848         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
9849         __arch64__ to match Compaq cc.
9850
9851 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
9852
9853         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
9854         (c_common_init): Set EBCDIC in cpp options.
9855         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
9856         not conditional compilation.
9857         * cpplib.h (struct cpp_options): New entry EBCDIC.
9858
9859 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
9860
9861         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
9862
9863 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9864
9865         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
9866         argument to 0 for redirect_jump.
9867
9868 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
9869
9870         PR c++/8805
9871         * except.c (eh_region_u_cleanup): Add prev_try.
9872         (expand_eh_region_end_cleanup): Set it.
9873         (reachable_handlers): Use it to skip over cleanup blocks.
9874
9875 2003-03-17  Andreas Jaeger  <aj@suse.de>
9876
9877         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
9878
9879 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
9880
9881         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
9882         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
9883         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
9884         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
9885
9886 2003-03-16  Richard Henderson  <rth@redhat.com>
9887
9888         * simplify-rtx (simplify_binary_operation): Don't abort for
9889         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
9890
9891 2003-03-16  Richard Henderson  <rth@redhat.com>
9892
9893         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
9894         optimize_size as well.
9895
9896 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
9897
9898         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
9899         for D register to specify the low part of it, aka B.
9900         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
9901         the register if we are loading 1 or -1 to it; avoid using temp
9902         register when moving X/Y to Y/X.
9903         (m68hc11_gen_movqi): Likewise.
9904         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
9905
9906 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
9907
9908         PR optimization/9016
9909         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
9910         into the constant pool.
9911
9912 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
9913
9914         PR target/9164
9915         * tree.c (get_narrower): For extensions with unchanged bit number,
9916         return the unsignedness of the outer mode.
9917
9918 2003-03-16  Roger Sayle  <roger@eyesopen.com>
9919
9920         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
9921         to avoid "may be used uninitialized" warning on ia64-hpux.
9922         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
9923
9924 2003-03-16  Andreas Jaeger  <aj@suse.de>
9925
9926         * configure.in: Improve check for memcheck.h.
9927         * configure: Regenerated.
9928
9929 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
9930
9931         * doc/cppopts.texi: Remove documentation of -A-.
9932
9933 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
9934
9935         * doc/libgcc.texi: Remove @tie.
9936
9937 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
9938
9939         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
9940         (rtx_pair): Added new element update_label_nuses, renamed to
9941         replace_label_data.
9942         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
9943         replace_label_data instead of rtx_pair.
9944         * loop.c (load_mems): Likewise.
9945         * rtlanal.c (replace_label): Replace label in pool constants and in
9946         INSN_LIST (in REG_LABEL note).
9947         (subrtx_p): Renamed to rtx_referenced_p.
9948         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
9949         LABEL_REF with CODE_LABEL, traverse constants from pool.
9950
9951 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
9952             Zack Weinberg  <zack@codesourcery.com>
9953
9954         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
9955         * doc/libgcc.texi: New file.
9956         * doc/interface.texi: Delete paragraph about libgcc interface.
9957         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
9958
9959 2003-03-15  Jason Merrill  <jason@redhat.com>
9960
9961         PR debug/9039
9962         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
9963
9964         PR debug/6387
9965         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
9966         function DIEs at toplevel.
9967         (decls_for_scope): At -g1, don't descend into subblocks.
9968
9969 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
9970
9971         * varasm.c (struct rtx_const): Change type of un.addr member
9972         to struct holding an additional 'symbol' member.
9973         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
9974         with equal string addresses as equal.
9975         (simplify_subtraction): Adapt to struct rtx_const change.
9976
9977 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
9978
9979         * fix-header.c (read_scan_file): Read main file before handling -D.
9980
9981 2003-03-15  Roger Sayle  <roger@eyesopen.com>
9982
9983         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
9984         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
9985         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
9986         (find_sub_basic_blocks): Likewise.
9987         * cgraphunit.c (cgraph_expand_functions): Likewise.
9988         * dwarf2out.c (prune_unused_types): Likewise.
9989         * expr.c (store_field): Likewise.
9990         * genextract.c (print_path): Likewise.
9991         * haifa-sched.c (schedule_insn): Likewise.
9992         * lcm.c (compute_antinout_edge): Likewise.
9993         * loop-unroll.c (decide_peel_once_rolling): Likewise.
9994         * ra-colorize.c (ra_colorize_free_all): Likewise.
9995         * ra-debug.c (dump_igraph): Likewise.
9996         (debug_hard_reg_set): Likewise.
9997         * reg-stack.c (reg_to_stack): Likewise.
9998         * rtlanal.c (refers_to_regno_p): Likewise.
9999         * tracer.c (layout_superblocks): Likewise.
10000
10001 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
10002
10003         * fix-header.c (read_scan_file): Fix thinko.
10004
10005 2003-03-15  Glen Nakamura  <glen@imodulo.com>
10006
10007         * reload1.c (choose_reload_regs): Use && instead of ||
10008         with REG_CANNOT_CHANGE_MODE_P condition.
10009
10010 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
10011
10012         * Makefile.in: Update.
10013         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
10014         * c-lex.c (init_c_lex): Register builtins hook is dead.
10015         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
10016         (c_common_decode_option): Don't call cpp_handle_option.
10017         Handle -A, -D and -U.
10018         (handle_deferred_opts): Simplify.
10019         (finish_options): Define builtins and command line macros.
10020         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
10021         * cppinit.c: Don't include intl.h.
10022         (init_builtins): Rename cpp_init_builtins.  No hook to call.
10023         (init_library): Don't need to sort options.
10024         (cpp_create_reader): Don't set pending.
10025         (cpp_destroy): Don't free pending.
10026         (struct pending_option, cl_directive_handler, struct cpp_pending,
10027         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
10028         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
10029         cl_options, cpp_handle_option): Remove.
10030         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
10031         cpp_finish_options): Remove.
10032         (cpp_init_builtins): New.
10033         * fix-header.c (read_scan_file): Update to handle -D.  Fix
10034         handling of -I.  Replace call to cpp_finish_options.
10035
10036 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10037
10038         PR optimization/9387
10039         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
10040         for conditional returns.
10041
10042 2003-03-14  Jason Merrill  <jason@redhat.com>
10043
10044         PR optimization/6871
10045         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
10046
10047 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
10048
10049         * c-opts.c (finish_options): New.
10050         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
10051         (missing_arg): Handle OPT_include and OPT_imacros.
10052         (c_common_init, c_common_parse_file): Use finish_options.
10053         (handle_deferred_opts): Update.
10054         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
10055         (cpp_finish_options): Don't handle -imacros here.
10056         (no_fil): Remove.
10057         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
10058
10059 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
10060
10061         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
10062         rs6000_maybe_dead if !fromprolog.
10063
10064 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
10065
10066         * Makefile.in: Update.
10067         * c-common.h (fe_file_change, pp_file_change): New.
10068         * c-lex.c (init_c_lex): Don't set cb_file_change.
10069         (c_common_parse_file): Move to c-opts.c.
10070         (cb_file_change): Rename fe_file_change.
10071         * c-opts.c: Include debug.h.
10072         (warn_unused_macros, include_cursor): New.
10073         (push_command_line_include, cb_file_change): New.
10074         (COMMAND_LINE_OPTIONS): Handle -include.
10075         (c_common_decode_option): Use local warn_unused_macros.
10076         Handle OPT_include.
10077         (c_common_post_options): Set file change callback.
10078         (handle_deferred_opts): Skip -include.  Don't free the array.
10079         (c_common_init): Call cpp_finish_options here, and push an
10080         initial -include file.
10081         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
10082         (preprocess_file): Don't call cpp_finish_options.
10083         (init_pp_output): Don't set the file change callback.
10084         (pp_file_change): Return if no line commands or no output.
10085         * cpphash.h (next_include_file, first_unused_line): Remove.
10086         * cppinit.c (include_head, include_tail): Remove.
10087         (cpp_destroy): Don't free -include chain.
10088         (cpp_finish_options): Don't handle -include, or worry about
10089         -Wunused-macros.
10090         (_cpp_maybe_push_include_file): Remove.
10091         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
10092         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
10093         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
10094         Used flag is set based upon the state of the warn_unused_macros
10095         flag, and so use of first_unused_line is unnecessary.
10096
10097 2003-03-13  Jan Hubicka  <jh@suse.cz>
10098
10099         * cselib.c (clear_table): Do not take argument; always clear just
10100         used slots.
10101         (cselib_process_insn):  Update call of clear_table
10102         (cselib_init): Do not call clear_table.
10103         (cselib_finish): Clear table.
10104
10105         * cse.c (count_reg_usage): Do not check side_effects_p.
10106         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
10107         like noop.
10108         (find_reg_equal_equiv_note): Do not use find_reg_note.
10109
10110 2003-03-14  Richard Henderson  <rth@redhat.com>
10111
10112         PR target/9700
10113         * config/alpha/alpha.c (alpha_va_start): Account for
10114         current_function_pretend_args_size in the AP offset.
10115
10116         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
10117         (INITIAL_ELIMINATION_OFFSET): Move out of line.
10118         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
10119         (alpha_initial_elimination_offset) New.
10120         * config/alpha/alpha-protos.h: Update.
10121
10122 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
10123
10124         * stmt.c (expand_start_case): Call emit_queue ().
10125
10126 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
10127             Alexandre Oliva  <aoliva@redhat.com>
10128
10129         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
10130         words in new abis.
10131
10132 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
10133
10134         PR optimization/8396
10135         * tree-inline.c (initialize_inlined_parameters): Make sure the value
10136         of read-only constant arguments is passed with the right type.
10137
10138 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
10139
10140         * doc/extend.texi (Function Names): Make the example compilable.
10141
10142 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
10143
10144         * config/rs6000/rs6000.c (processor_target_table): Really allow
10145         GP optional instructions on Power4.
10146
10147 2003-03-13  Roger Sayle  <roger@eyesopen.com>
10148
10149         * calls.c (flags_from_decl_or_type): Factor and remove redundant
10150         conditional tests.
10151
10152 2003-03-13  Mike Stump  <mrs@apple.com>
10153
10154         * ggc-page.c (struct page_entry): Remove varray.h header.
10155         Add index_by_depth field.
10156         Remove save_in_use_p field.
10157         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
10158         by_depth_max, by_depth, and save_in_use fields.
10159         (INITIAL_PTE_COUNT): Add.
10160         (save_in_use_p_i): Add.
10161         (save_in_use_p): Add.
10162         (adjust_depth): Add.
10163         (move_ptes_to_front): Add.
10164         (push_depth): Add.
10165         (push_by_depth): Add.
10166         (prefetch): Add.
10167         (free_page): Add support for and use faster data structures.
10168         (ggc_alloc): Likewise.
10169         (init_ggc): Likewise.
10170         (ggc_recalculate_in_use_p): Likewise.
10171         (ggc_pop_context): Likewise.
10172         (clear_marks): Likewise.
10173         (ggc_pch_read): Likewise.
10174         * Makefile.in (ggc-page.o): Remove varray.h.
10175
10176 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
10177
10178         * ChangeLog: Rotated last year's entries to...
10179         * ChangeLog.8: New.
10180
10181         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
10182         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
10183         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
10184         config/ia64/ia64-protos.h, config/ia64/ia64.c,
10185         config/ia64/ia64.h, config/ia64/ia64.md,
10186         config/ia64/itanium1.md, config/ia64/itanium2.md,
10187         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
10188         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
10189
10190 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
10191
10192         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
10193         Differentiate endianness.
10194         (s6000_override_options): Use cpu type instead of TARGET_SPE.
10195
10196 2003-03-13  Nick Clifton  <nickc@redhat.com>
10197
10198         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
10199         LDM instructions with writeback enabled.
10200         (output_return_instruction): Likewise.
10201
10202         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
10203         (CALL_USED_REGISTERS): Remove definition.
10204         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
10205
10206 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
10207
10208         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
10209         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
10210         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
10211         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
10212         (rs6000_legitimize_address): Formatting.
10213         (rs6000_emit_move): Likewise.
10214         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
10215         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
10216         (rs6000_elf_select_section): Comment reason for shlib being
10217         set for ABI_AIX.
10218         (rs6000_elf_unique_section): Likewise.
10219         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
10220         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
10221         as well as flag_pic.
10222         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
10223         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
10224         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
10225
10226 2003-03-13  Richard Henderson  <rth@redhat.com>
10227
10228         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
10229
10230         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
10231         (ia64_gp_save_reg): Remove.
10232         (struct ia64_frame_info): Move to the beginning of the file;
10233         add reg_save_gp.
10234         (ia64_expand_call): Rearrange for new call patterns.
10235         (ia64_reload_gp): New.
10236         (ia64_split_call): New.
10237         (ia64_compute_frame_size): Allocate reg_save_gp.
10238         (ia64_expand_prologue): Save reg_save_gp.
10239         (ia64_expand_epilogue): Don't restore gp.
10240         (ia64_hard_regno_rename_ok): Remove R4 hack.
10241         (ia64_function_ok_for_sibcall): New.
10242         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
10243         call try_split on sibcall pattern.
10244         * config/ia64/ia64-protos.h: Update.
10245         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
10246         Rename from nopic versions.  Confiscate 2nd argument to call as
10247         a marker.
10248         (call_pic, call_value_pic, sibcall_pic): Remove.
10249         (call_gp, call_value_gp, sibcall_gp): New.
10250         (builtin_setjmp_setup): Remove.
10251         (builtin_setjmp_receiver): Call ia64_reload_gp.
10252
10253 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10254
10255         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
10256         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
10257         "GNU CC" with "GCC".
10258
10259         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
10260         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10261         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
10262         GCC, not GNU CC.
10263
10264         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
10265         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
10266
10267         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
10268         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
10269         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
10270         "GNU CC" with "GCC".
10271
10272         * config/v850/lib1funcs.asm, config/v850/rtems.h,
10273         config/v850/v850-c.c, config/v850/v850-protos.h,
10274         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
10275         GCC, not GNU CC.
10276
10277         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
10278         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
10279         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
10280         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
10281         GNU CC.
10282
10283 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
10284
10285         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
10286
10287 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10288
10289         * fixinc/fixinc.interix: Remove dead code (most of it).
10290         * fixinc/fixinc.dgux: Remove.
10291
10292         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
10293         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
10294
10295 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10296
10297         * pa.c (pa_init_builtins): Fix warning.
10298
10299 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
10300
10301         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
10302         (ASM_OUTPUT_XDATA_SHORT): Remove.
10303         (ASM_OUTPUT_XDATA_INT): Remove.
10304         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
10305         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
10306         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
10307         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
10308
10309 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
10310
10311         PR c++/7050
10312         * expr.c (store_expr): Don't attempt to store void-typed trees,
10313         just evaluate them for side effects.
10314
10315 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
10316
10317         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
10318         * cppinit.c (push_include): Move with changes to cppfiles.c.
10319         (cpp_read_main_file): Mark named operators here...
10320         (cpp_finish_options): ...not here.  Update.
10321         (_cpp_maybe_push_include_file): Update.
10322         * cpplib.h (cpp_push_include, cpp_rename_file): New.
10323
10324 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10325
10326         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
10327         _gcc_COMPUTE_GAS_VERSION.
10328         * configure.in: Use them.
10329         * configure: Regenerate.
10330
10331 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
10332
10333         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
10334         to detect carry.
10335         (subdi3): Reorder emitted instructions.
10336
10337 2003-03-12  Andreas Jaeger  <aj@suse.de>
10338
10339         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
10340         NETBSD_OS_CPP_BUILTINS_LP64.
10341
10342 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10343
10344         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
10345         Rearrange.  Reorganize.
10346         * configure.in: Rearrange.
10347         * configure: Regenerate.
10348
10349 2003-03-12  Andreas Jaeger  <aj@suse.de>
10350
10351         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
10352         LP64 targets.
10353
10354         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
10355         _LP64.
10356
10357         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
10358         _LP64 macros here.
10359         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
10360
10361         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
10362         NETBSD_OS_CPP_BUILTINS_LP64.
10363         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
10364         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
10365
10366         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
10367
10368 2003-03-12  Jan Hubicka  <jh@suse.cz>
10369
10370         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
10371
10372 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
10373
10374         Fix PR target/9797 and PR c/9853.
10375         * stmt.c (expand_decl_init): Call push_temp_slots () and
10376         pop_temp_slots ().
10377
10378 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
10379
10380         * sh.c: Include basic-block.h.
10381         (sh_output_mi_thunk, emit_load_ptr): New functions.
10382         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
10383
10384 2003-03-12  Nick Clifton  <nickc@redhat.com>
10385
10386         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
10387         (CALL_USED_REGISTERS): Likewise.
10388         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
10389         describing how this value is calculated.
10390
10391 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
10392
10393         * configure.in (rlim_t): Define to long if no valid definition
10394         found in sys/resource.h.
10395         * config.in, configure: Regenerate.
10396
10397 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
10398
10399         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
10400         TARGET_OS_CPP_BUILTINS.
10401         * config/mcore/mcore-pe.h: Similarly.
10402         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
10403         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
10404
10405 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
10406
10407         PR c/9928
10408         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
10409         only if it is a VAR_DECL.
10410
10411 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
10412
10413         PR optimization/9888
10414         * config/i386/i386.md (jcc_1): Fix range.
10415         (jcc_2): Likewise.
10416         (jump): LIkewise.
10417         (doloop_end_internal): Likewise.
10418
10419 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
10420
10421         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
10422         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
10423         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
10424         DLL_IMPORT_EXPORT_PREFIX and "i."
10425         (i386_pe_dllexport_name_p): Here.
10426         (i386_pe_dllimport_name_p): Here.
10427         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
10428         not 9 chars when getting identifier name.
10429         (i386_pe_mark_dllimport): Here.
10430         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
10431         not 9 chars when getting identifier name. Correct comment.
10432         (i386_pe_strip_name_encoding): Here. Add comments for different
10433         cases.
10434         (gen_fastcall_suffix): Break down xmalloc() argument to
10435         components.
10436         (gen_stdcall_suffix): Likewise.
10437         Update copyright year.
10438
10439 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
10440
10441         PR optimization/9888
10442         * config/i386/i386.md (movsi_1): Remove special alternatives
10443         for %eax register.
10444         (movsi_1_nointernunit): Likewise.
10445         (movhi_1): Likewise.
10446         * config/i386/i386.c (memory_address_length): Do not use
10447         short displacement when there is no base.
10448         (ix86_attr_length_address_default): Handle LEA instructions.
10449
10450 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
10451
10452         * c-cppbuiltin.c (builtin_define_std): Make non-static.
10453
10454 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
10455
10456         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
10457         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
10458         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
10459         * config/freebsd.h (CPP_PREDEFINES): Remove.
10460         (TARGET_OS_CPP_BUILTINS): New.
10461         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
10462         instead of TARGET_OS_CPP_BUILTINS.
10463         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
10464
10465 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
10466
10467         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
10468
10469 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
10470
10471         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
10472         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
10473
10474         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
10475
10476 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
10477
10478         * toplev.c (independent_decode_option): Return success for --help,
10479         --target-help and --version.
10480
10481 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
10482
10483         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
10484         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
10485         specified.
10486         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
10487         DRIVER_SELF_SPECS.
10488         (LINK_SPEC): Let endian options affect the linker emulation name.
10489
10490 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
10491
10492         * sh.md (reload_inqi): Fix mode for source in second set.
10493
10494 2003-03-11  Jan Hubicka  <jh@suse.cz>
10495
10496         * cselib.c (cselib_invalidate_mem_1): Move too ...
10497         (cselib_invalidate_mem): ... here; use new list
10498         (dummy_val, first_containing_mem): New static variables.
10499         (clear_table): Initialize first_containing_mem.
10500         (discard_useless_values):  Compact the containing_mem list.
10501         (add_mem_for_addr): Add to the list.
10502         * cselib.h (cselib_val): Add next_containing_mem.
10503
10504 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
10505
10506         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
10507         instructions for e500.
10508
10509 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
10510
10511         * Makefile.in: Update.
10512         * c-cppbuiltin.c: Include tm_p.h.
10513
10514 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
10515
10516         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
10517
10518         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
10519         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
10520         (_Unwind_SetGR): Same.
10521         (_Unwind_GetGRPtr): New.
10522         (_Unwind_SetGRPtr): New.
10523         (uw_update_context_1): Use accesor functions instead of accessing
10524         context->reg[] directly.
10525         (uw_install_context_1): Same.
10526         (execute_cfa_program): Same.
10527         (__frame_state_for): Same.
10528
10529         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
10530         the synthetic register offset.
10531
10532         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
10533
10534 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
10535
10536         * config/cris/cris.md: Remove lingering EGCS reference.
10537         ("*extopqihi_side_biap"): For HI operation, match
10538         cris_additive_operand_extend_operator, not
10539         cris_operand_extend_operator.  Adjust condition.
10540         ("*extopqihi_side", "*extopqihi"): Ditto.
10541         ("*extopqisi_side_biap"): Correct operand numbers in condition.
10542         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
10543         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
10544         ("*extophisi_swap"): Ditto.
10545         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
10546         PLUS, not cris_operand_extend_operator.  Adjust condition and
10547         output template.
10548         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
10549         * config/cris/cris.h (PREDICATE_CODES): Add
10550         cris_additive_operand_extend_operator.
10551         * config/cris/cris.c (cris_additive_operand_extend_operator):
10552         New predicate.
10553
10554 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
10555
10556         * df.c (read_modify_subreg_p): Change from static to global.
10557         * df.h (read_modify_subreg_p): Add prototype.
10558         * sched-deps.c (sched_analyze_1): Generate true dependency for
10559         strict_low_part, certain subregs and zero/sign_extract.
10560
10561 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
10562
10563         * Makefile.in: Update.
10564         * c-common.c: Don't include real.h or except.h.
10565         (REGISTER_PREFIX): Remove.
10566         (builtin_define_std, builtin_define_with_value,
10567         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
10568         builtin_define_type_max, builtin_define_type_precision,
10569         builtin_define_float_constants): Move to c-cppbuiltin.c.
10570         (c_stddef_cpp_builtins): New.
10571         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
10572         * c-cppbuiltin.c: New, extracted from c-common.c.
10573         (define__GNUC__): New.
10574         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
10575         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
10576         (cpp_unique_options): Don't support no-gcc.
10577         (do_spec_1): Remove support of version specs.
10578         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
10579         * doc/passes.texi: Update.
10580         * doc/tm.texi: Update.
10581
10582 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
10583
10584         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
10585
10586 2003-03-10  Andrew Pinski  <apinski@apple.com>
10587
10588         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
10589         is on should not get here.
10590         (machopic_indirect_data_reference): If dynamic-no-pic is on just
10591         generate high/low parts of the address.
10592         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
10593         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
10594         symbol and labels with a new reg.  Dynamic-no-pic does not have a
10595         pic_offset_table_rtx.
10596         (machopic_select_section): Change references of flag_pic to
10597         MACHOPIC_INDIRECT.
10598         (machopic_asm_out_destructor): Likewise.
10599         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
10600         reference of flag_pic to MACHOPIC_INDIRECT.
10601         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
10602         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
10603         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
10604         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
10605         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
10606         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
10607         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
10608         (TARGET_DYNAMIC_NO_PIC): Define.
10609         (SUBTARGET_SWITCHES): Define, have sub-target switches for
10610         dynamic-no-pic.
10611         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
10612         rs6000_override_options to here. Dynamic-no-pic overrides
10613         pic.
10614         (CC1_SPEC): Change from not static then pic to not static and not
10615         dynamic-no-pic then pic.
10616         * config/rs6000/rs6000.c (rs6000_override_options): Move the
10617         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
10618         (rs6000_legitimize_reload_address): Add case for loading floating in
10619         dynamic-no-pic.
10620         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
10621         of flag_pic to MACHOPIC_INDIRECT.
10622         (secondary_reload_class): Conditional change the reference of
10623         flag_pic to MACHOPIC_INDIRECT.
10624         (rs6000_output_mi_thunk): Change reference of flag_pic to
10625         MACHOPIC_INDIRECT.
10626         (output_profile_hook): Likewise.
10627         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
10628         * config/rs6000/rs6000.md (movdf_low): Add the case for
10629         MACHO_DYNAMIC_NO_PIC_P.
10630         (call): Change references for flag_pic in TARGET_MACHO to
10631         MACHOPIC_INDIRECT.
10632         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
10633         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
10634         * doc/invoke.texi (-mdynamic-no-pic): Document.
10635
10636 2003-03-10  Devang Patel  <dpatel@apple.com>
10637
10638         PR c++/9394
10639         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
10640         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
10641         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
10642         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
10643         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
10644         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
10645
10646 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
10647
10648         PR optimization/7189
10649         * toplev.c (rest_of_compilation):  Move
10650         check_function_return_warnings up to just after
10651         delete_unreachable_blocks.
10652
10653 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
10654
10655         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
10656         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
10657         Declare.
10658         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
10659         for reg rename optimization to avoid using Z and Y registers.
10660
10661 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
10662
10663         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
10664         when adding to X and Y since leax/leay are fast.
10665         ("*addhi3"): Accept 'I' constraint when adding to address register.
10666         ("rotlhi3"): Operand 1 must be a register_operand.
10667         (peephole2): New peephole to optimize some adds.
10668         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
10669         to represent -2 .. 2 small integer range.
10670
10671 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
10672
10673         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
10674         each 16-bit rotation.
10675
10676 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
10677
10678         * c-opts.c (add_prefixed_path): Don't use concat.  When
10679         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
10680         cpp_GCC_INCLUDE_DIR_len characters.
10681
10682 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
10683
10684         * testsuite/gcc.dg/altivec-9.c: New file.
10685
10686         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
10687         (rs6000_emit_prologue): Use rs6000_frame_related instead.
10688
10689 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
10690
10691         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
10692         vectors.
10693         (__ev_convert_u64): Remove macro.  Define as inline.
10694         (__ev_convert_s64): Same.
10695
10696 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
10697
10698         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
10699         (rs6000_stack_t): Add spe_64bit_regs_used.
10700
10701         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
10702         spe_64bit_regs_used, and use it to determine the size of the
10703         frame.
10704         (spe_func_has_64bit_regs_p): New.
10705         (spe_synthesize_frame_save): New.
10706         (rs6000_frame_related): Handle SPE synthetic registers.
10707         (rs6000_emit_prologue): Only save in 64-bits if the function used
10708         any registers in 64-bit mode.
10709         (rs6000_emit_epilogue): Same, but for restore.
10710
10711 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
10712
10713         * arm.h (enum floating_point_type): Delete.  Replace with...
10714         (enum fputype): ... new.
10715         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
10716         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
10717         * arm.md (attr fpu): Reworked for new underlying enum values.
10718         * arm.c (arm_fpu_arch): Now enum fputype.
10719         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
10720         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
10721         Update uses of arm_fpu_arch and arm_fpu_tune.
10722
10723 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
10724
10725         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
10726         (try_crossjump_to_edge): Replace refereces to one jump table by
10727         references to identical jump table.
10728         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
10729         (replace_label): Moved to rtlanal.c.
10730         (struct rtx_pair): Moved to rtl.h.
10731         * rtl.h (struct rtx_pair): Moved from loop.c.
10732         (replace_label): New extern function.
10733         (subrtx_p): New extern function.
10734         (tablejump_p): New extern function.
10735         * rtlanal.c (replace_label): Moved from loop.c.
10736         (subrtx_p_1): New static function.
10737         (subrtx_p): New function.
10738         (tablejump_p): New function.
10739
10740 2003-03-10  Jan Hubicka  <jh@suse.cz>
10741
10742         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
10743
10744         * cfgcleanup.c (merge_blocks): Return where to iterate next.
10745         (try_optimize_cfg): Use return value of merge_blocks
10746
10747 2003-03-10  Michael Matz  <matz@suse.de>
10748
10749         * cfg.c (unchecked_make_edge): New.
10750         (cached_make_edge): Use it.
10751         * basic-block.h (unchecked_make_edge): Declare.
10752         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
10753
10754 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
10755
10756         * fpa.md: New file.  Move all patterns relating to FPA co-processor
10757         to here...
10758         * arm.md: ... from here.
10759         (cirrus.md, fpa.md): Include at end of description.
10760         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
10761         (pic_load_addr_based): Remove register constraint from expander.
10762         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
10763         (sordered, sungt, sunle, sunge, sunlt): Likewise.
10764         (eh_epilogue, tablejump): Likewise.
10765
10766 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10767
10768         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
10769         on operands if it has a PLACEHOLDER_EXPR.
10770
10771 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
10772             Mostafa Hagog
10773
10774         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
10775         condition.
10776
10777 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
10778
10779         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
10780         * config/ip2k/ip2k.h: Similarly.
10781         * config/m32r/m32r.h: Similarly.
10782         * config/m68hc11/m68hc11.h: Similarly.
10783         * config/mn10200/mn10200.h: Similarly.
10784         * config/mn10300/mn10300.h: Similarly.
10785         * config/pdp11/pdp11.h: Similarly.
10786         * config/v850/v850.h: Similarly.
10787         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
10788         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
10789         * config/mips/iris3.h: Remove #if 0 block.
10790
10791 2003-03-09  Roger Sayle  <roger@eyesopen.com>
10792             Joern Rennecke <joern.rennecke@superh.com>
10793
10794         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
10795         pending argument upon return from handle_braces here.
10796         (do_spec_2): Instead handle it upon return from do_spec_1 here.
10797
10798 2003-03-09  Roger Sayle  <roger@eyesopen.com>
10799             Joern Rennecke <joern.rennecke@superh.com>
10800
10801         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
10802         pending argument upon return from handle_braces here.
10803         (do_spec_2): Instead handle it upon return from do_spec_1 here.
10804
10805 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10806
10807         * varasm.c (make_decl_one_only): Use declare_weak().
10808
10809 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10810
10811         PR middle-end/9986
10812         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
10813         after the common builtins.
10814         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
10815         * pa.c (TARGET_INIT_BUILTINS): Define.
10816         (pa_init_builtins): New function.
10817
10818         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
10819         space has been allocated for the outgoing arguments, set the arg
10820         pointer for a call emitted after virtuals have been instantiated
10821         using the stack pointer offset, otherwise abort.
10822
10823 2003-03-09  DJ Delorie  <dj@redhat.com>
10824
10825         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
10826
10827 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
10828
10829         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
10830         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
10831         conversion to integer.
10832         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
10833
10834 2003-03-09  Roger Sayle  <roger@eyesopen.com>
10835
10836         * builtins.def: Fix typo and improve grammar.
10837         * loop-unroll.c (decide_peel_completely): Tidy log message.
10838
10839 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
10840
10841         * config/h8300/h8300.md (*tstsi_upper_bit): New.
10842         (*iorsi3_e2f): Likewise.
10843
10844 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
10845
10846         * config/h8300/h8300.c (h8300_and_costs): Return the number of
10847         assembly instructions needed.
10848         (h8300_shift_costs): Likewise.
10849
10850 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
10851
10852         * config/cris/aout.h (ENDFILE_SPEC): Undef.
10853
10854         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
10855         moves from here ...
10856         * expr.c (emit_move_insn_1): ... to here.
10857
10858         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
10859         (TARGET_OS_CPP_BUILTINS): New macro.
10860         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
10861         (TARGET_OS_CPP_BUILTINS): New macro.
10862         (CPP_PREDEFINES): Don't define.  Move old definitions and...
10863         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
10864         (TARGET_CPU_CPP_BUILTINS): New macro.
10865         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
10866         definitions and the optional __PIC__, __pic__ and
10867         __NO_UNDERSCORES__ definitions to...
10868         (TARGET_OS_CPP_BUILTINS): New macro.
10869
10870         * flags.h (flag_leading_underscore): Declare.
10871
10872         * c-opts.c (c_common_post_options): On fopen failure, return
10873         false, not NULL.
10874
10875 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
10876
10877         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
10878         config.h.
10879         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
10880         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
10881
10882 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
10883
10884         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
10885         CPP_PREDEFINES.
10886         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
10887         CPP_PREDEFINES.
10888
10889 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
10890
10891         * c-common.h (c_common_init, c_common_post_options): Update.
10892         * c-objc-common.c (c_objc_common_init): Update for new prototype.
10893         * c-opts.c (saved_lineno): New.
10894         (c_common_post_options, c_common_init): Update prototypes,
10895         move call to cpp_read_main_file from latter to former.
10896         * c-tree.h (c_ojbc_common_init): Update.
10897         * langhooks-def.h (lhd_post_options): New.
10898         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
10899         * langhooks.c (lhd_post_options): New.
10900         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
10901         * toplev.c (no_backend): New.
10902         (process_options): Call post_options hook and set main_input_filename
10903         and input_filename here.
10904         (lang_dependent_init, do_compile): post_options hook moved to
10905         process_options.
10906         * objc/objc-act.c (objc_init): Update prototype.
10907         * objc/objc-act.h (objc_init): Update prototype.
10908
10909 2003-03-08  Roger Sayle  <roger@eyesopen.com>
10910
10911         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
10912         a complex or vector type, using a load in the original mode.
10913
10914 2003-03-08  Jan Hubicka  <jh@suse.cz>
10915
10916         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
10917         * gt-cgraph.h: New GC file.
10918         * cgraph.c (known_fns): New static variable.
10919         (cgraph_node): Add the decl into varray.
10920
10921 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
10922
10923         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
10924
10925 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
10926
10927         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
10928         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
10929         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
10930         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
10931         All callers changed.
10932         * arm.md, arm.h, arm-protos.h: Updated.
10933
10934         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
10935         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
10936         * arm.c (arm_regno_class, f_register_operand): Updated.
10937
10938 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
10939
10940         * config/cris/cris.h: Remove EGCS references.
10941         (CPP_SPEC): Remove "-$".
10942         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
10943
10944 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
10945
10946         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
10947         preference to CPP_PREDEFINES.
10948
10949 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
10950
10951         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
10952
10953 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
10954
10955         * config/h8300/h8300.md (*extzv_16_8): New.
10956
10957 2003-03-08  Jan Hubicka  <jh@suse.cz>
10958
10959         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
10960         * cgraph.h: (cgraph_local_info): Add can_inline_once
10961         (cgraph_global_info): Add inline_once.
10962         (cgraph_node): Add previous.
10963         (cgraph_remove_node): New.
10964         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
10965         function.
10966         (cgraph_optimize): Call it.
10967         (cgraph_finalize_function):  Set inlinable flags.
10968         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
10969         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
10970         (cgraph_expand_function): Likewise.
10971         * cgraph.c
10972         (cgraph_node): Put nodes into doubly linked chain.
10973         (cgraph_remove_node): New function.
10974         * flags.h (flag_inline_functions_called_once): Declare.
10975         * tree-inline.c: Include cgraph.h
10976         (inlinable_functions_p): Add extra argument to bypass limits.
10977         (expand_call_inline):  Obey cgraph flag.
10978         * tree-inline.h (tree_inlinable_function_p): Update prototype.
10979
10980 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10981
10982         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
10983         irreducible loops.
10984
10985         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
10986         loops info correctly.
10987
10988 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
10989
10990         PR middle-end/7796
10991         * unroll.c (calculate_giv_inc): Handle constants being
10992         loaded with LSHIFTRT.
10993
10994 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
10995
10996         * config/rs6000/rs6000.c (processor_target_table): Do not disable
10997         GP optional instructions on Power3, Power4, 620, and 630.
10998
10999 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
11000
11001         * calls.c: Fix comment formatting.
11002         * cfgloopanal.c: Likewise.
11003         * cfgloopmanip.c: Likewise.
11004         * combine.c: Likewise.
11005         * dwarf2out.c: Likewise.
11006         * ggc-common.c: Likewise.
11007         * langhooks.c: Likewise.
11008         * loop-unroll.c: Likewise.
11009         * loop.c: Likewise.
11010         * ra-build.c: Likewise.
11011         * sbitmap.c: Likewise.
11012         * toplev.c: Likewise.
11013
11014 2003-03-07  James E Wilson  <wilson@tuliptree.org>
11015
11016         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
11017
11018 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
11019
11020         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
11021         support -no-integrated-cpp.
11022
11023         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
11024         than langhooks.name.
11025
11026 2003-03-07  Michael Matz  <matz@suse.de>
11027
11028         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
11029         (DF_FOR_REGALLOC): New.
11030         * df.c (df_ref_record): Set DF_REF_STRIPPED.
11031         (read_modify_subreg_p): Simplify.
11032         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
11033         Use DF_FOR_REGALLOC.
11034         * ra.h (struct web): New member subreg_stripped.
11035         (invalid_mode_change_regs): Declare.
11036         * ra.c (invalid_mode_change_regs): New.
11037         (init_ra): Initialize it.
11038         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
11039         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
11040         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
11041         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
11042         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
11043
11044 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
11045
11046         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
11047         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
11048         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
11049         machine description file from ...
11050         * cirrus.md: ... here.
11051
11052 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
11053
11054         * config/h8300/h8300.md (a peephole2): Don't use
11055         reg_overlap_mentioned_p.
11056
11057 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
11058
11059         * c-pch.c: Include langhooks.h.
11060         (IDENT_LENGTH): New.
11061         (get_ident): New.
11062         (pch_ident): Delete.
11063         (pch_init): Use get_ident, IDENT_LENGTH.
11064         (c_common_valid_pch): Likewise.  Also, use actual language
11065         in warning message.
11066         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
11067
11068         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
11069         c-parse.in.
11070         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
11071         gt-objc-objc-act.h.
11072         (gt-objc-objc-act.h): New rule.
11073         * objc/lang-specs.h: Support PCH.
11074         * objc/objc-act.c: Include gt-objc-objc-act.h.
11075         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
11076         (build_selector_reference_decl): Move idx out, mark for PCH.
11077         (build_class_reference_decl): Likewise.
11078         (build_objc_string_decl): Move *_idx out, mark for PCH.
11079         (build_tmp_function_decl): Move xxx out, mark for PCH.
11080
11081 2003-03-06  Dale Johannesen  <dalej@apple.com>
11082
11083         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
11084         global functions for inlining on Darwin.
11085
11086 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
11087
11088         * haifa-sched.c (schedule_block): Don't call reorder when sorting
11089         is prohibited.
11090
11091 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
11092
11093         * Makefile.in (c-ppoutput.o): Update.
11094         * c-common.h (init_pp_output): New.
11095         (preprocess_file): Update.
11096         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
11097         Register builtins.
11098         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
11099         Make call to cpp_read_main_file common to whether preprocessing
11100         or not.  Don't register builtins.
11101         * c-ppoutput.c: Include c-pragma.h.
11102         (setup_callbacks): Rename init_pp_output.
11103         (preprocess_file): No longer setup callbacks or call
11104         cpp_read_main_file.
11105         * cpphash.h (_cpp_init_mbchar): New.
11106         * cppinit.c (init_library): Call _cpp_init_mbchar.
11107         * cpplex.c (_cpp_init_mbchar): New.
11108
11109 2003-03-06  Roger Sayle  <roger@eyesopen.com>
11110
11111         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
11112         MEM, try loading the MEM into a register and taking the low-part
11113         of that, to help CSE see the use of the MEM in its true mode.
11114
11115 2003-03-05  Tom Tromey  <tromey@redhat.com>
11116
11117         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
11118         Define.
11119
11120 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
11121
11122         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
11123         operand 2.
11124         ("*ineqbranchsi"): Likewise.
11125
11126 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
11127
11128         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
11129         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
11130         register store followed by a stack increment.
11131
11132 2003-03-05  Chris Moller  <cmoller@redhat.com>
11133
11134         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
11135         to inhibit saving CARRY_REGS.
11136
11137         * config/stormy16/stormy16.c (xs_hi_general_operand):
11138         added predicate to detect and error-out on out-of-range
11139         const_ints for movhi.
11140         * config/stormy16/stormy16.md (movhi): use
11141         xs_hi_general_operand.
11142
11143         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
11144         added a check for local vbl size overflow.
11145         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
11146         added predicate to detect and error-out on out-of-range
11147         const_ints for addhi and subhi.
11148         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
11149         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
11150
11151         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11152         add a term to accept PRE_MODIFY addresses.
11153         * config/stormy16/stormy16.c (xstormy16_expand_move):
11154         add code to expand PRE_MODIFY addresses to an add followed
11155         by a move.
11156
11157 2003-03-06  Jason Merrill  <jason@redhat.com>
11158
11159         * tree-inline.c (inlinable_function_p): Revert earlier change
11160         pending investigation.
11161
11162 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
11163
11164         * config/h8300/h8300.md (a new peephole2): New.
11165
11166 2003-03-06  Jan Hubicka  <jh@suse.cz>
11167
11168         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
11169
11170 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11171
11172         * dwarf2out.c (size_of_die): Compute size of external reference to
11173         die correctly.
11174
11175 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
11176
11177         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
11178         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
11179         expanders.
11180
11181 2003-03-05  Roger Sayle  <roger@eyesopen.com>
11182
11183         * expr.h (lang_expand_expr): Delete obsolete prototype.
11184
11185 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
11186
11187         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
11188
11189 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
11190
11191         * config/h8300/h8300.md (a peephole2): Generalize to
11192         accept a memory operand.
11193
11194 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
11195
11196         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
11197         * config/alpha/alpha.c (print_operand, case '+'): New.
11198         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
11199         (call_value_osf_1_noreturn): Likewise.
11200
11201 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11202
11203         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
11204         (expand_end_bindings): Likewise.
11205
11206 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11207
11208         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
11209         (epilogue): Don't generate return_external_pic when emitting PA 2.0
11210         code.
11211
11212 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
11213
11214         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
11215
11216         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
11217
11218         * hooks.c (hook_rtx_rtx_null): New.
11219
11220         * hooks.h (hook_rtx_rtx_null): Protoize.
11221
11222         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
11223         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
11224
11225         * target.h (struct gcc_target): Add dwarf_register_span.
11226
11227         * dwarf2out.c (multiple_reg_loc_descriptor): New.
11228         (one_reg_loc_descriptor): New.
11229         (reg_loc_descriptor): Add support for values that span more than
11230         one register.
11231
11232 2003-03-05  Jan Hubicka  <jh@suse.cz>
11233
11234         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
11235         * alias.c:  Include cgraph.h
11236         (mark_constant_function): Use cgraph_rtl_info.
11237         * calls.c:  Include cgraph.h
11238         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
11239         calls.
11240         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
11241         * cgraph.c (cgraph_rtl_info): New function.
11242         * cgraph.h (cgraph_rtl_info): Declare
11243         (cgraph_rtl_info): Likewise.
11244         * function.h (struct function): Add recursive_call_emit.
11245         * toplev.c: Include cgraph.h.
11246         (rest_of_compilation): Set preferred_incoming_stack_boundary.
11247
11248 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
11249
11250         * config/h8300/h8300.c (output_simode_bld): Clear the
11251         destination first if possible.
11252         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
11253         alternative.
11254         (extzv_1_r_inv_h8300hs): Likewise.
11255
11256 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11257
11258         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
11259         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
11260         * cfgloop.c (flow_loop_free): Made global.
11261         (establish_preds): New static function.
11262         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
11263         (get_loop_exit_edges): New.
11264         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
11265         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
11266         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
11267         loops.
11268         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
11269         removability of an edge.
11270         (fix_irreducible_loops): New static function.
11271         (find_path, remove_path): Add ability to remove enclosing loops.
11272         (unloop): New.
11273         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
11274         flags.
11275         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
11276         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
11277         not neccessary.
11278         (decide_peel_completely, peel_loops_completely): Allow complete peeling
11279         of non-duplicable once rolling loops.
11280         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
11281
11282 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
11283
11284         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
11285         for align_jumps is 4.
11286
11287         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
11288         use GENERAL_REGS.
11289
11290 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
11291
11292         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
11293         according to va_arg type.
11294         (EXPAND_BUILTIN_VA_ARG): Remove.
11295         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
11296         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
11297
11298 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
11299
11300         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
11301         else clauses.
11302
11303 2003-03-05  Michael Matz  <matz@suse.de>
11304
11305         * i386/i386.c (ix86_save_reg): Also test
11306         current_function_uses_const_pool.
11307
11308 2003-03-05  Michael Matz  <matz@suse.de>
11309
11310         * unwind.h: Add the GPL exception.
11311         * Makefile.in (USER_H): Add unwind.h.
11312
11313 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
11314
11315         PR c/9799
11316         * c-typeck.c (push_init_level): Add sanity check.
11317
11318 2003-03-05  Jan Hubicka  <jh@suse.cz>
11319
11320         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
11321         RTL inlining is done.
11322
11323         * cgraphunit.c (cgraph_mark_local_functions): New local function.
11324         (cgraph_optimize): Mark local functions.
11325         * i386-protos.h (init_cumulative_args): Update prototype.
11326         * i386.c (init_cumulative_args): Use register passing convention for
11327         local functions.
11328
11329         * cgraph.c (cgraph_global_info_ready): New global variable
11330         (cgraph_local_info, cgraph_global_info): New functions.
11331         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
11332         structures.
11333         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
11334         Declare.
11335         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
11336         (cgraph_mark_functions_to_output): Use inline_many.
11337         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
11338         (cgraph_expand_functions): Expand inline functions last.
11339         (cgraph_optimize): Do not emit uneeded functions.
11340
11341 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
11342
11343         * expr.c (convert_modes): Check for legal hard register.
11344
11345 2003-03-04  Tom Tromey  <tromey@redhat.com>
11346
11347         * doc/sourcebuild.texi (Front End Directory): Document tags.
11348         * configure: Rebuilt.
11349         * configure.in (target_list): Added tags.
11350         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
11351         TAGS files by reference.
11352         * objc/Make-lang.in (objc.tags): New target.
11353
11354 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11355
11356         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
11357         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
11358         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
11359         gcov_read_string, gcov_write_length): Modified to enable reading/
11360         writing of whole .da file just once.
11361         (da_file_open, da_file_close, da_file_eof, da_file_error,
11362         da_file_position, da_file_seek, da_file_write, da_file_read): New
11363         functions.
11364         (actual_da_file, actual_da_file_position, actual_da_file_length,
11365         actual_da_file_buffer, actual_da_file_buffer_size): New static
11366         functions.
11367         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
11368         just once.
11369
11370
11371 2003-03-04  Andreas Schwab  <schwab@suse.de>
11372
11373         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
11374         offset without frame pointer.
11375
11376 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
11377
11378         * expr.c (expand_expr): Call promote_mode to set unsignedp.
11379
11380 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
11381
11382         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
11383         * configure: Regenerated.
11384         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
11385
11386 2003-03-04  Andreas Jaeger  <aj@suse.de>
11387
11388         * configure.in: Check for <memcheck.h>.
11389         * configure: Regenerated.
11390
11391         * config.in: Define HAVE_MEMCHECK_H.
11392
11393         * ggc-common.c: Use <memcheck.h> if available instead of
11394         <valgrind.h>.
11395         * ggc-page.c: Likewise.
11396         * cppfiles.c: Likewise.
11397
11398 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
11399
11400         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
11401
11402 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
11403
11404         PR c/9262
11405         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
11406         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
11407
11408 2003-03-04  Jan Hubicka  <jh@suse.cz>
11409
11410         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
11411         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
11412         for -O3.
11413
11414 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
11415
11416         * configure.in: Delete three unused variables.  Move a variable
11417         definition closer to its use.  Simplify use_collect2 logic.  Start to
11418         organize.  Simplify tests for in-tree gas and ld.
11419         * configure: Regenerate.
11420
11421 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
11422
11423         * Makefile.in: Update.
11424         * c-common.c (flag_no_line_commands, flag_no_output,
11425         flag_dump_macros, flag_dump_includes): New.
11426         * c-common.h (flag_no_line_commands, flag_no_output,
11427         flag_dump_macros, flag_dump_includes, preprocess_file): New.
11428         (init_c_lex): Update prototype.
11429         * c-lex.c (init_c_lex): Update prototype; move some code to
11430         c_common_init.
11431         * c-opts.c (preprocess_file): Subsume into c_common_init.
11432         (c_common_decode_option): Update flags.
11433         (c_common_init): Move code from preprocess_file and init_c_lex.
11434         (sanitize_cpp_opts): Update.
11435         * c-ppoutput.c: New, cppmain.c almost verbatim.
11436         * cpphash.h (struct printer): Remove.
11437         (struct cpp_reader): Remove print.
11438         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
11439         cpp_preprocess_file): Remove.
11440         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
11441         and dump_includes.
11442         * cppmain.c: Remove.
11443         * doc/passes.texi: Update.
11444
11445 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11446
11447         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
11448         (assign_stack_local_1): Perform overall stack alignment only when
11449         STACK_ALIGNMENT_NEEDED is non-zero.
11450         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
11451
11452         * pa.c (compute_frame_size): Rename fsize to size.  Account for
11453         alignment to a word boundary before general register save block.  Only
11454         account for double-word alignment before floating point register save
11455         block if one or more are saved.  Don't allocate space for %r3 when
11456         frame pointer is needed.
11457         (hppa_expand_prologue): Include alignment to word boundary in local
11458         frame size.
11459         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
11460         (STACK_ALIGNMENT_NEEDED): Define.
11461
11462 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
11463
11464         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
11465         global register variables.
11466
11467 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
11468
11469         * reload.c (reload_adjust_reg_for_mode): New function.
11470         (subst_reloads): Call it.
11471         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
11472         * reload.h (reload_adjust_reg_for_mode): Declare.
11473         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
11474         Call it.
11475
11476 2003-03-03  James E Wilson  <wilson@tuliptree.org>
11477
11478         * optabs.c (add_equal_note): Delete SUBREG_REG use.
11479         Fixes PR c/7872.
11480
11481 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
11482
11483         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
11484         (*ixorsi3_lshiftrt_16): New.
11485         (*iorsi3_ashift_16): Remove.
11486
11487 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
11488
11489         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
11490         pattern.
11491
11492 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
11493
11494         * doc/install.texi (Specific): Update entry for powerpc-darwin.
11495
11496 2003-03-03  Richard Henderson  <rth@redhat.com>
11497
11498         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
11499
11500 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
11501
11502         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
11503         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
11504         (rs6000_variable_issue): Do not return negative value.
11505         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
11506         scheduling pass.
11507
11508 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11509
11510         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
11511         prune_unused_types calls.
11512
11513 2003-03-03  Jason Merrill  <jason@redhat.com>
11514
11515         * tree-inline.c (find_builtin_longjmp_call): Save and restore
11516         lineno and input_filename.
11517         (find_alloca_call): Likewise.
11518         (inlinable_function_p): Run the langhook earlier.
11519
11520         * calls.c (compute_argument_addresses): Give the new MEMs a
11521         minimum alignment of PARM_BOUNDARY.
11522
11523 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
11524
11525         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
11526         subtarget_asm_isa_spec.
11527         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
11528         (ASM_SPEC): Define as SH_ASM_SPEC.
11529         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
11530         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
11531         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
11532         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
11533
11534         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
11535         and align_jumps if not set.
11536         Force align_jumps to be at least 2.
11537         When relaxing, force align_functions to be at least the maximum of
11538         align_loops, align_jumps and 4.
11539         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
11540         (sh_loop_align): Honour align_loops_log.
11541
11542         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
11543         to check for indirect_jump_scratch.
11544         (indirect_jump_scratch): Add second set.
11545         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
11546         when looking for indirect_jump_scratch.
11547         Extract scratch register taking new structure of indirect_jump_scratch
11548         into account.
11549         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
11550
11551 2003-03-03  Jan Hubicka  <jh@suse.cz>
11552
11553         * calls.c (rtx_for_function_call): Take the address as an argument
11554         (expand_call): Do not modify the expression.
11555
11556         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
11557         optimizing.
11558
11559 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
11560
11561         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
11562         TARGET_H8300H and TARGET_H8300S.
11563
11564 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
11565
11566         * config/h8300/h8300.md (a peephole2): New.
11567
11568 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
11569
11570         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
11571         operands[0] and operands[1] are different.
11572
11573 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
11574
11575         * reload1.c (reload_cse_move2add): Remove variable success.
11576
11577 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11578
11579         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
11580         warnings.
11581
11582 2003-03-02  Richard Henderson  <rth@redhat.com>
11583
11584         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
11585         * config.in, configure: Rebuild.
11586         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
11587         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
11588         paired ldtoffx and ldxmov annotations.
11589         (load_symptr_internal1): Remove.
11590         (load_symptr_high, load_symptr_low): New.
11591
11592 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
11593
11594         * c-incpath.c (add_path): Fix sysp assignment.
11595
11596 2003-03-02  Kurt Garloff  <garloff@suse.de>
11597
11598         * params.def: Introduce parameter max-inline-insns-rtl for
11599         a separate limit for the RTL inliner.
11600         * params.h: Likewise.
11601         * integrate.c (function_cannot_inline_p): Use it.
11602         * toplev.c (decode_f_option): Set multiple parameters
11603         controlling inlining with -finline-limit.
11604         * params.def: Fix orthographic and typographic errors.
11605         * doc/invoke.texi: Document parameters controlling inlining
11606         and the way -finline-limit sets multiple of them.
11607
11608         * tree.h (struct tree_decl): Introduce inlined_function_flag,
11609         recording whether the function became eligible for inlining
11610         by a compiler flag rather than the declaration.
11611         Provide DID_INLINE_FUNC macro to access it.
11612         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
11613         * cp/decl.c (grokfndecl): Likewise.
11614         * toplev.c (rest_of_compilation): Likewise.
11615         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
11616         * print-tree.c (print_node): Report it.
11617         * params.def: Introduce new max-inline-insns-auto limit.
11618         * params.h: Likewise.
11619         * tree-inline.c (inlinable_function_p): Apply it to functions
11620         with DID_INLINE_FUNC set.
11621         * toplev.c (decode_f_option): Initialize it from -finline-limit
11622         value.
11623         * doc/invoke.texi: Document new parameter.
11624
11625 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
11626
11627         * fix-header.c (read_scan_file): Don't reference simplify_path.
11628
11629 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
11630
11631         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
11632         min/max instructions by default as may result in reload errors.
11633
11634 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
11635
11636         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
11637         avoid reload problems; define split for it.
11638
11639 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
11640
11641         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
11642         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
11643         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
11644         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
11645         rotatert and rotate.
11646         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
11647         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
11648         ("*rotrhi3_addr"): New split for shift insns on address register.
11649         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
11650         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
11651         (___rotrhi3): Likewise.
11652         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
11653
11654 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
11655
11656         * toplev.c (aux_base_name): Moved from toplev.h.
11657         (filename): Constify.
11658         (lang_dependent_init): Don't duplicate name.
11659         (process_options): Set aux_base_name here, not...
11660         (do_compile): ...here.  Change protoype.
11661         (toplev_main): Move some code from do_compile.
11662         * toplev.h: Remove aux_base_name.
11663
11664 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
11665
11666         * config/h8300/h8300-protos.h: Add a prototype for
11667         iorxor_operator.
11668         * config/h8300/h8300.c (print_operand): Handle 'c'.
11669         (iorxor_operator): New.
11670         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
11671         * config/h8300/h8300.md (*iorhi3_zext): Remove.
11672         (*iorsi3_zexthi): Likewise.
11673         (*iorsi3_zextsi): Likewise.
11674         (*xorhi3_zextqi): Likewise.
11675         (*xorsi3_zexthi): Likewise.
11676         (*xorsi3_zextsi): Likewise.
11677         (*ixorhi3_zext): New.
11678         (*ixorsi3_zext_qi): Likewise.
11679         (*ixorsi3_zext_hi): Likewise.
11680
11681 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
11682
11683         * c-incpath.c (remove_component_p, simplify_path): Move back to
11684         cppfiles.c.
11685         (remove_duplicates): Use cpp_simplify_path.
11686         * c-incpath.h (simplify_path): Remove.
11687         * c-lex.c: Don't include c-incpath.h.
11688         (init_c_lex): Remove simplify_path.
11689         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
11690         (find_or_create_entry, validate_pch): Revert.
11691
11692 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
11693
11694         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
11695           an external cpp during compilation.
11696         (option_map): Likewise.
11697         * objc/lang-specs.h (default_compilers): Similarly.
11698         * doc/invoke.texi: Document -no-integrated-cpp flag.
11699
11700 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
11701
11702         * config/h8300/h8300.md (zero_extendqisi2): Change to an
11703         expander.
11704         (*zero_extendqisi2_h8300): New.
11705         (*zero_extendqisi2_h8300hs): New.
11706         (two splitters): New.
11707
11708 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11709
11710         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
11711
11712 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
11713
11714         * config/h8300/h8300.md (a peephole2): Remove dead code.
11715
11716 2003-03-01  Roger Sayle  <roger@eyesopen.com>
11717
11718         PR c++/9367
11719         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
11720         (BT_FN_INT_CONST_STRING_VALIST_ARG,
11721         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
11722         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
11723         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
11724         BT_FN_INT_STRING_CONST_STRING_VAR,
11725         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
11726         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
11727         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
11728         ATTR_NONNULL_3): Also include the nothrow attribute.
11729         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
11730         vsnprintf, vscanf, vsscanf): Don't define attributes here.
11731         * builtins.def (putchar, puts): Make full C89 built-ins.
11732         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
11733         vsscanf, vsnprintf, vsprintf): New built-ins.
11734         * c-common.c (c_common_nodes_and_builtins): Handle new macro
11735         DEF_FUNCTION_TYPE_VAR_3.
11736
11737         * doc/extend.texi: Document these new built-in functions.
11738
11739 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
11740
11741         * config/h8300/h8300.md (a peephole2): New.
11742
11743 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
11744
11745         * predict.c (estimate_bb_frequencies): Correctly set
11746         real_values_initialized after initialization.
11747
11748 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
11749
11750         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
11751         cppinit.o, cppdefault.o, fix-header): Update.
11752         * c-incpath.c: New file.
11753         * c-incpath.h: New file.
11754         * c-lex.c: Include c-incpath.h.
11755         (init_c_lex): Register path simplifier.
11756         * c-opts.c: Include cppdefault.h and c-incpath.h.
11757         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
11758         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
11759         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
11760         (missing_arg, c_common_decode_option): Handle them.
11761         (c_common_post_options): Register include chains.
11762         (print_help): Update.
11763         * cppdefault.h (struct default include): Update.
11764         Move some macros to ...
11765         * cppdefault.c: ... here.
11766         (cpp_include_defaults): Add extra field add_sysroot.
11767         * cppfiles.c (include_file, search_from, find_or_create_entry,
11768         cpp_included, find_include_file, remap_filename): Update for
11769         renaming of search_path to cpp_path, and of the chain headers.
11770         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
11771         * cpphash.h (struct search_path): Move to cpplib.h.
11772         (struct cpp_buffer, struct cpp_reader): Update.
11773         (_cpp_simplify_pathname): Remove.
11774         * cppinit.c: Don't include prefix.h and cppdefault.h.
11775         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
11776         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
11777         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
11778         no_pth, cpp_handle_options): Remove.
11779         (struct pending_option): Remove chain members.
11780         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
11781         cpp_handle_option): Update.
11782         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
11783         (struct cpp_options): Remove quote_include, bracket_include,
11784         include_prefix, include_prefix_len, verbose, ignore_srcdir,
11785         no_standard_includes, no_standard_cplusplus_includes.
11786         (struct cpp_callbacks): Add simplify_path.
11787         (cpp_handle_options): Remove.
11788         * fix-header.c: Include c-incpath.h.
11789         (read_scan_file): Update to use c-incpath functionality.
11790         * doc/passes.texi: Update.
11791
11792 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
11793
11794         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
11795         satisfies EXTRA_CONSTRAINT 'U'.
11796
11797 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
11798
11799         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
11800         register.
11801         (*tst_extzv_memqi_1_n): Change to a splitter.
11802         (a peephole2): Update.
11803
11804 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
11805
11806         * predict.c (estimate_bb_frequencies): Initialize the sreal
11807         constants once per compilation.
11808
11809 2003-02-28  Richard Henderson  <rth@redhat.com>
11810
11811         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
11812
11813 2003-02-28  scott snyder  <snyder@fnal.gov>
11814
11815         * flags.h: Add flag_eliminate_unused_debug_types.
11816         * toplev.c: Add flag_eliminate_unused_debug_types.
11817         (f_options): Add -feliminate-unused-debug-types.
11818         * dwarf2out.c (struct file_table): Add emitted member.
11819         (splice_child_die): Fix the parent pointer for the child being
11820         spliced.
11821         (lookup_filename): Maintain file_table.emitted array.  Don't
11822         output .file directive here.
11823         (maybe_emit_file): (new)
11824         (init_file_table): Set up file_table.emitted.
11825         (dwarf2out_source_line): Use maybe_emit_file.
11826         (dwarf2out_start_source_file): Use maybe_emit_file.
11827         (dwarf2out_init): Use maybe_emit_file.
11828         (prune_unused_types_walk_attribs): (new)
11829         (prune_unused_types_mark): (new)
11830         (prune_unused_types_walk): (new)
11831         (prune_unused_types_prune): (new)
11832         (prune_unused_types): (new)
11833         (dwarf2out_finish): Call prune_unused_types if
11834         flag_eliminate_unused_debug_types is set.
11835         * doc/invoke.texi (Option Summary): Add
11836         -feliminate-unused-debug-types.
11837         (Debugging Options): Likewise.
11838
11839 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
11840
11841         * doc/invoke.texi: Change .pch to .gch.
11842         * cppfiles.c (open_file_pch): Likewise.
11843         * gcc.c (default_compilers): Likewise.
11844
11845 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
11846
11847         * floatlib.c: Remove.
11848
11849 2003-02-28  Jason Merrill  <jason@redhat.com>
11850
11851         * stor-layout.c (variable_size): Leave a "minus 1" outside the
11852         SAVE_EXPR.
11853
11854 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
11855
11856         * config/rs6000/power4.md: Add compare bypass.
11857
11858 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
11859
11860         * config/netbsd.h: Update copyright years.
11861         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
11862         -pthread is specified on the command line.
11863
11864 2003-02-28  Dale Johannesen <dalej@apple.com>
11865
11866         * loop.c (struct movable): Add insert_temp, shrink savemode.
11867         (scan_loop): Accept invariants that require copying; mark as
11868         insert_temp.
11869         (combine_movables): Don't combine insert_temp movables.
11870         (move_movables): Insert copies for insert_temp movables.
11871         Don't record the info based on regno for insert_temp's.
11872
11873 2003-02-28  Joel Sherrill <joel@OARcorp.com>
11874
11875         PR 9638/other
11876         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
11877         this constant defaults to 1.
11878
11879 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
11880
11881         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
11882
11883 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
11884
11885         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
11886         ARMv5e processor, not just for XScale.  Instructions are predicable.
11887         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
11888
11889 2003-02-28  Nick Clifton  <nickc@redhat.com>
11890
11891         * config/arm/arm.c (note_invalid_constants): Change parameter type
11892         from bool to int.
11893
11894 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
11895
11896         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
11897         test of bit 7.
11898         (*tst_extzv_memqi_1_n): Likewise.
11899         (a peephole2): New.
11900
11901 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
11902
11903         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
11904         #ifndef __mips16.
11905
11906 2003-02-28  Jan Hubicka  <jh@suse.cz>
11907
11908         * combine.c (gen_lowpart_for_combine): Update handling of
11909         subregs_of_mode
11910         * flow.c (life_analysis, mark_used_regs): Likewise.
11911         * regclass.c (subregs_of_mode): Turn into single bitmap.
11912         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
11913         dealing with subregs_of_mode
11914         * regs.h (subregs_of_mode): Update prototype.
11915
11916 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
11917
11918         * emit-rtl.c (set_reg_attrs_for_parm): New function.
11919         * rtl.h (set_reg_attrs_for_parm): New exported function.
11920         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
11921         set_reg_attrs_from_mem.
11922
11923 2003-02-27  Roger Sayle  <roger@eyesopen.com>
11924             Zack Weinberg <zack@codesourcery.com>
11925
11926         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
11927
11928 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
11929
11930         * reload1.c (sext_for_mode): Remove.
11931         (reload_cse_move2add): Use trunc_int_for_mode instead of
11932         sext_for_mode.
11933         (move2add_note_store): Likewise.
11934         Reset register information if we see a set in non-integer
11935         mode.
11936
11937 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
11938
11939         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
11940         option.
11941         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
11942         * config/rs6000/aix51.h: Same.
11943         * config/rs6000/aix52.h: Same.
11944         * config/rs6000/power4.md: Additional VMX bypasses.
11945
11946 2003-02-27   Geert Bosch <bosch@gnat.com>
11947
11948         * toplev.c (print_version): Add indentation for GGC heuristics and
11949         output after printing version information.
11950
11951 2003-02-27  James E Wilson  <wilson@tuliptree.org>
11952
11953         * combine.c (simplify_comparison): Require integral mode when
11954         permuting SUBREG with AND.
11955
11956 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
11957
11958         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
11959
11960 2003-02-27  Nick Clifton  <nickc@redhat.com>
11961
11962         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
11963         deleted when cirrus instructions were added.
11964
11965 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
11966
11967         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
11968         POSIX thread support by default.
11969
11970 2003-02-27  Roger Sayle  <roger@eyesopen.com>
11971
11972         * config/i386/cygwin.h: Don't include any other files directly.
11973         * config/i386/mingw32.h: Don't include cygwin.h directly.
11974         * config.gcc (cygwin, mingw32, uwin): Instead make these files
11975         explicit in the tm_files variable.
11976
11977 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
11978
11979         * config/rs6000/rs6000.md: Add TI constant splitter.
11980
11981 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
11982
11983         * builtins.c (purge_builtin_constant_p): Handle subreg of
11984         constant_p_rtx too.
11985
11986         * function.c (assign_stack_local_1): Truncate constant added to
11987         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
11988
11989 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
11990
11991         * config.gcc: Add power4 to PowerPC with_cpu list.
11992
11993 2003-02-26  Jan Hubicka  <jh@suse.cz>
11994
11995         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
11996
11997 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11998
11999         * gcov-dump.c (print_prefix): Fix signedness warning.
12000         * gcov-io.h (struct counter_section, struct counter_section_data): New.
12001         (struct function_info): n_arc_counts field removed, n_counter_sections,
12002         counter_sections fields added.
12003         (struct gcov_info): arc_counts, n_arc_counts fields removed,
12004         n_counter_sections, counter_sections fields added.
12005         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
12006         profile sections.
12007         * profile.h (MAX_COUNTER_SECTIONS): New.
12008         (struct section_info): New.
12009         (struct profile_info): count_instrumented_edges,
12010         count_edges_instrumented_now fields removed, n_sections, section_info
12011         fields added.
12012         (find_counters_section): Declare.
12013         * profile.c (struct function_list): count_edges field removed,
12014         n_counter_sections, counter_sections fields added.
12015         (set_purpose, label_for_tag, build_counter_section_fields,
12016         build_counter_section_value, build_counter_section_data_fields,
12017         build_counter_section_data_value, build_function_info_fields,
12018         build_function_info_value, build_gcov_info_fields,
12019         build_gcov_info_value): New static functions.
12020         (find_counters_section): New function.
12021         (instrument_edges, get_exec_counts, compute_branch_probabilities,
12022         branch_prob, create_profiler): Modified to support multiple profile
12023         sections.
12024
12025 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12026
12027         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
12028         is 8 * STACK_BOUNDARY.
12029         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
12030
12031 2003-02-26  Michael Matz  <matz@suse.de>
12032
12033         * ra-colorize.c (merge_moves): Fix list handling.
12034
12035 2003-02-26  Nick Clifton  <nickc@redhat.com>
12036
12037         * config/arm/arm.c (is_load_address): Rename to...
12038         (arm_memory_load_p) ... this and make it check for SUBREGs and
12039         constant loads that will be converted into loads from the
12040         minipool.
12041         (is_cirrus_insn): Rename to ...
12042         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
12043         of CIRRUS_NO with CIRRUS_NOT.
12044         (cirrus_reorg): Use renamed functions.
12045         (note_invalid_constants): Change from a void function to bool.
12046         Add an extra parameter, saying whether the fixups should be
12047         pushed.  Return true if fixups are needed.
12048         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
12049         of CIRRUS_NO with CIRRUS_NOT.
12050         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
12051         other floating point co-processors can also affect this.
12052         * config/arm/arm.md ("type" attribute): Add mav_farith and
12053         mav_dmult.  Replace references to "cirrus_type" attribute with
12054         "type".
12055         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
12056         ("cirrus_type" attribute): Delete - use "type" instead.
12057         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
12058         'normal'.
12059
12060 2003-02-25  Jan Hubicka  <jh@suse.cz>
12061
12062         * objc-act.c: Include cgraph.h
12063         (mark_referenced_methods): New function.
12064         (objc_init): Call it.
12065         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
12066
12067         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
12068         mode.
12069
12070         * optabs.c (expand_fix): Do not widen the input operand.
12071
12072         * expr.c (emit_group_store):  Fix crash when converting single
12073         register into complex register.
12074
12075         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
12076         * alias.c: Include timevar.h
12077         (init_alias_analysis):  Set timevar
12078         * jump.c: Include timevar.h
12079         (rebuild_jump_labels):  Set timevar
12080         * regcalss.c: Include timevar.h
12081         (reg_scan):  Set timevar
12082         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
12083
12084 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12085
12086         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
12087
12088         * Makefile.in (loop-unroll.o): New.
12089         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
12090         (unroll_and_peel_loops): Declare.
12091         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
12092         flag_old_unroll_loops.
12093         * loop.c (loop_invariant_p): Ditto.
12094         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
12095         flag_old_unroll_all_loops.
12096         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
12097         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
12098         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
12099         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
12100         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
12101         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
12102         PARAM_MAX_ONCE_PEELED_INSNS): New.
12103         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
12104         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
12105         instead of old one.
12106         (flag_peel_loops): New.
12107         (lang_independent_options): The new flags added.
12108         (rest_of_compilation): Call new unroller.
12109         (process_options): Setup flags for coexistence of old and new unroller.
12110         * doc/invoke.texi: Document new options.
12111         * doc/passes.texi: Document new unroller pass.
12112
12113 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
12114
12115         * fixinc/fixincl.x: Regenerate
12116
12117 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
12118
12119         * function.c (assign_parms): Set reg_attrs for parameters passed in
12120         registers.
12121
12122 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
12123
12124         PR target/9681
12125         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
12126
12127 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
12128
12129         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
12130         pseudo-op.
12131
12132 2003-02-25  Roger Sayle  <roger@eyesopen.com>
12133
12134         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
12135         * cse.c (invalidate_skipped_set):  Likewise.
12136         * integrate.c (subst_constants):  Likewise.
12137         * jump.c (reversed_comparison_code_parts):  Likewise.
12138         * loop.c (canonicalize_condition):  Likewise.
12139         * simplify-rtx.c (simplify_relational_operation):  Likewise.
12140
12141 2003-02-25  Roger Sayle  <roger@eyesopen.com>
12142
12143         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
12144         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
12145         the appropriate macro to define built-in function.
12146         (fmod,fmodf,fmodl): New built-in functions.
12147
12148         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
12149
12150 2003-02-25  Richard Henderson  <rth@redhat.com>
12151
12152         * config/i386/i386.c (function_arg): Pass variable sized
12153         structures correctly on the stack.
12154
12155 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
12156
12157         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
12158         does not reduce the cost of SET.
12159
12160 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12161
12162         PR target/9732
12163         * config/rs6000/rs6000.c (first_reg_to_save): Handle
12164         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
12165         (rs6000_emit_prologue): Likewise.
12166         (rs6000_emit_epilogue): Likewise.
12167         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
12168         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
12169
12170 2003-02-25  Richard Henderson  <rth@redhat.com>
12171
12172         * real.c (real_to_integer2): Force overflow result only for
12173         unsigned overflow.
12174
12175 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
12176
12177         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
12178
12179 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
12180             Richard Henderson  <rth@redhat.com>
12181
12182         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
12183         there is no similar load.
12184
12185 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
12186             Richard Henderson  <rth@redhat.com>
12187
12188         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
12189         sched-rgn.c.
12190         (add_forward_dependence): New function prototype.
12191
12192         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
12193         sched-init.h.
12194         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
12195         them to haifa-sched.c.
12196
12197         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
12198         haifa_classify_insn): Move them from sched-rgn.c.
12199
12200         * sched-deps.c (add_dependence): Return flag of creating a new
12201         entry.
12202         (add_forward_dependence): New function.
12203         (compute_forward_dependences): Use the function.
12204
12205         * sched-ebb.c (earliest_block_with_similiar_load): New function.
12206         (add_deps_for_risky_insns): New function.
12207         (schedule_ebb): Call the function.
12208
12209 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
12210
12211         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
12212         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
12213
12214         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
12215         opaque types fail.
12216
12217         * c-typeck.c (comptypes): Change call to vector_types_compatible
12218         to vector_opaque_p.
12219         (convert_for_assignment): Call vector_opaque_p instead of
12220         vector_types_compatible.
12221         (really_start_incremental_init): Disallow initialization of opaque
12222         types.
12223
12224         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
12225         Define TARGET_VECTOR_OPAQUE_P.
12226         (TARGET_INITIALIZER): Same.
12227
12228         * target.h (struct gcc_target): Remove vector_types_compatible.
12229         Add vector_opaque_p.
12230
12231         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
12232         Remove.
12233         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
12234         a vector type.  Change return type to bool.
12235         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
12236         (TARGET_VECTOR_OPAQUE_P): Define.
12237
12238         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
12239         target hook.
12240         Include target.h.
12241         (cp_parser_init_declarator): Fix typo in function comments.
12242
12243 2003-02-25  Jan Hubicka  <jh@suse.cz>
12244
12245         * Makefile.in (lcm.o):  Add dependency on function.h
12246         * lcm.c (function.h): Include.
12247         * i386.c (machine_function, ix86_stack_locals,
12248         * ix86_save_varrargs_registers) : Move to
12249         ...
12250         * i386.h (machine_function, ix86_stack_locals,
12251         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
12252         (ix86_optimize_mode_switching): New.
12253         * i386.md (fix patterns): Set ix86_optimize_mode_switching
12254
12255 2003-02-25  Nick Clifton  <nickc@redhat.com>
12256
12257         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
12258         of fourth arg is 'fndecl' not 'indirect'.  Update comment
12259         describing the function's parameters.
12260
12261 2003-02-24  Jan Hubicka  <jh@suse.cz>
12262
12263         * combine.c (simplify_shift_const):  Fix previous patch.
12264
12265 2003-02-24  Jeff Law  <law@redhat.com>
12266
12267         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
12268         alternative.
12269         (testsi_1, testhi_1, testqi_1): Likewise.
12270
12271 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12272
12273         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
12274         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
12275         * doc/extend.texi (Tru64 Pragmas): Reflect this.
12276
12277         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
12278         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
12279         * fixinc/fixincl.x: Regenerate.
12280         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
12281         testcase.
12282         Fixes PR c/5059, c/6126, other/9671.
12283
12284 2003-02-24  Roger Sayle  <roger@eyesopen.com>
12285
12286         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
12287         from handle_braces in "%{...}".
12288
12289 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
12290
12291         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
12292         (prepare_move_operands): Handle TLS operands.
12293         (tls_symbolic_operand): New.
12294         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
12295         (legitimize_pic_address): Do nothing for the TLS symbol.
12296         (sh_encode_section_info): Handle TLS case.
12297         (sh_strip_name_encoding): Drop TLS encoding.
12298         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
12299         * config/sh/sh.h (SH_TLS_ENCODING): Define.
12300         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
12301         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
12302         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
12303         * config/sh/sh.md: Define TLS UNSPEC constants.
12304         (type): Add tls_load.
12305         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
12306         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
12307         ("tls_initial_exec"): New insn.
12308         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
12309         ("load_gbr"): New insn.
12310
12311         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
12312         * configure: Regenerate.
12313
12314 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
12315
12316         PR 9297, PR 9722
12317         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
12318         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
12319         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
12320         (enum block_op_methods): Reorder for better store_expr optimization.
12321         * expr.c (store_expr): Test bit 1 of "want_value" for call param
12322         stores, test bit 0 for original want_value meaning.  Pass
12323         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
12324         recursive calls, and calls to expand_param.
12325         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
12326         expected, set target to 0 rather than to subtarget.  Formatting.
12327
12328 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
12329
12330         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
12331
12332 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12333
12334         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
12335         new default behavior.
12336         * ggc-common.c: Include sys/resource.h.
12337         (ggc_rlimit_bound): New function.
12338         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
12339         defaults to account for rlimits.
12340
12341 2003-02-22  Richard Henderson  <rth@redhat.com>
12342
12343         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
12344
12345 2003-02-22  Kelley Cook <kelley@dwhoops.info>
12346
12347         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
12348         (ix86_tune_string): Rename from ix86_cpu_string.
12349
12350 2003-02-22  Kelley Cook <kelleycook@comcast.net>
12351
12352         * config/i386/i386.c: Replace "mcpu" with "mtune".
12353         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
12354         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
12355         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
12356         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
12357
12358 2003-02-23  Andreas Schwab  <schwab@suse.de>
12359
12360         * config.gcc: Delete references to m68k/t-linux and
12361         m68k/t-linux-aout.
12362         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
12363
12364 2003-02-22  Jan Hubicka  <jh@suse.cz>
12365
12366         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
12367         of track scheduling patch.
12368
12369 2003-02-22  Jan Hubicka  <jh@suse.cz>
12370
12371         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
12372         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
12373
12374 2003-02-22  Jan Hubicka  <jh@suse.cz>
12375
12376         * c-decl.c (c_expand_body_1): Fix.
12377
12378 2003-02-22  Jan Hubicka  <jh@suse.cz>
12379
12380         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
12381
12382         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
12383         when not optimizing.
12384         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
12385         when not expensive.
12386         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
12387         optimizing;  Delete trivially dead insns early; fix optimize check.
12388
12389         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
12390         dependency on cgraph.h
12391         * c-decl.c: Include cgraph.h
12392         (finish_function): Update call of tree_inlinable_function_p.
12393         * c-objc-common.c: Include cgraph.h
12394         * cgraph.h: New file.
12395         * cgraphunit.c: New file.
12396         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
12397         (cgraph_nodes, cgraph_n_nodes): Globalize.
12398         (cgraph_finalize_function, cgraph_finalize_compilation_unit
12399         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
12400         Move into cgraphunit.c
12401         * tree-inline.c: Include cgraph.h
12402         * tree-inline.c: Include cgraph.h
12403
12404 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
12405
12406         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
12407         for copying a register.
12408
12409 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
12410
12411         PR other/3782
12412         * toplev.c (process_options): If flag_detailed_statistics is set,
12413         then set time_report as well.
12414
12415         PR c/8828
12416         * jump.c (never_reached_warning): Don't fall through BARRRIER
12417         insns.  Update comments to reflect what the function really does.
12418
12419 2003-02-21  Roger Sayle  <roger@eyesopen.com>
12420
12421         * fold-const.c (omit_one_operand): No longer static.
12422         * tree.h (omit_one_operand): Prototype here.
12423         (div_and_round_double): Keep fold-const.c prototypes together.
12424         * builtins.c (builtin_mathfn_code): Handle binary built-in
12425         funtions, such as "pow" and "atan2".
12426         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
12427         Simplify optimizations using "type" the builtin's return type.
12428
12429 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
12430
12431         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
12432         Fix functionalization typo.
12433
12434         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
12435         in an asm.
12436
12437 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12438
12439         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
12440         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
12441         documentation.
12442         * ggc-common.c: Include params.h
12443         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
12444         init_ggc_heuristics): New functions.
12445         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
12446         init_ggc_heuristics): Prototype.
12447         * toplev.c (print_version):  Output GGC heuristics.
12448         (parse_options_and_default_flags): Call init_ggc_heuristics.
12449
12450 2003-02-22  Jan Hubicka  <jh@suse.cz>
12451
12452         * i386.c (def_builtin):  Special case 64bit builtins.
12453         (MASK_SSE164, MASK_SSE264): New constants.
12454         (builtin_description): Add 64bit builtins.
12455         (ix86_init_mmx_sse_builtins): Likewise.
12456         * i386.h (enum ix86_builtins): Likewise.
12457         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
12458         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
12459         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
12460         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
12461         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
12462         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
12463         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
12464
12465 2003-02-22  Jan Hubicka  <jh@suse.cz>
12466
12467         * i386.c (builtin_description): Add __builtin_ia32_paddq and
12468         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
12469          and __builtin_ia32_psubq128.
12470         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
12471         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
12472         (mmx_adddi3, mmx_subdi3): New.
12473         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
12474         * xmmintrin.h (_mm_movepi64_pi64): New.
12475         (_mm_add_epi64, _mm_sub_epi64): fix.
12476         (_mm_mul_pu16): Rename to...
12477         (_mm_mul_su32): ... this one.
12478
12479         * builtins.c (expand_builtin_expect):  Do not predict
12480         flag_guess_branch_prob is not set.
12481         * c-semantics.c (expand_stmt): Likewise.
12482         * predict.c (predict_insn): Likewise.
12483         * stmt.c (expand_continue_loop): Likewise.
12484         * toplev.c (rest_of_compilation): Do not call
12485         note_prediction_to_br_prob and note_prediction_to_br_prob
12486         when not optimizing.
12487
12488 2003-02-21  Jan Hubicka  <jh@suse.cz>
12489
12490         * cfgrtl.c (commit_edge_insertions):  Call
12491         find_many_sub_basic_block only when some code has been emitted.
12492         (commit_edge_insertions_watch_calls): Bring into sync with
12493         commit_edge_insertions
12494
12495 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
12496
12497         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
12498
12499         * sh.md (binary_sf_op): Use extra constant operand instead of
12500         negating constant operand 4.
12501         * sh.c (sh_expand_binop_v2sf): Supply it.
12502
12503 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
12504
12505         * cpphash.h (struct lexer_state): Add directive_wants_padding.
12506         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
12507         for directives of type INCL.
12508         (glue_header_name, parse_include): Use get_token_no_padding.
12509         * cppmacro.c (replace_args): If directive_wants_padding,
12510         provide padding tokens.
12511
12512 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
12513
12514         * config/h8300/h8300.md (a peephole2): New.
12515
12516 2003-02-21  Jan Hubicka  <jh@suse.cz>
12517
12518         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
12519         (commit_edge_insertions): Call find_many_sub_basic_blocks
12520
12521         * reg-stack.c (convert_regs): Cleax aux for blocks.
12522
12523 2003-02-21  Jan Hubicka  <jh@suse.cz>
12524
12525         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
12526
12527 2003-02-21  Glen Nakamura  <glen@imodulo.com>
12528
12529         PR optimization/8613
12530         * builtins.c (expand_builtin): Emit postincrements before expanding
12531         builtin functions.
12532
12533 2003-02-21  Ben Elliston  <bje@redhat.com>
12534
12535         PR other/5634
12536         * doc/install.texi (Configuration): Explain using $HOME instead of
12537         the ~ metacharacter when referring to home directories.
12538
12539 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
12540
12541         * configure.in (TARGET_SYSTEM_ROOT): Set default to
12542         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
12543         '${exec_prefix}' (in addition to the expansion thereof) as
12544         relocatable.
12545         * configure: Rebuilt.
12546
12547 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
12548
12549         * config/h8300/h8300.md (addhi3_incdec): Change the name to
12550         *addhi3_incdec.
12551         (addsi3_incdec): Change the name to *addsi3_incdec.
12552
12553 2003-02-20  Roger Sayle  <roger@eyesopen.com>
12554
12555         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
12556
12557 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
12558
12559         PR fortran/9038
12560         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
12561         options to be ignored.
12562         (c_common_decode_option): Ignore them when preprocessing.
12563
12564 2003-02-20  Jan Hubicka  <jh@suse.cz>
12565
12566         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
12567         global variables.
12568         (lang_independent_options):  Add -fsched2-use-superblocks
12569         -fsced2-use-traces.
12570         (rest_of_compilation): Deal with it.
12571         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
12572         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
12573         Declare.
12574         * rtl.h (reg_to_stack):  Update prototype.
12575         * reg-stack.c (reg_to_stack): Return when something has changed;
12576         update liveness when executing after superblock scheduling.
12577
12578         * combine.c (simplify_shift_const):  Simplify few special cases
12579         into constants.
12580
12581 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
12582
12583         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
12584         (add.,subf.,neg.): Change attribute to fast_compare.
12585         All DFA descriptions updated.
12586
12587 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
12588
12589         Change base class access representation.
12590         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
12591         TREE_VIA_PRIVATE): Remove.
12592         (BINFO_BASEACCESSES): New binfo elt.
12593         (BINFO_BASEACCESS): New accessor.
12594         (BINFO_ELTS): Increase.
12595         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
12596         (access_public_node, access_protected_node,
12597         access_private_node): New global nodes.
12598         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
12599         * dbxout.c (dbxout_type): Adjust.
12600         * dwarf2out.c (gen_inheritance_die): Add access parameter.
12601         (gen_member_die): Adjust.
12602         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
12603         (output_type): Adjust.
12604         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
12605
12606         Change base class access representation. Share virtual base
12607         binfos.
12608         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
12609         call.
12610         * cp/class.c (build_base_path): Likewise.
12611         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
12612         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
12613         (make_new_vtable): Adjust.
12614         (force_canonical_binfo_r): Delete.
12615         (force_canonical_binfo): Delete.
12616         (mark_primary_virtual_base): Delete.
12617         (dfs_unshared_virtual_bases): Delete.
12618         (mark_primary_bases): Adjust.
12619         (maybe_warn_about_overly_private_class): Adjust.
12620         (dfs_base_derived_from): Delete.
12621         (base_derived_from): Follow the inheritance chain.
12622         (struct find_final_overrider_data): Add vpath member.
12623         (dfs_find_final_overrider): Adjust.
12624         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
12625         (find_final_overrider): Adjust.
12626         (update_vtable_entry_for_fn): Adjust.
12627         (modify_all_vtables): Adjust.
12628         (walk_subobject_offsets): Adjust.
12629         (layout_nonempty_base_or_field): Adjust.
12630         (layout_empty_base): Remove last parameter. Adjust.
12631         (build_base_field): Adjust.
12632         (build_base_fields): Adjust.
12633         (propagate_binfo_offsets): Remove last parameter. Adjust.
12634         (dfs_set_offset_for_unshared_vbases): Delete.
12635         (layout_virtual_bases): Adjust.
12636         (finish_struct_1): Adjust.
12637         (init_class_processing): Don't init access nodes.
12638         (dfs_get_primary_binfo): Delete.
12639         (get_primary_binfo): Adjust.
12640         (dump_class_hierarchy_r): Remove most derived arg, add IGO
12641         parameter. Adjust.
12642         (dump_class_hierarchy): Adjust.
12643         (finish_vtbls): Adjust.
12644         (get_original_base): Delete.
12645         (build_vtt_inits): Adjust.
12646         (dfs_build_secondary_vptr_vtt_inits): Adjust.
12647         (dfs_ctor_vtable_bases_queue_p): Adjust.
12648         (build_ctor_vtbl_group): Adjust.
12649         (dfs_accumulate_vtbl_inits): Adjust.
12650         (build_vtbl_initializer): Adjust.
12651         (build_vbase_offset_vtbl_entries): Adjust.
12652         (add_vcall_offset_vtbl_entries_1): Adjust.
12653         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
12654         (access_*_node): Remove.
12655         (CANONICAL_BINFO): Delete.
12656         (BINFO_UNSHARED_MARKED): Remove.
12657         (BINFO_MARKED): Set LANG_FLAG_0 directly.
12658         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
12659         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
12660         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
12661         Delete.
12662         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
12663         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
12664         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
12665         Delete.
12666         (BINFO_DEPENDENT_BASE_P): New.
12667         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
12668         index.
12669         (markedp, unmarkedp): Adjust.
12670         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
12671         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
12672         find_vbase_instance, binfo_for_vbase): Delete.
12673         (copied_binfo, original_binfo): Declare.
12674         (finish_base_specifier): Add virtual_p arg.
12675         (unshare_base_binfos): Delete.
12676         (copy_base_binfos): Declare.
12677         (reverse_path): Delete.
12678         * cp/decl.c (xref_basetypes): Access and virtuality passed
12679         differently. Don't copy direct base binfos here. Call
12680         copy_base_binfos.
12681         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
12682         (initialize_vtbl_ptrs): Adjust.
12683         (expand_member_init): Adjust.
12684         * cp/parser.c (cp_parser_base_specifier): Adjust.
12685         * cp/pt.c (instantiate_class_template): Adjust.
12686         (get_template_base_recursive): Adjust.
12687         * cp/rtti.c (get_pseudo_ti_init): Adjust.
12688         (get_pseudo_ti_desc): Adjust.
12689         * cp/tree.c (unshare_base_binfos): Rename to ...
12690         (copy_base_binfos): ... here, reimplement.
12691         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
12692         (reverse_path): Remove.
12693         * cp/typeck.c (get_delta_difference): Adjust error messages.
12694         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
12695         * cp/search.c (lookup_base_r): Adjust.
12696         (dynamic_cast_base_recurse): Adjust.
12697         (canonical_binfo): Remove.
12698         (dfs_canonical_queue): Remove.
12699         (dfs_assert_unmarked_p): Remove.
12700         (assert_canonical_unmarked): Remove.
12701         (shared_marked_p, shared_unmarked_p): Remove.
12702         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
12703         (dfs_access_in_type): Adjust.
12704         (access_in_type): Adjust.
12705         (dfs_accessible_queue_p): Adjust.
12706         (dfs_accessible_p): Adjust.
12707         (is_subobject_of_p_1, is_subobject_of_p): Remove.
12708         (struct lookup_field_info): Remove from_dep_base_p field.
12709         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
12710         (lookup_field_r): Remove dependent base code.
12711         (lookup_member): Likewise.
12712         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
12713         (dfs_unmarked_real_bases_queue_p): Remove.
12714         (dfs_marked_real_bases_queue_p): Remove.
12715         (dfs_skip_vbases): Remove.
12716         (dfs_get_pure_virtuals): Adjust.
12717         (markedp, unmarkedp): Adjust.
12718         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
12719         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
12720         (dfs_unmark): Adjust.
12721         (dfs_get_vbase_types):Remove.
12722         (dfs_build_inheritance_graph_order): Remove.
12723         (get_vbase_types): Remove
12724         (dfs_find_vbase_instance): Remove.
12725         (find_vbase_instance): Remove.
12726         (dfs_debug_unmarkedp): Adjust.
12727         (dependent_base_p): Remove.
12728         (dfs_push_type_decls): Adjust.
12729         (dfs_push_decls): Adjust.
12730         (dfs_no_overlap_yet): Adjust.
12731         (copied_binfo): New function.
12732         (original_binfo): New function.
12733         (binfo_for_vbase): Remove.
12734
12735         Change base class access representation.
12736         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
12737         (add_interface_do): Likewise.
12738
12739 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
12740
12741         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12742         * config/rs6000/power4.md (power4-store,power4-vecstore): New
12743         insn reservations.
12744         (power4-fpstore): Compact.
12745
12746 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
12747
12748         * config/h8300/h8300.md (*iorsi3_w): New.
12749
12750 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
12751
12752         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
12753         * rtl.c (reg_note_name): Likewise.
12754         * rtl.h (enum reg_note): Likewise.
12755         * doc/invoke.texi: Likewise.
12756         * doc/rtl.texi: Likewise.
12757
12758 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
12759
12760         * bb-reorder.c (find_traces_1_round): Fix comment typo.
12761
12762 2003-02-19  Roger Sayle  <roger@eyesopen.com>
12763
12764         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
12765         addition in the presence of signaling NaNs.
12766
12767 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
12768
12769         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
12770
12771 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
12772
12773         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
12774         ORing with 0xffff??00 with the highest bit of the ?? part set.
12775         (compute_logical_op_length): Update.
12776         (compute_logical_op_cc): Likewise.
12777
12778 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
12779
12780         * bb-reorder.c (find_traces_1_round): Fixed condition for small
12781         destination block with multiple predecessors.
12782         (connect_traces): Check whether the block is a start of trace.
12783
12784 2003-02-19  Jan Hubicka  <jh@suse.cz>
12785
12786         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
12787         * function.c (assign_params): Likewise.
12788         * arm-protos.h (arm_init_cumulative_args): Update prototype.
12789         * arm.c (arm_init_cumulative_args): Update function.
12790         * arm.h (INIT_CUMULATIVE_ARGS): Update.
12791         * avr-protos.h (init_cumulative_args): Update prototype.
12792         * avr.c (init_cumulative_args): Update function.
12793         * avr.h (INIT_CUMULATIVE_ARGS): Update.
12794         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
12795         * d30v.c (d30v_init_cumulative_args): Update function.
12796         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
12797         * frv-protos.h (frv_init_cumulative_args): Update prototype.
12798         * frv.c (frv_init_cumulative_args): Update function.
12799         * frv.h (INIT_CUMULATIVE_ARGS): Update.
12800         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
12801         * pa.h (INIT_CUMULATIVE_ARGS): Update.
12802         * sparc-protos.h (init_cumulative_args): Update prototype.
12803         * sparc.c (init_cumulative_args): Update function.
12804         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
12805         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
12806
12807 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
12808
12809         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
12810         (*ashiftsi_sextqi_7): Likewise.
12811
12812 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12813
12814         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
12815         ISO C99 and C++.
12816
12817         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
12818         for C++ on IRIX 6.5.1[89].
12819         * fixinc/tests/base/internal/sgimacros.h: New file.
12820
12821         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
12822         * fixinc/tests/base/internal/wchar_core.h: New file.
12823
12824         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
12825         socklen_t definition.
12826         * fixinc/fixincl.x: Regenerate.
12827         * fixinc/tests/base/sys/socket.h: New file.
12828         Fixes PR libgcj/9652.
12829
12830 2003-02-19  Jan Hubicka  <jh@suse.cz>
12831
12832         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
12833
12834 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
12835
12836         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
12837         align_jumps_max_skip and align_loops_max_skip.
12838
12839 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
12840
12841         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
12842         test size if named section.
12843
12844 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
12845
12846         * expr.c (expand_expr): Use gen_int_mode for the argument
12847         to gen_rtx_MULT.
12848
12849 2003-02-19  Jan Hubicka  <jh@suse.cz>
12850
12851         * i386.md (cosxf2):  Fix conditional.
12852
12853 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
12854
12855         * config/h8300/h8300.md (extendqisi2): Change to an expander.
12856         (*extendqisi2_h8300): New.
12857         (*extendqisi2_h8300hs): Likewise.
12858
12859 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
12860
12861         * config/h8300/h8300-protos.h: Update the prototype for
12862         split_adds_subs.  Remove the prototypes for
12863         const_int_le_2_operand and const_int_le_6_operand.
12864         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
12865         (const_int_le_2_operand): Remove.
12866         (const_int_le_6_operand): Likewise.
12867         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
12868         for const_int_le_2_operand and const_int_le_6_operand.
12869         * config/h8300/h8300.md: Update all uses of split_adds_subs.
12870         (a peephole2): New.
12871
12872 2003-02-18  Jan Hubicka  <jh@suse.cz>
12873
12874         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
12875         (cgraph_expand_function): Rewrite.
12876
12877 2003-02-18  Matt Austern <austern@apple.com>
12878
12879         * toplev.c, langhooks.c, langhooks-def.h: Move
12880         write_global_declarations from toplev.c to langhooks.c.
12881
12882 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
12883
12884         * config/h8300/h8300.c (general_operand_src): Always check
12885         MODE.
12886         (general_operand_dst): Likewise.
12887
12888 2003-02-18  Roger Sayle  <roger@eyesopen.com>
12889
12890         * convert.c (convert_to_real): Also optimize (float)log(x) into
12891         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
12892
12893 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
12894
12895         * config/sh/sh.c (unspec_caller_rtx_p): New.
12896         (sh_cannot_copy_insn_p): New.
12897         (TARGET_CANNOT_COPY_INSN_P): New.
12898
12899 2003-02-18  Richard Henderson  <rth@redhat.com>
12900
12901         * c-common.c (handle_used_attribute): Accept static data too.
12902
12903 2003-02-18  Nick Clifton  <nickc@redhat.com>
12904             Aldy Hernandez  <aldyh@redhat.com>
12905
12906         * testsuite/gcc.dg/20030218-1.c: New.
12907
12908         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
12909
12910         * target-def.h (TARGET_INITIALIZER): Add
12911         TARGET_VECTOR_TYPES_COMPATIBLE.
12912         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
12913
12914         * target.h (struct gcc_target): Add field vector_types_compatible.
12915
12916         * c-typeck.c (comptypes): Take into account
12917         TARGET_VECTOR_TYPES_COMPATIBLE.
12918         (convert_for_assignment): Same.
12919
12920         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
12921         (rs6000_spe_vector_types_compatible): New.
12922         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
12923
12924 2003-02-19  Andreas Schwab  <schwab@suse.de>
12925
12926         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
12927         * toplev.c: Include langhooks-def.h.
12928
12929 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
12930
12931         * config/mips/mips.h (enum processor_type): Sort entries
12932         alphabetically.
12933         * config/mips/mips.md (define_attr cpu): Sync with processor_type
12934         enum values, including adding entries that were missing.
12935
12936 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
12937
12938         * sh.c (calc_live_regs): Also check GET_CODE when checking if
12939         initial value for PR_REG is still the PR_REG register.
12940
12941 2003-02-18  Jim Wilson  <wilson@redhat.com>
12942
12943         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
12944         instruction in output template.
12945         (bsp_value): Change output template from string to C code, add %,
12946         before actual instruction.
12947         (flushrs): Mark as not predicable.
12948
12949 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
12950
12951         * inclhack.def (netbsd_bogus_semicolon): New fix.
12952         * fixincl.x: Rebuilt.
12953         * tests/base/ctype.h: Update.
12954
12955 2003-02-18  Roger Sayle  <roger@eyesopen.com>
12956
12957         * fold-const.c (negate_expr_p): New function to determine whether
12958         an expression can be negated cheaply.
12959         (fold) [MINUS_EXPR]: Use it to determine whether to transform
12960         -A - B into -B - A for floating point types.
12961
12962 2003-02-18  Roger Sayle  <roger@eyesopen.com>
12963
12964         * sbitmap.c (sbitmap_resize): New function.
12965         * sbitmap.h (sbitmap_resize): Prototype here.
12966         * recog.c (split_all_insns): Use sbitmap_resize.
12967
12968 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
12969
12970         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
12971         insn length.
12972         (extendqisi2): Likewise.
12973         (*extendhisi2_h8300): Likewise.
12974
12975 2003-02-18  Matt Austern <austern@apple.com>
12976
12977         * langhooks.h, langhooks-def.h: introduce new langhook,
12978         final_write_globals, with write_global_declarations as default.
12979         * toplev.c: Move invocation of wrapup_global_declarations from
12980         compile_file to new function, write_global_declarations.  Change
12981         compile_file to use final_write_globals hook.  Change
12982         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
12983         conditional.
12984
12985 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12986
12987         * pa.md: Correct and enhance comment.
12988
12989 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
12990
12991         * gcc.c (validate_switches): Don't scan past closing '}'.
12992
12993 2003-02-18  Ben Elliston  <bje@redhat.com>
12994
12995         PR c++/1607
12996         * doc/extend.texi (Function Attributes): Document the effect of
12997         the C++ "this" parameter on the counting of arguments for the
12998         "format" and "format_arg" attributes.
12999
13000 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
13001
13002         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
13003         (__ev_stdw): Same.
13004         (__ev_stdh): Same.
13005
13006 2003-02-17  Jan Hubicka  <jh@suse.cz>
13007
13008         * recog.c (split_all_insns):  Fix memory overflow.
13009
13010 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
13011
13012         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
13013         (cmphi): Likewise.
13014         (*cmphi_h8300): Likewise.
13015         (*cmphi_h8300hs): Likewise.
13016         (cmpsi): Likewise.
13017         (7 peephole2): Likewise.
13018
13019 2003-02-16  Jan Hubicka  <jh@suse.cz>
13020
13021         * c-typeck.c (build_c_cast):  Fold constant variables into
13022         initial values.
13023
13024 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13025
13026         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
13027         (Binaries): Ditto for Sinix/Reliant Unix.
13028
13029 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
13030
13031         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
13032         not overlap the final result register.
13033
13034 2003-02-16 Arend Bayer <arend.bayer@web.de>
13035            Richard Henderson  <rth@redhat.com>
13036
13037         PR c/8068
13038         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
13039         rearrange mult arguments for less recursion.
13040         (extract_muldiv): New.  Prevent runaway recursion.
13041
13042 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
13043
13044         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
13045         MASK_ALIGN_DOUBLE.
13046
13047 2003-02-15  Roger Sayle  <roger@eyesopen.com>
13048
13049         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
13050         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
13051         (ext_80387_constants_table): Global table of 80387 special constants
13052         guarded by ext_80387_constants_init flag when not initialized.
13053         (init_ext_80387_constants): New function to initialize this table.
13054         (standard_80387_constant_p): Extend to recognize extra 80387
13055         constants, in XFmode, on processors where this is a win.
13056         (standard_80387_constant_opcode): New function to return the
13057         opcode associated with standard_80387_constant_p.
13058         (standard_80387_constant_rtx): New function to return the XFmode
13059         CONST_DOUBLE associated with standard_80387_constant_p.
13060         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
13061
13062         * config/i386/i386-protos.h (standard_80387_constant_opcode):
13063         Prototype here.
13064         (standard_80387_constant_rtx): Likewise.
13065
13066         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
13067         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
13068         *movtf_integer): Simplify using new standard_80387_constant_opcode.
13069
13070 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
13071
13072         * doc/invoke.texi (Optimize Options): Correct @option syntax.
13073
13074 2003-02-15  Richard Henderson  <rth@redhat.com>
13075
13076         * Makefile.in (cfglayout.o): Depend on TARGET_H.
13077         * cfglayout.c: Include target.h.
13078         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
13079         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
13080         * target.h (struct gcc_target): Add cannot_copy_insn_p.
13081
13082         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
13083         (TARGET_CANNOT_COPY_INSN_P): New.
13084         (override_options): Revert 2003-02-08 hack.
13085
13086 2003-02-15  Richard Henderson  <rth@redhat.com>
13087
13088         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
13089         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
13090
13091 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
13092
13093         * config/rs6000/rs6000.h (processor_type): Add PPC440.
13094         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
13095         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
13096         TARGET_SCHED_VARIABLE_ISSUE): Define.
13097         (rs6000_use_dfa_pipeline_interface): New function.
13098         (rs6000_multipass_dfa_lookahead): New Function.
13099         (rs6000_variable_issue): New function.
13100         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
13101         (rs6000_issue_rate): Add PPC440.
13102         * config/rs6000/rs6000.md (unspec list): Correct typo.
13103         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
13104         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
13105         cmp, delayed_cr, mfcr, mtcr.
13106         (automata_option): Set "ndfa".
13107         (extendMMNN2): Update attributes.
13108         (movcc_internal1): Discourage move to non-cr0.  Update
13109         attributes.
13110         (movMM_update): Update attributes.
13111         (cmpMM_internal): Update attributes.
13112         (sCC CR materialization): Update attributes.
13113         (branch patterns): Do not discourage non-cr0.
13114         (cr logical patterns): Prefer destructive register allocation.
13115         Update attributes.
13116         (movesi_from_cr): Update attribute.
13117         (mtcrf_operation): Update attribute.
13118         (mtcrfsi): Update attribute.
13119         * config/rs6000/40x.md: New file.
13120         * config/rs6000/603.md: New file.
13121         * config/rs6000/6xx.md: New file.
13122         * config/rs6000/7450.md: New file.
13123         * config/rs6000/7xx.md: New file.
13124         * config/rs6000/mpc.md: New file.
13125         * config/rs6000/power4.md: New file.
13126         * config/rs6000/rios1.md: New file.
13127         * config/rs6000/rios2.md: New file.
13128         * config/rs6000/rs64.md: New file.
13129         [Some DFA descriptions based on work by Michael Hayes]
13130
13131 2003-02-15  Richard Henderson  <rth@redhat.com>
13132
13133         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
13134         successors with multiple predecessors.
13135         (connect_traces): Try harder to copy traces of length 1.
13136
13137         * function.h (struct function): Add computed_goto_common_label,
13138         computed_goto_common_reg.
13139         * function.c (free_after_compilation): Zap them.
13140         * stmt.c (expand_computed_goto): Use them to produce one
13141         indirect branch per function.
13142
13143 2003-02-15  Richard Henderson  <rth@redhat.com>
13144
13145         * cfgcleanup.c: Include params.h.
13146         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
13147         too many outgoing edges from a block.
13148         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
13149         * params.def (max-crossjump-edges): New.
13150         * doc/invoke.texi: Document it.
13151
13152 2003-02-15  Richard Henderson  <rth@redhat.com>
13153
13154         * recog.c (split_all_insns): Include new blocks in life update;
13155         do a global life update.
13156
13157 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
13158
13159         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
13160         Update copyright.
13161         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
13162         -mno-cygwin case.
13163
13164 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
13165
13166         PR optimization/7702
13167         * reload1.c (reload_cse_simplify_set): Honor
13168         CANNOT_CHANGE_MODE_CLASS.
13169
13170 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
13171
13172         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
13173         function.
13174         * config/mn10300/mn10300-protos.h: Declare it.
13175         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
13176         attribute cc of instructions that may use clr.
13177
13178 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
13179
13180         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
13181         (x - (x & y)) is found.
13182
13183 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13184
13185         * configure.in: Fix typo.
13186         * configure: Regenerate.
13187
13188 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
13189
13190         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
13191
13192 2003-02-13  Adam Nemet  <anemet@lnxw.com>
13193
13194         PR opt/2391
13195         * combine.c: Fix spelling in comment.
13196         (cached_nonzero_bits): New function.
13197         (cached_num_sign_bit_copies): New function.
13198         (nonzero_bits_with_known): New macro.
13199         (num_sign_bit_copies_with_known): New macro.
13200         (nonzero_bits1): Rename from nonzero_bits.  Add three new
13201         arguments.  Change calls from nonzero_bits to
13202         nonzero_bits_with_known.
13203         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
13204         three new arguments.  Change calls from num_sign_bit_copies to
13205         num_sign_bit_copies_with_known.
13206         (nonzero_bits): New macro.
13207         (num_sign_bit_copies): New macro.
13208         (update_table_tick): Don't traverse identical subexpression more
13209         than once.
13210         (get_last_value_validate): Likewise.
13211
13212 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
13213
13214         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
13215         * function.h (struct emit_status): Length of regno_pointer_align
13216         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
13217         not regno_pointer_align_length (i.e. length actually used, not
13218         length as allocated)
13219
13220         * config/i386/i386.c (struct stack_local_entry): New.
13221         (struct machine_function): Replace huge array with alist.
13222         (assign_386_stack_local): Change to match.
13223
13224 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
13225
13226         * inclhack.def (hpux_long_double): Tighten select and add bypass
13227         regexp.
13228         * fixincl.x: Rebuilt.
13229
13230 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
13231
13232         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
13233         edge and block ends with a jump insn it must be simple jump.
13234
13235 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
13236
13237         * Makefile.in (PREPROCESSOR_DEFINES): Add
13238         @TARGET_SYSTEM_ROOT_DEFINE@.
13239         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
13240         is specified or if building a cross compiler.
13241         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
13242         if the sysroot is under $exec_prefix.
13243         * configure: Regenerated.
13244         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
13245         defined.
13246         (struct default_include): Add add_sysroot field.
13247         (cpp_SYSROOT): Declare.
13248         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
13249         field.
13250         (cpp_SYSROOT): New variable.
13251         * cppinit.c (cpp_create_reader): Initialize
13252         CPP_OPTION (pfile, sysroot).
13253         (init_standard_includes): Handle add_sysroot.  Do not
13254         add unrelocated copies of relocated directories.
13255         (COMMAND_LINE_OPTIONS): Add -isysroot.
13256         (cpp_handle_option): Handle -isysroot.
13257         * cpplib.h (struct cpp_options): Add sysroot member.
13258         * gcc.c (The Specs Language): Update description of %I.
13259         (target_system_root_changed): New variable.
13260         (process_command): Conditionalize make_relative_prefix call
13261         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
13262         target_system_root_changed.
13263         (do_spec_1): Add -isysroot to %I.
13264         * doc/invoke.texi (Spec Files): Update description of %I.
13265         * doc/install.texi (--with-sysroot): Update comment about
13266         relocation.
13267
13268 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
13269
13270         * config/h8300/h8300.md (a peephole2): New.
13271
13272 2003-02-13  Robert Lipe <robertlipe@usa.net>
13273             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13274
13275         * doc/install.texi (Specific): Update three SCO-related URLs.
13276
13277 2003-02-13  Andreas Schwab  <schwab@suse.de>
13278
13279         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
13280         Parenthesize properly.
13281         (NPREDECESORS): Parenthesize properly.
13282
13283 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13284
13285         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
13286
13287 2003-02-12  Roger Sayle  <roger@eyesopen.com>
13288
13289         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
13290         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
13291
13292         * reg-stack.c (subst_stack_regs_pat): Add support for binary
13293         UNSPEC instructions (e.g. "fpatan").
13294
13295 2003-02-12  Mike Stump  <mrs@apple.com>
13296
13297         * varray.c (element_size): Remove.
13298         (uses_ggc): Remove.
13299         (element): Add.
13300         (varray_init): Use new interface.
13301         (varray_grow): Use new interface.
13302         (varray_clear): Use new interface.
13303
13304 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
13305
13306         * config/rs6000/spe.h: Add casts to the arguments of the following
13307         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
13308         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
13309         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
13310         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
13311         __ev_get_u16, __ev_get_s16.
13312
13313 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
13314
13315         * config/h8300/h8300.md (a peephole2): New.
13316
13317 2003-02-12  Jan Hubicka  <jh@suse.cz>
13318
13319         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
13320         (OBJS): Add callgraph.o
13321         (callgraph.o): New.
13322         * c-decl.c (expand_body_1): Break out from ...
13323         (expand_body): This one;  change calling convention
13324         (finish_function): Move some of expand_body logic here.
13325         (c_expand_deferred_function): Update call of expand_body
13326         (c_expand_stmt): Use c_expand_body_1.
13327         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
13328         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
13329         * c-tree.h (c_expand_body): Declare.
13330         * callgraph.c: New file.
13331         * flags.h (flag_unit_at_a_time): Declare.
13332         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
13333         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
13334         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
13335         * langhooks.h (struct lang_hooks_for_callgraph): New.
13336         (struct lang_hooks): Add callgraph field.
13337         * toplev.c (flag_unit_at_a_time): New.
13338         (lang_independent_options): Add flag_unit_at_a_time.
13339         (process_options): Disable unit-at-a-time mode for frontends not
13340         supporting callgraph.
13341         * tree-inline.c (typedef struct inline_data): Add "decl"
13342         (expand_call_inline): Update callgraph.
13343         (optimize_inline_calls): Set id.decl.
13344         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
13345         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
13346         cgraph_calls_p): Declare.
13347         * invoke.texi (-funit-at-a-time): Document
13348
13349 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
13350
13351         * config/rs6000/spe.h: Fix misc formatting.
13352         (__ev_create_ufix32_fs): Cast ev argument.
13353         (__ev_create_sfix32_fs): Same.
13354         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
13355         (__ev_get_ufix32_fs_internal): Same.
13356
13357 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
13358
13359         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
13360         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
13361
13362 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
13363
13364         * cpplib.c (do_include_common): Move warnings for
13365         #include_next and #import out to callers.  Use early-return
13366         instead of nested ifs.  Don't do check_eol here.
13367         (parse_include): Do check_eol here with the rest of the
13368         parsing stuff.
13369         (do_include_next, do_import): Now handle warnings.
13370
13371 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13372
13373         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
13374
13375 2003-02-12  Jan Hubicka  <jh@suse.cz>
13376
13377         * predict.c (estimate_probability):  Fix roundoff error.
13378
13379 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
13380
13381         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
13382         (two peephole2): New.
13383
13384 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
13385
13386         * config/h8300/h8300.md (several peephole2): Replace
13387         find_regno_note with peep2_reg_dead_p.
13388
13389 2003-02-11  Richard Henderson  <rth@redhat.com>
13390
13391         * gcse.c (lookup_set): Remove unused argument PAT.  Update
13392         both callers.
13393
13394 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
13395
13396         * diagnostic.c (real_abort): New.
13397         (diagnostic_report_diagnostic): Call real_abort on error.
13398         * diagnostic.h (diagnostic_abort_on_error): New.
13399         (struct diagnostic_context): Add abort_on_error field.
13400         * toplev.c (setup_core_dumping): New.
13401         (decode_d_option): Handle 'H' case.
13402         * doc/invoke.texi (Debugging Options): Document -dH.
13403
13404 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
13405
13406         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
13407         which refers to obsolete directories.
13408
13409 2003-02-11  Richard Henderson  <rth@redhat.com>
13410
13411         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
13412
13413 2002-10-21  Jan Hubicka  <jh@suse.cz>
13414
13415         * i386.c (contains_128bit_aligned_vector_p): New function.
13416         (ix86_function_arg_boundary): Properly align vector modes.
13417
13418 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
13419
13420         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
13421         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
13422         as a SET pattern.
13423
13424 2003-02-11  Roger Sayle  <roger@eyesopen.com>
13425
13426         * builtins.c:  Fix failure caused by commiting wrong patch.
13427
13428 2003-02-11  Dale Johannesen  <dalej@apple.com>
13429         * ra-build.c (compare_and_free_webs):  Relax checking.
13430         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
13431         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
13432
13433 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
13434
13435         PR optimization/9651
13436         * rtlanal.c (may_trap_p): Handle FIX.
13437
13438 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
13439
13440         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
13441         * doc/invoke.texi: Extra alias.
13442
13443 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
13444
13445         * config/rs6000/host-darwin.c: Fix comment.
13446
13447 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
13448
13449         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
13450         predicate for mod result.
13451
13452 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13453
13454         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
13455         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
13456         * fixincl.x: Rebuilt.
13457         * tests/base/stdlib.h: Update.
13458         * tests/base/ctype.h: New file.
13459
13460 2003-02-11  Jan Hubicka  <jh@suse.cz>
13461
13462         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
13463
13464 2003-02-11  Richard Henderson  <rth@redhat.com>
13465
13466         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
13467         appropriated as globals.
13468         (ix86_expand_clrstr): Similarly.
13469         * config/i386/i386.md (cmpstrsi): Similarly.
13470
13471 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
13472
13473         * config/h8300/h8300.md (a peephole2): Add a case of 255.
13474
13475 2003-02-11  Roger Sayle  <roger@eyesopen.com>
13476
13477         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
13478         (pow_optab, atan2_optab): Define corresponding macros.
13479         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
13480         * genopinit.c (optabs): Implement pow_optab and atan2_optab
13481         using pow?f3 and atan2?f3 patterns.
13482         * builtins.c (expand_errno_check): New function to update errno
13483         if necessary, split out from expand_builtin_mathfn.
13484         (expand_builtin_mathfn): Use expand_errno_check.
13485         (expand_builtin_mathfn_2): New function to handle expanding binary
13486         math functions, reusing the code in expand_errno_check.
13487         (expand_builtin): Handle the pow and atan2 math built-ins,
13488         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
13489         expand_builtin_mathfn_2.
13490
13491         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
13492
13493 2003-02-11  Jan Hubicka  <jh@suse.cz>
13494
13495         * combine.c (combine_simplify_rtx): Fix folding of
13496         nested float_truncates.
13497
13498 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
13499
13500         * config/h8300/h8300.md (a peephole2): Fix a typo.
13501
13502 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
13503
13504         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
13505         register number.
13506
13507 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
13508
13509         * config/h8300/h8300-protos.h: Add a prototype for
13510         gtuleu_operator.
13511         * config/h8300/h8300.c (gtuleu_operator): New.
13512         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
13513         * config/h8300/h8300.md (a peephole2): New.
13514
13515 2003-02-11  Jan Hubicka  <jh@suse.cz>
13516
13517         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
13518
13519 2003-02-11  Jan Hubicka  <jh@suse.cz>
13520
13521         * predict.c (choose_function_section): Choose sections correctly.
13522
13523 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13524
13525         * reload1.c (first_label_num): New.
13526         (reload): Index offsets_known_at and offsets_at using difference of
13527         label number and first label number.  Don't use offset pointers.
13528         (set_label_offsets, set_initial_label_offsets): Likewise.
13529
13530 2003-02-10  Roger Sayle  <roger@eyesopen.com>
13531
13532         * mips-tfile.c (init_file): Add missing initializers in the
13533         "#ifdef __alpha" case.
13534         (file_offset, max_file_offset): Declare as unsigned long.
13535         (write_varray): Cast to "unsigned long" in comparisons against
13536         either file_offset or max_file_offset.
13537         (write_object): Likewise.
13538         (read_seek): Likewise.
13539         (copy_object): Likewise. Declare "ifd" as int to match its use
13540         in add_ext_symbol, and avoid signed/unsigned conditional warning.
13541
13542 2003-02-10  Nick Clifton  <nickc@redhat.com>
13543             Aldy Hernandez  <aldyh@redhat.com>
13544
13545         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
13546         override options which have been specified on the command line.
13547
13548 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
13549
13550         * config/h8300/h8300.md (abssf2): New.
13551         (*abssf2_h8300): Likewise.
13552         (*abssf2_h8300hs): Likewise.
13553
13554 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
13555
13556         * tree.c (build_tree_list):  Fix parameter names in comment.
13557
13558 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
13559
13560         * config/rs6000/ppc64-fp.c: New file.
13561         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
13562
13563 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
13564
13565         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
13566         * bb-reorder.c (make_reorder_chain): Deleted.
13567         (make_reorder_chain_1): Deleted.
13568         (find_traces): New function.
13569         (rotate_loop): New function.
13570         (mark_bb_visited): New function.
13571         (find_traces_1_round): New function.
13572         (copy_bb): New function.
13573         (bb_to_key): New function.
13574         (better_edge_p): New function.
13575         (connect_traces): New function.
13576         (copy_bb_p): New function.
13577         (get_uncond_jump_length): New function.
13578         (reorder_basic_blocks): Use new functions (Software Trace Cache).
13579         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
13580         boundaries.
13581
13582 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
13583
13584         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
13585
13586 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
13587
13588         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
13589         (DECL_LIVE_RANGE_RTL): Remove.
13590
13591 2003-02-10  Nick Clifton  <nickc@redhat.com>
13592
13593         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
13594         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
13595         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
13596         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
13597         config/arm/freebsd.h, config/arm/linux-elf.h,
13598         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
13599         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
13600         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
13601         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
13602         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
13603         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
13604         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
13605         and reformat as appropriate.
13606
13607 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
13608
13609         * config/h8300/clzsi2.c: Remove.
13610         * config/h8300/ctzsi2.c: Likewise.
13611         * config/h8300/paritysi2.c: Likewise.
13612         * config/h8300/popcountsi2.c: Likewise.
13613         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
13614         ctzsi2, paritysi2, and popcountsi2.
13615
13616 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
13617             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
13618
13619         PR c/7741
13620         * c-decl.c (duplicate_decls): Discard the initializer of the
13621         new decl when the types are conflicting.
13622
13623 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
13624
13625         * Makefile.in (sreal.o): Added.
13626         (predict.o): Depends on sreal.h instead of real.h.
13627         * sreal.c: New file.
13628         * sreal.h: New file.
13629         * predict.c: Use sreal.c instead of real.c.
13630
13631 2003-02-10  Nick Clifton  <nickc@redhat.com>
13632
13633         * Contributed support for the Cirrus EP9312 "Maverick"
13634         floating point co-processor.  Written by Aldy Hernandez
13635         <aldyh@redhat.com>.
13636         (config/arm/arm.c): Add Cirrus support.
13637         (config/arm/arm.h): Likewise.
13638         (config/arm/aout.h): Likewise.
13639         (config/arm/arm.md): Likewise.
13640         (config/arm/arm-protos.h): Likewise.
13641         (config.gcc): Likewise.
13642         (doc/invoke.texi): Describe new -mcpu value and new
13643         -mcirrus-fix-invalid-insns switch,
13644         (cirrus.md): New file.
13645
13646 2003-02-10  Jan Hubicka  <jh@suse.cz>
13647
13648         * combine.c (combine_simplify_rtx): Simplify using
13649         (float_truncate (float x)) is (float x)
13650         (float_extend (float_extend x)) is (float_extend x).
13651
13652 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
13653
13654         * calls.c (try_to_integrate): Tidy stack_usage_map access.
13655         (emit_library_call_value_1): Likewise.  Formatting.
13656         (store_one_arg): Likewise.
13657
13658 2003-02-09  Nick Clifton  <nickc@redhat.com>
13659             Aldy Hernandez  <aldyh@redhat.com>
13660
13661         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
13662         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
13663         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
13664         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
13665         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
13666         docs.  Add range test for immediate value.
13667
13668 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
13669
13670         Rename spe_evxor to xorv2si3.
13671         (xorv4hi3): New.
13672         (xorv1di3): New.
13673
13674 2003-02-10  Glen Nakamura  <glen@imodulo.com>
13675
13676         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
13677         tag.
13678
13679 2003-02-10  Jan Hubicka  <jh@suse.cz>
13680
13681         * i386.c (vector_move_operand): New predicate.
13682         (ix86_expand_vector_move): Be happy about 0.
13683         * i386.h (PREDICATE_CODES): Add sse-move_operand.
13684         * i386.md (mov*_internal): Add 'C' alternative.
13685
13686 2003-02-09  Jan Hubicka  <jh@suse.cz>
13687
13688         * i386.md (floathi*): Deal with SSE.
13689
13690 2003-02-09  Jan Hubicka  <jh@suse.cz>
13691
13692         * simplify-rtx.c (simplify_unary_operation,
13693         simplify_binary_operation):  Deal with vector modes
13694         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
13695
13696 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
13697
13698         * toplev.c (rest_of_compilation): Recompute register usage after
13699         split_all_insns.
13700
13701 2003-02-09  Richard Henderson  <rth@redhat.com>
13702
13703         * libgcc-std.ver (__clztf2): New.
13704         (__ctztf2, __popcounttf2, __paritytf2): New.
13705         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
13706         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
13707         adjust code to match the different type sizes.
13708         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
13709         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
13710
13711         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
13712         TImode; select word_mode and twice that.
13713         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
13714         select the modes from float, double, and long double.
13715         (init_optabs): Remove duplicate initializations.
13716
13717 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
13718
13719         * doc/install.texi: Squeeze and streamline section on
13720         testing and regression checking.
13721
13722 2003-02-09  Jan Hubicka  <jh@suse.cz>
13723
13724         * i386.md (ahi?v*3): Set third operand type to TImode.
13725         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
13726
13727         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
13728         integer mode.
13729
13730         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
13731         Change code so they are arithmetic expressions now.
13732         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
13733         simplify_ternary_operation): Deal with VEC_* expressions.
13734
13735         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
13736
13737 2003-02-08  Jan Hubicka  <jh@suse.cz>
13738
13739         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
13740         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
13741         possibly got duplicated.
13742
13743 2003-02-08  Richard Henderson  <rth@redhat.com>
13744
13745         * config/alpha/alpha.c (override_options): Turn off explicit
13746         relocs until post-peep2 code duplication resolved.
13747
13748 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
13749
13750         * optabs.c (expand_unop): Widen clz properly when clz is done
13751         via libcall.
13752
13753 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
13754
13755         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
13756         * config/h8300/crti.asm: Likewise.
13757         * config/h8300/crtn.asm: Likewise.
13758         * config/h8300/ctzsi2.c: Likewise.
13759         * config/h8300/fixunssfsi.c: Likewise.
13760         * config/h8300/h8300-protos.h: Likewise.
13761         * config/h8300/h8300.c: Likewise.
13762         * config/h8300/h8300.h: Likewise.
13763         * config/h8300/h8300.md: Likewise.
13764         * config/h8300/paritysi2.c: Likewise.
13765         * config/h8300/popcountsi2.c: Likewise.
13766         * config/h8300/rtems.h: Likewise.
13767
13768 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13769
13770         * doc/invoke.texi: Documentation for my previous commit.
13771         * doc/passes.texi: Ditto.
13772
13773 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13774
13775         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
13776         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
13777         Declare.
13778         (DLTHE_FLAG_UPDATE_FREQ): New.
13779         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
13780         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
13781         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
13782         fix_bb_placement, fix_bb_placements, place_new_loop,
13783         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
13784         New static functions.
13785         (fix_loop_placement, can_duplicate_loop_p,
13786         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
13787         New functions.
13788
13789         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
13790         unswitch_loops): Declare.
13791         * loop-init.c: New file.
13792         * loop-unswitch.c: New file.
13793         * Makefile.in (loop-init.o, loop-unswitch.o): New.
13794         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
13795         * toplev.c (DFI_loop2): New dump.
13796         (flag_unswitch_loops): New.
13797         (lang_independent_options): Add it.
13798         (rest_of_compilation): Call new loop optimizer.
13799         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
13800
13801 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
13802
13803         * config/h8300/clzsi2.c: New.
13804         * config/h8300/ctzsi2.c: Likewise.
13805         * config/h8300/paritysi2.c: Likewise.
13806         * config/h8300/popcountsi2.c: Likewise.
13807         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
13808
13809 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
13810
13811         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
13812         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
13813         (ctzsi2): New pattern.
13814         (ffssi2): Use clz instead of unspec.
13815         (clzdi2): Rename from cntlzd2.
13816         (ctzdi2): New pattern.
13817         (ffsdi2): Use clz instead of unspec.
13818
13819 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
13820
13821         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
13822         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
13823         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
13824         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
13825
13826 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
13827
13828         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
13829
13830 2003-02-07  Richard Henderson  <rth@redhat.com>
13831
13832         PR 9226
13833         * gcse.c (local_cprop_find_used_regs): New.
13834         (local_cprop_pass): Use it.
13835
13836 2003-02-07  Fred Fish  <fnf@intrinsity.com>
13837
13838         * mips-tfile.c (parse_def): Parenthesize assignments to fix
13839         precedence bugs.
13840
13841 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
13842
13843         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
13844
13845 2003-02-07  Roger Sayle  <roger@eyesopen.com>
13846
13847         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
13848         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
13849         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
13850         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
13851         builtin functions (and their __builtin_* variants).
13852         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
13853         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
13854         when not optimizing.
13855
13856         * doc/extend.texi: Document new pow and atan2 builtins, and
13857         their float and long double variants.  Realphabetize builtins.
13858
13859 2003-02-07  Jan Hubicka  <jh@suse.cz>
13860
13861         * i386.md (sse2_nandv2di3): Fix.
13862
13863 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
13864
13865         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
13866         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
13867         definition.
13868         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
13869         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
13870
13871 2003-02-07  Jan Hubicka  <jh@suse.cz>
13872
13873         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
13874
13875 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
13876
13877         * cfg.c (dump_flow_info): Add back accidently deleted line.
13878
13879 2003-02-07  Andrey Petrov <petrov@netbsd.org>
13880
13881         * optabs.c (expand_float): Search wider integer modes first.
13882
13883 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
13884
13885         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
13886         based on preprocessor flag.
13887
13888 2003-02-07  Roger Sayle  <roger@eyesopen.com>
13889             Richard Henderson  <rth@redhat.com>
13890
13891         * gcse.c (implicit_sets): New.
13892         (compute_hash_table_work): Include them in hash table.
13893         (find_implicit_sets, fis_get_condition): New.
13894         (one_cprop_pass): Allocate and free implicit_sets; call
13895         find_implicit_sets before building hash table.
13896
13897 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
13898
13899         * config/t-netbsd (USER_H): Revert previous change.
13900
13901 2003-02-07  Gabor Greif  <ggreif@lucent.com>
13902
13903         * doc/c-tree.texi (Namespaces): Fix typo.
13904
13905 2003-02-07  Jan Hubicka  <jh@suse.cz>
13906
13907         * regrename.c (do_replace, find_oldest_value_reg,
13908         copyprop_hardreg_forward_1): Update register attributes.
13909
13910 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
13911
13912         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
13913         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
13914         variables starting with underscore.
13915         (struct unit_usage): New structure.
13916         (unit_usages, cycle_alt_unit_usages): New global variables.
13917         (check_unit_distribution_in_reserv): Remove it.
13918         (store_alt_unit_usage): New function.
13919         (check_regexp_units_distribution): Rewrite it.
13920
13921 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13922
13923         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
13924         target_cpu_default.
13925         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
13926         if not MASK_NO_SPACE_REGS.
13927         (output_call): Adjust return pointer, don't load new space register
13928         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
13929         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
13930         TARGET_NO_SPACE_REGS is true.
13931         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
13932         conditions.
13933         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
13934         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
13935         true.  Use bve when TARGET_64BIT is true.
13936
13937 2003-02-06  Richard Henderson  <rth@redhat.com>
13938
13939         * combine.c (nonzero_bits): Fix double break.
13940
13941 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
13942             Richard Henderson <rth@redhat.com>
13943
13944         PR c/9530
13945         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
13946         from functions that return a float to functions that don't.
13947
13948 2003-02-06  Jan Hubicka  <jh@suse.cz>
13949
13950         * i386.c (x86_inter_unit_moves): New variable.
13951         (ix86_secondary_memory_needed): Fix 64bit case, honor
13952         TARGET_INTER_UNIT_MOVES
13953         * i386.h (x86_inter_unit_moves): Declare.
13954         (TARGET_INTER_UNIT_MOVES): New macro.
13955         * i386.md (movsi_1): Cleanup constraints; disable
13956         when not doing inter-unit moves.
13957         (movsi_1_nointernunit): New.
13958         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
13959         (movdi_1_rex64_nointerunit): New.
13960         (mivsf_1): disable when not doing inter-unit moves.
13961         (movsf_1_nointerunit): New.
13962
13963         * basic-block.h (inside_basic_block_p):  Declare.
13964         * cfgbuild.c (inside_basic_block_p): Make global.
13965         * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
13966         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
13967         update CFG.
13968         (fix_basic_block_boundaries, add_missing_bbs): New.
13969         (rank): Use profile.
13970         (scheudle_ebbs): Rely on CFG; update coments.
13971
13972 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
13973
13974         * Makefile.in (host_hook_obj): New.
13975         (OBJS): Add $(host_hook_obj).
13976         (host_default.o): New rule.
13977         * config.gcc (host_hook_obj): New, default to host-default.o.
13978         (powerpc-*-darwin*): Use host-darwin.o.
13979         (out_host_hook_obj): New.
13980         * configure: Regenerate.
13981         * configure.in: Print information about out_host_hook_obj, substitute
13982         into output files.
13983         * host-default.c: New file.
13984         * hosthooks.h: New file.
13985         * toplev.c (general_init): Call host_hooks.extra_signals.
13986         * config/rs6000/host-darwin.c: New file.
13987         * config/rs6000/x-darwin: New file.
13988         * doc/hostconfig.texi: Add documentation for new host hook.
13989         Rearrange existing documentation.
13990
13991 2003-02-05  Roger Sayle  <roger@eyesopen.com>
13992
13993         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
13994         with *targetm.delegitimize_address.
13995         (rtl_for_decl_location): Likewise.
13996         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
13997         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
13998
13999         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
14000         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
14001         prototype.
14002         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
14003         i386_simplify_dwarf_addr.  Made static.  Prototyped.
14004         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
14005         i386_simplify_dwarf_addr to ix86_delegitimize_address.
14006         (ix86_find_base_term): Likewise.
14007         (maybe_get_pool_constant): Likewise.
14008
14009         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
14010         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
14011         prototype.
14012         * config/s390/s390.c (s390_delegitimize_address): Renamed from
14013         s390_simplify_dwarf_addr.  Made static.  Prototyped.
14014         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
14015
14016 2003-02-05  Richard Henderson  <rth@redhat.com>
14017
14018         PR c/8602
14019         * integrate.c (output_inline_function): Reset input_filename
14020         and lineno from the decl before rest_of_compilation.
14021
14022 2003-02-05  Richard Henderson  <rth@redhat.com>
14023
14024         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
14025         (CTZ_DEFINED_VALUE_AT_ZERO): New.
14026         * doc/rtl.texi, doc/tm.texi: Document them.
14027
14028         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
14029         of the value at zero properly.
14030         * fold-const.c (tree_expr_nonnegative_p): Likewise.
14031         * simplify-rtx.c (simplify_unary_operation): Likewise.
14032
14033         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
14034         (CTZ_DEFINED_VALUE_AT_ZERO): New.
14035
14036         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
14037         (TARGET_EXPAND_BUILTIN): Remove.
14038         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
14039         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
14040         (enum arm_builtins): Remove.
14041         * config/arm/arm.md (UNSPEC_CLZ): Remove.
14042         (clzsi2): Rename from clz; use clz instead of unspec.
14043         (ctzsi2): New.
14044         * config/arm/arm-protos.h: Update.
14045
14046 2003-02-05  Jan Hubicka  <jh@suse.cz>
14047
14048         * i386-protos.h (x86_emit_floatuns):  Declare.
14049         * i386.c (x86_emit_floatuns): New global function.
14050         * i386.md (floatunssisf2, floatunsdisf2,
14051         floatunsdidf2):  New patterns.
14052
14053 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14054
14055         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
14056
14057 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
14058
14059         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
14060           config/ia64/linux.h
14061
14062 2003-02-05  Roger Sayle  <roger@eyesopen.com>
14063
14064         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
14065
14066 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
14067
14068         PR optimization/8555
14069         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
14070         instead of aborting.
14071
14072 2003-02-04  Richard Henderson  <rth@redhat.com>
14073
14074         * config/i386/i386.md (UNSPEC_BSF): Remove.
14075         (ffssi2): Split into cmove and no_cmove insns and splitters;
14076         lose pentium float trick for now.
14077         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
14078         (ctzsi2, clzsi2, bsr): New.
14079
14080 2003-02-04  Richard Henderson  <rth@redhat.com>
14081
14082         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
14083         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
14084         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
14085         (ffsdi2): Use popcount instead of unspec.
14086         (popcountdi2): Rename from *popcnt.
14087         (ctzdi2, clzdi2, getf_exp_tf): New.
14088
14089 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
14090
14091         * genconfig.c (main): Generate CC0_P.
14092         * rtl.h (CC0_P): Remove.
14093
14094 2003-02-04  Richard Henderson  <rth@redhat.com>
14095
14096         * libgcc2.h, libgcc2.c (__ffsSI2): New.
14097         (__ffsDI2): Rename from __ffsdi2.
14098         * mklibgcc.in (lib2funcs): Add _ffssi2.
14099
14100 2003-02-04  Richard Henderson  <rth@redhat.com>
14101
14102         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
14103         rounds with a "bit table" lookup.
14104
14105 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14106
14107         * reload.c (find_reloads): Do not use the mode specified in the insn
14108         pattern as reload mode for address operands.  Do not generate optional
14109         reloads for operands where a mandatory reload was already pushed.
14110
14111 2003-02-04  Richard Henderson  <rth@redhat.com>
14112
14113         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
14114         builtins instead of inline assembly.
14115
14116 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
14117
14118         PR c/9376
14119         * libgcc2.c (__subvdi3): Fix typo.
14120
14121 2003-02-04  Jan Hubicka  <jh@suse.cz>
14122
14123         * i386.md (movti_rex64):  Fix constraint.
14124
14125 2003-02-04  Jan Hubicka  <jh@suse.cz>
14126
14127         * i386.md (vector push splitters):  Fix typo in resolving conflict.
14128
14129 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
14130
14131         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
14132
14133 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
14134
14135         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
14136         for recent libstdc++.  Remove formatting cruft.
14137
14138 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
14139
14140         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
14141         attribute even if input file name is absolute, but one of the
14142         includes is relative.
14143
14144 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
14145
14146         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
14147         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
14148         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
14149
14150 2003-02-03  Richard Henderson  <rth@redhat.com>
14151
14152         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
14153         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
14154         return type to "int".  Shuffle declarations and undef int trap.
14155         * libgcc2.h: Remove their declarations.
14156         * optabs.c (expand_unop): Force outmode to int for bitops.
14157
14158 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
14159
14160         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
14161         coprocessor registers before floating-point registers.
14162         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
14163         to account for a previously removed register.
14164         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
14165         Delete unused macros.
14166
14167 2003-02-03  Jan Hubicka  <jh@suse.cz>
14168
14169         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
14170         (mov*_internal): Fix predicates; require one of operands to not be
14171         memory.
14172         (SSE?MMX move expanders):  Fix predicates; force one of operands to
14173         register.
14174         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
14175         (movups/movupd/movdqu patterns): Force one of operands to not be
14176         memory.
14177
14178 2003-02-03  Roger Sayle  <roger@eyesopen.com>
14179
14180         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
14181         takes a single rtx and returns it unmodified.
14182         * hooks.h (hook_rtx_rtx_identity): Prototype here.
14183         * target.h (struct gcc_target): Add "delegitimize_address"
14184         field to target structure.
14185         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
14186         for delegitimize_address target using hook_rtx_rtx_identity.
14187         (TARGET_INITIALIZER): Initialize delegitimize_address field
14188         using TARGET_DELEGITIMIZE_ADDRESS macro.
14189         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
14190         extensions of constant pool references.  Use delegitimize_address
14191         to undo the obfuscation of "-fpic".
14192         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
14193
14194         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
14195         i386_simplify_dwarf_addr.
14196         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
14197         (maybe_get_pool_constant): Likewise.
14198
14199 2003-02-03  Jan Hubicka  <jh@suse.cz>
14200
14201         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
14202
14203 2003-02-03  Jan Hubicka  <jh@suse.cz>
14204
14205         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
14206
14207 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14208
14209         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
14210         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
14211
14212 2003-02-02  Andreas Schwab  <schwab@suse.de>
14213
14214         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
14215
14216 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
14217
14218         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
14219         (epilogue_insns): Likewise.
14220
14221 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14222
14223         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
14224
14225 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14226
14227         * pa-protos.h (attr_length_millicode_call): Remove second argument.
14228         (attr_length_indirect_call, attr_length_indirect_call,
14229         attr_length_save_restore_dltp): New prototypes.
14230         * pa.c (attr_length_millicode_call): Remove second argument.  Check
14231         INSN_ADDRESSES_SET_P in distance calculation.
14232         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
14233         INSN_ADDRESSES.
14234         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
14235         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
14236         Call attr_length_call directly.
14237         (attr_length_indirect_call, output_indirect_call,
14238         attr_length_save_restore_dltp): New functions.
14239         * pa.md (attr_length_millicode_call): Drop second argument from all
14240         patterns.
14241         (return_internal_pic): Delete.
14242         (return_external_pic): Remove use of PIC register and pic operand and
14243         flag checks.
14244         (epilogue): Use return_internal for both normal and pic code.
14245         (call, call_value): Emit new 32-bit pic patterns for symref and
14246         indirect calls.  Remove uses for arg pointer and pic register.
14247         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
14248         call_reg_pic_post_reload, call_val_symref_pic,
14249         call_val_symref_pic_post_reload, call_val_reg_pic,
14250         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
14251         Implement define_split and define_peephole2 patterns for pre reload
14252         patterns.
14253         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
14254         call_value_internal_reg_64bit): Shorten names.
14255         (all call patterns): Explicitly indicate registers used and clobbered.
14256         Use attr_length_indirect_call and attr_length_save_restore_dltp for
14257         attribute length calculation.  Move code generation for indirect calls
14258         to output_indirect_call.
14259         (sibcall, sibcall_value): Don't restore PIC register.
14260         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
14261         register retore.
14262
14263 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14264
14265         * doc/install.texi (Testing): Simplify and compress instructions
14266         concerning Dejagnu.
14267
14268 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14269
14270         * collect2.c (pexecute_pid): Rename to pid.
14271         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
14272         pid.
14273
14274 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
14275
14276         * doc/extend.texi (Function Attributes): Remove documentation
14277         for PowerPC Windows NT function attributes..
14278
14279 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
14280
14281         * dwarf2out.c (gen_type_die): Check for typedefs before calling
14282         for TYPE_MAIN_VARIANT.
14283
14284 2003-02-01  Richard Henderson  <rth@redhat.com>
14285
14286         * libgcc2.c: Include auto-host.h.
14287         (ATTRIBUTE_HIDDEN): New.
14288         (__clz_tab): Don't declare here for clz and ctz.
14289         (__clzsi2, __clzdi2): Use count_leading_zeros.
14290         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
14291         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
14292         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
14293         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
14294
14295 2003-02-01  Richard Henderson  <rth@redhat.com>
14296
14297         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
14298         to the conditional.
14299         (ashlsi3_1_zext splitter): Likewise.
14300
14301 2003-02-01  Richard Henderson  <rth@redhat.com>
14302
14303         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
14304         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
14305         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
14306         return type to Wtype.
14307
14308         * libgcc-std.ver (GCC_3.4): Fix inheritance.
14309
14310         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
14311         expander input constraint.
14312
14313 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
14314
14315         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
14316         OTI_parity.
14317         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
14318         * optabs.c (widen_clz, expand_parity): New.
14319         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
14320         for libcalls to clz, ctz, popcount, and parity.
14321         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
14322         parity_optab, and set up libfunc handlers.
14323         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
14324         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
14325         __popcount_tab): New.
14326         * libgcc2.h: Declare them.
14327         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
14328         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
14329         and parity_optab.
14330         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
14331         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
14332         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
14333         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
14334         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
14335         BUILT_IN_PARITYLL): New.
14336         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
14337         and add optab argument.
14338         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
14339         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
14340         * expr.c (expand_expr): Handle them.
14341         * fold-const.c (tree_expr_nonnegative_p): Likewise.
14342         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
14343         * reload1.c (eliminate_regs): Handle them.
14344         (elimination_effects): Likewise.
14345         * function.c (instantiate_virtual_regs_1): Likewise
14346         * genattrtab.c (check_attr_value): Likewise.
14347         * simplify-rtx.c (simplify_unary_operation): Likewise.
14348         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
14349         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
14350         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
14351         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
14352         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
14353         __builtin_arm_clz.
14354         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
14355         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
14356         * doc/extend.texi (Other Builtins): Add new builtins.
14357         * doc/md.texi (Standard Names): Add new patterns.
14358
14359 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
14360
14361         * reload.c: Revert 2003-01-31 change.
14362
14363 2003-02-01  Jan Hubicka  <jh@suse.cz>
14364
14365         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
14366
14367 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
14368
14369         * flags.h (flag_volatile): Remove declaration.
14370         (flag_volatile_global, flag_volatile_static): Likewise.
14371         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
14372         * toplev.c (flag_volatile): Remove definition.
14373         (flag_volatile_global, flag_volatile_static): Likewise.
14374         (f_options): Remove corresponding entries here.
14375         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
14376         or flag_volatile_static.
14377         * doc/invoke.texi: Remove documentation of -fvolatile,
14378         -fvolatile-global and -fvolatile-static.
14379
14380 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14381
14382         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
14383         updating of total_code_bytes from prologue to epilogue.
14384
14385 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
14386
14387         * reload.c (find_reloads): Do not use the mode specified in the insn
14388         pattern as reload mode for address operands.  Do not generate optional
14389         reloads for operands where a mandatory reload was already pushed.
14390         Generate optional reloads only in the final pass though find_reloads.
14391         (have_replacement_p): New function.
14392
14393 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14394
14395         * doc/install.texi (Testing): Remove a reference to our obsolete
14396         /testresults web pages and strip redundant information concerning
14397         test results.
14398         (Binaries): Refer to Microsoft Windows instead of listing all
14399         possible variants.
14400
14401 2003-02-01  Jan Hubicka  <jh@suse.cz>
14402
14403         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
14404         RTL chain.
14405
14406         * combine.c (simplify_set): Reverse order of ragumetns to
14407         REG_CANNOT_CHANGE_MODE_P
14408         * df.c (df_def_record_1): Likewise.
14409         * recog.c (register_operand): Likewise.
14410         * simplify-rtx.c (simplify_subreg): Likewise.
14411         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
14412         CANNOT_CHANGE_MODE_CLASS.
14413         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
14414         Likewise.
14415         * reload.c (push_reload): Likewise.
14416         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
14417         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
14418         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
14419         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
14420         * mips.c (mips_cannot_change_mode_class): Update.
14421         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
14422         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
14423         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
14424         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
14425         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
14426         * sh.c (sh_cannot_change_mode_class): Update.
14427         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
14428         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
14429
14430 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
14431
14432         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
14433         change to LINK_COMMAND_SPEC in gcc.c.
14434
14435 2003-01-31  Jan Hubicka  <jh@suse.cz>
14436
14437         PR c/9506
14438         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
14439
14440 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14441
14442         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
14443         duplicated code.
14444
14445 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
14446
14447         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
14448         (BINFO_ELTS): New #define.
14449         * stor-layout.c (finalize_record_size): Don't set them.
14450         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
14451         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
14452         (BINFO_LANG_ELTS): New #define.
14453         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
14454         * java/class.c (make_class): Use BINFO_ELTS.
14455         (set_super_info): Likewse.
14456         (add_interface_do): Likewise.
14457         * objc/objc-act.c (start_class): Use BINFO_ELTS.
14458
14459 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
14460
14461         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
14462         (times): Don't ever declare if not HAVE_TIMES.
14463         (clock): Don't ever declare if not HAVE_CLOCK.
14464
14465 2003-01-30  Richard Henderson  <rth@redhat.com>
14466
14467         * flow.c (update_life_info): Zap life info after cleanup_cfg.
14468         (regno_uninitialized): Use correct live at function entry set.
14469         (regno_clobbered_at_setjmp): Likewise.
14470
14471         * expr.c (store_expr): Promote all MEM intermediates to regs.
14472
14473 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
14474
14475         * config/arm/arm.c: Fix comment typos.
14476         * config/arm/arm.h: Likewise.
14477         * config/arm/netbsd-elf.h: Likewise.
14478         * config/arm/netbsd.h: Likewise.
14479
14480 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
14481
14482         * gengtype.c (struct walk_type_data): Add needs_cast_p.
14483         (walk_type): Set needs_cast_p in walk_type_data.
14484         (write_types_process_field): Supply casts when required to suppress
14485         warnings.
14486         (write_root): Cast gt_pch_n_S to suppress warning.
14487         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
14488         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
14489         when they might exist.
14490         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
14491         insn-conditions.o, and rs6000.o.
14492
14493 2003-01-30  Richard Henderson  <rth@redhat.com>
14494
14495         * ggc-page.c (G.context_depth_allocations): New.
14496         (G.context_depth_collections): New.
14497         (alloc_page): Set G.context_depth_allocations.
14498         (ggc_collect): Set G.context_depth_collections.
14499         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
14500         (ggc_pop_context): Early exit for no allocations or collections.
14501
14502 2003-01-30  Richard Henderson  <rth@redhat.com>
14503
14504         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
14505
14506 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
14507
14508         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
14509         size, the link register is always saved if any other register is
14510         saved.
14511
14512 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
14513
14514         * config/h8300/h8300-protos.h: Update the prototype for
14515         compute_plussi_cc.
14516         (cpp_reader): Declare before it is used.
14517         * config/h8300/h8300.c (compute_plussi_cc): Change the return
14518         type to int.
14519         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
14520         see an unknown H8 variant.
14521
14522 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
14523
14524         PR target/9316
14525         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
14526         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
14527         * config/rs6000/t-rtems: New file. multilib variants to match OS.
14528         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
14529         rs6000/t-ppcgas so we get the desired multilibs.
14530
14531 2003-01-30  Nick Clifton  <nickc@redhat.com>
14532
14533         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
14534         when popping saved IP register off the stack.
14535
14536 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
14537
14538         * config/rs6000/aix43.h: Fix comment typos.
14539         * config/rs6000/aix51.h: Likewise.
14540         * config/rs6000/aix52.h: Likewise.
14541         * config/rs6000/altivec.h: Likewise.
14542         * config/rs6000/rs6000.c: Likewise.
14543         * config/rs6000/rs6000.h: Likewise.
14544         * config/rs6000/rs6000.md: Likewise.
14545         * config/rs6000/spe.md: Likewise.
14546
14547 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
14548
14549         * c-common.c (builtin_define_float_constants): Define
14550         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
14551
14552 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
14553
14554         * config/sh/lib1funcs.asm: Fix comment typos.
14555         * config/sh/linux.h: Likewise.
14556         * config/sh/sh.c: Likewise.
14557         * config/sh/sh.md: Likewise.
14558
14559 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
14560
14561         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
14562
14563 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
14564
14565         * config/fp-bit.h (__make_dp): Declare if TMODES.
14566
14567 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
14568
14569         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
14570         general_operand_src and general_operand_dst.
14571
14572 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
14573
14574         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
14575         Return true for variable sized types.
14576         (rs6000_va_arg): Handle variable sized types passed by reference
14577         on non-SVR4 ABI.
14578
14579 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
14580
14581         * arm.c (arm_legtimize_address): New function.
14582         * arm-protos.h (arm_legtimize_address): Add prototype.
14583         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
14584         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
14585         do ... while (0)
14586
14587 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
14588
14589         PR bootstrap/9296
14590         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
14591         depended on it being defined until now.
14592
14593 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
14594
14595         PR target/9295
14596         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
14597         RTEMS code knows which C++ initialization style the toolset
14598         configuration is using.
14599
14600 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
14601
14602         PR bootstrap/9293
14603         * config/m68k/t-crtstuff: Replace spaces with tabs, add
14604          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
14605
14606 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
14607
14608         PR bootstrap/9292
14609         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
14610         RTEMS threads.
14611         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
14612
14613 2003-01-29  Nick Clifton  <nickc@redhat.com>
14614
14615         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
14616         not $(srcdir).
14617
14618 2003-01-29  Andrew Haley  <aph@redhat.com>
14619
14620         * tree-inline.c (walk_tree): Add CHAR_TYPE.
14621
14622 2003-01-29  Jan Hubicka  <jh@suse.cz>
14623
14624         * i386.md (subdi3_carry_rex64): Fix typo.
14625
14626 2003-01-28  Stan Shebs  <shebs@apple.com>
14627
14628         * coretypes.h (cpp_reader): Forward declare struct.
14629         * c-pragma.h (cpp_reader): Remove forward declaration.
14630         * hashtable.h (cpp_reader): Likewise.
14631         * scan.h (cpp_reader): Likewise.
14632         * tree.h (cpp_reader): Likewise.
14633         * config/darwin-protos.h (cpp_reader): Likewise.
14634         * config/arm/arm-protos.h (cpp_reader): Likewise.
14635         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
14636         struct cpp_reader in prototypes.
14637
14638 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
14639
14640         * doc/install.texi: Add documentation for installation into
14641         tooldirs and with DESTDIR.
14642
14643 2003-01-28  Richard Henderson  <rth@redhat.com>
14644
14645         * config.gcc (ia64*-*-aix*): Remove.
14646         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
14647         * config/ia64/unwind-aix.c: Remove file.
14648
14649 2003-01-28  Andreas Schwab  <schwab@suse.de>
14650
14651         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
14652         register.
14653         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
14654         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
14655         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
14656         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
14657         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
14658         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
14659         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
14660
14661 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
14662
14663         * combine.c (nonzero_bits): Fix check for negative divide operands.
14664
14665 2003-01-28  Richard Henderson  <rth@redhat.com>
14666
14667         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
14668         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
14669
14670 2003-01-28  Richard Henderson  <rth@redhat.com>
14671
14672         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
14673
14674         * config/cris/cris.c (cris_address_cost): Make static.
14675         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
14676         * config/cris/cris.h (ADDRESS_COST): Remove.
14677         * config/cris/cris-protos.h: Update.
14678
14679 2003-01-23  Mike Stump  <mrs@apple.com>
14680
14681         * regclass.c (init_reg_autoinc): New function.
14682         (regclass): Move initialization of forbidden_inc_dec_class from
14683         here...
14684         (init_regs): to here.  Avoids reinitialization for each function,
14685         saving compilation time.
14686
14687 2003-01-28  Jason Merrill  <jason@redhat.com>
14688
14689         * cpplib.h (struct cpp_options): Add warn_deprecated field.
14690         * cppinit.c (cpp_create_reader): Turn it on by default.
14691         * c-opts.c (c_common_decode_option): Set it.
14692         * cpplib.c (do_pragma_once): Only complain about #pragma once
14693         if warn_deprecated is set.
14694
14695 2003-01-28  Dale Johannesen  <dalej@apple.com>
14696
14697         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
14698         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
14699         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
14700
14701 2003-01-28  Richard Henderson  <rth@redhat.com>
14702
14703         * target.h (targetm.address_cost): New.
14704         * target-def.h (TARGET_ADDRESS_COST): New.
14705         (TARGET_RTX_COSTS): Uncomment.  Oops.
14706         * cse.c (address_cost): Use new target hook.
14707         (default_address_cost): New.
14708         * output.h (default_address_cost): Declare.
14709         * hooks.c (hook_int_rtx_0): New.
14710         * hooks.h (hook_int_rtx_0): Declare.
14711         * loop.c (combine_givs_p): Remove if 0 code.
14712         * system.h (ADDRESS_COST): Poison.
14713
14714         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
14715         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
14716         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
14717         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
14718         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
14719         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
14720         config/xtensa/xtensa.c, config/xtensa/xtensa.h
14721         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
14722         (ADDRESS_COST): Remove.
14723
14724         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
14725         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
14726         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14727         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
14728         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
14729         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
14730         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
14731         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
14732         config/mips/mips.c, config/mips/mips.h,
14733         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
14734         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
14735         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
14736         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
14737         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
14738         config/vax/vax.c, config/vax/vax.h
14739         (foo_address_cost): Make static.
14740         (TARGET_ADDRESS_COST): New.
14741         (ADDRESS_COST): Remove.
14742
14743         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
14744         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
14745         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
14746         config/stormy16/stormy16.h
14747         (ADDRESS_COST): Move code ...
14748         (foo_address_cost): ... here.
14749         (TARGET_ADDRESS_COST): New.
14750
14751         * config/m32r/m32r.c (m32r_address_cost): Remove.
14752         * config/m32r/m32r-protos.h: Update.
14753
14754         * config/mmix/mmix.c (mmix_address_cost): Remove.
14755         * config/mmix/mmix-protos.h: Update.
14756
14757         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
14758         mn10300_address_cost; move unsig allocation ...
14759         (mn10300_address_cost): ... here.
14760         (TARGET_ADDRESS_COST): New.
14761         * config/mn10300/mn10300-protos.h: Update.
14762         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
14763
14764         * doc/tm.texi: Update.
14765
14766 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
14767
14768         * haifa-sched.c (schedule_insn): Return necessary cycle advance
14769         after issuing the insn.
14770         (rank_for_schedule): Make a insn with /S the highest priority
14771         insn.
14772         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
14773         (choose_ready): Check SCHED_GROUP_P.
14774         (schedule_block): Advance cycle after issuing insn if it is
14775         necessary.  Don't reorder insns if there is an insn with /S.
14776         (set_priorities): Ignore schedule groups.
14777
14778         * sched-deps.c (remove_dependence, group_leader): Remove the
14779         functions.
14780         (add_dependence): Ignore schedule groups.
14781         (set_sched_group_p): Don't make copy of dependencies from previous
14782         insn of the schedule group.  Add anti-dependency to the previous
14783         insn of the schedule group.
14784         (compute_forward_dependences): Ignore schedule groups.
14785
14786         * sched-ebb.c (init_ready_list): Ignore schedule groups.
14787
14788         * sched-rgn.c (init_ready_list): Ditto.
14789         (can_schedule_ready_p): Ditto.
14790
14791 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
14792
14793         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
14794         register to another one.
14795
14796 2003-01-28  Richard Henderson  <rth@redhat.com>
14797
14798         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
14799
14800 2003-01-28  Roger Sayle  <roger@eyesopen.com>
14801
14802         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
14803
14804 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
14805
14806         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
14807         class contains a floating-point register, return the size of the
14808         mode in half words.
14809
14810 2003-01-28  Jan Hubicka  <jh@suse.cz>
14811
14812         * i386.c (ix86_carry_flag_operator):  New predicate.
14813         (fcmov_operator): Fix whitespace.
14814         (ix86_expand_carry_flag_compare):  Deal with floating point.
14815         (ix86_expand_int_movcc): Deal with fp; update insn expansion
14816         (ix86_expand_int_addcc): Likewise.
14817         (ix86_expand_strlensi_unroll_1): likewsie.
14818         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
14819         * i386.md (add?i_carry_rex64): Use new predicate.
14820         (sub?i3_carry_rex64): Likewise.
14821         (x86_mov?icc_0_m1*): Likewise.
14822
14823 2003-01-28  Andreas Schwab  <schwab@suse.de>
14824
14825         * cfgloopmanip.c (create_preheader): Initialize src to avoid
14826         warning.
14827
14828         * expmed.c (emit_store_flag): Fix cast to avoid sign
14829         comparison warning.
14830
14831         * combine.c (force_to_mode): Add cast to fix warning when
14832         STORE_FLAG_VALUE is negative.
14833
14834 2003-01-27  Richard Henderson  <rth@redhat.com>
14835
14836         * Makefile.in (cse.o): Depend on TARGET_H.
14837         * cse.c (rtx_cost): Use targetm.rtx_costs.
14838         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
14839         * doc/tm.texi: Update.
14840
14841         * target.h (targetm.rtx_costs): New.
14842         * target-def.h (TARGET_RTX_COSTS): New.
14843         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
14844         * hooks.h: Update.
14845
14846         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
14847         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
14848         * config/alpha/alpha.h (PROCESSOR_MAX): New.
14849         (CONST_COSTS, RTX_COSTS): Remove.
14850
14851         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
14852         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
14853         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
14854         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
14855         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
14856         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
14857         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
14858         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
14859         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
14860         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
14861         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
14862         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
14863         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
14864         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
14865         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
14866         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
14867         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
14868         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
14869         config/v850/v850.c, config/v850/v850.h,
14870         config/xtensa/xtensa.c, config/xtensa/xtensa.h
14871         (CONST_COSTS, RTX_COSTS): Move code ...
14872         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
14873
14874         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
14875         (arm_rtx_costs, TARGET_RTX_COSTS): New.
14876         * config/arm/arm-protos.h: Update.
14877         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
14878
14879         * config/avr/avr.h (CONST_COSTS): Move code ...
14880         * config/avr/avr.c (avr_rtx_costs): ... here.
14881         (default_rtx_costs): Make static.
14882         * config/avr/avr-protos.h: Update.
14883
14884         * config/h8300/h8300.c (const_costs): Make static.
14885         (h8300_and_costs, h8300_shift_costs): Likewise.
14886         * config/h8300/h8300-protos.h: Update.
14887
14888         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
14889         (CONST_COSTS): Move code ...
14890         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
14891         default_rtx_costs; update for signature change.
14892         * config/ip2k/ip2k-protos.h: Update.
14893
14894         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
14895         (CONST_COSTS): Move code ...
14896         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
14897         (TARGET_RTX_COSTS): New.
14898         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
14899         * config/m68hc11/m68hc11-protos.h: Update.
14900
14901         * config/m68k/m68k.c (const_int_cost): Make static.
14902         * config/m68k/m68k-protos.h: Update.
14903
14904         * config/mcore/mcore.c (mcore_const_costs): Make static.
14905         (mcore_and_cost, mcore_ior_cost): Likewise.
14906         * config/mcore/mcore-protos.h: Update.
14907
14908         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
14909         (mmix_rtx_cost_recalculated): Remove.
14910         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
14911         * config/mmix/mmix-protos.h: Update.
14912
14913         * config/sh/sh.c (shiftcosts): Make static.
14914         (addsubcosts, andcosts, multcosts): Likewise.
14915         * config/sh/sh-protos.h: Update.
14916
14917         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
14918         (sparc_rtx_costs): Make static; update for change in signature.
14919         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
14920         * config/sparc/sparc-protos.h: Update.
14921
14922         * config/v850/v850.c (const_costs): Make static.
14923         * config/v850/v850-protos.h: Update.
14924
14925         * config/vax/vax.h (RTX_COSTS): Remove.
14926         (CONST_COSTS): Move code ...
14927         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
14928         from vax_rtx_cost.
14929         (vax_rtx_costs, TARGET_RTX_COSTS): New.
14930
14931 2003-01-27  Richard Henderson  <rth@redhat.com>
14932
14933         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
14934         * config/vax/vax-protos.h: Update.  Really.
14935
14936 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
14937
14938         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
14939         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
14940         zero if no hardware floating point.
14941         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
14942         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
14943         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
14944         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
14945         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
14946         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
14947         even FP registers on N32 and N64.
14948         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
14949         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
14950         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
14951         even-register-like alignment to 128-bit arguments.
14952         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
14953         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
14954         on N32 or N64.
14955         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
14956         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
14957         (TPBIT): Set to tp-bit.c.
14958         (tp-bit.c): Create out of fp-bit.c.
14959
14960 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14961
14962         * c-parse.in: Remove '%expect 32' directive in objc mode.
14963
14964 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
14965
14966         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
14967         (LIBGCOV): New variable.
14968         (libgcc.mk): Add LIBGCOV.
14969         (LIBGCC_DEPS): Add libgcov.c.
14970         (libgcov.a): New target.
14971         (clean): Remove libgcov.a.
14972         (install-libgcc): Do libgcov too.
14973         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
14974         with libgcov.a.
14975         * libgcc2.c (L_gcov): Move into ...
14976         * libgcov.c: ... here. New file.
14977         * mklibgcc.in: Add libgcov rules.
14978         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
14979
14980         * doc/invoke.texi (profile-arcs, test-coverage): Update and
14981         clarify.
14982
14983         * profile.c (index_counts_file): Remove duplicate check for open file.
14984
14985 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
14986
14987         * gcc/doc/invoke.texi (Optimization Options): Group together
14988         optional and experimental flags.  Move trapv and bounds-check
14989         out of this section.  Group floating point flags together.
14990         (Code Gen Options): Move trapv and bounds-check to here.
14991
14992 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
14993
14994         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
14995
14996 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
14997
14998         PR optimization/9090
14999         * function.c (purge_addressof_1): After pushing an addressed register
15000         onto the stack, simplify the result.
15001
15002 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15003
15004         * doc/extend.texi: Fix typo.
15005
15006 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15007
15008         * doc/cppopts.texi: Fix typo.
15009         * doc/objc.texi: Likewise.
15010         * doc/passes.texi: Likewise.
15011
15012 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
15013
15014         * real.c (ibm_extended_format): Add 53 to minimum exponent.
15015         (encode_ibm_extended): Adjust.
15016
15017 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
15018
15019         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
15020         timevar_id enumerations.
15021
15022 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
15023
15024         * combine.c: Fix formatting.
15025
15026 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
15027
15028         * doc/gccint.texi: Update the copyright.
15029
15030 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
15031
15032         * doc/cpp.texi: Fix typos.
15033         * doc/extend.texi: Likewise.
15034         * doc/gty.texi: Likewise.
15035         * doc/install.texi: Likewise.
15036         * doc/passes.texi: Likewise.
15037         * doc/rtl.texi: Likewise.
15038         * doc/tm.texi: Likewise.
15039
15040 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
15041
15042         * config/ia64/fde-glibc.c: Fix comment typos.
15043         * config/ia64/hpux.h: Likewise.
15044         * config/ia64/ia64.c: Likewise.
15045         * config/ia64/ia64.h: Likewise.
15046         * config/ia64/unwind-ia64.c: Likewise.
15047
15048 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
15049
15050         * config/i386/i386-modes.def: Fix comment typos.
15051         * config/i386/i386.c: Likewise.
15052         * config/i386/i386.md: Likewise.
15053
15054 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
15055
15056         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
15057         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
15058         ASM_FINISH_DECLARE_OBJECT before defining it.
15059         * toplev.c (rest_of_decl_compilation):  Don't define
15060         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
15061         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
15062         parameters for DWARF2 targets because they _are_ used.
15063
15064 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
15065
15066         * fp-bit.h: Define macros for TFmode floating-point constants
15067         in IBM-extended TFmode types.
15068         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
15069         widths.
15070         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
15071         TFmode type.
15072
15073         * config/fp-bit.h: Define macros for TFmode floating-point
15074         constants in IEEE quad TFmode type.  Declare functions according
15075         to L_ macros.
15076         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
15077         (TFtype, TItype, UTItype): Define if TMODES is defined.
15078         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
15079         (F_T_BITOFF, D_T_BITOFF): Define.
15080         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
15081         guaranteed to be wide enough.
15082         * config/fp-bit.c: Check for L_ macros for tf functions.
15083         (__thenan_tf): New.
15084         (nan): Adjust.
15085         (pack_d, unpack_d): Support IEEE 854 quad type.
15086         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
15087         from FRAC_NBITS, FRAC_BITS and NGARDS.
15088         (usi_to_float): Cast constants to be shifted to fractype
15089         instead of assuming long long is wide enough.
15090         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
15091
15092 2003-01-26  Andreas Jaeger  <aj@suse.de>
15093
15094         * df.c: Remove prototype of unused function df_regno_rtl_debug.
15095
15096 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
15097
15098         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
15099         (DBBIT_FUNCS): Added _df_to_tf.
15100         (TPBIT_FUNCS): New.
15101         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
15102         (LIBGCC_DEPS): Added TPBIT.
15103         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
15104
15105         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
15106         been able to move the result to target.
15107
15108         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
15109         for the appropriate mode.
15110
15111         * calls.c (emit_library_call_value_1): Handle return values
15112         in a PARALLEL.
15113
15114         * rtl.c (get_mode_alignment): Moved to...
15115         * stor-layout.c: ... here.
15116
15117         * print-rtl.c (print_rtx): Don't print MEM details in
15118         GENERATOR_FILEs.
15119
15120 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
15121
15122         * df.h: Update comments, tidy formatting.
15123         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
15124         REVERSE, UNION, INTERSECTION.  All uses updated.
15125         (OLD_DF_INTERFACE): Remove.
15126         (struct insn_info): Remove commented out insn field.
15127         * df.c: Update comments, tidy formatting.
15128         (df_def_table_realloc): Remove.
15129
15130
15131 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
15132
15133         * calls.c (save_fixed_argument_area): Tidy.
15134         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
15135         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
15136         call chain loop at 1 if !try_tail_call.  Formatting.
15137         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
15138         Use save_fixed_argument_area and restore_fixed_argument_area.
15139
15140 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15141
15142         * df.c (df_uses_record): Handle CC0.
15143
15144 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
15145
15146         * reload.c (maybe_memory_address_p): New function.
15147         (find_reloads_address): Use it instead of memory_address_p.
15148
15149 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
15150
15151         * final.c (shorten_branches): Align the address of code label
15152         when computing initial lengths and addresses.
15153
15154 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
15155
15156         * config/m68hc11/m68hc11.md: Fix a comment typo.
15157
15158 2003-01-25  Andreas Jaeger  <aj@suse.de>
15159
15160         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
15161         TARGET_MACHO.
15162
15163 2003-01-25  Roger Sayle  <roger@eyesopen.com>
15164
15165         * gcse.c (bypass_last_basic_block): New global variable.
15166         (bypass_block):  Use redirect_edge_and_branch_force to redirect
15167         fall-through edges.  Use bypass_last_basic_block to determine
15168         which blocks have valid PRE information.
15169         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
15170
15171 2003-01-25  Jan Hubicka  <jh@suse.cz>
15172
15173         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
15174
15175 2003-01-25  Jan Hubicka  <jh@suse.cz>
15176                               Eric Botcazou <ebotcazou@libertysurf.fr>
15177         PR opt/8492
15178         * gcse.c (one_cprop_pass): Delete unreachable blocks.
15179
15180 2003-01-25  Richard Henderson  <rth@redhat.com>
15181
15182         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
15183         from ia64_aix_select_rtx_section.
15184         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
15185         instead of saving and restoring flag_pic.
15186         (ia64_rwreloc_unique_section): Similarly.
15187         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
15188         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
15189         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
15190         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
15191
15192 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
15193
15194         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
15195         comment.
15196
15197 2003-01-25  Richard Henderson  <rth@redhat.com>
15198
15199         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
15200
15201 2003-01-25  Kelley Cook <kelleycook@comcast.net>
15202
15203         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
15204
15205 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
15206
15207         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
15208         type for bitmaps.  Use unsigned long.
15209         (nBITMAP_WORD_BITS): New macro.
15210         (BITMAP_WORD_BITS): New macro.
15211         (rest of file): Use it.
15212         * bitmap.c: Use it.
15213
15214 2003-01-25  Richard Henderson  <rth@redhat.com>
15215
15216         2002-02-19  Robert Lipe  <robertlipe@usa.net>
15217         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
15218
15219 2003-01-25  Roger Sayle  <roger@eyesopen.com>
15220
15221         * builtins.c (purge_builtin_constant_p): Scan insn stream
15222         sequentially rather than by basic block.
15223         * function.c (purge_addressof): Simplify test with INSN_P.
15224
15225 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
15226
15227         * combine.c (simplify_comparison, case AND): Remove a redundant test.
15228
15229 2003-01-25  Roger Sayle  <roger@eyesopen.com>
15230
15231         * function.h (struct function): New field calls_constant_p.
15232         (current_function_calls_constant_p): New macro for above.
15233         * function.c (prepare_function_start): Initialize calls_eh_return
15234         and calls_constant_p.
15235         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
15236         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
15237         when the current_function_calls_constant_p.
15238         * integrate.c (expand_inline_function): Set calls_constant_p if
15239         the function being inlined has calls_constant_p set.
15240
15241 2003-01-25  Roger Sayle  <roger@eyesopen.com>
15242
15243         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
15244         optimizing, even if flag_gcse is true.
15245         * toplev.c (rest_of_compilation): purge_builtin_constant_p
15246         only needs to be called when "optimize > 0 && flag_gcse".
15247
15248 2003-01-25  Roger Sayle  <roger@eyesopen.com>
15249
15250         * stmt.c (emit_case_bit_tests): New routine to implement suitable
15251         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
15252         (case_bit_test_cmp): New comparison function for "qsort" to order
15253         case_bit_tests by decreasing number of destination nodes.
15254         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
15255         (expand_end_case_type): Use emit_case_bit_tests to implement
15256         suitable switch statments.
15257         (CASE_USE_BIT_TESTS): New target macro to disable the above.
15258         * Makefile.in (stmt.o): Add dependency on optab.h.
15259         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
15260
15261 2003-01-23  Andreas Schwab  <schwab@suse.de>
15262
15263         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
15264         __do_global_ctors_aux hidden global and don't put it in
15265         .init_array.
15266         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
15267         instead so that it comes first.
15268
15269 2003-01-25  Jan Hubicka  <jh@suse.cz>
15270
15271         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
15272         subreg is read/modify.
15273
15274 2003-01-25  Jan Hubicka  <jh@suse.cz>
15275
15276         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
15277         do libcall for large blocks.
15278         * i386.md (comi patterns): Set type to ssecomi.
15279         (sse2_unpck?pd): Fix mode of vec_select.
15280
15281         * cse.c: Include except.h
15282         (cse_set_around_loop):  Do not create new basic blocks.
15283         * Makefile.in (cse.o): Add dependnecy on except.h
15284
15285 2003-01-25  Jan Hubicka  <jh@suse.cz>
15286
15287         * builtins.c (fold_trunc_transparent_mathfn): New function.
15288         (fold_builtin): Use it.
15289         * convert.c (convert_to_real): Re-enable code to convert
15290         math functions; add support for floor familly functions.
15291
15292 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15293
15294         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
15295         dependencies on coretypes.h and $(TM_H).
15296
15297 2003-01-25  Jan Hubicka  <jh@suse.cz>
15298
15299         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
15300
15301 2003-01-24  Stuart Hastings  <stuart@apple.com>
15302
15303         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
15304
15305 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15306
15307         * config/c4x/c4x.md (UNSPEC_BU): New constants.
15308         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
15309         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
15310         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
15311         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
15312         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
15313         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
15314         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
15315
15316 2003-01-24  Jan Hubicka  <jh@suse.cz>
15317
15318         * emit-rtl.c (reg_attrs_htab): New static variable.
15319         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
15320         functions.
15321         (reg_rtx): Do not maintain regno_decl.
15322         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
15323         set_mem_attrs_from_reg): New global function.
15324         (init_emit): Do not initialize regno_decl.
15325         (init_emit_once): initialize reg_attrs_htab.
15326         * final.c (alter_subreg): Do not replace REG by SUBREG.
15327         (gen_mem_expr_from_op): Improve output.
15328         (output_asm_operands): Likewise.
15329         * function.c (assign_params): Do not set REGNO_DECL.
15330         * function.h (struct function): Kill regno_decl.
15331         (REGNO_DECL): Kill.
15332         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
15333         * print_rtl.c (print_rtx): Output REG information.
15334         * regclass.c (reg_scan_mark_refs): Update attrs.
15335         * reload1.c (alter_reg): Likewise.
15336         * simplify_rtx.c (simplify_subreg): Likewise.
15337         * stmt.c (expand_decl): Likewise.
15338         * rtl.def (REG): Add new field.
15339         * rtl.h (struct reg_attrs): New.
15340         (rtunion_def): At rtreg.
15341         (X0MEMATTR): Add checking.
15342         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
15343         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
15344         Declare.
15345         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
15346
15347 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
15348
15349         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
15350         (xtensa_emit_call, print_operand): Fix printf format strings
15351         to avoid compile warnings.
15352         (xtensa_function_prologue, xtensa_function_epilogue): Change type
15353         of "size" argument to HOST_WIDE_INT to fix compile warnings.
15354         * config/xtensa/xtensa-protos.h
15355         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
15356
15357 2003-01-24  Jan Hubicka  <jh@suse.cz>
15358
15359         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
15360         (implicit_built_in_decls): New global array.
15361         (mathfn_built_in): New global function.
15362         (fold_trunc_transparent_mathfn): New static function
15363         (expand_builtin_strstr, expand_bultin_strchr,
15364         expand_builtin_strpbrk, expand_builtin_strcpy,
15365         expand_builtin_strncpy, expand_bultin_strcmp,
15366         expand_bultin_strncat, expand_builtin_fputs): Use
15367         implicint_built_in_decls.
15368         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
15369         * builtins.def: Fix comments.
15370         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
15371         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
15372         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
15373         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
15374         (DEF_C99_C90RES_BULTIN): New.
15375         (*f, *l builtins): Update.
15376         * c-common.c (DEF_BUILTIN): Initialize implicit array.
15377         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
15378         * convert.c (strip_float_extensions): New global function.
15379         * tree.h (DEF_BUILTIN): Accept 10 arguments.
15380         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
15381         Declare.
15382         * java/builtins.c (define_builtin): Handle implicit.
15383         (DEF_BUILTIN): Update.
15384         * tm.texi (TARGET_C99_FUNCTIONS): Document.
15385         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
15386         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
15387         when using glibc2.
15388
15389 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
15390
15391         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
15392         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
15393         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
15394         * config/xtensa/crti.asm: New file.
15395         * config/xtensa/crtn.asm: New file.
15396         * config/xtensa/t-elf: New file.
15397         * config/xtensa/t-linux: New file.
15398         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
15399         Move various CFLAGS settings to new t-elf file.
15400
15401 2003-01-24  Richard Henderson  <rth@redhat.com>
15402
15403         PR optimization/4382
15404         * tree-inline.c (find_builtin_longjmp_call_1): New.
15405         (find_builtin_longjmp_call): New.
15406         (inlinable_function_p): Use it.
15407
15408 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15409
15410         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
15411         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
15412         * config/i386/i386.c (function_arg_pass_by_reference): New.
15413         (ix86_va_arg): Support arguments passed by reference.
15414
15415 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15416
15417         * cfgloopanal.c: New file.
15418         * cfgloopmanip.c: New file.
15419         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
15420         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
15421         cfglayout.o): Add dependency on cfgloop.h.
15422         (cfgloop.o): Add flags.h dependency.
15423         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
15424         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
15425         (struct loop, struct loops, flow_loops_find, flow_loops_update,
15426         flow_loops_free, flow_loops_dump, flow_loop_dump,
15427         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
15428         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
15429         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
15430         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
15431         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
15432         find_common_loop, verify_loop_structure): Declarations moved to ...
15433         * cfgloop.h: New file.
15434         * bb-reorder.c (reorder_basic_blocks): Modified.
15435         * cfglayout.c: Include cfgloop.h.
15436         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
15437         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
15438         (break_superblocks): New static function.
15439         (cfg_layout_finalize): Use it.
15440         (cfg_layout_split_block): New function.
15441         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
15442         fields.
15443         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
15444         changed.
15445         (cfg_layout_split_block): Declare.
15446         * cfgloop.c: Include cfgloop.h and flags.h.
15447         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
15448         get_loop_body): Avoid signed versus unsigned comparison warnings.
15449         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
15450         loop_latch_edge): Modified.
15451         (verify_loop_structure): Modified to use flags stored in loop structure;
15452         check irreducible loops.
15453         (cancel_loop, cancel_loop_tree): New functions.
15454         (estimate_probability): Use loop analysis code for predictions.
15455         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
15456         warnings.
15457         * doloop.c: Include cfgloop.h.
15458         * loop.c: Include cfgloop.h.
15459         * predict.c: Include cfgloop.h.
15460         * toplev.c: Include cfgloop.h.
15461         * unroll.c: Include cfgloop.h.
15462         * tracer.c (tracer): Modified.
15463
15464 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
15465
15466         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
15467
15468 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
15469
15470         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
15471         * configure: Regenerate.
15472
15473         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
15474         (tls_symbolic_reference_mentioned_p): Add prototype.
15475         (s390_tls_get_offset): Add prototype.
15476         (emit_pic_move): Remove prototype, replace by ...
15477         (emit_symbolic_move): .. this new prototype.
15478
15479         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
15480         (tls_model_chars): New global variable.
15481         (s390_encode_section_info): Encode TLS model.
15482         Use targetm.binds_local_p to check for local symbols.
15483         (s390_strip_name_encoding): New function.
15484         (TARGET_STRIP_NAME_ENCODING): Define.
15485
15486         (get_thread_pointer): New function.
15487         (legitimize_tls_address): New function.
15488         (legitimize_address): Call it.
15489         (emit_pic_move): Remove, replace by ...
15490         (emit_symbolic_move): ... this new function.
15491
15492         (larl_operand): Handle TLS operands.
15493         (legitimate_constant_p): Likewise.
15494         (s390_decompose_address): Likewise.
15495         (s390_cannot_force_const_mem): New function.
15496         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
15497
15498         (s390_output_symbolic_const): Handle TLS unspecs.
15499         (print_operand): New code 'J'.
15500         (machine_function): Add struct member 'some_ld_name'.
15501         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
15502
15503         (enum s390_builtin): New type.
15504         (code_for_builtin_64, code_for_builtin_31): New global variables.
15505         (s390_init_builtins, s390_expand_builtin): New functions.
15506         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15507
15508         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
15509         (ASM_OUTPUT_LABELREF): Define.
15510         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
15511
15512         * config/s390/s390.md: Define TLS UNSPEC constants.
15513         ("movdi", "movsi"): Handle TLS operands.
15514         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
15515         ("*tls_load_64", "*tls_load_31"): New insns.
15516         ("call_value_tls", "call_value_tls_exp"): New expanders.
15517         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
15518         "bas_tls_64", "bas_tls_31"): New insns.
15519
15520 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
15521
15522         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
15523         spe ABI is configured, if requested.
15524
15525 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15526
15527         * doc/passes.texi: Fix typo.
15528
15529 2003-01-24  Andreas Schwab  <schwab@suse.de>
15530
15531         * stor-layout.c (excess_unit_span): Only define if used.
15532
15533 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
15534
15535         * gcc/doc/invoke.texi (Optimization Options): List -O levels
15536         for each optimization flag.
15537
15538 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
15539
15540         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
15541
15542 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15543
15544         * doc/bugreport.texi: Use @command instead of @code for commands.
15545         * doc/collect2.texi: Likewise.
15546         * doc/headerdirs.texi: Likewise.
15547         * doc/invoke.texi: Likewise.
15548         * doc/standards.texi: Likewise.
15549         * doc/tm.texi: Likewise.
15550         * doc/trouble.texi: Likewise.
15551
15552 2003-01-24  Nick Clifton  <nickc@redhat.com>
15553
15554         * config/arm/arm.c (use_return_insn): Do not use a single return
15555         instruction for interrupt handelrs which have to create a stack
15556         frame.
15557         (arm_expand_prologue): Do not pre-bias the return address of
15558         interrupt handlers which create a stack frame.
15559
15560 2003-01-24  Nick Clifton  <nickc@redhat.com>
15561
15562         * Add sh2e support:
15563
15564         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
15565
15566                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
15567                 med_cbranches.  Fix logic in short_cbranches.
15568
15569         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
15570
15571                 * config/sh/sh.md (delay for cbranch): Don't annul delay
15572                 slots on SH2e.
15573                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
15574                 cbranch with unfilled delay slot on SH2e.
15575                 (output_branch): Fill with a nop the delay slot of a
15576                 branch that required a delay slot but didn't get one.
15577
15578         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
15579
15580                 * doc/invoke.texi (SH options): Document -m2e.
15581                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
15582                 * config/sh/lib1funcs.asm: Likewise.
15583                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
15584                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
15585                 not __sh1__.
15586                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
15587                 SH2E up.
15588                 (SH3E_BIT): Renamed to...
15589                 (SH_E_BIT): ... this.  Replace all uses.
15590                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
15591                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
15592                 (TARGET_SWITCHES): Added 2e.
15593                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
15594                 (processor_type): Added PROCESSOR_SH2E.
15595                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
15596                 TARGET_SH2E, except in sqrtsf2_i.
15597                 (attribute cpu): Added sh2e.
15598                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
15599                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
15600                 * config.gcc: Add sh2e target support.
15601
15602 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
15603
15604         Rename -W to -Wextra.
15605         * c-decl.c:  Update comments.
15606         * c-typeck.c:  Likewise.
15607         * flags.h:  Likewise.
15608         * function.c:  Likewise.
15609         * stmt.c:  Likewise.
15610         * toplev.c:  Update comments.
15611         (W_options):  Add 'extra'.
15612         (display_help):  Remove '-W'.
15613         (decode_W_option):  Special warn_uninitialized treatment in the case
15614         of -Wextra.
15615         * doc/invoke.texi:  Update with new entries.
15616
15617 2003-01-23  Richard Henderson  <rth@redhat.com>
15618
15619         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
15620         in no-else-block case.  Add commentary.
15621
15622 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15623
15624         * configure.in: Revert last change.
15625
15626 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15627
15628         * configure.in: Don't include ansidecl.h in tconfig.h.
15629         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
15630         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
15631         ATTRIBUTE_UNUSED.
15632
15633         * configure: Regenerate.
15634
15635 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15636
15637         PR java/6748
15638         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
15639         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
15640         kernels.
15641
15642 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15643
15644         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
15645
15646 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
15647
15648         * genattrtab.c (write_attr_get): Mark 'insn' paramter
15649         as ATTRIBUTE_UNUSED.
15650
15651 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
15652
15653         * arm.c (thumb_base_register_rtx_p): New function.
15654         (thumb_index_register_rtx_p): New function.
15655         (thumb_legitimate_address_p): New function.
15656         (thumb_legitimate_offset_p): New function.
15657         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
15658         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
15659         definitions.
15660         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
15661         (THUMB_LEGITIMATE_OFFSET): Delte.
15662         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
15663         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
15664         (thumb_legitimate_offset_p): Likewise.
15665
15666 2003-01-23  Andreas Schwab  <schwab@suse.de>
15667
15668         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
15669
15670 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15671
15672         * fixinc/Makefile.in (FL_LIST): Revert last change.
15673
15674 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15675
15676         PR other/7341
15677         * invoke.texi (ftest-coverage): Fix broken cross-reference.
15678         Change @code to @command for gcov command.
15679
15680         * gcc.texi: Adjust title of gcov section.
15681         Adjust copyright.
15682         * gcov.texi: Likewise.
15683
15684 2003-01-22  Roger Sayle  <roger@eyesopen.com>
15685
15686         PR optimization/8423
15687         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
15688         its argument is constant, or 0 if !flag_gcse.
15689         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
15690         if it's argument is constant.
15691         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
15692         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
15693         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
15694         * builtins.c (purge_builtin_constant_p): New function to force
15695         instantiation of any remaining CONSTANT_P_RTX nodes.
15696         * rtl.h (purge_builtin_constant_p): Prototype here.
15697         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
15698         pass after GCSE and before loop.
15699         (flag_gcse): No longer static.
15700         * flags.h (flag_gcse): Prototype here.
15701
15702 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
15703
15704         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
15705         introduced by last change.
15706
15707 2003-01-22  Andreas Schwab  <schwab@suse.de>
15708
15709         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
15710
15711 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
15712
15713         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
15714         request a scratch reg on H8S when the shift count is 8.
15715
15716 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
15717
15718         * config/s390/s390-protos.h (preferred_la_operand_p):
15719         Remove second parameter.
15720         * config/s390/s390.c (preferred_la_operand_p): Likewise.
15721         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
15722         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
15723         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
15724         Add peepholes to transform ADD to LOAD ADDRESS.
15725
15726 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
15727
15728         * arm.c (arm_address_register_rtx_p): New function.
15729         (arm_legitimate_address_p): New function.
15730         (arm_legitimate_index_p): New function.
15731         (legitimize_pic_address): Use arm_legitimate_index_p.
15732         * arm-protos.h (arm_legtimate_address_p): Add prototype.
15733         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
15734         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
15735
15736 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
15737
15738         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
15739         * config/s390/2064.md (define_bypass): Correct 'Load' and
15740         'Load-address' bypass values.
15741
15742 2003-01-22  Andreas Schwab  <schwab@suse.de>
15743
15744         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
15745
15746 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
15747
15748         * genautomata.c (output_internal_insn_latency_func,
15749         output_print_reservation_func): Short circuit when there is no
15750         automaton to generate code for.
15751
15752 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15753
15754         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
15755         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
15756
15757 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
15758
15759         * config/rs6000/rs6000.md: Remove warning.
15760         (builtin_setjmp_receiver): Likewise.
15761         * config/darwin.c (update_stubs): Slightly improve terrible hack
15762         with identifiers.  Add comment pointing out problems with it.
15763         (update_non_lazy_ptrs): Likewise.
15764
15765 2003-01-21  Richard Henderson  <rth@redhat.com>
15766
15767         * dwarf2out.c (lookup_filename): Fix printf format warning.
15768         * system.h (fread_unlocked, fwrite_unlocked): Undef.
15769
15770         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
15771         (fixincl.o-warn, gnu-regex.o-warn): New.
15772         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
15773         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
15774         * fixinc/fixincl.c (process): Fix printf format warning.
15775
15776 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
15777
15778         * dwarf2out (output_file_names): Don't crash if called
15779         with empty file_table.
15780
15781 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
15782
15783         * genautomata.c (output_internal_insn_latency_func): Add
15784         missing break statement to generated code.
15785
15786 2003-01-21  Roger Sayle  <roger@eyesopen.com>
15787
15788         * stmt.c (same_case_target_p): New function to determine whether
15789         two case labels branch to the same target.  Split out from...
15790         (group_case_nodes): ... here.  Use same_case_target_p instead.
15791         (strip_default_case_nodes): Remove explicit case nodes
15792         that branch to the default destination.
15793         (expand_end_case_type): Call strip_default_case_nodes after
15794         group_case_nodes, to simplify the case-list before we count it.
15795         Only generate table_label RTX when actually needed.  Try to share
15796         thiscase->exit_label and thiscase->data.case_stmt.default_label
15797         when a switch has no explicit default case.  Simplify test for
15798         constant index.
15799
15800 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
15801
15802         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
15803         \t.
15804         (*negsf2_h8300hs): Likewise.
15805         (*addsi3_lshiftrt_16_zexthi): Likewise.
15806         (*iorhi3_lshiftrt_8): Likewise.
15807
15808 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
15809
15810         * dwarf2out.c (fde_table_in_use): Mark GTY.
15811         (dwarf2out_cfi_label_num): New variable, marked GTY.
15812         (dwarf2out_cfi_label): Use it instead of static label_num.
15813         * emit-rtl.c (label_num): Mark GTY.
15814
15815 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
15816
15817         * config/h8300/h8300.c (output_plussi): Support H8/300.
15818         (compute_plussi_length): Likewise.
15819         (compute_plussi_cc): Likewise.
15820         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
15821         output assembly instructions.
15822
15823 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15824
15825         * calls.c (fix_unsafe_tree): Prototype.
15826
15827         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
15828         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
15829         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
15830         c-parse.o-warn): Add -Wno-error.
15831         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
15832
15833         * configure.in (--enable-werror): Add new flag.
15834         * doc/install.texi (--enable-werror): Document.
15835         * configure: Regenerate.
15836
15837         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
15838
15839 2003-01-21  Andreas Schwab  <schwab@suse.de>
15840
15841         * genautomata.c (output_internal_insn_latency_func): Fix missing
15842         close paren in output.
15843
15844 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
15845
15846         * genautomata.c: Space savings in generated code:
15847         (output_dfa_insn_code_func): Split out the table-enlargement
15848         path to an out-of-line static function, dfa_insn_code_enlarge.
15849         (output_internal_insn_latency_func): Use a lookup table for the
15850         default latencies.
15851         (output_print_reservation_func): Use a lookup table for the
15852         strings.
15853
15854 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
15855
15856         PR opt/7507
15857         * calls.c (fix_unsafe_tree): Split out from ...
15858         (expand_call): ... here.  Use it on the function address too.
15859
15860 2003-01-20  Richard Henderson  <rth@redhat.com>
15861
15862         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
15863
15864 2003-01-20  Richard Henderson  <rth@redhat.com>
15865
15866         PR opt/7154
15867         * stmt.c (expand_asm_operands): Validize memory operands.
15868
15869 2003-01-20  Richard Henderson  <rth@redhat.com>
15870
15871         PR opt/8848
15872         * ifcvt.c (noce_process_if_block): Correct arguments to
15873         modified_between_p for no-else-block case.
15874
15875 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
15876
15877         * config/h8300/h8300.c (const_costs): Remove a warning.
15878         (output_plussi): Likewise.
15879         (compute_plussi_length): Likewise.
15880         (compute_plussi_cc): Likewise.
15881
15882 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
15883
15884         * config/h8300/h8300.md (addsi_h8300): Remove the last
15885         alternative.
15886
15887 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
15888
15889         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
15890
15891 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15892
15893         * system.h (__NO_STRING_INLINES): Define.
15894
15895 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15896
15897         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
15898         is not a scalar int mode.
15899
15900 2003-01-20  Roger Sayle  <roger@eyesopen.com>
15901
15902         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
15903         insn's notes following a substitution inside a libcall.
15904
15905 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
15906
15907         * configure.in: Check for system-provided 'uchar' type.
15908         * configure, config.in: Regenerate.
15909         * cpphash.h: Only typedef 'uchar' if the system doesn't.
15910
15911 2003-01-20  Richard Henderson  <rth@redhat.com>
15912
15913         * expr.h (MUST_PASS_IN_STACK): Move implementation...
15914         * calls.c (default_must_pass_in_stack): ... here.
15915
15916 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
15917
15918         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
15919
15920         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
15921
15922         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
15923         Wrap up definition of `insn_alts'.
15924
15925         * genattrtab.c (main): Wrap up `insn_alts'.
15926
15927 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15928
15929         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
15930         prototyping.
15931         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
15932
15933         * config.in, configure: Regenerate.
15934
15935 2003-01-20  Nick Clifton  <nickc@redhat.com>
15936
15937         * config/arm/arm.md (sibcall_epilogue): Add an
15938         UNSPEC_PROLOGUE_USE to prevent the link register from being
15939         considered dead.
15940
15941 2003-01-20  Jan Hubicka  <jh@suse.cz>
15942
15943         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
15944
15945 2003-01-20  Andreas Schwab  <schwab@suse.de>
15946
15947         * system.h: Don't declare strsignal if the decl test hasn't been
15948         run yet.
15949
15950 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
15951
15952         * config/h8300/h8300.c (notice_update_cc): Don't assume that
15953         recog_data.operands[0] is always associated with cc0.
15954
15955 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
15956
15957         * collect2.c (ldgetname): Expand declaration to prototype.
15958         * read-rtl.c (atoll): Add prototype.
15959         * system.h (strsignal): Also declare if no declaration found.
15960
15961 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
15962
15963         * config.gcc (mips64*-*-linux*): Added.
15964         * config/mips/linux64.h, config/mips/t-linux64: New file.
15965         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
15966         * config/mips/mips.c (override_options): Use it.
15967         * config/mips/mips.h (TARGET_SWITCHES): Added...
15968         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
15969         * Makefile.in (SPECS): New.
15970         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
15971         * gcc.c (process_command): Move self-spec processing past spec
15972         file loading.
15973         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
15974         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
15975         CRTSTUFF_T_CFLAGS.
15976         (SPECS): Document.
15977         * doc/invoke.texi (-mabi-fake-default): Document.
15978
15979 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
15980
15981         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
15982         z_reg, z_reg_qi): Declare static and GTY().
15983         (da_reg): Remove.
15984         (create_regs_rtx): Don't create da_reg.
15985         ("gt-m68hc11.h"): Include for GTY roots.
15986         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
15987         and GTY() here.
15988         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
15989         (m68hc11_soft_tmp_reg): Likewise.
15990         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
15991
15992 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
15993
15994         * basic-block.h: Fix comment formatting.
15995         * calls.c: Likewise.
15996         * combine.c: Likewise.
15997         * convert.c: Likewise.
15998         * gcov.c: Likewise.
15999         * haifa-sched.c: Likewise.
16000         * libgcc2.c: Likewise.
16001         * loop.c: Likewise.
16002         * profile.c: Likewise.
16003         * system.h: Likewise.
16004
16005 2003-01-18  Roger Sayle  <roger@eyesopen.com>
16006
16007         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
16008
16009 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16010
16011         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
16012
16013 2003-01-17  Dale Johannesen  <dalej@apple.com>
16014
16015         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
16016           (*floatunssidf2_internal):  Ditto.
16017
16018 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
16019
16020         * alias.c: Fix comment typos.
16021         * basic-block.h: Likewise.
16022         * c-common.c: Likewise.
16023         * c-common.h: Likewise.
16024         * c-decl.c: Likewise.
16025         * c-opts.c: Likewise.
16026         * c-pragma.c: Likewise.
16027         * c-pretty-print.h: Likewise.
16028         * cfg.c: Likewise.
16029         * cfganal.c: Likewise.
16030         * cfgbuild.c: Likewise.
16031         * cfgcleanup.c: Likewise.
16032         * cfglayout.c: Likewise.
16033         * cfgrtl.c: Likewise.
16034         * convert.c: Likewise.
16035         * cpphash.h: Likewise.
16036         * cpplex.c: Likewise.
16037         * cpplib.h: Likewise.
16038         * df.h: Likewise.
16039         * diagnostic.c: Likewise.
16040         * diagnostic.h: Likewise.
16041         * dwarf2.h: Likewise.
16042
16043 2003-01-17  Stan Shebs  <shebs@apple.com>
16044
16045         * config/darwin-protos.h: Forward-declare struct cpp_reader.
16046
16047 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
16048
16049         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
16050         mistake in last checkin.
16051
16052 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
16053
16054         * et-forest.c: Fix comment typos.
16055         * et-forest.h: Likewise.
16056         * except.c: Likewise.
16057         * expr.c: Likewise.
16058         * flags.h: Likewise.
16059         * flow.c: Likewise.
16060         * gcc.c: Likewise.
16061         * gcse.c: Likewise.
16062         * genattrtab.c: Likewise.
16063         * genautomata.c: Likewise.
16064         * gengtype.c: Likewise.
16065         * genrecog.c: Likewise.
16066         * global.c: Likewise.
16067         * gthr-rtems.h: Likewise.
16068
16069 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16070
16071         * i386.c (x86_function_profiler): Fix format specifier.
16072
16073 2003-01-17  Richard Henderson  <rth@redhat.com>
16074
16075         * gengtype.c (walk_type): Allow paramN_is.
16076
16077 2003-01-17  Nick Clifton  <nickc@redhat.com>
16078
16079         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
16080
16081 2003-01-16  Richard Henderson  <rth@redhat.com>
16082
16083         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
16084
16085 2003-01-16  Richard Henderson  <rth@redhat.com>
16086
16087         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
16088         (alpha_next_sequence_number): Likewise.
16089         (alpha_this_literal_sequence_number): Likewise.
16090         (alpha_this_gpdisp_sequence_number): Likewise.
16091         (struct alpha_funcs, alpha_funcs_num): Likewise.
16092         (struct alpha_links): Fix branch merge error.
16093         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
16094
16095 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
16096
16097         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
16098         R. Ghazi.
16099
16100 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
16101
16102         * ifcvt.c: Fix comment typos.
16103         * lcm.c: Likewise.
16104         * libgcc2.c: Likewise.
16105         * local-alloc.c: Likewise.
16106         * loop.c: Likewise.
16107         * predict.c: Likewise.
16108         * ra-build.c: Likewise.
16109         * ra.c: Likewise.
16110         * ra-colorize.c: Likewise.
16111         * ra.h: Likewise.
16112         * ra-rewrite.c: Likewise.
16113         * regmove.c: Likewise.
16114         * reload.h: Likewise.
16115         * rtlanal.c: Likewise.
16116         * toplev.c: Likewise.
16117         * tree.h: Likewise.
16118         * unwind-dw2-fde-glibc.c: Likewise.
16119         * vmsdbgout.c: Likewise.
16120
16121 2003-01-16  Richard Henderson  <rth@redhat.com>
16122
16123         * dwarf2out.c (struct file_table): Remove.
16124         (FILE_TABLE_INCREMENT): Remove.
16125         (file_table): Make a varray; mark for GC.  Update all users.
16126         (file_table_last_lookup_index): Extract from struct file_table.
16127         (output_file_names): Fix unsigned compare warnings.
16128         (add_name_attribute): Remove inline marker.
16129         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
16130         (lookup_filename): Don't manage size of file_table.
16131         (init_file_table): Allocate file_table with GC.
16132         (dwarf2out_init): Don't record main_input_filename here.
16133         (dwarf2out_finish): Do it here instead.
16134
16135 2003-01-16  Bruce Korb  <bkorb@gnu.org>
16136
16137         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
16138
16139 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
16140
16141         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
16142         instead of rotldi3_mextr.
16143
16144 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
16145
16146         * haifa-sched.c (move_insn): Restore moving all schedule group.
16147         (set_priorities): Restore taking SCHED_GROUP_P into account.
16148
16149         * sched-deps.c (add_dependence): Restore processing the last group
16150         insn.
16151         (remove_dependence, group_leader): Restore the functions.
16152         (set_sched_group_p): Restore adding dependencies from previous insn
16153         in the group.
16154         (compute_forward_dependences): Restore usage of group_leader.
16155
16156         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
16157         account.
16158
16159         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
16160         account.
16161         (can_schedule_ready_p): Ditto.
16162         (add_branch_dependences): Restore skipping over the group insns.
16163
16164 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
16165
16166         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
16167         68HC12 pre/post inc/dec side effects.
16168
16169 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
16170
16171         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
16172
16173 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
16174
16175         * sh.md (mshflo_w_x): Fix description of operation.
16176
16177 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
16178
16179         * config/rs6000/rs6000.h: Mention Altivec registers in
16180         commentary.  Fix typo.
16181
16182 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
16183
16184         * config/rs6000/rs6000.md (movti_string): Remove clobber.
16185         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
16186         generate PARALLEL with clobber for TARGET_POWER.
16187
16188 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16189
16190         * ra-colorize.c (colorize_one_web): Initialize variable.
16191         * regmove.c (fixup_match_1): Likewise.
16192         * reload1.c (reload_as_needed): Likewise.
16193         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
16194
16195 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16196
16197         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
16198
16199 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16200
16201         * dbxout.c (lastfile, cwd): Fix `unused' warning.
16202         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
16203         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
16204         is_main_source, file_table, decl_die_table_in_use,
16205         abbrev_die_table_in_use, line_info_table_in_use,
16206         separate_line_info_table_in_use, pubname_table_in_use,
16207         arange_table_in_use, ranges_table_in_use,
16208         current_function_has_inlines): Likewise.
16209         * flow.c (life_analysis): Likewise.
16210         * genemit.c (gen_insn): Likewise.
16211         * protoize.c (cplus_suffix): Likewise.
16212
16213         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
16214         * arm.h (ROUND_UP_WORD): Likewise.
16215
16216         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
16217         warning.
16218         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
16219         init_emit_once): Likewise.
16220         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
16221         Likewise.
16222         * function.c (assign_stack_temp_for_type): Likewise.
16223         * loop.c (loop_invariant_p): Likewise.
16224         * recog.c (push_operand): Likewise.
16225         * regclass.c (init_reg_sets_1): Likewise.
16226         * reload.c (update_auto_inc_notes): Likewise.
16227         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
16228         * stmt.c (expand_asm_operands): Likewise.
16229         * stor-layout.c (start_record_layout): Likewise.
16230
16231 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
16232
16233         * config/c4x/c4x.md (epilogue): Correct last patch.
16234
16235 2003-01-15  Richard Henderson  <rth@redhat.com>
16236
16237         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
16238         also check that GP is being used.
16239         (alpha_find_lo_sum_using_gp): New.
16240         (alpha_does_function_need_gp): Use get_attr_usegp.
16241         * config/alpha/alpha-protos.h: Update.
16242         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
16243         as needed.
16244
16245 2003-01-15  Roger Sayle  <roger@eyesopen.com>
16246
16247         * gcse.c (one_cprop_pass): Change function arguments to take both
16248         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
16249         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
16250         (bypass_jumps): New function to perform separate jump bypassing pass.
16251         * rtl.h (bypass_jumps): Add function prototype.
16252         * timevar.def (TV_BYPASS): New timing variable.
16253         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
16254         (dump_file): New entry for the bypass RTL dump file.
16255         (rest_of_compilation): Insert new jump bypassing optimization
16256         pass after loop.
16257         * doc/passes.texi: Document new pass.
16258
16259 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16260
16261         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
16262         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
16263         * pa.h (TARGET_SOM_SDEF): Define.
16264         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
16265
16266 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
16267
16268         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
16269         allocate 4-bytes of locals on 68HC11.
16270         (expand_epilogue): Likewise.
16271         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
16272
16273 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
16274
16275         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
16276         and -mshort-double to the assembler to specify the ABI.
16277         (LINK_SPEC): Likewise.
16278         (CPP_SPEC): Pass HCS12 specific define.
16279         (MASK_M68S12): New define.
16280         (TARGET_M68S12): Likewise.
16281         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
16282         (TARGET_VERSION): Update.
16283         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
16284         (LINK_SPEC): Update.
16285         (ASM_SPEC): Update.
16286         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
16287         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
16288
16289 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
16290
16291         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
16292         the return code.
16293
16294 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
16295
16296         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
16297         flag before setting it.
16298
16299 2003-01-15  Roger Sayle  <roger@eyesopen.com>
16300
16301         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
16302         when loop condition is known true, i.e.  "while (1) { ... }".
16303         (genrtl_for_stmt): Similarly for "for" statements.
16304
16305 2003-01-15  Roger Sayle  <roger@eyesopen.com>
16306
16307         * real.c (real_sqrt): Return a bool result indicating whether
16308         a floating point exception or trap should be raised.
16309         * real.h (real_sqrt): Update function prototype.
16310         * builtins.c (fold_builtin): Only fold non-trapping square
16311         roots unless we're ignoring errno and trapping math.
16312
16313 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
16314
16315         * expr.h (emit_conditional_add): Add PARAMS to declaration.
16316         * gengtype-lex.l (malloc, realloc): Move defines after include of
16317         system.h.  Remove duplicate include of system.h.
16318
16319 2003-01-15  Roger Sayle  <roger@eyesopen.com>
16320
16321         PR middle-end/9009
16322         * optabs.c (expand_unop):  When manipulating the FP sign bit
16323         using integer operations, account for targets with different
16324         integer and FP word orders.
16325         (expand_abs): Likewise.
16326
16327 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
16328
16329         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
16330         file extension in section name.
16331
16332 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
16333
16334         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
16335         constant offset.
16336
16337 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
16338
16339         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
16340         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
16341         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
16342         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
16343
16344 2003-01-15  Jan Hubicka  <jh@suse.cz>
16345
16346         PR f/9258
16347         * global.c (struct allocno): Add no_stack_reg.
16348         (global_conflicts): Set no_stack_reg.
16349         (find_reg): Use it.
16350
16351         * convert.c (convert_to_real): Fold - and abs only when profitable.
16352         * fold-const.c (fold): Fold truncates in - and abs.
16353
16354 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
16355
16356         Segher Boessenkool  <segher@koffie.nl>
16357
16358         * predict.c (real_inv_br_prob_base): New variable.
16359         (propagate_freq): Use multiply by reciprocal instead of
16360         division.  Don't divide by 1.0 at all.
16361         (estimate_bb_frequencies): Similar.
16362
16363 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
16364
16365         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
16366         * configure: Rebuilt.
16367
16368 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
16369
16370         * config/s390/s390.c (s390_safe_attr_type): New function.
16371         (s390_use_dfa_pipeline_interface): New function, return true for z900.
16372         (s390_issue_rate): New function.
16373         (s390_agen_dep_p): New function.
16374         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
16375         (s390_adjust_cost): Return 'cost' if new DFA is used.
16376         (s390_adjust_priority): Delete function.
16377         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
16378         * config/s390/s390.md (atype attribute): Attribute 'atype' default
16379         determined by 'op_type'.
16380         (type attribute): Added more type attributes.
16381         * config/s390/2064.md: New DFA description for z900 pipeline.
16382
16383 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
16384
16385         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
16386         forced to memory.  Fixes PR bootstrap/9036.
16387
16388         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
16389         to set $gp before the call.
16390
16391 2003-01-14  Richard Henderson  <rth@redhat.com>
16392
16393         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
16394         for force_const_mem.
16395
16396 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16397
16398         * genattr.c (main): Rearrange output to avoid prototype warning.
16399         * genautomata.c (transform_3): Fix ambiguous-else warning.
16400         * local-alloc.c (requires_inout): Add parentheses around
16401         assignment used as truth-value.
16402         * timevar.c: Move system includes above local includes.  Include
16403         toplev.h
16404         * Makefile.in (timevar.o): Depend on toplev.h.
16405
16406 2003-01-14  Denis Chertykov  <denisc@overta.ru>
16407
16408         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
16409         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
16410
16411         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
16412         attributes.
16413         (TARGET_ATTRIBUTE_TABLE): New macro.
16414         (valid_machine_type_attribute): Remove.
16415         (valid_machine_decl_attribute): Remove.
16416         (ip2k_handle_progmem_attribute): New function.
16417         (ip2k_handle_fndecl_attribute): New function.
16418
16419 2003-01-10  Andrew Haley  <aph@redhat.com>
16420
16421         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
16422         registers to be in correct order.  Add rip.
16423
16424 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
16425
16426         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
16427         (*iorsi3_and_lshiftrt_9_sb): Likewise.
16428
16429 2003-01-14  Jan Hubicka  <jh@suse.cz>
16430
16431         * convert.c (strip_float_extensions):  Look for narrowest type handling
16432         FP constants.
16433
16434         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
16435         float1 CMP float2.
16436         * convert.c (strip_float_extensions): Make global.
16437         * tree.h (strip_float_extensions): Declare.
16438
16439 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16440
16441         * timevar.def: define TV_NAME_LOOKUP.
16442         * timevar.c (timevar_pop): Be verbose when aborting.
16443
16444 2003-01-13  Andreas Schwab  <schwab@suse.de>
16445
16446         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
16447         $(parsedir), just move the temporary file at the end.
16448         ($(parsedir)/gengtype-yacc.c): Likewise.
16449
16450 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
16451
16452         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
16453         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
16454         splitting.
16455         * configure: Rebuilt.
16456
16457 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16458
16459         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
16460         internal_mcount): Don't use PARAMS.
16461         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
16462         ISO C style.
16463         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
16464
16465 2003-01-13  Andreas Schwab  <schwab@suse.de>
16466
16467         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
16468         directive.
16469
16470 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
16471
16472         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
16473         (*iorsi3_and_lshiftrt_n_sb): Likewise.
16474
16475 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
16476
16477         PR c++/9264
16478         * c-lex.c (c_lex): Set the token value to error_mark_node for
16479         invalid numeric constants.
16480
16481 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16482
16483         * c-pch.c (asm_file_startpos): Change to `long'.
16484         (pch_init): Use ftell, not ftello.
16485         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
16486         Use `long' instead of `off_t'.
16487         (c_common_read_pch): Likewise.
16488         * ggc-common.c (gt_pch_save): Use long/ftell instead of
16489         off_t/ftello.
16490
16491 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
16492
16493         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
16494
16495 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
16496
16497         * arm-protos.h (struct cpp_reader): Add declaration.
16498
16499 2003-01-11  Jan Hubicka  <jh@suse.cz>
16500
16501         PR target/9068
16502         * i386.c (output_fp_compare): Fix typo.
16503
16504 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
16505
16506         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
16507
16508 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
16509
16510         * Makefile.in (parsedir): New variable.
16511         (docobjdir): New variable.
16512         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
16513         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
16514         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
16515         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
16516         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
16517         Use docobjdir.
16518         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
16519         objc.maintainer-clean): Use parsedir.
16520
16521         * varasm.c (struct constant_descriptor_rtx): Remove unused
16522         `label' field.
16523
16524         * toplev.c (documented_lang_options): Document -Winvalid-pch.
16525
16526 2003-01-10  Richard Henderson  <rth@redhat.com>
16527
16528         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
16529         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
16530
16531 2003-01-10  Richard Henderson  <rth@redhat.com>
16532
16533         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
16534         not INTEGRAL_MODE_P when widening extensions.
16535
16536 2003-01-10  Richard Henderson  <rth@redhat.com>
16537
16538         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
16539
16540 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
16541
16542         * ggc-page.c (ggc_collect): Avoid overflow computing
16543         min_expand.
16544
16545         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
16546         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
16547         Remove calls.
16548         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
16549
16550 2003-01-10  Jan Hubicka  <jh@suse.cz>
16551
16552         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
16553         with weird operands.
16554
16555 2003-01-10  Dale Johannesen <dalej@apple.com>
16556
16557         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
16558         parameters.  Call check_sibcall_argument_overlap if indicated.
16559         (check_sibcall_argument_overlap):  Add mark_stored_args_map
16560         parameter.  Don't mark parameter area as clobbered if not set.
16561         (expand_call):  Adjust calls to above.
16562
16563 2003-01-10 Kelley Cook <kelleycook@comcast.net>
16564
16565         * configure.in (linker read-only and read-write section mixing):
16566         Squelch some assembler warnings.
16567         * configure: Likewise.
16568
16569 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
16570
16571         * doc/invoke.texi: Document -mtune, delete -mcpu
16572         option for S/390 and zSeries.
16573         * config/s390/s390.c (s390_tune_string) New variable.
16574         (s390_cpu_string) Delete variable.
16575         (override_options): Use s390_tune_string instead of
16576         s390_cpu_string.
16577         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
16578
16579 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
16580
16581         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
16582
16583 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
16584
16585         * jump.c (next_nonnote_insn_in_loop): New function.
16586         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
16587         next_nonnote_insn.
16588         (duplicate_loop_exit_test). Likewise.
16589
16590 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
16591
16592         Merge from pch-branch:
16593
16594         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
16595
16596         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
16597         load.
16598
16599         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
16600
16601         * cpplib.c (count_registered_pragmas): New function.
16602         (save_registered_pragmas): New function.
16603         (_cpp_save_pragma_names): New function.
16604         (restore_registered_pragmas): New function.
16605         (_cpp_restore_pragma_names): New function.
16606         * cpphash.h (_cpp_save_pragma_names): Prototype.
16607         (_cpp_restore_pragma_names): Likewise.
16608         * cpppch.c (struct save_macro_item): Split from save_macro_data.
16609         (struct save_macro_data): New field 'saved_pragmas'.
16610         (save_macros): Update for changes to struct save_macro_data.
16611         (cpp_prepare_state): Call _cpp_save_pragma_names, update
16612         for changes to struct save_macro_data.
16613         (cpp_read_state): Call _cpp_restore_pragma_names, update
16614         for changes to struct save_macro_data.
16615
16616         * cpppch.c (cpp_read_state): Restore the hashtable references
16617         in the cpp_reader.
16618
16619         * tree.h (built_in_decls): Mark for PCH.
16620
16621         * dbxout.c (lastfile): Don't mark for PCH.
16622
16623         * ggc.h: Document PCH calls into memory managers.
16624
16625         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
16626
16627         * doc/invoke.texi (Precompiled Headers): Document the
16628         directory form of PCH.
16629         * cppfiles.c (validate_pch): New function.
16630         (open_file_pch): Search suitably-named directories for PCH files.
16631
16632         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
16633
16634         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
16635         reorder options.
16636         (Type Information): Mention that the information is also
16637         used to implement PCH.
16638         * doc/passes.texi (Passes): Improve documentation of
16639         language-specific files.
16640
16641         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
16642
16643         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
16644         (struct walk_type_data): Add reorder_fn field.
16645         (walk_type): Process 'reorder' option.
16646         (write_types_process_field): Reorder parameters to gt_pch_note_object,
16647         call reorder_note_routine.
16648         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
16649         (ggc_wtd): Update for change to struct write_types_data.
16650         (pch_wtd): Likewise.
16651         * ggc.h (gt_pch_note_object): Reorder parameters.
16652         (gt_handle_reorder): New definition.
16653         (gt_pch_note_reorder): New prototype.
16654         * ggc-common.c (struct ptr_data): Add reorder_fn.
16655         (gt_pch_note_object): Reorder parameters.
16656         (gt_pch_note_reorder): New.
16657         (gt_pch_save): Call reorder_fn.
16658         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
16659
16660         * dbxout.c (cwd): Don't mark for PCH.
16661
16662         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
16663
16664         * gengtype.c (finish_root_table): Fix some warnings.
16665         (write_root): Handle TYPE_STRING.
16666         * ggc.h (gt_ggc_m_S): Add prototype.
16667         * stringpool.c (gt_ggc_m_S): New function.
16668
16669         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
16670
16671         * dwarf2out.c (dw2_string_counter): New.
16672         (AT_string_form): Use it.
16673         (same_dw_val_p): Update for removal of hashtable.h hash tables.
16674
16675         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
16676
16677         * dbxout.c: Include gt-dbxout.h.
16678         (lastfile): Mark for PCH/GGC.
16679         (cwd): Likewise.
16680         (struct typeinfo): Likewise.
16681         (typevec): Likewise.
16682         (typevec_len): Likewise.
16683         (next_type_number): Likewise.
16684         (struct dbx_file): Likewise.
16685         (current_file): Likewise.
16686         (next_file_number): Likewise.
16687         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
16688         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
16689         (dbxout_end_source_file): Don't free struct dbx_file.
16690         (dbxout_type): Use GGC to allocate typevec.
16691         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
16692         (GTFILES): Add dbxout.c.
16693         (gt-dbxout.h): New rule.
16694
16695         * Makefile.in (c-pch.o): Add debug.h as dependency.
16696         * c-pch.c: Include debug.h.
16697         (pch_init): Call start_source_file to keep nesting right.
16698         (c_common_read_pch): Add orig_name parameter.  Call
16699         start_source_file debug hook.  Call end_source_file debug hook.
16700         * c-common.h (c_common_read_pch): Update prototype.
16701         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
16702         callback.
16703         * cppfiles.c (struct include_file): Add new field `header_name'.
16704         (find_or_create_entry): Default it to `name'.
16705         (open_file_pch): Set it to the original header file searched for.
16706         (stack_include_file): Don't stack an empty buffer, just handle
16707         PCH files immediately.  Pass header_name field to read_pch callback.
16708
16709         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
16710
16711         * function.c (funcdef_no): Mark to be saved in a PCH.
16712
16713         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
16714
16715         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
16716
16717         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
16718
16719         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
16720
16721         * optabs.h (code_to_optab): Add GTY marker.
16722
16723         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
16724
16725         * Makefile.in (GTFILES): Add cpplib.h.
16726         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
16727         * c-decl.c (build_compound_literal): Don't use var_labelno.
16728         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
16729         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
16730         * varasm.c (const_labelno): Use gengtype to mark.
16731         (var_labelno): Likewise.
16732         (in_section): Likewise.
16733         (in_named_name): Likewise.
16734         (struct in_named_entry): Likewise.
16735         (in_named_htab): Likewise.
16736         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
16737         (init_varasm_once): Use GGC to allocate in_named_htab.
16738         * config/darwin.c (current_pic_label_num): Mark for PCH.
16739
16740         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
16741
16742         * ggc-simple.c (init_ggc_pch): New stub procedure.
16743         (ggc_pch_count_object): Likewise.
16744         (ggc_pch_total_size): Likewise.
16745         (ggc_pch_this_base): Likewise.
16746         (ggc_pch_alloc_object): Likewise.
16747         (ggc_pch_prepare_write): Likewise.
16748         (ggc_pch_write_object): Likewise
16749         (ggc_pch_finish): Likewise.
16750         (ggc_pch_read): Likewise.
16751
16752         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
16753
16754         * c-pch.c (c_common_write_pch): Write the macro definitions after
16755         the GCed data.
16756         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
16757         definitions after the GCed data.
16758         * cpplib.c (save_macros): New.
16759         (reset_ht): New.
16760         (cpp_write_pch_deps): Split out of cpp_write_pch.
16761         (cpp_write_pch_state): Split out of cpp_write_pch.
16762         (cpp_write_pch): Delete.
16763         (struct save_macro_data): Delete.
16764         (cpp_prepare_state): New.
16765         (cpp_read_state): Erase and restore initial macro definitions.
16766         * cpplib.h (struct save_macro_data): Forward-declare.
16767         (cpp_write_pch_deps): Prototype.
16768         (cpp_write_pch_state): Prototype.
16769         (cpp_write_pch): Delete prototype.
16770         (cpp_prepare_state): Prototype.
16771         (cpp_read_state): Add fourth argument.
16772
16773         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
16774
16775         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
16776         (write_array): Remove warning.
16777
16778         * gengtype.c (contains_scalar_p): New.
16779         (finish_root_table): Add the table to all languages, even if it's
16780         empty.
16781         (write_roots): Output gt_pch_scalar_rtab.
16782         * ggc-common.c (gt_pch_save): Write out scalars.
16783         (gt_pch_restore): Read scalars back.
16784
16785         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
16786         (struct page_entry): Delete pch_page field.
16787         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
16788         (clear_marks): Likewise.
16789         (sweep_pages): Likewise.
16790         (poison_pages): Likewise.
16791         (ggc_print_statistics): Likewise.
16792         (ggc_pch_read): Don't free objects read from a PCH.
16793         Properly set up in_use_p and page_tails.
16794
16795         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
16796
16797         * gengtype.c (struct write_types_data): New.
16798         (struct walk_type_data): Make `cookie' const; add extra
16799         prev_val item; add `orig_s' field.
16800         (walk_type): Update prev_val[3].
16801         (write_types_process_field): New.
16802         (write_func_for_structure): Take write_types_data structure.
16803         (write_types): New.
16804         (ggc_wtd): New.
16805         (pch_wtd): New.
16806         (write_types_local_process_field): New.
16807         (gc_mark_process_field): Delete.
16808         (write_local_func_for_structure): New.
16809         (gc_mark_func_name): Delete.
16810         (write_gc_types): Delete.
16811         (write_local): New.
16812         (finish_root_table): Don't include 'ggc_' in PFX.
16813         (write_root): Rename from write_root.  Fill pchw field of structures.
16814         (write_array): New.
16815         (write_roots): Rename from write_gc_roots.  Split out to write_array.
16816         Update to changes to other routines.  Write gt_pch_cache_rtab table.
16817         (main): Write PCH walking routines.
16818         * ggc-common.c: Include toplev.h, sys/mman.h.
16819         (ggc_mark_roots): For cache hashtables, also mark the hash table
16820         and the array of entries.
16821         (saving_htab): New.
16822         (struct ptr_data): New.
16823         (POINTER_HASH): New.
16824         (gt_pch_note_object): New.
16825         (saving_htab_hash): New.
16826         (saving_htab_eq): New.
16827         (struct traversal_state): New.
16828         (call_count): New.
16829         (call_alloc): New.
16830         (compare_ptr_data): New.
16831         (relocate_ptrs): New.
16832         (write_pch_globals): New.
16833         (struct mmap_info): New.
16834         (gt_pch_save): New.
16835         (gt_pch_restore): New.
16836         * ggc-page.c (ROUND_UP_VALUE): New.
16837         (ROUND_UP): New.
16838         (struct page_entry): Add field `pch_page'.
16839         (init_ggc): Use ROUND_UP.
16840         (struct ggc_pch_data): Declare.
16841         (init_ggc_pch): New.
16842         (ggc_pch_count_object): New.
16843         (ggc_pch_total_size): New.
16844         (ggc_pch_this_base): New.
16845         (ggc_pch_alloc_object): New.
16846         (ggc_pch_prepare_write): New.
16847         (ggc_pch_write_object): New.
16848         (ggc_pch_finish): New.
16849         (ggc_pch_read): New.
16850         * ggc.h (gt_pointer_operator): New.
16851         (gt_note_pointers): New.
16852         (gt_pch_note_object): New prototype.
16853         (gt_pointer_walker): New.
16854         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
16855         (LAST_GGC_ROOT_TAB): Update.
16856         (gt_pch_cache_rtab): Declare.
16857         (gt_pch_scalar_rtab): Declare.
16858         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
16859         (LAST_GGC_CACHE_TAB): Update.
16860         (gt_pch_save_stringpool): Declare.
16861         (gt_pch_restore_stringpool): Declare.
16862         (gt_pch_p_S): Declare.
16863         (gt_pch_n_S): Declare.
16864         (struct ggc_pch_data): Forward-declare.
16865         (init_ggc_pch): Declare.
16866         (ggc_pch_count_object): Declare.
16867         (ggc_pch_total_size): Declare.
16868         (ggc_pch_this_base): Declare.
16869         (ggc_pch_alloc_object): Declare.
16870         (ggc_pch_prepare_write): Declare.
16871         (ggc_pch_write_object): Declare.
16872         (ggc_pch_finish): Declare.
16873         (ggc_pch_read): Declare.
16874         (gt_pch_save): Declare.
16875         (gt_pch_restore): Declare.
16876         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
16877         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
16878         const_double_htab, mem_attrs_htab using GGC.
16879         * c-pch.c: Include ggc.h.
16880         (pch_init): Allow reading PCH file back.
16881         (c_common_write_pch): Call gt_pch_save.
16882         (c_common_read_pch): Call gt_pch_restore.
16883         * c-parse.in (init_reswords): Delete now-untrue comment.
16884         Allocate ridpointers using GGC.
16885         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
16886         calling expand_deferred_fns.
16887         * c-common.h (ridpointers): Mark for GTY machinery.
16888         * Makefile.in (stringpool.o): Update dependencies.
16889         (c-pch.o): Update dependencies.
16890         (ggc-common.o): Update dependencies.
16891         * stringpool.c: Include gt-stringpool.h.
16892         (gt_pch_p_S): New.
16893         (gt_pch_n_S): New.
16894         (struct string_pool_data): New.
16895         (spd): New.
16896         (gt_pch_save_stringpool): New.
16897         (gt_pch_restore_stringpool): New.
16898         * tree.c (init_ttree): Make type_hash_table allocated using GC.
16899
16900         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
16901
16902         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
16903         (output_mangled_typename): Don't pass size_t to printf.
16904
16905         * tree.h (union tree_type_symtab): Add tag to `address' field.
16906         (union tree_decl_u2): Add tag to 'i' field.
16907         * varasm.c (union rtx_const_un): Add tags to all fields.
16908         * gengtype.c (struct walk_type_data): New.
16909         (output_escaped_param): Take struct walk_type_data parameter.
16910         (write_gc_structure_fields): Delete.
16911         (walk_type): New.
16912         (write_gc_marker_routine_for_structure): Delete.
16913         (write_func_for_structure): New.
16914         (gc_mark_process_field): New.
16915         (gc_mark_func_name): New.
16916         (gc_counter): Delete.
16917         (write_gc_types): Use write_func_for_structure.
16918         (write_gc_roots): Use walk_type.
16919
16920         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
16921
16922         * ggc-common.c (ggc_mark_roots): Delete 'x'.
16923         (ggc_splay_dont_free): Fix warning about unused 'x'.
16924         (ggc_print_common_statistics): Remove warnings.
16925
16926         2002-10-01  Mike Stump  <mrs@apple.com>
16927
16928         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
16929         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
16930
16931         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
16932             Catherine Moore  <clm@redhat.com>
16933
16934         * Makefile (c-pch.o): Update dependencies.
16935         (LIBCPP_OBJS): Add cpppch.o.
16936         (cpppch.o): New.
16937         * c-common.c (c_common_init): Don't call pch_init here.
16938         * c-common.h (c_common_read_pch): Update prototype.
16939         * c-lex.c (c_common_parse_file): Call pch_init here.
16940         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
16941         (c_common_decode_option): Handle them.
16942         * c-pch.c: Include c-pragma.h.
16943         (save_asm_offset): Delete.
16944         (pch_init): Move contents of save_asm_offset into here, call
16945         cpp_save_state.
16946         (c_common_write_pch): Call cpp_write_pch.
16947         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
16948         cpp_valid_state.
16949         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
16950         * cppfiles.c (stack_include_file): Update for change to
16951         parameters of cb.read_pch.
16952         * cpphash.h (struct cpp_reader): Add `savedstate' field.
16953         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
16954         `restore_pch_deps' fields.
16955         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
16956         (cpp_save_state): Prototype.
16957         (cpp_write_pch): Prototype.
16958         (cpp_valid_state): Prototype.
16959         (cpp_read_state): Prototype.
16960         * cpppch.c: New file.
16961         * flags.h (version_flag): Remove prototype.
16962         * mkdeps.c (deps_save): New.
16963         (deps_restore): New.
16964         * mkdeps.h (deps_save): Prototype.
16965         (deps_restore): Prototype.
16966         * toplev.c (late_init_hook): Delete.
16967         (version_flag): Make static again.
16968         (compile_file): Don't call late_init_hook.
16969         * toplev.h (late_init_hook): Delete.
16970         * doc/cppopts.texi: Document -fpch-deps.
16971         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
16972
16973         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
16974
16975         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
16976         callers.
16977         (c_common_valid_pch): Rename from c_valid_pch, change callers.
16978         (c_common_read_pch): Rename from c_read_pch, change callers.
16979
16980         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
16981         a space between it and its argument.
16982
16983         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
16984
16985         * c-pch.c: New file.
16986         * toplev.h (late_init_hook): Declare.
16987         * toplev.c (late_init_hook): Define.
16988         (version_flag): Make globally visible.
16989         (compile_file): Call late_init_hook.
16990         (init_asm_output): Make output file seekable.
16991         * gcc.c (default_compilers): Update c-header rule.
16992         * flags.h (version_flag): Declare.
16993         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
16994         fields.
16995         * cppfiles.c (struct include_file): Add 'pch' field.
16996         (INCLUDE_PCH_P): New.
16997         (open_file_pch): New.
16998         (stack_include_file): Handle PCH files specially.
16999         (find_include_file): Call open_file_pch instead of open_file.
17000         (_cpp_read_file): Explain why open_file is used instead of
17001         open_file_pch.
17002         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
17003         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
17004         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
17005         in cpplib callbacks.
17006         * c-common.c (pch_file): Correct comment.
17007         (allow_pch): Define.
17008         (c_common_init): Call pch_init.
17009         * c-common.h (allow_pch): Declare.
17010         (pch_init): Declare.
17011         (c_valid_pch): Declare.
17012         (c_read_pch): Declare.
17013         (c_write_pch): Declare.
17014         * Makefile.in (c-pch.o): New.
17015         (C_AND_OBJC_OBJS): Add c-pch.o.
17016         * doc/invoke.texi (Precompiled Headers): Add index entries,
17017         complete truncated paragraph.
17018
17019         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
17020
17021         * c-common.c: (pch_file): Define.
17022         * c-common.h (pch_file): Declare.
17023         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
17024         (missing_arg): Require --output-pch= to have an argument.
17025         (c_common_decode_option): Handle --output-pch=.
17026         * gcc.c: Document new %V.
17027         (default_compilers): Handle compiling C header files.
17028         (do_spec_1): Implement %V.
17029         (main): Handle "gcc foo.h" without trying to run linker.
17030         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
17031         (Overall Options): Document what the driver does with header files,
17032         document new -x option possibilities.
17033         (Invoking G++): More documentation for PCH.
17034         (Precompiled Headers): New.
17035
17036         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
17037
17038         * ggc.h: Don't include varray.h.  Rearrange functions to be more
17039         organized.
17040         (ggc_add_root): Delete.
17041         (ggc_mark_rtx): Delete.
17042         (ggc_mark_tree): Delete.
17043         (struct ggc_statistics): Remove contents.
17044         * ggc-common.c: Remove unneeded includes.
17045         (struct ggc_root): Delete.
17046         (roots): Delete.
17047         (ggc_add_root): Delete.
17048         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
17049         (ggc_print_common_statistics): Remove most of the contents.
17050         * Makefile.in (GGC_H): No longer uses varray.h.
17051         (ggc-common.o): Update dependencies.
17052         (c-parse.o): Add varray.h to dependencies.
17053         (c-common.o): Add varray.h.
17054         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
17055         (mark_ident_hash): Rename to ggc_mark_stringpool.
17056         (init_stringpool): Don't use ggc_add_root.
17057         * c-parse.in: Include varray.h.
17058         * c-common.c: Include varray.h.
17059         * objc/Make-lang.in (objc-act.o): Add varray.h.
17060         * objc/objc-act.c: Include varray.h.
17061
17062         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
17063
17064         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
17065         (dw_cfi_oprnd1_desc): Likewise.
17066
17067         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
17068
17069         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
17070         move out of ifdef.
17071         (alpha_links): Use gengtype to mark; move out of ifdef.
17072         (mark_alpha_links_node): Delete.
17073         (mark_alpha_links): Delete.
17074         (alpha_need_linkage): Use GGC to allocate splay tree, struct
17075         alpha_links, strings.  Don't use ggc_add_root.
17076         * ggc-common.c (ggc_splay_alloc): New.
17077         (ggc_splay_dont_free): New.
17078         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
17079         (ggc_mark_tree): Likewise.
17080         (splay_tree_new_ggc): New.
17081         (ggc_splay_alloc): Declare.
17082         (ggc_splay_dont_free): Declare.
17083         * dwarf2asm.c: Include gt-dwarf2asm.h.
17084         (mark_indirect_pool_entry): Delete.
17085         (mark_indirect_pool): Delete.
17086         (indirect_pool): Use gengtype to mark.
17087         (dw2_force_const_mem): Don't use ggc_add_root.
17088         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
17089         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
17090         (gt-dwarf2asm.h): Depend on s-gtype.
17091
17092         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
17093
17094         * tree.h (union tree_type_symtab): Mark `die' field.
17095         * Makefile.in (dwarf2out.o): Update dependencies.
17096         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
17097         hash tables.
17098         (dw_cfi_oprnd1_desc): New function.
17099         (dw_cfi_oprnd2_desc): New function.
17100         (indirect_string_alloc): Delete.
17101         (debug_str_do_hash): New function.
17102         (debug_str_eq): New function.
17103         (mark_limbo_die_list): Delete.
17104         (dwarf2out_init): Don't call ggc_add_root.
17105
17106 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
17107
17108         The following changes are merged from itanium-sched-branch:
17109
17110         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
17111
17112         * doc/md.texi: Clarify assignment of units to automata description.
17113
17114         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
17115
17116         * genautomata.c (unit_decl): Remove members
17117         `the_same_automaton_unit' and
17118         `the_same_automaton_message_reported_p'.
17119         (process_unit_to_form_the_same_automaton_unit_lists,
17120         form_the_same_automaton_unit_lists_from_regexp,
17121         form_the_same_automaton_unit_lists, the_same_automaton_lists):
17122         Remove them.
17123         (annotation_message_reported_p): New global variable.
17124         (check_unit_distribution_in_reserv,
17125         check_regexp_units_distribution): New functions.
17126         (check_unit_distributions_to_automata): Rewrite it.
17127
17128         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
17129
17130         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
17131         Use continue instead of break if cycle is too big.
17132
17133         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
17134
17135         * genautomata.c (check_unit_distributions_to_automata): Output at
17136         most one message for a unit.
17137         (process_unit_to_form_the_same_automaton_unit_lists): Check
17138         automaton of units instead of units themself.
17139
17140         * doc/md.texi: Describe the constraint about assigning unit to
17141         automata.
17142
17143         2002-12-20  Jan Hubicka  <jH@suse.cz>
17144                     Vladimir Makarov  <vmakarov@redhat.com>
17145
17146         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
17147         and `in_set_p'.
17148         (gen_cpu_unit): Initialize the new members.
17149         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
17150         up `min_occ_cycle_num'.
17151         (evaluate_max_reserv_cycles): Change the function call.
17152         (CLEAR_BIT): New macro.
17153         (states_union, state_shift): Use the mask.
17154         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
17155         (form_reservs_matter): New function.
17156         (make_automaton): Call the function and use the mask.
17157         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
17158         account.
17159
17160         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
17161
17162         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
17163
17164         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
17165
17166         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
17167         for Itanium.
17168
17169         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
17170
17171         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
17172         default cpu.
17173
17174         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
17175                 2002-10-31  Dale Johannesen <dalej@apple.com>
17176
17177         * haifa-sched.c (find_set_reg_weight): New function.
17178         (find_insn_reg_weight): Use the new function.
17179         (schedule_block): Do sorting ready queue always
17180         after insn issue.
17181
17182         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
17183
17184         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
17185
17186         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
17187
17188         * haifa-sched.c (choice_entry): New structure.
17189         (choice_stack, cycle_issued_insns): New variables.
17190         (max_issue): Rewrite it.
17191         (choose_ready): Set up ready_try for unknown insns too.
17192         (schedule_block): Allocate and free choice_stack.  Set up
17193         and modify cycle_issued_insns.
17194
17195         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
17196         with and without filling the bundle.
17197         (bundling): Combine calls of issue_nops_and_insn.
17198
17199         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
17200
17201         * config/ia64/itanium1.md: New file.
17202
17203         * config/ia64/itanium2.md: New file.
17204
17205         * config/ia64/ia64.md: Move DFA descriptions into the new files.
17206         Remove the old pipeline description.
17207
17208         * config/ia64/ia64.c (ia64_override_options): Add aliases of
17209         itanium processor names.
17210
17211         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
17212
17213         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
17214         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
17215
17216         * config/ia64/ia64.md: Add descriptions for Itanium2.
17217
17218         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
17219
17220         * config/ia64/ia64.h (processor_type): New enumeration.
17221         (ia64_tune, ia64_tune_string): New external declarations.
17222         (TARGET_OPTIONS): Add option `tune='.
17223
17224         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
17225         variables.
17226         (ia64_override_options): Set up `ia64_tune'.
17227         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
17228         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
17229         (bundling): Add nops for MM-insns only for Itanium.
17230         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
17231         Itanium.
17232
17233         * config/ia64/ia64.md (cpu): New attribute.
17234         (DFA description): Enable it only for Itanium.
17235
17236         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
17237                     Richard Henderson  <rth@redhat.com>
17238
17239         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
17240         MASK_EARLY_STOP_BITS.
17241         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
17242         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
17243         `early-stop-bits'.
17244
17245         * config/ia64/ia64.c (ia64_dfa_new_cycle,
17246         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
17247         instead of TARGET_TUNE_STOP_BITS.
17248
17249         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
17250         `-mearly-stop-bits'.
17251
17252         * config/ia64/ia64.c (automata_option "v"): Comment it.
17253
17254         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
17255
17256         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
17257         New macros.
17258         (TARGET_SWITCHES): Add entries for the new option.
17259
17260         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
17261         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
17262         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
17263         global variables.
17264         (ia64_sched_reorder2): Set up `clocks'.
17265         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
17266         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
17267         queue when TARGET_TUNE_STOP_BITS.
17268         (bundling): Insert additional nops for MM-insns.
17269         (final_emit_insn_group_barriers): Add insertion of stop bits
17270         according `stops_p'.
17271         (ia64_reorg): Initiate the new varibales.
17272
17273         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
17274
17275         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
17276
17277         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
17278         insns at the end of block insn scheduling.
17279
17280         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
17281
17282         * sched-deps.c (remove_dependence, group_leader): Remove it.
17283         (add_dependence): Add dependence to group leader to.
17284         (set_sched_group_p): Add dependence to the first insn of the
17285         schedule group too.
17286         (sched_analyze_insn): Make dependence to jump as anti-dependence.
17287         Change true dependence by anti-dependence when
17288         `reg_pending_barrier'.
17289
17290         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
17291         add_branch_dependences): Ignore schedule groups.
17292
17293         * sched-ebb.c (init_ready_list): Ditto.
17294
17295         * (move_insn, set_priorities): Ditto.
17296
17297         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
17298         flag is clear after reload.
17299         (adjust_cost): Change cost only for output dependencies.
17300
17301         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
17302
17303         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
17304
17305         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
17306
17307         * target.h (gcc_target): Add member
17308         `dependencies_evaluation_hook'.
17309
17310         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
17311         macro.
17312         (TARGET_SCHED): Add initiatialization of the new member.
17313
17314         * sched-ebb.c: Include `target.h'.
17315         (schedule_ebb): Call `dependencies_evaluation_hook'.
17316
17317         * sched-rgn.c (schedule_region): Call
17318         `dependencies_evaluation_hook'.
17319
17320         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
17321         New macro.
17322         (ia64_dependencies_evaluation_hook): New function.
17323
17324         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
17325         Describe the new hook.
17326
17327         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
17328
17329         * target.h (gcc_target): Add members
17330         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
17331
17332         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
17333         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
17334         macros.
17335         (TARGET_SCHED): Add initiatialization of the new members.
17336
17337         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
17338         insn scheduling too.
17339         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
17340         initialize `ready_try'.
17341         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
17342         `dfa_new_cycle' says not to do it.
17343
17344         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
17345         bundling.
17346
17347         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
17348
17349         * config/ia64/ia64.c: Include `hashtab.h'.
17350         (ia64_first_cycle_multipass_dfa_lookahead_guard,
17351         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
17352         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
17353         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
17354         bundle_state_eq_p, insert_bundle_state,
17355         initiate_bundle_state_table, finish_bundle_state_table,
17356         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
17357         get_template, get_next_important_insn, bundling): New functions.
17358         (ia64_internal_sched_reorder): Remove it.
17359         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
17360         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
17361         (ia64_safe_itanium_requires_unit0): Remove it.
17362         (group_barrier_needed_p): Place group barrier right before a real
17363         insn.
17364         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
17365         Remove them.
17366         (bundle_name): New variable.
17367         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
17368         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
17369         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
17370         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
17371         temp_dfa_state, prev_cycle_state): New global variables.
17372         (insn_matches_slot, maybe_rotate, finish_last_head,
17373         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
17374         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
17375         find_best_packet, itanium_reorder, dump_current_packet,
17376         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
17377         (sched_data, sched_ready, sched_types): Remove them.
17378         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
17379         `init_insn_group_barriers'.
17380         (ia64_sched_reorder, ia64_sched_reorder2): Call
17381         ia64_dfa_sched_reorder.
17382         (ia64_variable_issue): Rewrite it.
17383         (bundle_state): New structure.
17384         (index_to_bundle_states, bundle_states_num,
17385         allocated_bundle_states_chain, free_bundle_state_chain): New
17386         global variables.
17387         (ia64_sched_finish): Add stop bits and call `bundling' after the
17388         2nd insn scheduling.
17389         (ia64_use_dfa_pipeline_interface): Return zero always.
17390         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
17391         insn scheduling.
17392         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
17393         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
17394         (ia64_reorg): Add bundling insns.
17395
17396         * doc/tm.texi
17397         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
17398         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
17399
17400         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
17401
17402         * config/ia64/ia64.md: Add Itanium1 DFA description.
17403         (itanium_class): Add `nop' and `pre_cycle'.  Add
17404         define_function_unit for `nop'.
17405         (nop): Change attribute `itanium_class'.
17406         (pre_cycle): New define_insn.
17407
17408         * config/ia64/ia64-protos.h (bundling_p): New external variable.
17409         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
17410         ia64_produce_address_p): New function prototypes.
17411
17412         * config/ia64/ia64.c (bundling_p): New global variable.
17413         (ia64_use_dfa_pipeline_interface,
17414         ia64_first_cycle_multipass_dfa_lookahead,
17415         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
17416         functions.
17417         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
17418         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
17419         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
17420         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
17421         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
17422         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
17423         (dfa_pre_cycle_insn): New variable.
17424
17425         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
17426
17427         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
17428         constructions.
17429
17430         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
17431         New function prototypes.
17432
17433         * genattrtab.c (main): Process the new constructions.
17434
17435         * genautomata.c (gen_presence_absence_set,
17436         process_presence_absence_names, process_presence_absence_patterns,
17437         add_presence_absence, check_absence_pattern_sets): Add parameter
17438         `final_p'.
17439         (unit_decl): Add new members `final_presence_list' and
17440         `final_absence_list'.
17441         (unit_pattern_rel_decl): Add new member `final_p'.
17442         (gen_final_presence_set, gen_final_absence_set): New functions.
17443         (process_decls): Use member `final_p'.
17444         (temp_reserv): New global variable.
17445         (reserv_sets_are_intersected): Add processing `final_presence_set'
17446         and `final_absence_set'.
17447         (initiate_states): Allocate `temp_reserv'.
17448         (unit_final_presence_set_table, unit_final_absence_set_table): New
17449         gloabal variables.
17450         (initiate_presence_absence_pattern_sets): Initiate them.
17451         (NDFA_to_DFA): Fix typo.
17452         (output_description): Output `final_presence_set' and
17453         `final_absence_set'.
17454
17455         * doc/md.texi (final_presence_set, final_absence_set): Describe
17456         them.
17457
17458         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
17459
17460         * genautomata.c (transform_3): Process a missing case (nothing on
17461         unit place).
17462
17463         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
17464
17465         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
17466         comments about queried units and the minimization.
17467
17468         * doc/md.texi: Ditto.
17469
17470         * genautomata.c (create_composed_state): Return nonzero if the new
17471         state has been created.
17472         (first_cycle_unit_presence): New function.
17473         (state_is_differed): Add new parameter.  Use the new function.
17474         Take queried units into account.
17475         (partition_equiv_class): Pass additional parameter to
17476         `state_is_differed'.
17477         (merge_states): Process composed states too.
17478         (build_automaton, create_automata, output_min_issue_delay_table,
17479         output_tables, output_statistics): Output more information.
17480         (output_reserved_units_table): Use function
17481         `first_cycle_unit_presence'.
17482         (output_tables): Output table of queried units even if the
17483         minimization is switched on.
17484         (write_automata): Output code for querying units even if the
17485         minimization is switched on.
17486
17487         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
17488
17489         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
17490         syntax of the constructions.
17491
17492         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
17493         extended syntax of the constructions.
17494
17495         * genautomata.c (unit_rel_decl): Rename it to
17496         `unit_pattern_rel_decl'.
17497         (pattern_set_el, pattern_reserv): New structures.
17498         (pattern_set_el_t, pattern_reserv_t): New types.
17499         (gen_presence_absence_set): New function.
17500         (process_presence_absence): Remove it.
17501         (process_presence_absence_names,
17502         process_presence_absence_patterns): New functions.
17503         (get_presence_absence_set): Remove it.
17504         (initiate_presence_absence_sets): Rename it on
17505         `initiate_presence_absence_pattern_sets'.  Use new function
17506         `form_reserv_sets_list'.
17507         (form_reserv_sets_list, check_presence_pattern_sets,
17508         check_absence_pattern_sets, output_pattern_set_el_list): New
17509         functions.
17510         (unit_decl): Change types of members `presence_list' and
17511         `absence_list'.
17512         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
17513         (decl): Change types of members `excl', `presence', and `absence'.
17514         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
17515         at the end of the vector.
17516         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
17517         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
17518         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
17519         (gen_presence_set, gen_absence_set): Use new function
17520         `gen_presence_absence_set'.
17521         (add_presence_absence): Process `pattern_list' instead of
17522         `source_list'.
17523         (process_decls): USe new functions
17524         `process_presence_absence_names' and
17525         `process_presence_absence_patterns'.
17526         (reserv_sets_are_intersected): Use new function
17527         `check_presence_pattern_sets'.
17528         (presence_set, absence_set): Remove them.
17529         (unit_presence_set_table, unit_absence_set_table): New global
17530         variables.
17531         (output_description): Use new function
17532         `output_pattern_set_el_list'.
17533         (generate): Use `initiate_presence_absence_pattern_sets'.
17534
17535         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
17536
17537         * genattr.c (main): Add output of prototype of new interface
17538         function `dfa_clean_insn_cache'.
17539
17540         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
17541         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
17542         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
17543         the generated code.
17544         (write_automata): Call the new function.
17545
17546 2003-01-09  Jan Hubicka  <jh@suse.cz>
17547
17548         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
17549         correctly.
17550
17551 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
17552
17553         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
17554
17555 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
17556
17557         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
17558         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
17559         (CONSTRAINT_LEN): Provide default definition.
17560         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
17561         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
17562         (EXTRA_CONSTRAINT_STR): Likewise.
17563         (REG_CLASS_FROM_CONSTRAINT): Define.
17564         * genoutput.c (check_constraint_len, constraint_len): New functions.
17565         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
17566         constraint / modifier.
17567         (gen_insn): Call check_constraint_len.
17568         * local-alloc.c (block_alloc): Update to use new macros / pass
17569         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
17570         * ra-build.c (handle_asm_insn): Likewise.
17571         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
17572         (constrain_operands, peep2_find_free_register): Likewise.
17573         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
17574         * regmove.c (find_matches): Likewise.
17575         * reload.c (push_secondary_reload, find_reloads): Likewise.
17576         (alternative_allows_memconst): Likewise.
17577         * reload1.c (maybe_fix_stack_asms): Likewise.
17578         (reload_cse_simplify_operands): Likewise.
17579         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
17580         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
17581         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
17582         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
17583         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
17584         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
17585
17586         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
17587
17588 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
17589
17590         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
17591         length.
17592         (*extzv_1_r_h8300hs): Likewise.
17593         (*extzv_1_r_inv_h8300): Likewise.
17594         (*extzv_1_r_inv_h8300hs): Likewise.
17595
17596 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
17597
17598         * config/h8300/h8300.h (PREDICATE_CODES): New.
17599
17600 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
17601
17602         * config/h8300/h8300.md (*addsi3_upper): New.
17603         (*iorsi3_shift): Likewise.
17604         (two splitters): Likewise.
17605         (*addsi3_shift): Likewise.
17606         (two splitters): Likewise.
17607
17608 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
17609
17610         * Makefile.in (optabs.o): Add dependency on basic-block.h.
17611         * basic-block.h (control_flow_insn_p): Fuction was exported.
17612         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
17613         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
17614         notes only when the region is contained in a single basic block.
17615
17616 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
17617
17618         PR inline-asm/8832
17619         * tree.h (expand_asm): New prototype.
17620         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
17621         to do so.
17622         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
17623         down to expand_asm.
17624         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
17625         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
17626         (volatile_refs_p) [ASM_INPUT]: Likewise.
17627         (side_effects_p) [ASM_INPUT]: Likewise.
17628
17629 2003-01-09  Jan Hubicka  <jh@suse.cz>
17630
17631         * i386.md (*mul*): FIx constraints; remove confused comment; fix
17632         athlon_decode attributes
17633         (imul/k8 optimization peep2s): New.
17634
17635         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
17636         * i386.md (type attribute): Add ssecomi.
17637         (unit, memory, prefix attributes): Handle ssecomi.
17638         (cvt?2? patterns): Fix athlon_decode attribute
17639         (comi patterns): Set attribute to ssecomi.
17640
17641         PR target/8343
17642         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
17643
17644 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
17645
17646         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
17647         that match register_operands.
17648         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
17649         register_operand the default case.
17650
17651 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
17652
17653         PR c/8032
17654         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
17655         an empty element, do not advance the pointer to unfilled
17656         fields if there are pending initializers.
17657
17658 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
17659
17660         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
17661         (install-gcc-tooldir, install-cpp, installdirs,
17662         install-common, install-driver, install-info, install-man,
17663         install-headers, install-include-dir, install-headers-tar,
17664         install-headers-cpio, install-headers-cp, install-mkheaders,
17665         install-collect2, uninstall): Prepend $(DESTDIR) to
17666         destination paths in all (un)installation commands.
17667         (install-driver): Rewrite $(LN) commands to support DESTDIR
17668         with "ln" as well as with "ln -s".
17669         (installdirs): Simply use mkinstalldirs.
17670         (install-libgcc, install-multilib): Also pass DESTDIR.
17671         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
17672         installation destination variable ldir.
17673         * config/alpha/t-osf4, config/arm/t-netbsd,
17674         config/ia64/t-hpux, config/mips/t-iris5-6,
17675         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
17676         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
17677         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
17678         in the definition of SHLIB_INSTALL.
17679         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
17680         $(libsubdir) in the installation commands.
17681
17682 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
17683
17684         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
17685         non-optimizing compile.
17686         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
17687         compile.
17688
17689 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
17690
17691         * config/i386/i386.c (ix86_attribute_table): Add new attributes
17692         ms_struct and gcc_struct.
17693         (ix86_handle_struct_attribute): New function.
17694         (ix86_ms_bitfield_layout_p): Update to take new attributes
17695         into account.
17696         * doc/extend.texi: Document new attributes.
17697         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
17698
17699 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
17700
17701         PR optimization/8750
17702         * config/i386/i386.c (ix86_expand_prologue): Don't allow
17703         scheduling pass to move insns across __alloca call.
17704
17705 2003-01-08  Dale Johannesen  <dalej@apple.com>
17706
17707         * config/rs6000/rs6000.md:  Replace *store_multiple_string
17708         with *stmsi[3-8].
17709
17710 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
17711
17712         PR target/9210
17713         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
17714         Set SYMBOL_REF_FLAG on local data sym_ref.
17715
17716 2003-01-08  Dale Johannesen  <dalej@apple.com>
17717
17718         * function.c (assign_parms):  Don't set pretend_args_size if
17719           REG_PARM_STACK_SPACE.
17720           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
17721           pretend_args_size.
17722
17723 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
17724
17725         * gcc.hlp: Delete.
17726
17727 2003-01-09  Jan Hubicka  <jh@suse.cz>
17728
17729         * i386.c  (ix86_expand_int_addcc): Fix thinko.
17730
17731 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
17732
17733         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
17734         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
17735         as hook_bool_tree_hwi_hwi_tree_true.
17736         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
17737         (rs6000_emit_epilogue): Same.
17738         (rs6000_output_mi_thunk): Re-implement as RTL.
17739         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
17740         xcoffout_declare_function if any debugging enabled.
17741
17742 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
17743
17744         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
17745         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
17746         * config/mips/mips.h (enum processor_type): Rename
17747         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
17748         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
17749         Add PROCESSOR_M4K.
17750         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
17751         (ISA_MIPS32R2): New define.
17752         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
17753         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
17754         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
17755         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
17756         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
17757         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
17758         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
17759         compiling MIPS16 code.
17760         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
17761         comment.
17762         (ISA_HAS_SEB_SEH): New define.
17763         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
17764         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
17765         processor_type value renaming.  Add support for MIPS32R2.
17766         Clean up comments, and move "sb1" entry with other MIPS64 CPU
17767         entries.
17768         (override_options): Reimplement -mipsN option handling so that
17769         it will work correctly for -mips32r2.  Avoid branch-likely
17770         instructions on MIPS32R2.
17771         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
17772         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
17773         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
17774         (extendhisi2_hw, extendqisi2_hw): New.
17775         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
17776         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
17777         MIPS32R2, and MIPS64.
17778         (LINK_SPEC): Pass -mips32r2 to linker.
17779         * config/mips/t-isa3264: Built -mips32r2 multilibs.
17780         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
17781         for mips32r2 in the -march description.  Alphabetically sort
17782         CPU names in the -march description.  Add long-missed -mips32
17783         and -mips64 to MIPS option summary.
17784
17785         * config.gcc: Update copyright years to include 2003.
17786         * config/mips/mips.c: Likewise.
17787         * config/mips/mips.h: Likewise.
17788         * config/mips/mips.md: Likewise.
17789         * config/mips/netbsd.h: Likewise.
17790         * doc/invoke.texi: Likewise.
17791
17792 2003-01-08  Andreas Schwab  <schwab@suse.de>
17793
17794         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
17795         variable.
17796         * configure: Regenerated.
17797
17798 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
17799
17800         * config/h8300/h8300.c (output_logical_op): Replace byte/word
17801         extraction of det with b0, b1, w0, w2, etc.
17802         (compute_logical_op_length): Likewise.
17803         (compute_logical_op_cc): Likewise.
17804
17805 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
17806
17807         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
17808         HIGH on all variants.
17809
17810 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
17811
17812         * Makefile.in (PARTITION_H): New.
17813         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
17814         * basic-block.h: Include hard-reg-set.h.
17815
17816 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
17817
17818         * arm.h (ENABLE_XF_PATTERNS): Delete.
17819         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
17820         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
17821         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
17822         (cmpxf_trap): Delete.
17823         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
17824
17825 2003-01-08  Jan Hubicka  <jh@suse.cz>
17826
17827         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
17828         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
17829         (add??cc): New expanders.
17830         * i386.c (expand_int_addcc): New function.
17831         * i386-protos.h (expand_int_addcc): Declare.
17832
17833         * alias.c (memory_modified_1): New static function.
17834         (memory_modified): New static varaible.
17835         (memory_modified_in_insn_p): New global function.
17836         * rtl.h (memory_modified_in_insn_p): Declare.
17837         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
17838         references.
17839
17840         * expr.h (emit_conditional_add): Declare.
17841
17842 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
17843
17844         PR other/8947
17845         * doc/invoke.texi (-malign-double): Explain that the option breaks
17846         binary compatibility.
17847
17848 2003-01-08  Andreas Schwab  <schwab@suse.de>
17849
17850         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
17851         should come from the generic *-*-linux* entry.
17852
17853 2003-01-07  Jan Hubicka  <jh@suse.cz>
17854
17855         * cselib.c (cselib_current_insn_in_libcall): New static variable.
17856         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
17857         we are inside libcall.
17858         * cselib.h (elt_loc_list): Add in_libcall.
17859         * gcse.c (do_local_cprop): Do not copy propagate using insns
17860         in libcalls.
17861
17862 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
17863
17864         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
17865         not normally affect to issue rate.
17866
17867 2003-01-07  Jan Hubicka  <jh@suse.cz>
17868
17869         * genopinit.c (optabs): Add addc_optab.
17870         * ifcvt.c (noce_try_store_flag): Rename to ...
17871         (noce_try_addcc): ... this one; handle generic conditional increment.
17872         (noce_process_if_block): Update noce_try_addcc call.
17873         * optabs.c (emit_conditional_add): New.
17874         (init_obtabs): Initialize addc_optab.
17875         * optabs.h (optab_index): Add OTI_addcc.
17876         (addcc_optab): New macro.
17877         * md.texi: Document addMcc
17878
17879         PR target/8322
17880         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
17881         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
17882         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
17883
17884         * reload1.c (delete_output_reload): Avoid repeated attempts
17885         to delete insn.
17886
17887 2003-01-07  Andreas Schwab  <schwab@suse.de>
17888
17889         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
17890         Move --enable-initfini-array check ...
17891         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
17892         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
17893         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
17894         * configure: Rebuild.
17895
17896 2003-01-07  Richard Henderson  <rth@redhat.com>
17897
17898         * alias.c (find_base_value): Only use new_reg_base_value shortcut
17899         if the register is set once.
17900
17901 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
17902
17903         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
17904         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
17905         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
17906
17907 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
17908             Sunil Davasam  <sunil.k.davasam@intel.com>
17909
17910         PR libstdc++/9076
17911         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
17912         DW_CFA_same_value, read next and ignore.
17913
17914 2003-01-07  Richard Henderson  <rth@redhat.com>
17915
17916         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
17917
17918 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
17919
17920         * cfg.c: Include alloc-pool.h
17921         (edge_pool): New pool.
17922         (bb_pool): New pool.
17923         (first_deleted_edge): Remove.
17924         (first_deleted_block): Remove.
17925         (init_flow): Alloc/free the pools.
17926         (free_edge): Use pools.
17927         (alloc_block): Ditto.
17928         (expunge_block): Ditto.
17929         (cached_make_edge): Ditto.
17930
17931         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
17932
17933 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
17934
17935         * et-forest.c: Include alloc-pool.h.
17936         (struct et_forest): Add node_pool and occur_pool.
17937         (et_forest_create): Create the new pools.
17938         (et_forest_delete): Delete them.
17939         (et_forest_add_node): Allocate and free using pools.
17940         (et_forest_add_edge): Ditto.
17941         (et_forest_remove_node): Ditto.
17942         (et_forest_remove_edge): Ditto.
17943
17944         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
17945
17946 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
17947
17948         * config/h8300/h8300.c (output_logical_op): Simplify and
17949         optimize the handling of SImode.
17950         * config/h8300/h8300.c (compute_logical_op_length): Update
17951         accordingly.
17952         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
17953
17954 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
17955
17956         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
17957         big-endian correction to indirect arguments too.
17958
17959 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
17960
17961         Segher Boessenkool  <segher@koffie.nl>
17962
17963         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
17964         (alt_reg_names): Ditto, fix formatting.
17965         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
17966
17967 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
17968
17969         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
17970         (output_logical_op): Constify intval and det.
17971         (compute_logical_length): Likewise.
17972         (compute_logical_cc): Likewise.
17973         (output_a_shift): Constify mask.
17974         (h8300_encode_label): Constify len.
17975
17976 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
17977
17978         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
17979         (h8300_expand_epilogue): Likewise.
17980
17981 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
17982
17983         Segher Boessenkool  <segher@koffie.nl>
17984
17985         * config/rs6000/altivec.md: Remove spaces from assembler
17986         instruction argument lists.
17987
17988 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17989
17990         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
17991         c4x_assembler_function_p.
17992         (c4x_null_epilogue_p): Complement return value, all uses updated.
17993         (c4x_insert_attributes): Add naked.
17994         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
17995         * doc/extend.texi: Update C4x function attributes.
17996
17997 2003-01-06  Richard Henderson  <rth@redhat.com>
17998
17999         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
18000         properly when changing "local-ness".
18001         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
18002
18003 2003-01-06  Dale Johannesen  <dalej@apple.com>
18004
18005         * config/darwin-protos.h:  Add prototypes for new section functions.
18006
18007 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
18008
18009         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
18010         to EABI.
18011
18012 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
18013
18014         * hwint.h: If the current compiler has no 64-bit type at all,
18015         make HOST_WIDEST_INT 32 bits.
18016
18017 2003-01-06  Eric Christopher  <echristo@redhat.com>
18018
18019         * config/mips/mips.md (movdf_internal2): Fix constraints.
18020
18021 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
18022
18023         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
18024
18025 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
18026
18027         * config/mips/mips.md (leadi): Use dla rather than la.
18028
18029 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
18030
18031         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
18032         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
18033
18034 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
18035
18036         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
18037         redefinition.
18038
18039 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
18040
18041         * config/h8300/h8300.md (*extzv_8_23): New.
18042
18043 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18044
18045         * pa64-hpux.h (JCR_SECTION_NAME): Define.
18046         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
18047         USE_EH_FRAME_REGISTRY when defining.
18048
18049 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
18050
18051         * config/h8300/h8300.c (output_a_shift): Do not output a
18052         variable shift.
18053         * config/h8300/h8300.md (two splitters): New.
18054
18055 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
18056
18057         * config/mips/mips.md: Disable the movstrsi define_split.
18058
18059 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18060
18061         * alloc-pool.c: Don't include "libiberty.h".
18062         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
18063         * convert.c (convert_to_real): Hide unused variable.
18064
18065 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18066
18067         * Makefile.in (gtyp-gen.h): Const-ify.
18068         * gcov-dump.c (tag_table): Likewise.
18069
18070 2003-01-04  Bruce Korb  <bkorb@gnu.org>
18071
18072         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
18073         of *both* the file name and the fix name.
18074
18075 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
18076
18077         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
18078         collect2.
18079         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
18080         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
18081         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
18082         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
18083         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
18084         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
18085         elfos.h.
18086         (EH_FRAME_IN_DATA_SECTION): Delete define.
18087         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
18088         (STARTFILE_SPEC): Use crtbegin.o.
18089         (ENDFILE_SPEC): Use crtend.o.
18090         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
18091         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
18092         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
18093         DTOR_LIST_BEGIN): Define.
18094         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
18095         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
18096         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
18097
18098 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
18099
18100         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
18101         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
18102         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
18103         Cleanup handling of replacement text.
18104         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
18105
18106 2003-01-04  Bruce Korb  <bkorb@gnu.org>
18107
18108         * fixinc/tests/base/math.h: removed obsolete results
18109         * fixinc/tests/base/stdlib.h: ditto
18110         * fixinc/tests/base/sys/param.h: ditto
18111         * fixinc/tests/base/sys/stat.h: ditto
18112         * fixinc/tests/base/time.h: ditto
18113         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
18114         * fixinc/tests/base/sys/byteorder.h: ditto
18115         * fixinc/inclhack.def: Remove superfluous backslashes
18116
18117 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
18118
18119         * config/h8300/h8300-protos.h: Add prototypes for
18120         the new functions defined below.
18121         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
18122         define.
18123         (dosize): Emit RTL instead of assembly code.
18124         (push): Likewise.
18125         (pop): Likewise.
18126         (h8300_output_function_prologue): Remove.
18127         (h8300_expand_prologue): New.
18128         (h8300_expand_epilogue): New.
18129         (h8300_output_function_epilogue): Do only the reset of
18130         pragma_saveall.
18131         * config/h8300/h8300.md (push_h8300): New.
18132         (push_h8300hs): Likewise.
18133         (pop_h8300): Likewise.
18134         (pop_h8300hs): Likewise.
18135         (*stm_h8300s_2): Change the name to stm_h8300s_2.
18136         (*stm_h8300s_3): Change the name to stm_h8300s_3.
18137         (*stm_h8300s_4): Change the name to stm_h8300s_4.
18138         (*ldm_h8300s_2): New.
18139         (*ldm_h8300s_3): Likewise.
18140         (*ldm_h8300s_4): Likewise.
18141         (return): Likewise.
18142         (*return_1): Likewise.
18143         (prologue): Likewise.
18144         (epilogue): Likewise.
18145         (monitor_prologue): Likewise.
18146
18147 2003-01-03  Dale Johannesen  <dalej@apple.com>
18148
18149         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
18150           machopic_picsymbol_stub1.
18151           (EXTRA_SECTION_FUNCTIONS):  Ditto.
18152         * rs6000/rs6000.c:  Update copyright.
18153           (machopic_output_stub):  Use them.  Remove an insn from stub code.
18154
18155 2003-01-02  Jason Merrill  <jason@redhat.com>
18156
18157         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
18158
18159         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
18160         static/external decls.
18161
18162         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
18163         outermost scope.
18164         * c-decl.c (c_make_fname_decl): Push the decls there, too.
18165
18166 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
18167
18168         * config/h8300/h8300-protos.h: Add a prototype for
18169         h8300_current_function_interrupt_function_p.
18170         * config/h8300/h8300.c (interrupt_handler): Remove.
18171         (os_task): Likewise.
18172         (monitor): Likewise.
18173         (pragma_interrupt): New.
18174         (WORD_REG_USED): Use
18175         h8300_current_function_interrupt_function_p.
18176         (dosize): Likewise.
18177         (h8300_output_function_prologue): Likewise.
18178         Do not set interrupt_handler, os_task, monitor.
18179         (h8300_output_function_prologue): Use
18180         h8300_current_function_interrupt_function_p.
18181         Do not set interrupt_handler, os_task, monitor.
18182         (h8300_current_function_interrupt_function_p): New.
18183         (h8300_pr_interrupt): Set pragma_interrupt.
18184         (h8300_insert_attributes): Reset pragma_interrupt.
18185
18186 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18187
18188         * doc/install.texi (Configuration): Fix markup for reference to
18189         gcc/config.gcc.
18190
18191 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
18192
18193         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
18194         (*iorhi3_two_qi): Likewise.
18195         (*iorsi3_zexthi): Likewise.
18196         (*xorhi3_zextqi): Likewise.
18197         (*xorsi3_zexthi): Likewise.
18198         (*xorsi3_zextqi): Likewise.
18199
18200 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
18201
18202         * config/h8300/h8300.c (stack_pointer_operand): New.
18203         (const_int_gt_2_operand): Likewise.
18204         (const_int_ge_8_operand): Likewise.
18205         * config/h8300/h8300.md (a splitter): Likewise.
18206         (a peephole2): Likewise.
18207         * config/h8300/h8300-protos.h: Add prototypes for the new
18208         functions above.
18209
18210 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
18211
18212         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
18213         objc/objc-act.h: Fix copyright years.
18214
18215 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
18216
18217         * doc/passes.texi: Fix documentation for -fssa-ccp
18218
18219 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
18220
18221         * gccbug.in: Update for new categories.
18222
18223 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
18224
18225         * config/h8300/h8300.md: Reorder some patterns.
18226
18227 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
18228
18229         * config/h8300/h8300.c (output_logical_op): Fix a warning.
18230
18231 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
18232
18233         * config/darwin-protos.h, config/c4x/c4x-protos.h,
18234         config/cris/cris-protos.h, config/i370/i370-protos.h,
18235         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
18236         config/v850/v850-protos.h: Use struct, and don't conditionally
18237         compile on GCC_C_PRAGMA_H.
18238
18239 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
18240
18241         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
18242         * config/h8300/h8300-protos.h: Likewise.
18243         * config/sh/sh-protos.h: Likewise.
18244
18245 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
18246
18247         * config/arm/arm-protos.h: Use struct cpp_reader instead of
18248         cpp_reader.
18249         * config/h8300/h8300-protos.h: Likewise.
18250         * config/sh/sh-protos.h: Likewise.
18251
18252 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
18253
18254         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
18255         arm_pr_long_calls_off): Use struct.
18256         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
18257         : Similarly.
18258         Don't include cpplib.h.
18259         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
18260         sh_pr_nosave_low_regs): Similarly.
18261
18262 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
18263
18264         * config/h8300/h8300.c: Include cpplib.h.
18265
18266 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
18267
18268         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
18269           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
18270           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
18271           "GCC" in the copyright header.
18272
18273 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
18274
18275         * c-pragma.c (c_register_pragma): New.
18276         (init_pragma): Use it.
18277         * c-pragma.h (cpp_register_pragma): Don't declare.
18278         (c_register_pragma): New.
18279         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
18280         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
18281         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
18282         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
18283         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
18284         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
18285         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
18286         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
18287         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
18288         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
18289         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
18290         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
18291
18292 See ChangeLog.8 for earlier changes.