OSDN Git Service

* config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-11-04  Richard Sandiford  <rsandifo@redhat.com>
2
3         * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
4         (mips_delegitimize_address): Delete.
5         (mips_gotoff_global, mips_load_got_page): Declare.
6         (mips_load_got_global, mips_rewrite_small_data): Declare.
7
8         * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
9         (DANGEROUS_FOR_LA25_P): Use global_got_operand.
10         (PREDICATE_CODES): Add global_got_operand, local_got_operand and
11         small_data_pattern.  Remove CONST from const_arith_operand's entry.
12
13         * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
14         (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
15         (mips_constant_type): Delete.
16         (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
17         SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
18         (NUM_SYMBOL_TYPES): New macro.
19         (mips_address_type): Remove ADDRESS_INVALID.
20         (machine_function): Add has_gp_insn_p.
21         (mips_constant_info): Delete.
22         (mips_address_info): Add the address type as an extra field.  Replace
23         the c field with symbol_type.
24         (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
25         (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
26         (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
27         (mips_split_const, mips_symbolic_constant_p): New functions.
28         (mips_symbolic_address_p): Take the symbol type and mode as arguments.
29         (mips_classify_address): Return true if the address is valid, storing
30         its type in INFO.  Use mips_symbolic_constant_p.  Use mips_lo_relocs[]
31         to test whether a LO_SUM address is allowed.
32         (mips_symbol_insns): Return 0 for general mips16 symbols.
33         Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
34         Handle the new SYMBOL_GOTOFF_*s.
35         (mips_address_insns): Update call to mips_classify_address.
36         (mips_const_insns): Be more fussy about HIGH constants.  Remove use
37         of mips_classify_constant.  Be more accurate about CONSTs.
38         (mips_global_pic_constant_p): Delete.
39         (const_arith_operand): Only accept CONST_INTs.
40         (call_insn_operand): Remove call to mips_classify_constant.
41         Let mips_symbolic_constant_p check for invalid offsets.
42         (move_operand): Check for general_operands first.  Only accept symbolic
43         constants if they satisfy mips_symbolic_constant_p and cannot be split.
44         (symbolic_constant): Use mips_symbolic_constant_p.
45         (global_got_operand, local_got_operand): New predicates.
46         (stack_operand): Update call to mips_classify_address.
47         (mips_legitimate_address_p): Likewise.
48         (mips_reloc, mips_lui_reloc): Delete.
49         (mips_force_temporary): Only use the given temporary if no_new_pseudos.
50         Use emit_move_insn.
51         (mips_split_symbol, mips_unspec_address): New functions.
52         (mips_unspec_offset_high): New function.
53         (mips_load_got): Replace reloc argument with a symbol_type.
54         Use mips_unspec_address to create the address and put it in a
55         LO_SUM with the base register.
56         (mips_load_got16, mips_load_got32): Delete.
57         (mips_emit_high, mips_legitimize_symbol): Delete.
58         (mips_gotoff_global): New function.
59         (mips_load_got_page, mips_load_got_global): New functions.
60         (mips_legitimize_symbol): Inline handling of LO_SUM splits.
61         (mips_legitimize_const_move): Likewise.  Remove HIGH handling.
62         Inline code to handle constants plus invalid offsets.  Use
63         mips_split_symbol to legitimize constant pool addresses.
64         (mips_delegitimize_address): Delete.
65         (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
66         a cost of 1 insn.  Give the rest a cost of CONSTANT_POOL_ADDRESS.
67         (mips_subword): Pass memrefs through mips_rewrite_small_data.
68         (mips_output_move): Remove use of mips_classify_constant.
69         (mips_expand_call): Use mips_unspec_offset_high to calculate the
70         high part of the GOT address for calls to global functions.
71         (override_options): Initialize mips_split_p[], mips_lo_relocs[]
72         and mips_hi_relocs[].
73         (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
74         Remove use of mips_classify_constant.
75         (mips_reloc_string): Delete.
76         (print_operand_reloc): New function.
77         (print_operand_address): Update call to mips_classify_address.
78         (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
79         (small_data_pattern): New predicate.
80         (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
81         (mips_function_has_gp_insn): New function.
82         (mips_global_pointer): Use it.
83         (mips_gp_insn): Delete.
84         (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
85         single loadgp pattern to initialize $gp.  Pass it the offset of _gp
86         from the start of the current function.
87         (mips16_gp_pseudo_reg): Revert last patch.
88
89         * config/mips/mips.md (RELOC_*): Delete.
90         (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
91         (got): New insn attribute.
92         (type): Set to "load" if got == load.
93         (length): Set to 4 if got == load, 8 if got == xgot_high.
94         (lui[sd]i): Delete.
95         (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
96         (*got_disp[sd]i, *got_page[sd]i): Likewise.
97         (*low[sd]i): Change constraints to "d".  Add a new define_split to
98         rewrite small data constants into LO_SUMs.
99         (loadgp): New insns.
100
101 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
102
103         * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
104
105 2003-11-04  DJ Delorie  <dj@redhat.com>
106
107         * config/v850/v850.md (mulhisi3): Expand the const_int case
108         separately to avoid trying to sign extend the const.
109
110 2003-11-04  Richard Sandiford  <rsandifo@redhat.com>
111
112         * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
113         addresses to be shared.
114         (force_const_mem): Return a copy of the pool entry.
115
116 2003-11-03  Andreas Jaeger  <aj@suse.de>
117
118         * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
119
120 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
121
122         * Makefile.in (cpp.dvi): New target split from cpp.info.
123         (gcc.dvi):  New target split from gcc.info.
124         (gccint.dvi): New target split from gccint.info.
125         (cppinternals.dvi): New target split from cppinternals.info
126         (gccinstall.info): New specific rule.
127         (gccinstall.dvi): Likewise.
128         (dvi): Move targets to $(docobjdir).
129         ($(docobjdir)/%.dvi): New implicit rule.
130
131 2003-11-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
132
133         * doc/gty.texi (tag, desc): Say more about role of desc values in
134         selecting between tags.
135
136 2003-11-03  Alexander Kabaev  <ak03@gte.com>
137
138         * real.c (encode_ieee_single): Ensure proper promotion.
139
140 2003-11-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
141
142         * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
143         and Andrew Pinski.
144
145 2003-11-03  Syd Polk  <spolk@apple.com>
146
147         * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
148         marketing names to the list of supported processors.
149         * config/rs6000/rs6000.h: Ditto.
150         * doc/invoke.texi: Ditto.
151         * config.gcc: Ditto.
152
153 2003-11-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
154
155         * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
156         Merge two substitutions.
157         * fixinc/fixincl.x: Regenerate.
158         Fixes PR bootstrap/12666.
159
160 2003-11-03  Joseph S. Myers  <jsm@polyomino.org.uk>
161
162         * doc/install-old.texi: Remove VMS documentation.
163
164 2003-11-03  Jan Hubicka  <jh@suse.cz>
165
166         * i386.c (override_options):  Remove hack enabling 128bit long double
167         commited by accident.
168
169 2003-11-02  Per Bothner  <per@bothner.com>
170
171         * c-opts.c (needValue):  Do cpp_find_main_file before processing
172         any imacros flags, so pfile->main_file is set for the latter.
173
174 2003-11-03  Andreas Jaeger  <aj@suse.de>
175             Zack Weinberg  <zack@codesourcery.com>
176
177         * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
178         (SYSCALLS.c.X-warn): Suppress warnings.
179
180 2003-11-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
181
182         PR optimization/12845
183         * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
184
185 2003-11-02  Zack Weinberg  <zack@codesourcery.com>
186
187         * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
188         * config/i386/i386.c (print_reg): Abort on a virtual register
189         if code != -1; not if file == asm_out_file.
190         * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
191         (DEBUG_PRINT_REG): Delete, unused.
192
193 2003-11-02  Andreas Schwab  <schwab@suse.de>
194
195         * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
196         empty to avoid conflict with the definition from configure.
197
198 2003-11-02  Roger Sayle  <roger@eyesopen.com>
199
200         PR optimization/10817
201         * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
202         (noce_try_move): New function to optimize an if-the-else into an
203         unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
204         (noce_process_if_block): Attempt simplification with noce_try_move.
205
206         * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
207         and improvements to the optimizations of IF_THEN_ELSE expressions.
208         (simplify_subreg): Silence signed/unsigned comparison warning.
209
210 2003-11-02  Richard Sandiford  <rsandifo@redhat.com>
211
212         * Makefile.in (targhooks.o, reload.o): Update dependencies.
213         (GTFILES): Add targhooks.c.
214         (gt-targhooks.h): New rule; depend on s-gtype.
215         * target.h (direct_pool_load_p): New hook.
216         * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
217         (TARGET_INITIALIZER): Include it.
218         * targhooks.h (default_direct_pool_load_p): Declare.
219         (hook_bool_machine_mode_true): Declare.
220         * targhooks.c: Include insn-config.h, recog.h, ggc.h and
221         gt-targhooks.h.
222         (pool_symbol): New variable.
223         (default_direct_pool_load_p): New function.
224         (hook_bool_machine_mode_true): New function.
225         * reload.c: Include target.h.
226         (find_reloads): If an alternative will force a constant into memory,
227         count an extra reload if constant pool symbols are not valid
228         addresses.  If an alternative uses memory to move values between
229         registers, count the move as two reloads rather than one.
230         * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
231         * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
232
233 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
234
235         PR optimization/12799
236         * postreload.c (reload_cse_move2add): Generate the add2
237         patterns manually.
238
239 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
240
241         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
242         Return 0 for all complex modes whose size is lesser or equal to
243         a word.  Add a ??? comment for the condition used with 16-byte
244         aligned modes.
245
246 2003-11-01  Kelley Cook  <kcook@gcc.gnu.org>
247
248         * .cvsignore: Remove c-parse* and tradcif.c.
249         * objc/.cvsignore: Delete.
250
251 2003-11-01  Roger Sayle  <roger@eyesopen.com>
252
253         * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
254         of NULL.
255
256 2003-11-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
257
258         * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
259
260         * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
261
262         * collect2.c (scan_libraries): Fix typos.
263
264         PR preprocessor/12847
265         * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
266         cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
267         c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
268         DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
269         "CPP_".
270
271 2003-11-01  Fariborz Jahanian  <fjahanian@apple.com>
272
273         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
274         no_units calculation.
275
276 2003-11-01  Andreas Jaeger  <aj@suse.de>
277
278         * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
279         enumeration list.
280
281 2003-11-01  Andreas Schwab  <schwab@suse.de>
282
283         * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
284         prototypes.
285         (SBSS_SECTION_FUNCTION): Likewise.
286
287 2003-11-01  Andreas Jaeger  <aj@suse.de>
288
289         * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
290
291 2003-11-01  Andreas Tobler  <a.tobler@schweiz.ch>
292
293         * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
294         prototypes.
295
296 2003-11-01  Andreas Jaeger  <aj@suse.de>
297
298         * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
299         (uw_frame_state_for): Constify variables.
300         (extract_cie_info): Constify first argument.
301
302         * unwind-dw2-fde-darwin.c: Adjust prototype of
303         _Unwind_Find_registered_FDE for recent changes.
304         (examine_objects): Constify return value and local variable result.
305         (_Unwind_Find_FDE): Constify return value and local variable ret.
306
307 2003-10-31  Per Bothner  <pbothner@apple.com>
308
309         * c-opts.c (finish_options):  Change to returns boolean - false iff
310         the call to cpp_find_main_file fails.
311         (c_common_init):  Skip preprocess_file if finish_options failed.
312         (c_common_parse_file):  Break if finish_options failed.
313         Fixes PR preprocessor/12545.
314
315 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
316
317         * aclocal.m4: Blacklist ultrix* for mmap file.
318         * configure: Rebuilt.
319
320         * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
321         reg_parm_stack_space.
322         * toplev.c (default_get_pch_validity): Fix warning.
323
324         * vax.c: Include toplev.h.
325         (vax_init_libfuncs): Fix typo (umod).
326         * vax.h (ASM_COMMENT_START): Define.
327         (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
328
329 2003-10-31  Roger Sayle  <roger@eyesopen.com>
330
331         PR middle-end/11968
332         * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
333         confusing comment; distributivity isn't handled in expand_expr.
334         * fold-const.c (extract_muldiv_1 <PLUS_EXPR>):  Allow overflow
335         in distributivity, if wrap-around semantics are specified with
336         -fwrapv.
337
338 2003-11-01  Alan Modra  <amodra@bigpond.net.au>
339
340         PR 12315
341         * final.c (profile_function): Allow for NULL svrtx.
342
343 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
344
345         * pa.c (pa_select_section): Use new style declaration.
346         * som.h (readonly_data): Likewise.
347
348 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
349
350         * config/rs6000/rs6000.c: Update to C90 prototypes.
351
352 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
353
354         PR target/7513
355         * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
356         code.
357
358 2003-10-31  Andreas Jaeger  <aj@suse.de>,
359             Zack Weinberg  <zack@codesourcery.com>
360
361
362         * crtstuff.c (__register_frame_info, __register_frame_info_bases)
363         (__deregister_frame_info, __deregister_frame_info_bases):
364         Constify void * argument.
365         * unwind-dw2-fde.h (struct fde_vector):
366         Constify 'orig_data' and 'array' fields.
367         (__register_frame_info, __register_frame_info_bases)
368         (__deregister_frame_info, __deregister_frame_info_bases):
369         Constify void * argument.
370         (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
371         return values, and casts of type fde *, struct dwarf_fde *,
372         and struct dwarf_cie *.
373         * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
374         (__deregister_frame_info, __deregister_frame_info_bases):
375         Constify void * argument.
376         (get_cie_encoding, ): Constify struct dwarf_cie * argument.
377         (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
378         (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
379         fde_split, SWAP, frame_downheap, frame_heapsort)
380         (classify_object_over_fdes, add_fdes, linear_search_fdes,
381         binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
382         binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
383         Constify arguments, local variables, return values, and casts
384         of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
385         Use const pointer types in sizeof expressions, for clarity.
386         * unwind-dw2-fde-glibc.c
387         (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
388         (struct unw_eh_callback_data): Constify 'ret' field.
389
390 2003-10-31  Fariborz Jahanian  <fjahanian@apple.com>
391             David Edelsohn  <edelsohn@gnu.org>
392
393         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
394         (function_arg): Call it.
395         (rs6000_function_value): Widen integral return value to mode based
396         on TARGET_32BIT, not word_mode.
397         * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
398         (UNITS_PER_ARG): New.
399         (RS6000_ARG_SIZE): Use it.
400
401 2003-10-31  Gerald Pfeifer  <gerald@pfeifer.com>
402
403         * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
404         and gengtype-yacc.h.
405
406 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
407
408         PR optimization/8896
409         * postreload.c (reload_combine): Check that REGY doesn't die in an
410         insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
411
412 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
413
414         PR/10239
415         * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
416
417 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
418
419         PR/11640
420         * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
421         immediatelly before BARRIER.
422
423 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
424
425         * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
426
427 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
428
429         PR target/11271
430         * reload.c (find_reloads_address): Handle any register in
431         (PLUS (PLUS (REG) (REG)) (CONST_INT).
432
433 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
434
435         * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
436         ENABLE_GC_CHECKING not in GGC_POISON.
437
438 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
439
440         PR bootstrap/9863
441         * configure.in: Bail out if awk is missing.
442         * configure: Regenerate.
443
444         PR ada/12761
445         * Makefile.in: Move default definitions of X_ADA_CFLAGS,
446         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
447
448 2003-10-30  Richard Henderson  <rth@redhat.com>
449
450         * c-objc-common.c (c_tree_printer): Handle types correctly.
451         Factor code a bit.
452
453 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
454
455         * value-prof.c, web.c: Update to C90.
456
457 2003-10-30  Eric Christopher  <echristo@redhat.com>
458
459         * function.c (purge_addressof_1): Add case for REG_RETVAL
460         notes when modes are unequal.
461
462 2003-10-31  Jan Hubicka  <jh@suse.cz>
463
464         * i386-modes.def: Add XFmode format adjustment.
465
466 2003-10-30  Jan Hubicka  <jh@suse.cz>
467
468         * real.c (encode_ieee_extended): Back out previous patch.
469
470 2003-10-30  Jan Hubicka  <jh@suse.cz>
471
472         * real.c (encode_ieee_extended): Initialize whole array.
473         * reg-stack.c (move_for_stack_reg0: Use always XFmode.
474         * i386-modes.def: Change definitions of TFmode and XFmode.
475         * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
476         code.
477         (construct_container): Allow constructing of TFmode integer containers.
478         (ix86_return_in_memory):  XFmode is not returned in memory.
479         (init_ext_80387_constants): Always use XFmode.
480         (print_operand): Likewise.
481         (ix86_prepare_fp_compare_regs): Likewise.
482         (split_to_parts): Deal with TFmode.
483         (split_long_move): Simplify.
484         (ix86_init_mmx_sse_builtins): Add __float80, __float128.
485         (ix86_memory_move_cost): Do not confuse TFmode.
486         * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
487         (IS_STACK_MODE): TFmode is not stack mode.
488         (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
489         (VALID_SSE_REG_MODE): Allow TFmode.
490         (VALID_FP_MODE_P): Disallow TFmode.
491         (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
492         * i386.md (TFmode patterns): Kill.
493         (movtf, motf_rex64): New patterns.
494
495 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
496
497         * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
498
499 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
500
501         * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
502         (mov_lwr, mov_swl, mov_swr): Likewise.
503         (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
504
505 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
506
507         * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
508
509 2003-10-30  Richard Henderson  <rth@redhat.com>
510
511         * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
512         test for irix6 rather than preprocessor test.
513
514 2003-10-30  Richard Henderson  <rth@redhat.com>
515
516         * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
517
518 2003-10-30  Ulrich Weigand  <uweigand@de.ibm.com>
519
520         * config/s390/s390.c (struct machine_function): Use save_return_addr_p
521         as a general flag that the return address register needs to be saved,
522         not necessarily because of __builtin_return_addr (0).
523         (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
524         remove special handling of zSeries machines.
525         (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
526         register as a regular register on zSeries machines.
527         (s390_reorg): Adjust calls to s390_split_branches and
528         s390_optimize_prolog.
529         (s390_frame_info): On zSeries machines, do not assume the return
530         register is always used.  Update regs_ever_live with current data
531         for the special registers.
532         (s390_emit_epilogue): Use save_return_addr_p to determine whether
533         the return register was saved.
534         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
535         RETURN_REGNUM fixed on zSeries machines.
536         (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
537         * config/s390/s390.md ("*doloop_si"): Handle branch overflow
538         via ahi-jgne pair on zSeries machines.
539         ("*doloop_di"): Likewise.
540         ("*doloop_di_long"): Remove.
541
542 2003-10-30  Richard Earnshaw  <rearnsha@arm.com>
543
544         * arm.c (arm_override_options): Revert change of arm_constant_limit
545         when optimizing for size.
546
547 2003-10-29  Richard Henderson  <rth@redhat.com>
548
549         * fold-const.c (fold_single_bit_test): Convert the input to the
550         operational intermediate type.
551
552 2003-10-29  Richard Henderson  <rth@redhat.com>
553
554         * builtins.c (std_build_builtin_va_list): New.
555         * expr.h (std_build_builtin_va_list): Declare.
556         * defaults.h (BUILD_VA_LIST_TYPE): New.
557         * system.h (BUILD_VA_LIST_TYPE): Poison.
558         * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
559         * target.h (struct gcc_target): Add build_builtin_va_list.
560         * tree.c (build_common_tree_nodes_2): Use it.
561
562         * config/alpha/alpha-protos.h, config/alpha/alpha.c,
563         config/alpha/alpha.h, config/alpha/unicosmk.h,
564         config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
565         config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
566         config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
567         config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
568         config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
569         config/mips/mips.h, config/rs6000/rs6000-protos.h,
570         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
571         config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
572         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
573         config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
574         config/xtensa/xtensa.h: Rename foo_build_va_list to
575         foo_build_builtin_va_list; make it static.  Define
576         TARGET_BUILD_BUILTIN_VA_LIST.  Remove BUILD_VA_LIST_TYPE.
577         Update protos.
578
579         * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
580         * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
581
582 2003-10-29  James E Wilson  <wilson@specifixinc.com>
583
584         * recog.c (asm_operand_ok): Add missing break after case 'X'.
585         Change if statements to else if statements in default case.
586         (extract_constrain_insn_cached): Fix misspelling of constrain_operands
587         in comment.
588         (constrain_operands_cached): Likewise.
589         (constrain_operands): Change if statements to else if statements in
590         default case.
591         * reload.c (find_reloads): Likewise.
592
593 2003-10-29  Richard Henderson  <rth@redhat.com>
594
595         * config/m68k/m68k.c (notice_update_cc): Clear cc status for
596         shifts and rotates.
597
598 2003-10-30  Alan Modra  <amodra@bigpond.net.au>
599
600         * config/rs6000/rs6000.md: Remove duplicate pattern.
601
602 2003-10-29  Hans-Peter Nilsson  <hp@axis.com>
603
604         * real.c (do_divide): Initialize result with a 0.
605
606         * configure.in <enable-checking for valgrind>: Look for
607         <valgrind/memcheck.h> first.  AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
608         if it exists.
609         * configure, config.in: Regenerate.
610         * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
611         HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>.  Use
612         #elif for other alternatives.
613         * ggc-page.c: Ditto.
614         * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
615         include structure from ggc-common.c.
616
617 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
618
619         * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
620         (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
621         * pa.c (pa_adjust_insn_length): Check for btable branches using
622         attribute TYPE_BTABLE_BRANCH.
623         (pa_reorg): Simplify.
624         * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
625         (ASM_OUTPUT_ADDR_VEC_ELT): As above.
626         (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
627         * pa.md (btable_branch): New instruction type.
628         (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
629         btable branches.
630         (define_delay): Add btable branches to insn types that may have an
631         insn in the delay position.
632         (Z2, Z3): Add btable branch to list.
633         Simplify unamed pattern set copy pic_label_operand to register.  Add
634         PA 2.0 variant.
635         (short_jump): New jump for use in branch tables.
636         (casesi, casesi0): Revise for new branch table formats.
637         (casesi32, casesi32p, casesi64p): New casesi patterns.
638         (indirect_jump): Move.
639
640 2003-10-29  David Edelsohn  <edelsohn@gnu.org>
641
642         * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
643         !TARGET_POWERPC64.
644         (UNITS_PER_GPR_WORD): Delete.
645         (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
646         (HARD_REGNO_MODE_OK): Same.
647         (CLASS_MAX_NREGS): Same.
648
649 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
650
651         * pa.h (ASM_COMMENT_START): Define.
652
653 2003-10-29  Zack Weinberg  <zack@codesourcery.com>
654
655         * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
656         MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
657         component, not zero.
658
659 2003-10-29  Andreas Schwab  <schwab@suse.de>
660
661         * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
662
663 2003-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
664
665         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
666         Never return 1 for complex integral modes whose size is lesser or
667         equal to a word.
668         (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
669         in the comment.
670         (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
671         modes.
672         (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
673         greater than 16 bytes by reference.
674
675 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
676
677         * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
678         not TARGET_ILP32.
679         (ia64_initialize_trampoline): Use globalize_label target call.
680
681 2003-10-29  Andreas Schwab  <schwab@suse.de>
682
683         * doc/install.texi (Building): Add a sentence about building Ada
684         for a canadian cross.
685
686 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
687
688         * config/ia64/ia64.c (cmptf_libfunc): New static.
689         (ia64_expand_compare): Add logic to open-code calls to
690         _U_Qfcmp for TFmode comparisons.
691         (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
692         Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
693         never be generated anymore.
694         * config/ia64/ia64.md (cmptf): New expander.
695
696 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
697
698         * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
699         (*sqrt_approx): New instruction pattern for approximate square roots.
700         (*setf_exp_xf): New instruction pattern for exponentiation.
701         (*maddxf4_alts_truncsf): New instruction pattern for truncation.
702         (sqrtsf2_internal_thr): New define_and_split implementing
703         throughput-optimized inline calculation of SFmode square root.
704         (sqrtdf2_internal_thr): Likewise for DFmode.
705         (sqrtxf2_internal_thr): Likewise for XFmode.
706         (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
707         latency- and throughput-optimized square root algorithms.
708         * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
709         TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
710         New macros.
711         (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
712         -minline-sqrt-max-throughput.
713         * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
714         and -minline-sqrt-max-throughput are given, notify the user
715         that both options cannot be used simultaneously.
716         If -minline-sqrt-min-latency is given, notify the user that
717         this mode is not yet implemented.
718         (rtx_needs_barrier): Reformat initial comment to obey
719         72-character width limit.  Support UNSPEC_SETF_EXP and
720         UNSPEC_FR_SQRT_RECIP_APPROX.
721
722 2003-10-29  Alan Modra  <amodra@bigpond.net.au>
723
724         * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
725         moves.
726
727 2003-10-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
728
729         PR target/11598
730         PR libgcj/10610
731         * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
732
733 2003-10-28  Richard Earnshaw  <rearnsha@arm.com>
734
735         * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
736         an extra stack adjustment insn if the stack pointer is already
737         pointing at the right place.
738         (use_return_insn): Allow a return insn to be used when we have a
739         frame pointer if the stack pointer is in the right place.
740         (output_return_instruction): Handle it.
741
742 2003-10-28  Andreas Jaeger  <aj@suse.de>
743
744         * ggc-zone.c (check_cookies): Add missing variable.
745         Add void to prototypes.
746
747 2003-10-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
748
749         * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
750         * crtstuff.c (__do_global_ctors_1): Move prototype.
751         * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
752         appropriate.
753         * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
754         Mark parameter with __attribute__((unused)).
755
756 2003-10-27  Zack Weinberg  <zack@codesourcery.com>
757
758         * c-decl.c (pushdecl): Clarify comment.
759
760 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
761
762         * doc/install.texi: Update instructions for Ada cross builds
763
764         PR ada/5909:
765         * doc/sourcebuild.texi: Document Ada test suite.
766
767 2003-10-27  Stephane Carrez  <stcarrez@nerim.fr>
768
769         * config/m68hc11/m68hc11.c: Convert to ISO C90.
770         * config/m68hc11/m68hc11-protos.h: Likewise.
771
772 2003-10-27  Jan Hubicka  <jh@suse.cz>
773             Eric Botcazou  <ebotcazou@libertysurf.fr>
774
775         * toplev.c (enum dump_file_index, dump_file): Fix ordering of
776         webizer pass dump.
777
778 2003-10-27  Jakub Jelinek  <jakub@redhat.com>
779             Jan Hubicka  <jh@suse.cz>
780
781         * reload1.c (struct elim_table): Change offset, initial_offset and
782         previous_offset fields to HOST_WIDE_INT.
783         (offsets_at): Change from int to HOST_WIDE_INT.
784         (reload): Adjust offsets_at initialization.
785         (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
786         (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
787         * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
788         to HOST_WIDE_INT.  Don't save regs using mov for huge frame sizes
789         if TARGET_64BIT.
790         (pro_epilogue_adjust_stack): New function.
791         (ix86_expand_prologue, ix86_expand_epilogue): Use it.
792         * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
793         (pro_epilogue_adjust_stack_1): Remove * in front of name.
794         (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
795         (pro_epilogue_adjust_stack_rex64_2): New insn.
796
797         * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
798
799         * config/i386/i386.c (ix86_expand_call): Replace 40 with
800         FIRST_REX_INT_REG + 3 /* R11 */.
801
802 2003-10-26  Richard Henderson  <rth@redhat.com>
803
804         * config/alpha/alpha.md (attr cannot_copy): New.
805         (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
806         prologue_ldgp_er_2, prologue_ldgp_1): Set it.
807         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
808
809 2003-10-26  Daniel Berlin  <dberlin@dberlin.org>
810
811         * ggc-zone.c:  New file, zone allocating collector.
812         * configure: Accept zone option for --with-gc
813         * configure.in: Ditto.
814         * ggc.h (ggc_pch_count_object): Pass bool indicating
815         stringiness. Update all callers.
816         (ggc_pch_alloc_object): Ditto.
817         (ggc_pch_write_object): Ditto.
818         (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
819         type.
820         (ggc_alloc_rtvec): Ditto.
821         (ggc_alloc_tree): Use zone allocation, since some things using this macro
822         aren't a single typecode.
823         * ggc-none.c (ggc_alloc_typed): New function.
824         (ggc_alloc_zone): Ditto.
825         * ggc-page.c: Ditto on both functions.
826
827 2003-10-26  Gunther Nikl  <gni@gecko.de>
828
829         * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
830         frame information is always valid.
831         (m68k_output_function_prologue): Remove superfluous TARGET_68881
832         test; fix formatting.
833
834 2003-10-26  Gunther Nikl  <gni@gecko.de>
835
836         * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
837         reg_rev_mask computation.
838         (m68k_output_function_prologue): Fix usage of current_frame (one typo
839         and one missing); use reg_rev_mask not reg_mask.
840         (m68k_output_function_epilogue): Fix usage of current_frame;
841         use fpu_rev_mask not fpu_mask.
842
843 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
844
845         * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
846         num_saved_regs, use current_frame.reg_no instead.
847
848 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
849             Paul Dale  <pauli@snapgear.com>
850
851         * doc/extend.texi (interrupt_handler): Add m68k to the
852         list of processors implementing it.
853         * doc/invoke.texi (-msep-data): Document new m68k option.
854         (-mno-sep-data): Likewise.
855         (-mid-shared-library): Likewise.
856         (-mno-id-shared-library): Likewise.
857         (-mshared-library-id): Likewise.
858
859 2003-10-26  Andreas Jaeger  <aj@suse.de>
860
861         * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
862         comparison.
863         (_Unwind_SetGR): Likewise.
864
865 2003-10-26  Ottavio Campana <ottavio@campana.vi.it>
866
867         PR target/12690
868         * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
869
870 2003-10-26  Gunther Nikl  <gni@gecko.de>
871
872         * config/m68k/m68k.c (m68k_output_function_prologue): Move front
873         comment from here to...
874         (m68k_save_reg): ...here. Fix comment formatting.
875         (m68k_output_function_prologue): Fix comment formatting.
876         (m68k_output_function_epilogue): Likewise.
877         (const_method): Likewise.
878
879 2003-10-26  Kazu Hirata  <kazu@cs.umass.edu>
880
881         * toplev.c (default_get_pch_validity): Guard the use of
882         target_options with #ifdef TARGET_OPTIONS.
883         (default_pch_valid_p): Likewise.
884
885 2003-10-26  Andreas Jaeger  <aj@suse.de>
886             Zack Weinberg  <zack@codesourcery.com>
887             Andreas Tobler <toa@pop.agri.ch>
888
889         * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
890         (output_die): Likewise.
891         (print_die): Likewise.
892
893 2003-10-26  Andreas Jaeger  <aj@suse.de>
894
895         * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
896         dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
897         dwarf2out.c change.
898
899         * toplev.c (default_pch_valid_p): Fix warning.
900
901 2003-10-25  Roger Sayle  <roger@eyesopen.com>
902
903         * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
904         RTL nodes.  If an operator's operands are unchanged, return the
905         original argument unchanged.
906
907 2003-10-26  Graham Stott  <graham.stott@btinternet.com>
908
909         Fix bootstrap failure.
910         * expmed.c (store_bit_field): Don't compare bitsize against
911         modes with zero bit-size.
912
913         (extract_bit_field): Likewise
914
915 2003-10-25  Jan Hubicka  <jh@suse.cz>
916
917         * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
918         (cfa_loc): Likewise.
919         (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
920         HOST_WIDE_INT.
921         (args_size, old_args_size): change type to HOST_WIDE_INT.
922         (dwarf2out_def_cfa, dwarf2out_args_size,
923         dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
924         (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
925         (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
926         AT_offset): Use HOST_WIDE_INT.
927         (based_loc_descr): offset is HOST_WIDE_INT.
928         (add_data_member): Likewise.
929         (add_const_value_attribute): Simplify.
930
931 2003-10-25  Richard Henderson  <rth@redhat.com>
932
933         * config/i386/i386.c (ix86_eax_live_at_start_p): New.
934         (ix86_expand_prologue): Save and restore eax around stack probe
935         if it's live.
936
937 2003-10-25  Jan Hubicka  <jh@suse.cz>
938
939         * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
940
941 2003-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
942
943         PR target/12712
944         * reg-stack.c (convert_regs_1): Create an arbitrary input stack
945         if the block has no predecessors.
946         (convert_regs_2): Document the problem with successors whose
947         only predecessor is the block to be processed.
948         (convert_regs): Don't create the arbitrary input stack here.
949
950 2003-10-24  Zack Weinberg  <zack@codesourcery.com>
951
952         * genmodes.c (struct mode_data): Add contained and next_cont
953         fields.
954         (complete_mode): Maintain linked list of modes that have a
955         given component.
956         (emit_mode_unit_size): Delete.
957         (emit_mode_nunits): New.
958         (emit_insn_modes_c): Update to match.
959         (emit_mode_adjustments): Propagate size and alignment
960         adjustments from component modes to their containers.
961         * machmode.h (mode_unit_size): Delete.
962         (mode_nunits): New.
963         (GET_MODE_NUNITS): Just return the value in the table.
964         (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
965         GET_MODE_SIZE.
966         * expmed.c (store_bit_field, extract_bit_field): Can use a
967         plain move instruction if bitsize >= GET_MODE_BITSIZE of
968         destination/source mode, respectively.
969         * varasm.c (assemble_real): Write out the full size of the
970         constant, not just its bitsize.
971         (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
972
973         * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
974         Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
975         alignment of XF and TF modes in compliance with ia64 ABIs.
976         Can now hardwire the format of both modes.
977         * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
978         (general_tfmode_operand, destination_tfmode_operand)
979         (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
980         general_xfmode_operand, destination_xfmode_operand,
981         xfreg_or_fp01_operand, spill_xfmode_operand respectively.
982         (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
983         and float80_type be 96 so they get XFmode.  Use !TARGET_HPUX,
984         not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
985         __float128.
986         * config/ia64/ia64.h: Default TARGET_HPUX to 0.
987         Change TFmode to XFmode wherever appropriate.  Remove all
988         references to INTEL_EXTENDED_IEEE_FORMAT.
989         (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
990         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
991         (PREDICATE_CODES): Update to match function renames.
992         * config/ia64/ia64.md: Change TF to XF throughout; rename all
993         patterns to match.  Remove all references to
994         INTEL_EXTENDED_IEEE_FORMAT.  Update predicate calls to match
995         function renames.
996         * config/ia64/ia64-protos.c: Update all prototypes to match
997         renamed functions.
998         * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
999         Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
1000         * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
1001         __divtf3; keep old name for backward compatibility.
1002         (L__compat): New section providing forwarding stubs for
1003         __fixtfti, __fixunstfti, __floattitf.
1004         * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
1005
1006 2003-10-24  Geoffrey Keating  <geoffk@apple.com>
1007
1008         PR 10757
1009         * c-pch.c: Include target.h.  Improve comments.
1010         (struct c_pch_validity): Add target_data_length.
1011         (pch_init): Add target's validity data.
1012         (c_common_valid_pch): Check target's validity data.
1013         * target-def.h (TARGET_GET_PCH_VALIDITY): New.
1014         (TARGET_PCH_VALID_P): New.
1015         (TARGET_INITIALIZER): Add new fields.
1016         * target.h: Include tm.h.
1017         (struct gcc_target): Add get_pch_validity, pch_valid_p.
1018         * toplev.h (default_get_pch_validity): New prototype.
1019         (default_pch_valid_p): New prototype.
1020         * toplev.c (default_get_pch_validity): New routine.
1021         (default_pch_valid_p): New routine.
1022         * Makefile.in (TARGET_H): Add TM_H.  Replace all users of
1023         target.h with $(TARGET_H).
1024         (c-pch.o): Add TARGET_H.
1025         * doc/tm.texi (PCH Target): New node.
1026         (TARGET_GET_PCH_VALIDITY): Document.
1027         (TARGET_PCH_VALID_P): Document.
1028
1029 2003-10-24  Kelley Cook  <kcook@gcc.gnu.org>
1030
1031         * Makefile.in: Define a vpath for %.texi.  Remove explicit $(docdir)
1032         and $(docdir)/include from any *.texi dependencies.
1033         ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
1034         ($(docobjdir)/%.1): Depend on .pod instead of .texi.
1035         ($(docobjdir)/%.7): Likewise.
1036         (%.pod): New implicit rule.
1037         (cpp.pod): New dependency only rule.
1038         (gcc.pod): New intermediate rule with dependencies and commands.
1039         (gfdl.pod): Likewise.
1040         (fsf-funding.pod): Likewise.
1041
1042 2003-10-24  Nathanael Nerode  <neroden@gcc.gnu.org>
1043
1044         * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
1045         related code.
1046         * fixinc/fixinc.ptx: Remove.
1047         * fixinc/fixinc.svr4: Remove.
1048
1049 2003-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
1050
1051         * config/s390/s390.c (load_multiple_operation): Allow both SImode
1052         and DImode if word_mode is DImode.
1053         (store_multiple_operation): Likewise.
1054         * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
1055         ("*load_multiple_di"): Allow only if word_mode == DImode.
1056         ("movqi"): Use LLGC whenever TARGET_ZARCH.
1057         ("fix_truncdfsi2"): Fix incorrect temporary size.
1058         ("fix_truncsfsi2"): Likewise.
1059         ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
1060         string for function return value operand.
1061         ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
1062
1063 2003-10-24  Joseph S. Myers  <jsm@polyomino.org.uk>
1064
1065         * c-parse.in (array_declarator): Use expr_no_commas.
1066         Fixes PR c/11943.
1067
1068 2003-10-24  Richard Sandiford  <rsandifo@redhat.com>
1069
1070         * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
1071         associated includes in #ifndef inhibit_libc.
1072
1073 2003-10-24  Roger Sayle  <roger@eyesopen.com>
1074
1075         * doc/libgcc.texi: Document some more of the libgcc API.
1076
1077 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
1078
1079         * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
1080         comparing a constant with small negative numbers and add costing
1081         for constants in conjunction with AND.
1082         (note_invalid_constants): Tidy previous change.
1083         (thumb_cmp_operand): Tidy.
1084         (thumb_cmpneg_operand): New function.
1085         * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
1086         for size.
1087         (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
1088         (PREDICATE_CODES): Add thumb_cmpneg_operand.
1089         * arm.md (cbranchsi4): Convert to define_expand.  Handle comparison
1090         with a negative constant.
1091         (cbranchsi4_insn): Matcher for cbranchsi4.
1092         (cbranchsi4_scratch): Similar, but a scratch is available for
1093         handling negative constants.
1094         (movsi_cbranchsi4): New pattern.
1095         (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
1096         and use the TST instruction.
1097         (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
1098         (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
1099         cannot see high regs or memory alternatives.
1100         (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
1101
1102 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
1103
1104         * arm.c (note_invalid_constants): Try to extract the constant
1105         pool value using avoid_constant_pool_reference; only use
1106         get_pool_constant if that returns the original reference.
1107
1108 2003-10-24  Jan Hubicka  <jh@suse.cz>
1109
1110         PR c++/12624
1111         * varasm.c (notice_global_symbol): Disqualify global registers.
1112
1113 2003-10-23  Roger Sayle  <roger@eyesopen.com>
1114
1115         PR middle-end/11414
1116         * loop.c (load_mems): Use redirect_jump to forward jumps from
1117         the original loop end label to the new "loop sink" block's label.
1118
1119 2003-10-23  Roger Sayle  <roger@eyesopen.com>
1120
1121         PR middle-end/12705
1122         * optabs.c (expand_binop): When expanding complex operations
1123         inline, always calculate result into a new temporary register.
1124         Minor code clean-ups.
1125
1126 2003-10-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1127
1128         * objc/lang-specs.h: Handle -print-objc-runtime-info.
1129         * doc/invoke.texi (Objective-C Dialect Options): Document it.
1130
1131 2003-10-24  Danny Smith  <dannysmith@users.sourceforge.net>
1132
1133         * config/i386/cygwin.asm. Add copyright notice. Add comment
1134         on why this code is needed.
1135
1136 2003-10-23  Kazu Hirata  <kazu@cs.umass.edu>
1137
1138         * config/h8300/clzhi2.c: Fix warnings.
1139         * config/h8300/ctzhi2.c: Likewise.
1140         * config/h8300/fixunssfsi.c: Likewise.
1141         * config/h8300/parityhi2.c: Likewise.
1142         * config/h8300/popcounthi2.c: Likewise.
1143
1144 2003-10-23  James E Wilson  <wilson@specifixinc.com>
1145
1146         * gcc.c (option_map): Delete --target and --use-version.
1147
1148 2003-10-23  Fariborz Jahanian  <fjahanian@apple.com>
1149             David Edelsohn  <edelsohn@gnu.org>
1150
1151         * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
1152         TARGET_POWREPC64.
1153         (UNITS_PER_GPR_WORD): Define.
1154         (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
1155         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
1156         (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
1157         (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
1158         * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
1159         DFmode and DImode in 32-bit ABI / 64-bit computation mode.
1160         (rs6000_emit_prologue): Select reg_mode and reg_size using
1161         TARGET_32BIT, not TARGET_POWERPC64.
1162         (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
1163         ABI / 64-bit computation mode
1164
1165 2003-10-22  Andrew Haley  <aph@redhat.com>
1166
1167         * toplev.c (output_file_directive): Allow for null input_name.
1168
1169 2003-10-22  Waldek Hebisch <hebisch@math.uni.wroc.pl>
1170
1171         * config/i386/i386.c (classify_argument): Handle SET_TYPE.
1172
1173 2003-10-22  Chris Demetriou  <cgd@broadcom.com>
1174
1175         * configure.in: In --enable-generated-files-in-srcdir option
1176         handling, fix default case handling.
1177         * configure: Regenerate.
1178
1179 2003-10-22  Phil Edwards  <phil@codesourcery.com>
1180
1181         * config.gcc:  Update *-*-vxworks* generic hook and comments.
1182         (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
1183         mips-wrs-windiss, sh-wrs-vxworks):  New stanzas.
1184         * genmultilib:  Allow the MULTILIB_OSDIRNAMES to be mapped directly.
1185         * config/svr4.h (SWITCH_TAKES_ARG):  Undefine it before redefining it.
1186         * config/windiss.h:  New file.
1187         * config/arm/t-vxworks:  New file.
1188         * config/arm/vxworks.h:  New file.
1189         * config/i386/t-vxworks:  New file.
1190         * config/i386/vxworks.h:  New file.
1191         * config/mips/t-vxworks:  New file.
1192         * config/mips/vxworks.h:  New file.
1193         * config/mips/windiss.h:  New file.
1194         * config/sh/t-vxworks:  New file.
1195         * config/sh/vxworks.h:  New file.
1196
1197 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
1198
1199         * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
1200         (h8300_saveall_function_p): New.
1201         (h8300_insert_attributes): Insert the saveall attribute if
1202         #pragma saveall is specified.
1203         (h8300_attribute_table): Add saveall.
1204         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1205         * doc/extend.texi: Mention the saveall attribute.
1206
1207 2003-10-22  Joseph S. Myers  <jsm@polyomino.org.uk>
1208
1209         * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
1210         deprecation of casts as lvalues.
1211         * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
1212         * fixinc/fixincl.x: Regenerate.
1213         * fixinc/tests/base/obstack.h: New test.
1214
1215 2003-10-22  Andreas Schwab  <schwab@suse.de>
1216
1217         PR target/12676
1218         * config/m68k/m68k.c (output_addsi3): Fix range check to work on
1219         LP64 platforms.
1220
1221 2003-10-22  Jan Hubicka  <jh@suse.cz>
1222
1223         * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
1224         presence of DW_AT_inline.
1225         (gen_subprogram_die): Likewise; do not abort instead of emitting
1226         DW_AT_not_inline.
1227
1228 2003-10-22  Jan Hubicka  <jh@suse.cz>
1229
1230         * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
1231         global info is not ready.
1232
1233 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
1234
1235         * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
1236
1237 2003-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
1238
1239         * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
1240         ("*movstr_short"): ... into this insn pattern.
1241         ("movstr_short"): New expander.
1242         ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
1243         ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
1244         ("movstr_long"): New expander.
1245         ("clrstr_short_64", "clrstr_short_31"): Merge ...
1246         ("*clrstr_short"): ... into this insn pattern.
1247         ("clrstr_short"): New expander.
1248         ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
1249         ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
1250         ("clrstr_long"): New expander.
1251         ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
1252         ("*cmpmem_short"): ... into this insn pattern.
1253         ("cmpmem_short"): New expander.
1254         ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
1255         ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
1256         ("cmpmem_long"): New expander.
1257         * config/s390/s390.c (s390_expand_movstr): Use new expanders.
1258         (s390_expand_clrstr): Likewise.
1259         (s390_expand_cmpmem): Likewise.
1260
1261 2003-10-22  Mark Mitchell  <mark@codesourcery.com>
1262
1263         * c-pch.c (struct c_pch_validity): Add pch_init field.
1264         (pch_init): Set it.
1265         (c_common_valid_pch): Check it.
1266
1267 2003-10-22  David Taylor <dtaylor@emc.com>
1268
1269         PR debug/12500
1270         * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
1271
1272 2003-10-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1273
1274         * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
1275         alpha_return_in_memory if no VALTYPE specified.
1276
1277 2003-10-22  Jan Hubicka  <jh@suse.cz>
1278
1279         PR debug/12389
1280         * Makefile.in (dwarf2out.o): Depend on cgraph.h.
1281         * cgraph.c (cgraph_function_possibly_inlined_p): New function.
1282         * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
1283         (cgraph_global_info): Add flag inlined
1284         * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
1285         cgraph_function_possibly_inded_p
1286         * cgraphunit.c (mark_inline): Set inlined flag.
1287         * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
1288         only for possibly inlined functions.
1289         * c-decl.c (duplicate_decls): Never output abstract DIE representing old
1290         body of function.
1291
1292 2003-10-22  Andrew Haley  <aph@redhat.com>
1293
1294         * varasm.c (output_constructor): Make constructor annotation
1295         conditional on ASM_COMMENT_START.
1296
1297 2003-10-21  Jason Merrill  <jason@redhat.com>
1298
1299         * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
1300         (get_narrower): Likewise.
1301
1302         * stor-layout.c (layout_decl): Do packed field alignment for
1303         bit-fields, too.
1304
1305 2003-10-21  Eric Christopher  <echristo@redhat.com>
1306
1307         * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
1308
1309 2003-10-21  Geoffrey Keating  <geoffk@apple.com>
1310
1311         * c-pch.c: Add comments in various places.
1312         (struct c_pch_validity): Add the lengths of various strings.
1313         (host_machine): New static.
1314         (target_machine): New static.
1315         (get_ident): Bump version number.
1316         (pch_init): Write out version, host, target validity data.
1317         (c_common_valid_pch): Check version, host, target.
1318         * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
1319         TARGET_MACHINE.
1320
1321 2003-10-21  Jason Merrill  <jason@redhat.com>
1322
1323         * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
1324         (EXPR_P): New macro.
1325
1326 2003-10-21  Zack Weinberg  <zack@codesourcery.com>
1327
1328         * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
1329         * config/ia64/ia64.c (ia64_expand_fetch_and_op,
1330         ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
1331         DImode.   Use convert_move to load ar.ccv.
1332         (ia64_expand_compare_and_swap): Likewise.
1333         If expand_expr doesn't put 'old' and 'new' in the proper
1334         modes, run them through convert_to_mode.
1335
1336 2003-10-21  Eric Christopher  <echristo@redhat.com>
1337
1338         * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
1339         for too large bitfields.
1340
1341 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
1342
1343         * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
1344
1345 2003-10-21  Andrew Haley  <aph@redhat.com>
1346
1347         * varasm.c (output_constructor): Annotate constructor.
1348
1349 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
1350
1351         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
1352         on existence of destination file.
1353
1354 2003-10-21  Jan Hubicka  <jh@suse.cz>
1355
1356         * haifa-sched.c (choose_ready): Initialize index.
1357
1358 2003-10-21  Jason Merrill  <jason@redhat.com>
1359
1360         * tree.c (build1): Fix off-by-one error.
1361
1362 2003-10-21  Robert Millan  <robertmh@gnu.org>
1363
1364         * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
1365         * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
1366         * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
1367         * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
1368
1369 2003-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
1370
1371         * web.c: Fix various comments.
1372
1373 2003-10-20  Nicolas Pitre <nico@cam.org>
1374
1375         * config/arm/arm.c (arm_override_options): Set arm_constant_limit
1376         to 2 instead of 1 when optimize_size is true.  Gather code based on
1377         optimize_size together.  Add comment about XScale load latency.
1378
1379 2003-10-21  Gunther Nikl  <gni@gecko.de>
1380
1381         * config/m68k/m68k.c (m68k_output_function_prologue): Remove
1382         obsolete comments.
1383
1384 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
1385
1386         * Makefile.in: Get parsedir and docobjdir from configure.
1387         * configure.in: Recogonize --enable-generated-files-in-srcdir.
1388         Pass along parsedir and docobjdir.
1389         * configure: Regenerate.
1390         * doc/install.texi: Document --enable-generated-files-in-srcdir.
1391
1392 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
1393
1394         * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
1395         included.
1396
1397 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1398
1399         * c-common.c (expand_tree_builtin): Ensure creal and cimag
1400         functions do not return lvalues.
1401
1402 2003-10-20  Jason Merrill  <jason@redhat.com>
1403
1404         PR c/12553
1405         * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
1406         appropriately.
1407
1408         PR c/11446
1409         * stor-layout.c (layout_decl): Fix alignment handling.
1410
1411 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1412
1413         * doc/extend.texi: Deprecate casts as lvalues.
1414
1415 2003-10-20  Jan Hubicka  <jh@suse.cz>
1416
1417         * toplev.c (rest_of_compilation): Fix webizer pass ordering.
1418
1419         * cgraphunit.c (decide_is_function_needed):  Fix test dealing
1420         with functions implicitly made inline.
1421
1422         * cgraphunit.c (cgraph_decide_inlining_incrementally):  New function.
1423         (cgraph_finalize_function): Use it.
1424         (cgraph_mark_inline): Allow incrmental decisions
1425         * invoke.texi (max-inline-slope, min-inline-insns): Kill.
1426         * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
1427         * tree-inline.c (limits_allow_inlining): Kill.
1428         (expand_call_inline): Always use unit-at-a-time path.
1429
1430 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
1431
1432         * fixinc/inclhack.def (hpux11_snprintf): New edit.
1433         * fixinc/fixincl.x: Regenerate.
1434         * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
1435
1436 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
1437
1438         * Makefile.in (install-info): Simplify.
1439         ($(DESTDIR)$(infodir)/%.info): New rule.
1440         * configure.in (target_list): Remove install-info.
1441         * doc/.cvsignore (gcc.info*): Remove.
1442         (gccint.info*): Likewise.
1443         (gccinstall.info*): Likewise.
1444         (cpp.info*): Likewise.
1445         (cppinternals.info*): Likewise.
1446         (*.info*): Add it.
1447         * doc/sourcebuild.texi: Update description of install-info.
1448         * objc/Make-lang.in (objc.install-info): Remove.
1449
1450 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1451
1452         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
1453         Use it in _MIPS_SIM definition.
1454         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
1455
1456 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
1457
1458         * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
1459         virtual register, but only if file == asm_out_file.
1460         * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
1461         for ARG_POINTER_REGNUM.
1462
1463 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
1464
1465         * c-common.c (registered_builtin_types): New static.
1466         (c_common_type_for_mode): Consult registered_builtin_types.
1467         (c_register_builtin_type): Add type to registered_builtin_types.
1468         * optabs.c (init_floating_libfuncs): Initialize libfuncs for
1469         all MODE_FLOAT modes, not just the ones corresponding to
1470         float_type_node, double_type_node, and long_double_type_node.
1471
1472 2003-10-20  Richard Henderson  <rth@redhat.com>
1473
1474         * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
1475         * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
1476
1477 2003-10-20  Dorit Naishlos  <dorit@il.ibm.com>
1478
1479         * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
1480         support new flag -minsert-sched-nops.
1481         (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
1482         * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
1483         support new flag -minsert-sched-nops.
1484         (is_cracked_insn, is_microcoded_insn): New functions.
1485         (rs6000_sched_finish): New function.
1486         (rs6000_issue_rate): Return 5 for power4.
1487         (get_next_active_insn, insn_terminates_group_p): New
1488         functions.
1489         (is_costly_group, force_new_group): New functions.
1490         (redefine_groups, pad_groups): New functions.
1491         (rs6000_variable_issue): Use new functions.
1492         * doc/invoke.texi (-minsert-sched-nops): Document new
1493         option.
1494
1495 2003-10-20  David S. Miller  <davem@redhat.com>
1496
1497         * config/sparc/sparc.md (type attribute): Add new insn types
1498         fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
1499         (patterns emitting VIS insns): Use them.
1500         * config/sparc/ultra1_2.md: Add VIS scheduling rules.
1501         * config/sparc/ultra3.md: Likewise.
1502
1503 2003-10-20  Falk Hueffner  <falk@debian.org>
1504
1505         PR target/12654
1506         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
1507         comparison against constant by adjusting the argument except for
1508         EQ and NE.
1509
1510 2003-10-19  Mark Mitchell  <mark@codesourcery.com>
1511
1512         * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
1513         arm1136jfs, and armv6j.
1514         * config/arm/arm.c (FL_ARCH6J): New macro.
1515         (FL_VFPV2): Likewise.
1516         (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
1517         and arm1136jfs.
1518         (all_architectures): Add entry for armv6j.
1519         (arm_override_options): Add entries for arm926ejs, arm1026ejs,
1520         arm1136js, and arm1136jfs.
1521         * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
1522         (TARGET_CPU_arm1026ej_s): Likewise.
1523         (TARGET_CPU_arm1136j_s): Likewise.
1524         (TARGET_CPU_arm1136jf_s): Likewise.
1525         * doc/invoke.texi: Document new ARM cores and architecture
1526         variants.
1527
1528 2003-10-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1529
1530         * Makefile.in (toplev.o): Add value-prof.h dependency.
1531         (value-prof.o): Add REGS_H dependency.
1532         * common.opt (fprofile-values, fvpt): New.
1533         * flags.h (flag_value_profile_transformations): Declare.
1534         * opts.c (common_handle_option): Handle -fprofile_values and
1535         -fvpt.
1536         * profile.c (branch_prob): Don't remove death notes here.
1537         * timevar.def (TV_VPT): New.
1538         * value-prof.c: Include regs.h.
1539         (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
1540         gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
1541         mod_subtract_transform, value_profile_transformations): New.
1542         (insn_values_to_profile): Call insn_divmod_values_to_profile.
1543         (find_values_to_profile): Add dumps.
1544         * value-prof.h (value_profile_transformations): Declare.
1545         * toplev.c: Include value-prof.h.
1546         (rest_of_handle_value_profile_transformations): New.
1547         (enum dump_file_index): Add DFI_vpt.
1548         (dump_file): Add vpt dump.
1549         (flag_value_profile_transformations): New.
1550         (lang_independent_options): Add flag_profile_values and
1551         flag_value_profile_transformations.
1552         (rest_of_compilation): Call
1553         rest_of_handle_value_profile_transformations.
1554         (process_options): Let -fvpt imply -fprofile-values.
1555         * doc/invoke.texi (-fvpt): Document.
1556
1557 2003-10-19  Jan Hubicka  <jh@suse.cz>
1558
1559         * i386.c (print_reg): Do not abort on certain registers.
1560
1561         PR optimization/12612
1562         * reg-stack.c (subst_stack_regs_pat):  Use st(1) for clobbers.
1563         * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
1564         match_scratch; avoid bogus paralles.
1565
1566         PR target/12674
1567         * i386.c (ix86_function_regparm): Disable implicit register passing
1568         conventions when profiling.
1569
1570 2003-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
1571             Richard Henderson  <rth@redhat.com>
1572
1573         PR optimization/8178
1574         * config/i386/i386.md (*movsi_zero): Delete.
1575         (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
1576
1577 2003-10-19  Richard Henderson  <rth@redhat.com>
1578
1579         * config/alpha/alpha.c (fix_operator): New.
1580         (divmod_operator): Tidy.
1581         (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
1582         * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
1583         (PREDICATE_CODES): Update.
1584         * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
1585         (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
1586         (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
1587         (fix_truncsfdi_ieee): Likewise.
1588         (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
1589         (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
1590         * config/alpha/alpha-protos.h: Update.
1591
1592 2003-10-19  Richard Sandiford  <rsandifo@redhat.com>
1593
1594         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
1595         * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
1596         * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
1597         constant operands.
1598
1599 2003-10-18  Kazu Hirata  <kazu@cs.umass.edu>
1600
1601         * doc/extend.texi: Fix typos.
1602         * doc/invoke.texi: Likewise.
1603
1604 2003-10-18  Nicolas Pitre <nico@cam.org>
1605
1606         * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
1607         XScale optimizations not arm_arch_xscale.
1608         * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
1609
1610 2003-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
1611
1612         * config/s390/s390-protos.h (shift_count_operand): Add prototype.
1613         * config/s390/s390.c (shift_count_operand): New function.
1614         (s390_extra_constraint): Use it to implement 'Y' constraint.
1615         (print_shift_count_operand): New function.
1616         (print_operand): Use it to implement '%Y'.
1617         * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
1618         (PREDICATE_CODES): Add shift_count_operand.
1619         * config/s390/s390.md ("rotldi3"): Merge alternatives,
1620         using "shift_count_operand" predicate and "Y" constraint,
1621         and "%Y" to output the combined shift count.
1622         ("rotlsi3"): Likewise.
1623         ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
1624         ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
1625         "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
1626         ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
1627         ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
1628         ("lshrsi3"): Likewise.
1629
1630 2003-10-18  Gunther Nikl  <gni@gecko.de>
1631
1632         * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
1633         argument to asm_fprintf statement.
1634
1635 2003-10-18  Fariborz Jahanian  <fjahanian@apple.com>
1636
1637         * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
1638         (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
1639         a "long long" argument.
1640
1641 2003-10-18  Alexandre Oliva  <aoliva@redhat.com>
1642
1643         * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
1644         as well.
1645
1646 2003-10-18  Richard Sandiford  <rsandifo@redhat.com>
1647
1648         * rtl.h (rtl_size): Declare.
1649         (rtunion): Remove rtwint.
1650         (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
1651         (RTX_HDR_SIZE, RTX_SIZE): New macros.
1652         (RTL_CHECK1): Adjust for new rtx_def layout.
1653         (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
1654         (XWINT, XCWINT): Likewise.  Access the rtx structure directly.
1655         (X0WINT): Remove.
1656         (X0ANY): New macro.
1657         * rtl.def: Adjust comments for new rtx_def layout.
1658         * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
1659         number of slots.
1660         * rtl.c (rtx_size): New array.
1661         (rtx_alloc): Adjust call to ggc_alloc_rtx.  Use RTX_HDR_SIZE.
1662         (copy_rtx): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
1663         (shallow_copy_rtx): Adjust call to ggc_alloc_rtx.  Use RTX_SIZE.
1664         * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
1665         * emit-rtl.c (copy_most_rtx): Likewise.
1666         (copy_rtx_if_shared): Use RTX_SIZE.
1667         (copy_insn_1): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
1668         * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call.  Use RTX_HDR_SIZE.
1669         * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
1670         (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
1671         an array.  Adjust output for new rtx_def layout.
1672         * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
1673         * reload1.c (eliminate_regs): Use RTX_SIZE.
1674         * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
1675         * gdbinit.in (pi): Likewise.
1676
1677 2003-10-18  Jan Hubicka  <jh@suse.cz>
1678
1679         * integrate.c (copy_decl_for_inlining): Revert previous patch.
1680
1681 2003-10-18  Jan Hubicka  <jh@suse.cz>
1682
1683         * integrate.c (copy_decl_for_inlining): Fix copying of copies.
1684
1685 2003-10-18  Roger Sayle  <roger@eyesopen.com>
1686
1687         * libgcc.texi: Group multi-word types, such as "long double" and
1688         "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
1689         Document __unord?f2 as returning a non-zero value, not just one.
1690
1691 2003-10-18  Hans-Peter Nilsson  <hp@bitrange.com>
1692
1693         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
1694         ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
1695
1696 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
1697
1698         * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
1699         match_operand.
1700
1701 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
1702
1703         * config/sparc/sparc.c (function_arg_record_value_1): New fourth
1704         parameter packed_p.  Search for a DECL_PACKED field only if
1705         packed_p is false.  Pass packed_p recursively.
1706         (function_arg_record_value_2): Likewise.
1707         (function_arg_record_value): Update calls to
1708         function_arg_record_value_1 and function_arg_record_value_2.
1709
1710 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
1711
1712         * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
1713         was successfully forced to memory before using the result.
1714
1715 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
1716
1717         PR optimization/8178
1718         * config/i386/i386.md (*movsi_zero): New insn to set
1719         a register to zero on TARGET_USE_MOV0 targets.
1720
1721 2003-10-18  Kelley Cook  <kcook@gcc.gnu.org>
1722
1723         * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
1724         (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
1725
1726 2003-10-17  David Edelsohn  <edelsohn@gnu.org>
1727
1728         * doc/invoke.texi (gcse-las): Fix typo.
1729
1730 2003-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
1731
1732         * doc/install.texi: Remove first part of the sentence for
1733         zsh not working.  Change gcc to GCC.
1734
1735         PR bootstrap/12546
1736         * doc/install.texi: Document that zsh does not work when
1737         configuring gcc.
1738
1739 2003-10-17  Nathanael Nerode  <neroden@gcc.gnu.org>
1740
1741         * config/ptx4.h: Switch to DWARF 2; update comments.
1742
1743 2003-10-17  Segher Boessenkool  <boessen@de.ibm.com>
1744             Hartmut Penner  <hpenner@de.ibm.com>
1745
1746         PR 10404, partial 11591, partial 11601
1747         * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
1748         "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
1749         "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
1750         "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
1751         "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
1752         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
1753         (altivec_expand_stv_builtin): Adjust for the memory_operand.
1754         (altivec_expand_builtin): Call altivec_expand_lv_builtin.
1755         (altivec_init_builtins): Use `long int' for memory offsets.
1756
1757 2003-10-17  Jan Hubicka  <jh@suse.cz>
1758
1759         * opts.c  (common_handle_option): Handle OPT_fweb
1760         * invoke.texi (-fweb): Add missing parts of documentation.
1761
1762 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1763
1764         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
1765         before redefinition.
1766
1767 2003-10-17  Mostafa Hagog  <mustafa@il.ibm.com>
1768
1769         * common.opt: Add description of the new -fgcse-las flag.
1770         * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
1771         * gcse.c (hash_scan_set): Handle the case of store expression and
1772         insert the memory expression to the hash table, this way we make it
1773         possible to discover redundant loads after stores and remove them.
1774         (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
1775         to pre_insert_copies, it is not the correct place to call it after
1776         adding stores to be in the available expression hash table.
1777         (pre_insert_copies): Added the call to update_ld_motion_stores when
1778         one or more copies were inserted.
1779         * opts.c (common_handle_option): Handle the -fgcse-las flag.
1780         * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
1781
1782         * doc/invoke.tex: Document new -fgcse-las flag.
1783
1784 2003-10-18  Alan Modra  <amodra@bigpond.net.au>
1785
1786         * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
1787         for posterity, then remove it.
1788
1789 2003-10-17  Richard Earnshaw <rearnsha@arm.com>
1790             Nathan Sidwell  <nathan@codesourcery.com>
1791
1792         * config/arm/arm.c (use_return_insn): Not a single instruction, if
1793         there's a frame pointer.
1794         (arm_output_epilogue): Protect stack pointer from being corrupted
1795         on interrupt.
1796
1797 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
1798
1799         * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
1800
1801 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
1802
1803         * combine.c (simplify_set): Do not clear out undobuf.other_insn
1804         already set elsewhere.
1805
1806 2003-10-17  Kelley Cook  <kcook@gcc.gnu.org>
1807
1808         * config/i386/i386.c (ix86_expand_prologue):  Use
1809         gen_allocate_stack_worker.
1810
1811 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1812
1813         * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
1814         without gas.
1815         (mips-sgi-irix6*): Likewise.
1816
1817         * config/mips/iris6gas.h: New file.
1818         * gcc/config.gcc (mips-sgi-irix6*): Use it.
1819
1820         * config/mips/mips.h (TARGET_IRIX): Provide default.
1821         (TARGET_IRIX5): Likewise.
1822         (TARGET_SGI_O32_AS): Likewise.
1823         * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
1824         (TARGET_IRIX5): Likewise.
1825         * config/mips/iris6.h (TARGET_IRIX6): Remove.
1826         (TARGET_IRIX5): Redefine as 0.
1827
1828         * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
1829         linker workaround with TARGET_IRIX and mips_abi instead of
1830         ASM_OUTPUT_UNDEF_FUNCTION.
1831         (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
1832         testing TARGET_IRIX and mips_abi explicitly.
1833         * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
1834         * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
1835
1836         * config/mips/mips.c (irix_output_external_libcall): Renamed from
1837         mips_output_external_libcall.
1838         Use new TARGET_IRIX in guard.
1839         * config/mips/mips-protos.h (irix_output_external_libcall): Match
1840         this.
1841         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
1842
1843         * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
1844         Define as 0.
1845
1846         * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
1847         depending on mips_abi.
1848         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
1849         * config/mips/mips.c (mips_output_function_prologue): Test
1850         FUNCTION_NAME_ALREADY_DECLARED at runtime.
1851         (mips_output_function_epilogue): Likewise.
1852         (build_mips16_function_stub): Likewise.
1853         (build_mips16_call_stub): Likewise.
1854         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
1855         default.
1856
1857         * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
1858         IRIX 6 O32 assembler.
1859         (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
1860         (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
1861         _MIPS_SIM for O32 ABI.
1862         (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
1863         (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
1864         (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
1865         Integrate O32 version.
1866         (SUBTARGET_ASM_SPEC): Handle -mabi=32.
1867         (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
1868         O32 ABI.
1869         (BSS_SECTION_ASM_OP_32): Define.
1870         (BSS_SECTION_ASM_OP_64): Likewise.
1871         (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
1872         using them.
1873         (TARGET_ASM_NAMED_SECTION): Reflect renaming.
1874         Move up to allow override for O32 ABI without GNU as.
1875         (EH_FRAME_SECTION_NAME): Define explicitly.
1876         (MUST_USE_SJLJ_EXCEPTIONS): Define.
1877         [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
1878         DTORS_SECTION_ASM_OP): Dummy definitions.
1879         (TARGET_ASM_NAMED_SECTION): Undef statically.
1880         (EH_FRAME_SECTION_NAME): Likewise.
1881         (ASM_OUTPUT_FILENAME): Integrate mips.h version.
1882         (LINK_SPEC): Only use default options -call_shared -no_unresolved
1883         without -r.
1884         Don't pass -init, -fini with -mabi=32.
1885         (COLLECT_PARSE_FLAG): Define.
1886
1887         * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
1888         TARGET_IRIX.
1889         Renamed to use irix_ prefix.
1890         (iris6_asm_named_section): Likewise.
1891         (iris_section_align_entry_eq): Likewise.
1892         (iris_section_align_entry_hash): Likewise.
1893         (iris6_file_start): Likewise.
1894         (iris6_section_align_1): Likewise.
1895         (iris6_file_end): Likewise.
1896         (iris6_section_type_flags): Likewise.
1897         (iris_section_align_htab): Likewise.
1898         (iris_orig_asm_out_file): Likewise.
1899         [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
1900         (TARGET_ASM_FILE_END): Likewise.
1901         (TARGET_SECTION_TYPE_FLAGS): Likewise.
1902
1903         * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
1904         (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
1905         override_options instead.
1906         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
1907         (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
1908         * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
1909         flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
1910         assemblers.
1911         Likewise for constructor/destructor handling.
1912         (override_options): Handle IRIX O32 assembler quirks.
1913         [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
1914         without gas.
1915         (mips_file_start): Use new TARGET_IRIX.
1916         (mips_declare_object_name): No special processing for IRIX O32
1917         assembler.
1918         (mips_finish_declare_object): Likewise.
1919         (irix_asm_output_align): Renamed from iris6_asm_output_align.
1920         Don't record alignment for O32 ABI.
1921         (irix_file_start): Renamed from iris6_file_start.
1922         Return early for O32 ABI.
1923         (irix_file_end): Renamed from iris6_file_end.
1924         Don't emit .section directives for O32 ABI.
1925         * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
1926         * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
1927
1928         * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
1929         (MULTILIB_OSDIRNAMES): Likewise.
1930
1931 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1932
1933         * collect2.c (COLLECT_PARSE_FLAG): Provide default.
1934         (main): Use it.
1935         * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
1936
1937 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
1938
1939         * arm-modes.def (CC_Nmode): New condition code mode.
1940         * arm.c (thumb_condition_code): Delete.
1941         (arm_select_cc_mode): Handle single-bit test for Thumb.
1942         (arm_print_operand, cases 'd' and 'D'): Don't special case the
1943         condition code logic for Thumb.
1944         (get_arm_condition_code): Handle CC_Nmode.
1945         (thumb_cbrch_target_operand): New function.
1946         * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
1947         * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
1948         * arm.md: Add Thumb split patterns for zero_extract and
1949         sign_extract.
1950         (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
1951         (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
1952         (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
1953         (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
1954         (cbranchne_decr1): Re-work to use CC_Nmode.
1955
1956         * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
1957         by the return instruction.  Add a use of the link register if it
1958         wasn't stored.
1959
1960 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
1961
1962         * flow.c (init_propagate_block_info): Don't abort if a conditional
1963         jump is not a comparison of a register.  Instead, just don't record
1964         conditional life information.
1965
1966 2003-10-16  Jan Hubicka  <jh@suse.cz>
1967
1968         PR optimization/12630
1969         * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
1970         for operands 7 and 8.
1971
1972 2003-10-16  Kelley Cook  <kcook@gcc.gnu.org>
1973
1974         * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
1975
1976 2003-10-16  Danny Smith  <dannysmith@users.sourceforge.net>
1977
1978         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
1979
1980         * config/i386/winnt.c (gen_stdcall_suffix): Make static
1981         (gen_fastcall_suffix): Likewise.
1982         (i386_pe_dllexport_p): Likewise.
1983         (i386_pe_dllimport_p): Likewise.
1984         (i386_pe_mark_dllexport): Likewise.
1985         (i386_pe_mark_dllimport): Likewise.
1986         (i386_pe_asm_named_section): Fix formatting.
1987
1988 2003-10-16  Zack Weinberg  <zack@codesourcery.com>
1989
1990         * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
1991         * system.h: Declare snprintf if necessary.
1992         * configure, config.in: Regenerate.
1993
1994 2003-10-15  David Edelsohn  <edelsohn@gnu.org>
1995
1996         * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
1997         arguments if TARGET_ALTIVEC_ABI.
1998
1999 2003-10-15  Roger Sayle  <roger@eyesopen.com>
2000
2001         * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
2002         fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
2003         fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
2004         New functions.
2005         (expand_builtin_memcpy): Use integer_zerop instead of testing
2006         host_integerp and tree_low_cst directly.  Move misapplied hunk
2007         for optimization wher SRC and DEST point to the same location.
2008         (expand_builtin_mempcpy): From here.
2009         (expand_builtin_memmove): Use integer_zerop instead of testing
2010         host_integerp and tree_low_cst_directly.
2011         (expand_builtin_memset): Likewise.
2012         (expand_builtin_memcmp): Likewise (and for integer_onep).
2013         (expand_builtin_strncmp): Likewise.
2014         (fold_builtin): Call the appropriate fold_builtin_foo functions
2015         to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
2016         strcmp and strncmp.
2017
2018 2003-10-15  Geoffrey Keating  <geoffk@apple.com>
2019
2020         * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
2021         prototype.  Clean up some whitespace.
2022         * config/darwin.c: Use gen_rtx_FOO (...) rather than
2023         gen_rtx (FOO, ...).
2024         (machopic_non_lazy_ptr_name): Make static.
2025         (name_needs_quotes): Allow '.' and '$' unquoted.
2026         (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
2027         case.
2028
2029 2003-10-15  Gábor Lóki  <alga@rgai.hu>
2030
2031         * fold-const.c (tree_swap_operands_p): Disable some features
2032         when optimizing for size.
2033
2034 2003-10-15  David Daney  <ddaney@avtrex.com>
2035
2036         * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
2037         * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
2038         from leaf functions.
2039         (DWARF_FRAME_RETURN_COLUMN): Ditto.
2040         (SIGNAL_UNWIND_RETURN_COLUMN): New, used
2041         by MD_FALLBACK_FRAME_STATE_FOR.
2042         * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
2043
2044 2003-10-15  Zack Weinberg  <zack@codesourcery.com>
2045
2046         * genmodes.c: Include hashtab.h.
2047         (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
2048         (adj_bytesize, adj_alignment, adj_format, new_adjust)
2049         (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
2050         (print_maybe_const_decl, emit_mode_adjustments): New.
2051         (known_modes): Rename to modes.
2052         (find_mode): Kill class argument; look up in hash table.
2053         (new_mode): Insert into hash table also.
2054         (new_adjust): New.
2055         (reset_float_format, make_partial_integer_mode)
2056         (make_vector_mode): Tweak error reporting.
2057         (reset_float_format): Correct type of fourth argument.
2058         (emit_insn_modes_h): Add #defines to help make mode_size,
2059         mode_base_align, and real_format_for_mode conditionally const.
2060         (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
2061         (emit_real_format_for_mode): Likewise, but temporarily disabled.
2062         (emit_insn_modes_c): Call emit_mode_adjustments.
2063         (main): Initialize modes_by_name.
2064         * Makefile.in: Update dependencies.
2065         * machmode.def: Document EXPR arguments and new ADJUST_* statements.
2066         * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
2067         declarations of mode_size and mode_base_align.  Declare
2068         init_adjust_machine_modes.
2069         * toplev.c (backend_init): Call init_adjust_machine_modes.
2070
2071 2003-10-15  Olivier Hainque  <hainque@act-europe.fr>
2072
2073         * genmodes.c (calc_wider_mode): Allocate enough room for all the
2074         entries we'll possibly assign in the sort buffer.
2075
2076 2003-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
2077
2078         * config.gcc (s390x-ibm-tpf*): New target.
2079         * doc/install.texi: Document it.
2080         * config/s390/t-tpf: New file.
2081         * config/s390/tpf.h: New file.
2082
2083 2003-10-15  Hans-Peter Nilsson  <hp@axis.com>
2084
2085         PR target/12598
2086         * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
2087         (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
2088         Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
2089         ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
2090         (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
2091         (define_split "*mov_sidesi_mem"+28, +29, +30): Use
2092         replace_equiv_address, not gen_rtx_MEM.
2093         * config/cris/cris.c (cris_mem_op): New match_operator function.
2094         (cris_notice_update_cc): Use replace_equiv_address, not
2095         gen_rtx_MEM.
2096         * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
2097
2098 2003-10-15  Bernardo Innocenti <bernie@develer.com>
2099
2100         * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
2101         MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
2102         definitions after the other flags.
2103
2104 2003-10-14  Ziemowit Laski  <zlaski@apple.com>
2105
2106         * c-parse.in (methoddef, methodproto): Call objc_add_method()
2107         instead of add_method().
2108         * objc/objc-act.c (objc_check_decl): Do not check for
2109         constant_string_type.
2110         (add_method): Rename to objc_add_method().
2111         (really_start_method): Call objc_add_method() instead of
2112         add_method().
2113         * objc/objc-act.h (add_method): Rename to objc_add_method().
2114
2115 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
2116
2117         * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
2118         (s390_slb_comparison): Likewise.
2119         * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
2120         New functions.
2121         * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
2122         and s390_slb_comparison.
2123         * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
2124         zSeries machines.
2125         ("*adddi3_31z", "*subdi3_31z"): New insns.
2126         ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
2127         "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
2128         New insns.
2129
2130 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
2131
2132         * configure.in: Clean up some feedback echoes.
2133         * configure: Regenerate.
2134
2135         * aclocal.m4: Properly quote names of macros being defined.
2136
2137         * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
2138
2139 2003-10-14  Steve Ellcey  <sje@cup.hp.com>
2140
2141         * config/ia64/ia64.c (ia64_expand_call): Force function address
2142         to DImode.
2143         * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
2144
2145 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
2146
2147         * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
2148         "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
2149         ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
2150         "*divsf3_ibm"): Likewise.
2151
2152 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
2153
2154         * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
2155         target_alias with target_noncanonical.
2156
2157 2003-10-14  Geoffrey Keating  <geoffk@apple.com>
2158
2159         * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
2160         and add case for machines where outgoing register parameters
2161         get stack space.
2162
2163         * config/darwin.c (machopic_indirect_data_reference): Use a scratch
2164         register when generating indirect address.
2165
2166 2003-10-14  Richard Earnshaw  <rearnsha@arm.com>
2167
2168         * arm.c (arm_addimm_operand): MODE arguemnt is unused.
2169         * arm.md (cbranchne_decr1): Fix bootstrap warning.
2170
2171 2003-10-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2172
2173         * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
2174         * fixinc/fixincl.x: Regenerate.
2175         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
2176         testcase.
2177         Fixes PR bootstrap/9330.
2178
2179 2003-10-13  Eric Christopher  <echristo@redhat.com>
2180
2181         * config/frv/frv.c (frv_adjust_field_align): Redo check for
2182         too wide bitfields.
2183         (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
2184         * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
2185         (SBSS_SECTION_ASM_OP): Remove.
2186         (EXTRA_SECTIONS): Remove in_sbss.
2187         (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
2188         (SBSS_SECTION_FUNCTION, sbss_section): Remove.
2189         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
2190         named_section.
2191
2192 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
2193
2194         * Makefile.in, configure.in, config.host, mkheaders.in: Replace
2195         uses of ${target_alias} for directory names (and other places which
2196         won't like the empty string) with ${target_noncanonical}.  Introduce
2197         call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
2198         available.
2199         * configure: Regenerate.
2200
2201 2003-10-13  Ian Lance Taylor  <ian@wasabisystems.com>
2202
2203         * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
2204         * config/arm/arm.md: For splits which rely on conditional moves,
2205         remove ! TARGET_IWMMXT condition.
2206
2207 2003-10-13  David S. Miller  <davem@redhat.com>
2208
2209         * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
2210         (find_cond_trap): Always increment if we emit a conditional
2211         trap insn.
2212
2213 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
2214
2215         * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
2216         with min-insn-modes.o.
2217         (STAGESTUFF): Add min-insn-modes.c.
2218         (genobjs): Add genmodes.o.
2219         (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
2220         (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
2221         (min-insn-modes.c, min-insn-modes.o): New rules.
2222         (s-modes): Also generate min-insn-modes.c.
2223         ($(BUILD_PREFIX_1)insn-modes.o): Kill.
2224         * genmodes.c (struct mode_data): Add format field.
2225         (blank_mode, validate_mode, complete_mode): Update to match.
2226         (make_scalar_mode): Separate into make_int_mode and make_float_mode.
2227         (_SCALAR_MODE): Kill.
2228         (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
2229         (emit_insn_modes_c_header): Adjust.
2230         (emit_min_insn_modes_c_header, emit_real_format_for_mode)
2231         (emit_min_insn_modes_c): New functions.
2232         (emit_insn_modes_c): Call emit_real_format_for_mode.
2233         (main): Add -m option to generate min-insn-modes.c.
2234         * machmode.h: Update documentation.  Add format argument to
2235         all uses of FLOAT_MODE.
2236         * real.c: Don't define real_format_for_mode here.
2237
2238         * dwarfout.c: Move default definition of PRINT_REG...
2239         * defaults.h: ...here.
2240         * print-rtl.c: Include tm_p.h.
2241         (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
2242         Kill.
2243         (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG.  But surround
2244         this entire block with #ifndef GENERATOR_FILE.
2245         * regclass.c: Unconditionally define reg_names.
2246         * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
2247         Don't define DEBUG_REGISTER_NAMES.
2248         * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
2249         redefinition of REGISTER_NAMES.
2250         * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
2251
2252         * combine.c: Change all preprocessor conditionals on
2253         EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
2254         for clarity.
2255         * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
2256         * configure.in: Don't define EXTRA_CC_MODES.
2257         * configure, config.in: Regenerate.
2258         * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
2259
2260         * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
2261         May assume that GET_MODE_CLASS is accurate for extra CC modes
2262         at all times.
2263
2264         * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
2265         number of arguments to aggregate_value_p.
2266
2267         * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
2268         * machmode.def: Explain ARCH-modes.def.  Document
2269         RESET_FLOAT_FORMAT.  Improve commentary on various mode
2270         clusters.  Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
2271         XF, or TF modes here.  Remove backward-compatibility
2272         definition of CC.
2273
2274         * config/alpha/alpha-modes.def: New file; define TF mode.
2275         * config/arc/arm-modes.def: Define XF mode.
2276         * config/c4x/c4x-modes.def: Define QF and HF modes.  Unset
2277         float format for SF and DF modes.
2278         * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
2279         * config/i386/i386-modes.def: Define XF and TF modes.
2280         * config/i960/i960-modes.def: Define TF mode.
2281         * config/ia64/ia64-modes.def: Define TF and OI modes.
2282         * config/m68k/m68k-modes.def: New file; define XF mode.
2283         * config/mips/mips-modes.def: New file; define TF mode, reset
2284         formats for SF and DF modes.
2285         * config/pa/pa-modes.def: Define TF mode.
2286         * config/rs6000/rs6000.c: Define TF and PSI modes.
2287         * config/s390/s390-modes.def: Define OI mode.
2288         * config/sh/sh-modes.def: New file; define PSI mode.
2289         * config/sparc/sparc-modes.def: Define TF mode.
2290         * config/vax/vax-modes.def: New file; reset formats for SF and
2291         DF modes.
2292
2293         * config/c4x/c4x.c (c4x_override_options): No need to mess
2294         with real_format_for_mode or set REAL_MODE_FORMATs.
2295         (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
2296         variable.
2297         * config/i386/i386.c (override_options): No need to set
2298         REAL_MODE_FORMATs here.
2299         * config/i960/i960.c (i960_initialize): Likewise.
2300         * config/m68k/m68k.c (m68k_override_options): Likewise.
2301         * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
2302         for TFmode only if not the default.
2303         * config/mips/mips.c (override_options): Likewise.
2304         * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
2305         DFmode only if not the default.
2306
2307         * config/i370/i370.h (RET_REG): Don't consider TFmode.
2308         * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
2309         * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
2310         of modes that don't appear anywhere in the machine description.
2311
2312         * config/arc/arc-modes.def, config/arm/arm-modes.def
2313         * config/c4x/c4x-modes.def, config/frv/frv-modes.def
2314         * config/i386/i386-modes.def, config/i960/i960-modes.def
2315         * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
2316         * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
2317         * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
2318         * config/sparc/sparc-modes.def: Convert to new style for
2319         declaring extra CC modes.
2320
2321 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
2322
2323         * cpplex.c (_cpp_clean_line): In the common case of a line
2324         with no trigraphs and no \-newline, avoid writing to memory.
2325         (_cpp_skip_block_comment): Use a local 'cur' pointer instead
2326         of the buffer member.  Make c an uchar to avoid unnecessary
2327         sign extensions.
2328
2329 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
2330
2331         * configure.in: Remove unnecessary test.
2332         * configure: Regenerate.
2333
2334         * configure.in: Fix grammatical error.  Move UWIN host error to...
2335         * config.host: Here.
2336         * configure: Regenerate.
2337
2338 2003-10-13  Andreas Krebbel  <krebbel1@de.ibm.com>
2339
2340         * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
2341         "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
2342         of flag_unsafe_math_optimizations.
2343         * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
2344         "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
2345         fused-madd and no-fused-madd.
2346         * doc/invoke.texi: Documented the new options fused-madd and
2347         no-fused-madd for S/390.
2348
2349 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
2350
2351         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
2352         MASK_ALIGN_NATURAL if rs6000_alignment_string not given.  Don't
2353         assign DEFAULT_ABI.
2354         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
2355         * config/rs6000/rs6000.c: Formatting.
2356         (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
2357         when rs6000_alignment_string given.
2358
2359 2003-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2360
2361         PR target/12538
2362         * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
2363         (sparc_flat_must_save_register_p): New function to decide whether
2364         a register must be saved/restored in the function prologue/epilogue.
2365         (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
2366
2367 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
2368
2369         * config/avr/avr.c, config/avr/avr-protos.h: Convert to
2370         ISO C90 function declarations and definitions.
2371         * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
2372
2373 2003-10-12  Nathanael Nerode  <neroden@gcc.gnu.org>
2374
2375         * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
2376         config files which do the same thing.
2377         * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
2378         config/freebsd6.h: Remove now unnecessary files.
2379
2380 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
2381
2382         * c-common.c (c_common_truthvalue_conversion): Warn if the
2383         address of a non-weak function is used as a truth value.
2384
2385 2003-10-12  Kazu Hirata  <kazu@cs.umass.edu>
2386
2387         * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
2388         a literal.
2389         * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
2390         instead of a literal.
2391
2392 2003-10-12  Hans-Peter Nilsson  <hp@bitrange.com>
2393
2394         * doc/extend.texi (Function Attributes): Mention the exceptional
2395         path for noreturn-marked functions.
2396
2397 2003-10-12  Jan Hubicka  <jh@suse.cz>
2398
2399         * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
2400         warning.
2401
2402 2003-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
2403
2404         * config/i386/i386.c (x86_this_parameter): Fix typo.
2405
2406 2003-10-11  Jan Hubicka  <jh@suse.cz>
2407
2408         * Makefile.in (web.o): New.
2409         * web.c: New file.
2410         * rtl.h (web_main): Declare.
2411         * timervar.def (TV_WEB): New.
2412         * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
2413         (rest_of_hanle_web): New.
2414         (flag_web): New static variable.
2415         (lang_independent_options): Add "web".
2416         (rest_of_compilation): Call rest_of_handle_web.
2417         * invoke.texi (-fweb): Document.
2418         * common.opt (fweb): New.
2419         * flags.h (flag_web): New.
2420         * opts.c (decode_options): Set flag_web at -O3.
2421
2422         * passes.texi (web construction):  Document.
2423         * invoke.texi (-O3): Document that -fweb is enabled.
2424
2425         * regrename.c (regrename_optimize): Deal better with situation when
2426         replacement failed.
2427
2428         * sched-ebb.c: Include params.h and profile.h
2429         (schedule_ebbs):  Use tracer parameters to discover superblocks
2430         * Makefile.in (sched-ebb.o):  Add dependencies.
2431
2432 2003-10-11  Roger Sayle  <roger@eyesopen.com>
2433
2434         * fold-const.c (negate_mathfn_p): New function to determine whether
2435         a built-in mathematical function is sign preserving, f(-x) == -f(x).
2436         Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
2437         (tree_swap_operands_p): Change API to take an additional argument
2438         indicating that the swapped operands evaluate in reverse order.
2439         Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
2440         operand side-effects or we don't care about flag_evaluation_order.
2441         (reorder_operands_p): New function to check whether its safe to
2442         evaluate the given operands in reverse order.
2443         (negate_expr_p):  We can always negate integer constants unless
2444         we honor -ftrapv and the signed type would overflow.  Only allow
2445         -(A-B) into B-A if reorder_operands_p says that its OK.  Allow
2446         negation of COMPLEX_CST if both real and imaginary parts can be
2447         negated.  Allow negation through floating point extensions and
2448         sign-preserving built-in functions.
2449         (negate_expr):  Move the code to negate integers from "fold" to
2450         here.  Always negate integer constants unless we honor -ftrapv
2451         and the signed type would overflow.  Always negate real constants
2452         unless we honor -ftrapping-math.  Only convert -(A-B) into B-A
2453         if allowed by reorder_operands_p.  Add support for COMPLEX_CST.
2454         Optimize negation through floating point extensions and
2455         sign-preserving built-in functions (as defined by negate_mathfn_p).
2456         (fold): Adjust calls to tree_swap_operands_p.
2457         (fold <NEGATE_EXPR>): Move the remaining negation optimizations
2458         to negate_expr_p/negate_expr.
2459         (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
2460         allowed to convert (-A) - B into (-B) - A.
2461
2462 2003-10-11  Roger Sayle  <roger@eyesopen.com>
2463
2464         * builtins.c (expand_builtin_strcmp): Defend against the possibility
2465         that gen_cmpstrsi may fail: Stabilize the argument list against
2466         re-evaluation and expand the library call directly using this saved
2467         argument list if a cmpstrsi sequence can't be generated.
2468         (expand_builtin_strncmp): Likewise.
2469
2470         * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
2471
2472 2003-10-11  Roger Sayle  <roger@eyesopen.com>
2473
2474         PR optimization/12260
2475         * simplify-rtx.c (simplify_unary_operation): Simplify all unary
2476         operations through CONST nodes.  Optimize (neg (plus X C)) as
2477         (minus -C X) for constant values C.
2478         (simplify_binary_operation): Optimize (minus (neg X) C) as
2479         (minus -C X) for constant values C.
2480         (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
2481         instead create (minus -C X).
2482
2483 2003-10-11  Roger Sayle  <roger@eyesopen.com>
2484
2485         * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
2486         safe_from_p for us, once it chooses an evaluation order.
2487         (expand_expr <MULT_EXPR>): Likewise.
2488         (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise.  If expand_operands
2489         places the second operand in "target", swap the operands.
2490         (do_store_flag): Let expand_operands call safe_from_p for us.
2491
2492 2003-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
2493
2494         PR optimization/12544
2495         * function.c (put_var_into_stack): Don't generate ADDRESSOFs
2496         for DECL_NONLOCAL decls.
2497
2498 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
2499
2500         * expr.c: Follow spelling conventions.
2501         * final.c: Likewise.
2502         * optabs.c: Likewise.
2503         * sched-deps.c: Likewise.
2504         * sdbout.c: Likewise.
2505
2506 Sat Oct 11 12:24:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
2507
2508         * varasm.c (notice_global_symbol):  Fix handling of variables; avoid
2509         re-computing of variable.
2510
2511 2003-10-11  Richard Henderson  <rth@redhat.com>
2512
2513         * config/alpha/alpha.c (alpha_return_in_memory): Rename from
2514         return_in_memory, make static, change signature to match target hook.
2515         (alpha_setup_incoming_varargs): Make static, change signature to
2516         match target hook, add code for vms and unicos.
2517         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
2518         TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
2519         TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
2520         TARGET_STRICT_ARGUMENT_NAMING,
2521         TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
2522         * config/alpha/alpha-protos.h: Update.
2523         * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
2524         PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
2525         SETUP_INCOMING_VARARGS): Remove.
2526         * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
2527         * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
2528
2529 2003-10-11  Ian Lance Taylor  <ian@wasabisystems.com>
2530
2531         * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
2532
2533 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
2534
2535         * config/m68k/lb1sf68.asm: Follow spelling conventions.
2536         * config/m68k/m68k.c: Likewise.
2537         * config/m68k/m68k.h: Likewise.
2538         * config/m68k/m68k.md: Likewise.
2539
2540 2003-10-11  Roger Sayle  <roger@eyesopen.com>
2541
2542         * builtins.c (expand_builtin_memcpy): Optimize case when the two
2543         pointer arguments are the equal, non-volatile and side-effect free.
2544         (expand_builtin_mempcpy): Likewise.
2545         (expand_builtin_memmove): Likewise.
2546         (expand_builtin_strcpy): Likewise.
2547         (expand_builtin_memcmp): Likewise.
2548         (expand_builtin_strcmp): Likewise.
2549         (expand_builtin_strncmp): Likewise.
2550
2551 2003-10-11  Roger Sayle  <roger@eyesopen.com>
2552
2553         * combine.c (apply_distributive_law): Enable "distributive" floating
2554         point optimizations with -funsafe-math-optimizations.
2555
2556 2003-10-11  Andrew Pinski <pinskia@physics.uc.edu>
2557
2558         * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
2559
2560 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
2561
2562         * config/m68k/m68k-protos.h: Remove the prototype for
2563         finalize_pic.
2564
2565 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
2566
2567         * config/m68k/m68k.c: Fix comment typos.
2568
2569 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
2570
2571         * config/m68k/m68k-protos.h (use_return_insn): Change return type from
2572         int to bool.
2573         * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
2574         (current_frame): New global var.
2575         (m68k_compute_frame_layout): Cache computations in current_frame.
2576         (m68k_initial_elimination_offset): Use values from current_frame
2577         instead of recomputing them.
2578         (use_return_insn): Likewise.
2579         (m68k_output_function_prologue): Likewise.
2580         (m68k_output_function_epilogue): Likewise.
2581         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
2582         inside the block for __pic__.
2583
2584 2003-10-11  Peter Barada <peter@baradas.org>
2585             Bernardo Innocenti  <bernie@develer.com>
2586
2587         * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
2588         (m68k_save_reg): Add boolean parameter `interrupt_handler'.
2589         (m68k_interrupt_function_p): New function.
2590         (m68k_handle_fndecl_attribute): Ditto.
2591         (m68k_compute_frame_layout): Ditto.
2592         (m68k_attribute_table): Define back-end specific attributes.
2593         (m68k_output_function_epilogue): Emit RTE instruction for interrupt
2594         functions.
2595
2596 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
2597
2598         * config/m68k/t-uclinux: New target Makefile fragment.
2599         * config/m68k/uclinux.h: New target macro file.
2600         * config.gcc (m68k-*-uclinux): New target definition.
2601
2602 2003-10-10  Roger Sayle  <roger@eyesopen.com>
2603
2604         * builtins.c (builtin_mathfn_code): Generalize to check whether
2605         the call is to any built-in function by comparing the call's
2606         argument list against the builtin decl's function type.
2607
2608 2003-10-10  Roger Sayle  <roger@eyesopen.com>
2609
2610         * cse.c (constant_pool_entries_regcost): New global variable to
2611         hold the register cost component of constant_pool_entries_cost.
2612         (fold_rtx): Calculate constant_pool_entries_regcost at the same
2613         time as constant_pool_entries_cost.
2614         (cse_insn): Set both src_folded_cost and src_folded_regcost from
2615         constant_pool_entries_cost and constant_pool_entries_regcost.
2616         (cse_main): Initialize constant_pool_entries_regcost to zero.
2617
2618         * optabs.c (expand_unop): Attach a REG_EQUAL note describing
2619         the semantics of the sequence of bit operations used to negate
2620         a floating-point value.
2621         (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
2622         the semantics of the bit operations used to abs a floating point
2623         value.
2624
2625 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
2626             Paul Dale  <pauli@snapgear.com>
2627
2628         * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
2629         support.
2630         * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
2631         -fpic, -fPIC, -msep-data and -mid-shared-library.
2632         * config/m68k/m68k.c (m68k_library_id_string): New global variable.
2633         (override_options): Add -msep-data and -mshared-library-id support.
2634         (m68k_output_function_prologue): Generate code to load A5 for
2635         TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
2636         (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
2637         (m68k_output_pic_call): New function.
2638         * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
2639         (TARGET_ID_SHARED_LIBRARY): Ditto.
2640         (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
2641         * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
2642         (call_value): Likewise.
2643
2644 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
2645
2646         * gengenrtl.c (find_formats, genheader): Make i an unsigned
2647         int, remove cast of NUM_RTX_CODE.
2648         * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
2649         entire file.  Remove the #ifs on GET_MODE_MASK etc and
2650         GET_MODE_WIDER_MODE etc.
2651
2652 2003-10-10  Eric Christopher  <echristo@redhat.com>
2653
2654         * lcm.c (optimize_mode_switching): Change NORMAL_MODE
2655         to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
2656         that set mode.
2657         * config/sh/sh.h (MODE_ENTRY): New macro.
2658         (MODE_EXIT): Ditto.
2659         (MODE_AFTER): Ditto.
2660         * config/sh/sh.md: Change for MODE_AFTER. Add
2661         fp_set attribute.
2662         * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
2663
2664 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
2665
2666         * genmodes.c, mode-classes.def: New files.
2667         * machmode.def: Rewritten to genmodes.c interface.
2668         * Makefile.in (extra_modes_file): New substitution variable.
2669         (MACHMODE_H): No longer includes machmode.def or
2670         @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
2671         (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
2672         (OBJS-common): Add insn-modes.o.
2673         (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
2674         genmodes$(build_exeext).
2675         (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
2676         genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
2677         (s-genrtl): Don't depend on $(RTL_BASE_H).
2678         (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
2679         or $(RTL_BASE_H); just rtl.def.
2680         * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
2681         real.h.  Give fake definition of CONST_DOUBLE_FORMAT and
2682         substitute definition of NUM_RTX_CODE.  Add casts to avoid
2683         warnings.
2684         * machmode.h: Include insn-modes.h, not machmode.def.  Include
2685         mode-classes.def to define enum mode_class.  Tweak definitions
2686         of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
2687         GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
2688         (inner_mode_array): Renamed mode_inner.
2689         (mode_base_align): New.
2690         * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
2691         mode_unit_size, mode_wider_mode, mode_mask_array,
2692         inner_mode_array, class_narrowest_mode): Delete definitions.
2693         * stor-layout.c (get_mode_alignment): Use mode_base_align.
2694         * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
2695         and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
2696
2697         * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
2698         No need to define BITS_PER_UNIT.
2699
2700 2003-10-10  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2701
2702         * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
2703         (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
2704         (ia64_initialize_trampoline): If not using GAS, declare trampoline
2705         as global.
2706         * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
2707         (ASM_OUTPUT_DEBUG_LABEL): Likewise.
2708
2709         * stor-layout.c (compute_record_mode): Don't force BLKmode if
2710         field is zero-length BLKmode.
2711         * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
2712         zero-size references.
2713
2714         * combine.c (distribute_links): Properly test for REG being set.
2715
2716         * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
2717         gen_lowpart and company except for REG.
2718
2719 2003-10-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2720
2721         * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
2722
2723 2003-10-10  Nathanael Nerode  <neroden@gcc.gnu.org>
2724
2725         * config.gcc (mips*-*-netbsd*): Remove content-free line.
2726
2727 2003-10-10  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
2728
2729         * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
2730         gcov_position_t and gcov_type.
2731
2732 2003-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2733
2734         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
2735         * configure: Regenerate.
2736
2737 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
2738
2739         * config/h8300/h8300.md (define_asm_attributes): Specify
2740         the length of an asm insn more precisely.
2741
2742 2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2743
2744         * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
2745
2746 2003-10-09  Bob Wilson  <bob.wilson@acm.org>
2747
2748         * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
2749         FP register number to 48 and MAC16 accumulator to 0x210.
2750
2751 2003-10-09  Nathanael Nerode  <neroden@gcc.gnu.org>
2752
2753         * config.gcc: Remove redundant thread_file setting clauses for
2754         various *-*-linux* targets.
2755
2756 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
2757
2758         * config/h8300/h8300.md (define_asm_attributes): New.
2759
2760 2003-10-09  Roger Sayle  <roger@eyesopen.com>
2761
2762         * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
2763         to the comparison, as emit_libcall_block calls copy_rtx on equiv.
2764
2765 2003-10-09  Dorit Naishlos  <dorit@il.ibm.com>
2766
2767         * haifa-sched.c (ok_for_early_schedule): New function.
2768         (early_queue_to_ready): New function.
2769         (schedule_block): Allow early removal of insns from Q.
2770         (schedule_insn): Update INSN_TICK in case of premature
2771         issue.
2772         * common.opt (sched_stalled_insns): New flag.
2773         (sched_stalled_insns_dep): New flag.
2774         * flags.h: Same above flags.
2775         * opts.c: Same as above.
2776         * toplev.c: Same as above.
2777         * target.h (targetm.sched.is_costly_dependence): New
2778         hook.
2779         * target-def.h: Same as above.
2780         * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
2781         Support new flag -msched-costly-dep.
2782         (DEFAULT_SCHED_COSTLY_DEP): Define.
2783         * config/rs6000/rs6000.c:
2784         (rs6000_is_costly_dependence): New function.
2785         (is_load_insn, is_store_insn): New functions.
2786         (is_load_insn1, is_store_insn1, is_mem_ref): New
2787         functions.
2788         * doc/invoke.texi (-fsched-stalled-insns-dep)
2789         (-fsched-stalled-insns, -msched-costly-dep): Document
2790         options.
2791         * doc/tm.texi (is_costly_dependence): Define new
2792         scheduler target hook.
2793
2794 2003-10-09  Jason Merrill  <jason@redhat.com>
2795
2796         PR c++/6392
2797         * c-common.c (c_build_qualified_type): Look through arrays first.
2798         (c_apply_type_quals_to_decl): Look through arrays.
2799
2800         * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
2801         types with constructors.
2802
2803         * coverage.c (build_ctr_info_value): Use build_decl to make a
2804         VAR_DECL.
2805         (create_coverage): Likewise.
2806
2807         * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
2808         here.
2809         (expand_asm_operands): Not here.
2810         (parse_input_constraint): No longer static.
2811         * tree.h: Declare it.
2812
2813 2003-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2814
2815         * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
2816         libgcc_s.so.
2817         (SHLIB_INSTALL): Likewise.
2818
2819 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
2820
2821         * doc/install.texi: Remove reference to removed 'pthreads' thread
2822         option.
2823
2824 2003-10-08  Aldy Hernandez  <aldyh@redhat.com>
2825
2826         * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
2827         operand 2.
2828
2829 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
2830
2831         * config.gcc: Don't accept --enable-threads=pthreads.  Clean
2832         up related case statements.
2833         * configure.in: Don't accept --enable-threads=pthreads,
2834         decosf1, mach, or os2 (none of which work anyway).  Alphabetize
2835         supported thread files in case clause.
2836         * configure: Regenerate.
2837
2838 2003-10-08  Geoffrey Keating  <geoffk@apple.com>
2839
2840         * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
2841         definition to above SPARC_STACK_BOUNDARY_HACK.
2842
2843 2003-10-08  Jason Merrill  <jason@redhat.com>
2844
2845         * c-pretty-print.c (pp_c_postfix_expression)
2846         <COMPOUND_LITERAL_EXPR>: Fix thinko.
2847
2848 2003-10-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2849
2850         * mklibgcc.in: Don't hide undefined or typeless symbols.
2851
2852 2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2853
2854         PR optimization/12142
2855         * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
2856         uses of the register in the SET_SRC.  Remove unnecessary argument.
2857         * pa.c (legitimize_pic_address): Before reload, use a scratch register
2858         for the intermediate result in loading the address of a SYMBOL_REF.
2859         Set the MEM_NOTRAP_P flag for the MEM.  Add a REG_EQUAL to the insn
2860         which loads the SYMBOL_REF address.
2861
2862 2003-10-08  Timo Kokkonen  <tjko@iki.fi>
2863             Eric Botcazou  <ebotcazou@libertysurf.fr>
2864
2865         PR bootstrap/12490
2866         * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
2867         to define the size of the extern_C_braces array.  Set it to 200.
2868         (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
2869
2870 2003-10-08  Carlo Wood  <carlo@alinoe.com>
2871
2872         * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
2873         a space after the -o option.  flex 2.5.31 understands both, with
2874         and without the space. Removed that space.
2875
2876 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
2877
2878         * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
2879         (compute_frame_size): Initialize it.  Remove the .cprestore slot
2880         from args_size.
2881         (mips_output_function_prologue): Simplify accordingly.
2882         (mips_debugger_offset): Change the mips16 frame pointer offset from
2883         current_function_outgoing_args to cfun->machine->frame.args_size.
2884         (mips_initial_elimination_offset): Likewise.
2885         (mips_expand_prologue): Likewise.
2886         (mips_expand_epilogue): Likewise.
2887
2888 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
2889
2890         * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
2891         (EXTRA_MEMORY_CONSTRAINT): Define.
2892         (CAN_ELIMINATE): Remove lwu workaround.
2893         * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
2894         Use a 'W' constraint for the source operand.
2895
2896 2003-10-08  Kazu Hirata  <kazu@cs.umass.edu>
2897
2898         * genopinit.c (main): Output code to declare undefined
2899         variables.
2900
2901 2003-10-07  Kelley Cook  <kcook@gcc.gnu.org>
2902
2903         * gengtype-lex.l: Remove -Wtraditional cruft.
2904         * Makefile.in (gengtype-lex.c): Likewise.
2905
2906 2003-10-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2907
2908         * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
2909
2910 2003-10-07  Jason Merrill  <jason@redhat.com>
2911
2912         PR c++/12519
2913         * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
2914         it isn't a decl.
2915
2916 2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
2917
2918         * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
2919         not overridden.
2920         Fixes PR bootstrap/12173.
2921
2922 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
2923
2924         * errors.c: Don't include coretypes.h or tm.h.
2925         (trim_filename): Use IS_DIR_SEPARATOR.
2926         * Makefile.in: Update dependencies of errors.o and
2927         $(BUILD_PREFIX_1)errors.o.
2928
2929 2003-10-07  Geoffrey Keating  <geoffk@apple.com>
2930
2931         * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
2932         account when aligning arguments.
2933         * calls.c (STACK_POINTER_OFFSET): Move default from here ...
2934         * defaults.h (STACK_POINTER_OFFSET): ... to here.
2935         * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
2936         it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
2937         (SPARC_STACK_BOUNDARY_HACK): Define.
2938         * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
2939         arrange for vector parameters to varargs functions to be passed
2940         in both memory and GPRs when appropriate.
2941         (rs6000_va_arg): Vector arguments passed in memory are 16-byte
2942         aligned.
2943
2944         * hooks.c (hook_bool_tree_true): New.
2945         (hook_rtx_tree_int_null): New.
2946         (hook_rtx_rtx_null): Use NULL, not 0.
2947         * hooks.h: Add 'extern' to everything.
2948         (hook_bool_tree_true): New.
2949         (hook_rtx_tree_int_null): New.
2950         * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
2951         * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
2952         * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
2953         prototype.
2954         * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
2955         (setup_incoming_varargs): Prototype.
2956         (TARGET_PROMOTE_FUNCTION_ARGS): Define.
2957         (TARGET_PROMOTE_FUNCTION_RETURN): Define.
2958         (TARGET_STRUCT_VALUE_RTX): Define.
2959         (TARGET_RETURN_IN_MEMORY): Define.
2960         (TARGET_SETUP_INCOMING_VARARGS): Define.
2961         (TARGET_STRICT_ARGUMENT_NAMING): Define.
2962         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
2963         (init_cumulative_args): Use rs6000_return_in_memory.
2964         (setup_incoming_varargs): Make 'static'.
2965         * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
2966         (PROMOTE_FUNCTION_RETURN): Delete.
2967         (STRUCT_VALUE): Delete.
2968         (RETURN_IN_MEMORY): Delete.
2969         (SETUP_INCOMING_VARARGS): Delete.
2970
2971 2003-10-07  Gerald Pfeifer  <gerald@pfeifer.com>
2972
2973         * doc/invoke.texi (Warning Options): Simplify and clarify the
2974         descriptions of -Wnonnull and -Winit-self.
2975
2976 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
2977
2978         * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
2979         indicees for floating-point conversersion libcalls.
2980
2981 2003-10-07  Nathanael Nerode  <neroden@gcc.gnu.org>
2982
2983         * Makefile.in: Add more comments separating large conceptually
2984         separate sections.
2985
2986         * configure.in: Clean up thread file logic.
2987         * configure: Regenerate.
2988
2989 2003-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
2990
2991         * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
2992         (switch_to_section): Handle in_readonly_data.
2993         * config/i386/winnt.c (i386_pe_asm_named_section): Handle
2994         readonly data.
2995
2996 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
2997
2998         * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
2999         it.
3000         (cbranchne_decr1): New Thumb pattern.
3001         * arm.c (arm_addimm_operand): New insn predicate.
3002         * arm-protos.h: Add a prototype for it.
3003         * arm.h (PREDICATE_CODES): Add it.
3004
3005 2003-10-07  Dorit Naishlos <dorit@il.ibm.com>
3006
3007         * sched-int.h (sched_info): New field
3008         sched_max_insns_priority.
3009         * sched-rgn.c (init_ready_list): Add invocations to
3010         targetm.sched.adjust_priority.
3011         (sched_max_insns_priority): Init new field.
3012         * sched-ebb.c (sched_max_insns_priority): Init new field.
3013         * haifa-sched.c (set_priorities): Set
3014         sched_info->sched_max_insns_priority.
3015         * config/rs6000/rs6000.h:
3016         (rs6000_sched_restricted_insns_priority_str): Support new
3017         flag -mprioritize-restricted-insns.
3018         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
3019         * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
3020         function.
3021         (rs6000_adjust_priority): Change priority of restricted
3022         insns, using above new function and new flag.
3023         * doc/invoke.texi (-mprioritize-restricted-insns): Document
3024         new option.
3025
3026 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
3027
3028         * expr.c (cmpstr_optab, cmpmem_optab): New.
3029         * genopinit.c: Initialize them.
3030         * optabs.h: Declare them.
3031         * optabs.c (init_optabs): Clear them.
3032         (prepare_cmp_insn):  Use cmpstr_optab and cmpmem_optab to find
3033         block memory compare insns, not conditional chains.  Restructure
3034         the fallback generation of a call to memcmp/bcmp for better
3035         readability.
3036
3037 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
3038
3039         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
3040         (mips_save_restore_fn): New typedef.
3041         (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
3042         (mips_set_frame_expr, mips_frame_set): Move above prologue code.
3043         (save_restore_insns): Remove, replacing with...
3044         (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
3045         (mips_save_reg, mips_restore_reg): New function.
3046         (mips_expand_prologue, mips_expand_epilogue): Rework.
3047         * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
3048         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
3049         (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
3050
3051 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
3052
3053         * config/mips/mips.c (mips_expand_prologue): Remove unused
3054         traversal of function arguments.
3055
3056 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
3057
3058         * doc/invoke.texi: Remove documentation of -mentry.
3059         * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
3060         (override_options, mips_save_reg_p): Remove handling.
3061         (compute_frame_size, mips_output_function_prologue): Likewise.
3062         (mips_expand_prologue, mips_expand_epilogue): Likewise.
3063         * config/mips/mips.h (mips_entry_string): Remove declaration.
3064         (TARGET_OPTIONS): Remove -mentry.
3065         * config/mips/mips16.S: Remove mention of -mentry.
3066
3067 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
3068
3069         * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
3070         (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
3071         (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
3072         (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
3073         (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
3074         (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
3075         (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
3076         (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
3077         (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
3078         (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
3079         (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
3080         (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
3081         (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
3082         (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
3083         (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
3084         (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
3085         (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
3086         (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
3087         (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
3088         (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
3089         (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
3090         (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
3091         (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
3092         (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
3093         (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
3094         (fixunstfti_libfunc): Delete.
3095         * optabs.h (struct optab_handlers): Break out of struct optab.
3096         (struct convert_optab, convert_optab, enum convert_optab_index,
3097         convert_optab_table, sext_optab, zext_optab, trunc_optab,
3098         sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
3099         sfloat_optab, ufloat_optab): New.
3100         (set_conv_libfunc): Prototype.
3101         (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
3102         (trunc_optab): Renamed btrunc_optab.
3103         * builtins.c (expand_builtin_mathfn): Update to match.
3104         * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
3105         (convert_optab_table, new_convert_optab, init_convert_optab)
3106         (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
3107         (set_conv_libfunc): New.
3108         (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
3109         (expand_float, expand_fix): Use new conversion optabs,
3110         not old insn code tables or long chains of ifs.
3111         (init_optabs): No need to clear old insn code tables.
3112         Initialize the new optabs, not the old libfunc array entries.
3113         Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
3114         * genopinit.c: Initialize conversion optabs, not the
3115         former insn code tables.  Remove unnecessary casts.
3116         Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
3117         * expr.c (convert_move): Remove redundant check that
3118         to_real==from_real.  Use the conversion optabs instead
3119         of long chains of tests of modes.  Move partial-integer-mode
3120         interconversion above all integer conversion.  Do not recurse
3121         on a value forced into a register in the original mode.
3122
3123         * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
3124         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
3125         * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
3126         in new conversion optabs; do not reference the old libfunc
3127         array entries.  No need to include libfuncs.h.
3128
3129 2003-10-06  Roger Sayle  <roger@eyesopen.com>
3130
3131         * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
3132         point comparison sequence with a REG_EQUAL note that describes
3133         the comparison's semantics.
3134
3135 2003-10-06  Roger Sayle  <roger@eyesopen.com>
3136
3137         * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
3138         of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
3139
3140 2003-10-06  Roger Sayle  <roger@eyesopen.com>
3141             Zack Weinberg  <zack@codesourcery.com>
3142
3143         * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
3144         instruction by using LCT_CONST and then calling emit_libcall_block
3145         ourselves.
3146
3147 2003-10-06  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3148
3149         PR optimization/11974
3150         * optabs.c (expand_unop): Promote libcall outmode according to
3151         hard_libcall_value.
3152
3153 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
3154
3155         * real.h (REAL_MODE_FORMAT): New macro.
3156         * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
3157         * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
3158         * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
3159         * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
3160         * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
3161         directly to real_format_for_mode array, wherever possible.
3162
3163 2003-10-06  Devang Patel  <dpatel@apple.com>
3164
3165         * dwarf2out.c (is_main_source): Remove variable.
3166         (dwarf2out_start_source_file): Do not check is_main_source.
3167         Do not reset is_main_source.
3168         (dwarf2out_init): Do not initialize is_main_source.
3169
3170 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3171
3172         * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
3173         (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
3174         introduced some multi-line prototypes.
3175         * fixinc/fixincl.x: Regenerate.
3176
3177 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
3178
3179         * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
3180         * config/mips/mips.c (stack_operand): New predicate.
3181         * config/mips/mips.md: Use it for the destination of mips16 insns
3182         that store $31.
3183
3184 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
3185
3186         * config/mips/mips.md (*lowsi): Renamed from lowsi.
3187         (*lowdi): Likewise lowdi.
3188         (*lowsi_mips16, *lowdi_mips16): New patterns.
3189         * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
3190         mips16 CONSTANT_RELOC handling.
3191         (mips_delegitimize_address): Adjust for new sdata representation.
3192
3193 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
3194
3195         * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
3196         skip any remaining register arguments.
3197
3198 2003-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
3199
3200         * reload.c (find_reloads_subreg_address): Use correct offset for
3201         paradoxical MEM subregs on big-endian targets.
3202
3203 2003-10-06  Andrew Haley  <aph@redhat.com>
3204
3205         * tree.c (get_callee_fndecl): Call
3206         lang_hooks.lang_get_callee_fndecl.
3207         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
3208         (lhd_get_callee_fndecl): New.
3209
3210 2003-10-06  Andrew Pinski  <apinski@apple.com>
3211
3212         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
3213         error in calculating the length of the string.
3214         (machopic_stub_name): Likewise.
3215
3216 2003-10-06  Roger Sayle  <roger@eyesopen.com>
3217
3218         * optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
3219         describing the return value of the comparison libcall to the
3220         REG_RETVAL instruction of the emitted sequence.
3221
3222 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
3223
3224         PR optimization/12215
3225         * cse.c (cse_set_around_loop): Emit the move at the beginning
3226         of the next basic block for trapping sets.
3227
3228 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
3229
3230         PR optimization/11637
3231         * combine.c (adjust_for_new_dest): New function to adjust the
3232         notes and LOG_LINKS when the dest of an insn has changed.
3233         (try_combine): Use it when deleting the first insn of a two-insn
3234         parallel or splitting a two-load parallel.
3235
3236 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
3237
3238         * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
3239         if TARGET_EXPLICIT_RELOCS.
3240
3241 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
3242
3243         PR bootstrap/12512
3244         * Makefile.in (info): Use double-colon rules.
3245         (dvi): Likewise.
3246         (generated-manpages): Likewise.
3247         * configure.in: Do not create lang.info, lang.dvi, or
3248         lang.generated-manpages hooks.
3249         * configure: Regenerated.
3250         * objc/Make-lang.in (objc.info): Remove.
3251         (objc.dvi): Remove.
3252         (objc.generated-manpages): Remove.
3253         * doc/sourcebuild.texi: Update description of info, dvi, and
3254         generated-manpages hooks.
3255
3256 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
3257
3258         * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
3259
3260 2003-10-05  Andrew Pinski  <apinski@apple.com>
3261
3262         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
3263         errors in memcpy destinations.
3264         (machopic_stub_name): Likewise.
3265
3266 2003-10-05  Andrew Pinski <apinski@apple.com>
3267
3268         * config/darwin.c (machopic_non_lazy_ptr_name):
3269         Change strcat to memcpy and add length together.
3270         (machopic_stub_name): Likewise.
3271
3272 2003-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
3273
3274         * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
3275         signal trampoline codes.
3276
3277 2003-10-05  Chris Demetriou  <cgd@broadcom.com>
3278
3279         * config/mips/mips.md (*divsf3): Move description of
3280         SB-1 F2 erratum from here to...
3281         (divsf3): Here.  Disable if TARGET_FIX_SB1 is set and
3282         flag_unsafe_math_optimizations is not.
3283
3284 2003-10-05  Aldy Hernandez  <aldyh@redhat.com>
3285
3286         * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
3287         TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
3288
3289 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
3290
3291         * c-pretty-print.c: Fix comment typos.
3292         * c-pretty-print.h: Likewise.
3293         * calls.c: Likewise.
3294         * cfgloopmanip.c: Likewise.
3295         * cgraphunit.c: Likewise.
3296         * cppfiles.c: Likewise.
3297         * final.c: Likewise.
3298         * function.c: Likewise.
3299         * gcov-io.h: Likewise.
3300         * gcse.c: Likewise.
3301         * genoutput.c: Likewise.
3302         * loop.c: Likewise.
3303         * postreload.c: Likewise.
3304         * reg-stack.c: Likewise.
3305         * regmove.c: Likewise.
3306         * sched-int.h: Likewise.
3307         * sched-rgn.c: Likewise.
3308         * simplify-rtx.c: Likewise.
3309         * tree-inline.c: Likewise.
3310         * config/m68hc11/m68hc11.h: Likewise.
3311         * config/mmix/mmix.c: Likewise.
3312         * config/mn10300/mn10300.md: Likewise.
3313         * config/sh/sh.h: Likewise.
3314
3315 2003-10-05  Richard Henderson  <rth@redhat.com>
3316
3317         * tree-inline.c (remap_type): New.
3318         (remap_decl): Use it.  Remap DECL_SIZE*.
3319         (copy_body_r): Use it.
3320         (walk_tree): Walk TREE_TYPE too.
3321         (copy_tree_r): Don't walk subtrees of types.
3322         * tree.c (variably_modified_type_p): Restructure.  Consider integer
3323         types with non-const bounds variably modified.
3324
3325 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
3326
3327         * doc/invoke.texi: Fix typos.
3328
3329 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
3330
3331         * fold-const.c: Follow spelling conventions.
3332         * function.c: Likewise.
3333         * config/c4x/c4x.h: Likewise.
3334         * config/c4x/c4x.md: Likewise.
3335         * config/frv/frv.md: Likewise.
3336         * config/rs6000/aix.h: Likewise.
3337         * config/rs6000/linux64.h: Likewise.
3338         * config/xtensa/xtensa.c: Likewise.
3339
3340 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
3341
3342         * c-pretty-print.c: Fix comment formatting.
3343         * cfglayout.c: Likewise.
3344         * cfgloopanal.c: Likewise.
3345         * cppcharset.c: Likewise.
3346         * dbxout.c: Likewise.
3347         * ggc-page.c: Likewise.
3348         * ggc.h: Likewise.
3349         * target.h: Likewise.
3350
3351 2003-10-04  Kelley Cook  <kelleycook@wideopenwest.com>
3352
3353         * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
3354
3355 2003-10-04  Nathanael Nerode  <neroden@gcc.gnu.org>
3356
3357         * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
3358         Convert to ISO C90 function declarations and definitions.
3359
3360 2003-10-04  Zack Weinberg  <zack@codesourcery.com>
3361
3362         * libfuncs.h
3363         (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
3364         (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
3365         (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
3366         (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
3367         (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
3368         (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
3369         (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
3370         (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
3371         (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
3372         (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
3373         (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
3374         (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
3375         (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
3376         (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
3377         (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
3378         (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
3379         Delete.
3380         * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
3381         (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
3382         (le_optab, unord_optab): New.
3383
3384         * optabs.c (prepare_float_lib_cmp): Rewrite.  Get the libfuncs
3385         from the code_to_optab table, not a giant switch; use
3386         swap_condition; do widening only if a comparison function that
3387         we can call exists in a wider mode, not if a cmp_optab insn or
3388         libfunc exists in a wider mode; call protect_from_queue
3389         exactly once on each operand.
3390         (init_optabs): Initialize the new optabs, not the deleted libfuncs.
3391
3392         * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
3393         * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
3394         Set floating point comparison libfuncs using set_optab_libfunc
3395         on the appropriate optab.
3396
3397         * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
3398         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
3399         selector conditionals.
3400
3401 2003-10-04  Stephane Carrez  <stcarrez@nerim.fr>
3402
3403         * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
3404         identical to m68hc12 as far as libraries are concerned.
3405
3406 2003-10-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
3407
3408         PR c/12446
3409         * c-typeck.c (convert_for_assignment): Issue an error for
3410         array to pointer assignment after default conversion.
3411         (digest_init): Likewise.
3412
3413 2003-10-04  Fariborz Jahanian  <fjahanian@apple.com>
3414
3415         * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
3416
3417 2003-10-03  Gerald Pfeifer  <gerald@pfeifer.com>
3418
3419         * doc/extend.texi (Function Attributes): Fix title of GNU C
3420         Preprocessor manual.
3421         (C++ Extensions): Fix reference to "Predefined Macros" in the
3422         GNU C Preprocessor manual.
3423
3424 2003-10-04  Richard Earnshaw  <reanrsha@arm.com>
3425
3426         * doc/extend.texi: Document how GCC estimates and relies on the size
3427         of an asm.
3428
3429 2003-10-04  Richard Sandiford  <rsandifo@redhat.com>
3430
3431         * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
3432         arguments downward for big-endian o64.
3433
3434 2003-10-03  Robert Bowdidge <bowdidge@apple.com>
3435
3436         * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
3437         PCH generation, avoiding too-frequent flushes when writing to NFS
3438         file system.
3439
3440 2003-10-03  Ziemowit Laski  <zlaski@apple.com>
3441
3442         * objc/objc-act.c (lookup_category): Mark as 'inline'.
3443
3444 2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
3445             Ziemowit Laski  <zlaski@apple.com>
3446
3447         * objc/objc-act.c (add_method_to_hash_list, lookup_category):
3448         New functions.
3449         (lookup_method_in_hash_lists): New parameter indicating whether
3450         we are messaging 'Class' or 'id'.
3451         (check_duplicates): Likewise; do not assume all methods will
3452         be either class or instance methods.
3453         (generate_category, finish_class): Use lookup_category().
3454         (add_method): Use add_method_to_hash_list(); insert instance
3455         methods of root classes into the global class method hash table.
3456         (add_category): Use lookup_category(); avoid constructing
3457         duplicate categories.
3458         (really_start_method): Add method to corresponding @interface,
3459         if not already there (and if the @interface exists).
3460         (finish_message_expr, finish_objc): Adjust calls to
3461         check_duplicates().
3462
3463 2003-10-03  Roger Sayle  <roger@eyesopen.com>
3464
3465         PR optimization/9325, PR java/6391
3466         * fold-const.c (fold_convert): For floating point to integer
3467         conversions, return the maximum/minimum representable integer
3468         value if the real constant overflows the destination type.
3469         * tree.c (real_value_from_int_cst): Allow the type to be NULL,
3470         meaning don't truncate the result to a floating point mode.
3471         Simplify the logic by calling real_from_integer directly.
3472         * simplify-rtx.c (simplify_unary_operation):  Implement the
3473         same semantics for folding floating point to integer conversions
3474         in RTL.
3475
3476 2003-10-03  Chris Demetriou  <cgd@broadcom.com>
3477
3478         * config/mips/mips.c (mips_emit_prefetch): Restructure
3479         to avoid use of arrays, handle indexed prefetch.
3480         * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
3481         (ISA_HAS_PREFETCHX): New deffine.
3482         * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
3483         update comments.
3484         (prefetch_indexed_di, prefetch_indexed_si): New insns.
3485
3486 2003-10-03  Jeff Sturm  <jsturm@one-point.com>
3487             Roger Sayle  <roger@eyesopen.com>
3488
3489         PR optimization/12289
3490         * calls.c (emit_call_1): Pretend to have popped the arguments
3491         to noreturn and longjmp functions instead of ignoring them.
3492         (expand_call): Don't adjust stack_pointer_dela while
3493         inhibit_defer_pop is set.
3494
3495 2003-10-03  Andreas Schwab  <schwab@suse.de>
3496
3497         PR bootstrap/12276
3498         * configure.in: Check for libunwind on the host only if building
3499         a native compiler.
3500         * configure: Regenerated.
3501
3502 2003-10-03  Paolo Carlini  <pcarlini@unitus.it>
3503
3504         * unwind-pe.h (read_encoded_value_with_base): Constify u and
3505         its inizialization cast.
3506
3507 2003-10-03  Richard Sandiford  <rsandifo@redhat.com>
3508
3509         PR target/12485
3510         * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
3511
3512 2003-10-02  Mark Mitchell  <mark@codesourcery.com>
3513
3514         PR optimization/12180
3515         * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
3516         functions containing calls to __builtin_next_arg.
3517
3518 2003-10-02  Chris Demetriou  <cgd@broadcom.com>
3519
3520         * config/mips/mips.c (mips_emit_prefetch): Use operand 3
3521         in instructions being output.
3522         * config/mips/mips.md (prefetch_si_address): Change third
3523         operand's constraint letter to 'I'.
3524         (prefetch_di_address): Likewise.
3525         (prefetch_si, prefetch_di): Set third operand to const0_rtx.
3526
3527 2003-10-02  Zack Weinberg  <zack@codesourcery.com>
3528
3529         * system.h: Poison macros obsoleted by earlier patch.
3530         * config/cris/cris.c: C90-ify a function definition.
3531
3532 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
3533
3534         PR/12292
3535         * combine.c (make_field_assignment): Check whether rtx's code
3536         is CONST_INT before using INTVAL.
3537
3538 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
3539
3540         * cgraph.c (cgraph_node): Use INSERT instead of 1 in
3541         htab_find_slot_with_hash.
3542         (cgraph_node_for_identifier): Use NO_INSERT.
3543         (cgraph_remove_node): Use NO_INSERT.
3544         (cgraph_varpool_node): Use INSERT.
3545         (cgraph_varpool_node_for_identifier): Use NO_INSERT.
3546
3547 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
3548
3549         Waldek Hebisch <hebisch@math.uni.wroc.pl>
3550         PR/12072
3551         * varasm.c (compare_constant): Fix thinko.
3552
3553 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
3554
3555         * config/frv/frv.c (frv_issue_rate): New function.
3556         (frv_pack_insns): Use it.
3557         (TARGET_SCHED_ISSUE_RATE): Define.
3558
3559 2003-10-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
3560
3561         * config/mcore/mcore.c: Convert to ISO C90 function declarations
3562         and definitions.
3563         * config/mcore/mcore.h: Likewise.
3564         * config/mcore/mcore-protos.h: Likewise.
3565
3566 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
3567
3568         * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
3569         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
3570
3571 2003-10-01  Per Bothner  <pbothner@apple.com>
3572
3573         * c-lex.c (src_line):   Remove unneeded static variable.
3574         (cb_line_change):  Set input_line directly, instead of src_line.
3575         (get_non_padding_token):  We no longer need to compensate for the
3576         "horrible things" the C++ front-end does with the current line number,
3577
3578         * cpplib.c (_cpp_pop_buffer):  Do generate a _cpp_do_file_change
3579         callback even when popping the main file.
3580         * c-lex.c (fe_file_change):  Handle a NULL new_map.
3581         * fix-header.c (cb_file_change):  Likewise.
3582         * c-ppoutput.c (pp_file_change):  Likewise.
3583
3584         * cppinit.c (cpp_read_main_file):  Split into two functions:
3585         Distribute _cpp_stack_file call over the two functions.
3586         (cpp_find_main_file):  New function.
3587         Don't call _cpp_do_file_change even if working_directory flag set.
3588         (cpp_push_main_file):  New function.
3589         * cppfiles.c (_cpp_find_failed):  New helper function.
3590         (find_file):  Made non-static and renamed to _cpp_find_file.
3591         (_cpp_stack_file):  No longer needed.  But note the following.
3592         (stack_file):  Made non-static and renamed to _cpp_stack_file.
3593         * fix-header.c (cpp_read_main_file):  Replace cpp_read_main_file
3594         call with calls to cpp_find_main_file and cpp_push_main_file.
3595         (search_path_head):  If there is no current buffer, use main_file.
3596         * cpphash.h:  Update function declarations.
3597         * cpplib.h:  Update function declarations.
3598
3599         * c-opts.c (c_common_post_options):  Don't call cpp_find_main_file yet.
3600         (c_common_parse_file):  No longer need to call cpp_read_main_file
3601         when file_index > 0 (as in multi-file or server compiation).
3602         (finish_options):  Change to <built-in> is an LC_ENTER, not LC_RENAME
3603         as this now happens before cpp_push_main_file.
3604         (push_command_line_include):  When done with options, pass LC_LEAVE
3605         instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
3606         (fe_file_change):  Handle NULL new_map, and simplify.
3607         * cpplex.c (_cpp_get_fresh_line):  Revert my no-longer-needed
3608         08-28 change, since we're never called with a NULL buffer.
3609         (_cpp_lex_direct):  Likewise.
3610         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
3611         Return false if buffer is NULL at end.
3612
3613         * cpplex.c (_cpp_get_fresh_line):  Return value now just depends on
3614         whether pfile->buffer is NULL after pop, ignoring return_at_eof.
3615         * cpphash.h (struct cpp_buffer):  Remove unused return_at_eof field.
3616         * cpplib.c (cpp_push_buffer):  Since we no longer set return_at_eof,
3617         remove the unused return_at_eof parameter.
3618         * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
3619         Update callers of cpp_push_buffer.
3620
3621 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
3622
3623         * target.h (init_libfuncs): New hook.
3624         * target-def.h: Default TARGET_INIT_BUILTINS and
3625         TARGET_INIT_LIBFUNCS to hook_void_void.  Add
3626         TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
3627         * builtins.c (default_init_builtins): Delete.
3628         * expr.h (default_init_builtins): Delete prototype.
3629         * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
3630         Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
3631         Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
3632         DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
3633         MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
3634         and UMODDI3_LIBCALL,
3635
3636         * Makefile.in (optabs.o): Depends on target.h.
3637         * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
3638         * optabs.c: Include target.h.
3639         (prepare_float_lib_cmp): No need for #ifdef around use of
3640         FLOAT_LIB_COMPARE_RETURNS_BOOL.
3641         (set_optab_libfunc): New function.
3642         (init_optabs): Delete use of all *_LIBCALL defines.
3643         Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
3644         * optabs.h: Prototype set_optab_libfunc.
3645
3646         * config.gcc: Remove all references to pa/long_double.h,
3647         ia64/hpux_longdouble.h, and gofast.h.
3648         (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
3649         to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
3650
3651         * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
3652         * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
3653         * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
3654         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
3655         * config/sparc/sparc.c, config/vax/vax.c:
3656         Provide a definition for TARGET_INIT_LIBFUNCS.  Where
3657         necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
3658
3659         * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
3660         * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
3661         * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
3662         * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
3663         * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
3664         * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
3665         * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
3666         * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
3667         INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
3668
3669         * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
3670         Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
3671         * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
3672         HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
3673         * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
3674
3675         * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
3676         * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
3677         SUN_INTEGER_MULTIPLY_64 to 0.
3678         * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
3679         SUN_INTEGER_MULTIPLY_64 to 1.
3680         * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
3681         SUN_INTEGER_MULTIPLY_64 to 0.
3682         * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
3683         Define US_SOFTWARE_GOFAST.
3684         * config/vax/vax.h: Default TARGET_ELF to 0.
3685         * config/vax/elf.h: Redefine TARGET_ELF to 1.
3686
3687         * config/gofast.h: Don't define any macros here.  Provide one
3688         static function, gofast_maybe_init_libfuncs, which does what
3689         INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
3690         is already defined.  Do not clear negation libfuncs.  Do
3691         not mess with HFmode, XFmode, or TFmode libfuncs.
3692
3693         * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
3694
3695 2003-10-01  Kelley Cook  <kelleycook@wideopenwest.com>
3696
3697         PR C/12466
3698         * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
3699
3700 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3701
3702         * config/mips/xm-iris5.h: Remove, unnecessary.
3703         * config.build (mips-sgi-irix5*): Remove.
3704         (mips-sgi-irix6*o32): Likewise.
3705         * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
3706         (mips-sgi-irix5cross64): Likewise.
3707         (mips-sgi-irix5*): Likewise.
3708         * config.host (mips-sgi-irix5*): Remove.
3709         (mips-sgi-irix6*o32): Likewise.
3710
3711 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
3712
3713         * dbxout.c (dbxout_fptype_value): Delete.
3714         (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
3715
3716 2003-10-01  Alexandre Oliva  <aoliva@redhat.com>
3717
3718         * output.h (compute_reloc_for_constant): Declare.
3719         * varasm.c (compute_reloc_for_constant): Extract from...
3720         (output_addressed_constants): ... here.  Adjust all callers.
3721
3722 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3723
3724         * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
3725         * configure: Rebuilt.
3726
3727 2003-10-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3728
3729         * fold-const.c (make_range): When handling unsigned, don't reverse
3730         range if high bound is zero.
3731
3732 2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
3733
3734         * config/frv/frv.h (PREDICATE_CODES): Added
3735         condexec_si_media_operator, condexec_sf_add_operator and
3736         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
3737         and condexec_sf_unary_operator.
3738
3739 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3740
3741         * aclocal.m4: Add ultrix* to /dev/zero blacklist.
3742         * configure: Rebuilt.
3743
3744 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3745
3746         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
3747         Allow override.
3748         * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
3749
3750 2003-09-23  David S. Miller  <davem@redhat.com>
3751
3752         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
3753         before redefining.
3754         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3755
3756 2003-10-01  Steven Bosscher  <steven@gcc.gnu.org>
3757
3758         * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
3759         C90 function declarations and definitions.
3760
3761 2003-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>
3762
3763         * config.gcc (cris-*-linux*): Revert mistaken commit.
3764
3765 2003-10-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
3766
3767         PR optimization/11753
3768         * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
3769         the length in the non-V9 case.
3770
3771 2003-09-30  Richard Henderson  <rth@redhat.com>
3772
3773         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
3774         DWARF_ALT_FRAME_RETURN_COLUMN.
3775         * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
3776         (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
3777         (uw_frame_state_for): Return end-of-stack for null return address.
3778         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
3779
3780         * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
3781         (alpha_expand_prologue): Store a zero for it.
3782         (alpha_expand_epilogue): Don't reload it.
3783         * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
3784         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
3785         for the sigframe return address.
3786
3787 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
3788
3789         * sdbout.c: Convert to ISO C90 prototypes.
3790         * objc/objc-act.c: Likewise.
3791
3792 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
3793
3794         * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
3795         * config/i386/winnt.c: Likewise.
3796         * config/i386/cygming.h: Likewise.
3797
3798 2003-09-30  Kazu Hirata  <kazu@cs.umass.edu>
3799
3800         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
3801         (A ^ B) - B for any B.
3802
3803 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
3804
3805         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
3806         powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
3807
3808 2003-09-30  Richard Earnshaw  <rearnsha@arm.com>
3809
3810         * arm/ieee754-sf.S: Tidy formatting.
3811
3812 2003-09-30  Nicolas Pitre  <nico@cam.org>
3813
3814         * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
3815         and ARM_MOD_BODY.
3816         (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
3817         (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
3818         added better divisor alignment in the other case.
3819         (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
3820         (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
3821         macros above, add fast exits for divisor >= dividend, etc.
3822
3823 2003-09-30  Nicolas Pitre  <nico@cam.org>
3824
3825         * arm/ieee754-df.S: Split compilation of fixunsdfsi from
3826         L_fixdfsi target.
3827         * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
3828
3829 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
3830
3831         * config.gcc: Default use_fixproto to 'no'.
3832
3833 2003-09-30  Richard Sandiford  <rsandifo@redhat.com>
3834
3835         PR optimization/12345
3836         * config/mips/mips-protos.h (mips_restore_gp): Remove.
3837         (mips_gp_save_slot): Declare.
3838         * config/mips/mips.c (mips_restore_gp): Remove in favor of...
3839         (mips_gp_save_slot): ...this new function.
3840         * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
3841         and mips_output_move to generate the output template.
3842         (call_internal): Force splitting if TARGET_SPLIT_CALLS.  Don't emit
3843         a gp load after a noreturn call.  Load the gp using a move rather
3844         than an exception_receiver pattern.
3845         (call_value_internal, call_value_multiple_internal): Likewise.
3846         (call_split, call_value_split, call_value_multiple_split): Clobber $28.
3847
3848 2003-09-30  Carlo Wood  <carlo@alinoe.com>
3849
3850         PR debug/12319
3851         * cfglayout.c (insn_scope):  Use prologue_locator and
3852         epilogue_locator; return the outer function scope for
3853         pro- and epilogue insns.
3854
3855 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
3856
3857         * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
3858         REAL_TYPEs based on the bitsize of the type's mode, not the
3859         mode directly.
3860
3861 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3862
3863         * dwarf2out.c (default_eh_frame_section): Split into ...
3864         (named_section_eh_frame_section, collect2_eh_frame_section): ... new
3865         functions.
3866         * output.h (named_section_eh_frame_section): Declare.
3867         (collect2_eh_frame_section): Likewise.
3868
3869 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
3870
3871         * real.c (real_sqrt): Use get_canonical_qnan directly.
3872
3873         * dwarf2out.c (add_const_value_attribute): Use real_to_target.
3874
3875         * varasm.c (assemble_real): Use real_to_target directly,
3876         calculate the number of significant elements of the result
3877         array and write them out in a loop, instead of using a giant
3878         switch statement to pick the correct REAL_VALUE_TO_TARGET_*
3879         macro.
3880
3881 2003-09-29  Jan Hubicka  <jh@suse.cz>
3882
3883         PR c++/12175
3884         * varasm.c (notice_global_symbol): Discard external symbols.
3885
3886         PR optimization/12286
3887         * gcov-io.c (gcov_read_words): Fix memmove call.
3888         * profile.c (compute_branch_probabilities): Add extra sanity checks.
3889
3890 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3891
3892         * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
3893         Solaris 7-9.
3894
3895         * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
3896         wildcards which explicitly match micro versions.
3897         * fixinc/fixincl.x: Regenerate.
3898
3899 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
3900
3901         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
3902         (A ^ B) - B, where B is any power of 2 minus 1.
3903
3904 2003-09-29  Jan Hubicka  <jh@suse.cz>
3905
3906         * libgcov.c (gcov_exit): Fix two pastos.
3907
3908 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
3909
3910         * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
3911         define_split immediately below to form define_insn_and_split.
3912
3913 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
3914
3915         * config/h8300/h8300.md (*tstsi_variable_bit): New.
3916         (*tstsi_variable_bit_qi): Likewise.
3917
3918 2003-09-28  Phil Edwards  <phil@codesourcery.com>
3919
3920         * doc/cppopts.texi:  Use 'dashMP' instead of '-MP' as a cross-
3921         reference name.
3922
3923 2003-09-28  Richard Henderson  <rth@redhat.com>
3924
3925         * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
3926         file and line separately.
3927
3928 2003-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
3929
3930         * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
3931         "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
3932         "*subdi3_borrow_cconly"): New insns.
3933         ("*addsi3_sub", "*subsi3_sub"): Remove.
3934         ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
3935         ("*subsi3_cc"): Fix op_type attribute.
3936
3937 2003-09-28  Richard Henderson  <rth@redhat.com>
3938
3939         * stmt.c (expand_asm_operands): Take a location_t, instead of
3940         individual file and line.
3941         * c-typeck.c (c_expand_asm_operands): Likewise.
3942         * tree.h (expand_asm_operands): Update decl.
3943         * c-common.h (c_expand_asm_operands): Likewise.
3944         * c-semantics (genrtl_asm_stmt): Update call.
3945
3946 2003-09-28  Philip Blundell  <philb@gnu.org>
3947
3948         * config/arm/arm.c (legitimize_pic_address): Check
3949         SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
3950         (arm_assemble_integer): Likewise.
3951
3952 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
3953
3954         * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
3955         config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
3956         config/c4x/c4x.h:
3957         Convert to ISO C90 function declarations and definitions.
3958
3959 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
3960
3961         *  config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
3962         Convert to ISO C90 function declarations and definitions.
3963
3964 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
3965
3966         * config/mips/mips.c (mips_constant_info): Add reloc field.
3967         (mips_classify_constant): Initialize it.  Always set SYMBOL to the
3968         underlying symbol, not to an unspec.
3969         (mips_delegitimize_address, print_operand): Clean up accordingly.
3970
3971 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
3972
3973         * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
3974         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
3975         * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
3976         (mips_classify_constant): Use it.
3977         (mips_splittable_symbol_p): Add an offset argument.
3978         (mips_classify_address): Adjust call accordingly.
3979         (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
3980         than a relocation unspec.  Update call to mips_splittable_symbol_p.
3981         Generalize the code that copes with symbols + invalid offsets.
3982         (print_operand): Allow '%R' to be applied to small data addresses.
3983         (mips_reloc_string): Remove RELOC_GPREL16.
3984         (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg.  Return $gp
3985         for TARGET_EXPLICIT_RELOCS.  Return null if we can't use gp-relative
3986         relocation operators.
3987         * config/mips/mips.md (RELOC_GPREL16): Remove.  Shuffle other reloc
3988         constants accordingly.
3989
3990 2003-09-27  Roger Sayle  <roger@eyesopen.com>
3991
3992         * toplev.c (flag_evaluation_order): New global variable.
3993         * flags.h (flag_evaluation_order): Prototype here.
3994         * expr.c (expand_operands): If we need to preserve observable
3995         evaluation order, protect exp1 from clobbering exp0's result.
3996
3997 2003-09-28  Andreas Jaeger  <aj@suse.de>
3998
3999         * c-decl.c (finish_function): Convert definition to ISO C90.
4000         * ifcvt.c (mark_loop_exit_edges): Likewise.
4001         * ra-rewrite.c (emit_colors): Likewise.
4002
4003 2003-09-27  Nathanael Nerode  <neroden@gcc.gnu.org>
4004
4005         * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
4006         * config.gcc (arm*-*-uclinux*): Disable fixproto.
4007         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
4008         powerpc-*-eabialtivec*): Disable fixproto.
4009
4010 2003-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
4011
4012         PR optimization/12340
4013         * loop.h (struct induction): Document the new semantics
4014         of the 'same' field for bivs.
4015         * unroll.c (biv_total_increment): Don't count the same
4016         biv increment several times.
4017         (loop_iterations) [GENERAL_INDUCT]: Likewise.
4018
4019 2003-09-27  Graham Stott  <graham.stott@btinternet.com>
4020
4021         * unroll.c (loop_interations)[GT]: Add missing break.
4022
4023 2003-09-27  Kelley Cook  <kcook@gcc.gnu.org>
4024
4025         * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
4026         config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
4027         config/dbxelf.h, config/elfos.h, config/fp-bit.h,
4028         config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
4029         config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
4030         config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
4031         config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
4032         config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
4033         config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
4034         config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
4035         config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
4036         config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
4037         config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
4038         config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
4039         config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
4040         config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
4041         config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
4042         config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
4043         config/alpha/xm-vms.h, config/arc/arc-modes.def,
4044         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
4045         config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
4046         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4047         config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
4048         config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
4049         config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
4050         config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
4051         config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
4052         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
4053         config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
4054         config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
4055         config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
4056         config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
4057         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
4058         config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
4059         config/i960/i960-c.c, config/i960/i960-coff.h,
4060         config/i960/i960-modes.def, config/i960/i960-protos.h,
4061         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
4062         config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
4063         config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
4064         config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
4065         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4066         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
4067         config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
4068         config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
4069         config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
4070         config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
4071         config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
4072         config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
4073         config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
4074         config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
4075         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
4076         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4077         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
4078         config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
4079         config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
4080         config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
4081         config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
4082         config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
4083         config/mips/vr.h, config/mn10300/linux.h,
4084         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
4085         config/mn10300/mn10300.h, config/mn10300/mn10300.md,
4086         config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
4087         config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
4088         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
4089         config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
4090         config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
4091         config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
4092         config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
4093         config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
4094         config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
4095         config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
4096         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
4097         config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
4098         config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
4099         config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
4100         fixinc/fixinc.svr4: GNU CC -> GCC.
4101
4102 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
4103
4104         * objc/objc-act.c (tm_p.h): Tweak order.
4105         * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
4106
4107 2003-09-26  Nathanael Nerode  <neroden@gcc.gnu.org>
4108
4109         * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
4110         Include t-slibgcc-elf-ver and t-linux in tmake_file.
4111         * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
4112         Disable fixproto.
4113         * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
4114         Disable fixproto.
4115         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
4116         sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
4117
4118         * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
4119
4120 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
4121
4122         * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
4123         * objc/objc-act.c (tm_p.h): Include.
4124
4125 2003-09-26  Per Bothner  <pbothner@apple.com>
4126
4127         * dbxout.c (dbxout_typedefs):  Output typedefs in forward order.
4128         No longer any need to reverse by recursion.
4129
4130 2003-09-26  Roger Sayle  <roger@eyesopen.com>
4131             Richard Henderson  <rth@redhat.com>
4132
4133         PR optimization/11741
4134         * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
4135         appropriate set to match that in hash_scan_insn.  Fall back to
4136         the original copy method, if we can't validate changing insn.
4137         (pre_delete): Only delete instructions that have a single_set,
4138         instead of aborting when we encounter an PARALLEL insn with more
4139         then one SET.
4140
4141 2003-09-26  Andreas Krebbel  <krebbel1@de.ibm.com>
4142
4143         * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
4144         ("builtin_longjmp"): Insn deleted.
4145         ("save_stack_nonlocal"): Save literal pool base pointer behind
4146         backchain and stack pointer.
4147         ("restore_stack_nonlocal"): Restore literal pool base pointer.
4148         * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
4149         the stack save area for the nonlocal goto case.
4150
4151 2003-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4152
4153         PR bootstrap/12358
4154         * pa.c (output_bvb): Fix typo.
4155
4156 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
4157
4158         * expmed.c (store_bit_field): Don't search for an integer mode
4159         unless we need the result.
4160
4161 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
4162
4163         * expr.c (emit_move_insn_1): If there is no move pattern for the
4164         original mode, try using a pattern for the corresponding integer mode.
4165
4166 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
4167
4168         PR middle-end/9200
4169         * combine.c (if_then_else_cond): Tighten mode check.
4170
4171 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
4172
4173         * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
4174         'struct _cpp_strbuf'.
4175
4176         * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
4177         config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
4178         config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
4179         config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
4180         config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
4181         config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
4182         config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
4183         config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
4184         config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
4185         "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
4186         * config/i386/i386-aout.h, config/i386/i386-coff.h,
4187         config/i386/i386-interix.h, config/i386/i386-interix3.h,
4188         config/i386/i386-modes.def, config/i386/i386-protos.h,
4189         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
4190         config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
4191         config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
4192         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
4193         config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
4194         "GNU compiler" -> GCC.
4195         * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
4196         config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
4197         config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
4198         config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
4199         config/i386/freebsd-aout.h, config/i386/freebsd.h,
4200         config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
4201
4202 2003-09-25  Kelley Cook  <kelleycook@wideopenwest.com>
4203
4204         * cgraph.c (dump_cgraph):  Don't output newline before dump.  Add in
4205         "local" to the callgraph dump.  Output "after inlining" earlier.
4206         * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
4207         callgraph dumps.  Correct misspellings.
4208         (cgraph_decide_inlining):  Output number of insns before inlining.
4209         Output the calling function into which a function is inlined.
4210         (cgraph_decide_small_functions): Format dump file like always_inline.
4211
4212 2003-09-25  Loren James Rittle  <ljrittle@acm.org>
4213
4214         * config/i386/i386.h (ix86_return_in_memory): Add prototype.
4215
4216 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
4217
4218         * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
4219         FPR slots in the save area.
4220         (s390_emit_epilogue): Likewise.
4221
4222 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
4223
4224         * cgraph.h (cgraph_remove_edge): Declare.
4225         * cgraph.c (cgraph_remove_edge): Make extern.
4226         * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
4227         instead of cgraph_remove_call.
4228
4229 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
4230
4231         * objc/objc-act.c (gen_declaration_1): Fix printf format.
4232
4233 2003-09-25  Richard Earnshaw  <rearnsha@arm.com>
4234
4235         * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
4236         arm7tdmi core.
4237
4238 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
4239
4240         * config/darwin-protos.h (objc_image_info_section):
4241         New prototype.
4242
4243 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
4244
4245         * Makefile.in (stub-objc.o): Depend on $(GGC_H).
4246
4247 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
4248
4249         * config.gcc: Get rid of more gratuitious 'x'es.  Actually allow
4250         tsc701 as a --with-cpu, --with-tune setting for sparc.
4251
4252 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
4253
4254         * c-parse.in (objc_try_stmt): Do not specify a %type.
4255
4256 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
4257
4258         * config.gcc: New 'widely ported system' clause for rtems.
4259         Set thread file there, not in individual clauses.
4260
4261 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
4262
4263         PR target/6222
4264         * config/mips/mips.c (mips_va_arg): Handle arguments that must be
4265         passed on the stack.
4266
4267 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
4268
4269         * config.gcc (widely ported systems section): Mostly alphabetize
4270         by system.  Comment the case where we can't.
4271         * config.gcc (widely ported systems section): Reindent and clean up.
4272
4273         * config.gcc: Remove some unnecessary uses of 'x' in case statements.
4274         Actually allow ep9312 as an arm --with-arch setting.
4275
4276         * config.gcc (*-hpux11): Disable fixproto.
4277
4278 2003-09-24  Phil Edwards  <phil@codesourcery.com>
4279
4280         PR pch/12112
4281         * gcc/cppfiles.c (pch_open_file): Return based on combined
4282         result of all files.
4283         (validate_pch): Return validate flag for current file.
4284
4285 2003-09-24  Roger Sayle  <roger@eyesopen.com>
4286
4287         PR bootstrap/12358
4288         * fold-const.c (tree_swap_operands_p): Only reorder operands when
4289         one of the operands is constant.
4290
4291 2003-09-24  Ziemowit Laski  <zlaski@apple.com>
4292
4293         MERGE OF objc-improvements-branch into MAINLINE:
4294         * Makefile.in (C_OBJS): Add in stub-objc.o.
4295         (c-parse.y): Change sed demarcations to begin with '@@'.
4296         (stub-objc.o): New rule.
4297         * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
4298         flag_replace_objc_classes): New flags.
4299         * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
4300         RID_AT_SYNCHRONIZED): New keywords.
4301         (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
4302         flag_replace_objc_classes): New flags.
4303         (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
4304         objc_comptypes, objc_message_selector, lookup_objc_ivar,
4305         get_current_scope, objc_mark_locals_volatile): New prototypes,
4306         some moved from c-tree.h.
4307         * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
4308         (finish_decl): Adjust where objc_check_decl() gets called.
4309         * c-lang.c (lookup_interface, is_class_name, objc_is_id,  objc_check_decl,
4310         objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
4311         * c-opts.c (c_common_handle_option): Add handling for  flag_nil_receivers,
4312         flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
4313         * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
4314         '@@end_ifc', respectively.
4315         (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
4316         (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
4317         objc_finally_block): New rules.
4318         (component_decl_list2): Clean up semantic action for @defs construct.
4319         (component_decl, c99_block_start): Remove call to add_objc_decls().
4320         (poplevel): Add call to objc_clear_super_receiver().
4321         (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
4322         constructs.
4323         (classdef, methodprotolist): Clean up/simplify.
4324         (methodprotolist2): Eliminate.
4325         (methodproto): Call add_method() instead of add_class_method() and
4326         add_instance_method().
4327         (receiver): Add TYPENAME production.
4328         (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
4329         (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
4330         AT_SYNCHRONIZED.
4331         * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
4332         objc_comptypes, objc_message_selector)
4333         * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
4334         struct and pointer types.
4335         (build_c_cast): Do not discard ObjC protocol qualifiers.
4336         (convert_for_assignment): Cache result of comp_target_types() instead
4337         of calling it more than once.
4338         * c.opt (fnext-runtime): Update description string.
4339         (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
4340         New ObjC/ObjC++-specific flags.
4341         * function.h (GCC_FUNCTION_H): Header guard.
4342         * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
4343         * stub-objc.c: New file, to be used to satisfy references to ObjC
4344         functions by the C and C++ front-ends.
4345         * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
4346         * config/darwin.h (FUNCTION): Add in_objc_image_info.
4347         (SECTION_FUNCTION): Add objc_image_info_section.
4348         * doc/invoke.texi: Link to GCC web site for Objective-C information.
4349         (-fconstant-string-class): Update documentation.
4350         (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
4351         -fzero-link): New documentation.
4352         * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
4353         with '@@'.
4354         * objc/lang-specs.h (@objective-c-header): Fix -E spec.
4355         * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
4356         throughout; provide casts for return values from memory allocation
4357         functions (xmalloc, alloca, ggc_alloc, etc.).
4358         (OBJC_VOID_AT_END): New macro.
4359         (rtl.h): Do not #include any more.
4360         (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
4361         (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
4362         TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
4363         TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
4364         TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
4365         (struct val_stack, catch_count_stack, exc_binding_stack,  val_stack_push,
4366         val_stack_pop): New.
4367         (objc_check_decl): Fix precondition for error message, along with
4368         the message itself.
4369         (lookup_and_install_protocols): Remove nonexistent protocols from
4370         protocol list instead of returning error_mark_node.
4371         (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
4372         (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
4373         (synth_module_prologue): General clean-up; construct NeXT-specific
4374         runtime API prototypes if needed.
4375         (build_string_class_template): Remove.
4376         (check_string_class_template, string_layout_checked): New.
4377         (build_objc_string_object): Generalize to work with
4378         -fconstant-string-class.
4379         (build_objc_symtab_template): Fix layout for the NeXT runtime.
4380         (build_metadata_decl): New.
4381         (forward_declare_categories): Call build_metadata_decl() instead of
4382         create_builtin_decl() et al.
4383         (build_module_descriptor): Use OBJC_VOID_AT_END instead of
4384         void_list_node_1.
4385         (build_selector_reference_decl, build_class_reference_decl,
4386         build_objc_string_decl): Do not set TREE_READONLY.
4387         (get_proto_encoding): Do not call hack_method_prototype().
4388         (get_class_reference): Add failure mode for invalid class names;
4389         support -fzero-link; defer if in an ObjC++ template declaration.
4390         (objc_declare_alias, objc_declare_class): Fix up duplicate name
4391         lookup; check for global scope if in ObjC++.
4392         (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
4393         RECORD_TYPE, IDENTIFIER_NODE, etc.)
4394         (objc_is_id): Removed.
4395         (objc_is_object_ptr): New function.
4396         (get_class_ivars_from_name): New function, used for @defs construct.
4397         (get_class_ivars): Add option to return raw ivars; create a
4398         ClASS_OWN_IVARS list for each class as needed.
4399         (objc_enter_block, objc_exit_block, objc_declare_variable,
4400         objc_build_throw_stmt, val_stack_push, val_stack_pop,
4401         objc_build_try_enter_fragment, objc_build_extract_expr,
4402         objc_build_try_exit_fragment, objc_build_extract_fragment,
4403         objc_build_try_prologue, objc_build_try_epilogue,
4404         objc_build_catch_stmt, objc_build_catch_epilogue,
4405         objc_build_finally_prologue, objc_build_finally_epilogue,
4406         objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
4407         objc_build_synchronized_epilogue, build_objc_exception_stuff):
4408         New functions.
4409         (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
4410         the future).
4411         (build_private_template): Fix up calls to get_class_ivars().
4412         (offset_is_register, forwarding_offset): Remove.
4413         (objc_method_parm_type, objc_encoded_type_size): New functions.
4414         (encode_method_prototype): Simplify to no longer depend on
4415         back-end information.
4416         (build_tmp_function_decl_xxx, build_tmp_function_decl,
4417         hack_method_prototype): Removed.
4418         (generate_protocol_references): Remove calls to
4419         build_tmp_function_decl().
4420         (generate_protocols): Adjust calls to encode_method_prototype().
4421         (build_class_template): Generate sel_id' and 'gc_object_type' fields
4422         for the NeXT runtime.
4423         (synth_forward_declarations): Call build_metadata_decl().
4424         (check_ivars): Check that the number of ivars matches also.
4425         (build_super_template): Modify super_type directly; disable debugging
4426         output while generating decl.
4427         (build_ivar_list_initializer): Skip list elements that are not
4428         FIELD_DECLs.
4429         (ivar_list_length): New function.
4430         (generate_ivar_lists): Call ivar_list_length() instead of list_length()
4431         and encode_method_prototype() instead of encode_method_def().
4432         (build_shared_structure_initializer): Generate 'sel_id' field for
4433         the NeXT runtime.
4434         (generate_category): Do not set TREE_USED.
4435         (build_keyword_selector): Ditto; transform into a function argument
4436         chain.
4437         (get_arg_type_list): If there are no user-specified arguments, use
4438         '...'; use OBJC_VOID_AT_END.
4439         (check_duplicates): Add a parameter indicating whether methods or
4440         selectors are being checked.
4441         (receiver_is_class_object): Add parameters indicating whether
4442         receiver is 'self' or 'super'; robustify.
4443         (build_message_expr): Defer call to finish_message_expr() if
4444         inside an ObjC++ template.
4445         (lookup_method_in_hash_lists): New function.
4446         (finish_message_expr): Complete rewrite/fix.
4447         (build_objc_method_call): Ditto; factor out commonalities between
4448         the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
4449         messenger variants on the NeXT.
4450         (lookup_instance_method_static, lookup_class_method_static):
4451         Fold into a single lookup_method_static() function with an
4452         additional parameter.
4453         (add_class_method, add_instance_method): Fold into a single
4454         add_method() function with an additional parameter.
4455         (add_category): Make duplicate categories a hard error in ObjC++.
4456         (add_instance_variable): Properly handle unnamed ivars, arrays of
4457         zero or no size and bitfields.  In ObjC++, check for nontrivial
4458         C++ class instances.
4459         (is_public): Allow C functions to access non-@public ivars, with
4460         a warning.
4461         (start_class): Move common initializations to
4462         synth_module_prologue(); check for global scope if in ObjC++.
4463         (continue_class): Fix calls to finish_struct().
4464         (objc_declare_protocols, start_protocol): Check for global scope
4465         if in ObjC++.
4466         (encode_pointer): Encode 'BOOL *' specially on the NeXT.
4467         (encode_aggregate_within): Rewrite to properly distinguish
4468         struct tags from typedefs in both ObjC and ObjC++.
4469         (encode_bitfield, encode_complete_bitfield): Remove.
4470         (encode_next_bitfield, encode_gnu_bitfield): New functions.
4471         (encode_field_decl): Call encode_next_bitfield() or
4472         encode_gnu_bitfield() as needed.
4473         (synth_self_and_ucmd_args): New function.
4474         (start_method_def): Use it.
4475         (objc_types_are_equivalent): New function.
4476         (comp_proto_with_proto): Use it instead of comptypes(), since
4477         we need symmetry.
4478         (really_start_method): Use lookup_method_static() instead of
4479         lookup_class_method_static() and lookup_instance_method_static();
4480         Emit 'extern "C"' if in ObjC++ mode.
4481         (add_objc_decls): Removed.
4482         (UOBJC_SUPER_scope): New variable.
4483         (get_super_receiver): Move construction of 'super' from
4484         add_objc_decls(); remove dependency on struct objc_class.
4485         (encode_method_def): Removed; encode_method_prototype() is
4486         used instead.
4487         (objc_clear_super_receiver): New function.
4488         (objc_expand_function_end): Do not do anything for ordinary
4489         C functions.
4490         (finish_method_def): Mark ObjC methods as un-inlinable.
4491         (gen_declaration_1): Emit widths of bitfields.
4492         (finish_objc): Call generate_objc_image_info() if needed;
4493         use check_duplicates() when checking for selector duplicates.
4494         (generate_objc_image_info): New function.
4495         * objc/objc-act.h (add_instance_method, add_class_method,
4496         get_class_ivars): Remove prototypes.
4497         (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
4498         objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
4499         objc_build_catch_stmt, objc_build_catch_epilogue,
4500         objc_build_finally_prologue, objc_build_finally_epilogue,
4501         add_method, get_class_ivars_from_name): New prototypes.
4502         (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
4503         (TYPE_PROTOCOL_LIST): Robustify to distinguish from
4504         TRANSLATION_UNIT_DECLs.
4505         (OBJC_TYPE_NAME): New.
4506         (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
4507         got included.
4508         (IS_SUPER): Robustify.
4509         (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
4510         umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
4511         objc_exception_try_enter_decl, objc_exception_try_exit_decl,
4512         objc_exception_match_decl, objc_exception_throw_decl,
4513         objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
4514         objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
4515         objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
4516         objc_catch_type): New ObjC/ObjC++ roots.
4517         * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
4518         ObjC/ObjC++ tree node codes.
4519
4520 2003-09-24  Alexandre Oliva  <aoliva@redhat.com>
4521
4522         * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
4523         code path that calls a handler.
4524
4525 2003-09-24  Nathanael Nerode  <neroden@gcc.gnu.org>
4526
4527         * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
4528         Disable fixproto.
4529
4530         * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
4531         the section giving $with_cpu defaults by target.
4532
4533         * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
4534         arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
4535         rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
4536         rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
4537         rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
4538         i[34567]86-pc-msdosdjgpp*): Disable fixproto.
4539
4540 2003-09-24  David Edelsohn  <edelsohn@gnu.org>
4541
4542         * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
4543         together.  Protect load string instruction with TARGET_STRING.
4544         (movti_string): Collapse case 1 and 2 together.
4545
4546 2003-09-24  Nathan Sidwell  <nathan@codesourcery.com>
4547
4548         * c-common.c (c_common_type_for_mode): Check for VOIDmode.
4549
4550 2003-09-24  Richard Earnshaw  <rearnsha@arm.com>
4551
4552         * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
4553         do...while(0)
4554
4555 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
4556
4557         * config.gcc: Move use_fixproto=no from generic vxworks clause to
4558         specific one.
4559
4560         * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
4561         (accidentally missed in last pass).
4562
4563 2003-09-23  Andrew Pinski  <apinski@apple.com>
4564
4565         PR bootstrap/12383
4566         * configure: Regenerate.
4567
4568 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
4569
4570         * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
4571         missed in last pass).
4572
4573 2003-09-23  Alexandre Oliva  <aoliva@redhat.com>
4574
4575         * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
4576         constant.
4577
4578 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
4579
4580         * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
4581
4582         * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
4583         powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
4584         powerpcle-*-eabi*): Disable fixproto.
4585
4586         * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
4587         specific FreeBSD clauses.
4588         * config.gcc: Move use_fixproto=no from generic NetBSD clause to
4589         specific NetBSD clauses.
4590         * config.gcc: Move use_fixproto=no from generic OpenBSD clause
4591         to specific OpenBSD clauses.
4592
4593 2003-09-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4594
4595         * pa.c (hppa_expand_prologue): Do pic register save in frame marker
4596         without adding a frame note.
4597         * pa.md (allocate_stack): Save pic register in new frame marker when
4598         generating pic code.
4599
4600 2003-09-23  Kelley Cook  <kelleycook@wideopenwest.com>
4601
4602         * cgraphunit.c (cgraph_expand_all_functions): Renamed from
4603         cgraph_expand_functions.
4604
4605 2003-09-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4606
4607         * Makefile.in (gnucompare*): Merge into ...
4608         (slowcompare*): ... here.
4609         (fastcompare*): New targets.
4610         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
4611         other "fast" cmp programs.
4612         * configure: Regenerate.
4613
4614 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4615
4616         * targhooks.c: Include output.h.
4617         * Makefile.in (targhooks.o): Add output.h to dependency list.
4618
4619 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4620
4621         * config.host: Removed superfluous newline.
4622
4623 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
4624
4625         * config.gcc: Use ${target}, not $machine.
4626         * configure.in: Don't set $machine.
4627         * configure: Regenerate.
4628
4629 2003-09-23  Geoffrey Keating  <geoffk@apple.com>
4630
4631         * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
4632
4633         * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
4634         pass zero-size arrays by reference.
4635         (rs6000_va_arg): Likewise.
4636
4637 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
4638
4639         * config.gcc: Set use_fixproto=no in each specific *-gnu*
4640         configuration, rather than the generic one.
4641
4642 2003-09-23  Richard Henderson  <rth@redhat.com>
4643
4644         * tree-inline.c (remap_save_expr): Map new save_expr to identity
4645         rather than to error_mark_node.
4646
4647 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4648
4649         * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
4650         Update description.
4651         * configure: Regenerate.
4652         * config.in: Likewise.
4653         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
4654         HAVE_GAS_SHF_MERGE value.
4655         * varasm.c (mergeable_string_section): Likewise.
4656         (mergeable_constant_section): Likewise.
4657
4658 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4659
4660         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
4661         value.
4662
4663 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4664
4665         * target.h (struct gcc_target): New member external_libcall.
4666         * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
4667         (TARGET_ASM_OUT): Use it.
4668         * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
4669         * targhooks.c: Convert to ISO C 90.
4670         (default_external_libcall): New function.
4671         * targhooks.h (default_external_libcall): Declare.
4672         * varasm.c (assemble_external_libcall): Use
4673         targetm.asm_out.external_libcall instead of
4674         ASM_OUTPUT_EXTERNAL_LIBCALL.
4675         * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
4676         (mips_output_external_libcall): Declare.
4677         * config/mips/mips.c (mips_output_external_libcall): Change
4678         definition guard.
4679         Change to match TARGET_ASM_EXTERNAL_LIBCALL.
4680         Only operate for O32 ABI.
4681         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
4682         instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
4683         * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
4684         superceded by TARGET_ASM_EXTERNAL_LIBCALL.
4685
4686 2003-09-22  Nathnael Nerode  <neroden@gcc.gnu.org>
4687
4688         * config.gcc: Do per-target disabling of fixproto here in clauses,
4689         not in t- fragments.
4690         * configure.in: Adjust to set STMP_FIXPROTO correctly.
4691         * configure: Regenerate.
4692         * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
4693         config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
4694         t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
4695         xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
4696         * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
4697         t-interix, t-linux-aout:  Delete files consisting only of
4698         setting of STMP_FIXPROTO.
4699
4700         * config.host: Allow unknown hosts (not targets).  Allow
4701         ns32k-*-netbsdelf* as a host (not a target).  Remove redundant
4702         empty clauses.  Remove useless obsolete-configuration clause.
4703         Prune unsupported configuration list.  Collapse identical
4704         clauses for closely related systems.  Rewrite comment for
4705         unsupported hosts list.  Reorganize a little.
4706
4707 2003-09-22  Richard Henderson  <rth@redhat.com>
4708
4709         * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
4710         not precision.
4711
4712 2003-09-22  David Edelsohn  <edelsohn@gnu.org>
4713             Hartmut Penner  <hpenner@de.ibm.com>
4714             Segher Boessenkool  <boessen@de.ibm.com>
4715
4716         * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
4717         (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
4718         (rs6000_split_altivec_in_gprs): Rename to ...
4719         (rs6000_split_multireg_move): Add support for update addressing.
4720         * config/rs6000/rs6000-protos.h: Same.
4721         * config/rs6000/altivec.md: Same.
4722         * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
4723         multiple GPRs.
4724         (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
4725         (movti_power): Use new splitter for multiple GPRs.
4726         (movti_string): Same.
4727         (movti_ppc64): Same.
4728
4729 2003-09-22  Bob Wilson  <bob.wilson@acm.org>
4730
4731         * config/xtensa/xtensa-protos.h: Convert to ISO C90.
4732         * config/xtensa/xtensa.c: Convert to ISO C90.  Minor formatting fixes.
4733
4734 2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
4735
4736         * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
4737         (andsi3): Set attr cc to set_zn when using shifts or adds.
4738
4739 2003-09-22  Bernardo Innocenti <bernie@develer.com>
4740
4741         * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
4742
4743 2003-09-22  Bernardo Innocenti  <bernie@develer.com>
4744
4745         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
4746         Resurrect -mrtd option.
4747
4748 2003-09-21  Andrew Pinski  <pinskia@physics.uc.edu>
4749
4750         PR target/12281
4751         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
4752         mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
4753
4754 2003-09-22  Olivier Hainque  <hainque@act-europe.fr>
4755
4756         PR target/9786
4757         * reg-stack.c (convert_regs_1): Purge possible dead eh edges
4758         after potential deletion of trapping insn. Avoids later ICE
4759         from call to fixup_abnormal_edges.
4760         (convert_regs_2): Stack the current block successors before
4761         processing this block, that is, before the potential deletion of
4762         dead edges by convert_regs_1, because these edges have been used
4763         to initialize the predecessors count.
4764
4765 2003-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
4766
4767         * real.c: Fix several nits in the head comment.
4768
4769 2003-09-21  Richard Henderson  <rth@redhat.com>
4770
4771         * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
4772         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
4773         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
4774         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
4775         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
4776
4777 2003-09-21  Richard Henderson  <rth@redhat.com>
4778
4779         * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
4780         (TREE_FILENAME, TREE_LINENO): Likewise.
4781         (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
4782         (TREE_LOCUS_SET_P): New.
4783         * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
4784         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
4785         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
4786         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
4787         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
4788
4789 2003-09-21  Nathanael Nerode  <neroden@gcc.gnu.org>
4790
4791         * config/vax/vax-protos.h: Convert to ISO C90.
4792         * config/vax/vax.c: Convert to ISO C90.
4793
4794 2003-09-21  Graham Stott  <grahams@btinternet.com>
4795
4796        PR target/12353
4797        * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
4798
4799 2003-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
4800
4801         PR target/12301
4802         * reorg.c (stop_search_p): Return 1 for insns that can
4803         throw internally.
4804
4805 2003-09-20  Richard Henderson  <rth@redhat.com>
4806
4807         * c-format.c (gcc_diag_char_table): Add %J.
4808         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
4809         (check_format_types): Fix wanted_type name lookup.
4810         (init_dynamic_diag_info): Setup %J.
4811         * diagnostic.c (text_specifies_location): Implement %J.
4812         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
4813         dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
4814         tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
4815         config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
4816         config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
4817
4818         * tree-inline.c: Include intl.h
4819         (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
4820         * Makefile.in (tree-inline.o): Update.
4821
4822 2003-09-20  Roger Sayle  <roger@eyesopen.com>
4823
4824         * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
4825         transformation of a>=0 into (unsigned)a<0x80000000.
4826
4827 2003-09-20  Andrew Pinski <apinski@apple.com>
4828
4829         * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
4830
4831 2003-09-20  Nathanael Nerode  <neroden@gcc.gnu.org>
4832
4833         * Makefile.in: Don't set (unused) DLLTOOL.
4834
4835         * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
4836         Remove obsolete references to ENQUIRE.
4837
4838 2003-09-19  Nathanael Nerode  <neroden@gcc.gnu.org>
4839
4840         * configure.in: Remove --with-elf, which doesn't work.
4841         * configure: Regenerate.
4842         * config.gcc: Remove references to $elf, which does nothing.
4843
4844         * config/i386/xm-vsta.h: Remove xm-file believed useless.
4845         * config.build (i386-vsta): Remove reference to it.
4846         * config.host (i386-vsta): Remove reference to it.
4847
4848 2003-09-19  Phil Edwards  <phil@codesourcery.com>
4849
4850         * doc/install.texi:  Document the multiple testsuite options.
4851
4852 2003-09-19  Gerald Pfeifer  <gerald@pfeifer.com>
4853
4854         * doc/install.texi (Specific): Add the specific versions of GCC
4855         where support for FreeBSD 1, HP-UX version 9 and older, and AIX
4856         version 3 and older was discontinued.
4857
4858 2003-09-19      Joel Sherrill <joel@oarcorp.com>
4859
4860         * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
4861         68881.
4862
4863 2003-09-19  Bernardo Innocenti  <bernie@develer.com>
4864
4865         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
4866         for -m68030, -m68020-60 and -m68020-40.
4867         * config/m68k/m68k.h (TARGET_68030): New target flag.
4868         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
4869         TARGET_REGPARM): Remove.
4870         * config/m68k/m68k.h: Regroup and renumber target flags.
4871         * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
4872         * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
4873         * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
4874         * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
4875         * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
4876
4877 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
4878
4879         * config/m68k/t-rtems (m68k-*-rtems*): New.
4880         * config.gcc: Use config/m68k/t-rtems.
4881
4882 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
4883
4884         * config/mips/t-rtems: New.
4885         * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
4886
4887 2003-09-19  Kelley Cook  <kelleycook@wideopenwest.com>
4888
4889         * cgraph.c: Fix typo in debugging output.
4890
4891 2003-09-19  T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
4892             Eric Botcazou <ebotcazou@libertysurf.fr>
4893
4894         PR target/12166
4895         * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
4896
4897 2003-09-18  Mike Stump  <mrs@apple.com>
4898
4899         * c-ppoutput.c (print):  Use fileline typedef for field 'line'.
4900         (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
4901         cb_ident, cb_def_pragma):  Use fileline typedef.
4902         * cpphash.h (struct cpp_reader):  Likewise for field out.first_line.
4903
4904 2003-09-18  Danny Smith  <dannysmith@users.sourceforge.net>
4905
4906         * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
4907         total parm size if a parm has incomplete type.
4908         (gen_fastcall_suffix): Likewise.
4909
4910 2003-09-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4911
4912         * except.c (output_function_exception_table): Adjust last change
4913         to handle TYPE of INTEGER_CST.
4914
4915 2003-09-18  Mark Mitchell  <mark@codesourcery.com>
4916
4917         PR target/11184
4918         * builtins.c (expand_builtin_apply): Use convert_memory_address
4919         before returning the value.
4920
4921         * alias.c (find_base_value): Simplify use of
4922         convert_memory_address.
4923         (find_base_term): Likewise.
4924         * builtins.c (expand_builtin_stejmp_setup): Likewise.
4925         (expand_builtin_longjmp): Likewise.
4926         (expand_builtin_prefetch): Likewise.
4927         (get_memory_rtx): Likewise.
4928         (expand_builtin_return): Likewise.
4929         (expand_builtin_memcpy): Likewise.
4930         (expand_builtin_strncpy): Likewise.
4931         (expand_builtin_memset): Likewise.
4932         (expand_builtin_va_arg): Likewise.
4933         (expand_builtin_va_copy): Likewise.
4934         (expand_builtin_alloca): Likewise.
4935         * calls.c (expand_call): Likewise.
4936         * except.c (expand_builtin_extract_return_addr): Likewise.
4937         (expand_builtin_eh_return): Likewise.
4938         * explow.c (convert_memory_address): Define even when
4939         POINTER_EXTEND_UNSIGNED is not defined.  Do nothing if the address
4940         is already in the right mode.
4941         * explow.c (memory_address): Simplify use of convert_memory_address.
4942         (probe_stack_range): Likewise.
4943         * expmed.c (make_tree): Likewise.
4944         * expr.c (emit_block_move_in_libcall): Likewise.
4945         (expand_assignment): Likewise.
4946         (expand_expr): Likewise.
4947         * function.c (assign_parms): Likewise.
4948         (expand_function_end): Likewise.
4949         * integrate.c (copy_rtx_and_substitute): Likewise.
4950         * stmt.c (expand_computed_goto): Likewise.
4951
4952 2003-09-18  Roger Sayle  <roger@eyesopen.com>
4953
4954         * simplify-rtx.c (simplify_unary_operation): Only transform
4955         (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
4956         is -1.  RTL "not" is a bit-wise not, "~", not a logical not "!".
4957
4958 2003-09-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4959
4960         PR target/11674
4961         * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
4962
4963 2003-09-18  Roger Sayle  <roger@eyesopen.com>
4964
4965         * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
4966         PARITY_EXPR): Delete unused tree codes.
4967         * c-common.c (c_common_truthvalue_conversion): Delete references
4968         to FFS_EXPR and POPCOUNT_EXPR.
4969         * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
4970         (pp_c_expression): Likewise.
4971         * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
4972         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
4973         * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
4974         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.  Add support for calls to
4975         BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
4976         and long long variants.
4977
4978 2003-09-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4979
4980         * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
4981         * c-pretty-print.c: Fix formatting.
4982         (pp_c_integer_constant): Append type annotation to literals.  Tidy.
4983         (pp_c_type_specifier): Tidy.
4984         (pp_c_compound_literal): New function.
4985         (pp_c_initializer): Simplify..
4986         (pp_c_initializer_list): Likewise.
4987         (pp_c_brace_enclosed_initializer_list): New function.
4988         (pp_c_postfix_expression): Simplify.
4989
4990 2003-09-17  Alexandre Oliva  <aoliva@redhat.com>
4991
4992         * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
4993         one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
4994
4995 2003-09-17  Richard Henderson  <rth@redhat.com>
4996
4997         * tree-optimize.c (tree_rest_of_compilation): Save and restore
4998         input_location.
4999
5000 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
5001
5002         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
5003
5004 2003-09-17  Richard Henderson  <rth@redhat.com>
5005
5006         * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
5007
5008 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5009
5010         * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
5011         * configure: Regenerate.
5012
5013 2003-09-17  Mark Mitchell  <mark@codesourcery.com>
5014
5015         PR debug/12066
5016         * dbxout.c (dbxout_init): Use a langhook to find builtin types.
5017         * langhooks-def.h (lhd_return_null_tree_v): New function.
5018         (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
5019         (LANG_HOOKS_DECLS): Add it to the intializer.
5020         * langhooks.c (lhd_return_null_tree_v): New function.
5021         * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
5022
5023 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
5024
5025         * configure.in: Quote gcc_config_arguments for configargs.h.
5026         * configure: Regenerated.
5027         * gccbug.in: Don't shell-expand gcc_config_arguments.
5028
5029 2003-09-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5030
5031         PR c++/11357
5032         * c-pretty-print.c (pp_c_floating_constant): Append
5033         type-annotation to floating constants.
5034
5035 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5036
5037         * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
5038         Define _ABIO32.
5039         Use it for _MIPS_SIM.
5040         * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
5041
5042         * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
5043         Moved ...
5044         * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
5045         updating comment.
5046         Fixes PR target/10190.
5047
5048 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
5049
5050         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
5051         to shared libraries.
5052
5053 2003-09-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
5054
5055         PR optimization/11646
5056         * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
5057         EDGE_ABNORMAL flag for EH edges.
5058         * toplev.c (rest_of_handle_cse): Delete unreachable blocks
5059         if dead edges were purged.
5060
5061 2003-09-16  Bernardo Innocenti  <bernie@develer.com>
5062
5063         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
5064         * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
5065         * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
5066         * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
5067
5068 2003-09-16  Ian Lance Taylor  <ian@wasabisystems.com>
5069
5070         * cfgcleanup.c (label_is_jump_target_p): Correct use of table
5071         returned by tablejump_p.
5072
5073 2003-09-16  Joel Brobecker  <brobecker@gnat.com>
5074
5075         * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
5076
5077 2003-09-16  Roger Sayle  <roger@eyesopen.com>
5078
5079         PR bootstrap/12269
5080         * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
5081         argument to be VOIDmode, taking the mode of the comparison from
5082         the operands.  Only call simplify_relational_operation if we
5083         know the mode of the comparison.  Honor FLOAT_STORE_FLAG_VALUE
5084         if comparison has a floating point result.  Ensure that the
5085         result is always of the specified mode.
5086         (simplify_replace_rtx): Simplify call to simplify_gen_relational.
5087         (simplify_unary_operation): Ensure the correct mode and cmp_mode
5088         are always passed to simplify_gen_relational.  Simplify NOT of
5089         comparison operator in any mode, not just BImode.
5090         (simplify_ternary_operation): Correct tests on the return value
5091         of simplify_relational_operation to use const_true_rtx, not
5092         const1_rtx.  Abort if it ever returns a non-constant result.
5093
5094         * cfgloopanal.c (count_strange_loop_iterations): Use the function
5095         simplify_relational_operation, not simplify_gen_relational, if
5096         we're only interested in constant comparisons and will ignore
5097         non-constant results.
5098
5099 2003-09-16  Roger Sayle  <roger@eyesopen.com>
5100
5101         * fold-const.c (tree_swap_operands_p): New function to determine
5102         the prefered ordering of operands.
5103         (fold): Numerous clean-ups.  Use tree_swap_operands_p when swapping
5104         operands to commutative, comparison or ternary operators.  Replace
5105         uses of TREE_SET_CODE with recursive call to fold.  Remove duplicate
5106         transformation of A ? B : C into !A ? C : B.
5107
5108 2003-09-16  Jakub Jelinek  <jakub@redhat.com>
5109
5110         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5111         * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5112         * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5113         * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5114         * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5115         * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5116         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5117         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5118
5119 2003-09-16  Jason Merrill  <jason@redhat.com>
5120             Jakub Jelinek  <jakub@redhat.com>
5121
5122         * c-common.c (handle_warn_unused_result_attribute): New function.
5123         (c_common_attribute_table): Add warn_unused_result.
5124         (c_expand_expr): Issue warning when result of inlined function
5125         with warn_unused_result attribute is ignored.
5126         * calls.c (expand_call): Issue warning when result of function
5127         with warn_unused_result attribute is ignored.
5128         * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
5129         * expr.c (expr_wfl_stack): Define.
5130         (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
5131         pass const0_rtx as target.  Chain locations into expr_wfl_stack.
5132         * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
5133         bit if inlined function has warn_unused_result attribute.
5134         * input.h (expr_wfl_stack): Declare.
5135         * doc/extend.texi: Document warn_unused_result attribute.
5136
5137 2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
5138
5139         * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
5140
5141 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
5142
5143         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
5144         ATTRIBUTE_UNUSED.
5145         (call_insn_operand): For PIC, don't allow a direct call to a
5146         function in a different section than the current one.
5147
5148 2003-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5149
5150         * doc/invoke.texi (Warning Options): Add missing hyphen before
5151         "Wimport".  Change "-Wno-endif-labels" to "-Wendif-labels".
5152         Move "-Wold-style-definition" to the C-only section.
5153         Fix the ordering of the warning options.
5154
5155 2003-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5156             Jeff Law  <law@redhat.com>
5157
5158         * gcse.c (remove_reachable_equiv_notes): New.
5159         replace_store_insn): Call it.  Update antic list.
5160         (store_killed_in_insn): Take REG_EQUAL notes into account.
5161         (build_store_vectors, delete_store): Add parameter to
5162         replace_store_insn call.
5163
5164 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
5165
5166         * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
5167         SYMBOL_REF_LOCAL_P.
5168
5169 2003-09-15  Kazu Hirata  <kazu@cs.umass.edu>
5170
5171         * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
5172         (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
5173         * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
5174         Likewise.
5175         * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
5176         Likewise.
5177         * config/rs6000/rs6000.c (function_arg_padding): Likewise.
5178         * config/sparc/sparc.c (function_arg_padding): Likewise.
5179
5180 2003-09-15  Vladimir Makarov  <vmakarov@redhat.com>
5181
5182         * haifa-sched.c (schedule_block): Use ready_remove_first instead
5183         of choose_ready for non-dfa insn scheduling.
5184
5185 2003-09-15  Andreas Jaeger  <aj@suse.de>
5186             Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5187
5188         * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
5189         * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
5190         * c-parse.in: Warn about old-style parameter definition.
5191         * c-common.c: Define warn_old_style_defintion.
5192         * c-common.h: Declare it.
5193         * c.opt: Add Wold-style-defintion.
5194
5195 2003-09-15  Andreas Jaeger  <aj@suse.de>
5196
5197         * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
5198         * config/rs6000/rs6000.c: Likewise.
5199
5200 2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5201
5202         PR optimization/10914
5203         * expr.h (get_condition, canonicalize_condition): Declaration changed.
5204         * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
5205         and canonicalize_condition calls.
5206         * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
5207         delete_null_pointer_checks): Ditto.
5208         * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
5209         * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
5210         * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
5211         (canonicalize_condition, get_condition): Allow to return comparisons
5212         of cc mode registers.
5213         * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
5214         cc mode registers comparison in condition.
5215
5216 2003-09-12  Mark Mitchell  <mark@codesourcery.com>
5217
5218         * coverage.c (create_coverage): Do not call pushlevel/poplevel.
5219         * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
5220         function.
5221         * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
5222
5223 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
5224
5225         * combine.c (simplify_comparison): Convert
5226         (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
5227         (eq (and (lshiftrt X Y) 1) 0).
5228
5229 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
5230
5231         * alias.c: Follow spelling conventions.
5232         * cpphash.h: Likewise.
5233         * fold-const.c: Likewise.
5234
5235 2003-09-14  Alexandre Oliva  <aoliva@redhat.com>
5236
5237         * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
5238         * c-lex.c (cb_line_change): Skip line changing whenever
5239         c-ppoutput.c would.
5240
5241 2003-09-14  Steven Bosscher  <steven@gcc.gnu.org>
5242
5243         * ra.c: Convert to ISO C90 prototypes.
5244         * ra-build.c: Likewise.
5245         * ra-colorize.c: Likewise.
5246         * ra-debug.c: Likewise.
5247         * ra-rewrite.c: Likewise.
5248
5249 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
5250
5251         * Makefile.in (%.dvi): Remove excess $(docdir).
5252
5253 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
5254
5255         * function.c (STACK_BYTES): Move definition to head of file.
5256         (assign_parms): Don't pass current_function_pretend_args_size
5257         directly to SETUP_INCOMING_VARARGS.  For partial register arguments,
5258         round current_function_pretend_args_size up to STACK_BYTES.  Skip any
5259         excess before laying out the argument.
5260
5261 2003-09-14  Andreas Jaeger  <aj@suse.de>
5262
5263         * objc/objc-act.c: Convert to ISO C90 prototypes.
5264         * objc/objc-act.h: Likewise.
5265
5266 2003-09-14  Olaf Hering  <olh@suse.de>
5267
5268         * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
5269
5270 2003-09-13  Andrew Pinski <pinskia@physics.uc.edu>
5271
5272         PR target/12021
5273         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
5274         as they already are done in config/m68k/m68k.h.
5275         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
5276
5277         * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
5278         (machopic_output_stub): Only generate pic base symbols when using pic
5279         and generate them in the form L00000000$spb.
5280
5281 2003-09-13  Richard Henderson  <rth@redhat.com>
5282
5283         * cgraphunit.c (cgraph_assemble_pending_functions): Export.
5284         (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
5285         * cgraph.h: Update.
5286
5287 2003-09-12  Dale Johannesen  <dalej@apple.com>
5288
5289         * config/rs6000/rs6000.c: Fix typos in previous.
5290
5291 2003-09-12  Ziemowit Laski  <zlaski@apple.com>
5292
5293         * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
5294         when allocating pp->buffer.
5295
5296 2003-09-12  Geoffrey Keating  <geoffk@apple.com>
5297
5298         * config/darwin.c (machopic_select_rtx_section): Use
5299         const_data_section for things that might require relocation.
5300
5301 2003-09-12  H.J. Lu  <hongjiu.lu@intel.com>
5302
5303         PR bootstrap/12264
5304         * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
5305
5306 2003-09-12  Bob Wilson  <bob.wilson@acm.org>
5307
5308         * config/xtensa/elf.h (ASM_SPEC): Remove no-density option.  Reformat.
5309         * config/xtensa/linux.h (ASM_SPEC): Likewise.
5310         * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
5311         -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
5312         -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
5313         -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
5314         -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
5315         -m[no-]hard-float-rsqrt options.  Delete corresponding MASK_* macros
5316         and redefine corresponding TARGET_* macros with constants from the
5317         xtensa-config.h header.
5318         * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
5319         for the options listed above.
5320
5321 2003-09-12  Dale Johannesen  <dalej@apple.com>
5322
5323         * config/rs6000/rs6000-protos.h:  Use C90 prototypes.
5324         * config/rs6000/rs6000-c.c:  Ditto.
5325         * config/rs6000/rs6000.c:  Ditto.
5326         * config/rs6000/ sysv4.h:  Ditto.
5327
5328 2003-09-12  Chris Lattner <sabre@nondot.org>
5329
5330         * loop.c: Move comments describing BIV's and GIV's to top of file
5331
5332 2003-09-12  Roger Sayle  <roger@eyesopen.com>
5333
5334         PR optimization/8967
5335         * alias.c (write_dependence_p): Modify to take an additional constp
5336         argument that controls whether the UNCHANGING_RTX_P flags are used.
5337         (anti_dependence, output_dependence): Adjust write_dependence_p
5338         callers to pass this additional argument, to return the same result.
5339         (unchanging_anti_dependence): New variant of anti_dependence that
5340         ignores the UNCHANGING_RTX_P property on memory references.
5341         * rtl.h (unchaning_anti_dependence): Prototype here.
5342         * flow.c (init_propagate_block): Place fake constant mem writes on
5343         the mem_set_list so that dead writes to const variables are deleted.
5344         (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
5345         (mark_used_regs): Likewise.
5346
5347 2003-09-12  Richard Sandiford  <rsandifo@redhat.com>
5348
5349         * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
5350         (mcore_secondary_reload_class): Declare.
5351         (mcore_output_inline_const_forced): Remove.
5352         * config/mcore/mcore.md (movsi): Remove the code that forced
5353         non-inlineable constants into a register if the target was r15
5354         or the stack pointer.  Remove constant restrictions from the main
5355         define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
5356         of an r <- P alternative.  Remove fallback define_insn for reload.
5357         (movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
5358         define_insn.  Use mcore_output_move in the remaining define_insn.
5359         Adjust condition and constraints in the way as for movsi.
5360         (movdi): Always split unacceptable constants into two.  Use
5361         simplify_gen_subreg instead of operand_subword{,_force}.
5362         * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
5363         (mcore_output_move): Support HImode and QImode moves as well.
5364         (mcore_m15_operand_p): New function.
5365         (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
5366         (mcore_secondary_reload_class): New function.
5367         * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
5368         terms of mcore_secondary_reload_class.
5369
5370 2003-09-11  Mike Stump  <mrs@apple.com>
5371
5372         * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
5373
5374 2003-09-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5375
5376         * builtins.c (fold_builtin_logarithm): if N can't be truncated to
5377         MODE exactly, then only convert logN(N) -> 1.0 if
5378         flag_unsafe_math_optimizations is set.
5379
5380         * builtins.c (builtin_dconsts_init, dconstpi, dconste,
5381         init_builtin_dconsts): Delete.
5382         * emit-rtl.c (dconstpi, dconste): Define.
5383         (init_emit_once): Initialize dconstpi & dconste.
5384         * real.h (dconstpi, dconste): Declare.
5385
5386 2003-09-11  Alexandre Oliva  <aoliva@redhat.com>
5387
5388         PR fortran/11522
5389         * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
5390         for ultimate origin even if block is abstract.
5391
5392 2003-09-11  Roger Sayle  <roger@eyesopen.com>
5393
5394         * combine.c (combine_simplify_rtx): Move several NOT and NEG
5395         optimizations from here...
5396         * simplify-rtx.c (simplify_unary_operation): to here.  Recursively
5397         simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
5398
5399 2003-09-11  Richard Henderson  <rth@redhat.com>
5400
5401         * cgraphunit.c (cgraph_finalize_function): Add nested arg.
5402         Tweek tests for function already generated.
5403         (cgraph_expand_function): Don't double announce in !unit-at-a-time.
5404         * cgraph.h (cgraph_finalize_function): Update for extra arg.
5405         * c-decl.c (finish_function): Likewise.
5406
5407 2003-09-10  Joe Buck  <jbuck@welsh-buck.org>
5408
5409         * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
5410
5411 2003-09-10  Jerry Quinn  <jlquinn@optonline.net>
5412
5413         * real.c: Update URL to VAX floating point docs.
5414         (decode_vax_d): Extract 8 exponent bits instead of 7.
5415
5416 2003-09-10  Ian Lance Taylor  <ian@wasabisystems.com>
5417
5418         * combine.c (force_to_mode): Set fuller_mask based only on mask,
5419         not op_mode.
5420
5421 2003-09-11  Jan Hubicka  <jh@suse.cz>
5422
5423         * c-objc-common.c (c_cannot_inline_tree_fn): Warn
5424         on why function is not inlinable; do not check
5425         the body.
5426         (inline_forbidden_p): Move to...
5427         * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
5428         deal with alloca, longjmp.
5429         (inline_forbidden_p): New static function.
5430         (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
5431         find_builtin_longjmp_call): Kill.
5432
5433 2003-09-10  Richard Henderson  <rth@redhat.com>
5434
5435         * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
5436         * cgraphunit.c: Update to match.
5437         (record_call_1): Rearrange.  Call lang hook for language nodes.
5438         (cgraph_analyze_function): Don't call lower_function.
5439         * langhooks.h (struct lang_hooks_for_callgraph): Replace
5440         lower_function with analyze_expr.
5441         * langhooks-def.h: Update to match.
5442         * langhooks.c (lhd_callgraph_analyze_expr): New.
5443
5444 2003-09-10  Martin Husemann  <martin@duskware.de>
5445
5446         PR target/11965
5447         * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
5448         constants greater than 63.
5449         * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
5450         against constants greater than 31.
5451         (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
5452         constants greater than 63.
5453
5454 2003-09-09  Richard Henderson  <rth@redhat.com>
5455
5456         * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
5457         * cgraph.h (cgraph_finalize_function): Update.
5458         * c-decl.c (finish_function): Update.
5459
5460 2003-09-09  Devang Patel  <dpatel@apple.com>
5461
5462         * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
5463         * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
5464
5465 2003-09-09  Eric Christopher  <echristo@redhat.com>
5466
5467         * configure.in: Change usage of 'head' to 'sed 1q'.
5468         * configure: Regenerate.
5469
5470 2003-09-09  Richard Henderson  <rth@redhat.com>
5471
5472         * except.c: Include cgraph.h.
5473         (output_function_exception_table): Invoke
5474         cgraph_varpool_mark_needed_node.
5475         * Makefile.in (except.o): Update.
5476
5477 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
5478
5479         * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
5480         and use it throughout.
5481
5482 2003-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5483
5484         * builtins.c (real_dconstp, fold_builtin_logarithm,
5485         fold_builtin_exponent): New, split out from fold_builtin.  Also
5486         generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
5487         * emit-rtl.c (dconst3, dconst10, dconstthird): New.
5488         (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
5489         of hardcoded array size.
5490         * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
5491         (tree_expr_nonnegative_p): Likewise.
5492         * real.h (dconst3, dconst10, dconstthird): New.
5493
5494 2003-09-09  Jan Hubicka  <jh@suse.cz>
5495
5496         * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
5497         inline functions.
5498         (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
5499         DECL_SAVED_TREE.
5500
5501 2003-09-09  Roger Sayle  <roger@eyesopen.com>
5502
5503         * builtins.c (fold_builtin_cabs): Protect the complex argument
5504         against multiple evaluation when optimizing cabs* into sqrt*.
5505
5506 2003-09-09  Jan Hubicka  <jh@suse.cz>
5507
5508         * varasm.c (notice_global_symbol):  Properly deal with weak symbols.
5509
5510 2003-09-08  Kelley Cook <kelleycook@wideopenwest.com>
5511
5512         * Makefile.in: Revert yesterday's change.
5513
5514 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
5515             Peter Barada <peter@baradas.org>
5516
5517         * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
5518         * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
5519         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
5520         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
5521         * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
5522         * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
5523         * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
5524         (m68k_compute_frame_layout): New function.
5525         (m68k_initial_elimination_offset): New function.
5526         (m68k_output_function_prologue): ColdFire-specific movem handling.
5527         (m68k_output_function_epilogue): Likewise.
5528         * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
5529         (ARG_POINTER_REGNUM): Add new definition.
5530         (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
5531         (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
5532         (CAN_ELIMINATE): Likewise.
5533         (INITIAL_ELIMINATION_OFFSET): Likewise.
5534
5535 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
5536
5537         * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
5538         by removing redundant variable cfa_store_offset.
5539
5540 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
5541
5542         * langhooks-def.h (lhd_register_builtin_type): New function.
5543         (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
5544         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5545         * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
5546         * langhooks.c (lhd_register_builtin_type): New function.
5547         * c-common.h (c_register_builtin_type): Declare.
5548         * c-common.c (c_register_builtin_type): New function.
5549         * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
5550         c_register_builtin_type.
5551         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
5552         __float80, and __float128 macros.
5553         * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
5554         __float80, and __float128 types.
5555
5556 2003-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5557
5558         * builtin-types.def
5559         (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
5560         BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
5561         BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
5562         * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
5563         BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
5564         BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
5565         BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
5566         BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
5567         BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
5568         BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
5569         BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
5570         BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
5571         BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
5572         BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
5573         BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
5574         BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
5575         BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
5576         New.
5577         * doc/extend.texi: Document new builtins.
5578
5579 2003-09-09  Jan Hubicka  <jh@suse.cz>
5580
5581         * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
5582         finalization.
5583         * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
5584         functions, check for COMDAT.
5585         (cgraph_assemble_pending_functions): Break out from...
5586         (cgraph_finalize_function): ... here; allow redefinig of extern inline
5587         functions.
5588         (record_call_1): Record function references only in non-unit-at-a-time
5589         mode.
5590         (cgraph_analyze_function): Reset current_function_decl.
5591         (cgraph_finalize_compilation_unit):  Assemble pending functions.
5592
5593 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
5594
5595         * mklibgcc.in (libcc.a): Depend on stmp-dirs.
5596         (libgov.a): Likewise.
5597         (libgcc_eh.a): Likewise.
5598
5599 2003-09-08  Roger Sayle  <roger@eyesopen.com>
5600
5601         * fold-const.c (operand_equal_p): Clarify documentation.
5602
5603 2003-09-08  Richard Henderson  <rth@redhat.com>
5604
5605         * c-decl.c (c_expand_body_1): Push and pop function context here.
5606         * tree-optimize.c (tree_rest_of_compilation): ... not here.  Take
5607         nested argument instead of computing nesting ourselves.
5608
5609 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
5610
5611         * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
5612         regstack if optimizing but not scheduling after reload.
5613
5614 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
5615
5616         * config/sparc/sparc.c (struct machine_function): New type.
5617         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
5618         (sparc_override_options): Initialize init_machine_status.
5619         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
5620         tie_symbolic_operand, tle_symbolic_operand): New functions.
5621         (symbolic_operand): Disallow tls_symbolic_operand.
5622         (symbolic_memory_operand): Likewise.
5623         (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
5624         constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
5625         New functions.
5626         (sparc_tls_symbol): New variable.
5627         (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
5628         legitimize_address): New functions.
5629         (print_operand): Handle %&.
5630         (sparc_init_machine_status, get_some_local_dynamic_name,
5631         get_some_local_dynamic_name_1): New functions.
5632         (sparc_output_dwarf_dtprel): New function.
5633         * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
5634         constant_address_p.
5635         (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
5636         (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
5637         (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
5638         (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
5639         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
5640         (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
5641         (ASM_OUTPUT_DWARF_DTPREL): Define.
5642         (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
5643         tie_symbolic_operand, tle_symbolic_operand.
5644         * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
5645         UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
5646         (tls_call_delay): New attribute.
5647         (in_call_delay): Use it.
5648         (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
5649         (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
5650         tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
5651         tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
5652         tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
5653         tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
5654         (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
5655         tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
5656         tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
5657         tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
5658         tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
5659         tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
5660         tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
5661         tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
5662         insns.
5663         * config/sparc/sparc-protos.h (legitimate_constant_p,
5664         constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
5665         legitimize_tls_address, legitimize_address, tls_symbolic_operand,
5666         tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
5667         * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5668         * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
5669         * configure.in (sparc*-*-*): Add TLS check.
5670         * configure: Rebuilt.
5671
5672 2003-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
5673
5674         PR target/11689
5675         * config/i386/i386.c (memory_address_length): Fix computation when
5676         the base is esp or ebp.
5677
5678 2003-09-07  Mark Mitchell  <mark@codesourcery.com>
5679
5680         PR c++/11852
5681         * varasm.c (initializer_constant_valid_p): Correct logic for
5682         CONSTRUCTORs.
5683
5684 2003-09-07  Roger Sayle  <roger@eyesopen.com>
5685
5686         * expr.c (expand_operands): New function to expand an operand pair.
5687         (expand_expr): Call expand_operands whenever we need to expand both
5688         operands of a binary operator.
5689         (do_store_flag): Likewise for operands of comparison operations.
5690
5691 2003-09-07  Roger Sayle  <roger@eyesopen.com>
5692
5693         * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
5694         (-A)*B if we care about sign-dependent rounding.
5695
5696 2003-09-07  Gabriel Dos Reis  <gcc@integrable-solutions.net>
5697
5698         * c-pretty-print.h (pp_c_left_brace): Declare.
5699         (pp_c_right_brace): Likewise.
5700         * c-pretty-print.c (pp_c_left_brace): Now a function
5701         (pp_c_right_brace): Likewise.
5702
5703 2003-09-07  Jan Hubicka  <jh@suse.cz>
5704
5705         * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
5706
5707 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5708
5709         * diagnostic.c (warn_deprecated_use): Move to toplev.c
5710
5711 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5712
5713         * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
5714         * Makefile.in (langhooks.o): Depend on diagnostic.h
5715
5716 2003-09-06  James E Wilson  <wilson@tuliptree.org>
5717
5718         * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
5719         simplify.
5720
5721 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
5722
5723         * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
5724         and use it throughout.
5725
5726 2003-09-07  Jan Hubicka  <jh@suse.cz>
5727
5728         * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
5729
5730         * toplev.c  (rest_of_decl_compilation):  Do not finalize external
5731         virables.
5732
5733         * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
5734         functions.
5735         (cgraph_varpool_finalize_decl): Notice global symbol when needed.
5736
5737 2003-09-06  Jan Hubicka  <jh@suse.cz>
5738
5739         PR target/12070
5740         * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
5741
5742         PR opt/12082
5743         * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
5744
5745 2003-09-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5746
5747         * diagnostic.c (announce_function): Move to toplev.c.
5748
5749 2003-09-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5750
5751         * gcse.c (expr_equiv_p): Don't consider anything to be equal to
5752         volatile mem.
5753
5754 2003-09-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5755
5756         * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
5757         when gc checking is enabled.
5758
5759 2003-09-06  Steven Bosscher  <steven@gcc.gnu.org>
5760
5761         PR c/9862
5762         * c-decl.c (c_expand_body_1): Move return warning from here...
5763         (finish_function): ...to here.
5764
5765 2003-09-05  Geoffrey Keating  <geoffk@apple.com>
5766
5767         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
5768         a subset of the input class.
5769
5770 2003-09-05  Kazu Hirata  <kazu@cs.umass.edu>
5771
5772         * config/i860/i860.c: Follow spelling conventions.
5773         * config/i860/i860.h: Likewise.
5774         * config/sh/sh.h: Likewise.
5775
5776 2003-09-05  Nitin Yewale  <NitinY@KPITCummins.com>
5777
5778         * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
5779         * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
5780         * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
5781
5782 2003-09-05  Roger Sayle  <roger@eyesopen.com>
5783             Richard Henderson  <rth@redhat.com>
5784
5785         PR optimization/1823
5786         * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
5787         multiplication to implement division by constant integer.
5788
5789 2003-09-05  Jan Hubicka  <jh@suse.cz>
5790
5791         * opts.c (decode_options): Enable unit-at-a-time at -O2.
5792         * params.def (max-inline-insns-single): Set to 500
5793         (max-inline-insns-auto): Set to 150
5794         * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
5795
5796 2003-09-04  Richard Henderson  <rth@redhat.com>
5797
5798         * cgraph.c (cgraph_mark_reachable_node): Split out from ...
5799         (cgraph_mark_needed_node): Remove needed argument.
5800         * cgraph.h: Update to match.
5801         * cgraphunit.c (decide_is_function_needed): Split out from ...
5802         (cgraph_finalize_function): Reorg.  Avoid deferred_inline_function
5803         if we generated the function.
5804         (record_call_1): Update for cgraph_mark_reachable_node.
5805         * varasm.c (mark_referenced): Likewise.
5806         * objc/objc-act.c (mark_referenced_methods): Likewise.
5807
5808 2003-09-04  DJ Delorie  <dj@redhat.com>
5809
5810         * targhooks.c: Add comment explaining the migration process.
5811
5812 2003-09-04  Eric Christopher  <echristo@redhat.com>
5813
5814         * config/frv/t-frv: Fix path for frv-abi.h.
5815         * config/frv/frv-asm.h: Fix string concatenation.
5816
5817 2003-09-04  DJ Delorie  <dj@redhat.com>
5818
5819         * builtins.c (apply_args_size): Guard against a NULL cfun.
5820         (expand_builtin_apply_args_1): Likewise.
5821         (expand_builtin_apply): Likewise.
5822         Fixes PR bootstrap/12172.
5823
5824 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5825
5826         * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
5827         assembler supports Sun syntax for cmov.
5828         * configure: Regenerate.
5829         * config.in: Likewise.
5830         * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
5831         HAVE_AS_IX86_CMOV_SUN_SYNTAX.
5832         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
5833         Fixes PR target/12101.
5834
5835 2003-09-04  Matt Austern  <austern@apple.com>
5836
5837         * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
5838         with verbosity 0, instead of DECL_NAME, for human-readable string.
5839
5840 2003-09-04  Eric Christopher  <echristo@redhat.com>
5841
5842         * targhooks.c (default_return_in_memory): Allow
5843         unconverted ports.
5844
5845 2003-09-04  Eric Christopher  <echristo@redhat.com>
5846
5847         * targhooks.c (default_return_in_memory): Fix typo
5848         in last checkin.
5849
5850 2003-09-04  Eric Christopher  <echristo@redhat.com>
5851
5852         * targhooks.c (default_return_in_memory): Fix default
5853         definition.
5854
5855 2003-09-04  Bernardo Innocenti  <bernie@develer.com>
5856
5857         * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
5858         deleted function.
5859         * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
5860         enable coff-only code in m68k.c.
5861
5862 2003-09-04  Nick Clifton  <nickc@redhat.com>
5863
5864         * config.gcc: Add v850e1 target.  Allow --with-cpu to accept
5865         v850e1.
5866         * config/v850/v850.h: Accept v850e1 as a default CPU.
5867         Accept -mv850e1 as a command line option.
5868         * doc/invoke.texi: Document new -mv850e1 command line switch.
5869         * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
5870         -mv850e.
5871
5872 2003-09-04  Nick Clifton  <nickc@redhat.com>
5873
5874         * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
5875         * config/v850/t-v850: Only produce one extra multilib - for
5876         the v850e.
5877         * config/v850/t-v850e: New file: Only produce one extra
5878         multilib - for the v850.
5879
5880 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
5881
5882         * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
5883         * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
5884         * unwind.h (_Unwind_GetBSP): New prototype.
5885         * libgcc-std.ver: Add empty GCC_3.3.2 version.
5886         * mkmap-symver.awk: For symbol versions with no exported symbols,
5887         don't put anything into version script, just change all symbol
5888         versions which inherit from it to inherit from its ancestor.
5889
5890 2003-09-04  Eric Christopher  <echristo@redhat.com>
5891
5892         * config/mips/mips.c (mips_expand_prologue): Convert to
5893         calls.struct_value_rtx hook.
5894         (reg_or_const_float_1_operand): New.
5895         * config/mips/mips.h: Update Comments.
5896         (mips_arg): Add reg_or_const_float_1_operand.
5897         * config/mips/mips.md (divdf3); Convert to expander.
5898         (divsf3): Ditto.
5899         (*divdf3): New pattern.
5900         (*divsf3): Ditto.
5901
5902 2003-09-04  Jan Hubicka  <jh@suse.cz>
5903
5904         * toplev.c (wrapup_global_declarations): Fix final pass in
5905         unit-at-atime mode.
5906
5907 2003-09-04  Mark Mitchell  <mark@codesourcery.com>
5908
5909         * doc/extend.texi: Document removal of cast-as-lvalue extension in
5910         C++.
5911
5912 2003-09-04  Nicolas Roche  <roche@act-europe.fr>
5913
5914         * gcc.c (process_command): Fix typo.
5915
5916 2003-09-03  David O'Brien  <obrien@FreeBSD.org>
5917
5918         optimization/11980
5919         * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
5920         (PTRDIFF_TYPE): Likewise.
5921         (WCHAR_TYPE_SIZE): Likewise.
5922
5923 2003-09-03  DJ Delorie  <dj@redhat.com>
5924
5925         * targhooks.c: New file.
5926         * targhooks.h: New file.
5927         * Makefile.in: Add targhooks.o support.
5928         (function.o): Depend on$(TARGET_H).
5929         (stmt.o): Likewise.
5930         (combine.o): Depend on $(TREE_H) and $(TARGET_H).
5931         * builtins.c (apply_args_size, expand_builtin_apply_args_1,
5932         expand_builtin_apply): Convert to calls.struct_value_rtx hook.
5933         (expand_builtin_saveregs): Convert to
5934         calls.expand_builtin_saveregs hook.
5935         * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
5936         here, instead of ...
5937         (get_parm_info) ... here.
5938         (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
5939         hook.
5940         (finish_function): Handle calls.promote_prototypes hook here too.
5941         * c-typeck.c (convert_arguments): Convert to
5942         calls.promote_prototypes hook.
5943         (c_convert_parm_for_inlining): Likewise.
5944         * calls.c (initialize_argument_information): Convert to
5945         calls.promote_function_args hook.
5946         (expand_call): Convert to calls.struct_value_rtx,
5947         calls.strict_argument_naming,
5948         calls.pretend_outgoing_varargs_named, and
5949         calls.promote_function_return hooks.  Pass fndecl to
5950         aggregate_value_p.  Initialize CUMULATIVE_ARGS before calling
5951         hooks, so they can use that.
5952         (emit_library_call_value_1): Likewise.
5953         * combine.c (setup_incoming_promotions): Convert to
5954         calls.promote_function_args hook.
5955         * emit-rtl.c: Convert to calls.struct_value_rtx hook.
5956         * expr.c (expand_assignment): Pass call to aggregate_value_p.
5957         (expand_expr): Likewise.
5958         * expr.h: Remove support for SETUP_INCOMING_VARARGS,
5959         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
5960         RETURN_IN_MEMORY macro defaults.
5961         * final.c (profile_function): Convert to calls.struct_value_rtx
5962         hook.
5963         * function.c (aggregate_value_p): Accept function type tree as
5964         second parameter; try to deduce fntype from it.  Convert to
5965         calls.return_in_memory hook.
5966         (assign_parms): Convert to calls.setup_incoming_varargs,
5967         calls.strict_argument_naming, calls.promote_function_args,
5968         calls.pretend_outgoing_varargs_named hooks.  Pass fndecl to
5969         aggregate_value_p.
5970         (expand_function_start): Likewise.  Convert to
5971         calls.struct_value_rtx hook.
5972         (expand_function_end): Convert to calls.promote_function_return hook.
5973         (allocate_struct_function): Pass fndecl to aggregate_value_p.
5974         * hard-reg-set.h: Update comments to new hook names.
5975         * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
5976         * reg-stack.c (stack_result): Likewise.
5977         * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
5978         * stmt.c (expand_value_return): Convert to
5979         calls.promote_function_return hook.
5980         * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
5981         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
5982         TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
5983         TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
5984         TARGET_STRICT_ARGUMENT_NAMING,
5985         TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
5986         * target.h: Likewise.
5987         * tree.h (aggregate_value_p): Also takes a tree to deduce function
5988         attributes from (for target hooks).
5989         * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
5990         PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
5991         STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
5992         EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
5993         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
5994         to hooks.
5995
5996         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
5997         to aggregate_value_p.
5998         * config/arm/arm.c (arm_init_cumulative_args,
5999         arm_output_mi_thunk): Likewise.
6000         * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
6001         Likewise.
6002         * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
6003         mips_can_use_return_insn): Likewise.
6004         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
6005         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
6006         * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
6007         aggregate_value_p.
6008         * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
6009         function to aggregate_value_p.
6010         * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
6011         aggregate_value_p.
6012
6013         * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
6014         (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
6015         sh_function_arg_advance, sh_pass_in_reg_p): New.  * config/sh/sh.c
6016         (sh_handle_renesas_attribute, sh_promote_prototypes,
6017         sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
6018         sh_setup_incoming_varargs, sh_strict_argument_naming,
6019         sh_pretend_outgoing_varargs_named): New decls.
6020         (targetm): Add new hooks.
6021         (calc_live_regs): Save MACL and MACH if the function has the
6022         renesas attribute.
6023         (sh_expand_prologue): Support renesas attribute.
6024         (sh_builtin_saveregs): Make static.
6025         (sh_build_va_list): Support renesas attribute.
6026         (sh_va_start): Likewise.
6027         (sh_va_arg): Likewise.
6028         (sh_promote_prototypes): New.
6029         (sh_function_arg): New, moved from sh.h.  Support renesas
6030         attribute.
6031         (sh_function_arg_advance): Likewise.
6032         (sh_return_in_memory): Likewise.
6033         (sh_strict_argument_naming): Likewise.
6034         (sh_pretend_outgoing_varargs_named): Likewise.
6035         (sh_struct_value_rtx): New.
6036         (sh_attribute): Add renesas attribute.
6037         (sh_handle_renesas_attribute): New.
6038         (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
6039         (sh_ms_bitfield_layout_p): Support renesas attribute also.
6040         (sh_output_mi_thunk): Pass function to aggregate_value_p.  *
6041         config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
6042         -mhitachi.
6043         (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
6044         target hooks.
6045         (sh_args): Add renesas_abi flag.
6046         (INIT_CUMULATIVE_ARGS): Set it.  Pass fndecl to aggregate_value_p.
6047         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
6048         (PASS_IN_REG_P): Support renesas attribute.  Pass DF and TF on the
6049         stack for the renesas abi.
6050         (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
6051         SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
6052         PROMOTE_PROTOTYPES): Moved to sh.c.  * config/sh/sh.md (call): Set
6053         call cookie to indicate renesas calls.
6054
6055 2003-09-03  Mostafa Hagog  <mustafa@il.ibm.com>
6056
6057         * gcse.c (replace_one_set): New function.
6058         (pre_insert_copy_insn): Change the order of copying
6059         to make copy propagation discover additional PRE opportunities.
6060
6061 2003-09-03  Roger Sayle  <roger@eyesopen.com>
6062
6063         PR optimization/11700.
6064         * simplify-rtx.c (simplify_subreg): Check that the subreg offset
6065         of a hard register is representable before trying to simplify it
6066         using subreg_hard_regno.
6067
6068 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6069
6070         * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
6071         * configure: Regenerate.
6072
6073 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6074
6075         * intl.h (N_): Remove parentheses.
6076
6077 2003-09-03  Bernardo Innocenti  <bernie@develer.com>
6078
6079         * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
6080         * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
6081         definition and code blocks compiled when not defined.
6082         * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
6083         * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
6084         * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
6085         * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
6086
6087 2003-09-03  Jeff Sturm  <jsturm@one-point.com>
6088
6089         * cgraphunit.c (visited_nodes): New static variable.
6090         (record_call_1): Use walk_tree with visited_nodes.
6091         (cgraph_create_edges): Use walk_tree with visited_nodes.
6092         Setup/teardown visited_nodes hashtable.
6093
6094 2003-09-03  Roger Sayle  <roger@eyesopen.com>
6095
6096         * toplev.c (flag_rounding_math): New global variable.
6097         (f_options): Add to the list of language independent options.
6098         * flags.h (flag_rounding_math): Prototype here.
6099         (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
6100         * common.opt (frounding-math): New common command line option.
6101         * opts.c (common_handle_option): Handle OPT_frounding_math.
6102         (set_fast_math_flags): -ffast-math clears flag_rounding_math.
6103
6104         * doc/invoke.texi: Document this new command line option.
6105
6106 2003-09-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6107
6108         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
6109
6110 2003-09-03  Jan Hubicka  <jh@suse.cz>
6111
6112         * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
6113         * c-decl.c (finish_function):  Kill arguments, always use cgraph path.
6114         * c-objc-common.c: Kill include of gt-c-objc-common.h
6115         (expand_deferred_fns, deffer_fn): Kill function.
6116         (deferred_fns): Kill variable.
6117         (finish_cdtor): Update finish_function call.
6118         (c_objc_common_finish_file): Always call cgraph code.
6119         * c-parse.c: Regenerate.
6120         * c-parse.y: Regenerate.
6121         * c-tree.h (finish_function): Update prototype.
6122         * objc-acct.c (build_module_descriptor, finish_method_def):
6123         Update call of finish_function.
6124         * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
6125         forward prototype.
6126         (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
6127         function and assemble it if needed.
6128         (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
6129         mode.
6130         (cgraph_optimize): Likewise.
6131         (cgraph_expand_function): In non-unit-at-a-time mode keep function body
6132         even when it has no inline callees.
6133         * c-parse.in: Update calls to finish_function.
6134
6135 2003-09-03  Nick Clifton  <nickc@redhat.com>
6136
6137         * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
6138         Use #error to generate the message if TARGET_DEFAULT is not
6139         recognised.
6140
6141 2003-09-03  Richard Sandiford  <rsandifo@redhat.com>
6142
6143         * config/mips/mips.h (MASK_UNUSED1): Remove.
6144         (MASK_XGOT, TARGET_XGOT): Define.
6145         (TARGET_SWITCHES): Add an entry for -mxgot.
6146         (ASM_SPEC): Map -mxgot to -xgot.
6147         * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
6148         whether we're using a big-GOT sequences.
6149         (mips_legitimize_const_move, mips_expand_call): Likewise.
6150         (override_options): Revert 2003-01-09 change.
6151         * doc/invoke.texi: Document -mxgot.
6152
6153 2003-09-02  Jason Merrill  <jason@redhat.com>
6154
6155         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
6156         * config/sparc/sol2.h: Not here.
6157
6158 2003-09-02  Roger Sayle  <roger@eyesopen.com>
6159
6160         * expr.c (expand_expr): The code following both_summands performs
6161         the same task as simplify_gen_binary.  Replace all gotos to
6162         both_summands with a call to simplify_gen_binary and delete the
6163         now unused label.
6164
6165 2003-09-02  Jason Merrill  <jason@redhat.com>
6166
6167         PR c++/7327
6168         * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
6169
6170 2003-09-02  Jeff Sturm  <jsturm@one-point.com>
6171
6172         * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
6173         (cgraph_optimize_function): Set current_function_decl to the
6174         fndecl we're integrating from.
6175
6176 2003-09-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6177
6178         * builtins.def: Break out _Complex math functions into their
6179         own category.
6180
6181 2003-09-02  Andreas Jaeger  <aj@suse.de>
6182
6183         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
6184
6185 2003-09-02  Josef Zlomek  <zlomekj@suse.cz>
6186
6187         * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
6188         finding the note again.
6189
6190 2003-09-02  Nathanael Nerode  <neroden@gcc.gnu.org>
6191
6192         * config.gcc: Remove host-specific rewrites of target_alias.
6193
6194 2003-09-01  Mark Mitchell  <mark@codesourcery.com>
6195
6196         * Makefile.in (genprogs): Fix typo.
6197
6198         * Makefile.in (gencheck.o): Remove build commands.
6199         (dummy-conditions.o): Likewise.
6200         (read-rtl.o): Likewise.
6201         (gensupport.o): Likewise.
6202         (genconfig$(build_exeext)): Remove rule.
6203         (genconfig.o): Remove build commands.
6204         (genflags$(build_exeext)): Remove rule.
6205         (genflags.o): Remove build commands.
6206         (gencodes$(build_exeext)): Remove rule.
6207         (gencodes.o): Remove build commands.
6208         (genconstants.o): Remove build commands.
6209         (genemit$(build_exeext)): Remove rule.
6210         (genemit.o): Remove build commands.
6211         (genrecog$(build_exeext)): Remove rule.
6212         (genrecog.o): Remove build commands.
6213         (genextract$(build_exeext)): Remove rule.
6214         (genextract.o): Remove build commands.
6215         (genpeep$(build_exeext)): Remove rule.
6216         (genpeep.o): Remove build commands.
6217         (genattr$(build_exeext)): Remove rule.
6218         (genattr.o): Remove build commands.
6219         (genprognames): New variable.
6220         (genprogs): Likewise.
6221         (genobjs): Likewise.
6222         (genprogs): New rule.
6223         (genobjs): Likewise.
6224         (genattrtab.o): Remove build commands.
6225         (genautomata.o): Likewise.
6226         (genoutput$(build_exeext)): Remove rule.
6227         (genoutput.o): Remove build commands.
6228         (gengenrtl.o): Likewise.
6229         (genpreds.o): Likewise.
6230         (gengtype.o): Likewise.
6231         (genconditions.o): Likewise.
6232         (gen-protos.o): Likewise.
6233         (scan.o): Likewise.
6234         (fix-header.o): Likewise.
6235         (scan-decls.o): Likewise.
6236         (check-g++): Combine with other check targets.
6237         (check-gcc): Likewise.
6238         (check-g77): Likewise.
6239         (check-objc): Likewise.
6240
6241 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
6242
6243         * config.gcc: Remove host-specific stuff which is unused here
6244         since the introduction of config.host.
6245
6246         * doc/fragments.texi: Mention config.host.
6247         * doc/sourcebuild.texi: Mention config.host.  Give brief descriptions
6248         of config.build, config.host, and config.gcc.
6249
6250 2003-09-01  Zack Weinberg  <zack@codesourcery.com>
6251
6252         * c-decl.c (pushdecl): Don't put variables on
6253         C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
6254         incomplete.
6255
6256 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
6257
6258         * config.host: New file.
6259         * config.gcc: Remove some host-specific stuff and some
6260         logic needed only for repeated invocation.
6261         * configure.in: Use config.host.
6262         * configure: Regenerate.
6263
6264 2003-09-01  Josef Zlomek  <zlomekj@suse.cz>
6265
6266         * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
6267         * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
6268         * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
6269         (fold): Kill BIT_ANDTC_EXPR and label bit_and.
6270         * tree.def (BIT_ANDTC_EXPR): Kill.
6271
6272 2003-08-31  Nathanael Nerode  <neroden@gcc.gnu.org>
6273
6274         * configure.in: Remove uses of "for x in .. ${foo}" idiom.
6275         * configure: Regenerate.
6276
6277         * config.gcc:  Remove references to install_headers_dir, now unused
6278         since introduction of config.build.
6279         * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
6280
6281         * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
6282         config.build.
6283
6284         * config.build: New file.
6285         * config.gcc: Remove some build-specific stuff.
6286         * configure.in: Use config.build.
6287         * configure: Regnerate.
6288
6289 2003-08-31  Steven Bosscher  <steven@gcc.gnu.org>
6290             Roger Sayle  <roger@eyesopen.com>
6291
6292         PR middle-end/11823
6293         * stmt.c (expand_end_case_type): Only use jump tables for dense
6294         switch statements when optimizing for size.
6295
6296 2003-08-31  Olivier Hainque  <hainque@act-europe.fr>
6297
6298         * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
6299         the != 0 case, which ensures pending stack adjustments are flushed.
6300
6301 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
6302
6303         * configure.frag: Delete file.
6304         * configure.in: Rename the substitution variables
6305         dep_host_xmake_file and dep_tmake_file to xmake_file and
6306         tmake_file respectively.  Do not expand $srcdir in the
6307         value of these; leave that for Make.  Introduce a new
6308         substitution varaible, all_lang_makefrags, which lists
6309         subdirectory Make-lang.in files; exclude these from
6310         all_lang_makefiles, which is now only for subdirectory
6311         outputs.  Do not invoke configure.frag.  Do not set nor
6312         AC_SUBST_FILE target_overrides, host_overrides, or
6313         language_fragments. Create build subdirectories in
6314         config.status extra commands.
6315         * configure: Regenerate.
6316         * Makefile.in: Update substitutions to match changes to
6317         configure.  Use include directives instead of @-insertions
6318         to read in host, target, and language fragments.
6319         (Makefile rule): Do not invoke configure.frag.  Do not copy
6320         config.status to config.run before executing it.  Set
6321         CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
6322         regenerated.
6323         (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
6324
6325 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
6326
6327         * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
6328         * c-typeck.c (same_translation_unit_p): New function.
6329         (comptypes): Use it instead of flags parameter to identify
6330         structure types from different translation units.
6331         * c-decl.c (duplicate_decls): Always call comptypes with
6332         COMPTYPE_STRICT flags argument.
6333         (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
6334         to file_scope_decl.
6335
6336 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
6337
6338         * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
6339         * c-decl.c (struct c_scope): Remove "incomplete" field.
6340         (pushdecl): Attach variables with incomplete types to
6341         the TYPE_MAIN_VARIANT of the incomplete type in question.
6342         (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
6343         to complete, not at current_scope->incomplete.  All such
6344         variables do need completion.
6345
6346 2003-08-30  Richard Earnshaw  <rearnsha@arm.com>
6347         Nicolas Pitre <nico@cam.org>
6348
6349         * arm/lib1funcs.asm (RETCOND): Delete.
6350         (RETLDM): New assembler macro.  Use it for returning with ldm/ldr.
6351         (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
6352         (__ARM_ARCH__): Move here from ieee754-?f.S.
6353         (RET, RETc): Clean up definitions.
6354         (DIV_FUNC_END): Renamed from FUNC_END.  All uses changed.
6355         (FUNC_END): New macro that marks the end of any function.
6356         (ARM_FUNC_START): New macro that allows an assembler routine to be
6357         implemented in ARM code even if a Thumb-only build.
6358         Unconditionally include ieee754-?f.S.
6359         * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
6360         Mark ends of functions.
6361         Split into separate conditionally-compiled units.
6362         Use RETLDM to return from routines.
6363         * arm/ieee754-sf.S: Similarly.
6364         * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
6365         Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
6366         _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
6367         _fixsfsi and _fixunssfsi.
6368
6369         * arm/ieee754-df.S (__muldf3): Fix bug when result of a
6370         multiplication underflows to zero.
6371         (__adddf3): Fix bug when using VFP ordering on little-endian
6372         processors.
6373         (__fixdfsi): Use rrx to extract the carry into a register instead of
6374         MRS instruction.  Optimize later use of result.
6375         * arm/ieee754-sf.S (__fixsfsi): Likewise.
6376         (__fixunssfsi): Use a better sequence for handling negative-or-zero.
6377
6378 2003-08-29  Richard Henderson  <rth@redhat.com>
6379
6380         * tree-optimize.c: New file.
6381         * Makefile.in (OBJS-archive): Add tree-optimize.o.
6382         (tree-optimize.o): New.
6383         * c-decl.c (store_parm_decls): Use allocate_struct_function.
6384         (finish_function): Don't free_after_parsing or free_after_compilation.
6385         (set_save_expr_context): Move to tree-optimize.c.
6386         (c_expand_body_1): Use tree_rest_of_compilation.
6387         * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
6388         * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
6389         * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
6390         iterate until closure.
6391         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
6392         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
6393         (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
6394         * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
6395         * toplev.h (tree_rest_of_compilation): Declare it.
6396
6397 2003-08-29  Richard Henderson  <rth@redhat.com>
6398
6399         * function.h (struct function): Add rtl_inline_init, saved_for_inline.
6400         * integrate.c (save_for_inline): Set saved_for_inline.
6401         * c-semantics.c (genrtl_scope_stmt): Check it.
6402         * toplev.c (wrapup_global_declarations): Check it.
6403         (rest_of_handle_inlining): Set and check rtl_inline_init.
6404         (rest_of_compilation): Remove out of date comment.
6405
6406 2003-08-29  Richard Henderson  <rth@redhat.com>
6407
6408         * function.c (allocate_struct_function): New, split out of ...
6409         (prepare_function_start, init_function_start): ... here.
6410         * expr.c (init_expr): Use ggc_alloc_cleared.
6411         * stmt.c (init_stmt_for_function): Likewise.
6412         * tree.h (allocate_struct_function): Declare.
6413
6414 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
6415
6416         * config.gcc: Don't use negated character class in shell case
6417         clause.
6418
6419 2003-08-29  Richard Henderson  <rth@redhat.com>
6420
6421         * function.h (struct function): Move function_frequency and
6422         max_jumptable_ents before start of bit field members.
6423
6424 2003-08-29  Richard Henderson  <rth@redhat.com>
6425
6426         * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
6427         (fold_builtin_constant_p) ... not here.
6428
6429 2003-08-29  Richard Henderson  <rth@redhat.com>
6430
6431         * c-tree.h (C_DECL_FILE_SCOPE): Move ...
6432         * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
6433         * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
6434
6435 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6436
6437         * builtins.def: Fix typos.
6438         (ATTR_MATHFN_FPROUNDING_STORE): New macro.
6439         (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
6440         BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
6441         BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
6442         BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
6443
6444         * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
6445         Use ATTR_MATHFN_FPROUNDING_ERRNO.
6446
6447 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
6448
6449         * config.gcc (i386-*-vsta): Fix obvious bogosity.
6450
6451         * fixinc/inclhack.def:  Remove special cases for unsupported
6452         PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
6453         * fixinc/fixincl.x: Regenerate.
6454
6455 2003-08-29  Mark Mitchell  <mark@codesourcery.com>
6456
6457         * Makefile.in (cpp.info): Just state dependencies.
6458         (gcc.info): Likewise.
6459         (gccint.info): Likewise.
6460         (gccinstall.info): Likewise.
6461         (cppinternals.info): Likewise.
6462         (cpp.dvi): Likewise.
6463         (gcc.dvi): Likewise.
6464         (gccint.dvi): Likewise.
6465         (gccinstall.dvi): Likewise.
6466         (cppinternals.dvi): Likewise.
6467         (gcov.1): Likewise.
6468         (cpp.1): Likewise.
6469         (gcc.1): Likewise.
6470         (gfdl.7): Likewise.
6471         (gpl.7): Likewise.
6472         (fsf-funding.7): Likewise.
6473         ($(objdir)/%.info): New pattern rule.
6474         (%.dvi): Likewise.
6475
6476 2003-08-29  Kelley Cook  <kelleycook@wideopenwest.com>
6477
6478         * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
6479         (restage2): Likewise.
6480         (restage3): Likewise.
6481         (restage4): Likewise.
6482         (restageprofile): Likewise.
6483         (restagefeedback): Likewise.
6484         (bubblestrap): Likewise.
6485
6486 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
6487
6488         * config.gcc: Narrow unsupported target match to avoid clobbering
6489         i?86-sequent-sysv4*.
6490
6491 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6492
6493         * builtins.c (mathfn_built_in): Handle new math builtins.
6494
6495 2003-08-28  Per Bothner  <per@bothner.com>
6496
6497         Fix (hopefully temporary) for breakage caused by my 08-21 patch.
6498         * cpplex.c (_cpp_get_fresh_line):  Check for null buffer.
6499         (_cpp_lex_buffer):  Likewise.
6500         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
6501
6502 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
6503
6504         * config/s390/s390.md ("*mulsi3_sign"): New insn.
6505         ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
6506         ("mulsidi3"): ... this new insn.
6507         ("umulsidi3"): New insn.
6508         ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
6509         mixed-mode matching constraints.
6510         ("udivmodsi4", "udivmoddisi3"): New insns.
6511         ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
6512
6513 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6514
6515         * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
6516         BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
6517         BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
6518         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
6519         BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
6520         BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
6521         BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
6522         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
6523         BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
6524         BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
6525         BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
6526         * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
6527         BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
6528         BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
6529         BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
6530         * tree.c: Assign new type_nodes.
6531         * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
6532         TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
6533         (float_ptr_type_node, double_ptr_type_node,
6534         long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
6535
6536         * doc/extend.texi: Document new builtins.
6537
6538 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6539
6540         * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
6541         BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
6542
6543         * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
6544         BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
6545         BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
6546         BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
6547         BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
6548         BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
6549         BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
6550         BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
6551         BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
6552         BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
6553
6554         * doc/extend.texi: Document new builtins.
6555
6556 2003-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
6557
6558         * fixinc/mkfixinc.sh: Remove special case code for unsupported
6559         variants of i?86, powerpcle, and thumb.
6560         * fixinc/mkfixinc.sh: Remove special case code for unsupported
6561         arm and hppa variants.
6562
6563 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6564
6565         * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
6566         BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
6567         BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
6568         BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
6569         BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
6570         BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
6571         BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
6572         BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
6573         BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
6574         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
6575
6576         * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
6577         BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
6578         BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
6579         BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
6580         BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
6581         BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
6582         BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
6583         BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
6584         BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
6585         BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
6586         BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
6587         BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
6588         BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
6589         BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
6590         BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
6591         BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
6592         BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
6593         BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
6594         BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
6595         BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
6596         BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
6597         BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
6598         BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
6599         BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
6600         BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
6601         BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
6602         BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
6603         BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
6604         BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
6605         BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
6606         BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
6607
6608         * doc/extend.texi: Document new builtins.
6609
6610 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
6611
6612         * config/s390/s390.c (legitmate_constant_p): Use LARL on
6613         zSeries machines even in 31-bit addressing mode.
6614         (legitimate_reload_constant_p): Likewise.
6615         (legitimize_pic_address): Likewise.
6616         (legitimize_tls_address): Likewise.
6617         (s390_split_branches): Likewise.
6618         (s390_dump_pool): Likewise.
6619         (s390_mainpool_finish): Likewise.
6620         (s390_chunkify_start): Likewise.
6621         (s390_select_rtx_section): Likewise.
6622         * config/s390/s390.md ("doloop_si"): Likewise.
6623         ("pool_start_31", "pool_end_31"): Likewise.
6624         ("pool_start_64", "pool_end_64"): Likewise.
6625         ("main_base_31_small", "main_base_31_large"): Likewise.
6626         ("main_base_64"): Likewise.
6627         ("reload_base_31", "reload_base_64"): Likewise.
6628         ("*movsi_larl"): New insn.
6629         ("cjump", "icjump"): Use long branches on zSeries machines.
6630         ("jump"): Likewise.
6631         ("call"): Use BRASL on zSeries machines.
6632         ("call_value", "call_value_tls"): Likewise.
6633         ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
6634         and replace by ...
6635         ("*bras", "*brasl", "*basr") ... these new insns.
6636         ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
6637         "bas_31_r"): Remove and replace by ...
6638         ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
6639         ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
6640         "bas_64_tls", "bas_31_tls"): Remove and replace by ...
6641         ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
6642         ("*return_si", "*return_di"): Remove and replace by ...
6643         ("*return"): ... this new insn.
6644         ("rotlsi3"): Allow on zSeries machines.
6645
6646         * config/s390/s390.c (legitimize_reload_constant_p): Use
6647         LL/LH type instructions in z/Architecture mode.
6648         * config/s390/s390.md ("*movsi_lli"): Likewise.
6649         ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
6650         ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
6651         ("*extendqisi2"): Use LB in z/Architecture mode.
6652         ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
6653         z/Architecture mode.
6654         ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
6655         Likewise.
6656
6657         * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
6658         and 31-bit mode.
6659         ("ptr_extend"): Allow only in 64-bit mode.
6660
6661 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
6662
6663         * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
6664         (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
6665         definitions.
6666         (main): Only use standard_startfile_prefix if native.
6667         * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
6668
6669 2003-08-27  Per Bothner  <pbothner@apple.com>
6670
6671         * cpperror.c (print_location):  Don't check for !pfile->buffer.  That
6672         test fails following my 08-21 change, and it seems unnecessary anyway.
6673         (cpp_error):  Likewise.
6674
6675 2003-08-27  Jason Merrill  <jason@redhat.com>
6676
6677         * real.c (do_multiply): Initialize with memset.
6678
6679 2003-08-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6680
6681         * gcov.c (typedef struct arc_info): New field cs_count.
6682         (accumulate_line_counts): Find cycles correctly.
6683
6684 2003-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
6685
6686         * config/s390/s390.c (struct machine_function): Remove member
6687         literal_pool_label.
6688         (s390_optimize_prolog): Replace TEMP_REG argument with
6689         TEMP_USED and BASE_USED.  Do not check get_pool_size ().
6690         (general_s_operand): Accept all immediates before reload if
6691         ALLOW_IMMEDIATE.  If not ALLOW_IMMEDIATE, reject literal pool
6692         references.
6693         (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
6694         (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
6695         (s390_alloc_pool): New function.
6696         (s390_new_pool): Call it.
6697         (s390_dump_pool): Add REMOTE_LABEL argument.
6698         (s390_chunkify_start): Add BASE_REG argument.  Do not check
6699         get_pool_size ().
6700         (s390_chunkify_finish): Add BASE_REG argument.  Adapt
6701         s390_dump_pool call.
6702         (s390_pool_count, s390_nr_constants): Remove.
6703         (s390_output_constant_pool): Remove.
6704         (s390_mainpool_start): New function.
6705         (s390_mainpool_finish): New function.
6706         (s390_mainpool_cancel): New function.
6707         (s390_reorg): Implement main literal pool handling.
6708         (s390_emit_prologue): Emit main_pool placeholder instead of
6709         literal_pool_31 / literal_pool_64 insns.
6710         * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
6711         (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
6712         * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
6713         ("main_base_31_small", "main_base_31_large"): New insns.
6714         ("main_base_64",  "main_pool"): New insns.
6715         ("literal_pool_31", "literal_pool_64"): Remove.
6716
6717 2003-08-27  Nathanael Nerode  <neroden@gcc.gnu.org>
6718
6719         * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
6720         fixinc.ptx.
6721         * fixinc/inclhack.def (undefine_null):  Don't generate \r characters.
6722         Prettify a little.
6723         * fixinc/fixincl.x: Regenerate.
6724
6725 2003-08-27  Richard Earnshaw  <rearnsha@arm.com>
6726
6727         * lib1funcs.asm (L_ieee754_sp): New.  Include ieee754-sf.S.
6728         (L_ieee754_dp): New.  Include ieee754-df.S.
6729         * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
6730         and compilation in apcs-26 mode.
6731         * arm/ieee754-df.S: Likewise.
6732         * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
6733         (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
6734
6735 2003-08-27  Nicolas Pitre  <nico@cam.org>
6736
6737         * arm/ieee754-sf.S: New.
6738         * arm/ieee754-df.S: New.
6739
6740 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
6741
6742         * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
6743         and restore it if returning NULL.
6744
6745 2003-08-27  Richard Sandiford  <rsandifo@redhat.com>
6746
6747         * calls.c (initialize_argument_information): If an argument has no
6748         stack space associated with it, and BLOCK_REG_PADDING is defined,
6749         use it to decide at which end the argument should be padded.
6750         * function.c (assign_parms): Allocate BLKmode stack slots.
6751         * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
6752         (mips_pad_reg_upward): Declare.
6753         * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
6754         (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
6755         (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
6756         (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
6757         * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
6758         (mips_expand_call): Remove code for generating structure shifts.
6759         (mips_arg_info): Don't set struct_p.  Don't set fpr_p for non-float
6760         types unless using the EABI.
6761         (function_arg_advance): Don't generate shift instructions.
6762         (function_arg): Don't return them.  Don't short-circuit the
6763         check for double structure chunks for DFmode arguments.
6764         (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
6765         (mips_expand_prologue): Remove code to emit structure shifts.
6766         * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
6767         structure passing (inet_ntoa, inet_lnaof, inet_netof).  Update
6768         comments to say that only structure returns are a problem.
6769
6770 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
6771
6772         * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
6773         Fix to match produced versions.
6774         * fixinc/inclhack.def (longlong_t): New disabled test, ported
6775         from fixinc.svr4.
6776         * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
6777         from fixinc.ptx.
6778         * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
6779         ported from fixinc.ptx.
6780
6781 2003-08-26  Per Bothner  <pbothner@apple.com>
6782
6783         * cpplib.h (struct cpp_token):  Change type of field line to fileline.
6784         (cpp_error_with_line):  Use fileline for appropriate parameter.
6785         * cpphash.h (struct cpp_macro):  Change type of field line to fileline.
6786         (struct cpp_reader):  Likewise for fields line and directive_line.
6787         (_cpp_begin_message):  Use fileline for appropriate parameter.
6788         * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
6789         cpp_error):  Use fileline for appropriate parameters and variables.
6790         (print_location):  New local lin, since it is not a fileline.
6791
6792 2003-08-26  Roger Sayle  <roger@eyesopen.com>
6793
6794         PR middle-end/12002
6795         * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
6796         (FLOAT_TYPE_P): Define in terms of these two new macros.
6797         * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
6798         for complex floating point types.
6799
6800 2003-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
6801
6802         * config/s390/s390.c (emit_prologue): Don't check literal pool size.
6803         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
6804         s390_output_pool_entry.
6805
6806 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
6807
6808         * fixinc/inclhack.def (svr4_preproc_lint_on,
6809         svr4_preproc_lint_off, svr4_preproc_machine): New disabled
6810         fixes, ported from fixinc.svr4.
6811
6812 2003-08-26  Mark Mitchell  <mark@codesourcery.com>
6813
6814         * doc/install.texi (Prerequisites): Mention GNU make requirement.
6815
6816         * Makefile.in (AR_FOR_TARGET): Export it.
6817         (AR_CREATE_FOR_TARGET): Likewise.
6818         (AR_FLAGS_FOR_TARGET): Likewise.
6819         (AR_EXTRACT_FOR_TARGET): Likewise.
6820         (AWK): Likewise.
6821         (BUILD_PREFIX): Likewise.
6822         (BUILD_PREFIX_1): Likewise.
6823         (DESTDIR): Likewise.
6824         (GCC_FOR_TARGET): Likewise.
6825         (INCLUDES): Likewise.
6826         (INSTALL_DATA): Likewise.
6827         (LIB1ASMSRC): Likewise.
6828         (LIBGCC2_CFLAGS): Likewise.
6829         (MACHMODE_H): Likewise.
6830         (NM_FOR_TARGET): Likewise.
6831         (RANLIB_FOR_TARGET): Likewise.
6832         (libsubdir): Likewise.
6833         (slibdir): Likewise.
6834         (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
6835         exporting.
6836         (libgcc.a): Don't pass them here.
6837         (stmp-multilib): Or here.
6838         (install-libgcc): Or here.
6839         (install-multilib): Or here.
6840         (POSTSTAGE1_FLAGS_TO_PASS): Or here.
6841         (stage1_build): Or here.
6842
6843 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
6844
6845         * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
6846         "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
6847
6848 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
6849
6850         * config/s390/s390.md ("*fmadddf", "*fmsubdf",
6851         "*fmaddsf", "*fmsubsf"): New insns.
6852
6853 2003-08-26  Roger Sayle  <roger@eyesopen.com>
6854
6855         * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
6856         (C1*C2)/X when unsafe math optimizations are allowed.
6857         (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
6858         math optimizations.  Minor code clean-ups.  Recursively call
6859         fold when constructing sub-expressions.
6860
6861 2003-08-26  Roger Sayle  <roger@eyesopen.com>
6862
6863         * builtins.c (fold_builtin_bitop): New function to perform constant
6864         folding of ffs, clz, ctz, popcount and parity builtin functions
6865         and their long and long long variants (such as ffsl and ffsll).
6866         (fold_builtin): fold_builtin_bitop when appropriate.
6867         * simplify-rtx.c (simplify_unary_operation): Honor both
6868         CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
6869         evaluating clz and ctz at compile-time, for operands wider
6870         than HOST_WIDE_INT.
6871
6872 2003-08-26  Nathan Sidwell  <nathan@codesourcery.com>
6873
6874         * builtins.c (build_function_call_expr): Don't set
6875         TREE_SIDE_EFFECTS here.
6876         * expr.c (emit_block_move_via_libcall): Likewise.
6877         (clear_storage_via_libcall): Likewise.
6878         * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
6879         CALL_EXPRs.
6880
6881         * gcse.c (is_too_expensive): New function.
6882         (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
6883
6884 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
6885
6886         * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
6887         commented-out logic to use DCE threads (if present), add
6888         support for POSIX threads.
6889         * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
6890         #defines for -pthread.  Add -lpthread to LIB_SPEC when
6891         -pthread.  In both cases take -mt as a synonym for -pthread
6892         for acc compatibility.
6893         Define GTHREAD_USE_WEAK to 0.
6894         * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
6895         Remove old logic for DCE threads from LIB_SPEC.
6896         * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
6897
6898 2003-08-25  Roger Sayle  <roger@eyesopen.com>
6899
6900         * builtins.c (expand_builtin_mathfn):  Rearrange so that we only
6901         return 0 for invalid argument types.  Instead drop through to a
6902         call of expand_call at the bottom of function.  If op is SQRT,
6903         try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
6904
6905 2003-08-25  Richard Henderson  <rth@redhat.com>
6906
6907         * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
6908         result when op0 is SImode.
6909
6910 2003-08-25  Nathanael Nerode  <neroden@twcny.rr.com>
6911
6912         * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
6913         from fixinc.svr4.
6914         * fixinc/fixincl.x: Regenerate.
6915         * fixinc/tests/base/sys/signal.h: Regenerate.
6916
6917 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
6918
6919         * combine.c (simplify_comparison): Re-enable widening of comparisons
6920         with non-paradoxical subregs of non-REG expressions.
6921
6922 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
6923
6924         * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
6925
6926 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
6927
6928         * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
6929
6930 2003-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6931
6932         * pretty-print.h (pp_maybe_newline_and_indent): New macro.
6933         * c-pretty-print.h (c_pretty_printer): Now typedef to the
6934         structure.  Be consistent with pretty-print.h abd cxx-pretty-print.h
6935         (struct c_pretty_print_info): Document.  Add new fields.
6936         (pp_type_specifier_seq): Rename from pp_c_type_specifier.
6937         (pp_direct_abstract_declarator): New macro.
6938         (pp_ptr_operator): Likewise.
6939         (pp_simple_type_specifier): Likewise.
6940         (pp_expression): Likewise.
6941         (pp_parameter_list): Rename from pp_parameter_declaration.
6942         * c-pretty-print.c (pp_c_whitespace): Now a function.
6943         (pp_c_left_paren): Likewise.
6944         (pp_c_right_paren): Likewise.
6945         (pp_c_dot): Likewise.
6946         (pp_c_ampersand): Likewise.
6947         (pp_c_arrow): Likewise.
6948         (pp_c_semicolon): Likewise.
6949         (pp_c_type_cast): New function.
6950         (pp_c_space_for_pointer_operator): Likewise.
6951         (pp_c_call_argument_list): Likewise.
6952         (pp_c_cv_qualifier): Adjust prototype.
6953         (pp_c_type_qualifier_list): Likewise.
6954         (pp_c_pointer): Likewise.  Handle REFERENCE_TYPE here.
6955         (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
6956         Adjust to follow standard grammar.
6957         (pp_c_specifier_qualifier_list): Adjusr prototype.  Handle
6958         REFERENCE_TYPE.  Tidy.
6959         (pp_c_parameter_type_list): Adjust prototype.  Tidy.
6960         (pp_c_parameter_declaration): Remove.
6961         (pp_c_abstract_declarator): Adjust prototype.
6962         (pp_c_direct_abstract_declarator): Likewise.
6963         (pp_c_type_id): Likewise.
6964         (pp_c_storage_class_specifier): Likewise.
6965         (pp_c_function_specifier): Likewise.
6966         (pp_c_declaration_specifiers): Likewise.
6967         (pp_c_direct_declarator): Likewise.
6968         (pp_c_declarator): Likewise.
6969         (pp_c_declarator): Likewise.
6970         (pp_c_declaration): Likewise.
6971         (pp_c_attributes): Likewise.  Tidy.
6972         (pp_c_function_definition): Adjust prototype.
6973         (pp_c_char): Likewise.
6974         (pp_c_string_literal): Likewise.
6975         (pp_c_integer_constant): Likewise.
6976         (pp_c_character_constant): Likewise.
6977         (pp_c_bool_constant): Likewise.
6978         (pp_c_enumeration_constant): Likewise.
6979         (pp_c_floating_constant): Likewise.
6980         (pp_c_constant): Likewise.
6981         (pp_c_identifier): Likewise.
6982         (pp_c_primary_expression): Likewise.  Remove TARGET_EXPR case.  Tidy.
6983         (pp_c_initializer): Adjust prototype.
6984         (pp_c_init_declarator): Likewise.
6985         (pp_c_initializer_list): Likewise.
6986         (pp_c_id_expression): Likewise.
6987         (pp_c_postfix_expression): Likewise.
6988         (pp_c_expression_list): Likewise.
6989         (pp_c_unary_expression): Likewise.
6990         (pp_c_cast_expression): Likewise.
6991         (pp_c_multiplicative_expression): Likewise.
6992         (pp_c_additive_expression): Likewise.
6993         (pp_c_shift_expression): Likewise.
6994         (pp_c_relational_expression): Likewise.
6995         (pp_c_equality_expression): Likewise.
6996         (pp_c_and_expression): Likewise.
6997         (pp_c_exclusive_or_expression): Likewise.
6998         (pp_c_inclusive_or_expression): Likewise.
6999         (pp_c_logical_and_expression): Likewise.
7000         (pp_c_logical_or_expression): Likewise.
7001         (pp_c_conditional_expression): Likewise.
7002         (pp_c_assignment_expression): Likewise.
7003         (pp_c_expression): Likewise.  Tidy.
7004         (pp_c_statement): Likewise.  Document.
7005         (pp_c_pretty_printer_init): Adjust prototype. Tidy.
7006
7007         * c-lang.c (c_initialize_diagnostics): Update.
7008         * c-common.h (strip_pointer_operator): Declare.
7009         * c-common.c (strip_pointer_operator): Define.
7010
7011 2003-08-25  Mark Mitchell  <mark@codesourcery.com>
7012
7013         PR c++/8795
7014         * tree.h (build_method_type_directly): Declare.
7015         * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
7016         (vector_size_helper): Likewise.
7017         * tree.c (build_method_type_directly): New function.
7018         (build_method_type): Use it.
7019
7020 2003-08-24  Richard Henderson  <rth@redhat.com>
7021
7022         * config/i386.i386.c (ix86_return_in_memory): Reformat.  Return true
7023         for 16-byte vector modes if sse not enabled; warn for abi change.
7024         (ix86_value_regno): Only return xmm0 for 16-byte vector types.
7025
7026 2003-08-24  Kazu Hirata  <kazu@cs.umass.edu>
7027
7028         * rtlanal.c (may_trap_p): Simplify an integer comparison.
7029
7030 2003-08-24  Nathanael Nerode  <neroden@gcc.gnu.org>
7031
7032         * fixinc/inclhack.def (AAB_svr4_replace_byteorder):  Enhance
7033         comment.  Enable for DYNIX/ptx systems (when they switch to
7034         regular fixincludes).
7035         * fixinc/fixincl.x: Regenerate.
7036
7037 2003-08-23  Jason Eckhardt  <jle@rice.edu>
7038
7039         * config/i860/t-i860: New.
7040         * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
7041
7042 2003-08-23  Jakub Jelinek  <jakub@redhat.com>
7043
7044         * c-decl.c (pushdecl): Only put decls which finish_struct will do
7045         something about onto incomplete chain.
7046         (finish_struct): If not removing type from incomplete
7047         list, update prev.
7048
7049 2003-08-20  Jan Hubicka  <jh@suse.cz>
7050
7051         PR target/11369
7052         * i386.c (ix86_expand_carry_flag_compare): Validate operand.
7053
7054         PR target/11031
7055         * i386.c (const_0_to_3_operand, const_0_to_7_operand,
7056         const_0_to_15_operand, const_0_to_255_operand): New predicates.
7057         * i386.h (PREDICATE_CODES): Add these.
7058         * i386.c (pinsrw and pextrw patterns): Use them.
7059
7060         PR target/10984
7061         * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
7062
7063         PR target/8869
7064         * expr.c (convert_modes): Deal properly with integer to vector
7065         constant conversion.
7066
7067         PR target/8871
7068         * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
7069
7070 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
7071
7072         * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
7073         * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
7074         ("*movhi"): ... this.
7075         ("movqi", "*movqi"): Likewise.
7076         ("movqi_64"): Remove.
7077         ("*zero_extendhisi2_31"): Change predicate to s_operand.
7078
7079 2003-08-23  Dale Johannesen  <dalej@apple.com>
7080         * calls.c (emit_library_call_value_1): Fix obvious errors in
7081         arguments to emit_group_store.
7082
7083 2003-08-23  Jason Eckhardt  <jle@rice.edu>
7084
7085         * calls.c (emit_library_call_value_1): Remove code related
7086         to LIBGCC_NEEDS_DOUBLE.
7087         * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
7088         * doc/tm.texi: Likewise.
7089         * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
7090
7091 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
7092
7093         * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
7094
7095 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
7096
7097         * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
7098         as well.  Put memory references in the varargs alias set.
7099         (mips_expand_prologue): Remove varargs handling from here.
7100
7101 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
7102
7103         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
7104         s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
7105         s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
7106         for function pointer calls.
7107         * config/s390/s390.md ("*negdi2_31"): Likewise.
7108
7109 2003-08-23  Roger Sayle  <roger@eyesopen.com>
7110
7111         * combine.c (apply_distributive_law): Correct comment.
7112
7113 2003-08-23  Jason Eckhardt  <jle@rice.edu>
7114
7115         * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
7116
7117 2003-08-22  Jason Eckhardt  <jle@rice.edu>
7118
7119         * config/i860/i860.c (i860_build_va_list): Create the va_decl
7120         declaration.  Document the va_list structure.
7121         (i860_va_start): Initialize the va_list structure.
7122         (i860_va_arg): Rewrite completely.
7123         * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
7124         * config/i860/varargs.asm: Do not allocate or initialize
7125         a va_list.  Return the address of the register save area.
7126
7127 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
7128
7129         * config/iq2000/iq2000.c: Fix comment typos.
7130         * config/iq2000/iq2000.md: Likewise.
7131
7132 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
7133
7134         * config/iq2000/iq2000.c: Follow spelling conventions.
7135         * config/iq2000/iq2000.h: Likewise.
7136         * config/mn10300/mn10300.c: Likewise.
7137
7138 2003-08-22  Jason Eckhardt  <jle@rice.edu>
7139
7140         * config/i860/i860.c (output_move_double): Don't set latehalf
7141         to zero for CONST_INT (since it could be, e.g., -1).
7142
7143         * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
7144         (MODSI3_LIBCALL): ...with this one.
7145         (UREMSI3_LIBCALL): Replace this macro...
7146         (UMODSI3_LIBCALL): ...with this one.
7147
7148 2003-08-22  Jason Eckhardt  <jle@rice.edu>
7149
7150         * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
7151         (output_delayed_branch): Remove prototype.
7152         (single_insn_src_p): Remove prototype.
7153         * config/i860/i860.c (single_insn_src_p): Remove function.
7154         (output_delayed_branch): Remove function.
7155         (output_delay_insn): Remove function.
7156         (va_start): Remove unconditional test and dead code, re-format.
7157         Fix coding style and spelling problems in various comments.
7158         * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
7159         (blockage pattern): ...and use it here.
7160         (all define_peephole patterns related to delayed branches): Remove.
7161         Fix coding style and spelling problems in various comments.
7162
7163 2003-08-22  Jason Eckhardt  <jle@rice.edu>
7164
7165         * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
7166         Remove all uses of the PARAMS macro.  Remove superflous prototypes.
7167         Convert all function definitions from traditional to ISO C90 syntax.
7168         * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
7169         with 'GCC'.  Remove all uses of the PARAMS macro.
7170         * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
7171         * config/i860/i860.md: Likewise.
7172         * config/i860/sysv4.h: Likewise.
7173         * config/i860/varargs.asm: Likewise.
7174
7175 2003-08-22  Jason Eckhardt  <jle@rice.edu>
7176
7177         * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
7178         argument.
7179         (tdesc_section): Add prototype.
7180         Update copyright dates.
7181         * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
7182         (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
7183         (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
7184         (targetm): Likewise.
7185         (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
7186         for '%d' where necessary.
7187         (i860_va_start): Remove 'stdarg_p' argument.  Make conditional checks
7188         on 'stdarg_p' unconditional.  Divide current_function_args_info.ints
7189         by UNITS_PER_WORD when referencing (likewise for .floats).
7190         (I860_SVR4_VARARGS): Rename...
7191         (I860_SVR4_VA_LIST): ...to this.
7192         Call build() with 't' rather than 'field'.
7193         (i860_rtx_costs): New function.
7194         (TARGET_RTX_COSTS): Define.
7195         (i860_internal_label): New function.
7196         (TARGET_ASM_INTERNAL_LABEL): Define.
7197         (i860_file_start): New function.
7198         Update copyright dates.
7199         * config/i860/i860.h (CPP_PREDEFINES): Remove.
7200         (TARGET_CPU_CPP_BUILTINS): Define.
7201         (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
7202         (CONST_COSTS): Remove (and move code to i860_rtx_costs).
7203         (ASM_FILE_START): Remove.
7204         (ASM_FILE_START_1): Remove.
7205         (ASM_GLOBALIZE_LABEL): Remove.
7206         (ASM_OUTPUT_INTERNAL_LABEL): Remove.
7207         (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
7208         with targetm.asm_out.internal_label.
7209         Update copyright dates.
7210         * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
7211         (CPP_PREDEFINES): Remove.
7212         (TARGET_OS_CPP_BUILTINS): Define.
7213         (GLOBAL_ASM_OP): Define.
7214         (ASM_FILE_START): Remove.
7215         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
7216         (TARGET_ASM_FILE_START): Define.
7217         Update copyright dates.
7218
7219 2003-08-22  Jason Eckhardt  <jle@rice.edu>
7220
7221         * gcc/config.gcc (i860-*-sysv4*): Add target.
7222         * config/i860/i860-protos.h: New.
7223         * config/i860/i860.c: New.
7224         * config/i860/i860.h: New.
7225         * config/i860/i860.md: New.
7226         * config/i860/sysv4.h: New.
7227         * config/i860/varargs.asm: New.
7228         * config/i860/x-sysv4: New.
7229
7230 2003-08-22  Jason Eckhardt  <jle@rice.edu>
7231
7232         * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
7233         Remove all uses of PARAMS macro.
7234         Convert all function definitions to ISO C90 syntax.
7235         * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
7236         * config/pa/fptr.c: Likewise.
7237         * config/pa/lib2funcs.asm: Likewise.
7238         * config/pa/long_double.h: Likewise.
7239         * config/pa/milli64.S: Likewise.
7240         * config/pa/pa-64.h: Likewise.
7241         * config/pa/pa-hpux.h: Likewise.
7242         * config/pa/pa-hpux10.h: Likewise.
7243         * config/pa/pa-hpux11.h: Likewise.
7244         * config/pa/pa-linux.h: Likewise.
7245         * config/pa/pa-modes.def: Likewise.
7246         * config/pa/pa-osf.h: Likewise.
7247         * config/pa/pa-pro-end.h: Likewise.
7248         * config/pa/pa.md: Likewise.
7249         * config/pa/pa32-linux.h: Likewise.
7250         * config/pa/pa64-linux.h: Likewise.
7251         * config/pa/pa64-hpux.h: Likewise.
7252         * config/pa/pa64-regs.h: Likewise.
7253         * config/pa/quadlib.c: Likewise.
7254         * config/pa/rtems.h: Likewise.
7255         * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
7256         all uses of the PARAMS macro.
7257         * config/pa/pa.h: Likewise.
7258         * config/pa/som.h: Likewise.
7259
7260         * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
7261         Remove all uses of PARAMS macro.
7262         Convert all function definitions to ISO C90 syntax.
7263         * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
7264         Remove all uses of PARAMS macro.
7265         * config/iq2000.h: Remove all uses of PARAMS macro.
7266         * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
7267
7268 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
7269
7270         * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
7271         * config/s390/s390.c (gen_consttable): Remove.
7272         (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
7273         (s390_output_pool_entry): New function.
7274         * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
7275         UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
7276         UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
7277         (UNSPECV_POOL_ENTRY): ... this new constant.
7278         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
7279         "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
7280         ("*pool_entry"): ... and replace by this new insn.
7281         ("literal_pool_31"): Do not emit anchor label if pool empty.
7282
7283         * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
7284         (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
7285         (s390_fixup_clobbered_return_reg): Remove.
7286         (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
7287         (s390_return_addr_rtx): Always retrieve return address from save area
7288         slot.  Use save_return_addr_p to force slot to be filled.
7289         (s390_emit_prologue): Remove has_hard_reg_initial_val test.
7290
7291 2003-08-22  Chris Demetriou  <cgd@broadcom.com>
7292
7293         * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
7294         (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
7295         * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
7296         around SB-1 errata if TARGET_FIX_SB1 is set.
7297         (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
7298         * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
7299
7300 2003-08-22  Roger Sayle  <roger@eyesopen.com>
7301
7302         * hashtable.c (ht_expand): Avoid calculating rehash for the common
7303         case that the first probe hits an empty hash table slot.
7304
7305 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
7306
7307         * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
7308
7309 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
7310
7311         * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
7312         (ptr_extend_plus_imm): ... this.
7313         * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
7314         optimization in C++.
7315         (ia64_output_mi_thunk): Support ILP32 mode.
7316
7317 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
7318
7319         * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
7320         function.
7321         * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
7322
7323 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
7324
7325         * config/i386/i386.c (const_int_1_operand): Simplify an
7326         integer comparison.
7327
7328 2003-08-22  Alan Modra  <amodra@bigpond.net.au>
7329
7330         * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
7331         * config/rs6000/ppc64-fp.c: Likewise.
7332
7333 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
7334
7335         * cfgcleanup.c: Fix comment typos.
7336         * emit-rtl.c: Likewise.
7337         * optabs.c: Likewise.
7338         * ra-build.c: Likewise.
7339         * rtlanal.c: Likewise.
7340         * tree.h: Likewise.
7341
7342 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
7343
7344         * c-decl.c: Fix comment formatting.
7345         * cfgrtl.c: Likewise.
7346         * combine.c: Likewise.
7347         * convert.c: Likewise.
7348         * dominance.c: Likewise.
7349         * dwarf2out.c: Likewise.
7350         * dwarfout.c: Likewise.
7351         * expmed.c: Likewise.
7352         * fold-const.c: Likewise.
7353         * gcov.c: Likewise.
7354         * genattrtab.c: Likewise.
7355         * ggc-common.c: Likewise.
7356         * mips-tfile.c: Likewise.
7357         * regmove.c: Likewise.
7358
7359 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
7360
7361         * builtin-attrs.def: Fix comment formatting.
7362         * c-pretty-print.c: Likewise.
7363         * diagnostic.h: Likewise.
7364         * langhooks.h: Likewise.
7365         * recog.c: Likewise.
7366         * simplify-rtx.c: Likewise.
7367         * tree.def: Likewise.
7368
7369 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
7370
7371         * config/m68k/m68k-protos.h: Convert to ISO C90.
7372         * config/m68k/m68k.c: Likewise.
7373
7374 2003-08-21  Bernardo Innocenti  <bernie@develer.com>
7375             Paul Dale  <pauli@snapgear.com>
7376             Peter Barada <peter@baradas.org>
7377
7378         * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
7379         ColdFire cores.
7380
7381 2003-08-21  Zack Weinberg  <zack@codesourcery.com>
7382
7383         * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
7384         * config.gcc (*-*-openbsd): Don't set tm_file.
7385         (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
7386         arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
7387         h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
7388         i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
7389         i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
7390         m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
7391         m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
7392         m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
7393         mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
7394         sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
7395         xscale-*-coff): Use explicit and complete lists of target headers
7396         to include.  Move definitions to tm_defines where appropriate.
7397         (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
7398         not-yet-contributed configuration.
7399
7400         * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
7401         * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
7402         * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
7403         * config/i386/nto.h, config/iq2000/iq2000.h,
7404         * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
7405         * config/m68k/linux.h, config/m68k/m68k-aout.h
7406         * config/m68k/m68k-none.h, config/m68k/m68kv4.h
7407         * config/m68k/netbsd.h, config/m68k/openbsd.h
7408         * config/m68k/sgs.h, config/mcore/mcore-pe.h,
7409         * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
7410         * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
7411         Remove includes of other target config headers, and
7412         definitions of macros moved to tm_defines lists.  Add #undefs
7413         where now necessary to prevent redefinition warnings.
7414
7415         * config/h8300/coff.h: New file split out of...
7416         * config/h8300/elf.h: ...here.
7417         * config/m68k/hp320base.h: New file split out of...
7418         * config/m68k/hp320.h: ...here.
7419         * config/rs6000/lynxbase.h: New file split out of...
7420         * config/rs6000/lynx.h: ...here.
7421
7422         * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
7423         * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
7424
7425         * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
7426         * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
7427         * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
7428         Remove unnecessary #ifndef.
7429         * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
7430         [under IN_LIBGCC2] with config/.
7431
7432 2003-08-21  Per Bothner  <pbothner@apple.com>
7433
7434         * cppfiles.c (stack_file):  Correctly pass return_at_eof parameter
7435         to cpp_push_buffer.
7436         * cpplex.c (_cpp_get_fresh_line):  Don't buffer->prev - handled
7437         by return_at_eof check.  Always call _cpp_pop_buffer at end.
7438
7439 2003-08-21  Kazu Hirata  <kazu@cs.umass.edu>
7440
7441         PR target/11805
7442         * config/h8300/h8300.md (two anonymous patterns): Remove.
7443
7444 2003-08-21  Richard Sandiford  <rsandifo@redhat.com>
7445
7446         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
7447         * config/mips/mips.c (function_arg_pass_by_reference): Never return
7448         true for n32 & n64.
7449
7450 2003-08-21  Josef Zlomek  <zlomekj@suse.cz>
7451
7452         * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
7453         and similarly in (A | C) == D where C & ~D != 0.
7454
7455 2003-08-20  Geoffrey Keating  <geoffk@apple.com>
7456
7457         PR 8180
7458         * configure.in: When testing with_libs and with_headers, treat
7459         'no' as unset.  Based on a patch by Dan Kegel <dank@kegel.com>.
7460         * configure: Regenerate.
7461
7462 2003-08-20  Peter Barada <peter@baradas.org>
7463
7464         * longlong.h (umul_ppmm): Add ColdFire support.
7465
7466 2003-08-20  Peter Barada <peter@baradas.org>
7467             Bernardo Innocenti  <bernie@develer.com>
7468
7469         * config/m68k/m68k-none.h: Introduce new ColdFire archs.
7470         * config/m68k/m68k.h: Likewise.
7471         * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
7472         * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
7473         * config/m68k/linux.h: Likewise.
7474         * config/m68k/m68k.c: Likewise.
7475         * config/m68k/m68k.md: Likewise.
7476         * config/m68k/m68kelf.h: Likewise.
7477         * config/m68k/netbsd-elf.h: Likewise.
7478         * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
7479
7480 2003-08-20  Bernardo Innocenti  <bernie@develer.com>
7481
7482         * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
7483         * config/m68k/m68k.md: Likewise.
7484
7485 2003-08-20  Mark Mitchell  <mark@codesourcery.com>
7486
7487         PR java/11996
7488         Revert this change:
7489         2003-08-19  Mark Mitchell  <mark@codesourcery.com>
7490         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
7491         types with precisions other than those given by native machine
7492         modes.
7493
7494 2003-08-20  Gunther Nikl  <gni@gecko.de>
7495
7496         * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
7497         selected by FSGLMUL_USE_S and FSGLDIV_USE_S
7498         * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
7499         * config/m68k/m68k.md (anonymous define_insn): Likewise
7500         * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
7501         * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
7502         code selected by NO_ASM_FMOVECR
7503
7504 2003-08-20  Gunther Nikl  <gni@gecko.de>
7505
7506         * config/m68k/m68k.c (output_move_const_into_data_reg,
7507         output_move_himode): unify MOTOROLA/MIT handling of moveq
7508         * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
7509         Likewise
7510
7511 2003-08-20  Gunther Nikl  <gni@gecko.de>
7512
7513         * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
7514         label name
7515         * config/m68k/m68k.c (m68k_output_function_epilogue): replace
7516         HOST_WIDE_INT_PRINT_DEC with %wd
7517
7518 2003-08-20  Loren James Rittle  <ljrittle@acm.org>
7519
7520         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
7521         redefine warning.
7522
7523 2003-08-20  Roger Sayle  <roger@eyesopen.com>
7524
7525         PR middle-end/11984
7526         * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
7527         operands before calling tree_int_cst_lt when performing associative
7528         transformations.
7529
7530 2003-08-20  Jason Merrill  <jason@redhat.com>
7531
7532         * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
7533         (EXPR_CHECK): Don't check for 'r' or 's' if we're
7534         checking IS_EXPR_CODE_CLASS.
7535         * calls.c (calls_function_1): Likewise.
7536         * fold-const.c (fold): Likewise.
7537         * tree.c (iterative_hash_expr): Likewise.
7538         * tree-inline.c (walk_tree, copy_tree_r): Likewise.
7539
7540 2003-08-20  Gunther Nikl  <gni@gecko.de>
7541
7542         * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
7543         depending on MOTOROLA_BSR
7544         * config/m68k/m68k.md (anonymous define_insn): Likewise
7545
7546 2003-08-20  Jason Merrill  <jason@redhat.com>
7547
7548         * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
7549         (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
7550         fold_trunc_transparent_mathfn, fold_builtin): Likewise.
7551         * dojump.c (do_jump): Likewise.
7552         * fold-const.c (operand_equal_p, fold): Likewise.
7553         (tree_expr_nonnegative_p): Likewise.
7554
7555         * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
7556         TYPE_USER_ALIGN for FIELD_DECLs.
7557
7558         * attribs.c (decl_attributes): Rebuild the function pointer type after
7559         changing the target type.
7560         * tree.c (get_qualified_type): Also check that the attributes match.
7561
7562 2003-08-19  Matt Kraai  <kraai@alumni.cmu.edu>
7563
7564         * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
7565         * objc/config-lang.in (stagestuff): ... to here.
7566
7567 2003-08-19  Mark Mitchell  <mark@codesourcery.com>
7568
7569         PR c++/11946
7570         * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
7571         NOP_EXPR) when necessary.
7572         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
7573         types with precisions other than those given by native machine
7574         modes.
7575
7576 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
7577
7578         * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
7579         because some macro is defined.
7580
7581         * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
7582         options.
7583         * config/i386/darwin.h (ASM_SPEC): New.
7584         (SUBTARGET_EXTRA_SPECS): New.
7585         * config/rs6000/darwin.h (ASM_SPEC): New.
7586         (SUBTARGET_EXTRA_SPECS): New.
7587         * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
7588         a cross-compiler between two different processors on Darwin.
7589         * configure: Regenerate.
7590
7591 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
7592
7593         * builtins.c: Fix comment typos.
7594         * c-common.c: Likewise.
7595         * c-decl.c: Likewise.
7596         * c-pretty-print.c: Likewise.
7597         * cfgbuild.c: Likewise.
7598         * cfglayout.c: Likewise.
7599         * cfgloopanal.c: Likewise.
7600         * cgraphunit.c: Likewise.
7601         * cppfiles.c: Likewise.
7602         * dwarfout.c: Likewise.
7603         * expr.c: Likewise.
7604         * fold-const.c: Likewise.
7605         * gcse.c: Likewise.
7606         * ggc-page.c: Likewise.
7607         * haifa-sched.c: Likewise.
7608         * pretty-print.c: Likewise.
7609         * tree.c: Likewise.
7610         * tree.h: Likewise.
7611         * value-prof.c: Likewise.
7612
7613 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
7614
7615         * c-decl.c: Follow spelling conventions.
7616         * cppfiles.c: Likewise.
7617
7618 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
7619
7620         * c-common.c: Fix comment formatting.
7621         * c-common.h: Likewise.
7622         * c-decl.c: Likewise.
7623         * cppinit.c: Likewise.
7624         * cpplib.h: Likewise.
7625         * emit-rtl.c: Likewise.
7626         * input.h: Likewise.
7627         * line-map.h: Likewise.
7628         * opts.c: Likewise.
7629         * opts.h: Likewise.
7630         * simplify-rtx.c: Likewise.
7631
7632 2003-08-19  Daniel Jacobowitz  <drow@mvista.com>
7633
7634         * unwind-c.c: Add libgcc-style exception.
7635         * unwind-dw2.c: Likewise.
7636         * unwind-pe.h: Likewise.
7637         * unwind-sjlj.c: Likewise.
7638         * unwind.inc: Likewise.
7639
7640 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
7641
7642         PR c/5582 PR c++/10538
7643         * langhooks-def.h (lhd_decl_uninit): Declare.
7644         (LANG_HOOKS_DECL_UNINIT): New macro.
7645         (LANG_HOOKS_INITIALIZER): Adjust.
7646         * langhooks.h (struct lang_hooks): Add new field
7647         decl_uninit.
7648         * langhooks.c (lhd_decl_uninit): Define.
7649         * c-common.c (c_decl_uninit_1): New function.
7650         (c_decl_uninit): New function.
7651         (warn_init_self): Define.
7652         * c-common.h (c_decl_uninit): Declare.
7653         (warn_init_self): Declare.
7654         * c.opt: Introduce -Winit-self.
7655         * c-opts.c (c_common_handle_options): Set warn_init_self.
7656         * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
7657         * objc/objc-lang.c  (LANG_HOOKS_DECL_UNINIT): Define.
7658         * function.c (uninitialized_vars_warning): Call the language hook.
7659         * doc/invoke.texi: Document -Winit-self.
7660
7661 2003-08-19  Chris Demetriou  <cgd@broadcom.com>
7662
7663         * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
7664         to use better predicates and constraints.  Define new
7665         instruction to handle "trap_if" with DI-mode arguments.
7666         (conditional_trap): FAIL if trap code is not 0.
7667
7668 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
7669
7670         * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
7671         strstr with $pb to a strcompare with "<pic base>"
7672         (ix86_output_addr_diff_elt): Output the real pic base.
7673
7674 2003-08-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7675
7676         * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
7677         (LANG_HOOKS_INITIALIZER): Correct.
7678         * c-lang.c: Likewise.
7679
7680 2003-08-19  Jan Hubicka  <jh@suse.cz>
7681
7682         * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
7683         (cgraph_varpool_mark_needed_node): Likewise.
7684         * cgraph.h (notice_global_symbol): Declare
7685         * varasm.c (notice_global_symbol): Break out from ...
7686         (assemble_start_function): ... here; update for variables.
7687         (assemble_variable): Use notice_global_symbol.
7688
7689 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
7690
7691         * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
7692         expect SFmode and DFmode arguments to be passed in FPRs,
7693         regardless of the underlying type.
7694
7695 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
7696
7697         PR target/11924
7698         * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
7699         (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
7700
7701 2003-08-18  Matt Kraai  <kraai@alumni.cmu.edu>
7702
7703         PR c/11207
7704         * c-typeck.c (set_init_index): Check for negative index.
7705
7706 2003-08-18  Bob Wilson  <bob.wilson@acm.org>
7707
7708         * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
7709         call0 ABI.
7710         * config/xtensa/crtn.asm (_init, _fini): Likewise.
7711         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
7712         __umodsi3, __modsi3): Likewise.
7713         * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
7714         $(INCLUDES).
7715
7716 2003-08-18  Aldy Hernandez  <aldyh@redhat.com>
7717
7718         * config/rs6000/spe.md ("*nabssf2_gpr"): New.
7719
7720 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
7721
7722         * config/mips/mips.md: Quote C code in braces.  Remove use of
7723         fake const0_rtx operands.  Remove double backslashes.  Use \;.
7724         Remove workarounds for bogus warnings.
7725
7726 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
7727
7728         * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
7729         (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
7730         rather than TARGET_MIPS4300.
7731         (mulsf3_internal, mulsf3_r4300): Likewise.
7732
7733 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
7734
7735         * config/mips/mips.md: Renumber unspecs.  Clean up comments.
7736
7737 2003-08-17  Roger Sayle  <roger@eyesopen.com>
7738
7739         * simplify-rtx.c (associative_constant_p): New function to test
7740         whether an RTX expression is an immediate constant.
7741         (simplify_associative_operation): New function to perform some
7742         reassociation optimizations of associative binary expressions.
7743         (simplify_binary_operation): Use simplify_associative_operation
7744         to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
7745         Floating point expressions are only reassociated when unsafe
7746         math optimizations are permitted.
7747
7748 2003-08-17  Andreas Jaeger  <aj@suse.de>
7749
7750         * config/alpha/alpha.md: Remove usage of PARAMS.
7751
7752         * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
7753         * config/i386/i386-interix.h: Likewise.
7754         * config/i386/winnt.c: Likewise.
7755         * config/i386/cygming.h: Likewise.
7756         * config/i386/cygwin2.c: Likewise.
7757         * config/darwin.c: Likewise.
7758         * config/darwin-c.c: Likewise.
7759         * config/darwin-protos.h: Likewise.
7760         * config/darwin.h: Likewise.
7761         * config/s390/s390-protos.h: Likewise.
7762         * config/s390/s390.c: Likewise.
7763         * config/ia64/ia64.c: Likewse
7764         * config/ia64/ia64-protos.h: Likewise.
7765         * config/ia64/ia64-c.c: Likewise.
7766
7767 2003-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7768
7769         * config/sparc/sparc.c: Convert to ISO C.
7770
7771         * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
7772         * config/sparc/sparc.c: Likewise.
7773
7774 2003-08-16  Nathan Sidwell  <nathan@codesourcery.com>
7775
7776         PR c++/11512
7777         * stmt.c (expand_expr_stmt_value): Don't warn about any void
7778         typed expression.
7779
7780 2003-08-16  Jan Hubicka  <jh@suse.cz>
7781
7782         * i386.c (ix86_fntype_regparm): Rename from ...
7783         (ix86_function_regparm): ... this one; add fastcall and local
7784         functions.
7785         (ix86_function_ok_for_sibcall): Update.
7786         (ix86_return_pops_args): Likewise.
7787         (init_cumulative_args): Likewise.
7788         (x86_can_output_mi_thunk): Likewise.
7789         (function_arg): Fix formating.
7790         (x86_this_parameter): Fix fastcall.
7791         (x86_output_mi_thunk): Likewise.
7792
7793         * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
7794         body as reachable; mark nested functions as needed too.
7795         (dump_cgraph): Do not output global.calls.
7796         * cgraph.h (cgraph_global_info): Kill.
7797         * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
7798         (record_call_1): Speedup.
7799         (cgraph_analyze_function): Break out from ...; compute inlining
7800         parameters.
7801         (cgraph_finalize_compilation_unit): ... here.
7802         (cgraph_mark_inline): Kill computation of calls.
7803         (cgraph_decide_inlining): Do not compute most of initial values.
7804
7805 2003-08-14  Roger Sayle  <roger@eyesopen.com>
7806
7807         * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
7808         to negate if either operand is easy to negate, if we don't care
7809         about sign-dependent rounding.
7810         (negate_expr): Make the logic to negate a REAL_CST explicit.
7811         Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
7812         that's easy to negate, if we don't honor sign-dependent rounding.
7813         (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
7814         negate, and the symmetric A * -B as -A * B if A is easy to negate.
7815         (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
7816         -C/D if B and C are cheap to negate.  Add an explicit rule to
7817         optimize X/-1.0 as -X when we don't care about signaling NaNs.
7818
7819 2003-08-14  Zack Weinberg  <zack@codesourcery.com>
7820
7821         * Makefile.in (tm_file): Rename tm_include_list.
7822         (tm_p_file): Rename tm_p_include_list.
7823         (build_xm_file): Rename build_xm_include_list.
7824         (host_xm_file): Rename host_xm_include_list.
7825         (xm_file): Rename xm_include_list.
7826         (xm_file_list): Add to be substituted.
7827         (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
7828         Update to match.
7829         (bt-load.o): Add missing dependency on $(TM_H).
7830         * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
7831         For each of tm_file, tm_p_file, xm_file, host_xm_file, and
7832         build_xm_file, generate both *_file_list and *_include_list
7833         values from it.  (xm_file_list was formerly not being generated.)
7834         In *_include_list, prefix the names of all headers found in
7835         $(srcdir)/config with config/.  In each loop, consider only
7836         the special case files that can actually appear in that list.
7837         AC_SUBST all *_file_list and all *_include_list variables; do
7838         not AC_SUBST the plain *_file variables.
7839         * configure: Regenerate.
7840
7841 2003-08-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7842
7843         * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
7844
7845 2003-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7846
7847         * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
7848         direct calls.
7849         (attr_length_call): Include it here.  Improve length estimate for
7850         local calls.
7851         (output_call): Use targetm.binds_local_p.
7852
7853 2003-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7854
7855         * builtins.c (CASE_MATHFN): New helper macro.
7856         (mathfn_built_in): Simplify and sort.
7857
7858         * protoize.c (substr): Delete, callers changed to `strstr'.
7859
7860 2003-08-13  Zack Weinberg  <zack@codesourcery.com>
7861
7862         * config.gcc (iq2000*-*-elf*): Don't set xm_file.
7863         * config/iq2000/xm-iq2000.h: Delete file.
7864
7865 2003-08-13  Geoffrey Keating  <geoffk@apple.com>
7866
7867         * gengtype.c (walk_type): Process a subobject before processing
7868         the pointer that points to the subobject.
7869
7870 2003-08-13  Per Bothner  <pbothner@apple.com>
7871
7872         * regclass.c (init_reg_modes):  Make non-static.
7873         Rename to init_reg_modes_once per new naming convention.
7874         (init_regs):  Don't call init_reg_modes here.
7875         * emit-rtl.c (init_emit_once):  Call init_reg_modes_once here instead.
7876         * rtl.h (init_reg_modes_once):  New declaration.
7877         * toplev.c (backend_init):  Call init_regs after init_emit_once.
7878
7879 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
7880
7881         * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
7882         special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
7883
7884 2003-08-13  J"orn Rennecke <joern.rennecke@superh.com>
7885
7886         * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
7887         * sh.md (load_ra): Change insn predicate to TARGET_SH1.
7888
7889 2003-08-13  Dale Johannesen  <dalej@apple.com>
7890
7891         * config/rs6000/rs6000.md (ctrsi, ctrdi):  Reenable
7892         handling of decrement-and-branch farther than 32 bits.
7893
7894 2003-08-12  Kelley Cook  <kelleycook@wideopenwest.com>
7895
7896         * configure.in (make_compare_target): Move test to ...
7897         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
7898         * configure: Regenerate.
7899
7900 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
7901
7902         * config/mips/iris6.h: Convert to C90 prototypes.
7903         * config/mips/irix6-libc-compat.c: Likewise.
7904         * config/mips/mips-protos.h: Likewise.
7905         * config/mips/mips.c: Likewise.
7906
7907 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
7908
7909         fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.  Enable
7910         for selected machines.  Comment heavily.
7911         fixinc/fixincl.x: Rebuild.
7912         fixinc/tests/base/fs/rfs/rf_cache.h: New file.
7913
7914 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
7915
7916         * config/mips/mips.h: Tweak various comments.
7917         * config/mips/mips.c: Likewise.
7918
7919 2003-08-11  James E Wilson  <wilson@tuliptree.org>
7920
7921         PR optimization/11319
7922         PR target/10021
7923         * alias.c (find_base_value, case REG): Return 0 not src if no base
7924         found.
7925
7926 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7927
7928         * gcse.c (gmalloc): Fix last change.
7929
7930 2003-08-11  Roger Sayle  <roger@eyesopen.com>
7931
7932         * simplify-rtx.c (simplify_binary_operation): Replace calls to
7933         gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
7934         and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
7935         gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
7936
7937 2003-08-11  Roger Sayle  <roger@eyesopen.com>
7938
7939         * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
7940         * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
7941         typecode for an ABS_EXPR.
7942
7943         * doc/c-tree.texi: Document ABS_EXPR.
7944
7945 2003-08-11  Roger Sayle  <roger@eyesopen.com>
7946
7947         * fold-const.c (fold): Optimize any associative floating point
7948         operator with -funsafe-math-optimizations, not just MULT_EXPR.
7949
7950 2003-08-11  Kaz Kojima  <kkojima@gcc.gnu.org>
7951
7952         * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
7953         information in SHmedia case too.
7954         (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
7955         Likewise.
7956         (__set_fpscr): Use an access via GOT for PIC case.
7957
7958 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
7959
7960         * configure.in (intermodule): Make switch test more portable.
7961         * configure: Regenerate.
7962
7963 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
7964
7965         * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
7966         (restrap): Likewise.
7967
7968 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7969
7970         * gcse.c (gmalloc): Argument is a size_t.  Add ATTRIBUTE_MALLOC.
7971         (grealloc): Size argument is a size_t.
7972         (gcalloc): New function.  Use throughout in lieu of
7973         gmalloc/memset.
7974
7975         * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
7976         xmalloc/memset.
7977         * config/ia64/ia64.c (ia64_reorg): Likewise.
7978         * conflict.c (conflict_graph_new): Likewise.
7979         * fixinc/fixincl.c (run_compiles): Likewise.
7980         * genattrtab.c (optimize_attrs): Likewise.
7981         * genrecog.c (new_decision): Likewise.
7982         * haifa-sched.c (schedule_block): Likewise.
7983         * hashtable.c (ht_create): Likewise.
7984
7985 2003-08-11  Bob Wilson  <bob.wilson@acm.org>
7986
7987         * config/xtensa/lib2funcs.S: Fix whitespace.
7988         * config/xtensa/xtensa.md (all insns and expanders): Use brace block
7989         syntax where appropriate.  Remove unnecessary backslash escapes.
7990         Reformat comments and fix some code formatting.
7991         (extendqisi2): Rearrange conditional.
7992         (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
7993         *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
7994         of fatal_insn.
7995
7996 2003-08-11  Richard Sandiford  <rsandifo@redhat.com>
7997
7998         * config/mips/mips.c: Various formatting fixes.
7999         (override_options): Resync -mtune handling with gas.
8000         (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
8001         * config/mips/mips.h: More formatting fixes.
8002         (mips_abi): Move declaration.
8003         * config/mips/mips.md (exception_receiver): Add mode to
8004         unspec_volatile.
8005
8006 2003-08-11  Aldy Hernandez  <aldyh@redhat.com>
8007
8008         * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
8009         evsplatfi here.
8010         (bdesc_1arg): Remove evsplati and evsplatfi.
8011
8012 2003-08-11  J"orn Rennecke <joern.rennecke@superh.com>
8013
8014         * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
8015         into account.
8016
8017 2003-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8018
8019         * builtins.c (expand_builtin_strcat): Optimize constant strings.
8020
8021 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8022
8023         * pretty-print.c (pp_base_indent): Rename from pp_indent.
8024         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
8025         (struct c_pretty_print_info): Add more fields.
8026         (pp_c_left_paren): Move to c-pretty-print.c.
8027         (pp_c_right_paren): Likewise.
8028         (pp_c_left_brace): Likewise.
8029         (pp_c_right_brace): Likewise.
8030         (pp_c_left_bracket): Likewise.
8031         (pp_c_right_bracket): Likewise.
8032         (pp_c_declarator): Declare.
8033         (pp_c_direct_declarator): Likewise.
8034         (pp_c_specifier_qualifier_list): Likewise.
8035         (pp_c_type_id): Likewise.
8036         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
8037         (pp_c_type_qualifier_list): New.
8038         (pp_c_pointer): Likewise.
8039         (pp_c_parameter_type_list): Likewise.
8040         (pp_c_function_definition): Likewise.
8041         (pp_c_id_expression): Likewise.
8042         (pp_c_simple_type_specifier): Tidy.
8043         (pp_c_unary_expression): Likewise.
8044         (pp_c_expression): Likewise.
8045         (pp_c_pretty_printer_init): Likewise.
8046         (pp_c_specifier_qualifier_list): Rework..
8047         (pp_c_abstract_declarator): Likewise.
8048         (pp_c_postfix_expression): Likewise.
8049         (pp_c_primary_expression): Likewise.
8050         (pp_c_cast_expression): Likewise.
8051         (pp_c_direct_abstract_declarator): Likewise.
8052         (pp_c_storage_class_specifier): Likewise.
8053         (pp_c_function_specifier): Likewise.
8054         (pp_c_declaration_specifiers): Likewise.
8055         (pp_c_direct_declarator): Likewise.
8056         (pp_c_declarator): Likewise.
8057         (pp_c_declaration): Likewise.
8058         (pp_c_statement): Likewise.
8059         (pp_c_integer_constant): Rename from pp_c_integer_literal.
8060         (pp_c_character_constant): Rename from pp_c_character_literal.
8061         (pp_c_bool_constant): Rename from pp_c_bool_literal.
8062         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
8063         (pp_c_floating_constant): Rename from pp_c_real_literal.
8064         (pp_c_constant): Rename from pp_c_literal.
8065         * c-lang.c: Include diagnostic.h and c-pretty-print.h
8066         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
8067         (c_initialize_diagnostics): New.
8068         * Makefile.in (c-lang.o): Update dependency.
8069
8070 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
8071
8072         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
8073
8074 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
8075
8076         * config/mips/mips.c (mips_no_mips16_string): Remove.
8077         (override_options): Don't handle -mips16 as part of -mipsN.
8078         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
8079         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
8080         (TARGET_OPTIONS): Remove -mno-mips16.
8081
8082 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
8083
8084         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
8085         (coprocessor2_operand): Likewise.
8086         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
8087         (lookup_name): Remove declaration.
8088         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
8089         (mips16, mips_abicalls): Remove.
8090         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
8091         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
8092         (coprocessor_operand, coprocessor2_operand): Remove.
8093         (override_options): Don't set mips16 or mips_abicalls.
8094         (print_operand): Don't expect SIGN_EXTEND operands.
8095         (mips_secondary_reload_class): Likewise.
8096         (mips_output_conditional_branch): Remove disabled long-branch code.
8097         * config/mips/mips.h (call_used_regs): Remove declaration.
8098         (may_call_alloca): Likewise.
8099         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
8100         (mips_abicalls, mips16): Remove declarations.
8101         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
8102         (CC1_SPEC): Remove outdated comment.
8103         (MIPS_VERSION, MACHINE_TYPE): Remove.
8104         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8105         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
8106         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
8107         (PUSH_ROUNDING): Likewise.
8108         (ASSEMBLER_SCRATCH_REGNUM): Remove.
8109         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
8110         and mips16 with TARGET_MIPS16.
8111
8112 2003-08-09  Per Bothner  <pbothner@apple.com>
8113
8114         * cppinit.c (cpp_read_main_file):  Split out source-independent
8115         initialization to separate function ...
8116         (cpp_post_options):  New function.
8117         * cppfiles.c (cpp_stack_file):  Rename public name to ...
8118         (_cpp_stack_file):  New internal function name.
8119         * cpplib.h:  Update accordingly.
8120         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
8121         (cpp_read_main_file):  Don't initialize line here.
8122         * c-opts.c (c_common_post_options):  Call cpp_post_options.
8123         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
8124         * fix-header.c (read_scan_file):  Call cpp_post_options.
8125
8126 2003-08-09  Per Bothner  <per@bothner.com>
8127
8128         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
8129
8130 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8131
8132         * pa.c (pa_asm_output_mi_thunk): Fix typo.
8133
8134 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
8135
8136         PR preprocessor/11839
8137         * cppfiles.c (open_file): Handle ENOTDIR.
8138
8139 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
8140
8141         PR target/11699
8142         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
8143
8144 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8145
8146         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
8147         source/destination is not a register operand.
8148
8149 2003-08-08  Richard Henderson  <rth@redhat.com>
8150
8151         PR target/11535
8152         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
8153         RETURN_ADDRESS_POINTER_REGNUM.
8154         (ia64_expand_prologue): Don't frob it.
8155         (ia64_output_function_epilogue): Likewise.
8156         (ia64_return_addr_rtx): New.
8157         (ia64_split_return_addr_rtx): New.
8158         * config/ia64/ia64-protos.h: Update.
8159         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
8160         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
8161         (GENERAL_REGNO_P): Don't check it.
8162         (AR_*_REGNUM): Renumber.
8163         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
8164         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
8165         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
8166         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
8167         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
8168         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
8169         (movdi_ret_addr): New.
8170
8171 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
8172
8173         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
8174
8175 2003-08-08  Roger Sayle  <roger@eyesopen.com>
8176
8177         * tree.h (get_identifier) Define a macro form of get_identifier
8178         that calls get_identifier_with_length when the string is constant.
8179         (get_identifier_with_length): Change type of second argument to
8180         size_t in prototype.
8181         * stringpool.c (get_identifier): Undefine the macro before giving
8182         the function definition.
8183         (get_identifier_with_length): Change  type of second argument to
8184         size_t in function definition.
8185         * hashtable.c (calc_hash): Change type of second argument to size_t.
8186         (ht_lookup): Change type of third argument to size_t.  Reorganize
8187         to speed-up the cases where the hash table slot is empty, or the
8188         first probe matches (i.e. there isn't a collision).
8189         * hashtable.h (ht_lookup): Adjust function prototype.
8190
8191 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
8192
8193         PR target/9697
8194         PR target/11777
8195         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
8196
8197 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
8198
8199         * common.opt: Add debug switches.
8200         * flags.h (use_gnu_debug_info_extensions): Boolify.
8201         * opts.c (write_symbols, debug_info_level,
8202         use_gnu_debug_info_extensions): Move from toplev.c.
8203         (set_debug_level): New.
8204         (common_handle_options): Handle debug switches.
8205         (print_help): Display target options directly.
8206         * toplev.c (debug_hooks): Don't initialize.
8207         (write_symbols, debug_info_level,
8208         use_gnu_debug_info_extensions): Move to opts.c.
8209         (debug_args, display_help, decode_g_option): Remove.
8210         (process_options): Set no debug if level zero here,
8211         and no-debug-hooks.  Error here if impossible debug format selected.
8212         * toplev.h (display_help, decode_g_option): Remove.
8213
8214 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
8215
8216         * tree.c (get_file_function_name_long): Fix size of alloca() area.
8217
8218 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
8219
8220         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
8221         and gcc_cv_prog_cmp_skip.
8222         * configure: Regenerate.
8223
8224 2003-08-08  Stan Cox  <scox@redhat.com>
8225
8226         * config/iq2000: New port.
8227         * config.gcc (iq2000-*-elf): Added.
8228         * doc/install.texi (Specific):  Add iq2000 description.
8229
8230 2003-08-08  Andreas Schwab  <schwab@suse.de>
8231
8232         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
8233         and insert missing empty argument.
8234         * configure: Regenerate.
8235
8236 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8237
8238         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
8239         (attr_length_millicode_call): Likewise.
8240         (attr_length_call): Likewise.  Revise some maximum insn lengths.
8241         (attr_length_indirect_call): Likewise.
8242         (output_call): Fix thinko that added extra nop.
8243         * pa.h (IN_NAMED_SECTION_P): Define.
8244
8245         PR c++/11712
8246         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
8247         __STDC_EXT__ when using C++ dialect.
8248
8249 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
8250
8251         * sh.c (calc_live_regs): If the return address pointer is live,
8252         force pr live.
8253         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
8254         for saves / restores.
8255         (sh_expand_epilogue): If sh_media_register_for_return returns a
8256         register number, flag the instructions that restores PR_MEDIA_REG
8257         as possibly dead.
8258         Remove dead update of offset.
8259         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
8260         we can use the result of get_hard_reg_initial_val.
8261         * sh.md (UNSPEC_RA): New constant.
8262         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
8263         (load_ra).  Handle UNSPEC_RA.
8264         (sibcall_media): Use PR_MEDIA_REG.
8265
8266         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
8267         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
8268         needs saving on SHmedia.
8269
8270 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
8271
8272         * config/s390/s390.md: Replace all occurrences of \\t with \t.
8273
8274 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
8275
8276         * local-alloc.c (combine_regs): Fix comment typo.
8277
8278 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
8279
8280         * c-decl.c (builtin_decls): Replace with first_builtin_decl
8281         and last_builtin_decl.
8282         (c_init_decl_processing): Initialize both.
8283         (c_reset_state): Iterate from first_builtin_decl to
8284         last_builtin_decl inclusive to reintroduce builtins.
8285
8286 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
8287
8288         * doc/extend.texi (Function Attributes): Document the IA-64 version
8289         of the "model" attribute.
8290
8291         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
8292         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
8293         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
8294
8295         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
8296         (ia64_encode_section_info): Likewise.
8297         (ia64_attribute_table): Add "model" attribute.
8298         (TARGET_ENCODE_SECTION_INFO): Define.
8299         (small_addr_symbolic_operand): New function.
8300         (got_symbolic_operand): Return 0 for a symbolref to an object
8301         in the small address area.
8302         (enum ia64_addr_area): New type.
8303         (small_ident1): New variable.
8304         (small_ident2): Likewise.
8305         (init_idents): New function.
8306         (ia64_get_addr_area): Likewise.
8307         (ia64_encode_addr_area): Likewise.
8308         (ia64_encode_section_info): Likewise.
8309         (ia64_expand_load_address): For symbolic references to objects in
8310         the small-address-area, load the address via gen_rtx_SET() (which,
8311         eventually, will expand into "addl").
8312
8313 2003-08-06  Per Bothner  <pbothner@apple.com>
8314
8315         * line-map.h (fileline):  New typedef.
8316         (struct line_map, linemap_add, linemap_lookup):  Use it.
8317         * input.h (struct location_s):  Comment notes that long-term we want
8318         to replace it by fileline.
8319
8320 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
8321
8322         Fix SHcompact exception handling:
8323         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
8324         by the prologue, return a MEM with return_address_pointer_rtx
8325         as address.
8326         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
8327         (RETURN_ADDR_OFFSET): Don't define.
8328         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
8329         registers that are visible in compact mode.  Show that SHmedia
8330         registers still exist in compact mode, even if there are not
8331         readily accessible.
8332         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
8333         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
8334         and DW_EH_PE_pcrel for pic data.
8335         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
8336         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
8337         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
8338         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
8339         * sh.md (movsi_media-1): New splitter.
8340
8341 2003-08-06  Graeme Peterson <gp@qnx.com>
8342
8343         * config/i386/nto.h: New.
8344         * config/i386/t-nto: New.
8345         * config.gcc (i[34567]86-*-nto-qnx*): New.
8346
8347 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
8348
8349         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
8350
8351 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
8352
8353         * calls.c (load_register_parameters): Arrange for call_fusage to
8354         report the whole register as used when shifting to the msb.
8355
8356 2003-08-05  Roger Sayle  <roger@eyesopen.com>
8357
8358         * builtins.c (expand_builtin): When not optimizing, call the library
8359         function for all builtins that have library functions (except alloca).
8360
8361 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
8362
8363         * c.opt: Introduce -fworking-directory.
8364         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
8365         * c-common.h (flag_working_directory): Declare.
8366         * c-common.c (flag_working_directory): Define.
8367         * c-opts.c (c_common_handle_options): Set it.
8368         (sanitize_cpp_opts): Set...
8369         * cpplib.h (struct cpp_options): ... working_directory option.
8370         (struct cpp_callbacks): Add dir_change.
8371         * cppinit.c (read_original_filename): Call...
8372         (read_original_directory): New.  Look for # 1 "directory//"
8373         and process it.
8374         (cpp_read_main_file): Call dir_change callback if working_directory
8375         option is set.
8376         * gcc.c (cpp_unique_options): Pass -g*.
8377         * c-lex.c (cb_dir_change): New.
8378         (init_c_lex): Set dir_change callback.
8379         * toplev.c (src_pwd): New static variable.
8380         (set_src_pwd, get_src_pwd): New functions.
8381         * toplev.h (get_src_pwd, set_src_pwd): Declare.
8382         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
8383         * dwarf2out.c (gen_compile_unit_die): Likewise.
8384         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
8385
8386 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8387
8388         * pretty-print.h (pp_set_line_maximum_length): Make macro.
8389         (pp_set_prefix): Likewise.
8390         (pp_destroy_prefix): Likewise.
8391         (pp_remaining_character_count_for_line): Likewise.
8392         (pp_clear_output_area): Likewise.
8393         (pp_formatted_text): Likewise.
8394         (pp_last_position_in_text): Likewise.
8395         (pp_emit_prefix): Likewise.
8396         (pp_append_text): Likewise.
8397         (pp_flush): Likewise.
8398         (pp_format_text): Likewise.
8399         (pp_format_verbatim): Likewise.
8400         (pp_tree_identifier): Tidy.
8401         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
8402         (pp_base_format_verbatim): Rename from pp_format_verbatim.
8403         (pp_base_flush): Rename from pp_flush.
8404         (pp_base_set_line_maximum_length): Rename from
8405         pp_set_line_maximum_length.
8406         (pp_base_clear_output_area): Rename from pp_clear_output_area.
8407         (pp_base_set_prefix): Rename from pp_set_prefix.
8408         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
8409         (pp_base_emit_prefix): Rename from pp_emit_prefix.
8410         (pp_base_append_text): Rename from pp_append_text.
8411         (pp_base_formatted_text): Rename from pp_formatted_text.
8412         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
8413         (pp_base_remaining_character_count_for_line): Rename from
8414         pp_remaining_character_count_for_line.
8415         * diagnostic.h (diagnostic_format_decoder): Tidy.
8416         (diagnostic_flush_buffer): Likewise.
8417         * c-pretty-print.h: (pp_c_string_literal): Declare.
8418         (pp_c_real_literal): Likewise.
8419         (pp_c_integer_literal): Likewise.
8420         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
8421         pp_identifier.
8422         (pp_c_character_literal): Tidy.
8423         (pp_c_string_literal): Make public.
8424         (pp_c_bool_literal): Likewise.
8425         (pp_c_integer_literal): Likewise.
8426         (pp_c_real_literal): Likewise.
8427
8428         * Makefile.in (C_PRETTY_PRINT_H): New variable.
8429         (c-pretty-print.o): Update dependence.
8430
8431 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
8432
8433         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
8434         ".set nomacro" state.
8435         (fix_truncsfsi2_macro): Likewise.
8436
8437 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
8438
8439         * tree.h (DID_INLINE_FUNC): Remove macro.
8440         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
8441         add tree check for FUNCTION_DECL.
8442         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
8443         (struct tree_decl): Rename inlined_function_flag to
8444         declared_inline_flag.
8445         * c-common.h (c_lang_decl): Remove.
8446         (DECL_ESTIMATED_INSNS): Remove.
8447         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
8448         (DECL_DECLARED_INLINE_P): Remove.
8449         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
8450         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
8451         (finish_function): Make uninlinable a bool.  Fixup call to
8452         tree_inlinable_function_p() and fix some code style issues.
8453         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
8454         * cgraph.c (dump_cgraph): Likewise.
8455         * cgraphunit.c (cgraph_decide_inlining): Likewise
8456         (cgraph_finalize_compilation_unit): Likewise.
8457         Also update call to tree_inlinable_function_p().
8458         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
8459         look at DECL_DECLARED_INLINE and reverse logic.
8460         * print-tree.c (print_node): Likewise.
8461         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
8462         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
8463         prototype.
8464         * tree-inline.c (inlinable_function_p): Split up in this function to
8465         check for basic inlining inhibiting conditions, and new
8466         limits_allow_inlining() function.  Warn if inlining is impossible
8467         because the inline candidate calls alloca or uses sjlj exceptions.
8468         (limits_allow_inlining): this new function to check if the inlining
8469         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
8470         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
8471         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
8472         Update prototypes.
8473         (tree_inlinable_function_p): Make a bool.  Update call to
8474         inlinable_function_p
8475         (expand_call_inline): Use limits_allow_inlining() when not in
8476         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
8477         instead see if the function was declared `inline'.
8478
8479 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
8480
8481         * gcse.c (try_replace_reg): Fix updating of note.
8482
8483 2003-08-04  Roger Sayle  <roger@eyesopen.com>
8484
8485         PR middle-end/11771
8486         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
8487         logic in negate_expr, i.e. we don't invert (A-B) for floating
8488         point types unless flag_unsafe_math_optimizations.
8489
8490 2003-08-04  Roger Sayle  <roger@eyesopen.com>
8491
8492         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
8493         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
8494         for floating point expressions with -ffast-math.
8495         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
8496         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
8497
8498 2003-08-04  Roger Sayle  <roger@eyesopen.com>
8499
8500         * c-common.c (flag_noniso_default_format_attributes): Delete.
8501         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
8502         (c_attrs_initialized): Delete.
8503         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
8504         always call c_init_attributes.
8505         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
8506         set c_attrs_initialized when done.
8507         (c_common_insert_default_attributes): Delete.
8508         * c-common.h (flag_noniso_default_format_attributes): Delete.
8509         (c_coomon_insert_default_attributes): Delete prototype.
8510         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
8511         flag_noniso_default_format_attributes.
8512
8513         * c-decl.c (c_insert_default_attributes): Delete.
8514         * c-tree.h (c_insert_default_attributes): Delete prototype.
8515
8516         * attribs.c (decl_attributes): Don't call insert_default_attributes
8517         langhook.  Update function description comment.
8518         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
8519         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
8520         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
8521         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
8522
8523         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
8524         define.
8525
8526 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
8527
8528         * config/mips/mips.c (override_options): Disable -G on targets that
8529         have no .section support.
8530         (mips_select_section): Use default_select_section for such targets.
8531
8532 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
8533
8534         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
8535         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
8536         * fixinc/fixincl.x: Rebuild.
8537         * fixinc/tests/base/regexp.h: New test.
8538
8539 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
8540
8541         * c-ppoutput.c (cb_line_change): Don't skip line changing while
8542         parsing macro arguments in the top-level context.
8543
8544 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
8545
8546         * config.in: Remove HAVE_LSTAT.
8547         * configure, configure.in: Don't test for lstat.
8548
8549 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8550
8551         * opts.c (decode_options): Do language-specific initialization for
8552         the global diagnostic context.
8553         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
8554         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
8555         (LANG_HOOKS_INITIALIZER): Adjust.
8556         * langhooks.h (struct lang_hooks): Add new field
8557         initialize_diagnostics.
8558         * langhooks.c (lhd_initialize_diagnostics): Define.
8559
8560 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8561
8562         * pretty-print.h:   Adjust macro definitions.
8563         * pretty-print.c (pp_newline): Rename to pp_base_newline.
8564         (pp_character): Rename to pp_base_character.
8565         (pp_string): Rename to pp_base_string.
8566         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
8567         (pp_newline):  Likewise.  Adjust.
8568         (pp_c_char): Adjust.
8569
8570 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8571
8572         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
8573         BUILT_IN_LLABS): Move to miscellaneous section.
8574
8575 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
8576
8577         PR preprocessor/11534
8578         * cppexp.c (parse_defined): Warn only if -pedantic.
8579
8580 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
8581
8582         * cppfiles.c (stack_file): Use file path.
8583
8584 2003-08-02  Roger Sayle  <roger@eyesopen.com>
8585
8586         * builtin-types.def (BT_SSIZE): New primitive type.
8587         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
8588         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
8589         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
8590         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
8591         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
8592         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
8593         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
8594         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
8595         few functions that define default attributes using it.
8596         * c-common.c (c_common_insert_default_attributes): Do nothing.
8597
8598         * doc/extend.texi: Document these "new" builtins.
8599
8600 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
8601
8602         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
8603         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
8604         when -mieee-fp set and -shared not set.
8605         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
8606
8607 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
8608
8609         * cppfiles.c (struct _cpp_file): Rename once_only_next to
8610         next_file.  Remove import and pragma_once, add once_only.
8611         (find_file): Add new file structures to the all_files list.
8612         (should_stack_file): Mark #import-ed files once-only, and
8613         don't stack them if the file has already been stacked.
8614         (_cp_mark_file_once_only): Simplify.
8615         * cpphash.h (struct cpp_reader): Rename once_only_files
8616         to all_files.  Rename saw_pragma_once to seen_once_only.
8617         (_cpp_mark_file_once_only): Update prototype.
8618         * cpplib.c (do_pragma_once): Update.
8619
8620 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
8621
8622         * cppfiles.c (ENOTDIR): Remove.
8623         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
8624         other than ENOENT here.
8625         (once_only_file_p): Rename should_stack_file.
8626         (find_file, open_file_failed, read_file_guts): Report errors
8627         with full path name.
8628         (read_file): Move pch handling to should_stack_file.
8629         (should_stack_file): Handle PCH and once-only issues, and
8630         reading the file.
8631         (stack_file): Don't do file reads.
8632
8633 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8634
8635         * libgcov.c (gcov_exit): Cleanup and fix.
8636         * profile.c (compute_value_histograms): Don't try to read profiles
8637         that are not present.
8638
8639 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8640
8641         * builtins.def: Categorize.
8642
8643         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
8644         Mind fp rounding.
8645         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
8646
8647 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
8648
8649         * config.gcc: Enable posix threads by default on darwin.
8650
8651 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
8652
8653         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
8654         even if nehedges1 is 0.
8655
8656 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
8657
8658         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
8659         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
8660         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
8661         and defintions.
8662
8663         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
8664         * fixinc/fixincl.x: Regenerate.
8665         * fixinc/tests/base/math.h: Regenerate to match test_text change.
8666
8667 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8668
8669         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
8670
8671 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8672
8673         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
8674         for accesses to exc_ptr.
8675
8676 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
8677
8678         * doc/sourcebuild.texi (Front End Directory): Don't make references
8679         to libsubdir, it's not part of the interface to frontends.
8680         * doc/install.texi (Configuration): Help users read faster by saying
8681         that GCC's configure options are the standard autoconf ones.
8682         Mention --libdir.  Update the default rules for finding the
8683         assembler.  Don't use libsubdir since we haven't said what it means.
8684         (Specific): In the Solaris 7 notes, update the place to put the
8685         assembler.
8686         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
8687         * doc/cpp.texi (Search Path): Actually, the search path
8688         depends on libdir, which can relocate with cpp.
8689         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
8690         now a private interface between the Makefile and the driver.
8691
8692 2003-08-01  Richard Henderson  <rth@redhat.com>
8693
8694         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
8695
8696         * varasm.c (lookup_constant_def): New function.
8697         * rtl.h (lookup_constant_def): Declare it.
8698         * dwarf2out.c (loc_descriptor_from_tree): Use it.
8699         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
8700
8701 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
8702
8703         * c-decl.c (gettags, pushdecl_function_level): Delete.
8704         (last_function_parm_vars): Rename last_function_parm_others.
8705         (current_function_parm_vars): Rename current_function_parm_others.
8706         (struct c_scope): Rewrite comment explaining this data structure.
8707         Add names_last, blocks_last, parms_last fields.  Rename
8708         incomplete_list to incomplete.
8709         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
8710         (poplevel): Ignore second argument.  No need to nreverse
8711         anything.  Restructure such that each list is processed
8712         exactly once.  Use 'const location_t *locus' syntactic sugar
8713         variable where useful.  Issue unused variable warnings
8714         ourselves, do not rely on function.c.
8715         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
8716         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
8717         (implicitly_declare): decl cannot be error_mark_node.
8718         (undeclared_variable): Manipulate scope structure directly.
8719         (c_make_fname_decl): Likewise.
8720         (getdecls, c_init_decl_processing): Fix comment.
8721         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
8722         for 'last' variable.
8723         (grokparms): No need to nreverse parms list.
8724         (store_parm_decls_newstyle): Set up the parms_last and
8725         names_last fields of the new scope too.
8726         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
8727         on parms to begin with; check this under ENABLE_CHECKING.  Set
8728         up parms_last.
8729         (check_for_loop_decls): Refer directly to current_scope->tags.
8730         Use consistent quote style in diagnostics.
8731         (c_write_global_declarations): The names list is not backward.
8732
8733         * c-common.h: Don't prototype gettags.
8734         * c-parse.in: Call poplevel with second argument 0 always.
8735
8736 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8737
8738         * builtins.def: Resort builtins.
8739
8740 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8741
8742         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
8743         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
8744         Prepend "__builtin_" onto NAME with string concatenation.  Remove
8745         explicit "__builtin_" from each macro call.
8746
8747         Reformat entire file.
8748
8749 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8750
8751         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
8752         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
8753
8754 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
8755
8756         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
8757         CCL1, or CCL2 modes with floating point operations.
8758
8759         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
8760         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
8761         "*subdf3_cconly"): New insns.
8762         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
8763
8764 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
8765
8766         * Makefile.in: Refine dependencies.
8767         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
8768         * c.opt: Update help for -Wimport.
8769         * cppfiles.c: Include hashtab.h.  Update comments.
8770         (stack_file): Read the file before updating dependencies.
8771         (once_only_file_p): Be smarter about marking once-only files.
8772         (_cpp_mark_file_once_only): Correct the check for existence on
8773         the list.
8774         (open_file_failed): Use name not path, which is NULL.
8775         * cpphash.h: Don't include hashtab.h.
8776         (struct _cpp_file): Remove.
8777         (struct cpp_reader): Update.
8778         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
8779         * cpplib.h (struct cpp_options): Remove warn_import.
8780         (cpp_simplify_path): Remove.
8781
8782 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
8783
8784         PR c++/11295
8785         * doc/extend.texi (Statement Expressions): Document C++ semantics.
8786
8787 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8788
8789         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
8790
8791 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8792
8793         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
8794         throughout.
8795         * builtins.def: Likewise.
8796
8797 2003-07-31  Jason Merrill  <jason@redhat.com>
8798
8799         * Makefile.in (bubblestrap): Don't require a previous full
8800         bootstrap.
8801
8802         * expr.c (mostly_zeros_p): No longer static.
8803         * tree.h: Declare it.
8804         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
8805         unless we need to do substitutions.
8806
8807 2003-07-31  Roger Sayle  <roger@eyesopen.com>
8808
8809         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
8810         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
8811         as pow(x,2.0) when the latter will be expanded back into x*x.
8812         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
8813         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
8814         pow can never set errno when used with an integer exponent.
8815         Always use expand_powi when exponent is -1, 0, 1 or 2.
8816         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
8817         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
8818         the pow forms of these expressions.
8819
8820 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
8821
8822         * Makefile.in (libexecdir): New.
8823         (libsubdir): Use gcc instead of gcc-lib.
8824         (libexecsubdir): New.
8825         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
8826         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
8827         gcc-lib.
8828         (installdirs): Make libexecsubdir.
8829         (install-common): Put executables in libexecsubdir.
8830         (itoolsdir): Use libexecsubdir.
8831         (itoolsdatadir): New.
8832         (install-mkheaders): Separate data files and executables.
8833         (install-collect2): Put executables in libexecsubdir.
8834         (uninstall): Remove libexecsubdir.
8835         * mkheaders.in: Update for new arrangement of files.
8836         (libexecdir): New.
8837         (libexecsubdir): New.
8838         (itoolsdir): Use libexecsubdir.
8839         (itoolsdatadir): New.
8840         * gcc.c (gcc_libexec_prefix): New.
8841         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
8842         (standard_exec_prefix_1): Use libexec.
8843         (standard_exec_prefix_2): New.
8844         (standard_libexec_prefix): New.
8845         (process_command): Update for new arrangement of files.  Compute
8846         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
8847
8848 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
8849
8850         * inclhack.def (stdio_va_list): Avoid bogus replacement which
8851         triggers on Interix.
8852         * fixincl.x: Regenerate.
8853
8854 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
8855
8856         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
8857         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
8858
8859 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8860
8861         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
8862
8863 2003-07-31  Per Bothner  <pbothner@apple.com>
8864
8865         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
8866         (add_input_filename):  New function.
8867         (handle_options):  Call add_input_filename directly instead of
8868         with a lang hook.
8869         * opts.h (in_fnames, num_in_fnames):  Moved here.
8870         (add_input_filename):  Declare.
8871         * c-decl.c:  Need to #include opts.h.
8872         * Makefile.in (c-decl.o):  Also depends on opts.h.
8873         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
8874         (c_common_handle_filename):  Replaced by add_input_filename.
8875         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
8876         Remove.
8877         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
8878         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
8879         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
8880         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
8881
8882 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8883
8884         * combine.c (try_combine): Set JUMP_LABEL for newly created
8885         unconditional jump.
8886
8887 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8888
8889         * fold-const.c (fold): Fold some comparisons of bit operations.
8890
8891 2003-07-31  Jan Hubicka  <jh@suse.cz>
8892
8893         * cgraph.c (create_edge): Fix typo.
8894         * i386.c (pic_symbolic_operand): Reorder tests.
8895
8896 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
8897
8898         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
8899         more fully.
8900         (Gcov Data Files): Update.
8901
8902 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8903
8904         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
8905         default.
8906
8907         * gthr-posix.c: New file.
8908         * gthr-posix.h: Define _REENTRANT if missing.
8909         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
8910
8911         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
8912         by gthr-posix.o.
8913         * config/alpha/t-osf-pthread: New file.
8914
8915         * fixinc/inclhack.def (alpha_pthread): New fix.
8916         * fixinc/fixincl.x: Regenerate.
8917         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
8918
8919         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
8920         warning.
8921         Fixes PR bootstrap/9330.
8922
8923 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8924
8925         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
8926         without GNU ld.
8927         Update comment.
8928         * configure: Regenerate.
8929
8930 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
8931
8932         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
8933         setter.
8934
8935 2003-07-30  Roger Sayle  <roger@eyesopen.com>
8936
8937         * builtins.def: Alphabetize.
8938
8939 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
8940
8941         * doc/c-tree.texi: Normalize spellings of "lowercase" and
8942         "uppercase".
8943         * doc/cpp.texi: Likewise.
8944         * doc/md.texi: Likewise.
8945         * doc/rtl.texi: Likewise.
8946         * doc/tm.texi: Likewise.
8947
8948 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
8949
8950         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
8951         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
8952         of cc1obj.
8953
8954 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
8955
8956         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
8957         macros before defining them.
8958
8959 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
8960
8961         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
8962         UNSPECV_BLOCKAGE): New constants.
8963         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
8964         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
8965         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
8966         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
8967
8968         (all insns and expanders): Write output control string as brace block
8969         where appropriate.  Remove \-escapes for doublequote characters.
8970
8971 2003-07-31  Jan Hubicka  <jh@suse.cz>
8972
8973         * gcse.c (insert_store): Fix typo in previous patch.
8974
8975 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
8976
8977         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
8978
8979 2003-07-30  Andi Kleen  <ak@muc.de>
8980
8981         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
8982
8983 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8984
8985         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
8986         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
8987         GCOV_N_VALUE_COUNTERS): New.
8988         * profile.c (compute_value_histograms): New static function.
8989         (branch_prob): Read back the value histograms.
8990         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
8991         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
8992         * value-prof.c: Add comment on reading the profile.
8993         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
8994         * doc/invoke.texi (-fprofile-values): Document behavior with
8995         -fbranch-probabilities.
8996
8997 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
8998
8999         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
9000
9001 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
9002
9003         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
9004         symbolically.
9005
9006 2003-07-30  Jan Hubicka  <jh@suse.cz>
9007
9008         * gcse.c (insert_store): Ignore fake edges.
9009
9010         * c-common.c (flag_vtable_gc): Kill.
9011         * c-common.g (flag_vtable_gc): Kill.
9012         * c-opts (c_common_handle_option): Kill.
9013         * c.opt (fvtable-gc): Kill.
9014         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
9015         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
9016         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
9017
9018         * invoke.texi (-ftable-gc): Kill documentation.
9019
9020         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
9021         just because function body is missing.
9022
9023         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
9024
9025 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
9026
9027         * unwind-sjlj.c: Fix typo in file description.
9028
9029 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
9030
9031         * calls.c (load_register_parameters): When shifting reg sized values
9032         to the msb, move the value to a reg first.
9033
9034 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
9035
9036         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
9037         * line-map.h (linemap_add): Update comments.
9038         * line-map.c (linemap_add): Update comments, interpret zero-length
9039         filename as "<stdin>".
9040
9041 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
9042
9043         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
9044
9045 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
9046
9047         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
9048         New static variables.
9049         (struct c_scope): Add parms and warned_forward_parm_decls
9050         fields; remove parm_order.
9051         (storedecls, storetags): Delete.
9052         (poplevel): Also clear bindings on the parms chain.
9053         (pushdecl): Handle forward declarations of parameters, and
9054         chain PARM_DECLs on the parms list, not the names list.
9055         (lookup_name_current_level): Check for PARM_DECLs on the parms
9056         list too.
9057         (push_parm_decl): Don't update parm_order.
9058         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
9059         warning, only once per parameter list, and set TREE_ASM_WRITTEN
9060         on the decls here.  Then move the forward decls to the names list.
9061         (grokparms): Set last_function_parm_vars.
9062         (get_parm_info): Don't use gettags or getdecls.  No need to
9063         extract non-parms from the parms list, or reorganize the parms
9064         list.  Feed nonparms back in the TREE_TYPE of the list node
9065         returned.  Issue only one error per parameter list for "void"
9066         appearing more than once in said parameter list.  Collapse
9067         parmlist_tags_warning into this function to avoid double scan
9068         of tags list.
9069         (start_function): Set current_function_parm_vars.
9070         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
9071         directly.  Get non-parms from current_function_parm_vars; no
9072         need to extract them from the parms chain.  Properly bind tags
9073         in the new scope.
9074         (store_parm_decls_oldstyle): No need to extract non-parameters
9075         from the parms chain, nor to store them back afterward.  Move
9076         declaration to top of function, restructure code reordering
9077         DECL_ARGUMENTS.
9078         (store_parm_decls): No need to save and restore warn_shadow.
9079         * c-parse.in: Don't call parmlist_tags_warning nor
9080         clear_parm_order.  Call mark_forward_parm_decls when forward
9081         parm decls are encountered.
9082         * c-tree.h: Prototype mark_forward_parm_decls; not
9083         clear_parm_order or parmlist_tags_warning.
9084
9085 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
9086
9087         * c-common.c (allow_pch): Remove.
9088         * c-common.h (allow_pch): Remove.
9089         (c_common_no_more_pch): Declare.
9090         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
9091         * c-pch.c: Include hosthooks.h.
9092         (c_common_valid_pch): Don't check allow_pch.
9093         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
9094         (c_common_no_more_pch): New.
9095         * ggc-common.c: Include hosthooks.h.
9096         (gt_pch_save): Call gt_pch_get_address.
9097         (gt_pch_restore): Call gt_pch_use_address.
9098         * hooks.c (hook_voidp_size_t_null): New.
9099         (hook_bool_voidp_size_t_false): New.
9100         * hooks.h (hook_voidp_size_t_null): New.
9101         (hook_bool_voidp_size_t_false): New.
9102         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
9103         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
9104         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
9105         HOST_HOOKS_GT_PCH_USE_ADDRESS.
9106         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
9107         gt_pch_use_address.
9108         * doc/hostconfig.texi (Host Common): Document
9109         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
9110         * Makefile.in (c-pch.o): Depend on hosthooks.h.
9111         (ggc-common.o): Likewise.
9112
9113         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
9114         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
9115         (pch_address_space): New.
9116         (darwin_rs6000_gt_pch_get_address): New.
9117         (darwin_rs6000_gt_pch_use_address): New.
9118
9119 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
9120
9121         PR preprocessor/11569
9122         PR preprocessor/11649
9123         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
9124         * cppfiles.c: Completely rewritten.
9125         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
9126         struct cpp_path is now struct cpp_dir.
9127         (remove_duplicates): Don't simplify path names.
9128         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
9129         cpp_stack_file.
9130         * cpphash.h: Include hashtab.h.
9131         (_cpp_file): Declare.
9132         (struct cpp_buffer): struct include_file is now struct _cpp_file,
9133         and struct cpp_path is now struct cpp_dir.  Rename members.
9134         (struct cpp_reader): Similarly.  New members once_only_files,
9135         file_hash, file_hash_entries, quote_ignores_source_dir,
9136         no_search_path, saw_pragma_once.  Remove all_include_files and
9137         max_include_len.  Make some members bool.
9138         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
9139         (_cpp_stack_file): Renamed from _cpp_read_file.
9140         (_cpp_stack_include): Renamed from _cpp_execute_include.
9141         (_cpp_init_files): Renamed from _cpp_init_includes.
9142         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
9143         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
9144         (cpp_read_next_file): Rename and move to cppfiles.c.
9145         (cpp_read_main_file): Update.
9146         * cpplib.c (run_directive): Update for renamed members.
9147         (do_include_common, _cpp_pop_buffer): Update.
9148         (do_import): Undeprecate #import.
9149         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
9150         * cpplib.h: Remove file_name_map_list.
9151         (cpp_options): Remove map_list.
9152         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
9153         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
9154
9155 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
9156
9157         * Makefile.in:  Make stamp-objdir safe for parallel builds.
9158
9159 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
9160
9161         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
9162         (info):  Depend on stmp-docobjdir.
9163
9164 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9165
9166         * configure: Regenerate.
9167
9168 2003-07-29  Jan Hubicka  <jh@suse.cz>
9169
9170         PR C++/11131
9171         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
9172         in !unit-at-a-time mode.
9173
9174 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
9175
9176         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
9177         main function.
9178
9179 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
9180
9181         PR c++/11667
9182         * c-common.c (shorten_compare): Take into account differences
9183         between C and C++ representation for enumeration types.
9184         * tree.h (set_min_and_max_values_for_integral_type): Declare.
9185         * stor-layout.c (set_min_and_max_values_for_integral_type): New
9186         function, broken out from ...
9187         (fixup_signed_type): ... here and ...
9188         (fixup_unsigned_type): ... here.
9189
9190 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
9191
9192         * c-decl.c: Update commentary, adjust blank lines throughout.
9193         (struct c_scope): Fix indentation.  Reorder members so
9194         outer-context pointers come first, booleans last.
9195         (duplicate_decls, define_label): Use a 'locus' variable for
9196         diagnostic locations in a few more places.
9197         (warn_if_shadowing): Un-split a conditional that fits on one line.
9198         (c_init_decl_processing): No need to clear current_scope and
9199         current_function_scope.
9200         (start_decl): Merge if/else if statements with same action.
9201         (push_parm_decl): Rename old_immediate_size_expand to use
9202         save_foo convention; save/restore around entire function.
9203         (grokdeclarator): Remove unnecessary braces.
9204
9205 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
9206             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
9207
9208         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
9209         when warn_declaration_after_statement.  Call pedwarn_c90, not
9210         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
9211         * c-common.c (warn_declaration_after_statement): Define.
9212         * c-common.h (warn_declaration_after_statement): Declare.
9213         * c.opt (Wdeclaration-after-statement): New.
9214         * c-errors.c (pedwarn_c90): New function.
9215         * c-opts.c (c_common_handle_option) <case
9216         OPT_Wdeclaration_after_statement>: New.
9217         * c-tree.h (pedwarn_c90): Declare.
9218         * doc/invoke.texi (Option Summary): Document
9219         -Wdeclaration-after-statement.
9220         (Warning Options): Ditto.
9221
9222 2003-07-28  Jan Hubicka  <jh@suse.cz>
9223
9224         * i386.md (memory attribute) Avoid accessing uninitialized memory
9225         for ishift1 type instructions.
9226
9227 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
9228
9229         * configure.in (--enable-checking): Add fold category.
9230         (ENABLE_FOLD_CHECKING): Define if requested.
9231         * configure: Rebuilt.
9232         * config.in: Rebuilt.
9233         * doc/install.texi: Document it.
9234         * fold-const.c: Include md5.h.
9235         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
9236         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
9237         print_fold_checksum): New functions.
9238
9239         * fold-const.c (fold): Never modify argument passed to fold, instead
9240         change a copy and return it.
9241         * convert.c (convert_to_integer): Likewise.
9242
9243 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
9244
9245         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
9246         cleanup of junk after #else and #endif directives.  Collapse repeated
9247         clauses into for statment.
9248
9249         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
9250
9251 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
9252
9253         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
9254         (keep_next_if_subblocks): Rename next_is_function_body.
9255         (pushlevel): Adjust commentary.  Always set ->keep on the
9256         outermost level of a function.  Don't set ->keep_if_subblocks.
9257         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
9258         (store_parm_decls): Adjust to match.
9259         (finish_function): Adjust to match.
9260         Call poplevel with all three arguments zero.
9261
9262         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
9263         New functions split out of store_parm_decls.
9264         Avoid unnecessary work. Use local variables consistently.
9265         (store_parm_decls): Likewise.
9266
9267         (finish_function): No need to set functionbody flag on call to
9268         poplevel.
9269         (struct language_function): Remove scope field.
9270         (c_push_function_context, c_pop_function_context): No need to
9271         save and restore current_scope.
9272
9273 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
9274
9275         * doc/extend.texi (Deprecated Features): Implicit typename is
9276         gone. Default args on types is going.
9277
9278 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
9279
9280         * Makefile.in (ifcvt.o): Depend on target.h
9281         * ifcvt.c (target.h): Include.
9282         (if_convert): Don't call mark_loop_exit_edges if we can't
9283         modify jumps.
9284
9285 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9286
9287         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
9288
9289 2003-07-26  Richard Henderson  <rth@redhat.com>
9290
9291         PR inline-asm/11676
9292         * cse.c (count_reg_usage): Handle asm_operands properly.
9293
9294 2003-07-26  Roger Sayle  <roger@eyesopen.com>
9295
9296         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
9297         (DEF_EXT_FALLBACK_BUILTIN): Delete.
9298         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
9299         the regular DEF_EXT_LIB_BUILTIN macro.
9300         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
9301         the regular DEF_LIB_BUILTIN macro.
9302         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
9303         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
9304         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
9305         DEF_EXT_LIB_BUILTIN macro.
9306
9307         * c-decl.c (duplicate_decls): Remove code to handle builtin
9308         functions prototyped without an argument list.
9309
9310 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
9311
9312         * config/i386/winnt.c: Revert 2003-07-08 change.
9313         (i386_pe_section_type_flags): Remove error_with_decl here too.
9314
9315 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9316
9317         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
9318         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
9319         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
9320         (v850_handle_data_area_attribute): Likewise.
9321
9322 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
9323
9324         * varasm.c (output_constant_def_contents): Use
9325         ASM_DECLARE_CONSTANT_NAME if defined.
9326         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
9327         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
9328         objects get at least one byte to prevent assembler problems.
9329         (ASM_DECLARE_CONSTANT_NAME): New.
9330
9331         * Makefile.in (libbackend.o): Remove options_.h.
9332         (mostlyclean): Likewise.
9333
9334         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
9335         insert a label at the end of an function under Mach-O.
9336
9337         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
9338
9339 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
9340
9341         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
9342         equality.
9343         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
9344
9345         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
9346
9347 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9348
9349         * doc/passes.texi (Passes): Mention pretty-printing and
9350         diagnostic files.
9351
9352 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
9353
9354         * doc/extend.texi (Function Attributes): GNU C++ does now allow
9355         unused parameter decls.
9356         (Attribute Syntax): GNU C++ does not allow label attributes to be
9357         after the ':'.
9358
9359 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9360
9361         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
9362         (objc_declare_class): Likewise.
9363         (error_with_ivar): Likewise.
9364         (start_class): Likewise.
9365         (warn_with_method): Likewise.
9366
9367 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9368
9369         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
9370         from GCC.
9371         * calls.c (try_to_integrate): Don't use xxx_with_decl.
9372         (expand_call): Likewise.
9373         * dwarfout.c (output_reg_number): Likewise.
9374         * expr.c (expand_expr): Likewise.
9375         * function.c (assign_temp): Likewise.
9376         (uninitialized_vars_warning): Likewise.
9377         (setjmp_args_warning): Likewise.
9378         (expand_function_end): Likewise.
9379         * stmt.c (fixup_gotos): Likewise.
9380         (warn_about_unused_variables): Likewise.
9381         (expand_end_bindings): Likewise.
9382         * stor-layout.c (layout_decl): Likewise.
9383         (place_field): Likewise.
9384         * toplev.c (check_global_declarations): Likewise.
9385         (rest_of_handle_inlining): Likewise.
9386         (default_tree_printer): New function.
9387         (general_init): Initialize diagnostic machinery before routing
9388         signals to the ICE machinery.  Set default tree printer.
9389         * toplev.h (pedwarn_with_decl): Remove declaration.
9390         (warning_with_decl): Likewise.
9391         (error_with_decl): Likewise.
9392         (pedwarn): Remove attribute for the time being.
9393         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
9394         * varasm.c (named_section): Likewise.
9395         (make_decl_rtl): Likewise.
9396         (assemble_variable): Likewise.
9397         (merge_weak): Likewise.
9398         (declare_weak): Likewise.
9399
9400         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
9401         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
9402         (format_with_decl): Remove.
9403         (diagnostic_for_decl): Likewise.
9404         (pedwarn_with_decl): Likewise.
9405         (warning_with_decl): Likewise.
9406         (error_with_decl): Likewise.
9407         (diagnostic_initialize): Adjust.
9408         (diagnostic_count_diagnostic): Likewise.
9409         (announce_function): Likewise.
9410         (lhd_print_error_function): Likewise.
9411         (diagnostic_report_current_module): Likewise.
9412         (default_diagnostic_starter): Likewise.
9413         (diagnostic_report_diagnostic): Likewise.
9414         (default_diagnostic_finalizer): Likewise.
9415         (verbatim): Likewise.
9416         (error): Likewise.
9417         (warning): Likewise.
9418         * opts.c (common_handle_option): Likewise.
9419         * pretty-print.c: New file.
9420         * c-pretty-print.h (pp_base): Override.
9421         * c-pretty-print.c: Adjust use of macros throughout.
9422         (pp_buffer): New macro.
9423         (pp_newline): Likewise.
9424         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
9425         * Makefile.in (DIAGNOSTIC_H): New variable.
9426         (c-errors.o): Use it.
9427         (c-objc-common.o): Likewise.
9428         (c-common.o): Likewise.
9429         (c-opts.o): Likewise.
9430         (c-format.o): Likewise.
9431         (diagnostic.o): Likewise.
9432         (opts.o): Likewise.
9433         (toplev.o): Likewise.
9434         (rtl-error.o): Likewise.
9435         (dwarf2out.o): Likewise.
9436         (jump.o): Likewise.
9437         (pretty-print.o): New rule.
9438
9439 2003-07-24  Roger Sayle  <roger@eyesopen.com>
9440
9441         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
9442         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
9443         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
9444         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
9445         (DEF_FRONT_END_LIB_BUILTIN): Delete.
9446         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
9447         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
9448
9449         * builtins.c (build_string_literal): New function to construct
9450         a char* pointer to a string literal.
9451         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
9452         "rtx target" to be consistent with other expand_builtin_* functions.
9453         Change 3rd argument from "int unlocked" to "bool unlocked".
9454         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
9455         c-common.c to avoid front-end dependencies.  Optimize printf("")
9456         as a no-op when the result isn't required.  Handle embedded NULs
9457         in format string.
9458         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
9459         from c-common.c to avoid front-end dependencies.  Likewise, optimize
9460         fprintf(fp,"") as a no-op when the result isn't required, evaluating
9461         fp for side-effects.  Handle embedded NULs in format string.
9462         (expand_builtin_sprintf): Fix typo.
9463         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
9464         optimizing.  Adjust calls of expand_builtin_fputs to match the API
9465         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
9466         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
9467         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
9468
9469         * c-common.c (is_valid_printf_arglist): Delete.
9470         (c_expand_builtin): Delete.
9471         (c_expand_builtin_printf): Moved to builtins.c. Delete.
9472         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
9473         (c_expand_expr): No longer treat CALL_EXPRs specially.
9474         (CALLED_AS_BUILT_IN): Delete.
9475
9476 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9477
9478         PR optimization/11631
9479         * gcse.c (store_motion): Connect infinite loops to exit.
9480
9481 2003-07-24  Jason Merrill  <jason@redhat.com>
9482
9483         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
9484         (boolean_true_node, boolean_false_node): Likewise.
9485         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
9486         * tree.c (build_common_tree_nodes): Init boolean_type_node.
9487         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
9488         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
9489         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
9490         (truthvalue_true_node): Renamed from boolean_true_node.
9491         (truthvalue_false_node): Renamed from boolean_false_node.
9492         * c-decl.c: Just set truthvalue_* to integer_*.
9493         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
9494
9495 2003-07-24  Roger Sayle  <roger@eyesopen.com>
9496
9497         * c-decl.c (match_builtin_function_types): New subroutine of
9498         duplicate_decls to test whether a redeclaration of a builtin
9499         function is suitably close, i.e. the return type and all of
9500         the argument types have the same modes as the builtin expects.
9501         (duplicate_decls): Fuzzy type matching for builtin functions
9502         moved to match_builtin_function_types.
9503
9504 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9505
9506         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
9507         flag correctly.
9508
9509 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
9510
9511         * c-decl.c: Search-and-replace change 'binding level' to
9512         'scope' in commentary.
9513         (struct binding_level): Now struct c_scope.
9514         (current_binding_level): Now current_scope.
9515         (free_binding_level): Now scope_freelist.
9516         (current_function_level): Now current_function_scope.
9517         (global_binding_level): Now global_scope.
9518         (make_binding_level): Now make_scope.
9519         (pop_binding_level): Now pop_scope.
9520
9521 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9522
9523         * configure.in (libgcc_visibility): Add missing whitespace.
9524
9525 2003-07-24  Richard Henderson  <rth@redhat.com>
9526
9527         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
9528         __gcc_personality_v0.
9529
9530 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9531
9532         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
9533
9534 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
9535
9536         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
9537         documentation missed from my 2003-07-09 patch.
9538
9539 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
9540
9541         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
9542         it's not provided.
9543         * configure: Rebuild.
9544
9545 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
9546
9547         PR c/10602
9548         * c-typeck.c (type_lists_compatible_p): Do not compare
9549         arguments if one of them is an error_mark_node
9550
9551 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
9552
9553         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
9554         if current_function_calls_eh_return.
9555
9556 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
9557
9558         * doc/c-tree.texi (OFFSET_TYPE): Update description.
9559
9560 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
9561
9562         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
9563         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
9564         __umodsi3, __modsi3): Increase frame size to 32.
9565
9566 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
9567
9568         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
9569         prototype.
9570
9571 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
9572
9573         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
9574
9575         PR optimization/10679
9576         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
9577
9578 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9579
9580         PR target/11607 and PR target/11516
9581         * pa.md (extzv, extv, insv): Revert latter half of last patch.
9582
9583 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
9584
9585         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
9586         * varasam.c (output_constant): Likewise.
9587
9588 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
9589
9590         * alias.c: Fix comment formatting.
9591         * c-common.c: Likewise.
9592         * c-decl.c: Likewise.
9593         * c-opts.c: Likewise.
9594         * combine.c: Likewise.
9595         * cpplib.c: Likewise.
9596         * diagnostic.c: Likewise.
9597         * dojump.c: Likewise.
9598         * final.c: Likewise.
9599         * fold-const.c: Likewise.
9600         * gcc.c: Likewise.
9601         * gcse.c: Likewise.
9602         * ggc-page.c: Likewise.
9603         * jump.c: Likewise.
9604         * loop.c: Likewise.
9605         * mips-tfile.c: Likewise.
9606         * recog.c: Likewise.
9607         * regclass.c: Likewise.
9608         * regmove.c: Likewise.
9609         * tree.c: Likewise.
9610         * tree.h: Likewise.
9611
9612 2003-07-22  Per Bothner  <pbothner@apple.com>
9613
9614         * line-map.c (add_line_map):  Handle invalid LEAVE request.
9615         Fixes PR preprocessor/11361.
9616
9617 2003-07-22  Per Bothner  <pbothner@apple.com>
9618
9619         * diagnostic.c.(diagnostic_report_current_module):  Update to match
9620         2003-06-05 changes to push_srcloc and pop_srcloc.
9621
9622 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
9623
9624         * doc/trouble.texi: Better document two-stage name lookup.
9625
9626 2003-07-22  Eric Christopher <echristo@redhat.com>
9627
9628         * config/s390.c (s390_valid_pointer_mode): New.
9629         (TARGET_VALID_POINTER_MODE): Use.
9630         (s390_emit_prologue): Add tpf profiling hooks.
9631         (s390_emit_epilogue): Ditto.
9632         * config/s390.h (MASK_TPF): New.
9633         (TARGET_TPF): Use.
9634         (POINTERS_EXTEND_UNSIGNED): Define.
9635         * config/s390.md (ptr_extend): New pattern.
9636
9637 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
9638
9639         * hashtable.c (approx_sqrt): Make static.
9640         * hashtable.h: Don't prototype approx_sqrt.
9641         * line-map.c (init_line_maps): Rename linemap_init.
9642         (free_line_maps): Rename linemap_free.
9643         (add_line_map): Rename linemap_add.
9644         (lookup_line): Rename linemap_lookup.
9645         (print_containing_files): Rename linemap_print_containing_files.
9646         * linemap.h: Update to match.
9647
9648         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
9649         linemap routines to use new names.
9650
9651 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
9652
9653         * c-common.c (handle_packed_attribute): Don't pack a struct via a
9654         typedef. Propagate packedness from a main variant.
9655
9656 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
9657
9658         * Makefile.in (install-common): Add dependency on installdirs.
9659
9660 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
9661
9662         * c-common.c (c_common_type_for_mode): Return integer types for
9663         pointer modes.
9664
9665 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
9666
9667         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
9668         (finish_decl): Call maybe_apply_pragma_weak here.
9669         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
9670         TREE_PUBLIC and TREE_STATIC are decided.
9671         (start_function): Move call to maybe_apply_pragma_weak.  Check that
9672         DECL_ASSEMBLER_NAME isn't set too early.
9673
9674         * cpplex.c (_cpp_process_line_notes): Mention option name in
9675         trigraphs warning.
9676
9677 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
9678
9679         * combine.c (if_then_else_cond): Simplify the comparison of
9680         rtx against -1, 0, and 1.
9681         * loop.c (check_dbra_loop): Likewise.
9682         * optabs.c (emit_conditional_move): Likewise.
9683         (emit_conditional_add): Likewise.
9684         * config/i386/i386.md (*movsi_or): Likewise.
9685         (*movdi_or_rex6): Likewise.
9686
9687 2003-07-22  Jan Hubicka  <jh@suse.cz>
9688
9689         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
9690
9691 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
9692
9693         * cppfiles.c (open_file_pch): Don't put unused entries in the
9694         splay tree.  Remove dead code.
9695
9696 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
9697
9698         * c-common.h (num_in_fnames): Declare.
9699         (c_static_assembler_name): Move from here...
9700         * c-tree.h (c_static_assembler_name): ... to here.
9701         * c-opts.c: Don't include langhooks-def.h.
9702         (c_static_assembler_name): Move to c-decl.c.
9703         (num_in_fnames): Make externally visible.
9704         * c-decl.c: Include langhooks-def.h.
9705         (c_static_assembler_name): Move from c-opts.c.
9706         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
9707         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
9708
9709         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
9710         when it's not needed.
9711
9712 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
9713
9714         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
9715         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
9716         (rs6000_emit_prologue): Save FPRs inline if set.
9717
9718 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
9719
9720         * config/ia64/ia64.md (prefetch): Support predicate.
9721
9722 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
9723
9724         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
9725         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
9726         table.
9727
9728 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
9729
9730         PR optimization/11536
9731         * unroll.c (loop_iterations): Do not replace a register holding
9732         the final value by its equivalent before the loop if it is not
9733         invariant.
9734
9735 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
9736
9737         * doc/extend.texi: Fixes to spelling, grammar, and diction.
9738
9739 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
9740
9741         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
9742         (V850 Options): Spelling fixes.
9743
9744 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
9745
9746         * doc/invoke.texi: Fixes to style, grammar and diction.
9747
9748 2003-07-20  Roger Sayle  <roger@eyesopen.com>
9749
9750         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
9751         * system.h (SMALL_STACK): Poison obsolete target macro.
9752         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
9753
9754 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
9755
9756         * configure.in:  Cache the results of testing for cmp's capabilities.
9757         * configure:  Regenerate.
9758
9759 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
9760
9761         PR debug/11279
9762         * dwarf2out.c (gen_enumeration_type_die): Remember that
9763         enumerators can be unsigned.
9764
9765 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
9766
9767         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
9768         (push_label_level, pop_label_level): Kill.
9769         (struct binding_level): Rename level_chain to outer.
9770         Add outer_function field.  Change parm_flag, function_body,
9771         keep, keep_if_subblocks to 1-bit bitfields of type bool.
9772         (current_function_level): New variable.
9773         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
9774         (keep_next_level, declare_parm_level, warn_if_shadowing):
9775         Update to match.
9776         (struct language_function): Kill named_labels, shadowed_labels fields.
9777         (c_init_decl_processing, start_function, c_push__function_context)
9778         (c_pop_function_context): No need to muck with named_labels nor
9779         shadowed_labels.
9780
9781         (make_binding_level): No need to clear the structure here.
9782         (pop_binding_level): Always operate on current_binding_level.
9783         Update current_function_level if necessary.
9784         (pushlevel): Don't clear named_labels.  Update current_function_level
9785         if necessary.  Use "true" and "false" where appropriate.
9786         (poplevel): Diagnose labels defined but not used, or vice
9787         versa, and clear out label-meanings leaving scope, while
9788         walking down the decls list, for all binding levels.
9789         Handle LABEL_DECLs appearing in the shadowed list.
9790         pop_binding_level takes no arguments.
9791         (pushdecl_function_level): Use current_function_level.
9792
9793         (make_label, bind_label): New static functions.
9794         (declare_label): New exported function.
9795         (lookup_label, define_label): Rewritten for new data structure.
9796         (shadow_label): Kill.
9797
9798         * c-tree.h: Prototype declare_label; don't prototype
9799         push_label_level, pop_label_level, nor shadow_label.
9800         * c-parse.in: Remove all calls to push_label_level and
9801         pop_label_level.  Use declare_label for __label__ decls.
9802
9803         * doc/extend.texi: Clarify that __label__ can be used to
9804         declare labels with local scope in any nested block, not
9805         just statement expressions.  Cross-reference nested functions
9806         section from local labels section.
9807
9808 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9809
9810         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
9811
9812 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
9813
9814         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
9815
9816 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9817
9818         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
9819         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
9820
9821 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
9822
9823         * config/s390/s390.c (legitimize_pic_address): Access local symbols
9824         relative to the GOT instead of relative to the literal pool base.
9825         (s390_output_symbolic_const): Handle new GOT-relative accesses.
9826         * config/s390/s390.md ("call"): Access local functions and PLT stubs
9827         relative to the GOT instead of relative to the literal pool base.
9828         ("call_value"): Likewise.
9829         ("call_value_tls"): Likewise.
9830
9831         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
9832         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
9833         (s390_chunkify_finish): Likewise.
9834         (s390_chunkify_cancel): Likewise.
9835         (s390_reorg): Adapt caller.
9836         (find_base_register_in_addr,
9837         find_base_register_ref, replace_base_register_ref): Delete.
9838         (find_ltrel_base, replace_ltrel_base): New functions.
9839         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
9840         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
9841         base vs. index register usage.
9842         (struct constant_pool): Remove 'anchor'.
9843         (s390_add_anchor): Delete.
9844         (s390_dump_pool): Remove anchor handling.
9845         * config/s390/s390.md ("reload_anchor"): Remove.
9846
9847         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
9848         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
9849         (s390_emit_prologue): Use it.
9850         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
9851         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
9852         hard-code register 14.
9853         * config/s390/s390-protos.h (s390_load_got): Declare.
9854
9855         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
9856         Support TImode constants.
9857         * config/s390/s390.md ("consttable_ti"): New.
9858         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
9859
9860         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
9861         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
9862         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
9863         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
9864         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
9865         New symbolic constants.
9866         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
9867         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
9868         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
9869         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
9870         symbolic UNSPEC values.
9871         * config/s390/s390.c (larl_operand, s390_short_displacement,
9872         bras_sym_operand, s390_cannot_force_const_mem,
9873         s390_delegitimize_address, s390_decompose_address,
9874         legitimize_pic_address, s390_output_symbolic_const,
9875         s390_function_profiler): Use symbolic UNSPEC values.
9876
9877 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9878
9879         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
9880         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
9881         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
9882         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
9883         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
9884         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
9885         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
9886         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
9887         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
9888         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
9889         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
9890         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
9891         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
9892         postreload.c prefix.c print-tree.c protoize.c ra-build.c
9893         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
9894         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
9895         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
9896         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
9897         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
9898         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
9899         casts.
9900
9901 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9902
9903         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
9904         * toplev.h (warning): Remove attribute.
9905
9906 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9907
9908         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
9909         (pop_label_level): Likewise.
9910         (duplicate_decls): Likewise.
9911         (implicitly_declare): Likewise.
9912         (shadow_label): Likewise.
9913         (start_decl): Likewise.
9914         (finish_decl): Likewise.
9915         (grokdeclarator): Likewise.
9916         (get_parm_info): Likewise.
9917         (detect_field_duplicates): Likewise.
9918         (finish_struct): Likewise.
9919         (start_function): Likewise.
9920         (store_parm_decls): Likewise.
9921         (finish_function): Likewise.
9922         (c_expand_body_1): Likewise.
9923         (check_for_loop_decls): Likewise.
9924         (merge_translation_unit_decls): Likewise.
9925
9926 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
9927
9928         * common.opt:  Document --param.
9929         * opts.c (columns, undocumented_msg): New.
9930         (print_help): Get number of columns from environment.  Print
9931         --param help.  Tweak newline handling.
9932         (print_param_help): New.
9933         (print_filtered_help): Better handling of duplicates.  Complain
9934         about undocumented switches.
9935         (print_switch): New.
9936         (wrap_help): Improve wrapping, use COLUMNS.
9937         * opts.sh: Ignore comments in records.
9938         * params.def: Fix typos and remove trailing periods.
9939         * toplev.c (display_help): Don't dump --param help.
9940         * doc/sourcebuild.texi: Update.
9941
9942 2003-07-18  Richard Henderson  <rth@redhat.com>
9943
9944         PR target/11556
9945         * optabs.c (prepare_operand): Fail gracefully instead of abort
9946         if the predicate doesn't satisfy.
9947         (gen_cond_trap): Allow prepare_operand to fail.
9948
9949 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9950
9951         * c-common.c: Don't undefine GCC_DIAG_STYLE.
9952         (fname_decl): Don't use xxx_with_decl.
9953         (c_add_case_label): Likewise.
9954         (handle_section_attribute): Likewise.
9955         (handle_alias_attribute): Likewise.
9956         (handle_no_instrument_function_attribute): Likewise.
9957         (handle_no_limit_stack_attribute): Likewise.
9958         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
9959         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
9960
9961 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9962
9963         * Makefile.in (ifcvt.o): Add cfgloop.h.
9964         * basic-block.h (EDGE_LOOP_EXIT): New flag.
9965         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
9966         * ifcvt.c: Include cfgloop.h.
9967         (mark_loop_exit_edges): New static function.
9968         (if_convert): Call it.
9969         (find_if_header): Ignore branches out of loops.
9970
9971 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
9972
9973         * combine.c (simplify_comparison): Don't share rtx when converting
9974         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
9975
9976 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
9977
9978         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
9979         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
9980         (MUST_PASS_IN_STACK): Define.
9981         (BLOCK_REG_PADDING): Define.
9982
9983 2003-07-18  Richard Henderson  <rth@redhat.com>
9984
9985         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
9986         to skip the addr_vec.
9987
9988 2003-07-18  Alexandre Oliva  <aoliva@redhat.com>
9989
9990         * combine.c (combinable_i3pat): Don't forbid occurrences of
9991         i2dest or i1dest in inner_dest if inner_dest is a mem.
9992
9993 2003-07-18  Jan Hubicka  <jh@suse.cz>
9994
9995         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
9996
9997 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
9998
9999         PR target/11087
10000         * loop.c (basic_induction_var): Check if convert_modes emitted any
10001         instructions. Remove them and return 0 if so.
10002
10003 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
10004
10005         PR optimization/11083
10006         * toplev.c (rest_of_handle_addresof): Rename into
10007         rest_of_handle_addressof.  Delete unreachable blocks
10008         if dead edges were purged after the addressof pass.
10009
10010 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
10011
10012         * Makefile.in, configure, configure.in: Remove handling of
10013         lang-options.h and options_.h.
10014         * toplev.c (struct lang_opt, documented_lang_options): Remove.
10015         (display_help): Don't use documented_lang_options.
10016
10017 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
10018
10019         * c-decl.c (pushdecl_function_level): Make static, return nothing.
10020         (kept_level_p): Fold into poplevel.
10021         (undeclared_variable): Moved here from c-typeck.c.  Export.
10022         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
10023         (undeclared_variable): Prototype here.  Don't prototype
10024         kept_level_p nor pushdecl_function_level.
10025         * c-parse.in: Change first argument to poplevel from
10026         "kept_level_p()" to "KEEP_MAYBE".
10027         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
10028
10029 2003-07-17  Roger Sayle  <roger@eyesopen.com>
10030
10031         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
10032         commutative operands instead of modifying the RTL in-place.
10033
10034 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
10035
10036         PR optimization/11557
10037         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
10038         unless we know which function is being called.
10039
10040 2003-07-17  Roger Sayle  <roger@eyesopen.com>
10041
10042         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
10043         whether to reorder the operands of a commutative binary operator.
10044
10045 2003-07-17  Roger Sayle  <roger@eyesopen.com>
10046
10047         * fold-const.c (const_binop): Avoid performing the FP operation at
10048         compile-time, if either operand is NaN and we honor signaling NaNs,
10049         or if we're dividing by zero and either flag_trapping_math is set
10050         or the desired mode doesn't support infinities.
10051         (fold_initializer): New function to fold an expression ignoring any
10052         potential run-time exceptions or traps.
10053         * tree.h (fold_initializer): Prototype here.
10054         * c-typeck.c (build_binary_op): Move to the end of the file so
10055         that intializer_stack is in scope.  If constructing an initializer,
10056         i.e. when initializer_stack is not NULL, use fold_initializer to
10057         fold expressions.
10058         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
10059         performing FP operations at compile-time, if they would raise an
10060         exception at run-time.
10061
10062 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
10063
10064         PR 11498
10065         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
10066         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
10067         (GTFILES): Add langhooks.c.
10068         (gt-langhooks.h): New.
10069         * c-common.h (c_static_assembler_name): Prototype.
10070         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
10071         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
10072         * c-opts.c: Include langhooks-def.h.
10073         (c_static_assembler_name): New.
10074         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
10075         (var_labelno): New.
10076         (lhd_set_decl_assembler_name): Give static objects with context
10077         unique names.
10078         * varasm.c (var_labelno): Delete.
10079         (make_decl_rtl): Don't change the assembler name once it's set.
10080
10081         * c-opts.c (this_input_filename): New.
10082         (finish_options): Take new parameter, name of file being compiled.
10083         Update callers.  Set this_input_filename.
10084         (push_command_line_include): Use this_input_filename not
10085         main_input_filename.
10086
10087 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
10088
10089         * Makefile.in: Depend .pot generation on options.c.
10090         * po/exgettext: Add an extra_files variable containing additional
10091         files to scan.
10092
10093 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
10094
10095         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
10096         c_write_global_declarations.
10097
10098         * c-decl.c: Fix typos in several comments.  Remove all
10099         #if 0 blocks; reindent as needed.  Remove unused argument
10100         to declare_parm_level; all callers changed.
10101         * c-parse.in: Update calls to declare_parm_level.  Avoid
10102         issuing a double warning in some circumstances.
10103         * c-typeck.c: Update calls to declare_parm_level.
10104         * c-tree.h: Update prototype of declare_parm_level.
10105
10106         * c-pragma.c (apply_pragma_weak): Don't complain about a
10107         redundant #pragma weak.
10108
10109         * objc/objc-act.c (forward_declare_categories,
10110         build_selector_reference_decl, build_class_reference_decl,
10111         build_objc_string_decl, synth_forward_declarations,
10112         build_protocol_reference): Set TREE_PUBLIC on synthetic
10113         forward decl to 0, consistent with eventual definition.
10114         Correct comments to match.
10115
10116         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
10117         in regexp that don't form a range expression.
10118         * fixinc/fixincl.def: Regenerate.
10119
10120 2003-07-17  Richard Henderson  <rth@redhat.com>
10121
10122         PR target/10907
10123         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
10124         even with !TARGET_CONST_GP.
10125         (ia64_function_ok_for_sibcall): Reject non-local functions.
10126
10127 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
10128
10129         * c-common.c (c_estimate_num_insns_1): Don't handle
10130         METHOD_CALL_EXPR.
10131         * expr.c (safe_from_p): Likewise.
10132         * gengtype.c (adjust_field_tree_exp): Likewise.
10133         * stmt.c (warn_if_unused_value): Likewise
10134         * tree.c (first_rtl_op): Likewise.
10135         * tree.def: Don't define METHOD_CALL_EXPR.
10136         * java/lang.c (java_estimate_num_insns_1): Don't handle
10137         METHOD_CALL_EXPR.
10138
10139 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
10140
10141         PR other/11466
10142         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
10143         and its restrictions for the SPARC64 port.
10144         Move the entry of "-mimpure-text" before that of "-mv8".
10145
10146 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
10147             Phil Edwards <phil@jaj.com>
10148
10149         * doc/install.texi (*-*-solaris2*): Document the step-by-step
10150         procedure to bootstrap and install.
10151         Document the preference for the legacy Sun tools in /usr/bin
10152         over the POSIX tools in /usr/xpg4/bin for the build process.
10153
10154 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
10155
10156         * c.opt: Document Uncodumented; use it.  Document ObjC options.
10157         * opts.c (print_filtered_help): Skip undocumented switches.
10158         * opts.h (CL_UNDOCUMENTED): New.
10159         * opts.sh: Handle Undocumented.
10160         * toplev.c (documented_lang_options): Prevent its becoming empty.
10161 objc:
10162         * lang-options.h: Remove.
10163
10164 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
10165
10166         * loop.c (check_ext_dependent_givs): Pass const struct loop *
10167         instead of struct loop_info * as argument.  Accept BIVs with
10168         increment +/- 1 provided there is a friendly exit test against
10169         a loop-invariant value.
10170         (strength_reduce): Adapt call to check_ext_dependent_givs.
10171
10172 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
10173             Con Bradley <con.bradley@superh.com>
10174
10175         * sh-protos.h (sh_get_pr_initial_val): Declare.
10176         * sh.c (regno_reg_class): Make its elements type enum reg_class.
10177         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
10178         and live_regs_mask arguments.  Changed all callers.
10179         (save_schedule_s): New structure.
10180         (save_schedule): New typedef.
10181         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
10182         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
10183         In interrupts handlers, also save registers that are usually
10184         partially saved, and make sure there is at least one general purpose
10185         register saved if a target register needs saving.
10186         Add casts in comparisons to avoid warnings.
10187         (sh_media_register_for_return): return -1 for interrupt handlers.
10188         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
10189         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
10190         registers used are available.
10191         Set RTX_FRAME_RELATED_P where appropriate.
10192         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
10193         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
10194         (initial_elimination_offset): Likewise.
10195         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
10196         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
10197         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
10198         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
10199         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
10200         and for target registers.
10201         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
10202         (regno_reg_class): Make its elements type enum reg_class.
10203         (CONSTRAINT_LEN): Don't use isdigit.
10204         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
10205         (FUNCTION_ARG): Add parentheses to avoid warnings.
10206         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
10207         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
10208         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
10209         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
10210         * sh.md (xordi3+1): Remove unused variable regno.
10211         (return_media): Check that tr0 is available before using it.
10212
10213 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
10214
10215         * c.opt: Document more options.
10216
10217 2003-07-16  Roger Sayle  <roger@eyesopen.com>
10218
10219         * combine.c (subst): Also handle (subreg (const_double ...)) case
10220         if created by a substitution, by using the original inner mode.
10221
10222 2003-07-16  Roger Sayle  <roger@eyesopen.com>
10223
10224         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
10225         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
10226         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
10227
10228 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
10229
10230         * doc/install.texi (--without-headers): New.
10231
10232         Partial Fix PR/10129
10233         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
10234         (machopic_output_function_base_name): New; print the true pic label.
10235         (machopic_classify_ident): Pic Base is always a defined data.
10236         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
10237         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
10238
10239         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
10240         if they are not floating point registers.
10241
10242         PR c/10962
10243         * ggc.h: Add header guards.
10244         * c-decl.c (finish_struct): Sort fields if
10245         number greater than 15 and there are no
10246         anonymous structs/unions.
10247         * c-common.h: Include ggc.h.
10248         (sorted_fields_type): New struct.
10249         (field_decl_cmp): New prototype.
10250         (resort_sorted_fields): New prototype.
10251         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
10252         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
10253         as s, removing other fields.
10254         * c-typeck.c (lookup_field): Use s in lang_type.
10255         These were mostly moved from cp/class.c:
10256         * c-common.c (field_decl_cmp): New static function.
10257         (field_decl_cmp): New function.
10258         (resort_sorted_fields): New function.
10259
10260 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
10261
10262         * config/darwin.c (machopic_select_section): Use decl_readonly_section
10263         to do most of the work.
10264
10265 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
10266
10267         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
10268         * config/mmix/mmix.c: Convert functions to ISO C90.
10269         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
10270         formatting.
10271         (mmix_get_hard_reg_initial_val): Tweak section head comment.
10272
10273 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
10274
10275         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
10276
10277 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
10278
10279         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
10280         (uw_update_context_1): Use it.
10281         * config/rs6000/rs6000.c (insn_after_throw): Remove.
10282         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
10283         in parent frame if _Unwind_* called directly instead of through
10284         .plt.
10285         (rs6000_emit_eh_toc_restore): Remove.
10286         (rs6000_emit_prologue): Update stack pointer before doing any saving
10287         if current_function_calls_eh_return.  Generate unwind info for $r2.
10288         (rs6000_emit_epilogue): Restore stack pointer after doing all
10289         restoring if current_function_calls_eh_return.  Restore $r2.
10290         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
10291         * config/rs6000/rs6000.md (eh_return): Remove call to
10292         rs6000_emit_eh_toc_restore.
10293         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
10294         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
10295
10296 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
10297
10298         * expr.c (emit_block_move): Don't move anything if size is const 0.
10299         (clear_storage): Test against const0_rtx instead of comparing INTVAL
10300         against 0.
10301
10302 2003-07-15  David S. Miller  <davem@redhat.com>
10303
10304         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
10305         emit nop if the last real insn is CALL_INSN.
10306
10307 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
10308
10309         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
10310         as "nul".
10311         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
10312
10313 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
10314
10315         * config/i386/winnt.c (associated_type): Artificial methods are not
10316         affected by the import/export status of their class unless they are
10317         COMDAT.
10318         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
10319
10320         * config/i386/winnt.c: Fix GCC copyright comment.
10321
10322 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
10323
10324         PR c++/11531
10325         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
10326         not recursing on hard error.
10327         (diagnostic_for_decl): Likewise.
10328         * diagnostic.def: Rearrange.
10329
10330 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
10331
10332         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
10333         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
10334
10335 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
10336             Richard Henderson  <rth@redhat.com>
10337
10338         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
10339         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
10340         (_Unwind_SetGR): Likewise.
10341         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
10342         (Unwind_SpTmp): New typedef.
10343         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
10344         (uw_update_context): Use _Unwind_GetPtr.
10345         (init_dwarf_reg_size_table): Move above uw_init_context_1.
10346         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
10347         Use _Unwind_SetSpColumn.
10348         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
10349         Use _Unwind_GetPtr.
10350
10351 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
10352
10353         * c.opt: Document more options.
10354         * toplev.c (documented_lang_options): Remove all local help strings.
10355
10356 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
10357
10358         PR debug/11473
10359         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
10360         base classes.
10361
10362 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
10363
10364         PR target/10795
10365         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
10366         swap comparison operands if doing so would generate an
10367         unrecognizable insn.
10368
10369 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
10370
10371         PR optimization/11320
10372         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
10373         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
10374         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
10375         current_sched_info->compute_jump_reg_dependencies. Record which
10376         registers are used and which registers are set by the jump.
10377         Clear deps->reg_conditional_sets after a barrier.
10378         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
10379         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
10380         (init_deps): Initialize reg_conditional_sets.
10381         (free_deps): Clear reg_conditional_sets.
10382         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
10383         Mark registers live on entry of the fallthrough block and conditionally
10384         set as set by the jump. Mark registers live on entry of non-fallthrough
10385         blocks as used by the jump.
10386         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
10387         Mark new parameters as unused.
10388
10389 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
10390
10391         * doc/invoke.texi: Resync MIPS -march documentation.
10392
10393 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
10394
10395         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
10396         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
10397         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
10398         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
10399         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
10400         (mips_issue_rate): Handle PROCESSOR_R9000.
10401         (mips_use_dfa_pipeline_interface): Likewise.
10402         * config/mips/9000.md: New file.
10403         * config/mips/mips.md: Include it.
10404         (define_attr cpu): Add r9000.
10405         (mulsi3_mult3): Use "mul" for rm9000 code.
10406
10407 2003-07-15  Stan Cox  <scox@redhat.com>
10408
10409         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
10410         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
10411         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
10412         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
10413         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
10414         (mips_issue_rate): Handle PROCESSOR_R7000.
10415         (mips_use_dfa_pipeline_interface): Likewise.
10416         * config/mips/7000.md: New file.
10417         * config/mips/mips.md: Include it.
10418         (define_attr cpu): Add r7000.
10419         (mulsi3_mult3): Use "mul" for rm7000 code.
10420
10421 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
10422
10423         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
10424         the conditional move patterns.
10425         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
10426         Check for condmove type.
10427         (ir_vr54_arith): Add move type.
10428         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
10429         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
10430
10431 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
10432
10433         * c-opts.c (print_help): Remove.
10434         (c_common_handle_option): Don't handle --help.
10435         * c.opt: Document some options.
10436         (--help): Remove.
10437         * opts.c (print_filtered_help): New.
10438         (print_help): Use it.
10439
10440 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
10441
10442         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
10443         * tree.c: (build_common_tree_nodes_2): Likewise.
10444         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
10445         (V4DF_type_node): New.
10446
10447         * c-opts.c (push_command_line_include): Don't free deferred_opts,
10448         we'll need it.
10449         (finish_options): Reset init_cursor.
10450
10451 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
10452
10453         * expr.c (expand_assignment): Remove an unused argument
10454         SUGGEST_REG.
10455         * expr.h: Update the prototype.
10456         * function.c: Update the callers.
10457         * stmt.c: Likewise.
10458
10459 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
10460
10461         PR debug/11098
10462         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
10463         as DECL_ABSTRACT.
10464
10465 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
10466
10467         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
10468         with __cplusplus, not "we must use the C++ compiler's type"
10469         * fixinc/inclhack.def (void_null): Note that Interix needs this.
10470         * fixinc/fixincl.x: Regenerate.
10471
10472 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
10473
10474         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
10475         and unseen_objects from the global data before calling
10476         __deregister_frame_info_bases.
10477         (examine_objects): Insert objects into the seen_objects list,
10478         not unseen_objects.
10479         (_Unwind_Find_FDE): Always unlock the global object lists, even if
10480         we couldn't allocate a data structure to put in it.
10481
10482         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
10483         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
10484         (SET_TYPE_PROTOCOL_LIST): New.
10485         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
10486         (get_object_reference): Likewise.
10487
10488 2003-07-14  Jan Hubicka  <jh@suse.cz>
10489
10490         * cfglayout.c (locator_file): Break out from ....
10491         (insn_file): ... here.
10492         (locator_line): Break out from ....
10493         (insn_line): ... here.
10494         * rtl.h (locator_file, locator_line): Declare.
10495         (final_start_function): Set proper line/file info.
10496
10497 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10498
10499         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
10500         handled by pp_c_cast_expression.
10501
10502 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
10503
10504         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
10505         allocate 32768 bytes of stack.  Use addition rather than subtraction
10506         when a single insn is enough.
10507         * config/mips/mips.md: Remove insns and splitters for subtracting
10508         constants.
10509         (subsi3): Only accept register operands.
10510         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
10511         (subdi3_internal_3, subsi3_internal_2): Likewise.
10512         (casesi): Use expand_binop to subtract the lower bound.
10513
10514 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
10515
10516         * config/mips/mips.c (mips_in_small_data_p): Don't handle
10517         TARGET_MIPS16 specially.
10518
10519 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
10520
10521         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
10522         mips_output_aligned_bss.
10523         * config/mips/linux.h: Likewise.
10524         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
10525         * config/mips/mips.c (mips_output_aligned_bss): New function.
10526
10527         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
10528         * config/mips/elf64.h: Likewise.
10529
10530         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
10531         mips_declare_object_name.
10532         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
10533         * config/mips/elf64.h: As for elf.h.
10534         * config/mips/iris6.h: Likewise.
10535         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
10536         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
10537         do...while (0) block.
10538         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
10539         (mips_finish_declare_object): Declare.
10540         * config/mips/mips.c (mips_declare_object_name): New function.
10541         (mips_finish_declare_object): New function.
10542
10543         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
10544         * config/mips/linux.h: Likewise.
10545
10546         * config/mips/mips.c (inside_function): Delete.
10547         (file_in_function_warning, ignore_line_number): Delete.
10548         (mips_output_filename): Don't warn about changing filenames within
10549         a function.
10550         (mips_output_lineno): Update accordingly.
10551         (mips_output_function_prologue): Don't reset the deleted variables.
10552         * config/mips/mips.h (inside_function): Delete.
10553         (file_in_function_warning, ignore_line_number): Delete.
10554
10555         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
10556         * config/mips/elf64.h: Likewise.
10557         * config/mips/openbsd.h: Likewise.
10558         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
10559         * config/mips/linux.h: Likewise.
10560         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
10561         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
10562
10563         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
10564         to the list of include files when using gas.
10565         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
10566         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
10567         * config/mips/elf64.h: Likewise.
10568         * config/mips/iris5.h: Likewise.
10569         * config/mips/linux.h: Likewise.
10570         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
10571         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
10572         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
10573         * config/mips/sdb.h: ...this new file.
10574
10575 2003-07-14  Douglas Rupp  <rupp@gnat.com>
10576
10577         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
10578         argument to getcwd; use fixed buffer instead.
10579
10580 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
10581
10582         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
10583         * fixinc/fixinc.wrap: Delete.
10584
10585 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
10586
10587         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
10588         don't have 2.
10589
10590 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
10591
10592         * ggc-page.c (struct globals): Add new fields to keep track of the
10593         total allocated memory and overhead.
10594         (ggc_print_statistics): Print them.
10595         (ggc_alloc): Keep track of the total allocated memory and the
10596         overhead.
10597
10598         * tree.c (dump_tree_statistics): Increase spacing.
10599         (enum tree_node_kind): Move to ...
10600         * tree.h (enum tree_node_kind): ... here.
10601         (tree_node_counts, tree_node_sizes): Declare.
10602
10603 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
10604
10605         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
10606
10607 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10608
10609         PR optimization/11440
10610         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
10611         SIGN_EXTRACT SETs.
10612
10613 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
10614
10615         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
10616         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
10617         (emit_group_load, emit_group_store): Adjust declarations.
10618         Remove most occurrences of #ifdef TREE_CODE.
10619         * expr.c (emit_group_load): Add "type" param, and use
10620         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
10621         aligned accesses if !SLOW_UNALIGNED_ACCESS.
10622         (emit_group_store): Likewise.
10623         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
10624         emit_group_load and emit_group_store calls.
10625         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
10626         BLOCK_REG_PADDING to determine whether we need endian_correction.
10627         (load_register_parameters): Localize vars.  Handle shifting of
10628         small values to the correct end of regs.  Adjust emit_group_load
10629         call.
10630         (expand_call, emit_library_call_value_1): Adjust emit_group_load
10631         and emit_group_store calls.
10632         * function.c (assign_parms): Set mem alignment for stack slots.
10633         Adjust emit_group_store call.  Store values at the "wrong" end
10634         of regs to the stack.  Use BLOCK_REG_PADDING.
10635         (locate_and_pad_parm): Save where_pad.
10636         (expand_function_end): Adjust emit_group_load call.
10637         * stmt.c (expand_value_return): Adjust emit_group_load call.
10638         * Makefile.in (calls.o): Depend on $(OPTABS_H).
10639         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
10640         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
10641         (MUST_PASS_IN_STACK): Define.
10642         (BLOCK_REG_PADDING): Define.
10643         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
10644         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
10645         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
10646         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
10647         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
10648
10649 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
10650
10651         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
10652
10653 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10654
10655         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
10656         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
10657
10658 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
10659
10660         PR other/11123
10661         * toplev.c: Don't cut off option names.
10662
10663 2003-07-13  Andreas Jaeger  <aj@suse.de>
10664
10665         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
10666         to integer of different size.
10667
10668 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
10669
10670         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
10671         to (eq (and X 1) 0).
10672
10673 2003-07-13  Andreas Jaeger  <aj@suse.de>
10674
10675         * config.gcc: Add pmmintrin.h for x86_64-*-*.
10676
10677 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
10678
10679         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
10680         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
10681         list.  Move these all together down by cpplib.
10682
10683         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
10684         definition of CPPCHAR_SIGNED_T.
10685
10686         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
10687         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
10688         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
10689
10690         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
10691         * cppinit.c (cpp_create_reader): Likewise.
10692
10693         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
10694         * cpptrad.c: Likewise.  All callers changed.
10695         * cpplib.c: All callers changed.
10696         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
10697         * hashtable.h: Define GTY(x) to nothing here too.
10698
10699 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10700
10701         * stor-layout.c (compute_record_mode): Remove very obsolete test
10702         that forces BLKmode for records with fields crossing word boundary.
10703
10704 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
10705
10706         * Makefile.in: Remove orphan reference to acconfig.h.
10707
10708 2003-07-13  Andreas Jaeger  <aj@suse.de>
10709
10710         * cgraphunit.c: Convert prototypes to ISO C90.
10711
10712 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
10713
10714         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
10715         (for OpenBSD).
10716         * fixinc/fixincl.x: Rebuild.
10717
10718 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
10719
10720         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
10721         i?86-*-*.  Use correct name of cache variable.
10722         * configure: Regenerate.
10723
10724 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
10725
10726         * config/alpha/alpha.c: Fix comment typos.
10727         * config/alpha/alpha.md: Likewise.
10728         * config/arm/arm.c: Likewise.
10729         * config/arm/arm.md: Likewise.
10730         * config/arm/lib1funcs.asm: Likewise.
10731         * config/avr/avr.md: Likewise.
10732         * config/arm/README-interworking: Fix typos.
10733
10734 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
10735
10736         * c-format.c: Fix comment formatting.
10737         * c-typeck.c: Likewise.
10738         * coverage.c: Likewise.
10739         * cppcharset.c: Likewise.
10740         * cpplib.c: Likewise.
10741         * dbxout.c: Likewise.
10742         * gcov-io.h: Likewise.
10743         * toplev.c: Likewise.
10744
10745 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10746
10747         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
10748         fix.
10749
10750 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
10751
10752         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
10753         uses three-argument AC_DEFINE so no acconfig.h entries are
10754         needed.
10755         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
10756         which contains the GAS version number as a scaled integer.
10757         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
10758         ability to check for ELF assembler.
10759         (gcc_GAS_CHECK_FEATURE): New macro.
10760         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
10761         assembler feature checks using gcc_GAS_CHECK_FEATURE.
10762         Use three-argument AC_DEFINE everywhere.
10763         * acconfig.h: Deleted.
10764         * config.in, configure: Regenerate.
10765
10766 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10767
10768         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
10769         (on OpenBSD).
10770         * fixinc/fixincl.x: Regenerate.
10771
10772         * fixinc/inclhack.def (gnu_types): Improve comment.
10773
10774 2003-07-12  Andreas Jaeger  <aj@suse.de>
10775
10776         * fp-test.c (main): Use ISO C90 prototype.
10777
10778         * version.c: Remove unneded include of ansidecl.h.
10779
10780         * cgraph.h: Convert prototypes to ISO C90.
10781         * cgraph.c: Likewise.
10782         * fix-header.c: Likewise.
10783         * ra.h: Likewise.
10784         * protoize.c: Likewise.
10785
10786 2003-07-12  Jan Hubicka  <jh@suse.cz>
10787
10788         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
10789         warning.
10790
10791 2003-07-12  Jan Hubicka  <jh@suse.cz>
10792                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10793
10794         * cgraph.c (cgraph_max_uid): New global variable.
10795         (cgraph_node): Set uid field.
10796         (create_edge): Keep inline flags consistent.
10797         (dump_cgraph): Dump more info.
10798         * cgraph.h (struct cgraph_local_info): Remove inline_many and
10799         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
10800         (struct cgraph_global_info): Add insns, calls, cloned_times,
10801         will_be_output.
10802         (struct cgraph_node): Add uid.
10803         (struct cgraph_edge): Add inline_call.
10804         (cgraph_max_uid, cgraph_inline_p): Declare.
10805         * cgraph.c: Include params.h and fibheap.h
10806         (cgraph_mark_functions_to_inline_once): Kill.
10807         (INSNS_PER_CALL): New constant.
10808         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
10809         static variables.
10810         (cgraph_finalize_function): Do not analyze inlining.
10811         (cgraph_finalize_compilation_unit): Set inlining attributes.
10812         (cgraph_mark_functions_to_output): More consistency checks.
10813         (cgraph_optimize_function): Set current_function_decl to NULL.
10814         (cgraph_expand_function): Use new inline flags.
10815         (cgraph_postorder): Expand from cgraph_expand_functions.
10816         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
10817         (cgraph_inlined_into, cgraph_inlined_callees,
10818         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
10819         cgraph_mark_inline, cgraph_check_inline_limits,
10820         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
10821         cgraph_decide_inlining, cgraph_inline_p): New functions.
10822         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
10823         PARAM_INLINE_UNIT_GROWTH): New parameters.
10824         * tree-inline.c (struct inline_data): New field current_decl.
10825         (expand_call_inline): Avoid forward declarations; use
10826         inlinable_function_p.
10827         (optimize_inline_calls): Set id.current_decl.
10828
10829 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
10830
10831         * configure.in: Remove wrongly added definition of
10832         local_prefix.
10833         * configure: Regenerate.
10834
10835 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
10836
10837         * rtl.def (NOTE): Do not use padding.
10838
10839 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
10840
10841         * doc/install.tex: Update required binutils for i?86-*-linux*
10842
10843 2003-07-11  Richard Henderson  <rth@redhat.com>
10844
10845         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
10846
10847 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
10848
10849         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
10850         TRANSLATION_UNIT_DECL as top_level.
10851
10852 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
10853
10854         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
10855         then fall back to cmpstrM.
10856         * builtins.c (expand_builtin_memcmp): Likewise.
10857         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
10858         (s390_expand_cmpmem): ... this.
10859         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
10860         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
10861         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
10862         to s390_expand_cmpmem.
10863         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
10864         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
10865         to cmpmem*.
10866         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
10867         cmpstr* patterns.
10868         * doc/md.texi (cmpstrM): Describe as String compare insn, not
10869         Block compare insn.
10870         (cmpmemM): Add.
10871
10872 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
10873
10874         * config/i386/freebsd.h (SET_ASM_OP): Remove.
10875         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
10876         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
10877          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
10878
10879 2003-07-11  Richard Henderson  <rth@redhat.com>
10880
10881         * function.c (assign_parms): Don't recombine complex args if
10882         fnargs is unchanged from orig_fnargs.
10883         (split_complex_args): Return args without complex before copying.
10884         Re-layout the modified parameters.
10885
10886 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
10887
10888         * regclass.c (choose_hard_reg_mode): Add third argument.
10889         Changed all callers.
10890         * rtl.h (choose_hard_reg_mode): Update declaration.
10891         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
10892         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
10893
10894 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
10895
10896         * c-decl.c (finish_decl): Handle 'used' here...
10897         * cgraphunit.c (cgraph_finalize_function): ... and here ...
10898         * c-common.c: (handle_used_attribute): ... not here.
10899
10900         * configure.in (onstep): Support --enable-intermodule.
10901         * Makefile.in (OBJS-common): New.
10902         (OBJS-md): New.
10903         (OBJS-archive): New.
10904         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
10905         (OBJS-onestep): New.
10906         (libbackend.a): Support @onestep@.
10907         (libbackend.o): New.
10908         * configure: Regenerate.
10909
10910         * c-common.h (c_reset_state): New prototype.
10911         (c_parse_file): New prototype.
10912         (finish_file): Move prototype from c-tree.h.
10913         * c-decl.c: Include <hashtab.h>.
10914         (builtin_decls): New.
10915         (current_file_decl): New.
10916         (duplicate_decls): Add extra parameter. Change all callers.  Don't
10917         output duplicate common symbols.
10918         (link_hash_hash): New.
10919         (link_hash_eq): New.
10920         (poplevel): Handle popping of the top level.
10921         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
10922         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
10923         (pushdecl_top_level): Likewise.
10924         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
10925         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
10926         (finish_decl): Handle TRANSLATION_UNIT_DECL.
10927         (merge_translation_unit_decls): New.
10928         (c_write_global_declarations): New.
10929         (c_reset_state): New.
10930         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
10931         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
10932         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
10933         TRANSLATION_UNIT_DECL.
10934         (c_objc_common_finish_file): Call merge_translation_unit_decls.
10935         * c-opts.c (in_fnames): Rename from in_fname.
10936         (c_common_decode_option): Handle multiple input filenames.
10937         (c_common_post_options): Likewise.
10938         (c_common_parse_file): Likewise; also, call c_parse_file rather than
10939         yyparse.
10940         * c-parse.in: Move cleanup code to c_parse_file.
10941         (free_parser_stacks): Move contents to c_parse_file.
10942         (c_parse_file): New.
10943         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
10944         for integer types.
10945         (C_DECL_FILE_SCOPE): New.
10946         (finish_file): Move prototype to c-common.h.
10947         (merge_translation_unit_decls): New prototype.
10948         (comptypes): Add extra parameter to prototype.
10949         (c_write_global_declarations): New prototype.
10950         * c-typeck.c (tagged_types_tu_compatible_p): New.
10951         (function_types_compatible_p): Add extra parameter, change all callers.
10952         (type_lists_compatible_p): Likewise.
10953         (comptypes): Likewise.
10954         (struct tagged_tu_seen): New.
10955         (tagged_tu_seen_base): New.
10956         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
10957         (c_mark_addressable): Remove #if 0 code.
10958         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
10959         comment explaining why it shouldn't have to.
10960         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
10961         options.
10962         * cppinit.c (cpp_read_next_file): New.
10963         (cpp_read_main_file): Use it.
10964         * cpplib.c (undefine_macros): New.
10965         (cpp_undef_all): New.
10966         * cpplib.h (cpp_read_next_file): Prototype.
10967         (cpp_undef_all): Prototype.
10968         * langhooks-def.h (write_global_declarations): Remove prototype.
10969         * toplev.h (write_global_declarations): Add prototype.
10970         * tree.c (decl_type_context): Use switch statement, handle
10971         TRANSLATION_UNIT_DECL.
10972         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
10973         (TRANSLATION_UNIT_DECL): New kind of tree.
10974         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
10975         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
10976         * doc/invoke.texi: Make attempt to document new functionality.
10977
10978         2003-05-19  Per Bothner <bothner@apple.com>
10979
10980         * gcc.c (combine_inputs): New.
10981         (process_command): Set combine_inputs.
10982         (do_spec_1): Handle combine_inputs.
10983         (main): Likewise.
10984
10985 2003-07-10  James E Wilson  <wilson@tuliptree.org>
10986
10987         PR optimization/9745
10988         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
10989         loop_insn_emit_before.
10990         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
10991
10992 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
10993
10994         * cppcharset.c: Fix comment.
10995         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
10996         (EILSEQ): #define to EINVAL if not already defined.
10997         (convert_using_iconv): #if out when !HAVE_ICONV.
10998         (init_iconv_desc): Handle !HAVE_ICONV here...
10999         (cpp_init_iconv): ...not here.
11000
11001 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
11002
11003         * common.opt: More --help messages.
11004         * opts.c (print_help): Use puts().
11005         * toplev.c (f_options): Remove help text.
11006         (display_help): Don't dump f_options.
11007
11008 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
11009
11010         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
11011         Move i?86-*-interix* to the don't-fix list.
11012         * fixinc/fixinc.interix: Delete with extreme prejudice.
11013
11014 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
11015
11016         PR bootstrap/10758
11017         * doc/install.texi: Document requirements for ia64-*-hpux* target.
11018
11019 2003-07-10  Roger Sayle  <roger@eyesopen.com>
11020
11021         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
11022
11023 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
11024
11025         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
11026         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
11027         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
11028         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
11029         convert_no_conversion, convert_using_iconv): New functions.
11030         (APPLY_CONVERSION): New macro.
11031         (struct conversion, conversion_tab): New data structure.
11032         (init_iconv_desc): Check conversion_tab for a custom conversion
11033         primitive before trying to use iconv.
11034         (convert_cset): Deleted.
11035         (cpp_init_iconv): Use UTF- terminology, not UCS-.
11036         (_cpp_destroy_iconv): Update to match.
11037         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
11038         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
11039         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
11040         (_cpp_interpret_string_notranslate): New function, moved here
11041         from cpplib.c.
11042
11043         * cpphash.h (convert_f, struct cset_converter): New types.
11044         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
11045         are now struct cset_converter, not bare iconv_t.
11046         Update prototypes.
11047         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
11048         all callers changed.
11049
11050 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
11051
11052         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
11053         to opts.sh command line.
11054         * opts.sh: Write to temporary files with a move-if-change at the end.
11055
11056 2003-07-10  Denis Chertykov  <denisc@overta.ru>
11057             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11058
11059         * combine.c (gen_binary): Handle the CLOBBER rtx and
11060         don't build a binary operation with it.
11061
11062 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11063
11064         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
11065         store_killed_after, store_killed_before): Keep track of the correct
11066         dependency function to use.
11067
11068 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
11069         * toplev.c (do_compile): Don't try to open dump files before
11070         lang_dependent_init initializes dump_base_name.
11071
11072 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11073
11074         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
11075         Use ARRAY_SIZE.
11076         * config/frv/frv.c (frv_expand_builtin): Likewise.
11077         * config/sh/sh.c (sh_media_init_builtins): Likewise.
11078
11079 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
11080
11081         PR c++/10032
11082         * doc/invoke.texi (C++ Dialect Options): Change documentation of
11083         -fpermissive.
11084
11085 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
11086
11087         * tm.texi (RETURN_ADDR_OFFSET): Document.
11088
11089 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
11090
11091         * gcov-io.h: Update documentation.
11092         (GCOV_UNSIGNED2STRING): New.
11093         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
11094         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
11095         GCOV_TAG_SUMMARY_LENGTH): Adjust.
11096         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
11097         GCOV_TAG_COUNTER_NUM): New.
11098         (GCOV_BLOCK_SIZE): Number of words.
11099         (gcov_var): Adjust buffer type.
11100         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
11101         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
11102         count, not byte count.
11103         (gcov_open): Adjust overread init.
11104         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
11105         gcov_write_string, gcov_write_tag, gcov_write_length,
11106         gcov_write_tag_length): Adjust.
11107         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
11108         (gcov_sync, gcov_seek): Adjust.
11109         * gcov-dump.c (print_usage): Show gcc version only.
11110         (dump_file): Use GCOV_UNSIGNED2STRING.
11111         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
11112         * gcov.c (print_version): Show gcc version only.
11113         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
11114         GCOV_TAG_*_NUM macros.
11115         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
11116         GCOV_TAG_COUNTER_LENGTH.
11117         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
11118         Use GCOV_TAG_COUNTER_NUM.
11119         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
11120         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
11121
11122 2003-07-10  Andreas Schwab  <schwab@suse.de>
11123
11124         * gcov-dump.c (dump_file): Fix missing address operator.
11125
11126 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
11127
11128         PR c/11449
11129         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
11130         of HOST_WIDE_INT.
11131         (fold_single_bit_test): If sign_bit_p() fails, assume that the
11132         bit being tested is not a sign bit.
11133
11134 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
11135
11136         * config/h8300/h8300.md (a peephole2): New.
11137
11138 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
11139
11140         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
11141         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
11142         from ld-linux.so.2 to ld.so.1.
11143         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
11144         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
11145         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
11146         nor -Wl,-rpath-link.
11147         (LIB_SPEC): Add -rpath-link if !static.
11148         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
11149         * config/mn10300/mn10300.c (mn10300_protect_label): New
11150         variable.
11151         * config/mn10300/linux.h (PRINT_OPERAND,
11152         PRINT_OPERAND_ADDRESS): Set it during their execution.
11153         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
11154         mn10300_protect_label is set.
11155         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
11156         -Wl,-rpath-link.
11157         (LIB_SPEC, STARTFILE_SPEC): Define.
11158         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
11159         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
11160         FLOAT_BIT_ORDER_MISMATCH.
11161         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
11162         * config.gcc (am33_2.0-*-linux*): Added.
11163         * config/mn10300/linux.h: New.
11164         * config/mn10300/t-linux: New.
11165
11166 2003-07-10  Andreas Jaeger  <aj@suse.de>
11167
11168         * fold-const.c: Properly wrap prototypes.
11169
11170 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
11171
11172         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
11173         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
11174         Moved from...
11175         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
11176         * config/mn10300/mn10300.h: GTY-declare it.
11177         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
11178         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
11179         prototype.  Use incoming RTL argument.
11180         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
11181         * config/mn10300/mn10300.md (int_label): Move C statements...
11182         (GOTaddr2picreg): ... here.
11183         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
11184         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
11185         * config/mn10300/mn10300.c (mn10300_encode_section_info):
11186         ... here.  New function.
11187         (TARGET_ENCODE_SECTION_INFO): Define to it.
11188         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
11189         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
11190         pattern name.
11191         (mn10300_loadPC): Define as insn splittable after reload.
11192         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
11193         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
11194         be defined in .rodata even in PIC, now that the assembler
11195         supports that.
11196         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
11197         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
11198         symbol take an underscore prefix.
11199         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
11200         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
11201         legitimize_pic_address): Declare.
11202         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
11203         the PIC register as fixed.
11204         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
11205         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
11206         PIC.
11207         (LEGITIMATE_PIC_OPERAND_P): Define.
11208         (PIC_OFFSET_TABLE_REGNUM): Define.
11209         (GOT_SYMBOL_NAME): Define.
11210         (SYMBOLIC_CONST_P): Define.
11211         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
11212         symbols.
11213         (MN10300_GLOBAL_P): Test it.
11214         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
11215         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
11216         * config/mn10300/mn10300.c (print_operand): Handle unspec.
11217         (expand_prologue): Set PIC register.
11218         (call_address_operand): Don't match SYMBOL_REFs in PIC.
11219         (legitimize_address): Call legitimize_pic_address.
11220         (legitimize_pic_address): New fn.
11221         (legitimate_pic_operand_p): New fn.
11222         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
11223         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
11224         UNSPEC_PLT): New constants.
11225         (pop_pic_reg): New insn.
11226         (movsi): Adjust non-PIC addresses.
11227         (builtin_setjmp_receiver): Restore the PIC register.
11228         (casesi): New insn.
11229         (call): Adjust non-PIC addresses.
11230         (int_label, GOTaddr2picreg): New expands.
11231         (am33_loadPC): New insn.
11232         (mn10300_loadPC): New expand.
11233         (call_next_insn): New insn.
11234         (add_GOT_to_pic_reg): New expand.
11235         (symGOT2reg, symGOT2reg_i): New expands.
11236         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
11237         (sym2PIC, sym2PLT): New expands.
11238
11239 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
11240
11241         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
11242         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
11243         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
11244         to flag_unsafe_math_optimizations.
11245         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
11246         * config/mn10300/mn10300.c (expand_prologue): Mark
11247         FP-register-saving insns as frame-related.
11248         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
11249         * config/mn10300/mn10300.c
11250         (mn10300_get_live_callee_saved_regs): Don't search past
11251         LAST_EXTENDED_REGNUM.
11252         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
11253         * config/mn10300/mn10300.md: Remove excessive line breaks from
11254         `@' output patterns that were accounted as additional
11255         alternatives.
11256         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
11257         Re-introduce changes accidentally removed in Richard Sandiford's
11258         2000-12-05's patch.
11259         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
11260         Re-instate am33-2 lost in merge from net GCC.
11261         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
11262         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
11263         floating-point registers.
11264         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
11265         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
11266         pessimizations that had gone in on 2000-05-08.
11267         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
11268         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
11269         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
11270         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
11271         operand 0.
11272         * (movhi): Likewise.
11273         * (movsi): Likewise.
11274         * (movsf): Likewise.
11275         * (movdi): Likewise.
11276         * (movdf): Likewise.
11277         2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
11278         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
11279         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
11280         (expand_prologue, expand_epilogue): Save and restore FP regs.
11281         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
11282         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
11283         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
11284         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
11285         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
11286         Do not clobber cc0.
11287         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
11288         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
11289         Discourage the two-argument, longer opcodes.
11290         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
11291         ones.
11292         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
11293         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
11294         * config/mn10300/mn10300.md (cmpsf): New pattern.
11295         (branch): Test mdep.fpCC and output fbCC.
11296         * config/mn10300/mn10300.c (print_operand): Output conditions.
11297         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
11298         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
11299         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
11300         mulsf3, divsf3): Use the `F' constraint for FP values.
11301         * config/mn10300/mn10300.c (const_1f_operand): New function.
11302         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
11303         * config/mn10300/mn10300.md (sqrtsf2): New expand.
11304         (rsqrtsf2): New insn.
11305         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
11306         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
11307         previous check-in.
11308         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
11309         * config/mn10300/mn10300.md (abssf2, negdf2): On
11310         TARGET_AM33_2, expand to...
11311         (abssf2_am33_2, negdf2_am33_2): New insns.
11312         (addsf3, subsf3, mulsf3, divsf3): Likewise.
11313         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
11314         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
11315         movdi, movdf): Added FP regs.
11316         * invoke.texi (-mam33-2, -mno-am33-2): Document.
11317         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
11318         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
11319         New macros.
11320         (REGNO_AM33_2_FP_P): Renamed to...
11321         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
11322         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
11323         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
11324         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
11325         regs from GENERAL_REGS.
11326         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
11327         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
11328         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
11329         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
11330         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
11331         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
11332         as FP_REGS.
11333         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
11334         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
11335         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
11336         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
11337         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
11338         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
11339         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
11340         AM33/2.0 floating-point registers.
11341         (CONDITIONAL_REGISTER_USAGE): Adjust.
11342         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
11343         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
11344         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
11345         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
11346         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
11347         (MULTILIB_DIRNAMES): Likewise.
11348         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
11349         `__AM33_2__' when `-mam33-2' is given.
11350         (TARGET_AM33_2): Define.
11351         (TARGET_SWITCHES): Adjust.
11352         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
11353         when appropriate.
11354
11355 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
11356
11357         * doc/install.texi: Add missing @.
11358
11359 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
11360
11361         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
11362
11363 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
11364
11365         PR/11144
11366         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
11367
11368 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
11369
11370         PR bootstrap/11043
11371         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
11372         "x-crtfini.o" with "crtinit.o", "crtfini.o".
11373
11374         * fixinc/inclhack.def (limits_ifndefs): Add select test.
11375         * fixinc/fixincl.x: Rebuild.
11376
11377         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
11378         * fixinc/fixincl.x: Rebuild.
11379
11380 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
11381
11382         * doc/install.texi (Configuration): Document the valgrind option
11383         to --enable-checking.
11384
11385 2003-07-09  Jan Hubicka  <jh@suse.cz>
11386
11387         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
11388
11389 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11390
11391         * c-lex.c (cb_ident): Cast cstr.text to const char *.
11392
11393 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
11394
11395         * gcov-io.h: Update documentation.
11396         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
11397         GCOV_NOTE_MAGIC.
11398         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
11399         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
11400         (struct gcov_var): Change buffer's type. Add endian flag.
11401         (gcov_open): Remove mode in libgcov.
11402         (gcov_magic): Prototype.
11403         * gcov-io.c (from_file): New.
11404         (gcov_open): Clear endian flag.
11405         (gcov_magic): New.
11406         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
11407         pointers.
11408         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
11409         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
11410         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
11411         * gcov-iov.c (main): Correct cast.
11412         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
11413         conversion.
11414         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
11415         (coverage_init): Use GCOV_NOTE_SUFFIX.
11416         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
11417         Rename to gcov_version, and return flag.
11418         (gcov_exit): Use gcov_version.
11419         (__gcov_init): Use gcov_version.
11420         * Makefile.in (coverageexts): Update.
11421         * gcov.c (print_version): Remove endianness conversion.
11422         (create_file_names): Use GCOV_NOTE_SUFFIX.
11423         (read_graph_file): Use gcov_magic.
11424         (read_count_file): Likewise.
11425         * gcov-dump.c (dump_file): Remove endianness conversion, use
11426         gcov_magic.
11427
11428 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
11429
11430         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
11431         coverage is on.
11432         * configure: Regenerated.
11433         * Makefile.in (ALL_CFLAGS): Correct its comment.
11434
11435 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
11436
11437         * fold-const.c (make_range): Do not access operand 1 for a
11438         zero-operand operator.
11439
11440 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
11441
11442         * toplev.c (warn_dummy, W_options): Die.
11443         (display_help): Don't print W_options.
11444         * common.opt: Add W_options help from toplev.c.
11445
11446 2003-07-09  Andreas Jaeger  <aj@suse.de>
11447
11448         * opts.c (wrap_help): Only pass int arguments as arguments to
11449         printf's '*' modifier.  Change argument of function.
11450
11451 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
11452
11453         * doc/invoke.texi: Fix misspelling of "@item".
11454
11455 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
11456
11457         * config/i386/i386.md: Remove an old comment about
11458         NOTICE_UPDATE_CC.
11459
11460 2003-07-09  Jan Hubicka  <jh@suse.cz>
11461
11462         * cgraph.c (cgraph_node_name): New function.
11463         (dump_cgraph): Use it.
11464         * cgraph.h (cgraph_dump_file): Declare.
11465         (cgraph_node_name): Declare.
11466         * cgraphunit.c: Include timevar.h
11467         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
11468         (cgraph_optimize_function): Use TV_INTEGRATION.
11469         (cgraph_mark_local_functions): reorganize dumps.
11470         (cgraph_mark_functions_to_inline_once): Likewise.
11471         (cgraph_optimize): Likewise; use timevar.
11472         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
11473         * toplev.c (dump_file_index): Add DFI_cgraph.
11474         (dump_file_info): Likewise.
11475         (cgraph_dump_file): New global variable.
11476         (do_compile): Open and close cgraph dump.
11477         * invoke.texi (-d): Document new flag; renumber.
11478
11479 2003-07-08  Roger Sayle  <roger@eyesopen.com>
11480
11481         PR c/11370
11482         * calls.c (emit_call_1): Don't bother popping the arguments off of
11483         the stack after a noreturn function call;  The adjustment is dead.
11484         (expand_call): Likewise.
11485
11486 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
11487
11488         * expr.c (MOVE_MAX_PIECES): Move from here...
11489         * defaults.h (MOVE_MAX_PIECES): ... to here.
11490
11491 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
11492
11493         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
11494
11495 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11496
11497         * genattr.c (internal_dfa_insn_code): Don't prototype.
11498         * genattrtab.c (attr_desc): Add `static_p' field.
11499         (expand_units): Make blockage range and ready cost functions
11500         static.
11501         (write_attr_get): Don't add extern prototypes in C file.  Mark
11502         static functions as appropriate.
11503         (find_attr, make_internal_attr): Initialize static_p.
11504         * genattrtab.h (ATTR_STATIC): New macro.
11505         * genautomata.c (output_internal_reset_func): Mark output function
11506         as inline.
11507         (make_internal_dfa_insn_code_attr): Mark output function as static.
11508
11509 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11510
11511         * genattrtab.h: Add new macros for attr `special' flags.
11512         * genattrtab.c (attr_desc): Reorder/resize fields better.
11513         Use attr `special' macros in all calls to make_internal_attr.
11514         * genautomata.c: Likewise.
11515
11516 2003-07-09  Jan Hubicka  <jh@suse.cz>
11517
11518         * c-common.c (c_estimate_num_insns_1): New static function.
11519         (c_estimate_num_insns): New global function.
11520         * c-common.h (DECL_NUM_STMTS): Rename to...
11521         (DECL_ESTIMATED_INSNS): ... this.
11522         (c_estimate_num_insns): Declare.
11523         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
11524         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
11525         * c-semantics.c (add_stmt): Do not account statements.
11526         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
11527         New.
11528         * langhooks.h (lang_hooks_for_tree_inlining): Add
11529         estimate_num_insns
11530         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
11531         to 100.
11532         (max-inline-insns): set to 300.
11533         (min-inline-insns): set to 10.
11534         * tree-inline.c (struct inline_data): Rename inlined_stmts to
11535         inlined-insns.
11536         (INSNS_PER_STMT): Kill.
11537         (inlinable_function_p): Compute and store body size.
11538         (expand_call_inline): Likewise.
11539         (optimize_inline_calls): Likewise.
11540
11541 2003-07-08  James E Wilson  <wilson@tuliptree.org>
11542
11543         PR target/10021
11544         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
11545         loop over new variable t2 instead of t.
11546
11547 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
11548
11549         PR bootstrap/11455
11550         * config/i386/winnt.c: Replace use of error(), warning() with
11551         error_with_decl(), warning_with_decl(),  throughout.
11552
11553 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
11554
11555         * opts.c (wrap_help): Use unsigned int, not size_t.
11556
11557 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
11558
11559         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
11560         as .file/.loc directives are incompatible with linker relaxation.
11561
11562 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
11563
11564         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
11565         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
11566         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
11567         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
11568         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
11569         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
11570         Escape { and } characters which are not part of range expressions.
11571         * fixinc/fixincl.x: Regenerate.
11572         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
11573
11574 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
11575
11576         PR c/1687
11577         * tree-inline.c (find_alloca_call): Use
11578         walk_tree_without_duplicates, instead of walk_tree.
11579         (find_builtin_longjmp_call): Likewise.
11580         * c-objc-common.c (c_cannot_inline_fn): Likewise.
11581         * c-semantics.c (find_reachable_label): Likewise.
11582
11583 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
11584
11585         PR c/11420
11586         * config/i386/i386.c (ix86_check_movabs): New function.
11587         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
11588         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
11589         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
11590
11591 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
11592
11593         * Makefile.in (install-po): Cope with empty CATALOGS.
11594
11595 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
11596
11597         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
11598         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
11599         (SECTION_FUNCTION_TEMPLATE): Delete.
11600         * config/mips/elf.h: As for elf64.h.
11601         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
11602         * config/mips/linux.h: As for elf.h
11603         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
11604         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
11605         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
11606         of in_sdata from current_section_name and current_section_flags.
11607         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
11608         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
11609         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
11610         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
11611         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
11612         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
11613         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
11614         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
11615         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
11616         (override_options): Remove setting of MASK_GPOPT.
11617         (mips_output_external): Use mips_in_small_data_p to check whether a
11618         symbol needs an .extern directive.  Don't emit such directives for
11619         TARGET_EXPLICIT_RELOCS.
11620         (mips_declare_object): Update accordingly.
11621         (mips_select_rtx_section): Call named_section rather than
11622         SMALL_DATA_SECTION.
11623         (mips_select_section): Use default_elf_section_section for everything
11624         except .text string constants.
11625         (mips_in_small_data_p): New function.
11626         (mips_encode_section_info): Remove small data handling.
11627         (mips_unique_section): Delete.
11628         (iris6_section_type_flags): New function.
11629         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
11630
11631 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11632
11633         PR Target/11453
11634         * pa.md: Disparage all mtsar constraints.
11635         (extzv, extv, insv): Don't fail on length of {32|64}.
11636
11637 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
11638
11639         * system.h: Poison MAP_CHARACTER.
11640         * config/i370/i370-protos.h (mvs_map_char): Delete.
11641         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
11642         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
11643         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
11644
11645 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
11646
11647         * toplev.c (randomize): Correct call to time().
11648
11649 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
11650
11651         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
11652         REG_EQUIV notes as well.
11653
11654 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
11655
11656         * doc/md.texi: Fix the description of addmodecc.
11657
11658 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
11659
11660         * Makefile.in (top_builddir): Set to "..", not ".".
11661         (INTLLIBS, INTLDEPS): Delete.
11662         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
11663         (LIBDEPS): Add $(LIBICONV_DEP).
11664         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
11665         (INCLUDES): Replace -I../intl with @INCINTL@.
11666         ($(top_builddir)/intl/libintl.a): Delete rule.
11667         (stage2-start, stage3-start, stage4-start, stageprofile-start,
11668         stagefeedback-start): Use $$ for variable to be evaluated by
11669         shell, not make.
11670         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
11671         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
11672         * aclocal.m4: sinclude ../config/progtest.m4.  Add
11673         contents of lcmessage.m4 from gettext distro.
11674         * configure.in: Check for wchar.h and setlocale.  Set
11675         LIBICONV_DEP to the empty string and substitute it.
11676         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
11677         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
11678         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
11679         in $LIBINTL, to avoid linking it twice.
11680         * configure, config.in: Regenerate.
11681
11682 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
11683
11684         * fixinc/mkfixinc.sh: Remove winnt support.
11685         * fixinc/fixinc.winnt: Delete with extreme prejudice.
11686
11687 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
11688
11689         * Makefile.in: Update.
11690         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
11691         * c.opt: Update documentation.
11692         * common.opt: Add some help text.
11693         * opts.c: Include intl.h.
11694         (wrap_help, print_help): New.
11695         (find_opt, handle_option, common_handle_option): opt_text now
11696         contains the '-'.  Use print_help to output help.
11697         * opts.h (struct cl_option): New member "help".
11698         * opts.sh: Update to handle help text output and to prepend
11699         options with '-'.
11700         * toplev.c (display_help): Remove some help text.
11701
11702 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
11703             Fariborz Jahanian  <fjahanian@apple.com>
11704
11705         * configure.in: Test for PowerPC mfcr field support in assembler.
11706         * config.in, configure: Regenderated.
11707
11708         * config/rs6000/power4.md: Add mfcrf reservation.
11709         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
11710         * config/rs6000/rs6000.c (mfcr_operation): Define.
11711         (print_operand): Add 'Q' case for mfcrf.
11712         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
11713         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
11714         (movcc_internal1): Emit optional field operand for mfcr and set
11715         "type" attribute appropriately.
11716         (mfcr SCC): Likewise.
11717         (movesi_from_cr_one): New.
11718
11719 2003-07-07  Roger Sayle  <roger@eyesopen.com>
11720
11721         * config/i386/i386.md: Correct check-in of incorrect version.
11722
11723 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11724
11725         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
11726         adjacent stdio calls.
11727         * c-decl.c (c_print_identifier): Likewise.
11728         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
11729         * print-rtl.c (print_rtx): Likewise.
11730         * print-tree.c (print_node_brief, print_node): Likewise.
11731         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
11732
11733         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
11734         * config.in, configure: Regenerated.
11735
11736 2003-07-07  Roger Sayle  <roger@eyesopen.com>
11737
11738         PR target/10979
11739         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
11740         Changed to define_expand patterns that copy operand[1] to prevent
11741         it from being clobbered before emitting an atan2?f3_1 insn.
11742         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
11743         patterns that actually specify the behaviour of x87's FPATAN.
11744
11745 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
11746
11747         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
11748         clearing of SYMBOL_FLAG_LOCAL bit.
11749         If vcall_offset fits into signed 16-bit immediate, use
11750         one instruction for both addition and load.
11751
11752 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
11753
11754         * opts.c (common_handle_option): Correct handling of the
11755         -falign- switches that do and don't take an argument.
11756
11757 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
11758
11759         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
11760         today.
11761         (pushhi1_h8300hs): Likewise.
11762
11763 2003-07-07  Andreas Jaeger  <aj@suse.de>
11764
11765         * genextract.c: Convert remaining prototypes to ISO C90.
11766
11767         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
11768         * fold-const.c (fold_single_bit_test): Likewise.
11769         * diagnostic.c (default_diagnostic_finalizer): Likewise.
11770         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
11771
11772         * gengtype.c (write_array): Generate ISO C90 prototypes.
11773
11774         * genflags.c (gen_proto): Generate ISO C90 prototypes.
11775
11776 2003-07-07  Roger Sayle  <roger@eyesopen.com>
11777
11778         PR optimization/11059
11779         * expr.c (can_store_by_pieces): Return true if length is zero.
11780         (store_by_pieces): If length is zero and endp is two, abort,
11781         othwerise, if length is zero and endp is not two, return "to".
11782         (clear_by_pieces): Do nothing if length is zero.
11783         (clear_storage): Do nothing if length is zero.
11784         (store_constructor): Simplify code when size is zero, or the
11785         target has already been cleared.  This avoids emitting a
11786         blockage instruction when initializing empty structures.
11787
11788 2003-07-07  Andreas Jaeger  <aj@suse.de>
11789
11790         * mips-tfile.c: Convert prototypes to ISO C90.
11791         * mips-tdump.c: Convert prototypes to ISO C90.
11792
11793 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
11794
11795         * rtl.h (emit_line_note): Take a location_t.
11796         (emit_line_note_force): Remove.
11797         (set_file_and_line_for_statement): Take a location_t.
11798         * tree.g (emit_line_note): Take a location_t.
11799         * emit-rtl.c (emit_line_note): Take a location_t.
11800         (emit_line_note_force): Remove.
11801         * function.c (init_function_start): Adjust emit_line_note call.
11802         (expand_function_end): Use force_next_line_note, not
11803         emit_line_note_force.
11804         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
11805         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
11806         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
11807         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
11808         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
11809         genrtl_continue_stmt, genrtl_switch_stmt,
11810         genrtl_asm_stmt): Likewise.
11811         * expr.c (expand_expr): Likewise.
11812         * integrate.c (expand_inline_function): Likewise.
11813         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
11814         (expand_decl_init): Adjust emit_line_note call.
11815
11816 2003-07-07  Dale Johannesen  <dalej@apple.com>
11817
11818         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
11819
11820 2003-07-07  Andreas Jaeger  <aj@suse.de>
11821
11822         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
11823         * config/i386/i386.c: Likewise.
11824
11825 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
11826
11827         * config/h8300/h8300.md: Use gen_int_mode instead of
11828         GEN_INT (trunc_int_for_mode (...)).
11829
11830 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
11831
11832         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
11833         2 bytes and then subtract 2 from the stack pointer.
11834         (pushhi1_h8300hs): Likewise.
11835
11836 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
11837
11838         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
11839         -frandom-seed.
11840         * configure: Regenerated.
11841         * Makefile.in: Remove extraneous comment.
11842         * toplev.c (randomize): Protect against potential multiple calls.
11843         * doc/invoke.texi (-frandom-seed): Document use for in coverage
11844         files.
11845
11846 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11847             Eric Botcazou  <ebotcazou@libertysurf.fr>
11848
11849         PR optimization/11198
11850         * alias.c (objects_must_conflict_p): Return 1 if the types have
11851         the same alias set, not if the alias sets only conflict.
11852
11853 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
11854
11855         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
11856         (convert_cset): Change inbuf to type ICONV_CONST char.
11857         * Makefile.in (LIBS): Add LIBICONV.
11858
11859         * doc/invoke.texi (-falign-functions): Document that
11860         when n is zero then a machine-dependent default is used.
11861         (-falign-labels): Document that when n is zero then a
11862         machine-dependent default is used and that -falign-labels =1
11863         is equivalent to -fno-align-labels.
11864         (-falign-loops): Likewise.
11865         (-falign-jumps): Likewise.
11866
11867 2003-07-06  Art Haas  <ahaas@airmail.net>
11868
11869         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
11870         initializer syntax.
11871
11872 2003-07-06  James E Wilson  <wilson@tuliptree.org>
11873
11874         PR optimization/9812
11875         * rtl.h (mem_for_const_double): Delete prototype.
11876         * varasm.c (mem_for_const_double): Delete function.
11877         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
11878         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
11879         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
11880         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
11881         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
11882         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
11883         comment about confused support for XFmode constants.
11884
11885 2003-07-07  Jan Hubicka  <jh@suse.cz>
11886
11887         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
11888
11889 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
11890
11891         * config/h8300/h8300.c: Fix comment typos.
11892         * config/h8300/h8300.md: Likewise.
11893         * config/i386/athlon.md: Likewise.
11894         * config/i386/i386.c: Likewise.
11895         * config/i386/pentium.md: Likewise.
11896         * config/ia64/ia64.c: Likewise.
11897         * config/ia64/itanium1.md: Likewise.
11898         * config/ia64/itanium2.md: Likewise.
11899         * config/m32r/m32r.md: Likewise.
11900         * config/m68hc11/m68hc11.c: Likewise.
11901         * config/mcore/mcore.c: Likewise.
11902         * config/mips/sr71k.md: Likewise.
11903         * config/mips/t-iris5-as: Likewise.
11904         * config/mmix/mmix.h: Likewise.
11905         * config/ns32k/ns32k.h: Likewise.
11906         * config/ns32k/NOTES: Fix a typo.
11907
11908 2003-07-06  Andreas Jaeger  <aj@suse.de>
11909
11910         * stmt.c: Convert remaining prototypes to ISO C90.
11911         * cfglayout.c: Likewise.
11912         * dbxout.c: Likewise.
11913         * gcc.c: Likewise.
11914         * genemit.c: Likewise.
11915
11916         * basic-block.h: Convert prototypes to ISO C90.
11917         * c-parse.in: Likewise.
11918         * c-pragma.h: Likewise.
11919         * c-typeck.c: Likewise.
11920         * cfghooks.h: Likewise.
11921         * cfgloopanal.c: Likewise.
11922         * dbxout.h: Likewise.
11923         * debug.h: Likewise.
11924         * dwarf2asm.h: Likewise.
11925         * gcov.c: Likewise.
11926         * gengtype-lex.l: Likewise.
11927         * sched-int.h: Likewise.
11928         * timevar.c: Likewise.
11929
11930 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
11931
11932         * c-common.h (c_comon_handle_filename,
11933         c_common_missing_arguement): New.
11934         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
11935         LANG_HOOKS_MISSING_ARGUMENT): New.
11936         * c-opts.c (missing_arg): Rename c_common_missing_argument,
11937         update to be an appropriate langhook.
11938         (c_common_handle_option): Don't handle filenames.
11939         (c_common_handle_filename): New.
11940         * hooks.c (hook_void_constcharptr,
11941         hook_bool_constcharptr_size_t_false): New.
11942         * hooks.h (hook_void_constcharptr,
11943         hook_bool_constcharptr_size_t_false): New.
11944         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
11945         LANG_HOOKS_MISSING_ARGUMENT): New.
11946         (LANG_HOOKS_INITIALIZER): Update.
11947         * langhooks.h (struct lang_hooks): Add handle_filename and
11948         missing_argument.
11949         * opts.c (handle_option): Don't handle filenames here, but ...
11950         (handle_options): ... here.
11951         (common_handle_option): Don't handle missing arguments here.
11952         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
11953         LANG_HOOKS_MISSING_ARGUMENT): New.
11954
11955 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
11956
11957         * Makfile.in: Remove traces of mbchar.
11958         * c-parse.in (MULTIBYTE_CHARS): Remove.
11959         * config.in (MULTIBYTE_CHARS): Remove.
11960         * configure: Remove --enable-mbchar.
11961         * configure.in: Remove --enable-mbchar.
11962         * mbchar.c, mbchar.h: Remove.
11963         * system.h: Poison MULTIBYTE_CHARS.
11964         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
11965         * config/linux.h (MULTIBYTE_CHARS): Remove.
11966         * config/svr4.h (MULTIBYTE_CHARS): Remove.
11967         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
11968
11969 2003-07-06  Andreas Jaeger  <aj@suse.de>
11970
11971         * varray.c (varray_check_failed): Fix typo.
11972
11973         * unroll.c: Convert prototypes to ISO C90.
11974         * varasm.c: Likewise.
11975         * varray.c: Likewise.
11976         * varray.h: Likewise.
11977         * vmsdbgout.c: Likewise.
11978         * xcoffout.c: Likewise.
11979         * xcoffout.h: Likewise.
11980
11981 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
11982
11983         * gcov-io.h: Add a local time stamp.
11984         (struct gcov_info): Add stamp field.
11985         (gcov_truncate): New.
11986         * coverage.c (read_counts_file): Skip the stamp.
11987         (coverage_begin_output): Write the stamp.
11988         (build_gcov_info): Declare and init the stamp.
11989         (coverage_finish): Only unlink data file, if stamp is zero.
11990         * gcov-dump.c (dump_file): Dump the stamp.
11991         * gcov.c (bbg_stamp): New.
11992         (release_structures): Clear bbg_stamp.
11993         (read_graph_file): Read stamp.
11994         (read_count_file): Check stamp.
11995         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
11996
11997 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
11998
11999         * tree.h (default_flag_random_seed): Remove.
12000         * toplev.h (local_tick): Declare.
12001         * tree.c (flag_random_seed, default_flag_random_seed): Move to
12002         toplev.c.
12003         (append_random_chars): Don't call default_flag_random_seed.
12004         * toplev.c (flag_random_seed): Define here. Set local_tick.
12005         (local_tick): Define.
12006         (randomize): New, moved from tree.c.
12007         (print_switch_values): Adjust.
12008         (toplev_main): Call randomize.
12009
12010 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
12011
12012         * tree.h (crc32_string): Declare.
12013         * tree.c (append_random_chars): Remove.
12014         (crc32_string): New.
12015         (get_file_function_name_long): Use crc32_string here.
12016
12017 2003-07-06  Andreas Jaeger  <aj@suse.de>
12018
12019         * gcc.c: Convert prototypes to ISO C90.
12020         * gcc.h: Likewise.
12021         * gcov-dump.c: Likewise.
12022         * gcov-iov.c: Likewise.
12023         * gcse.c: Likewise.
12024         * genattrtab.h: Likewise.
12025         * ggc.h: Likewise.
12026         * global.c: Likewise.
12027         * graph.c: Likewise.
12028         * graph.h: Likewise.
12029         * hosthooks.h: Likewise.
12030         * hooks.h: Likewise.
12031         * hooks.c: Likewise.
12032         * hashtable.h: Likewise.
12033         * hashtable.c: Likewise.
12034         * haifa-sched.c: Likewise.
12035         * integrate.h: Likewise.
12036         * integrate.c: Likewise.
12037         * input.h: Likewise.
12038         * ifcvt.c: Likewise.
12039         * jump.c: Likewise.
12040         * langhooks-def.h: Likewise.  Add extern to prototypes.
12041         * langhooks.c: Likewise.
12042         * langhooks.h: Likewise.
12043         * lcm.c: Likewise.
12044         * local-alloc.c: Likewise.
12045         * loop-init.c: Likewise.
12046         * loop-unroll.c: Likewise.
12047         * loop-unswitch.c: Likewise.
12048         * loop.c: Likewise.
12049         * loop.h: Likewise. Add extern to prototypes.
12050         * machmode.h: Likewise.
12051         * main.c: Likewise.
12052         * mbchar.c: Likewise.
12053         * mbchar.h: Likewise.
12054         * mkdeps.c: Likewise.
12055         * mkdeps.h: Likewise.
12056         * optabs.c: Likewise.
12057         * optabs.h: Likewise.
12058         * output.h: Likewise.
12059         * gccspec.c: Likwise.
12060         * postreload.c: Likewise.
12061         * prefix.c: Likewise.
12062         * prefix.h: Likewise.
12063         * print-rtl.c: Likewise.
12064         * print-tree.c: Likewise.
12065         * profile.c: Likewise.
12066         * read-rtl.c: Likewise.
12067         * real.c: Likewise.
12068         * real.h: Likewise.
12069         * recog.c: Likewise.
12070         * recog.h: Likewise.
12071         * reg-stack.c: Likewise.
12072         * regclass.c: Likewise.
12073         * regmove.c: Likewise.
12074         * regrename.c: Likewise.
12075         * regs.h: Likewise.
12076         * reload.c: Likewise.
12077         * reload.h: Likewise.
12078         * reload1.c: Likewise.
12079         * reorg.c: Likewise.
12080         * resource.c: Likewise.
12081         * resource.h: Likewise.
12082         * rtl-error.c: Likewise.
12083         * rtl.c: Likewise.
12084         * rtl.h: Likewise.
12085         * rtlanal.c: Likewise.
12086         * sbitmap.c: Likewise.
12087         * sbitmap.h: Likewise.
12088         * scan-decls.c: Likewise.
12089         * scan.c: Likewise.
12090         * sched-deps.c: Likewise.
12091         * sched-ebb.c: Likewise.
12092         * sched-int.h: Likewise.
12093         * sched-rgn.c: Likewise.
12094         * sched-vis.c: Likewise.
12095         * sibcall.c: Likewise.
12096         * simplify-rtx.c: Likewise.
12097         * sreal.c: Likewise.
12098         * sreal.h: Likewise.
12099         * ssa-ccp.c: Likewise.
12100         * ssa-dce.c: Likewise.
12101         * ssa.c: Likewise.
12102         * ssa.h: Likewise.
12103         * stack.h: Likewise.
12104         * stmt.c: Likewise.
12105         * stor-layout.c: Likewise.
12106         * stringpool.c: Likewise.
12107         * target.h: Likewise.
12108         * timevar.c: Likewise.
12109         * timevar.h: Likewise.
12110         * tlink.c: Likewise.
12111         * tracer.c: Likewise.
12112         * tree-inline.c: Likewise.
12113         * tree-inline.h: Likewise.
12114         * tree.c: Likewise.
12115         * tree.h: Likewise.
12116
12117 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
12118
12119         * combine.c (nonzero_bits1): Fix a warning.
12120
12121 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
12122
12123         * config/h8300/h8300.c (compute_mov_length): Correct the
12124         length of loading CONST0_RTX (SFmode).
12125
12126 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
12127
12128         * toplev.c (output_clean_symbol_name): Remove.
12129         * toplev.h (output_clean_symbol_name): Remove.
12130         * config/alpha/alpha.c (unicosmk_output_module_name): Use
12131         lbasename & clean_symbol_name.
12132
12133 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
12134
12135         * ggc.h: Follow spelling conventions.
12136         * config/i386/i386.c: Likewise.
12137         * config/i386/winnt.c: Likewise.
12138         * config/rs6000/rs6000.c: Likewise.
12139
12140 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
12141
12142         * bt-load.c: Fix comment typos.
12143         * c-incpath.c: Likewise.
12144         * cfg.c: Likewise.
12145         * cfgcleanup.c: Likewise.
12146         * cfgloop.h: Likewise.
12147         * cfgloopmanip.c: Likewise.
12148         * cfgrtl.c: Likewise.
12149         * diagnostic.h: Likewise.
12150         * dwarfout.c: Likewise.
12151         * emit-rtl.c: Likewise.
12152         * et-forest.c: Likewise.
12153         * et-forest.h: Likewise.
12154         * expr.c: Likewise.
12155         * gcse.c: Likewise.
12156         * genattr.c: Likewise.
12157         * jump.c: Likewise.
12158         * langhooks.h: Likewise.
12159         * local-alloc.c: Likewise.
12160         * loop-unroll.c: Likewise.
12161         * loop-unswitch.c: Likewise.
12162         * ra-build.c: Likewise.
12163         * regclass.c: Likewise.
12164         * regmove.c: Likewise.
12165         * rtl.def: Likewise.
12166         * rtlanal.c: Likewise.
12167         * sched-ebb.c: Likewise.
12168         * sched-rgn.c: Likewise.
12169         * simplify-rtx.c: Likewise.
12170         * ssa.c: Likewise.
12171         * tracer.c: Likewise.
12172         * tree.c: Likewise.
12173
12174 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
12175
12176         * cppcharset.c: Use the correct return type for the fallback iconv
12177         macro.
12178
12179 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12180
12181         Blame to Jan Hubicka  <jh@suse.cz>
12182         * cfglayout.c (record_effective_endpoints): Split insns before
12183         first basic block correctly.
12184
12185 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12186
12187         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
12188         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
12189         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
12190
12191 2003-07-05  Andreas Jaeger  <aj@suse.de>
12192
12193         * genattrtab.c (write_attr_get): Revert part of last patch to
12194         always write out a prototype.
12195
12196         * genemit.c (gen_split): Readd lost unused attributes in last
12197         patch.
12198
12199 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12200
12201         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
12202         different from header.
12203
12204 2003-07-05  Andreas Schwab  <schwab@suse.de>
12205
12206         * config/m68k/m68k.c: Remove code protected by CRDS.
12207         * config/m68k/m68k.md: Likewise.
12208
12209 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
12210
12211         PR driver/11417
12212         * c-opts.c (permit_fortran_options): New.
12213         (c_common_init_options): Accept fortran front end options if
12214         it looks like we might be preprocessing Fortran.
12215         (c_common_handle_option): Don't reject switch if permit_fotran_options.
12216
12217 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12218
12219         * genattr.c (internal_dfa_insn_code): Output prototype.
12220         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
12221         * genautomata.c: Likewise.
12222         * genconditions.c: Likewise.
12223         * genemit.c: Likewise.
12224         * genextract.c: Likewise.
12225         * gengenrtl.c: Likewise.
12226         * gengtype.c: Likewise.
12227         * genopinit.c: Likewise.
12228         * genoutput.c: Likewise.
12229         * genpeep.c: Likewise.
12230         * genrecog.c: Likewise.
12231
12232 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
12233
12234         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
12235         (struct cpp_options): Add narrow_charset, wide_charset,
12236         bytes_big_endian fields.  Remove EBCDIC field.
12237         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
12238
12239         * cpphash.h: Include <iconv.h> if we have it, otherwise
12240         provide a dummy definition of iconv_t.
12241         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
12242         (_cpp_valid_ucn): Update prototype.
12243         (_cpp_destroy_iconv): New prototype.
12244
12245         * doc/cpp.texi: Document character set handling.
12246         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
12247         * doc/extend.texi: Delete entire section on multiline strings.
12248         Rewrite section on __FUNCTION__ etc now that these are
12249         variables in C.
12250
12251         * cppucnid.tab, cppucnid.pl: New files.
12252         * cppucnid.h: New generated file.
12253         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
12254         (iconv_open, iconv, iconv_close): Provide dummy definitions
12255         if !HAVE_ICONV.
12256         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
12257         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
12258         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
12259         cpp_interpret_string, narrow_str_to_charconst,
12260         wide_str_to_charconst): New.
12261         (ucn_valid_in_identifier): Use a binary search through the
12262         ucnranges table defined in cppucnid.h, not a long chain of if
12263         statements.
12264         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
12265         character names are only valid in C++ and C99" to a warning.
12266         Issue the "meaning of \[uU] is different in traditional C"
12267         warning here.  Take care not to let iconv see an invalid UCS
12268         value if we get a malformed UCN.  Issue an error if we don't
12269         have iconv.
12270         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
12271         cpp_interpret_string to do the heavy lifting.
12272
12273         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
12274         narrow_charset, wide_charset fields of options structure.
12275         (cpp_destroy): Call _cpp_destroy_iconv.
12276         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
12277         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
12278         (cpp_interpret_charconst): Moved to cppcharset.c.
12279         * cpplib.c (dequote_string): Delete.
12280         (interpret_string_notranslate): New.
12281         (do_line, do_linemarker): Use interpret_string_notranslate.
12282
12283         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
12284
12285         * c-common.c (fname_string, combine_strings): Delete.
12286         * c-common.h (fname_string, combine_strings): Delete prototypes.
12287         * c-lex.c (ignore_escape_flag): Delete.
12288         (cb_ident): Use cpp_interpret_string, not lex_string.
12289         (get_nonpadding_token): New function.
12290         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
12291         Adjust calls to lex_string.  Don't write *value twice.
12292         (lex_string): Now handles string constant concatenation.
12293         Most of the work handed off to cpp_interpret_string.
12294         Call fix_string_type here.
12295         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
12296         FUNC_NAME, throughout.
12297         (OBJC_STRING): New token type.
12298         (primary:STRING): No need to call fix_string_type here.
12299         (primary:objc_string): Make that OBJC_STRING.
12300         (objc_string nonterminal): Delete.
12301         (yylexname): Delete code to handle fake string constants.
12302         (yylexstring): Delete entirely.
12303         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
12304         to handle CPP_ATSIGN.
12305
12306         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
12307         * c-opts.c (missing_arg, c_common_handle_option): Handle
12308         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
12309         (c_common_init): Set cpp_opts->bytes_big_endian, not
12310         cpp_opts->EBCDIC.  Call cpp_init_iconv.
12311         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
12312         (TARGET_EBCDIC): Delete default definition.
12313
12314         * objc/objc-act.c (build_objc_string_object): No need to
12315         handle string constant concatenation.
12316
12317 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
12318
12319         * doc/install.texi: Fix typos.
12320         * doc/invoke.texi: Likewise.
12321         * doc/tm.texi: Likewise.
12322
12323 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
12324
12325         * config/pa/fptr.c: Fix comment typos.
12326         * config/pa/pa-64.h: Likewise.
12327         * config/pa/pa.c: Likewise.
12328         * config/pa/pa.h: Likewise.
12329         * config/rs6000/603.md: Likewise.
12330         * config/rs6000/7xx.md: Likewise.
12331         * config/rs6000/darwin.h: Likewise.
12332         * config/rs6000/freebsd.h: Likewise.
12333         * config/rs6000/rs6000.c: Likewise.
12334         * config/rs6000/rs6000.md: Likewise.
12335         * config/rs6000/spe.h: Likewise.
12336
12337 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
12338
12339         * config/s390/2064.md: Change GNU CC to GCC.
12340         * config/s390/2084.md: Likewise.
12341         * config/s390/fixdfdi.h: Likewise.
12342         * config/s390/linux.h: Likewise.
12343         * config/s390/s390-modes.def: Likewise.
12344         * config/s390/s390-protos.h: Likewise.
12345         * config/s390/s390.c: Likewise.
12346         * config/s390/s390.h: Likewise.
12347         * config/s390/s390.md: Likewise.
12348         * config/s390/s390x.h: Likewise.
12349
12350 2003-07-04  Jeff Law  <law@redhat.com>
12351
12352         PR c/11428
12353         * expr.c (do_store_flag): Pass in the correct result type
12354         when calling fold_single_bit_test.
12355         * fold-const.c (fold_single_bit_test): Use result_type for the
12356         result when folding a sign bit test.
12357
12358 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
12359
12360         * opts.c (common_handle_options): Negate sense of -falign- switches.
12361
12362 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
12363
12364         * Makefile.in: Replace PWD with PWD_COMMAND.
12365
12366 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12367
12368         * cfgloopanal.c (count_strange_loop_iterations): New static function.
12369         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
12370         Handle strange loops.
12371
12372 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
12373
12374         * install.texi: Even the g77 manpage is derived from
12375         the full g77 manual.
12376
12377 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
12378
12379         * ABOUT-NLS: Delete.
12380         * intl: Delete entire directory.
12381         * aclocal.m4: Include ../config/gettext.m4.  Delete
12382         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
12383         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
12384         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
12385         Remove intl/Makefile from all_outputs.
12386         * configure, config.in: Regenerate.
12387         * Makefile.in: Expunge all references to intl subdirectory.
12388         Add -I../intl to INCLUDES.
12389         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
12390
12391 2003-07-04  Roger Sayle  <roger@eyesopen.com>
12392
12393         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
12394         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
12395
12396 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
12397
12398         PR c++/5287, PR c++/7910, PR c++/11021
12399         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
12400         dllimport attribute if function is defined at declaration, but
12401         report error instead. Likewise for dllimport'd variable
12402         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
12403         declared within functions, Report error if dllimport or dllexport
12404         symbol is not global.
12405         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
12406         if defined after declaration or if inlined. Don't allow definition
12407         of static data members of C++ classes. Don't dllimport virtual
12408         methods.
12409         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
12410         (i386_pe_mark_dllimport): Remove unnecessary checks.
12411         (i386_pe_encode_section_info): Warn if the dllimport attribute
12412         and symbol prefix have been instantiated and then overridden.
12413
12414         * doc/extend.texi: Document dllimport and dllexport attributes.
12415
12416         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
12417
12418 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
12419
12420         * config/kaos.h (CPP_PREDEFINES): Delete.
12421         (TARGET_OS_CPP_BUILTINS): New.
12422
12423 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12424
12425         * c-aux-info.c: Include toplev.h after c-tree.h.
12426         * c-common.c: Likewise.
12427         (GCC_DIAG_STYLE): Undef.
12428         * c-semantics.c (GCC_DIAG_STYLE): Define.
12429         * c-tree.h (GCC_DIAG_STYLE): Likewise.
12430         * diagnostic.h (inform): Move prototype to toplev.h.
12431         * jump.c: Include diagnostic.h before toplev.h.
12432         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
12433         (warning, error, fatal_error, pedwarn, sorry, inform,
12434         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
12435
12436 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12437
12438         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
12439         at all if edge is not specified.
12440         (can_copy_bbs_p, copy_bbs): New.
12441         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
12442         * cfgloop.c (get_loop_body): Comment more precisely.
12443         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
12444         (scale_bbs_frequencies): Fix comment typo.
12445         (can_duplicate_loop_p): Use can_copy_bbs_p.
12446         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
12447
12448 2003-07-03  Devang Patel <dpatel@apple.com>
12449
12450         * c-opts.c (c_common_parse_file): Remove extra
12451         debug_hooks->start_source_file call.
12452
12453 2003-07-03  Roger Sayle  <roger@eyesopen.com>
12454
12455         * real.c (real_trunc, real_floor, real_ceil): New functions
12456         to implement trunc, floor and ceil respectively.
12457         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
12458         * builtins.c (integer_valued_real_p): New function to test if
12459         a floating point expression has an integer valued result.
12460         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
12461         foo(x) where foo is an integer rounding function.  Similarly,
12462         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
12463         (double)(int)x when both foo and bar are integer rounding
12464         functions and we don't need to honor errno.
12465         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
12466         New functions to fold trunc, floor and ceil.
12467         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
12468         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
12469         to fold BUILT_IN_CEIL*.
12470         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
12471         the remaining integer rounding functions.
12472
12473 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
12474
12475         * config/sparc/sparc.c (function_arg_partial_nregs): Use
12476         SPARC_INT_ARG_MAX to determine where to split unnamed
12477         complex FP arguments.
12478
12479 2003-07-03  Jan Hubicka  <jh@suse.cz>
12480
12481         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
12482         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
12483         (merge_blocks_move_predecessor_nojumps,
12484          merge_blocks_move_successor_nojumps): Use merge_blocks.
12485         (try_optimize_cfg): Use merge_blocks_move.
12486         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
12487         (merge_blocks_nomove): Rename to rtl_merge_blocks.
12488         (cfg_layout_create_basic_block): New.
12489         (rtl_can_merge_blocks): New.
12490         (cfg_layout_split_block): Do not alloc aux by hand.
12491         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
12492         merge_blocks.
12493         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
12494         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
12495         * cfgloopmanip.c (loop_split_edge_with): Likewise.
12496         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
12497
12498         * basic-block.h (basic_block_def): Add field 'rbi'.
12499         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
12500         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
12501         * cfg.c (entry_exit_blocks): Add new field.
12502         * cfglayout.c: Include alloc-pool.h;
12503         (cfg_layout_pool): New.
12504         (record_effective_endpoints, fixup_reorder_chain,
12505         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
12506         of rbi.
12507         (cfg_layout_initialize_rbi): New function.
12508         (cfg_layout_initialize): Use it.
12509         (cfg_layout_finalize): Clear rbi fields.
12510         * cfglayout.h (RBI): Kill.
12511         (cfg_layout_initialize_rbi): Declare.
12512         * cfgloopmanip.c (copy_bbs): Use rbi.
12513         (record_exit_edges): Likewise.
12514         (duplicate_loop_to_header_edge): Likewise.
12515         * cfgrtl.c (cfg_layout_create_basic_block): Use
12516         cfg_layout_initialize_rbi.
12517         (cfg_layout_split_block): Use rbi.
12518         (cfg_layout_delete_block): Likewise.
12519         * loop-init.c (loop_optimizer_finalize): Likewise.
12520         * loop-unswitch.c (unswitch_loop): Likewise.
12521         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
12522
12523         * cfgrtl.c: Update comments.
12524         (try_redirect_by_replacing_jump): New argument.
12525         (redirect_branch_edge): Break out from ...
12526         (rtl_redirect_edge_and_branch): ... this one.
12527         (update_cfg_after_block_merging): Break out from ...
12528         (rtl_merge_blocks): ... this one.
12529         (cfg_layout_split_edge): New.
12530         (cfg_layout_merge_blocks): New.
12531         (cfg_layout_can_merge_blocks_p): New.
12532         (cfg_layout_redirect_edge_and_branch): Reorganize.
12533         (cfg_layout_rtl_cfg_hooks): Fill in.
12534         (cfg_layout_delete_block): Kill barriers.
12535         * cfganal.c (can_fallthru): Deal with exit blocks
12536         * cfglayout.c (cfg_layout_function_header): New function
12537         (record_effective_endpoints): Record function header.
12538         (fixup_reorder_chain): Fixup dead jumptables; place header
12539
12540         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
12541         * bb-reorder.c (cfg_layout_initialize): Update call.
12542         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
12543         edges in cfglayout mode.
12544         * cfglayout.c (cleanup_unconditional_jumps): Kill.
12545         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
12546         * cfglayout.h (cfg_layout_initialize): Update prototype.
12547         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
12548         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
12549         * flow.c (propagate_block): Do not crash when basic block ends
12550         by first insn in the chain.
12551         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
12552         do loop discovery.
12553         * tracer.c (tracer): Update call of cfg_layout_initialize.
12554
12555 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12556
12557         * Makefile.in: Use dependency variables in lieu of explicit
12558         files throughout.
12559
12560 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
12561
12562         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
12563         * tree.h: ...to here.
12564
12565 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
12566
12567         * config/s390/2064.md: Fix comment typos.
12568         * config/s390/2084.md: Likewise.
12569         * config/s390/s390.c: Likewise.
12570         * config/s390/s390.md: Likewise.
12571         * config/sh/sh.c: Likewise.
12572         * config/sh/sh.h: Likewise.
12573         * config/sh/sh.md: Likewise.
12574         * config/sparc/sparc.c: Likewise.
12575         * config/sparc/sparc.h: Likewise.
12576         * config/sparc/sparc.md: Likewise.
12577         * config/stormy16/stormy16.c: Likewise.
12578         * config/stormy16/stormy16.h: Likewise.
12579         * config/stormy16/stormy-abi: Fix a typo.
12580
12581 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
12582
12583         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
12584
12585 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12586
12587         * config/mips/mips.h (save_argv): Delete.
12588
12589 2003-07-03  Roger Sayle  <roger@eyesopen.com>
12590
12591         PR target/10700
12592         * fold-const.c (extract_muldiv_1): There's nothing that can be done
12593         if the expression is a SAVE_EXPR.
12594
12595 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
12596
12597         * config/m32r/m32r.c: Fix comment typos.
12598         * config/m68hc11/m68hc11.c: Likewise.
12599         * config/m68hc11/m68hc11.h: Likewise.
12600         * config/m68k/m68k.c: Likewise.
12601         * config/mcore/mcore.c: Likewise.
12602         * config/mcore/mcore.h: Likewise.
12603         * config/mcore/mcore.md: Likewise.
12604         * config/mips/mips.c: Likewise.
12605         * config/mips/mips.h: Likewise.
12606         * config/mips/mips.md: Likewise.
12607         * config/mips/netbsd.h: Likewise.
12608         * config/mn10300/mn10300.c: Likewise.
12609
12610 2003-07-03  Andreas Schwab  <schwab@suse.de>
12611
12612         * dbxout.c (pending_bincls): Move decl down inside
12613         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
12614
12615 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
12616
12617         * rtl.h (NOTE_DATA): Refer to whole union.
12618         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
12619
12620 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
12621
12622         PR optimization/11381
12623         * simplify-rtx.c (simplify_relational_operation): Check that
12624         two equal operands have no side-effects before simplifying
12625         the comparison.
12626
12627 2003-07-02  Jeff Law  <law@redhat.com>
12628
12629         * expr.c (do_store_flag): Remove special case folding for
12630         single bit tests.  Instead call back into the commonized folder
12631         routine.
12632         * fold-const.c (fold_single_bit_test): New function, mostly
12633         extracted from do_store_flag, with an additional case extracted
12634         from fold.
12635         (fold): Call fold_single_bit_test appropriately.
12636         * tree.h (fold_single_bit_test): Prototype.
12637
12638 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
12639
12640         * system.h: Include filenames.h.
12641         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
12642         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
12643         define based on HAVE_DOS_BASED_FILE_SYSTEM.
12644         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
12645         * config/i386/xm-mingw32.h: Don't define
12646         HAVE_DOS_BASED_FILE_SYSTEM,
12647         DIR_SEPARATOR, or DIR_SEPARATOR_2.
12648         * doc/hostconfig.texi: Update to match.
12649
12650         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
12651         config/i386/cygwin.h:
12652         Use IS_ABSOLUTE_PATH throughout.
12653         * gcc.c (DIR_UP): Delete, unused.
12654         * protoize.c (IS_SAME_PATH): Define in terms of
12655         FILENAME_CMP.
12656         (is_abspath): Delete.
12657
12658 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
12659
12660         * config/i386/emmintrin.h: Fix comment typos.
12661         * config/i386/i386.c: Likewise.
12662         * config/i386/i386.h: Likewise.
12663         * config/i386/sco5.h: Likewise.
12664         * config/ia64/ia64.c: Likewise.
12665         * config/ia64/itanium2.md: Likewise.
12666
12667 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
12668
12669         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
12670         DBX_USE_BINCL.
12671         (emit_bincl_stab): Same.
12672         (emit_pending_bincls): Same.
12673
12674 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
12675
12676         * config/h8300/h8300.c (compute_mov_length): Fix the length of
12677         loading CONST0_RTX (SFmode).
12678         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
12679         'G' to CONST0_RTX (SFmode).
12680         * config/h8300/h8300.md (movsf_h8300): Change the first
12681         constraint to 'G'.
12682         (movsf_h8300h): Likewise.
12683
12684 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
12685
12686         * c-common.h (c_common_init_options): New prototype.
12687         * c-opts.c (deferred_size): Remove.
12688         (defer_opt): Array is now pre-allocated.
12689         (c_common_init_options): Pre-allocate deferred_opts.  Make
12690         lang_flags unsigned.
12691         (push_command_line_options): Free deferred_opts.
12692         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
12693         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
12694         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
12695         * langhooks.h (struct lang_hooks): New prototype for init_options.
12696         * main.c (main): Cast argv.
12697         * opts.c (handle_option, handle_options): Update prototypes.
12698         (decode_options): save_argc, save_argv are not global.  Constify.
12699         * opts.h (decode_options): New prototype.
12700         * toplev.c (general_init): New protoype.
12701         (save_argv): Make static.
12702         (save_argc): Remove.
12703         (print_switch_values, general_init): Constify.
12704         (toplev_main): Save argv.
12705         * toplev.h (toplev_main): Update prototype.
12706         (save_argc, save_argv): Remove.
12707
12708 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
12709
12710         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
12711         (emit_bincl_stab): Same.
12712         (emit_pending_bincls): Same.
12713
12714 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
12715
12716         PR c++/11072
12717         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
12718
12719 2003-07-02  Andreas Schwab  <schwab@suse.de>
12720
12721         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
12722
12723 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
12724
12725         PR optimization/11210
12726         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
12727         about the behaviour with regard to bitfields.
12728         * fold-const (decode_field_reference): Record outermost type in
12729         case the expression is a NOP. Strip all NOPs. Set the signedness
12730         to that of the outermost type (if any) when the bitsize is equal
12731         to the size of the type.
12732
12733 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
12734
12735         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
12736         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
12737         (adddi3_internal_3, addsi3_internal_2): Likewise.
12738
12739 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
12740
12741         * config/mips/mips.c (machine_function): Add new fields:
12742         ignore_hazard_length_p and all_noreorder_p.
12743         (mips_flag_delayed_branch): New variable.
12744         (override_options): Treat '/' as an operand punctuation character.
12745         Set up mips_flag_delayed_branch.
12746         (print_operand): Handle '/'.
12747         (mips_output_function_prologue): Put the whole function in
12748         .set noreorder and .set nomacro if all_noreorder_p is true.
12749         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
12750         (mips16_optimize_gp): Remove "first insn" parameter.
12751         (mips16_lay_out_constants): New function, split out from mips_reorg.
12752         (mips_avoid_hazard, mips_avoid_hazards): New functions.
12753         (mips_reorg): For mips16 code, call mips16_lay_out_constant
12754         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
12755         do delayed-branch scheduling followed by hazard detection.
12756         (mips_adjust_insn_length): Only account for hazards if
12757         !ignore_hazard_length_p.
12758         (mips_output_load_label): Add a nop to the o32 sequence if
12759         the target suffers from load delays.
12760         (mips_output_conditional_branch): Add %/ to the end of branches.
12761         (mips_output_division): Fill the branch delay slot with %#.
12762         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
12763         instructions.  End all other %* branches with %/.
12764         (ffssi2, ffsdi2): Fix lengths.
12765         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
12766         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
12767         (fix_truncsfsi2_macro): Likewise.
12768         (mov_lwl): Set hazard to "none".
12769         (ashldi3_internal): Fill the branch delay slot with %#.
12770         (ashrdi3_internal, lshrdi3_internal): Likewise.
12771         (exception_receiver): Explicitly set $28.
12772         (hazard_nop): New pattern.
12773
12774 2003-07-02  Jan Hubicka  <jh@suse.cz>
12775
12776         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
12777         before calling tree_inlinable_function_p.
12778
12779 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12780
12781         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
12782         <internal/stdio_core.h> too.
12783         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
12784         <internal/wchar_core.h> too.
12785         Substitute va_list uses in inline definition.
12786         * fixinc/fixincl.x: Regenerate.
12787
12788 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12789
12790         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
12791         Undef before redefinition.
12792         (LABEL_AFTER_LOC): Likewise.
12793         (DEFAULT_SIGNED_CHAR): Likewise.
12794         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
12795         Fix IRIX spelling.
12796
12797         * config/mips/iris3.h: Remove, unused.
12798         * config/mips/iris4.h: Likewise.
12799
12800         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
12801
12802         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
12803         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
12804         target_cpu_default.
12805
12806         * config/mips/iris5.h: Move explicit includes ...
12807         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
12808
12809         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
12810         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
12811         tm_defines.
12812
12813         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
12814         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
12815         target_cpu_default.
12816
12817         * config/mips/iris6.h: Fix IRIX spelling.
12818         (MULTILIB_DEFAULTS): Undef before redefinition.
12819
12820         * config/mips/iris6.h: Move explicit includes ...
12821         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
12822
12823 2003-07-02  Jan Hubicka  <jh@suse.cz>
12824
12825         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
12826         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
12827         Use next_needed field instead of aux to maintain the queue.
12828         * cgraph.h (cgraph_node): Add next_needed.
12829         (cgraph_varpool_node): Add next_needed; remove aux.
12830         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
12831
12832 2003-07-02  Jan Hubicka  <jh@suse.cz>
12833
12834         * cgraphunit.c (cgraph_finalize_function): Set finalized.
12835         (cgraph_finalize_function): Do not examine inlinablility.
12836         (cgraph_finalize_compilation_unit): Do it here.
12837         * cgraph.h (cgraph_local_info): Add finalized field.
12838
12839 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12840
12841         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
12842         (gt_pch_restore): Likewise.
12843
12844 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
12845
12846         * config/alpha/alpha.c: Fix comment typos.
12847         * config/alpha/elf.h: Likewise.
12848         * config/arm/arm.c: Likewise.
12849         * config/arm/arm.h: Likewise.
12850         * config/arm/arm.md: Likewise.
12851         * config/arm/t-arm-coff: Likewise.
12852         * config/arm/t-strongarm-pe: Likewise.
12853         * config/arm/xscale-elf.h: Likewise.
12854         * config/avr/avr.h: Likewise.
12855
12856 2003-07-01  Jeff Law  <law@redhat.com>
12857
12858         * stmt.c (any_pending_cleanups): Remove another redundant test.
12859
12860 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
12861             J"orn Rennecke <joern.rennecke@superh.com>
12862
12863         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
12864         for MEM case.
12865
12866 2003-07-01  Devang Patel  <dpatel@apple.com>
12867
12868         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
12869         (binclstatus): New.
12870         (struct dbx_file): New members - bincl_status, pending_bincl_name and
12871         prev.
12872         (pending_bincls): New.
12873         (dbxout_init): Initialize new dbx_file members.
12874         (dbxout_start_source_file): Same.
12875         (emit_bincl_stab): New function.
12876         (emit_pending_bincls): Same.
12877         (emit_pending_bincls_if_required): Same.
12878         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
12879         processed.
12880         (dbxout_begin_block): Emit pending BINCL stabs.
12881         (dbxout_end_block): Same.
12882         (dbxout_function_decl): Same.
12883         (dbxout_continue): Same.
12884         (dbxout_type): Same.
12885         (dbxout_class_name_qualifiers): Same.
12886         (dbxout_symbol): Same.
12887         (dbxout_symbol_location): Same.
12888         (dbxout_parms): Same.
12889
12890 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12891
12892         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
12893         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
12894
12895 2003-07-01  Andreas Jaeger  <aj@suse.de>
12896
12897         * fold-const.c: Convert prototypes to ISO C90.
12898         * function.c: Likewise.
12899         * function.h: Likewise.
12900
12901 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
12902
12903         * doc/contrib.texi: Fix typos.
12904         * doc/invoke.texi: Likewise.
12905         * doc/passes.texi: Likewise.
12906         * doc/sourcebuild.texi: Likewise.
12907         * doc/tm.texi: Likewise.
12908
12909 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
12910
12911         * basic-block.h: Fix comment typos.
12912         * bb-reorder.c: Likewise.
12913         * c-format.c: Likewise.
12914         * cfgcleanup.c: Likewise.
12915         * cfghooks.h: Likewise.
12916         * cfgloop.c: Likewise.
12917         * cfgloopmanip.c: Likewise.
12918         * cfgrtl.c: Likewise.
12919         * cgraph.h: Likewise.
12920         * cgraphunit.c: Likewise.
12921         * combine.c: Likewise.
12922         * convert.c: Likewise.
12923         * dbxout.c: Likewise.
12924         * df.c: Likewise.
12925         * df.h: Likewise.
12926         * diagnostic.c: Likewise.
12927         * dwarf2out.c: Likewise.
12928         * et-forest.h: Likewise.
12929         * flow.c: Likewise.
12930         * fold-const.c: Likewise.
12931         * function.h: Likewise.
12932         * gcov-io.h: Likewise.
12933         * gcov.c: Likewise.
12934         * gcse.c: Likewise.
12935         * genautomata.c: Likewise.
12936         * ggc-common.c: Likewise.
12937         * ggc-page.c: Likewise.
12938         * loop-unroll.c: Likewise.
12939         * loop-unswitch.c: Likewise.
12940         * loop.c: Likewise.
12941         * mips-tfile.c: Likewise.
12942         * optabs.c: Likewise.
12943         * ra-build.c: Likewise.
12944         * ra-colorize.c: Likewise.
12945         * ra-rewrite.c: Likewise.
12946         * ra.h: Likewise.
12947         * regmove.c: Likewise.
12948         * reload.c: Likewise.
12949         * rtlanal.c: Likewise.
12950         * sched-ebb.c: Likewise.
12951         * sched-int.h: Likewise.
12952         * sched-vis.c: Likewise.
12953         * sreal.c: Likewise.
12954         * ssa-ccp.c: Likewise.
12955         * ssa.c: Likewise.
12956         * toplev.c: Likewise.
12957         * tree-inline.c: Likewise.
12958         * value-prof.c: Likewise.
12959         * value-prof.h: Likewise.
12960
12961 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
12962
12963         * rtl.h (emit_line_note_after): Remove.
12964         (emit_note_copy_after, emit_note_copy): New.
12965         * emit-rtl.c (reorder_insns_with_line_notes): Replace
12966         emit_line_note_after with emit_note_copy_after.
12967         (emit_insn_after_with_line_notes): Likewise.
12968         (emit_line_note_after): Kill.
12969         (emit_note_copy_after): New.
12970         (emit_note_copy): New.
12971         * function.c (emit_return_into_block): Use emit_note_copy_after.
12972         (thread_prologue_and_epilogue_insns): Likewise.
12973         * integrate.c (expand_inline_function): Use emit_note_copy.
12974         (copy_insn_list): Likewise.
12975         * unroll.c (copy_loop_body): Likewise.
12976         * cfglayout.c (duplicate_insn_chain): Likewise.
12977
12978 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
12979
12980         * c-tree.h (define_label): Replace filename and lineno arguments
12981         with a location_t.
12982         * c-decl.c (poplevel): Adjust define_label call.
12983         (pop_label_level): Likewise.
12984         (define_label): Replace filename and lineno arguments with a
12985         location_t.
12986         (store_parm_decls): Use DECL_SOURCE_LOCATION.
12987         * c-parse.in (label): Adjust define_label call.
12988
12989 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
12990
12991         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
12992         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
12993         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
12994         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
12995         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
12996
12997 2003-07-01  Andreas Jaeger  <aj@suse.de>
12998
12999         * final.c: Convert prototypes to ISO C90.
13000         * flow.c: Likewise.
13001         * flags.h: Likewise.
13002         * gcov-io.c: Likewise.
13003         * gcov-io.h: Likewise.
13004
13005 See ChangeLog.9 for earlier changes.