OSDN Git Service

2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
2
3         * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
4         and use it throughout.
5         
6 2003-09-07  Jan Hubicka  <jh@suse.cz>
7
8         * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
9
10         * toplev.c  (rest_of_decl_compilation):  Do not finalize external
11         virables. 
12
13         * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
14         functions.
15         (cgraph_varpool_finalize_decl): Notice global symbol when needed.
16
17 2003-09-06  Jan Hubicka  <jh@suse.cz>
18
19         PR target/12070
20         * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
21
22         PR opt/12082
23         * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
24
25 2003-09-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
26
27         * diagnostic.c (announce_function): Move to toplev.c.
28
29 2003-09-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
30
31         * gcse.c (expr_equiv_p): Don't consider anything to be equal to
32         volatile mem.
33
34 2003-09-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
35
36         * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
37         when gc checking is enabled.
38
39 2003-09-06  Steven Bosscher  <steven@gcc.gnu.org>
40
41         PR c/9862
42         * c-decl.c (c_expand_body_1): Move return warning from here...
43         (finish_function): ...to here.
44
45 2003-09-05  Geoffrey Keating  <geoffk@apple.com>
46
47         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
48         a subset of the input class.
49
50 2003-09-05  Kazu Hirata  <kazu@cs.umass.edu>
51
52         * config/i860/i860.c: Follow spelling conventions.
53         * config/i860/i860.h: Likewise.
54         * config/sh/sh.h: Likewise.
55
56 2003-09-05  Nitin Yewale  <NitinY@KPITCummins.com>
57
58         * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
59         * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
60         * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
61
62 2003-09-05  Roger Sayle  <roger@eyesopen.com>
63             Richard Henderson  <rth@redhat.com>
64
65         PR optimization/1823
66         * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
67         multiplication to implement division by constant integer.
68
69 Fri Sep  5 07:35:16 CEST 2003  Jan Hubicka  <jh@suse.cz>
70
71         * opts.c (decode_options): Enable unit-at-a-time at -O2.
72         * params.def (max-inline-insns-single): Set to 500
73         (max-inline-insns-auto): Set to 150
74         * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
75
76 2003-09-04  Richard Henderson  <rth@redhat.com>
77
78         * cgraph.c (cgraph_mark_reachable_node): Split out from ...
79         (cgraph_mark_needed_node): Remove needed argument.
80         * cgraph.h: Update to match.
81         * cgraphunit.c (decide_is_function_needed): Split out from ...
82         (cgraph_finalize_function): Reorg.  Avoid deferred_inline_function
83         if we generated the function.
84         (record_call_1): Update for cgraph_mark_reachable_node.
85         * varasm.c (mark_referenced): Likewise.
86         * objc/objc-act.c (mark_referenced_methods): Likewise.
87
88 2003-09-04  DJ Delorie  <dj@redhat.com>
89
90         * targhooks.c: Add comment explaining the migration process.
91
92 2003-09-04  Eric Christopher  <echristo@redhat.com>
93
94         * config/frv/t-frv: Fix path for frv-abi.h.
95         * config/frv/frv-asm.h: Fix string concatenation.
96
97 2003-09-04  DJ Delorie  <dj@redhat.com>
98
99         * builtins.c (apply_args_size): Guard against a NULL cfun.
100         (expand_builtin_apply_args_1): Likewise.
101         (expand_builtin_apply): Likewise.
102         Fixes PR bootstrap/12172.
103
104 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
105
106         * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
107         assembler supports Sun syntax for cmov.
108         * configure: Regenerate.
109         * config.in: Likewise.
110         * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
111         HAVE_AS_IX86_CMOV_SUN_SYNTAX.
112         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
113         Fixes PR target/12101.
114
115 2003-09-04  Matt Austern  <austern@apple.com>
116
117         * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
118         with verbosity 0, instead of DECL_NAME, for human-readable string.
119
120 2003-09-04  Eric Christopher  <echristo@redhat.com>
121
122         * targhooks.c (default_return_in_memory): Allow
123         unconverted ports.
124
125 2003-09-04  Eric Christopher  <echristo@redhat.com>
126
127         * targhooks.c (default_return_in_memory): Fix typo
128         in last checkin.
129
130 2003-09-04  Eric Christopher  <echristo@redhat.com>
131
132         * targhooks.c (default_return_in_memory): Fix default
133         definition.
134
135 2003-09-04  Bernardo Innocenti  <bernie@develer.com>
136
137         * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
138         deleted function.
139         * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
140         enable coff-only code in m68k.c.
141
142 2003-09-04  Nick Clifton  <nickc@redhat.com>
143
144         * config.gcc: Add v850e1 target.  Allow --with-cpu to accept
145         v850e1.
146         * config/v850/v850.h: Accept v850e1 as a default CPU.
147         Accept -mv850e1 as a command line option.
148         * doc/invoke.texi: Document new -mv850e1 command line switch.
149         * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
150         -mv850e.
151
152 2003-09-04  Nick Clifton  <nickc@redhat.com>
153
154         * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
155         * config/v850/t-v850: Only produce one extra multilib - for
156         the v850e.
157         * config/v850/t-v850e: New file: Only produce one extra
158         multilib - for the v850.
159
160 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
161
162         * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
163         * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
164         * unwind.h (_Unwind_GetBSP): New prototype.
165         * libgcc-std.ver: Add empty GCC_3.3.2 version.
166         * mkmap-symver.awk: For symbol versions with no exported symbols,
167         don't put anything into version script, just change all symbol
168         versions which inherit from it to inherit from its ancestor.
169
170 2003-09-04  Eric Christopher  <echristo@redhat.com>
171
172         * config/mips/mips.c (mips_expand_prologue): Convert to
173         calls.struct_value_rtx hook.
174         (reg_or_const_float_1_operand): New.
175         * config/mips/mips.h: Update Comments.
176         (mips_arg): Add reg_or_const_float_1_operand.
177         * config/mips/mips.md (divdf3); Convert to expander.
178         (divsf3): Ditto.
179         (*divdf3): New pattern.
180         (*divsf3): Ditto.
181
182 Thu Sep  4 10:43:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
183
184         * toplev.c (wrapup_global_declarations): Fix final pass in
185         unit-at-atime mode.
186
187 2003-09-04  Mark Mitchell  <mark@codesourcery.com>
188
189         * doc/extend.texi: Document removal of cast-as-lvalue extension in
190         C++.
191
192 2003-09-04  Nicolas Roche  <roche@act-europe.fr>
193
194         * gcc.c (process_command): Fix typo.
195
196 2003-09-03  David O'Brien  <obrien@FreeBSD.org>
197
198         optimization/11980
199         * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
200         (PTRDIFF_TYPE): Likewise.
201         (WCHAR_TYPE_SIZE): Likewise.
202
203 2003-09-03  DJ Delorie  <dj@redhat.com>
204
205         * targhooks.c: New file.
206         * targhooks.h: New file.
207         * Makefile.in: Add targhooks.o support.
208         (function.o): Depend on$(TARGET_H).
209         (stmt.o): Likewise.
210         (combine.o): Depend on $(TREE_H) and $(TARGET_H).
211         * builtins.c (apply_args_size, expand_builtin_apply_args_1,
212         expand_builtin_apply): Convert to calls.struct_value_rtx hook.
213         (expand_builtin_saveregs): Convert to
214         calls.expand_builtin_saveregs hook.
215         * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
216         here, instead of ...
217         (get_parm_info) ... here.
218         (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
219         hook.
220         (finish_function): Handle calls.promote_prototypes hook here too.
221         * c-typeck.c (convert_arguments): Convert to
222         calls.promote_prototypes hook.
223         (c_convert_parm_for_inlining): Likewise.
224         * calls.c (initialize_argument_information): Convert to
225         calls.promote_function_args hook.
226         (expand_call): Convert to calls.struct_value_rtx,
227         calls.strict_argument_naming,
228         calls.pretend_outgoing_varargs_named, and
229         calls.promote_function_return hooks.  Pass fndecl to
230         aggregate_value_p.  Initialize CUMULATIVE_ARGS before calling
231         hooks, so they can use that.
232         (emit_library_call_value_1): Likewise.
233         * combine.c (setup_incoming_promotions): Convert to
234         calls.promote_function_args hook.
235         * emit-rtl.c: Convert to calls.struct_value_rtx hook.
236         * expr.c (expand_assignment): Pass call to aggregate_value_p.
237         (expand_expr): Likewise.
238         * expr.h: Remove support for SETUP_INCOMING_VARARGS,
239         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
240         RETURN_IN_MEMORY macro defaults.
241         * final.c (profile_function): Convert to calls.struct_value_rtx
242         hook.
243         * function.c (aggregate_value_p): Accept function type tree as
244         second parameter; try to deduce fntype from it.  Convert to
245         calls.return_in_memory hook.
246         (assign_parms): Convert to calls.setup_incoming_varargs,
247         calls.strict_argument_naming, calls.promote_function_args,
248         calls.pretend_outgoing_varargs_named hooks.  Pass fndecl to
249         aggregate_value_p.
250         (expand_function_start): Likewise.  Convert to
251         calls.struct_value_rtx hook.
252         (expand_function_end): Convert to calls.promote_function_return hook.
253         (allocate_struct_function): Pass fndecl to aggregate_value_p.
254         * hard-reg-set.h: Update comments to new hook names.
255         * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
256         * reg-stack.c (stack_result): Likewise.
257         * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
258         * stmt.c (expand_value_return): Convert to
259         calls.promote_function_return hook.
260         * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
261         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
262         TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
263         TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
264         TARGET_STRICT_ARGUMENT_NAMING,
265         TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
266         * target.h: Likewise.
267         * tree.h (aggregate_value_p): Also takes a tree to deduce function
268         attributes from (for target hooks).
269         * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
270         PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
271         STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
272         EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
273         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
274         to hooks.
275
276         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
277         to aggregate_value_p.
278         * config/arm/arm.c (arm_init_cumulative_args,
279         arm_output_mi_thunk): Likewise.
280         * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
281         Likewise.
282         * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
283         mips_can_use_return_insn): Likewise.
284         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
285         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
286         * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
287         aggregate_value_p.
288         * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
289         function to aggregate_value_p.
290         * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
291         aggregate_value_p.
292
293         * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
294         (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
295         sh_function_arg_advance, sh_pass_in_reg_p): New.  * config/sh/sh.c
296         (sh_handle_renesas_attribute, sh_promote_prototypes,
297         sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
298         sh_setup_incoming_varargs, sh_strict_argument_naming,
299         sh_pretend_outgoing_varargs_named): New decls.
300         (targetm): Add new hooks.
301         (calc_live_regs): Save MACL and MACH if the function has the
302         renesas attribute.
303         (sh_expand_prologue): Support renesas attribute.
304         (sh_builtin_saveregs): Make static.
305         (sh_build_va_list): Support renesas attribute.
306         (sh_va_start): Likewise.
307         (sh_va_arg): Likewise.
308         (sh_promote_prototypes): New.
309         (sh_function_arg): New, moved from sh.h.  Support renesas
310         attribute.
311         (sh_function_arg_advance): Likewise.
312         (sh_return_in_memory): Likewise.
313         (sh_strict_argument_naming): Likewise.
314         (sh_pretend_outgoing_varargs_named): Likewise.
315         (sh_struct_value_rtx): New.
316         (sh_attribute): Add renesas attribute.
317         (sh_handle_renesas_attribute): New.
318         (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
319         (sh_ms_bitfield_layout_p): Support renesas attribute also.
320         (sh_output_mi_thunk): Pass function to aggregate_value_p.  *
321         config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
322         -mhitachi.
323         (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
324         target hooks.
325         (sh_args): Add renesas_abi flag.
326         (INIT_CUMULATIVE_ARGS): Set it.  Pass fndecl to aggregate_value_p.
327         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
328         (PASS_IN_REG_P): Support renesas attribute.  Pass DF and TF on the
329         stack for the renesas abi.
330         (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
331         SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
332         PROMOTE_PROTOTYPES): Moved to sh.c.  * config/sh/sh.md (call): Set
333         call cookie to indicate renesas calls.
334
335 2003-09-03  Mostafa Hagog  <mustafa@il.ibm.com>
336
337         * gcse.c (replace_one_set): New function.
338         (pre_insert_copy_insn): Change the order of copying
339         to make copy propagation discover additional PRE opportunities.
340
341 2003-09-03  Roger Sayle  <roger@eyesopen.com>
342
343         PR optimization/11700.
344         * simplify-rtx.c (simplify_subreg): Check that the subreg offset
345         of a hard register is representable before trying to simplify it
346         using subreg_hard_regno.
347
348 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
349
350         * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
351         * configure: Regenerate.
352
353 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
354
355         * intl.h (N_): Remove parentheses.
356
357 2003-09-03  Bernardo Innocenti  <bernie@develer.com>
358
359         * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
360         * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
361         definition and code blocks compiled when not defined.
362         * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
363         * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
364         * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
365         * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
366
367 2003-09-03  Jeff Sturm  <jsturm@one-point.com>
368
369         * cgraphunit.c (visited_nodes): New static variable.
370         (record_call_1): Use walk_tree with visited_nodes.
371         (cgraph_create_edges): Use walk_tree with visited_nodes.
372         Setup/teardown visited_nodes hashtable.
373
374 2003-09-03  Roger Sayle  <roger@eyesopen.com>
375
376         * toplev.c (flag_rounding_math): New global variable.
377         (f_options): Add to the list of language independent options.
378         * flags.h (flag_rounding_math): Prototype here.
379         (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
380         * common.opt (frounding-math): New common command line option.
381         * opts.c (common_handle_option): Handle OPT_frounding_math.
382         (set_fast_math_flags): -ffast-math clears flag_rounding_math.
383
384         * doc/invoke.texi: Document this new command line option.
385
386 2003-09-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
387
388         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
389
390 Wed Sep  3 16:55:25 CEST 2003  Jan Hubicka  <jh@suse.cz>
391
392         * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
393         * c-decl.c (finish_function):  Kill arguments, always use cgraph path.
394         * c-objc-common.c: Kill include of gt-c-objc-common.h
395         (expand_deferred_fns, deffer_fn): Kill function.
396         (deferred_fns): Kill variable.
397         (finish_cdtor): Update finish_function call.
398         (c_objc_common_finish_file): Always call cgraph code.
399         * c-parse.c: Regenerate.
400         * c-parse.y: Regenerate.
401         * c-tree.h (finish_function): Update prototype.
402         * objc-acct.c (build_module_descriptor, finish_method_def):
403         Update call of finish_function.
404         * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
405         forward prototype.
406         (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
407         function and assemble it if needed.
408         (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
409         mode.
410         (cgraph_optimize): Likewise.
411         (cgraph_expand_function): In non-unit-at-a-time mode keep function body
412         even when it has no inline callees.
413         * c-parse.in: Update calls to finish_function.
414
415 2003-09-03  Nick Clifton  <nickc@redhat.com>
416
417         * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
418         Use #error to generate the message if TARGET_DEFAULT is not
419         recognised.
420
421 2003-09-03  Richard Sandiford  <rsandifo@redhat.com>
422
423         * config/mips/mips.h (MASK_UNUSED1): Remove.
424         (MASK_XGOT, TARGET_XGOT): Define.
425         (TARGET_SWITCHES): Add an entry for -mxgot.
426         (ASM_SPEC): Map -mxgot to -xgot.
427         * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
428         whether we're using a big-GOT sequences.
429         (mips_legitimize_const_move, mips_expand_call): Likewise.
430         (override_options): Revert 2003-01-09 change.
431         * doc/invoke.texi: Document -mxgot.
432
433 2003-09-02  Jason Merrill  <jason@redhat.com>
434
435         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
436         * config/sparc/sol2.h: Not here.
437
438 2003-09-02  Roger Sayle  <roger@eyesopen.com>
439
440         * expr.c (expand_expr): The code following both_summands performs
441         the same task as simplify_gen_binary.  Replace all gotos to
442         both_summands with a call to simplify_gen_binary and delete the
443         now unused label.
444
445 2003-09-02  Jason Merrill  <jason@redhat.com>
446
447         PR c++/7327
448         * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
449
450 2003-09-02  Jeff Sturm  <jsturm@one-point.com>
451
452         * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
453         (cgraph_optimize_function): Set current_function_decl to the
454         fndecl we're integrating from.
455
456 2003-09-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
457
458         * builtins.def: Break out _Complex math functions into their
459         own category.
460
461 2003-09-02  Andreas Jaeger  <aj@suse.de>
462
463         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
464
465 2003-09-02  Josef Zlomek  <zlomekj@suse.cz>
466
467         * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
468         finding the note again.
469
470 2003-09-02  Nathanael Nerode  <neroden@gcc.gnu.org>
471
472         * config.gcc: Remove host-specific rewrites of target_alias.
473
474 2003-09-01  Mark Mitchell  <mark@codesourcery.com>
475
476         * Makefile.in (genprogs): Fix typo.
477
478         * Makefile.in (gencheck.o): Remove build commands.
479         (dummy-conditions.o): Likewise.
480         (read-rtl.o): Likewise.
481         (gensupport.o): Likewise.
482         (genconfig$(build_exeext)): Remove rule.
483         (genconfig.o): Remove build commands.
484         (genflags$(build_exeext)): Remove rule.
485         (genflags.o): Remove build commands.
486         (gencodes$(build_exeext)): Remove rule.
487         (gencodes.o): Remove build commands.
488         (genconstants.o): Remove build commands.
489         (genemit$(build_exeext)): Remove rule.
490         (genemit.o): Remove build commands.
491         (genrecog$(build_exeext)): Remove rule.
492         (genrecog.o): Remove build commands.
493         (genextract$(build_exeext)): Remove rule.
494         (genextract.o): Remove build commands.
495         (genpeep$(build_exeext)): Remove rule.
496         (genpeep.o): Remove build commands.
497         (genattr$(build_exeext)): Remove rule.
498         (genattr.o): Remove build commands.
499         (genprognames): New variable.
500         (genprogs): Likewise.
501         (genobjs): Likewise.
502         (genprogs): New rule.
503         (genobjs): Likewise.
504         (genattrtab.o): Remove build commands.
505         (genautomata.o): Likewise.
506         (genoutput$(build_exeext)): Remove rule.
507         (genoutput.o): Remove build commands.
508         (gengenrtl.o): Likewise.
509         (genpreds.o): Likewise.
510         (gengtype.o): Likewise.
511         (genconditions.o): Likewise.
512         (gen-protos.o): Likewise.
513         (scan.o): Likewise.
514         (fix-header.o): Likewise.
515         (scan-decls.o): Likewise.
516         (check-g++): Combine with other check targets.
517         (check-gcc): Likewise.
518         (check-g77): Likewise.
519         (check-objc): Likewise.
520
521 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
522
523         * config.gcc: Remove host-specific stuff which is unused here
524         since the introduction of config.host.
525
526         * doc/fragments.texi: Mention config.host.
527         * doc/sourcebuild.texi: Mention config.host.  Give brief descriptions
528         of config.build, config.host, and config.gcc.
529
530 2003-09-01  Zack Weinberg  <zack@codesourcery.com>
531
532         * c-decl.c (pushdecl): Don't put variables on
533         C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
534         incomplete.
535
536 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
537
538         * config.host: New file.
539         * config.gcc: Remove some host-specific stuff and some
540         logic needed only for repeated invocation.
541         * configure.in: Use config.host.
542         * configure: Regenerate.
543
544 2003-09-01  Josef Zlomek  <zlomekj@suse.cz>
545
546         * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
547         * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
548         * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
549         (fold): Kill BIT_ANDTC_EXPR and label bit_and.
550         * tree.def (BIT_ANDTC_EXPR): Kill.
551
552 2003-08-31  Nathanael Nerode  <neroden@gcc.gnu.org>
553
554         * configure.in: Remove uses of "for x in .. ${foo}" idiom.
555         * configure: Regenerate.
556
557         * config.gcc:  Remove references to install_headers_dir, now unused
558         since introduction of config.build.
559         * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
560
561         * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
562         config.build.
563
564         * config.build: New file.
565         * config.gcc: Remove some build-specific stuff.
566         * configure.in: Use config.build.
567         * configure: Regnerate.
568
569 2003-08-31  Steven Bosscher  <steven@gcc.gnu.org>
570             Roger Sayle  <roger@eyesopen.com>
571
572         PR middle-end/11823
573         * stmt.c (expand_end_case_type): Only use jump tables for dense
574         switch statements when optimizing for size.
575
576 2003-08-31  Olivier Hainque  <hainque@act-europe.fr>
577
578         * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
579         the != 0 case, which ensures pending stack adjustments are flushed.
580
581 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
582
583         * configure.frag: Delete file.
584         * configure.in: Rename the substitution variables
585         dep_host_xmake_file and dep_tmake_file to xmake_file and
586         tmake_file respectively.  Do not expand $srcdir in the
587         value of these; leave that for Make.  Introduce a new
588         substitution varaible, all_lang_makefrags, which lists
589         subdirectory Make-lang.in files; exclude these from
590         all_lang_makefiles, which is now only for subdirectory
591         outputs.  Do not invoke configure.frag.  Do not set nor
592         AC_SUBST_FILE target_overrides, host_overrides, or
593         language_fragments. Create build subdirectories in
594         config.status extra commands.
595         * configure: Regenerate.
596         * Makefile.in: Update substitutions to match changes to
597         configure.  Use include directives instead of @-insertions
598         to read in host, target, and language fragments.
599         (Makefile rule): Do not invoke configure.frag.  Do not copy
600         config.status to config.run before executing it.  Set
601         CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
602         regenerated.
603         (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
604
605 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
606
607         * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
608         * c-typeck.c (same_translation_unit_p): New function.
609         (comptypes): Use it instead of flags parameter to identify
610         structure types from different translation units.
611         * c-decl.c (duplicate_decls): Always call comptypes with
612         COMPTYPE_STRICT flags argument.
613         (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
614         to file_scope_decl.
615
616 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
617
618         * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
619         * c-decl.c (struct c_scope): Remove "incomplete" field.
620         (pushdecl): Attach variables with incomplete types to
621         the TYPE_MAIN_VARIANT of the incomplete type in question.
622         (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
623         to complete, not at current_scope->incomplete.  All such
624         variables do need completion.
625
626 2003-08-30  Richard Earnshaw  <rearnsha@arm.com>
627         Nicolas Pitre <nico@cam.org>
628
629         * arm/lib1funcs.asm (RETCOND): Delete.
630         (RETLDM): New assembler macro.  Use it for returning with ldm/ldr.
631         (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
632         (__ARM_ARCH__): Move here from ieee754-?f.S.
633         (RET, RETc): Clean up definitions.
634         (DIV_FUNC_END): Renamed from FUNC_END.  All uses changed.
635         (FUNC_END): New macro that marks the end of any function.
636         (ARM_FUNC_START): New macro that allows an assembler routine to be
637         implemented in ARM code even if a Thumb-only build.
638         Unconditionally include ieee754-?f.S.
639         * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
640         Mark ends of functions.
641         Split into separate conditionally-compiled units.
642         Use RETLDM to return from routines.
643         * arm/ieee754-sf.S: Similarly.
644         * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
645         Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
646         _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
647         _fixsfsi and _fixunssfsi.
648
649         * arm/ieee754-df.S (__muldf3): Fix bug when result of a
650         multiplication underflows to zero.
651         (__adddf3): Fix bug when using VFP ordering on little-endian
652         processors.
653         (__fixdfsi): Use rrx to extract the carry into a register instead of
654         MRS instruction.  Optimize later use of result.
655         * arm/ieee754-sf.S (__fixsfsi): Likewise.
656         (__fixunssfsi): Use a better sequence for handling negative-or-zero.
657
658 2003-08-29  Richard Henderson  <rth@redhat.com>
659
660         * tree-optimize.c: New file.
661         * Makefile.in (OBJS-archive): Add tree-optimize.o.
662         (tree-optimize.o): New.
663         * c-decl.c (store_parm_decls): Use allocate_struct_function.
664         (finish_function): Don't free_after_parsing or free_after_compilation.
665         (set_save_expr_context): Move to tree-optimize.c.
666         (c_expand_body_1): Use tree_rest_of_compilation.
667         * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
668         * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
669         * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
670         iterate until closure.
671         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
672         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
673         (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
674         * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
675         * toplev.h (tree_rest_of_compilation): Declare it.
676
677 2003-08-29  Richard Henderson  <rth@redhat.com>
678
679         * function.h (struct function): Add rtl_inline_init, saved_for_inline.
680         * integrate.c (save_for_inline): Set saved_for_inline.
681         * c-semantics.c (genrtl_scope_stmt): Check it.
682         * toplev.c (wrapup_global_declarations): Check it.
683         (rest_of_handle_inlining): Set and check rtl_inline_init.
684         (rest_of_compilation): Remove out of date comment.
685
686 2003-08-29  Richard Henderson  <rth@redhat.com>
687
688         * function.c (allocate_struct_function): New, split out of ...
689         (prepare_function_start, init_function_start): ... here.
690         * expr.c (init_expr): Use ggc_alloc_cleared.
691         * stmt.c (init_stmt_for_function): Likewise.
692         * tree.h (allocate_struct_function): Declare.
693
694 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
695
696         * config.gcc: Don't use negated character class in shell case
697         clause.
698
699 2003-08-29  Richard Henderson  <rth@redhat.com>
700
701         * function.h (struct function): Move function_frequency and
702         max_jumptable_ents before start of bit field members.
703
704 2003-08-29  Richard Henderson  <rth@redhat.com>
705
706         * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
707         (fold_builtin_constant_p) ... not here.
708
709 2003-08-29  Richard Henderson  <rth@redhat.com>
710
711         * c-tree.h (C_DECL_FILE_SCOPE): Move ...
712         * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
713         * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
714
715 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
716
717         * builtins.def: Fix typos.
718         (ATTR_MATHFN_FPROUNDING_STORE): New macro.
719         (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
720         BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
721         BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
722         BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
723
724         * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
725         Use ATTR_MATHFN_FPROUNDING_ERRNO.
726
727 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
728
729         * config.gcc (i386-*-vsta): Fix obvious bogosity.
730
731         * fixinc/inclhack.def:  Remove special cases for unsupported
732         PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
733         * fixinc/fixincl.x: Regenerate.
734
735 2003-08-29  Mark Mitchell  <mark@codesourcery.com>
736
737         * Makefile.in (cpp.info): Just state dependencies.
738         (gcc.info): Likewise.
739         (gccint.info): Likewise.
740         (gccinstall.info): Likewise.
741         (cppinternals.info): Likewise.
742         (cpp.dvi): Likewise.
743         (gcc.dvi): Likewise.
744         (gccint.dvi): Likewise.
745         (gccinstall.dvi): Likewise.
746         (cppinternals.dvi): Likewise.
747         (gcov.1): Likewise.
748         (cpp.1): Likewise.
749         (gcc.1): Likewise.
750         (gfdl.7): Likewise.
751         (gpl.7): Likewise.
752         (fsf-funding.7): Likewise.
753         ($(objdir)/%.info): New pattern rule.
754         (%.dvi): Likewise.
755
756 2003-08-29  Kelley Cook  <kelleycook@wideopenwest.com>
757
758         * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
759         (restage2): Likewise.
760         (restage3): Likewise.
761         (restage4): Likewise.
762         (restageprofile): Likewise.
763         (restagefeedback): Likewise.
764         (bubblestrap): Likewise.
765
766 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
767
768         * config.gcc: Narrow unsupported target match to avoid clobbering
769         i?86-sequent-sysv4*.
770
771 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
772
773         * builtins.c (mathfn_built_in): Handle new math builtins.
774
775 2003-08-28  Per Bothner  <per@bothner.com>
776
777         Fix (hopefully temporary) for breakage caused by my 08-21 patch.
778         * cpplex.c (_cpp_get_fresh_line):  Check for null buffer.
779         (_cpp_lex_buffer):  Likewise.
780         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
781
782 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
783
784         * config/s390/s390.md ("*mulsi3_sign"): New insn.
785         ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
786         ("mulsidi3"): ... this new insn.
787         ("umulsidi3"): New insn.
788         ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
789         mixed-mode matching constraints.
790         ("udivmodsi4", "udivmoddisi3"): New insns.
791         ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
792
793 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
794
795         * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
796         BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
797         BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
798         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
799         BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
800         BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
801         BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
802         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
803         BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
804         BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
805         BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
806         * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
807         BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
808         BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
809         BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
810         * tree.c: Assign new type_nodes.
811         * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
812         TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
813         (float_ptr_type_node, double_ptr_type_node,
814         long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
815
816         * doc/extend.texi: Document new builtins.
817
818 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
819
820         * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
821         BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
822
823         * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
824         BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
825         BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
826         BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
827         BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
828         BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
829         BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
830         BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
831         BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
832         BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
833
834         * doc/extend.texi: Document new builtins.
835
836 2003-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
837
838         * fixinc/mkfixinc.sh: Remove special case code for unsupported
839         variants of i?86, powerpcle, and thumb.
840         * fixinc/mkfixinc.sh: Remove special case code for unsupported
841         arm and hppa variants.
842
843 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
844
845         * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
846         BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
847         BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
848         BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
849         BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
850         BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
851         BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
852         BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
853         BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
854         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
855
856         * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
857         BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
858         BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
859         BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
860         BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
861         BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
862         BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
863         BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
864         BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
865         BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
866         BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
867         BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
868         BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
869         BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
870         BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
871         BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
872         BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
873         BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
874         BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
875         BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
876         BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
877         BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
878         BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
879         BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
880         BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
881         BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
882         BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
883         BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
884         BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
885         BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
886         BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
887
888         * doc/extend.texi: Document new builtins.
889
890 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
891
892         * config/s390/s390.c (legitmate_constant_p): Use LARL on
893         zSeries machines even in 31-bit addressing mode.
894         (legitimate_reload_constant_p): Likewise.
895         (legitimize_pic_address): Likewise.
896         (legitimize_tls_address): Likewise.
897         (s390_split_branches): Likewise.
898         (s390_dump_pool): Likewise.
899         (s390_mainpool_finish): Likewise.
900         (s390_chunkify_start): Likewise.
901         (s390_select_rtx_section): Likewise.
902         * config/s390/s390.md ("doloop_si"): Likewise.
903         ("pool_start_31", "pool_end_31"): Likewise.
904         ("pool_start_64", "pool_end_64"): Likewise.
905         ("main_base_31_small", "main_base_31_large"): Likewise.
906         ("main_base_64"): Likewise.
907         ("reload_base_31", "reload_base_64"): Likewise.
908         ("*movsi_larl"): New insn.
909         ("cjump", "icjump"): Use long branches on zSeries machines.
910         ("jump"): Likewise.
911         ("call"): Use BRASL on zSeries machines.
912         ("call_value", "call_value_tls"): Likewise.
913         ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
914         and replace by ...
915         ("*bras", "*brasl", "*basr") ... these new insns.
916         ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
917         "bas_31_r"): Remove and replace by ...
918         ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
919         ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
920         "bas_64_tls", "bas_31_tls"): Remove and replace by ...
921         ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
922         ("*return_si", "*return_di"): Remove and replace by ...
923         ("*return"): ... this new insn.
924         ("rotlsi3"): Allow on zSeries machines.
925
926         * config/s390/s390.c (legitimize_reload_constant_p): Use
927         LL/LH type instructions in z/Architecture mode.
928         * config/s390/s390.md ("*movsi_lli"): Likewise.
929         ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
930         ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
931         ("*extendqisi2"): Use LB in z/Architecture mode.
932         ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
933         z/Architecture mode.
934         ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
935         Likewise.
936
937         * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
938         and 31-bit mode.
939         ("ptr_extend"): Allow only in 64-bit mode.
940
941 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
942
943         * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
944         (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
945         definitions.
946         (main): Only use standard_startfile_prefix if native.
947         * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
948
949 2003-08-27  Per Bothner  <pbothner@apple.com>
950
951         * cpperror.c (print_location):  Don't check for !pfile->buffer.  That
952         test fails following my 08-21 change, and it seems unnecessary anyway.
953         (cpp_error):  Likewise.
954
955 2003-08-27  Jason Merrill  <jason@redhat.com>
956
957         * real.c (do_multiply): Initialize with memset.
958
959 2003-08-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
960
961         * gcov.c (typedef struct arc_info): New field cs_count.
962         (accumulate_line_counts): Find cycles correctly.
963
964 2003-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
965
966         * config/s390/s390.c (struct machine_function): Remove member
967         literal_pool_label.
968         (s390_optimize_prolog): Replace TEMP_REG argument with
969         TEMP_USED and BASE_USED.  Do not check get_pool_size ().
970         (general_s_operand): Accept all immediates before reload if
971         ALLOW_IMMEDIATE.  If not ALLOW_IMMEDIATE, reject literal pool
972         references.
973         (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
974         (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
975         (s390_alloc_pool): New function.
976         (s390_new_pool): Call it.
977         (s390_dump_pool): Add REMOTE_LABEL argument.
978         (s390_chunkify_start): Add BASE_REG argument.  Do not check
979         get_pool_size ().
980         (s390_chunkify_finish): Add BASE_REG argument.  Adapt
981         s390_dump_pool call.
982         (s390_pool_count, s390_nr_constants): Remove.
983         (s390_output_constant_pool): Remove.
984         (s390_mainpool_start): New function.
985         (s390_mainpool_finish): New function.
986         (s390_mainpool_cancel): New function.
987         (s390_reorg): Implement main literal pool handling.
988         (s390_emit_prologue): Emit main_pool placeholder instead of
989         literal_pool_31 / literal_pool_64 insns.
990         * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
991         (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
992         * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
993         ("main_base_31_small", "main_base_31_large"): New insns.
994         ("main_base_64",  "main_pool"): New insns.
995         ("literal_pool_31", "literal_pool_64"): Remove.
996
997 2003-08-27  Nathanael Nerode  <neroden@gcc.gnu.org>
998
999         * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
1000         fixinc.ptx.
1001         * fixinc/inclhack.def (undefine_null):  Don't generate \r characters.
1002         Prettify a little.
1003         * fixinc/fixincl.x: Regenerate.
1004
1005 2003-08-27  Richard Earnshaw  <rearnsha@arm.com>
1006
1007         * lib1funcs.asm (L_ieee754_sp): New.  Include ieee754-sf.S.
1008         (L_ieee754_dp): New.  Include ieee754-df.S.
1009         * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
1010         and compilation in apcs-26 mode.
1011         * arm/ieee754-df.S: Likewise.
1012         * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
1013         (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
1014
1015 2003-08-27  Nicolas Pitre  <nico@cam.org>
1016
1017         * arm/ieee754-sf.S: New.
1018         * arm/ieee754-df.S: New.
1019
1020 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
1021
1022         * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
1023         and restore it if returning NULL.
1024
1025 2003-08-27  Richard Sandiford  <rsandifo@redhat.com>
1026
1027         * calls.c (initialize_argument_information): If an argument has no
1028         stack space associated with it, and BLOCK_REG_PADDING is defined,
1029         use it to decide at which end the argument should be padded.
1030         * function.c (assign_parms): Allocate BLKmode stack slots.
1031         * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
1032         (mips_pad_reg_upward): Declare.
1033         * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
1034         (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
1035         (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
1036         (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
1037         * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
1038         (mips_expand_call): Remove code for generating structure shifts.
1039         (mips_arg_info): Don't set struct_p.  Don't set fpr_p for non-float
1040         types unless using the EABI.
1041         (function_arg_advance): Don't generate shift instructions.
1042         (function_arg): Don't return them.  Don't short-circuit the
1043         check for double structure chunks for DFmode arguments.
1044         (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
1045         (mips_expand_prologue): Remove code to emit structure shifts.
1046         * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
1047         structure passing (inet_ntoa, inet_lnaof, inet_netof).  Update
1048         comments to say that only structure returns are a problem.
1049
1050 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
1051
1052         * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
1053         Fix to match produced versions.
1054         * fixinc/inclhack.def (longlong_t): New disabled test, ported
1055         from fixinc.svr4.
1056         * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
1057         from fixinc.ptx.
1058         * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
1059         ported from fixinc.ptx.
1060
1061 2003-08-26  Per Bothner  <pbothner@apple.com>
1062
1063         * cpplib.h (struct cpp_token):  Change type of field line to fileline.
1064         (cpp_error_with_line):  Use fileline for appropriate parameter.
1065         * cpphash.h (struct cpp_macro):  Change type of field line to fileline.
1066         (struct cpp_reader):  Likewise for fields line and directive_line.
1067         (_cpp_begin_message):  Use fileline for appropriate parameter.
1068         * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
1069         cpp_error):  Use fileline for appropriate parameters and variables.
1070         (print_location):  New local lin, since it is not a fileline.
1071
1072 2003-08-26  Roger Sayle  <roger@eyesopen.com>
1073
1074         PR middle-end/12002
1075         * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
1076         (FLOAT_TYPE_P): Define in terms of these two new macros.
1077         * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
1078         for complex floating point types.
1079
1080 2003-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
1081
1082         * config/s390/s390.c (emit_prologue): Don't check literal pool size.
1083         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
1084         s390_output_pool_entry.
1085
1086 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
1087
1088         * fixinc/inclhack.def (svr4_preproc_lint_on,
1089         svr4_preproc_lint_off, svr4_preproc_machine): New disabled
1090         fixes, ported from fixinc.svr4.
1091
1092 2003-08-26  Mark Mitchell  <mark@codesourcery.com>
1093
1094         * doc/install.texi (Prerequisites): Mention GNU make requirement.
1095
1096         * Makefile.in (AR_FOR_TARGET): Export it.
1097         (AR_CREATE_FOR_TARGET): Likewise.
1098         (AR_FLAGS_FOR_TARGET): Likewise.
1099         (AR_EXTRACT_FOR_TARGET): Likewise.
1100         (AWK): Likewise.
1101         (BUILD_PREFIX): Likewise.
1102         (BUILD_PREFIX_1): Likewise.
1103         (DESTDIR): Likewise.
1104         (GCC_FOR_TARGET): Likewise.
1105         (INCLUDES): Likewise.
1106         (INSTALL_DATA): Likewise.
1107         (LIB1ASMSRC): Likewise.
1108         (LIBGCC2_CFLAGS): Likewise.
1109         (MACHMODE_H): Likewise.
1110         (NM_FOR_TARGET): Likewise.
1111         (RANLIB_FOR_TARGET): Likewise.
1112         (libsubdir): Likewise.
1113         (slibdir): Likewise.
1114         (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
1115         exporting.
1116         (libgcc.a): Don't pass them here.
1117         (stmp-multilib): Or here.
1118         (install-libgcc): Or here.
1119         (install-multilib): Or here.
1120         (POSTSTAGE1_FLAGS_TO_PASS): Or here.
1121         (stage1_build): Or here.
1122
1123 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
1124
1125         * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
1126         "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
1127
1128 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
1129
1130         * config/s390/s390.md ("*fmadddf", "*fmsubdf",
1131         "*fmaddsf", "*fmsubsf"): New insns.
1132
1133 2003-08-26  Roger Sayle  <roger@eyesopen.com>
1134
1135         * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
1136         (C1*C2)/X when unsafe math optimizations are allowed.
1137         (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
1138         math optimizations.  Minor code clean-ups.  Recursively call
1139         fold when constructing sub-expressions.
1140
1141 2003-08-26  Roger Sayle  <roger@eyesopen.com>
1142
1143         * builtins.c (fold_builtin_bitop): New function to perform constant
1144         folding of ffs, clz, ctz, popcount and parity builtin functions
1145         and their long and long long variants (such as ffsl and ffsll).
1146         (fold_builtin): fold_builtin_bitop when appropriate.
1147         * simplify-rtx.c (simplify_unary_operation): Honor both
1148         CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
1149         evaluating clz and ctz at compile-time, for operands wider
1150         than HOST_WIDE_INT.
1151
1152 2003-08-26  Nathan Sidwell  <nathan@codesourcery.com>
1153
1154         * builtins.c (build_function_call_expr): Don't set
1155         TREE_SIDE_EFFECTS here.
1156         * expr.c (emit_block_move_via_libcall): Likewise.
1157         (clear_storage_via_libcall): Likewise.
1158         * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
1159         CALL_EXPRs.
1160
1161         * gcse.c (is_too_expensive): New function.
1162         (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
1163
1164 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
1165
1166         * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
1167         commented-out logic to use DCE threads (if present), add
1168         support for POSIX threads.
1169         * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
1170         #defines for -pthread.  Add -lpthread to LIB_SPEC when
1171         -pthread.  In both cases take -mt as a synonym for -pthread
1172         for acc compatibility.
1173         Define GTHREAD_USE_WEAK to 0.
1174         * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
1175         Remove old logic for DCE threads from LIB_SPEC.
1176         * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
1177
1178 2003-08-25  Roger Sayle  <roger@eyesopen.com>
1179
1180         * builtins.c (expand_builtin_mathfn):  Rearrange so that we only
1181         return 0 for invalid argument types.  Instead drop through to a
1182         call of expand_call at the bottom of function.  If op is SQRT,
1183         try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
1184
1185 2003-08-25  Richard Henderson  <rth@redhat.com>
1186
1187         * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
1188         result when op0 is SImode.
1189
1190 2003-08-25  Nathanael Nerode  <neroden@twcny.rr.com>
1191
1192         * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
1193         from fixinc.svr4.
1194         * fixinc/fixincl.x: Regenerate.
1195         * fixinc/tests/base/sys/signal.h: Regenerate.
1196
1197 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
1198
1199         * combine.c (simplify_comparison): Re-enable widening of comparisons
1200         with non-paradoxical subregs of non-REG expressions.
1201
1202 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
1203
1204         * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
1205
1206 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
1207
1208         * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
1209
1210 2003-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1211
1212         * pretty-print.h (pp_maybe_newline_and_indent): New macro.
1213         * c-pretty-print.h (c_pretty_printer): Now typedef to the
1214         structure.  Be consistent with pretty-print.h abd cxx-pretty-print.h
1215         (struct c_pretty_print_info): Document.  Add new fields.
1216         (pp_type_specifier_seq): Rename from pp_c_type_specifier.
1217         (pp_direct_abstract_declarator): New macro.
1218         (pp_ptr_operator): Likewise.
1219         (pp_simple_type_specifier): Likewise.
1220         (pp_expression): Likewise.
1221         (pp_parameter_list): Rename from pp_parameter_declaration.
1222         * c-pretty-print.c (pp_c_whitespace): Now a function.
1223         (pp_c_left_paren): Likewise.
1224         (pp_c_right_paren): Likewise.
1225         (pp_c_dot): Likewise.
1226         (pp_c_ampersand): Likewise.
1227         (pp_c_arrow): Likewise.
1228         (pp_c_semicolon): Likewise.
1229         (pp_c_type_cast): New function.
1230         (pp_c_space_for_pointer_operator): Likewise.
1231         (pp_c_call_argument_list): Likewise.
1232         (pp_c_cv_qualifier): Adjust prototype.
1233         (pp_c_type_qualifier_list): Likewise.
1234         (pp_c_pointer): Likewise.  Handle REFERENCE_TYPE here.
1235         (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
1236         Adjust to follow standard grammar.
1237         (pp_c_specifier_qualifier_list): Adjusr prototype.  Handle
1238         REFERENCE_TYPE.  Tidy.
1239         (pp_c_parameter_type_list): Adjust prototype.  Tidy.
1240         (pp_c_parameter_declaration): Remove.
1241         (pp_c_abstract_declarator): Adjust prototype.
1242         (pp_c_direct_abstract_declarator): Likewise.
1243         (pp_c_type_id): Likewise.
1244         (pp_c_storage_class_specifier): Likewise.
1245         (pp_c_function_specifier): Likewise.
1246         (pp_c_declaration_specifiers): Likewise.
1247         (pp_c_direct_declarator): Likewise.
1248         (pp_c_declarator): Likewise.
1249         (pp_c_declarator): Likewise.
1250         (pp_c_declaration): Likewise.
1251         (pp_c_attributes): Likewise.  Tidy.
1252         (pp_c_function_definition): Adjust prototype.
1253         (pp_c_char): Likewise.
1254         (pp_c_string_literal): Likewise.
1255         (pp_c_integer_constant): Likewise.
1256         (pp_c_character_constant): Likewise.
1257         (pp_c_bool_constant): Likewise.
1258         (pp_c_enumeration_constant): Likewise.
1259         (pp_c_floating_constant): Likewise.
1260         (pp_c_constant): Likewise.
1261         (pp_c_identifier): Likewise.
1262         (pp_c_primary_expression): Likewise.  Remove TARGET_EXPR case.  Tidy.
1263         (pp_c_initializer): Adjust prototype.
1264         (pp_c_init_declarator): Likewise.
1265         (pp_c_initializer_list): Likewise.
1266         (pp_c_id_expression): Likewise.
1267         (pp_c_postfix_expression): Likewise.
1268         (pp_c_expression_list): Likewise.
1269         (pp_c_unary_expression): Likewise.
1270         (pp_c_cast_expression): Likewise.
1271         (pp_c_multiplicative_expression): Likewise.
1272         (pp_c_additive_expression): Likewise.
1273         (pp_c_shift_expression): Likewise.
1274         (pp_c_relational_expression): Likewise.
1275         (pp_c_equality_expression): Likewise.
1276         (pp_c_and_expression): Likewise.
1277         (pp_c_exclusive_or_expression): Likewise.
1278         (pp_c_inclusive_or_expression): Likewise.
1279         (pp_c_logical_and_expression): Likewise.
1280         (pp_c_logical_or_expression): Likewise.
1281         (pp_c_conditional_expression): Likewise.
1282         (pp_c_assignment_expression): Likewise.
1283         (pp_c_expression): Likewise.  Tidy.
1284         (pp_c_statement): Likewise.  Document.
1285         (pp_c_pretty_printer_init): Adjust prototype. Tidy.
1286
1287         * c-lang.c (c_initialize_diagnostics): Update.
1288         * c-common.h (strip_pointer_operator): Declare.
1289         * c-common.c (strip_pointer_operator): Define.
1290
1291 2003-08-25  Mark Mitchell  <mark@codesourcery.com>
1292
1293         PR c++/8795
1294         * tree.h (build_method_type_directly): Declare.
1295         * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
1296         (vector_size_helper): Likewise.
1297         * tree.c (build_method_type_directly): New function.
1298         (build_method_type): Use it.
1299
1300 2003-08-24  Richard Henderson  <rth@redhat.com>
1301
1302         * config/i386.i386.c (ix86_return_in_memory): Reformat.  Return true
1303         for 16-byte vector modes if sse not enabled; warn for abi change.
1304         (ix86_value_regno): Only return xmm0 for 16-byte vector types.
1305
1306 2003-08-24  Kazu Hirata  <kazu@cs.umass.edu>
1307
1308         * rtlanal.c (may_trap_p): Simplify an integer comparison.
1309
1310 2003-08-24  Nathanael Nerode  <neroden@gcc.gnu.org>
1311
1312         * fixinc/inclhack.def (AAB_svr4_replace_byteorder):  Enhance
1313         comment.  Enable for DYNIX/ptx systems (when they switch to
1314         regular fixincludes).
1315         * fixinc/fixincl.x: Regenerate.
1316
1317 2003-08-23  Jason Eckhardt  <jle@rice.edu>
1318
1319         * config/i860/t-i860: New.
1320         * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
1321
1322 2003-08-23  Jakub Jelinek  <jakub@redhat.com>
1323
1324         * c-decl.c (pushdecl): Only put decls which finish_struct will do
1325         something about onto incomplete chain.
1326         (finish_struct): If not removing type from incomplete
1327         list, update prev.
1328
1329 Wed Aug 20 12:08:55 CEST 2003  Jan Hubicka  <jh@suse.cz>
1330
1331         PR target/11369
1332         * i386.c (ix86_expand_carry_flag_compare): Validate operand.
1333
1334         PR target/11031
1335         * i386.c (const_0_to_3_operand, const_0_to_7_operand,
1336         const_0_to_15_operand, const_0_to_255_operand): New predicates.
1337         * i386.h (PREDICATE_CODES): Add these.
1338         * i386.c (pinsrw and pextrw patterns): Use them.
1339
1340         PR target/10984
1341         * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
1342
1343         PR target/8869
1344         * expr.c (convert_modes): Deal properly with integer to vector
1345         constant conversion.
1346
1347         PR target/8871
1348         * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
1349
1350 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
1351
1352         * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
1353         * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
1354         ("*movhi"): ... this.
1355         ("movqi", "*movqi"): Likewise.
1356         ("movqi_64"): Remove.
1357         ("*zero_extendhisi2_31"): Change predicate to s_operand.
1358
1359 2003-08-23  Dale Johannesen  <dalej@apple.com>
1360         * calls.c (emit_library_call_value_1): Fix obvious errors in
1361         arguments to emit_group_store.
1362
1363 2003-08-23  Jason Eckhardt  <jle@rice.edu>
1364
1365         * calls.c (emit_library_call_value_1): Remove code related
1366         to LIBGCC_NEEDS_DOUBLE.
1367         * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
1368         * doc/tm.texi: Likewise.
1369         * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
1370
1371 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
1372
1373         * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
1374
1375 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
1376
1377         * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
1378         as well.  Put memory references in the varargs alias set.
1379         (mips_expand_prologue): Remove varargs handling from here.
1380
1381 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
1382
1383         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
1384         s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
1385         s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
1386         for function pointer calls.
1387         * config/s390/s390.md ("*negdi2_31"): Likewise.
1388
1389 2003-08-23  Roger Sayle  <roger@eyesopen.com>
1390
1391         * combine.c (apply_distributive_law): Correct comment.
1392
1393 2003-08-23  Jason Eckhardt  <jle@rice.edu>
1394
1395         * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
1396
1397 2003-08-22  Jason Eckhardt  <jle@rice.edu>
1398
1399         * config/i860/i860.c (i860_build_va_list): Create the va_decl
1400         declaration.  Document the va_list structure.
1401         (i860_va_start): Initialize the va_list structure.
1402         (i860_va_arg): Rewrite completely.
1403         * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
1404         * config/i860/varargs.asm: Do not allocate or initialize
1405         a va_list.  Return the address of the register save area.
1406
1407 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
1408
1409         * config/iq2000/iq2000.c: Fix comment typos.
1410         * config/iq2000/iq2000.md: Likewise.
1411
1412 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
1413
1414         * config/iq2000/iq2000.c: Follow spelling conventions.
1415         * config/iq2000/iq2000.h: Likewise.
1416         * config/mn10300/mn10300.c: Likewise.
1417
1418 2003-08-22  Jason Eckhardt  <jle@rice.edu>
1419
1420         * config/i860/i860.c (output_move_double): Don't set latehalf
1421         to zero for CONST_INT (since it could be, e.g., -1).
1422
1423         * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
1424         (MODSI3_LIBCALL): ...with this one.
1425         (UREMSI3_LIBCALL): Replace this macro...
1426         (UMODSI3_LIBCALL): ...with this one.
1427
1428 2003-08-22  Jason Eckhardt  <jle@rice.edu>
1429
1430         * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
1431         (output_delayed_branch): Remove prototype.
1432         (single_insn_src_p): Remove prototype.
1433         * config/i860/i860.c (single_insn_src_p): Remove function.
1434         (output_delayed_branch): Remove function.
1435         (output_delay_insn): Remove function.
1436         (va_start): Remove unconditional test and dead code, re-format.
1437         Fix coding style and spelling problems in various comments.
1438         * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
1439         (blockage pattern): ...and use it here.
1440         (all define_peephole patterns related to delayed branches): Remove.
1441         Fix coding style and spelling problems in various comments.
1442
1443 2003-08-22  Jason Eckhardt  <jle@rice.edu>
1444
1445         * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
1446         Remove all uses of the PARAMS macro.  Remove superflous prototypes.
1447         Convert all function definitions from traditional to ISO C90 syntax.
1448         * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
1449         with 'GCC'.  Remove all uses of the PARAMS macro.
1450         * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
1451         * config/i860/i860.md: Likewise.
1452         * config/i860/sysv4.h: Likewise.
1453         * config/i860/varargs.asm: Likewise.
1454
1455 2003-08-22  Jason Eckhardt  <jle@rice.edu>
1456
1457         * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
1458         argument.
1459         (tdesc_section): Add prototype.
1460         Update copyright dates.
1461         * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
1462         (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
1463         (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
1464         (targetm): Likewise.
1465         (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
1466         for '%d' where necessary.
1467         (i860_va_start): Remove 'stdarg_p' argument.  Make conditional checks
1468         on 'stdarg_p' unconditional.  Divide current_function_args_info.ints
1469         by UNITS_PER_WORD when referencing (likewise for .floats).
1470         (I860_SVR4_VARARGS): Rename...
1471         (I860_SVR4_VA_LIST): ...to this.
1472         Call build() with 't' rather than 'field'.
1473         (i860_rtx_costs): New function.
1474         (TARGET_RTX_COSTS): Define.
1475         (i860_internal_label): New function.
1476         (TARGET_ASM_INTERNAL_LABEL): Define.
1477         (i860_file_start): New function.
1478         Update copyright dates.
1479         * config/i860/i860.h (CPP_PREDEFINES): Remove.
1480         (TARGET_CPU_CPP_BUILTINS): Define.
1481         (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
1482         (CONST_COSTS): Remove (and move code to i860_rtx_costs).
1483         (ASM_FILE_START): Remove.
1484         (ASM_FILE_START_1): Remove.
1485         (ASM_GLOBALIZE_LABEL): Remove.
1486         (ASM_OUTPUT_INTERNAL_LABEL): Remove.
1487         (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
1488         with targetm.asm_out.internal_label.
1489         Update copyright dates.
1490         * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
1491         (CPP_PREDEFINES): Remove.
1492         (TARGET_OS_CPP_BUILTINS): Define.
1493         (GLOBAL_ASM_OP): Define.
1494         (ASM_FILE_START): Remove.
1495         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
1496         (TARGET_ASM_FILE_START): Define.
1497         Update copyright dates.
1498
1499 2003-08-22  Jason Eckhardt  <jle@rice.edu>
1500
1501         * gcc/config.gcc (i860-*-sysv4*): Add target.
1502         * config/i860/i860-protos.h: New.
1503         * config/i860/i860.c: New.
1504         * config/i860/i860.h: New.
1505         * config/i860/i860.md: New.
1506         * config/i860/sysv4.h: New.
1507         * config/i860/varargs.asm: New.
1508         * config/i860/x-sysv4: New.
1509
1510 2003-08-22  Jason Eckhardt  <jle@rice.edu>
1511
1512         * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
1513         Remove all uses of PARAMS macro.
1514         Convert all function definitions to ISO C90 syntax.
1515         * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
1516         * config/pa/fptr.c: Likewise.
1517         * config/pa/lib2funcs.asm: Likewise.
1518         * config/pa/long_double.h: Likewise.
1519         * config/pa/milli64.S: Likewise.
1520         * config/pa/pa-64.h: Likewise.
1521         * config/pa/pa-hpux.h: Likewise.
1522         * config/pa/pa-hpux10.h: Likewise.
1523         * config/pa/pa-hpux11.h: Likewise.
1524         * config/pa/pa-linux.h: Likewise.
1525         * config/pa/pa-modes.def: Likewise.
1526         * config/pa/pa-osf.h: Likewise.
1527         * config/pa/pa-pro-end.h: Likewise.
1528         * config/pa/pa.md: Likewise.
1529         * config/pa/pa32-linux.h: Likewise.
1530         * config/pa/pa64-linux.h: Likewise.
1531         * config/pa/pa64-hpux.h: Likewise.
1532         * config/pa/pa64-regs.h: Likewise.
1533         * config/pa/quadlib.c: Likewise.
1534         * config/pa/rtems.h: Likewise.
1535         * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
1536         all uses of the PARAMS macro.
1537         * config/pa/pa.h: Likewise.
1538         * config/pa/som.h: Likewise.
1539
1540         * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
1541         Remove all uses of PARAMS macro.
1542         Convert all function definitions to ISO C90 syntax.
1543         * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
1544         Remove all uses of PARAMS macro.
1545         * config/iq2000.h: Remove all uses of PARAMS macro.
1546         * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
1547
1548 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
1549
1550         * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
1551         * config/s390/s390.c (gen_consttable): Remove.
1552         (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
1553         (s390_output_pool_entry): New function.
1554         * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
1555         UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
1556         UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
1557         (UNSPECV_POOL_ENTRY): ... this new constant.
1558         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
1559         "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
1560         ("*pool_entry"): ... and replace by this new insn.
1561         ("literal_pool_31"): Do not emit anchor label if pool empty.
1562
1563         * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
1564         (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
1565         (s390_fixup_clobbered_return_reg): Remove.
1566         (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
1567         (s390_return_addr_rtx): Always retrieve return address from save area
1568         slot.  Use save_return_addr_p to force slot to be filled.
1569         (s390_emit_prologue): Remove has_hard_reg_initial_val test.
1570
1571 2003-08-22  Chris Demetriou  <cgd@broadcom.com>
1572
1573         * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
1574         (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
1575         * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
1576         around SB-1 errata if TARGET_FIX_SB1 is set.
1577         (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
1578         * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
1579
1580 2003-08-22  Roger Sayle  <roger@eyesopen.com>
1581
1582         * hashtable.c (ht_expand): Avoid calculating rehash for the common
1583         case that the first probe hits an empty hash table slot.
1584
1585 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
1586
1587         * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
1588
1589 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
1590
1591         * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
1592         (ptr_extend_plus_imm): ... this.
1593         * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
1594         optimization in C++.
1595         (ia64_output_mi_thunk): Support ILP32 mode.
1596
1597 2003-08-22  bernardo innocenti  <bernie@develer.com>
1598
1599         * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
1600         function.
1601         * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
1602
1603 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
1604
1605         * config/i386/i386.c (const_int_1_operand): Simplify an
1606         integer comparison.
1607
1608 2003-08-22  Alan Modra  <amodra@bigpond.net.au>
1609
1610         * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
1611         * config/rs6000/ppc64-fp.c: Likewise.
1612
1613 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
1614
1615         * cfgcleanup.c: Fix comment typos.
1616         * emit-rtl.c: Likewise.
1617         * optabs.c: Likewise.
1618         * ra-build.c: Likewise.
1619         * rtlanal.c: Likewise.
1620         * tree.h: Likewise.
1621
1622 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
1623
1624         * c-decl.c: Fix comment formatting.
1625         * cfgrtl.c: Likewise.
1626         * combine.c: Likewise.
1627         * convert.c: Likewise.
1628         * dominance.c: Likewise.
1629         * dwarf2out.c: Likewise.
1630         * dwarfout.c: Likewise.
1631         * expmed.c: Likewise.
1632         * fold-const.c: Likewise.
1633         * gcov.c: Likewise.
1634         * genattrtab.c: Likewise.
1635         * ggc-common.c: Likewise.
1636         * mips-tfile.c: Likewise.
1637         * regmove.c: Likewise.
1638
1639 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
1640
1641         * builtin-attrs.def: Fix comment formatting.
1642         * c-pretty-print.c: Likewise.
1643         * diagnostic.h: Likewise.
1644         * langhooks.h: Likewise.
1645         * recog.c: Likewise.
1646         * simplify-rtx.c: Likewise.
1647         * tree.def: Likewise.
1648
1649 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
1650
1651         * config/m68k/m68k-protos.h: Convert to ISO C90.
1652         * config/m68k/m68k.c: Likewise.
1653
1654 2003-08-21  Bernardo Innocenti  <bernie@develer.com>
1655             Paul Dale  <pauli@snapgear.com>
1656             Peter Barada <peter@baradas.org>
1657
1658         * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
1659         ColdFire cores.
1660
1661 2003-08-21  Zack Weinberg  <zack@codesourcery.com>
1662
1663         * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
1664         * config.gcc (*-*-openbsd): Don't set tm_file.
1665         (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
1666         arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
1667         h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
1668         i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
1669         i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
1670         m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
1671         m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
1672         m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
1673         mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
1674         sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
1675         xscale-*-coff): Use explicit and complete lists of target headers
1676         to include.  Move definitions to tm_defines where appropriate.
1677         (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
1678         not-yet-contributed configuration.
1679
1680         * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
1681         * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
1682         * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
1683         * config/i386/nto.h, config/iq2000/iq2000.h,
1684         * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
1685         * config/m68k/linux.h, config/m68k/m68k-aout.h
1686         * config/m68k/m68k-none.h, config/m68k/m68kv4.h
1687         * config/m68k/netbsd.h, config/m68k/openbsd.h
1688         * config/m68k/sgs.h, config/mcore/mcore-pe.h,
1689         * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
1690         * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
1691         Remove includes of other target config headers, and
1692         definitions of macros moved to tm_defines lists.  Add #undefs
1693         where now necessary to prevent redefinition warnings.
1694
1695         * config/h8300/coff.h: New file split out of...
1696         * config/h8300/elf.h: ...here.
1697         * config/m68k/hp320base.h: New file split out of...
1698         * config/m68k/hp320.h: ...here.
1699         * config/rs6000/lynxbase.h: New file split out of...
1700         * config/rs6000/lynx.h: ...here.
1701
1702         * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
1703         * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
1704
1705         * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
1706         * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
1707         * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
1708         Remove unnecessary #ifndef.
1709         * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
1710         [under IN_LIBGCC2] with config/.
1711
1712 2003-08-21  Per Bothner  <pbothner@apple.com>
1713
1714         * cppfiles.c (stack_file):  Correctly pass return_at_eof parameter
1715         to cpp_push_buffer.
1716         * cpplex.c (_cpp_get_fresh_line):  Don't buffer->prev - handled
1717         by return_at_eof check.  Always call _cpp_pop_buffer at end.
1718
1719 2003-08-21  Kazu Hirata  <kazu@cs.umass.edu>
1720
1721         PR target/11805
1722         * config/h8300/h8300.md (two anonymous patterns): Remove.
1723
1724 2003-08-21  Richard Sandiford  <rsandifo@redhat.com>
1725
1726         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
1727         * config/mips/mips.c (function_arg_pass_by_reference): Never return
1728         true for n32 & n64.
1729
1730 2003-08-21  Josef Zlomek  <zlomekj@suse.cz>
1731
1732         * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
1733         and similarly in (A | C) == D where C & ~D != 0.
1734
1735 2003-08-20  Geoffrey Keating  <geoffk@apple.com>
1736
1737         PR 8180
1738         * configure.in: When testing with_libs and with_headers, treat
1739         'no' as unset.  Based on a patch by Dan Kegel <dank@kegel.com>.
1740         * configure: Regenerate.
1741
1742 2003-08-20  Peter Barada <peter@baradas.org>
1743
1744         * longlong.h (umul_ppmm): Add ColdFire support.
1745
1746 2003-08-20  Peter Barada <peter@baradas.org>
1747             Bernardo Innocenti  <bernie@develer.com>
1748
1749         * config/m68k/m68k-none.h: Introduce new ColdFire archs.
1750         * config/m68k/m68k.h: Likewise.
1751         * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
1752         * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
1753         * config/m68k/linux.h: Likewise.
1754         * config/m68k/m68k.c: Likewise.
1755         * config/m68k/m68k.md: Likewise.
1756         * config/m68k/m68kelf.h: Likewise.
1757         * config/m68k/netbsd-elf.h: Likewise.
1758         * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
1759
1760 2003-08-20  Bernardo Innocenti  <bernie@develer.com>
1761
1762         * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
1763         * config/m68k/m68k.md: Likewise.
1764
1765 2003-08-20  Mark Mitchell  <mark@codesourcery.com>
1766
1767         PR java/11996
1768         Revert this change:
1769         2003-08-19  Mark Mitchell  <mark@codesourcery.com>
1770         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
1771         types with precisions other than those given by native machine
1772         modes.
1773
1774 2003-08-20  Gunther Nikl  <gni@gecko.de>
1775
1776         * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
1777         selected by FSGLMUL_USE_S and FSGLDIV_USE_S
1778         * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
1779         * config/m68k/m68k.md (anonymous define_insn): Likewise
1780         * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
1781         * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
1782         code selected by NO_ASM_FMOVECR
1783
1784 2003-08-20  Gunther Nikl  <gni@gecko.de>
1785
1786         * config/m68k/m68k.c (output_move_const_into_data_reg,
1787         output_move_himode): unify MOTOROLA/MIT handling of moveq
1788         * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
1789         Likewise
1790
1791 2003-08-20  Gunther Nikl  <gni@gecko.de>
1792
1793         * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
1794         label name
1795         * config/m68k/m68k.c (m68k_output_function_epilogue): replace
1796         HOST_WIDE_INT_PRINT_DEC with %wd
1797
1798 2003-08-20  Loren James Rittle  <ljrittle@acm.org>
1799
1800         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
1801         redefine warning.
1802
1803 2003-08-20  Roger Sayle  <roger@eyesopen.com>
1804
1805         PR middle-end/11984
1806         * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
1807         operands before calling tree_int_cst_lt when performing associative
1808         transformations.
1809
1810 2003-08-20  Jason Merrill  <jason@redhat.com>
1811
1812         * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
1813         (EXPR_CHECK): Don't check for 'r' or 's' if we're
1814         checking IS_EXPR_CODE_CLASS.
1815         * calls.c (calls_function_1): Likewise.
1816         * fold-const.c (fold): Likewise.
1817         * tree.c (iterative_hash_expr): Likewise.
1818         * tree-inline.c (walk_tree, copy_tree_r): Likewise.
1819
1820 2003-08-20  Gunther Nikl  <gni@gecko.de>
1821
1822         * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
1823         depending on MOTOROLA_BSR
1824         * config/m68k/m68k.md (anonymous define_insn): Likewise
1825
1826 2003-08-20  Jason Merrill  <jason@redhat.com>
1827
1828         * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
1829         (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
1830         fold_trunc_transparent_mathfn, fold_builtin): Likewise.
1831         * dojump.c (do_jump): Likewise.
1832         * fold-const.c (operand_equal_p, fold): Likewise.
1833         (tree_expr_nonnegative_p): Likewise.
1834
1835         * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
1836         TYPE_USER_ALIGN for FIELD_DECLs.
1837
1838         * attribs.c (decl_attributes): Rebuild the function pointer type after
1839         changing the target type.
1840         * tree.c (get_qualified_type): Also check that the attributes match.
1841
1842 2003-08-19  Matt Kraai  <kraai@alumni.cmu.edu>
1843
1844         * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
1845         * objc/config-lang.in (stagestuff): ... to here.
1846
1847 2003-08-19  Mark Mitchell  <mark@codesourcery.com>
1848
1849         PR c++/11946
1850         * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
1851         NOP_EXPR) when necessary.
1852         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
1853         types with precisions other than those given by native machine
1854         modes.
1855
1856 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
1857
1858         * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
1859         because some macro is defined.
1860
1861         * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
1862         options.
1863         * config/i386/darwin.h (ASM_SPEC): New.
1864         (SUBTARGET_EXTRA_SPECS): New.
1865         * config/rs6000/darwin.h (ASM_SPEC): New.
1866         (SUBTARGET_EXTRA_SPECS): New.
1867         * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
1868         a cross-compiler between two different processors on Darwin.
1869         * configure: Regenerate.
1870
1871 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
1872
1873         * builtins.c: Fix comment typos.
1874         * c-common.c: Likewise.
1875         * c-decl.c: Likewise.
1876         * c-pretty-print.c: Likewise.
1877         * cfgbuild.c: Likewise.
1878         * cfglayout.c: Likewise.
1879         * cfgloopanal.c: Likewise.
1880         * cgraphunit.c: Likewise.
1881         * cppfiles.c: Likewise.
1882         * dwarfout.c: Likewise.
1883         * expr.c: Likewise.
1884         * fold-const.c: Likewise.
1885         * gcse.c: Likewise.
1886         * ggc-page.c: Likewise.
1887         * haifa-sched.c: Likewise.
1888         * pretty-print.c: Likewise.
1889         * tree.c: Likewise.
1890         * tree.h: Likewise.
1891         * value-prof.c: Likewise.
1892
1893 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
1894
1895         * c-decl.c: Follow spelling conventions.
1896         * cppfiles.c: Likewise.
1897
1898 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
1899
1900         * c-common.c: Fix comment formatting.
1901         * c-common.h: Likewise.
1902         * c-decl.c: Likewise.
1903         * cppinit.c: Likewise.
1904         * cpplib.h: Likewise.
1905         * emit-rtl.c: Likewise.
1906         * input.h: Likewise.
1907         * line-map.h: Likewise.
1908         * opts.c: Likewise.
1909         * opts.h: Likewise.
1910         * simplify-rtx.c: Likewise.
1911
1912 2003-08-19  Daniel Jacobowitz  <drow@mvista.com>
1913
1914         * unwind-c.c: Add libgcc-style exception.
1915         * unwind-dw2.c: Likewise.
1916         * unwind-pe.h: Likewise.
1917         * unwind-sjlj.c: Likewise.
1918         * unwind.inc: Likewise.
1919
1920 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
1921
1922         PR c/5582 PR c++/10538
1923         * langhooks-def.h (lhd_decl_uninit): Declare.
1924         (LANG_HOOKS_DECL_UNINIT): New macro.
1925         (LANG_HOOKS_INITIALIZER): Adjust.
1926         * langhooks.h (struct lang_hooks): Add new field
1927         decl_uninit.
1928         * langhooks.c (lhd_decl_uninit): Define.
1929         * c-common.c (c_decl_uninit_1): New function.
1930         (c_decl_uninit): New function.
1931         (warn_init_self): Define.
1932         * c-common.h (c_decl_uninit): Declare.
1933         (warn_init_self): Declare.
1934         * c.opt: Introduce -Winit-self.
1935         * c-opts.c (c_common_handle_options): Set warn_init_self.
1936         * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
1937         * objc/objc-lang.c  (LANG_HOOKS_DECL_UNINIT): Define.
1938         * function.c (uninitialized_vars_warning): Call the language hook.
1939         * doc/invoke.texi: Document -Winit-self.
1940
1941 2003-08-19  Chris Demetriou  <cgd@broadcom.com>
1942
1943         * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
1944         to use better predicates and constraints.  Define new
1945         instruction to handle "trap_if" with DI-mode arguments.
1946         (conditional_trap): FAIL if trap code is not 0.
1947
1948 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
1949
1950         * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
1951         strstr with $pb to a strcompare with "<pic base>"
1952         (ix86_output_addr_diff_elt): Output the real pic base.
1953
1954 2003-08-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1955
1956         * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
1957         (LANG_HOOKS_INITIALIZER): Correct.
1958         * c-lang.c: Likewise.
1959
1960 2003-08-19  Jan Hubicka  <jh@suse.cz>
1961
1962         * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
1963         (cgraph_varpool_mark_needed_node): Likewise.
1964         * cgraph.h (notice_global_symbol): Declare
1965         * varasm.c (notice_global_symbol): Break out from ...
1966         (assemble_start_function): ... here; update for variables.
1967         (assemble_variable): Use notice_global_symbol.
1968
1969 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
1970
1971         * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
1972         expect SFmode and DFmode arguments to be passed in FPRs,
1973         regardless of the underlying type.
1974
1975 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
1976
1977         PR target/11924
1978         * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
1979         (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
1980
1981 2003-08-18  Matt Kraai  <kraai@alumni.cmu.edu>
1982
1983         PR c/11207
1984         * c-typeck.c (set_init_index): Check for negative index.
1985
1986 2003-08-18  Bob Wilson  <bob.wilson@acm.org>
1987
1988         * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
1989         call0 ABI.
1990         * config/xtensa/crtn.asm (_init, _fini): Likewise.
1991         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
1992         __umodsi3, __modsi3): Likewise.
1993         * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
1994         $(INCLUDES).
1995
1996 2003-08-18  Aldy Hernandez  <aldyh@redhat.com>
1997
1998         * config/rs6000/spe.md ("*nabssf2_gpr"): New.
1999
2000 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
2001
2002         * config/mips/mips.md: Quote C code in braces.  Remove use of
2003         fake const0_rtx operands.  Remove double backslashes.  Use \;.
2004         Remove workarounds for bogus warnings.
2005
2006 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
2007
2008         * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
2009         (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
2010         rather than TARGET_MIPS4300.
2011         (mulsf3_internal, mulsf3_r4300): Likewise.
2012
2013 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
2014
2015         * config/mips/mips.md: Renumber unspecs.  Clean up comments.
2016
2017 2003-08-17  Roger Sayle  <roger@eyesopen.com>
2018
2019         * simplify-rtx.c (associative_constant_p): New function to test
2020         whether an RTX expression is an immediate constant.
2021         (simplify_associative_operation): New function to perform some
2022         reassociation optimizations of associative binary expressions.
2023         (simplify_binary_operation): Use simplify_associative_operation
2024         to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
2025         Floating point expressions are only reassociated when unsafe
2026         math optimizations are permitted.
2027
2028 2003-08-17  Andreas Jaeger  <aj@suse.de>
2029
2030         * config/alpha/alpha.md: Remove usage of PARAMS.
2031
2032         * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
2033         * config/i386/i386-interix.h: Likewise.
2034         * config/i386/winnt.c: Likewise.
2035         * config/i386/cygming.h: Likewise.
2036         * config/i386/cygwin2.c: Likewise.
2037         * config/darwin.c: Likewise.
2038         * config/darwin-c.c: Likewise.
2039         * config/darwin-protos.h: Likewise.
2040         * config/darwin.h: Likewise.
2041         * config/s390/s390-protos.h: Likewise.
2042         * config/s390/s390.c: Likewise.
2043         * config/ia64/ia64.c: Likewse
2044         * config/ia64/ia64-protos.h: Likewise.
2045         * config/ia64/ia64-c.c: Likewise.
2046
2047 2003-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2048
2049         * config/sparc/sparc.c: Convert to ISO C.
2050
2051         * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
2052         * config/sparc/sparc.c: Likewise.
2053
2054 2003-08-16  Nathan Sidwell  <nathan@codesourcery.com>
2055
2056         PR c++/11512
2057         * stmt.c (expand_expr_stmt_value): Don't warn about any void
2058         typed expression.
2059
2060 2003-08-16  Jan Hubicka  <jh@suse.cz>
2061
2062         * i386.c (ix86_fntype_regparm): Rename from ...
2063         (ix86_function_regparm): ... this one; add fastcall and local
2064         functions.
2065         (ix86_function_ok_for_sibcall): Update.
2066         (ix86_return_pops_args): Likewise.
2067         (init_cumulative_args): Likewise.
2068         (x86_can_output_mi_thunk): Likewise.
2069         (function_arg): Fix formating.
2070         (x86_this_parameter): Fix fastcall.
2071         (x86_output_mi_thunk): Likewise.
2072
2073         * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
2074         body as reachable; mark nested functions as needed too.
2075         (dump_cgraph): Do not output global.calls.
2076         * cgraph.h (cgraph_global_info): Kill.
2077         * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
2078         (record_call_1): Speedup.
2079         (cgraph_analyze_function): Break out from ...; compute inlining
2080         parameters.
2081         (cgraph_finalize_compilation_unit): ... here.
2082         (cgraph_mark_inline): Kill computation of calls.
2083         (cgraph_decide_inlining): Do not compute most of initial values.
2084
2085 2003-08-14  Roger Sayle  <roger@eyesopen.com>
2086
2087         * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
2088         to negate if either operand is easy to negate, if we don't care
2089         about sign-dependent rounding.
2090         (negate_expr): Make the logic to negate a REAL_CST explicit.
2091         Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
2092         that's easy to negate, if we don't honor sign-dependent rounding.
2093         (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
2094         negate, and the symmetric A * -B as -A * B if A is easy to negate.
2095         (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
2096         -C/D if B and C are cheap to negate.  Add an explicit rule to
2097         optimize X/-1.0 as -X when we don't care about signaling NaNs.
2098
2099 2003-08-14  Zack Weinberg  <zack@codesourcery.com>
2100
2101         * Makefile.in (tm_file): Rename tm_include_list.
2102         (tm_p_file): Rename tm_p_include_list.
2103         (build_xm_file): Rename build_xm_include_list.
2104         (host_xm_file): Rename host_xm_include_list.
2105         (xm_file): Rename xm_include_list.
2106         (xm_file_list): Add to be substituted.
2107         (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
2108         Update to match.
2109         (bt-load.o): Add missing dependency on $(TM_H).
2110         * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
2111         For each of tm_file, tm_p_file, xm_file, host_xm_file, and
2112         build_xm_file, generate both *_file_list and *_include_list
2113         values from it.  (xm_file_list was formerly not being generated.)
2114         In *_include_list, prefix the names of all headers found in
2115         $(srcdir)/config with config/.  In each loop, consider only
2116         the special case files that can actually appear in that list.
2117         AC_SUBST all *_file_list and all *_include_list variables; do
2118         not AC_SUBST the plain *_file variables.
2119         * configure: Regenerate.
2120
2121 2003-08-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2122
2123         * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
2124
2125 2003-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2126
2127         * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
2128         direct calls.
2129         (attr_length_call): Include it here.  Improve length estimate for
2130         local calls.
2131         (output_call): Use targetm.binds_local_p.
2132
2133 2003-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2134
2135         * builtins.c (CASE_MATHFN): New helper macro.
2136         (mathfn_built_in): Simplify and sort.
2137
2138         * protoize.c (substr): Delete, callers changed to `strstr'.
2139
2140 2003-08-13  Zack Weinberg  <zack@codesourcery.com>
2141
2142         * config.gcc (iq2000*-*-elf*): Don't set xm_file.
2143         * config/iq2000/xm-iq2000.h: Delete file.
2144
2145 2003-08-13  Geoffrey Keating  <geoffk@apple.com>
2146
2147         * gengtype.c (walk_type): Process a subobject before processing
2148         the pointer that points to the subobject.
2149
2150 2003-08-13  Per Bothner  <pbothner@apple.com>
2151
2152         * regclass.c (init_reg_modes):  Make non-static.
2153         Rename to init_reg_modes_once per new naming convention.
2154         (init_regs):  Don't call init_reg_modes here.
2155         * emit-rtl.c (init_emit_once):  Call init_reg_modes_once here instead.
2156         * rtl.h (init_reg_modes_once):  New declaration.
2157         * toplev.c (backend_init):  Call init_regs after init_emit_once.
2158
2159 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
2160
2161         * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
2162         special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
2163
2164 2003-08-13  J"orn Rennecke <joern.rennecke@superh.com>
2165
2166         * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
2167         * sh.md (load_ra): Change insn predicate to TARGET_SH1.
2168
2169 2003-08-13  Dale Johannesen  <dalej@apple.com>
2170
2171         * config/rs6000/rs6000.md (ctrsi, ctrdi):  Reenable
2172         handling of decrement-and-branch farther than 32 bits.
2173
2174 2003-08-12  Kelley Cook  <kelleycook@wideopenwest.com>
2175
2176         * configure.in (make_compare_target): Move test to ...
2177         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
2178         * configure: Regenerate.
2179
2180 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
2181
2182         * config/mips/iris6.h: Convert to C90 prototypes.
2183         * config/mips/irix6-libc-compat.c: Likewise.
2184         * config/mips/mips-protos.h: Likewise.
2185         * config/mips/mips.c: Likewise.
2186
2187 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
2188
2189         fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.  Enable
2190         for selected machines.  Comment heavily.
2191         fixinc/fixincl.x: Rebuild.
2192         fixinc/tests/base/fs/rfs/rf_cache.h: New file.
2193
2194 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
2195
2196         * config/mips/mips.h: Tweak various comments.
2197         * config/mips/mips.c: Likewise.
2198
2199 2003-08-11  James E Wilson  <wilson@tuliptree.org>
2200
2201         PR optimization/11319
2202         PR target/10021
2203         * alias.c (find_base_value, case REG): Return 0 not src if no base
2204         found.
2205
2206 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2207
2208         * gcse.c (gmalloc): Fix last change.
2209
2210 2003-08-11  Roger Sayle  <roger@eyesopen.com>
2211
2212         * simplify-rtx.c (simplify_binary_operation): Replace calls to
2213         gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
2214         and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
2215         gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
2216
2217 2003-08-11  Roger Sayle  <roger@eyesopen.com>
2218
2219         * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
2220         * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
2221         typecode for an ABS_EXPR.
2222
2223         * doc/c-tree.texi: Document ABS_EXPR.
2224
2225 2003-08-11  Roger Sayle  <roger@eyesopen.com>
2226
2227         * fold-const.c (fold): Optimize any associative floating point
2228         operator with -funsafe-math-optimizations, not just MULT_EXPR.
2229
2230 2003-08-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2231
2232         * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
2233         information in SHmedia case too.
2234         (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
2235         Likewise.
2236         (__set_fpscr): Use an access via GOT for PIC case.
2237
2238 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
2239
2240         * configure.in (intermodule): Make switch test more portable.
2241         * configure: Regenerate.
2242
2243 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
2244
2245         * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
2246         (restrap): Likewise.
2247
2248 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2249
2250         * gcse.c (gmalloc): Argument is a size_t.  Add ATTRIBUTE_MALLOC.
2251         (grealloc): Size argument is a size_t.
2252         (gcalloc): New function.  Use throughout in lieu of
2253         gmalloc/memset.
2254
2255         * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
2256         xmalloc/memset.
2257         * config/ia64/ia64.c (ia64_reorg): Likewise.
2258         * conflict.c (conflict_graph_new): Likewise.
2259         * fixinc/fixincl.c (run_compiles): Likewise.
2260         * genattrtab.c (optimize_attrs): Likewise.
2261         * genrecog.c (new_decision): Likewise.
2262         * haifa-sched.c (schedule_block): Likewise.
2263         * hashtable.c (ht_create): Likewise.
2264
2265 2003-08-11  Bob Wilson  <bob.wilson@acm.org>
2266
2267         * config/xtensa/lib2funcs.S: Fix whitespace.
2268         * config/xtensa/xtensa.md (all insns and expanders): Use brace block
2269         syntax where appropriate.  Remove unnecessary backslash escapes.
2270         Reformat comments and fix some code formatting.
2271         (extendqisi2): Rearrange conditional.
2272         (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
2273         *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
2274         of fatal_insn.
2275
2276 2003-08-11  Richard Sandiford  <rsandifo@redhat.com>
2277
2278         * config/mips/mips.c: Various formatting fixes.
2279         (override_options): Resync -mtune handling with gas.
2280         (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
2281         * config/mips/mips.h: More formatting fixes.
2282         (mips_abi): Move declaration.
2283         * config/mips/mips.md (exception_receiver): Add mode to
2284         unspec_volatile.
2285
2286 2003-08-11  Aldy Hernandez  <aldyh@redhat.com>
2287
2288         * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
2289         evsplatfi here.
2290         (bdesc_1arg): Remove evsplati and evsplatfi.
2291
2292 2003-08-11  J"orn Rennecke <joern.rennecke@superh.com>
2293
2294         * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
2295         into account.
2296
2297 2003-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2298
2299         * builtins.c (expand_builtin_strcat): Optimize constant strings.
2300
2301 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2302
2303         * pretty-print.c (pp_base_indent): Rename from pp_indent.
2304         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
2305         (struct c_pretty_print_info): Add more fields.
2306         (pp_c_left_paren): Move to c-pretty-print.c.
2307         (pp_c_right_paren): Likewise.
2308         (pp_c_left_brace): Likewise.
2309         (pp_c_right_brace): Likewise.
2310         (pp_c_left_bracket): Likewise.
2311         (pp_c_right_bracket): Likewise.
2312         (pp_c_declarator): Declare.
2313         (pp_c_direct_declarator): Likewise.
2314         (pp_c_specifier_qualifier_list): Likewise.
2315         (pp_c_type_id): Likewise.
2316         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
2317         (pp_c_type_qualifier_list): New.
2318         (pp_c_pointer): Likewise.
2319         (pp_c_parameter_type_list): Likewise.
2320         (pp_c_function_definition): Likewise.
2321         (pp_c_id_expression): Likewise.
2322         (pp_c_simple_type_specifier): Tidy.
2323         (pp_c_unary_expression): Likewise.
2324         (pp_c_expression): Likewise.
2325         (pp_c_pretty_printer_init): Likewise.
2326         (pp_c_specifier_qualifier_list): Rework..
2327         (pp_c_abstract_declarator): Likewise.
2328         (pp_c_postfix_expression): Likewise.
2329         (pp_c_primary_expression): Likewise.
2330         (pp_c_cast_expression): Likewise.
2331         (pp_c_direct_abstract_declarator): Likewise.
2332         (pp_c_storage_class_specifier): Likewise.
2333         (pp_c_function_specifier): Likewise.
2334         (pp_c_declaration_specifiers): Likewise.
2335         (pp_c_direct_declarator): Likewise.
2336         (pp_c_declarator): Likewise.
2337         (pp_c_declaration): Likewise.
2338         (pp_c_statement): Likewise.
2339         (pp_c_integer_constant): Rename from pp_c_integer_literal.
2340         (pp_c_character_constant): Rename from pp_c_character_literal.
2341         (pp_c_bool_constant): Rename from pp_c_bool_literal.
2342         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
2343         (pp_c_floating_constant): Rename from pp_c_real_literal.
2344         (pp_c_constant): Rename from pp_c_literal.
2345         * c-lang.c: Include diagnostic.h and c-pretty-print.h
2346         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
2347         (c_initialize_diagnostics): New.
2348         * Makefile.in (c-lang.o): Update dependency.
2349
2350 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
2351
2352         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
2353
2354 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
2355
2356         * config/mips/mips.c (mips_no_mips16_string): Remove.
2357         (override_options): Don't handle -mips16 as part of -mipsN.
2358         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
2359         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
2360         (TARGET_OPTIONS): Remove -mno-mips16.
2361
2362 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
2363
2364         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
2365         (coprocessor2_operand): Likewise.
2366         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
2367         (lookup_name): Remove declaration.
2368         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
2369         (mips16, mips_abicalls): Remove.
2370         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
2371         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
2372         (coprocessor_operand, coprocessor2_operand): Remove.
2373         (override_options): Don't set mips16 or mips_abicalls.
2374         (print_operand): Don't expect SIGN_EXTEND operands.
2375         (mips_secondary_reload_class): Likewise.
2376         (mips_output_conditional_branch): Remove disabled long-branch code.
2377         * config/mips/mips.h (call_used_regs): Remove declaration.
2378         (may_call_alloca): Likewise.
2379         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
2380         (mips_abicalls, mips16): Remove declarations.
2381         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
2382         (CC1_SPEC): Remove outdated comment.
2383         (MIPS_VERSION, MACHINE_TYPE): Remove.
2384         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2385         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
2386         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
2387         (PUSH_ROUNDING): Likewise.
2388         (ASSEMBLER_SCRATCH_REGNUM): Remove.
2389         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
2390         and mips16 with TARGET_MIPS16.
2391
2392 2003-08-09  Per Bothner  <pbothner@apple.com>
2393
2394         * cppinit.c (cpp_read_main_file):  Split out source-independent
2395         initialization to separate function ...
2396         (cpp_post_options):  New function.
2397         * cppfiles.c (cpp_stack_file):  Rename public name to ...
2398         (_cpp_stack_file):  New internal function name.
2399         * cpplib.h:  Update accordingly.
2400         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
2401         (cpp_read_main_file):  Don't initialize line here.
2402         * c-opts.c (c_common_post_options):  Call cpp_post_options.
2403         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
2404         * fix-header.c (read_scan_file):  Call cpp_post_options.
2405
2406 2003-08-09  Per Bothner  <per@bothner.com>
2407
2408         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
2409
2410 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2411
2412         * pa.c (pa_asm_output_mi_thunk): Fix typo.
2413
2414 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
2415
2416         PR preprocessor/11839
2417         * cppfiles.c (open_file): Handle ENOTDIR.
2418
2419 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
2420
2421         PR target/11699
2422         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
2423
2424 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2425
2426         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
2427         source/destination is not a register operand.
2428
2429 2003-08-08  Richard Henderson  <rth@redhat.com>
2430
2431         PR target/11535
2432         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
2433         RETURN_ADDRESS_POINTER_REGNUM.
2434         (ia64_expand_prologue): Don't frob it.
2435         (ia64_output_function_epilogue): Likewise.
2436         (ia64_return_addr_rtx): New.
2437         (ia64_split_return_addr_rtx): New.
2438         * config/ia64/ia64-protos.h: Update.
2439         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
2440         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
2441         (GENERAL_REGNO_P): Don't check it.
2442         (AR_*_REGNUM): Renumber.
2443         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
2444         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
2445         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
2446         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
2447         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
2448         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
2449         (movdi_ret_addr): New.
2450
2451 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
2452
2453         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
2454
2455 2003-08-08  Roger Sayle  <roger@eyesopen.com>
2456
2457         * tree.h (get_identifier) Define a macro form of get_identifier
2458         that calls get_identifier_with_length when the string is constant.
2459         (get_identifier_with_length): Change type of second argument to
2460         size_t in prototype.
2461         * stringpool.c (get_identifier): Undefine the macro before giving
2462         the function definition.
2463         (get_identifier_with_length): Change  type of second argument to
2464         size_t in function definition.
2465         * hashtable.c (calc_hash): Change type of second argument to size_t.
2466         (ht_lookup): Change type of third argument to size_t.  Reorganize
2467         to speed-up the cases where the hash table slot is empty, or the
2468         first probe matches (i.e. there isn't a collision).
2469         * hashtable.h (ht_lookup): Adjust function prototype.
2470
2471 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
2472
2473         PR target/9697
2474         PR target/11777
2475         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
2476
2477 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
2478
2479         * common.opt: Add debug switches.
2480         * flags.h (use_gnu_debug_info_extensions): Boolify.
2481         * opts.c (write_symbols, debug_info_level,
2482         use_gnu_debug_info_extensions): Move from toplev.c.
2483         (set_debug_level): New.
2484         (common_handle_options): Handle debug switches.
2485         (print_help): Display target options directly.
2486         * toplev.c (debug_hooks): Don't initialize.
2487         (write_symbols, debug_info_level,
2488         use_gnu_debug_info_extensions): Move to opts.c.
2489         (debug_args, display_help, decode_g_option): Remove.
2490         (process_options): Set no debug if level zero here,
2491         and no-debug-hooks.  Error here if impossible debug format selected.
2492         * toplev.h (display_help, decode_g_option): Remove.
2493
2494 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
2495
2496         * tree.c (get_file_function_name_long): Fix size of alloca() area.
2497
2498 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
2499
2500         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
2501         and gcc_cv_prog_cmp_skip.
2502         * configure: Regenerate.
2503
2504 2003-08-08  Stan Cox  <scox@redhat.com>
2505
2506         * config/iq2000: New port.
2507         * config.gcc (iq2000-*-elf): Added.
2508         * doc/install.texi (Specific):  Add iq2000 description.
2509
2510 2003-08-08  Andreas Schwab  <schwab@suse.de>
2511
2512         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
2513         and insert missing empty argument.
2514         * configure: Regenerate.
2515
2516 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2517
2518         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
2519         (attr_length_millicode_call): Likewise.
2520         (attr_length_call): Likewise.  Revise some maximum insn lengths.
2521         (attr_length_indirect_call): Likewise.
2522         (output_call): Fix thinko that added extra nop.
2523         * pa.h (IN_NAMED_SECTION_P): Define.
2524
2525         PR c++/11712
2526         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
2527         __STDC_EXT__ when using C++ dialect.
2528
2529 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
2530
2531         * sh.c (calc_live_regs): If the return address pointer is live,
2532         force pr live.
2533         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
2534         for saves / restores.
2535         (sh_expand_epilogue): If sh_media_register_for_return returns a
2536         register number, flag the instructions that restores PR_MEDIA_REG
2537         as possibly dead.
2538         Remove dead update of offset.
2539         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
2540         we can use the result of get_hard_reg_initial_val.
2541         * sh.md (UNSPEC_RA): New constant.
2542         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
2543         (load_ra).  Handle UNSPEC_RA.
2544         (sibcall_media): Use PR_MEDIA_REG.
2545
2546         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
2547         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
2548         needs saving on SHmedia.
2549
2550 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
2551
2552         * config/s390/s390.md: Replace all occurrences of \\t with \t.
2553
2554 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
2555
2556         * local-alloc.c (combine_regs): Fix comment typo.
2557
2558 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
2559
2560         * c-decl.c (builtin_decls): Replace with first_builtin_decl
2561         and last_builtin_decl.
2562         (c_init_decl_processing): Initialize both.
2563         (c_reset_state): Iterate from first_builtin_decl to
2564         last_builtin_decl inclusive to reintroduce builtins.
2565
2566 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
2567
2568         * doc/extend.texi (Function Attributes): Document the IA-64 version
2569         of the "model" attribute.
2570
2571         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
2572         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
2573         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
2574
2575         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
2576         (ia64_encode_section_info): Likewise.
2577         (ia64_attribute_table): Add "model" attribute.
2578         (TARGET_ENCODE_SECTION_INFO): Define.
2579         (small_addr_symbolic_operand): New function.
2580         (got_symbolic_operand): Return 0 for a symbolref to an object
2581         in the small address area.
2582         (enum ia64_addr_area): New type.
2583         (small_ident1): New variable.
2584         (small_ident2): Likewise.
2585         (init_idents): New function.
2586         (ia64_get_addr_area): Likewise.
2587         (ia64_encode_addr_area): Likewise.
2588         (ia64_encode_section_info): Likewise.
2589         (ia64_expand_load_address): For symbolic references to objects in
2590         the small-address-area, load the address via gen_rtx_SET() (which,
2591         eventually, will expand into "addl").
2592
2593 2003-08-06  Per Bothner  <pbothner@apple.com>
2594
2595         * line-map.h (fileline):  New typedef.
2596         (struct line_map, linemap_add, linemap_lookup):  Use it.
2597         * input.h (struct location_s):  Comment notes that long-term we want
2598         to replace it by fileline.
2599
2600 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
2601
2602         Fix SHcompact exception handling:
2603         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
2604         by the prologue, return a MEM with return_address_pointer_rtx
2605         as address.
2606         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
2607         (RETURN_ADDR_OFFSET): Don't define.
2608         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
2609         registers that are visible in compact mode.  Show that SHmedia
2610         registers still exist in compact mode, even if there are not
2611         readily accessible.
2612         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
2613         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
2614         and DW_EH_PE_pcrel for pic data.
2615         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
2616         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
2617         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
2618         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
2619         * sh.md (movsi_media-1): New splitter.
2620
2621 2003-08-06  Graeme Peterson <gp@qnx.com>
2622
2623         * config/i386/nto.h: New.
2624         * config/i386/t-nto: New.
2625         * config.gcc (i[34567]86-*-nto-qnx*): New.
2626
2627 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
2628
2629         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
2630
2631 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
2632
2633         * calls.c (load_register_parameters): Arrange for call_fusage to
2634         report the whole register as used when shifting to the msb.
2635
2636 2003-08-05  Roger Sayle  <roger@eyesopen.com>
2637
2638         * builtins.c (expand_builtin): When not optimizing, call the library
2639         function for all builtins that have library functions (except alloca).
2640
2641 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
2642
2643         * c.opt: Introduce -fworking-directory.
2644         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
2645         * c-common.h (flag_working_directory): Declare.
2646         * c-common.c (flag_working_directory): Define.
2647         * c-opts.c (c_common_handle_options): Set it.
2648         (sanitize_cpp_opts): Set...
2649         * cpplib.h (struct cpp_options): ... working_directory option.
2650         (struct cpp_callbacks): Add dir_change.
2651         * cppinit.c (read_original_filename): Call...
2652         (read_original_directory): New.  Look for # 1 "directory//"
2653         and process it.
2654         (cpp_read_main_file): Call dir_change callback if working_directory
2655         option is set.
2656         * gcc.c (cpp_unique_options): Pass -g*.
2657         * c-lex.c (cb_dir_change): New.
2658         (init_c_lex): Set dir_change callback.
2659         * toplev.c (src_pwd): New static variable.
2660         (set_src_pwd, get_src_pwd): New functions.
2661         * toplev.h (get_src_pwd, set_src_pwd): Declare.
2662         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
2663         * dwarf2out.c (gen_compile_unit_die): Likewise.
2664         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
2665
2666 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2667
2668         * pretty-print.h (pp_set_line_maximum_length): Make macro.
2669         (pp_set_prefix): Likewise.
2670         (pp_destroy_prefix): Likewise.
2671         (pp_remaining_character_count_for_line): Likewise.
2672         (pp_clear_output_area): Likewise.
2673         (pp_formatted_text): Likewise.
2674         (pp_last_position_in_text): Likewise.
2675         (pp_emit_prefix): Likewise.
2676         (pp_append_text): Likewise.
2677         (pp_flush): Likewise.
2678         (pp_format_text): Likewise.
2679         (pp_format_verbatim): Likewise.
2680         (pp_tree_identifier): Tidy.
2681         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
2682         (pp_base_format_verbatim): Rename from pp_format_verbatim.
2683         (pp_base_flush): Rename from pp_flush.
2684         (pp_base_set_line_maximum_length): Rename from
2685         pp_set_line_maximum_length.
2686         (pp_base_clear_output_area): Rename from pp_clear_output_area.
2687         (pp_base_set_prefix): Rename from pp_set_prefix.
2688         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
2689         (pp_base_emit_prefix): Rename from pp_emit_prefix.
2690         (pp_base_append_text): Rename from pp_append_text.
2691         (pp_base_formatted_text): Rename from pp_formatted_text.
2692         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
2693         (pp_base_remaining_character_count_for_line): Rename from
2694         pp_remaining_character_count_for_line.
2695         * diagnostic.h (diagnostic_format_decoder): Tidy.
2696         (diagnostic_flush_buffer): Likewise.
2697         * c-pretty-print.h: (pp_c_string_literal): Declare.
2698         (pp_c_real_literal): Likewise.
2699         (pp_c_integer_literal): Likewise.
2700         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
2701         pp_identifier.
2702         (pp_c_character_literal): Tidy.
2703         (pp_c_string_literal): Make public.
2704         (pp_c_bool_literal): Likewise.
2705         (pp_c_integer_literal): Likewise.
2706         (pp_c_real_literal): Likewise.
2707
2708         * Makefile.in (C_PRETTY_PRINT_H): New variable.
2709         (c-pretty-print.o): Update dependence.
2710
2711 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
2712
2713         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
2714         ".set nomacro" state.
2715         (fix_truncsfsi2_macro): Likewise.
2716
2717 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
2718
2719         * tree.h (DID_INLINE_FUNC): Remove macro.
2720         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
2721         add tree check for FUNCTION_DECL.
2722         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
2723         (struct tree_decl): Rename inlined_function_flag to
2724         declared_inline_flag.
2725         * c-common.h (c_lang_decl): Remove.
2726         (DECL_ESTIMATED_INSNS): Remove.
2727         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
2728         (DECL_DECLARED_INLINE_P): Remove.
2729         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
2730         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
2731         (finish_function): Make uninlinable a bool.  Fixup call to
2732         tree_inlinable_function_p() and fix some code style issues.
2733         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
2734         * cgraph.c (dump_cgraph): Likewise.
2735         * cgraphunit.c (cgraph_decide_inlining): Likewise
2736         (cgraph_finalize_compilation_unit): Likewise.
2737         Also update call to tree_inlinable_function_p().
2738         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
2739         look at DECL_DECLARED_INLINE and reverse logic.
2740         * print-tree.c (print_node): Likewise.
2741         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
2742         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
2743         prototype.
2744         * tree-inline.c (inlinable_function_p): Split up in this function to
2745         check for basic inlining inhibiting conditions, and new
2746         limits_allow_inlining() function.  Warn if inlining is impossible
2747         because the inline candidate calls alloca or uses sjlj exceptions.
2748         (limits_allow_inlining): this new function to check if the inlining
2749         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
2750         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
2751         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
2752         Update prototypes.
2753         (tree_inlinable_function_p): Make a bool.  Update call to
2754         inlinable_function_p
2755         (expand_call_inline): Use limits_allow_inlining() when not in
2756         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
2757         instead see if the function was declared `inline'.
2758
2759 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
2760
2761         * gcse.c (try_replace_reg): Fix updating of note.
2762
2763 2003-08-04  Roger Sayle  <roger@eyesopen.com>
2764
2765         PR middle-end/11771
2766         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
2767         logic in negate_expr, i.e. we don't invert (A-B) for floating
2768         point types unless flag_unsafe_math_optimizations.
2769
2770 2003-08-04  Roger Sayle  <roger@eyesopen.com>
2771
2772         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
2773         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
2774         for floating point expressions with -ffast-math.
2775         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
2776         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
2777
2778 2003-08-04  Roger Sayle  <roger@eyesopen.com>
2779
2780         * c-common.c (flag_noniso_default_format_attributes): Delete.
2781         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
2782         (c_attrs_initialized): Delete.
2783         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
2784         always call c_init_attributes.
2785         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
2786         set c_attrs_initialized when done.
2787         (c_common_insert_default_attributes): Delete.
2788         * c-common.h (flag_noniso_default_format_attributes): Delete.
2789         (c_coomon_insert_default_attributes): Delete prototype.
2790         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
2791         flag_noniso_default_format_attributes.
2792
2793         * c-decl.c (c_insert_default_attributes): Delete.
2794         * c-tree.h (c_insert_default_attributes): Delete prototype.
2795
2796         * attribs.c (decl_attributes): Don't call insert_default_attributes
2797         langhook.  Update function description comment.
2798         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
2799         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
2800         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
2801         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
2802
2803         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
2804         define.
2805
2806 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
2807
2808         * config/mips/mips.c (override_options): Disable -G on targets that
2809         have no .section support.
2810         (mips_select_section): Use default_select_section for such targets.
2811
2812 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
2813
2814         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
2815         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
2816         * fixinc/fixincl.x: Rebuild.
2817         * fixinc/tests/base/regexp.h: New test.
2818
2819 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
2820
2821         * c-ppoutput.c (cb_line_change): Don't skip line changing while
2822         parsing macro arguments in the top-level context.
2823
2824 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
2825
2826         * config.in: Remove HAVE_LSTAT.
2827         * configure, configure.in: Don't test for lstat.
2828
2829 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2830
2831         * opts.c (decode_options): Do language-specific initialization for
2832         the global diagnostic context.
2833         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
2834         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
2835         (LANG_HOOKS_INITIALIZER): Adjust.
2836         * langhooks.h (struct lang_hooks): Add new field
2837         initialize_diagnostics.
2838         * langhooks.c (lhd_initialize_diagnostics): Define.
2839
2840 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2841
2842         * pretty-print.h:   Adjust macro definitions.
2843         * pretty-print.c (pp_newline): Rename to pp_base_newline.
2844         (pp_character): Rename to pp_base_character.
2845         (pp_string): Rename to pp_base_string.
2846         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
2847         (pp_newline):  Likewise.  Adjust.
2848         (pp_c_char): Adjust.
2849
2850 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2851
2852         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
2853         BUILT_IN_LLABS): Move to miscellaneous section.
2854
2855 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
2856
2857         PR preprocessor/11534
2858         * cppexp.c (parse_defined): Warn only if -pedantic.
2859
2860 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
2861
2862         * cppfiles.c (stack_file): Use file path.
2863
2864 2003-08-02  Roger Sayle  <roger@eyesopen.com>
2865
2866         * builtin-types.def (BT_SSIZE): New primitive type.
2867         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
2868         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
2869         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
2870         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
2871         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
2872         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
2873         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
2874         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
2875         few functions that define default attributes using it.
2876         * c-common.c (c_common_insert_default_attributes): Do nothing.
2877
2878         * doc/extend.texi: Document these "new" builtins.
2879
2880 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
2881
2882         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
2883         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
2884         when -mieee-fp set and -shared not set.
2885         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
2886
2887 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
2888
2889         * cppfiles.c (struct _cpp_file): Rename once_only_next to
2890         next_file.  Remove import and pragma_once, add once_only.
2891         (find_file): Add new file structures to the all_files list.
2892         (should_stack_file): Mark #import-ed files once-only, and
2893         don't stack them if the file has already been stacked.
2894         (_cp_mark_file_once_only): Simplify.
2895         * cpphash.h (struct cpp_reader): Rename once_only_files
2896         to all_files.  Rename saw_pragma_once to seen_once_only.
2897         (_cpp_mark_file_once_only): Update prototype.
2898         * cpplib.c (do_pragma_once): Update.
2899
2900 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
2901
2902         * cppfiles.c (ENOTDIR): Remove.
2903         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
2904         other than ENOENT here.
2905         (once_only_file_p): Rename should_stack_file.
2906         (find_file, open_file_failed, read_file_guts): Report errors
2907         with full path name.
2908         (read_file): Move pch handling to should_stack_file.
2909         (should_stack_file): Handle PCH and once-only issues, and
2910         reading the file.
2911         (stack_file): Don't do file reads.
2912
2913 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2914
2915         * libgcov.c (gcov_exit): Cleanup and fix.
2916         * profile.c (compute_value_histograms): Don't try to read profiles
2917         that are not present.
2918
2919 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2920
2921         * builtins.def: Categorize.
2922
2923         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
2924         Mind fp rounding.
2925         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
2926
2927 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
2928
2929         * config.gcc: Enable posix threads by default on darwin.
2930
2931 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
2932
2933         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
2934         even if nehedges1 is 0.
2935
2936 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
2937
2938         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
2939         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
2940         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
2941         and defintions.
2942
2943         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
2944         * fixinc/fixincl.x: Regenerate.
2945         * fixinc/tests/base/math.h: Regenerate to match test_text change.
2946
2947 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2948
2949         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
2950
2951 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2952
2953         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
2954         for accesses to exc_ptr.
2955
2956 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
2957
2958         * doc/sourcebuild.texi (Front End Directory): Don't make references
2959         to libsubdir, it's not part of the interface to frontends.
2960         * doc/install.texi (Configuration): Help users read faster by saying
2961         that GCC's configure options are the standard autoconf ones.
2962         Mention --libdir.  Update the default rules for finding the
2963         assembler.  Don't use libsubdir since we haven't said what it means.
2964         (Specific): In the Solaris 7 notes, update the place to put the
2965         assembler.
2966         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
2967         * doc/cpp.texi (Search Path): Actually, the search path
2968         depends on libdir, which can relocate with cpp.
2969         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
2970         now a private interface between the Makefile and the driver.
2971
2972 2003-08-01  Richard Henderson  <rth@redhat.com>
2973
2974         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
2975
2976         * varasm.c (lookup_constant_def): New function.
2977         * rtl.h (lookup_constant_def): Declare it.
2978         * dwarf2out.c (loc_descriptor_from_tree): Use it.
2979         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
2980
2981 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
2982
2983         * c-decl.c (gettags, pushdecl_function_level): Delete.
2984         (last_function_parm_vars): Rename last_function_parm_others.
2985         (current_function_parm_vars): Rename current_function_parm_others.
2986         (struct c_scope): Rewrite comment explaining this data structure.
2987         Add names_last, blocks_last, parms_last fields.  Rename
2988         incomplete_list to incomplete.
2989         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
2990         (poplevel): Ignore second argument.  No need to nreverse
2991         anything.  Restructure such that each list is processed
2992         exactly once.  Use 'const location_t *locus' syntactic sugar
2993         variable where useful.  Issue unused variable warnings
2994         ourselves, do not rely on function.c.
2995         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
2996         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
2997         (implicitly_declare): decl cannot be error_mark_node.
2998         (undeclared_variable): Manipulate scope structure directly.
2999         (c_make_fname_decl): Likewise.
3000         (getdecls, c_init_decl_processing): Fix comment.
3001         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
3002         for 'last' variable.
3003         (grokparms): No need to nreverse parms list.
3004         (store_parm_decls_newstyle): Set up the parms_last and
3005         names_last fields of the new scope too.
3006         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
3007         on parms to begin with; check this under ENABLE_CHECKING.  Set
3008         up parms_last.
3009         (check_for_loop_decls): Refer directly to current_scope->tags.
3010         Use consistent quote style in diagnostics.
3011         (c_write_global_declarations): The names list is not backward.
3012
3013         * c-common.h: Don't prototype gettags.
3014         * c-parse.in: Call poplevel with second argument 0 always.
3015
3016 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3017
3018         * builtins.def: Resort builtins.
3019
3020 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3021
3022         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
3023         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
3024         Prepend "__builtin_" onto NAME with string concatenation.  Remove
3025         explicit "__builtin_" from each macro call.
3026
3027         Reformat entire file.
3028
3029 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3030
3031         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
3032         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
3033
3034 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
3035
3036         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
3037         CCL1, or CCL2 modes with floating point operations.
3038
3039         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
3040         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
3041         "*subdf3_cconly"): New insns.
3042         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
3043
3044 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
3045
3046         * Makefile.in: Refine dependencies.
3047         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
3048         * c.opt: Update help for -Wimport.
3049         * cppfiles.c: Include hashtab.h.  Update comments.
3050         (stack_file): Read the file before updating dependencies.
3051         (once_only_file_p): Be smarter about marking once-only files.
3052         (_cpp_mark_file_once_only): Correct the check for existence on
3053         the list.
3054         (open_file_failed): Use name not path, which is NULL.
3055         * cpphash.h: Don't include hashtab.h.
3056         (struct _cpp_file): Remove.
3057         (struct cpp_reader): Update.
3058         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
3059         * cpplib.h (struct cpp_options): Remove warn_import.
3060         (cpp_simplify_path): Remove.
3061
3062 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
3063
3064         PR c++/11295
3065         * doc/extend.texi (Statement Expressions): Document C++ semantics.
3066
3067 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3068
3069         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
3070
3071 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3072
3073         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
3074         throughout.
3075         * builtins.def: Likewise.
3076
3077 2003-07-31  Jason Merrill  <jason@redhat.com>
3078
3079         * Makefile.in (bubblestrap): Don't require a previous full
3080         bootstrap.
3081
3082         * expr.c (mostly_zeros_p): No longer static.
3083         * tree.h: Declare it.
3084         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
3085         unless we need to do substitutions.
3086
3087 2003-07-31  Roger Sayle  <roger@eyesopen.com>
3088
3089         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
3090         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
3091         as pow(x,2.0) when the latter will be expanded back into x*x.
3092         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
3093         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
3094         pow can never set errno when used with an integer exponent.
3095         Always use expand_powi when exponent is -1, 0, 1 or 2.
3096         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
3097         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
3098         the pow forms of these expressions.
3099
3100 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
3101
3102         * Makefile.in (libexecdir): New.
3103         (libsubdir): Use gcc instead of gcc-lib.
3104         (libexecsubdir): New.
3105         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
3106         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
3107         gcc-lib.
3108         (installdirs): Make libexecsubdir.
3109         (install-common): Put executables in libexecsubdir.
3110         (itoolsdir): Use libexecsubdir.
3111         (itoolsdatadir): New.
3112         (install-mkheaders): Separate data files and executables.
3113         (install-collect2): Put executables in libexecsubdir.
3114         (uninstall): Remove libexecsubdir.
3115         * mkheaders.in: Update for new arrangement of files.
3116         (libexecdir): New.
3117         (libexecsubdir): New.
3118         (itoolsdir): Use libexecsubdir.
3119         (itoolsdatadir): New.
3120         * gcc.c (gcc_libexec_prefix): New.
3121         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
3122         (standard_exec_prefix_1): Use libexec.
3123         (standard_exec_prefix_2): New.
3124         (standard_libexec_prefix): New.
3125         (process_command): Update for new arrangement of files.  Compute
3126         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
3127
3128 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
3129
3130         * inclhack.def (stdio_va_list): Avoid bogus replacement which
3131         triggers on Interix.
3132         * fixincl.x: Regenerate.
3133
3134 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
3135
3136         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
3137         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
3138
3139 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3140
3141         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
3142
3143 2003-07-31  Per Bothner  <pbothner@apple.com>
3144
3145         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
3146         (add_input_filename):  New function.
3147         (handle_options):  Call add_input_filename directly instead of
3148         with a lang hook.
3149         * opts.h (in_fnames, num_in_fnames):  Moved here.
3150         (add_input_filename):  Declare.
3151         * c-decl.c:  Need to #include opts.h.
3152         * Makefile.in (c-decl.o):  Also depends on opts.h.
3153         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
3154         (c_common_handle_filename):  Replaced by add_input_filename.
3155         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
3156         Remove.
3157         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
3158         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
3159         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
3160         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
3161
3162 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3163
3164         * combine.c (try_combine): Set JUMP_LABEL for newly created
3165         unconditional jump.
3166
3167 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3168
3169         * fold-const.c (fold): Fold some comparisons of bit operations.
3170
3171 Thu Jul 31 19:49:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
3172
3173         * cgraph.c (create_edge): Fix typo.
3174         * i386.c (pic_symbolic_operand): Reorder tests.
3175
3176 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
3177
3178         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
3179         more fully.
3180         (Gcov Data Files): Update.
3181
3182 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3183
3184         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
3185         default.
3186
3187         * gthr-posix.c: New file.
3188         * gthr-posix.h: Define _REENTRANT if missing.
3189         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
3190
3191         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
3192         by gthr-posix.o.
3193         * config/alpha/t-osf-pthread: New file.
3194
3195         * fixinc/inclhack.def (alpha_pthread): New fix.
3196         * fixinc/fixincl.x: Regenerate.
3197         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
3198
3199         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
3200         warning.
3201         Fixes PR bootstrap/9330.
3202
3203 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3204
3205         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
3206         without GNU ld.
3207         Update comment.
3208         * configure: Regenerate.
3209
3210 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
3211
3212         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
3213         setter.
3214
3215 2003-07-30  Roger Sayle  <roger@eyesopen.com>
3216
3217         * builtins.def: Alphabetize.
3218
3219 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
3220
3221         * doc/c-tree.texi: Normalize spellings of "lowercase" and
3222         "uppercase".
3223         * doc/cpp.texi: Likewise.
3224         * doc/md.texi: Likewise.
3225         * doc/rtl.texi: Likewise.
3226         * doc/tm.texi: Likewise.
3227
3228 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
3229
3230         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
3231         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
3232         of cc1obj.
3233
3234 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
3235
3236         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
3237         macros before defining them.
3238
3239 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
3240
3241         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
3242         UNSPECV_BLOCKAGE): New constants.
3243         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
3244         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
3245         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
3246         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
3247
3248         (all insns and expanders): Write output control string as brace block
3249         where appropriate.  Remove \-escapes for doublequote characters.
3250
3251 Thu Jul 31 01:04:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
3252
3253         * gcse.c (insert_store): Fix typo in previous patch.
3254
3255 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
3256
3257         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
3258
3259 2003-07-30  Andi Kleen  <ak@muc.de>
3260
3261         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
3262
3263 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3264
3265         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
3266         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
3267         GCOV_N_VALUE_COUNTERS): New.
3268         * profile.c (compute_value_histograms): New static function.
3269         (branch_prob): Read back the value histograms.
3270         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
3271         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
3272         * value-prof.c: Add comment on reading the profile.
3273         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
3274         * doc/invoke.texi (-fprofile-values): Document behavior with
3275         -fbranch-probabilities.
3276
3277 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
3278
3279         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
3280
3281 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
3282
3283         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
3284         symbolically.
3285
3286 Wed Jul 30 19:12:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
3287
3288         * gcse.c (insert_store): Ignore fake edges.
3289
3290         * c-common.c (flag_vtable_gc): Kill.
3291         * c-common.g (flag_vtable_gc): Kill.
3292         * c-opts (c_common_handle_option): Kill.
3293         * c.opt (fvtable-gc): Kill.
3294         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
3295         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
3296         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
3297
3298         * invoke.texi (-ftable-gc): Kill documentation.
3299
3300         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
3301         just because function body is missing.
3302
3303         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
3304
3305 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
3306
3307         * unwind-sjlj.c: Fix typo in file description.
3308
3309 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
3310
3311         * calls.c (load_register_parameters): When shifting reg sized values
3312         to the msb, move the value to a reg first.
3313
3314 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
3315
3316         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
3317         * line-map.h (linemap_add): Update comments.
3318         * line-map.c (linemap_add): Update comments, interpret zero-length
3319         filename as "<stdin>".
3320
3321 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
3322
3323         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
3324
3325 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
3326
3327         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
3328         New static variables.
3329         (struct c_scope): Add parms and warned_forward_parm_decls
3330         fields; remove parm_order.
3331         (storedecls, storetags): Delete.
3332         (poplevel): Also clear bindings on the parms chain.
3333         (pushdecl): Handle forward declarations of parameters, and
3334         chain PARM_DECLs on the parms list, not the names list.
3335         (lookup_name_current_level): Check for PARM_DECLs on the parms
3336         list too.
3337         (push_parm_decl): Don't update parm_order.
3338         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
3339         warning, only once per parameter list, and set TREE_ASM_WRITTEN
3340         on the decls here.  Then move the forward decls to the names list.
3341         (grokparms): Set last_function_parm_vars.
3342         (get_parm_info): Don't use gettags or getdecls.  No need to
3343         extract non-parms from the parms list, or reorganize the parms
3344         list.  Feed nonparms back in the TREE_TYPE of the list node
3345         returned.  Issue only one error per parameter list for "void"
3346         appearing more than once in said parameter list.  Collapse
3347         parmlist_tags_warning into this function to avoid double scan
3348         of tags list.
3349         (start_function): Set current_function_parm_vars.
3350         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
3351         directly.  Get non-parms from current_function_parm_vars; no
3352         need to extract them from the parms chain.  Properly bind tags
3353         in the new scope.
3354         (store_parm_decls_oldstyle): No need to extract non-parameters
3355         from the parms chain, nor to store them back afterward.  Move
3356         declaration to top of function, restructure code reordering
3357         DECL_ARGUMENTS.
3358         (store_parm_decls): No need to save and restore warn_shadow.
3359         * c-parse.in: Don't call parmlist_tags_warning nor
3360         clear_parm_order.  Call mark_forward_parm_decls when forward
3361         parm decls are encountered.
3362         * c-tree.h: Prototype mark_forward_parm_decls; not
3363         clear_parm_order or parmlist_tags_warning.
3364
3365 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
3366
3367         * c-common.c (allow_pch): Remove.
3368         * c-common.h (allow_pch): Remove.
3369         (c_common_no_more_pch): Declare.
3370         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
3371         * c-pch.c: Include hosthooks.h.
3372         (c_common_valid_pch): Don't check allow_pch.
3373         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
3374         (c_common_no_more_pch): New.
3375         * ggc-common.c: Include hosthooks.h.
3376         (gt_pch_save): Call gt_pch_get_address.
3377         (gt_pch_restore): Call gt_pch_use_address.
3378         * hooks.c (hook_voidp_size_t_null): New.
3379         (hook_bool_voidp_size_t_false): New.
3380         * hooks.h (hook_voidp_size_t_null): New.
3381         (hook_bool_voidp_size_t_false): New.
3382         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
3383         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
3384         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
3385         HOST_HOOKS_GT_PCH_USE_ADDRESS.
3386         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
3387         gt_pch_use_address.
3388         * doc/hostconfig.texi (Host Common): Document
3389         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
3390         * Makefile.in (c-pch.o): Depend on hosthooks.h.
3391         (ggc-common.o): Likewise.
3392
3393         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
3394         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
3395         (pch_address_space): New.
3396         (darwin_rs6000_gt_pch_get_address): New.
3397         (darwin_rs6000_gt_pch_use_address): New.
3398
3399 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
3400
3401         PR preprocessor/11569
3402         PR preprocessor/11649
3403         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
3404         * cppfiles.c: Completely rewritten.
3405         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
3406         struct cpp_path is now struct cpp_dir.
3407         (remove_duplicates): Don't simplify path names.
3408         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
3409         cpp_stack_file.
3410         * cpphash.h: Include hashtab.h.
3411         (_cpp_file): Declare.
3412         (struct cpp_buffer): struct include_file is now struct _cpp_file,
3413         and struct cpp_path is now struct cpp_dir.  Rename members.
3414         (struct cpp_reader): Similarly.  New members once_only_files,
3415         file_hash, file_hash_entries, quote_ignores_source_dir,
3416         no_search_path, saw_pragma_once.  Remove all_include_files and
3417         max_include_len.  Make some members bool.
3418         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
3419         (_cpp_stack_file): Renamed from _cpp_read_file.
3420         (_cpp_stack_include): Renamed from _cpp_execute_include.
3421         (_cpp_init_files): Renamed from _cpp_init_includes.
3422         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
3423         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
3424         (cpp_read_next_file): Rename and move to cppfiles.c.
3425         (cpp_read_main_file): Update.
3426         * cpplib.c (run_directive): Update for renamed members.
3427         (do_include_common, _cpp_pop_buffer): Update.
3428         (do_import): Undeprecate #import.
3429         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
3430         * cpplib.h: Remove file_name_map_list.
3431         (cpp_options): Remove map_list.
3432         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
3433         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
3434
3435 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
3436
3437         * Makefile.in:  Make stamp-objdir safe for parallel builds.
3438
3439 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
3440
3441         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
3442         (info):  Depend on stmp-docobjdir.
3443
3444 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3445
3446         * configure: Regenerate.
3447
3448 Tue Jul 29 19:24:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
3449
3450         PR C++/11131
3451         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
3452         in !unit-at-a-time mode.
3453
3454 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
3455
3456         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
3457         main function.
3458
3459 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
3460
3461         PR c++/11667
3462         * c-common.c (shorten_compare): Take into account differences
3463         between C and C++ representation for enumeration types.
3464         * tree.h (set_min_and_max_values_for_integral_type): Declare.
3465         * stor-layout.c (set_min_and_max_values_for_integral_type): New
3466         function, broken out from ...
3467         (fixup_signed_type): ... here and ...
3468         (fixup_unsigned_type): ... here.
3469
3470 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
3471
3472         * c-decl.c: Update commentary, adjust blank lines throughout.
3473         (struct c_scope): Fix indentation.  Reorder members so
3474         outer-context pointers come first, booleans last.
3475         (duplicate_decls, define_label): Use a 'locus' variable for
3476         diagnostic locations in a few more places.
3477         (warn_if_shadowing): Un-split a conditional that fits on one line.
3478         (c_init_decl_processing): No need to clear current_scope and
3479         current_function_scope.
3480         (start_decl): Merge if/else if statements with same action.
3481         (push_parm_decl): Rename old_immediate_size_expand to use
3482         save_foo convention; save/restore around entire function.
3483         (grokdeclarator): Remove unnecessary braces.
3484
3485 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
3486             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
3487
3488         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
3489         when warn_declaration_after_statement.  Call pedwarn_c90, not
3490         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
3491         * c-common.c (warn_declaration_after_statement): Define.
3492         * c-common.h (warn_declaration_after_statement): Declare.
3493         * c.opt (Wdeclaration-after-statement): New.
3494         * c-errors.c (pedwarn_c90): New function.
3495         * c-opts.c (c_common_handle_option) <case
3496         OPT_Wdeclaration_after_statement>: New.
3497         * c-tree.h (pedwarn_c90): Declare.
3498         * doc/invoke.texi (Option Summary): Document
3499         -Wdeclaration-after-statement.
3500         (Warning Options): Ditto.
3501
3502 Mon Jul 28 20:13:06 CEST 2003  Jan Hubicka  <jh@suse.cz>
3503
3504         * i386.md (memory attribute) Avoid accessing uninitialized memory
3505         for ishift1 type instructions.
3506
3507 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
3508
3509         * configure.in (--enable-checking): Add fold category.
3510         (ENABLE_FOLD_CHECKING): Define if requested.
3511         * configure: Rebuilt.
3512         * config.in: Rebuilt.
3513         * doc/install.texi: Document it.
3514         * fold-const.c: Include md5.h.
3515         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
3516         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
3517         print_fold_checksum): New functions.
3518
3519         * fold-const.c (fold): Never modify argument passed to fold, instead
3520         change a copy and return it.
3521         * convert.c (convert_to_integer): Likewise.
3522
3523 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
3524
3525         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
3526         cleanup of junk after #else and #endif directives.  Collapse repeated
3527         clauses into for statment.
3528
3529         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
3530
3531 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
3532
3533         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
3534         (keep_next_if_subblocks): Rename next_is_function_body.
3535         (pushlevel): Adjust commentary.  Always set ->keep on the
3536         outermost level of a function.  Don't set ->keep_if_subblocks.
3537         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
3538         (store_parm_decls): Adjust to match.
3539         (finish_function): Adjust to match.
3540         Call poplevel with all three arguments zero.
3541
3542         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
3543         New functions split out of store_parm_decls.
3544         Avoid unnecessary work. Use local variables consistently.
3545         (store_parm_decls): Likewise.
3546
3547         (finish_function): No need to set functionbody flag on call to
3548         poplevel.
3549         (struct language_function): Remove scope field.
3550         (c_push_function_context, c_pop_function_context): No need to
3551         save and restore current_scope.
3552
3553 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
3554
3555         * doc/extend.texi (Deprecated Features): Implicit typename is
3556         gone. Default args on types is going.
3557
3558 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
3559
3560         * Makefile.in (ifcvt.o): Depend on target.h
3561         * ifcvt.c (target.h): Include.
3562         (if_convert): Don't call mark_loop_exit_edges if we can't
3563         modify jumps.
3564
3565 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3566
3567         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
3568
3569 2003-07-26  Richard Henderson  <rth@redhat.com>
3570
3571         PR inline-asm/11676
3572         * cse.c (count_reg_usage): Handle asm_operands properly.
3573
3574 2003-07-26  Roger Sayle  <roger@eyesopen.com>
3575
3576         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
3577         (DEF_EXT_FALLBACK_BUILTIN): Delete.
3578         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
3579         the regular DEF_EXT_LIB_BUILTIN macro.
3580         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
3581         the regular DEF_LIB_BUILTIN macro.
3582         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
3583         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
3584         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
3585         DEF_EXT_LIB_BUILTIN macro.
3586
3587         * c-decl.c (duplicate_decls): Remove code to handle builtin
3588         functions prototyped without an argument list.
3589
3590 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
3591
3592         * config/i386/winnt.c: Revert 2003-07-08 change.
3593         (i386_pe_section_type_flags): Remove error_with_decl here too.
3594
3595 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3596
3597         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
3598         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
3599         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
3600         (v850_handle_data_area_attribute): Likewise.
3601
3602 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
3603
3604         * varasm.c (output_constant_def_contents): Use
3605         ASM_DECLARE_CONSTANT_NAME if defined.
3606         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
3607         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
3608         objects get at least one byte to prevent assembler problems.
3609         (ASM_DECLARE_CONSTANT_NAME): New.
3610
3611         * Makefile.in (libbackend.o): Remove options_.h.
3612         (mostlyclean): Likewise.
3613
3614         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
3615         insert a label at the end of an function under Mach-O.
3616
3617         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
3618
3619 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
3620
3621         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
3622         equality.
3623         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
3624
3625         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
3626
3627 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3628
3629         * doc/passes.texi (Passes): Mention pretty-printing and
3630         diagnostic files.
3631
3632 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
3633
3634         * doc/extend.texi (Function Attributes): GNU C++ does now allow
3635         unused parameter decls.
3636         (Attribute Syntax): GNU C++ does not allow label attributes to be
3637         after the ':'.
3638
3639 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3640
3641         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
3642         (objc_declare_class): Likewise.
3643         (error_with_ivar): Likewise.
3644         (start_class): Likewise.
3645         (warn_with_method): Likewise.
3646
3647 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3648
3649         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
3650         from GCC.
3651         * calls.c (try_to_integrate): Don't use xxx_with_decl.
3652         (expand_call): Likewise.
3653         * dwarfout.c (output_reg_number): Likewise.
3654         * expr.c (expand_expr): Likewise.
3655         * function.c (assign_temp): Likewise.
3656         (uninitialized_vars_warning): Likewise.
3657         (setjmp_args_warning): Likewise.
3658         (expand_function_end): Likewise.
3659         * stmt.c (fixup_gotos): Likewise.
3660         (warn_about_unused_variables): Likewise.
3661         (expand_end_bindings): Likewise.
3662         * stor-layout.c (layout_decl): Likewise.
3663         (place_field): Likewise.
3664         * toplev.c (check_global_declarations): Likewise.
3665         (rest_of_handle_inlining): Likewise.
3666         (default_tree_printer): New function.
3667         (general_init): Initialize diagnostic machinery before routing
3668         signals to the ICE machinery.  Set default tree printer.
3669         * toplev.h (pedwarn_with_decl): Remove declaration.
3670         (warning_with_decl): Likewise.
3671         (error_with_decl): Likewise.
3672         (pedwarn): Remove attribute for the time being.
3673         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
3674         * varasm.c (named_section): Likewise.
3675         (make_decl_rtl): Likewise.
3676         (assemble_variable): Likewise.
3677         (merge_weak): Likewise.
3678         (declare_weak): Likewise.
3679
3680         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
3681         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
3682         (format_with_decl): Remove.
3683         (diagnostic_for_decl): Likewise.
3684         (pedwarn_with_decl): Likewise.
3685         (warning_with_decl): Likewise.
3686         (error_with_decl): Likewise.
3687         (diagnostic_initialize): Adjust.
3688         (diagnostic_count_diagnostic): Likewise.
3689         (announce_function): Likewise.
3690         (lhd_print_error_function): Likewise.
3691         (diagnostic_report_current_module): Likewise.
3692         (default_diagnostic_starter): Likewise.
3693         (diagnostic_report_diagnostic): Likewise.
3694         (default_diagnostic_finalizer): Likewise.
3695         (verbatim): Likewise.
3696         (error): Likewise.
3697         (warning): Likewise.
3698         * opts.c (common_handle_option): Likewise.
3699         * pretty-print.c: New file.
3700         * c-pretty-print.h (pp_base): Override.
3701         * c-pretty-print.c: Adjust use of macros throughout.
3702         (pp_buffer): New macro.
3703         (pp_newline): Likewise.
3704         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
3705         * Makefile.in (DIAGNOSTIC_H): New variable.
3706         (c-errors.o): Use it.
3707         (c-objc-common.o): Likewise.
3708         (c-common.o): Likewise.
3709         (c-opts.o): Likewise.
3710         (c-format.o): Likewise.
3711         (diagnostic.o): Likewise.
3712         (opts.o): Likewise.
3713         (toplev.o): Likewise.
3714         (rtl-error.o): Likewise.
3715         (dwarf2out.o): Likewise.
3716         (jump.o): Likewise.
3717         (pretty-print.o): New rule.
3718
3719 2003-07-24  Roger Sayle  <roger@eyesopen.com>
3720
3721         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
3722         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
3723         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
3724         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
3725         (DEF_FRONT_END_LIB_BUILTIN): Delete.
3726         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
3727         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
3728
3729         * builtins.c (build_string_literal): New function to construct
3730         a char* pointer to a string literal.
3731         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
3732         "rtx target" to be consistent with other expand_builtin_* functions.
3733         Change 3rd argument from "int unlocked" to "bool unlocked".
3734         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
3735         c-common.c to avoid front-end dependencies.  Optimize printf("")
3736         as a no-op when the result isn't required.  Handle embedded NULs
3737         in format string.
3738         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
3739         from c-common.c to avoid front-end dependencies.  Likewise, optimize
3740         fprintf(fp,"") as a no-op when the result isn't required, evaluating
3741         fp for side-effects.  Handle embedded NULs in format string.
3742         (expand_builtin_sprintf): Fix typo.
3743         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
3744         optimizing.  Adjust calls of expand_builtin_fputs to match the API
3745         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
3746         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
3747         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
3748
3749         * c-common.c (is_valid_printf_arglist): Delete.
3750         (c_expand_builtin): Delete.
3751         (c_expand_builtin_printf): Moved to builtins.c. Delete.
3752         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
3753         (c_expand_expr): No longer treat CALL_EXPRs specially.
3754         (CALLED_AS_BUILT_IN): Delete.
3755
3756 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3757
3758         PR optimization/11631
3759         * gcse.c (store_motion): Connect infinite loops to exit.
3760
3761 2003-07-24  Jason Merrill  <jason@redhat.com>
3762
3763         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
3764         (boolean_true_node, boolean_false_node): Likewise.
3765         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
3766         * tree.c (build_common_tree_nodes): Init boolean_type_node.
3767         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
3768         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
3769         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
3770         (truthvalue_true_node): Renamed from boolean_true_node.
3771         (truthvalue_false_node): Renamed from boolean_false_node.
3772         * c-decl.c: Just set truthvalue_* to integer_*.
3773         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
3774
3775 2003-07-24  Roger Sayle  <roger@eyesopen.com>
3776
3777         * c-decl.c (match_builtin_function_types): New subroutine of
3778         duplicate_decls to test whether a redeclaration of a builtin
3779         function is suitably close, i.e. the return type and all of
3780         the argument types have the same modes as the builtin expects.
3781         (duplicate_decls): Fuzzy type matching for builtin functions
3782         moved to match_builtin_function_types.
3783
3784 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3785
3786         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
3787         flag correctly.
3788
3789 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
3790
3791         * c-decl.c: Search-and-replace change 'binding level' to
3792         'scope' in commentary.
3793         (struct binding_level): Now struct c_scope.
3794         (current_binding_level): Now current_scope.
3795         (free_binding_level): Now scope_freelist.
3796         (current_function_level): Now current_function_scope.
3797         (global_binding_level): Now global_scope.
3798         (make_binding_level): Now make_scope.
3799         (pop_binding_level): Now pop_scope.
3800
3801 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3802
3803         * configure.in (libgcc_visibility): Add missing whitespace.
3804
3805 2003-07-24  Richard Henderson  <rth@redhat.com>
3806
3807         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
3808         __gcc_personality_v0.
3809
3810 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3811
3812         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
3813
3814 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
3815
3816         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
3817         documentation missed from my 2003-07-09 patch.
3818
3819 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
3820
3821         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
3822         it's not provided.
3823         * configure: Rebuild.
3824
3825 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
3826
3827         PR c/10602
3828         * c-typeck.c (type_lists_compatible_p): Do not compare
3829         arguments if one of them is an error_mark_node
3830
3831 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
3832
3833         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
3834         if current_function_calls_eh_return.
3835
3836 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
3837
3838         * doc/c-tree.texi (OFFSET_TYPE): Update description.
3839
3840 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
3841
3842         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
3843         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
3844         __umodsi3, __modsi3): Increase frame size to 32.
3845
3846 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
3847
3848         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
3849         prototype.
3850
3851 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
3852
3853         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
3854
3855         PR optimization/10679
3856         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
3857
3858 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3859
3860         PR target/11607 and PR target/11516
3861         * pa.md (extzv, extv, insv): Revert latter half of last patch.
3862
3863 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
3864
3865         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
3866         * varasam.c (output_constant): Likewise.
3867
3868 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
3869
3870         * alias.c: Fix comment formatting.
3871         * c-common.c: Likewise.
3872         * c-decl.c: Likewise.
3873         * c-opts.c: Likewise.
3874         * combine.c: Likewise.
3875         * cpplib.c: Likewise.
3876         * diagnostic.c: Likewise.
3877         * dojump.c: Likewise.
3878         * final.c: Likewise.
3879         * fold-const.c: Likewise.
3880         * gcc.c: Likewise.
3881         * gcse.c: Likewise.
3882         * ggc-page.c: Likewise.
3883         * jump.c: Likewise.
3884         * loop.c: Likewise.
3885         * mips-tfile.c: Likewise.
3886         * recog.c: Likewise.
3887         * regclass.c: Likewise.
3888         * regmove.c: Likewise.
3889         * tree.c: Likewise.
3890         * tree.h: Likewise.
3891
3892 2003-07-22  Per Bothner  <pbothner@apple.com>
3893
3894         * line-map.c (add_line_map):  Handle invalid LEAVE request.
3895         Fixes PR preprocessor/11361.
3896
3897 2003-07-22  Per Bothner  <pbothner@apple.com>
3898
3899         * diagnostic.c.(diagnostic_report_current_module):  Update to match
3900         2003-06-05 changes to push_srcloc and pop_srcloc.
3901
3902 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
3903
3904         * doc/trouble.texi: Better document two-stage name lookup.
3905
3906 2003-07-22  Eric Christopher <echristo@redhat.com>
3907
3908         * config/s390.c (s390_valid_pointer_mode): New.
3909         (TARGET_VALID_POINTER_MODE): Use.
3910         (s390_emit_prologue): Add tpf profiling hooks.
3911         (s390_emit_epilogue): Ditto.
3912         * config/s390.h (MASK_TPF): New.
3913         (TARGET_TPF): Use.
3914         (POINTERS_EXTEND_UNSIGNED): Define.
3915         * config/s390.md (ptr_extend): New pattern.
3916
3917 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
3918
3919         * hashtable.c (approx_sqrt): Make static.
3920         * hashtable.h: Don't prototype approx_sqrt.
3921         * line-map.c (init_line_maps): Rename linemap_init.
3922         (free_line_maps): Rename linemap_free.
3923         (add_line_map): Rename linemap_add.
3924         (lookup_line): Rename linemap_lookup.
3925         (print_containing_files): Rename linemap_print_containing_files.
3926         * linemap.h: Update to match.
3927
3928         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
3929         linemap routines to use new names.
3930
3931 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
3932
3933         * c-common.c (handle_packed_attribute): Don't pack a struct via a
3934         typedef. Propagate packedness from a main variant.
3935
3936 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
3937
3938         * Makefile.in (install-common): Add dependency on installdirs.
3939
3940 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
3941
3942         * c-common.c (c_common_type_for_mode): Return integer types for
3943         pointer modes.
3944
3945 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
3946
3947         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
3948         (finish_decl): Call maybe_apply_pragma_weak here.
3949         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
3950         TREE_PUBLIC and TREE_STATIC are decided.
3951         (start_function): Move call to maybe_apply_pragma_weak.  Check that
3952         DECL_ASSEMBLER_NAME isn't set too early.
3953
3954         * cpplex.c (_cpp_process_line_notes): Mention option name in
3955         trigraphs warning.
3956
3957 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
3958
3959         * combine.c (if_then_else_cond): Simplify the comparison of
3960         rtx against -1, 0, and 1.
3961         * loop.c (check_dbra_loop): Likewise.
3962         * optabs.c (emit_conditional_move): Likewise.
3963         (emit_conditional_add): Likewise.
3964         * config/i386/i386.md (*movsi_or): Likewise.
3965         (*movdi_or_rex6): Likewise.
3966
3967 Tue Jul 22 00:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
3968
3969         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
3970
3971 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
3972
3973         * cppfiles.c (open_file_pch): Don't put unused entries in the
3974         splay tree.  Remove dead code.
3975
3976 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
3977
3978         * c-common.h (num_in_fnames): Declare.
3979         (c_static_assembler_name): Move from here...
3980         * c-tree.h (c_static_assembler_name): ... to here.
3981         * c-opts.c: Don't include langhooks-def.h.
3982         (c_static_assembler_name): Move to c-decl.c.
3983         (num_in_fnames): Make externally visible.
3984         * c-decl.c: Include langhooks-def.h.
3985         (c_static_assembler_name): Move from c-opts.c.
3986         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
3987         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
3988
3989         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
3990         when it's not needed.
3991
3992 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
3993
3994         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
3995         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
3996         (rs6000_emit_prologue): Save FPRs inline if set.
3997
3998 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
3999
4000         * config/ia64/ia64.md (prefetch): Support predicate.
4001
4002 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
4003
4004         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
4005         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
4006         table.
4007
4008 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4009
4010         PR optimization/11536
4011         * unroll.c (loop_iterations): Do not replace a register holding
4012         the final value by its equivalent before the loop if it is not
4013         invariant.
4014
4015 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
4016
4017         * doc/extend.texi: Fixes to spelling, grammar, and diction.
4018
4019 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
4020
4021         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
4022         (V850 Options): Spelling fixes.
4023
4024 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
4025
4026         * doc/invoke.texi: Fixes to style, grammar and diction.
4027
4028 2003-07-20  Roger Sayle  <roger@eyesopen.com>
4029
4030         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
4031         * system.h (SMALL_STACK): Poison obsolete target macro.
4032         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
4033
4034 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
4035
4036         * configure.in:  Cache the results of testing for cmp's capabilities.
4037         * configure:  Regenerate.
4038
4039 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
4040
4041         PR debug/11279
4042         * dwarf2out.c (gen_enumeration_type_die): Remember that
4043         enumerators can be unsigned.
4044
4045 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
4046
4047         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
4048         (push_label_level, pop_label_level): Kill.
4049         (struct binding_level): Rename level_chain to outer.
4050         Add outer_function field.  Change parm_flag, function_body,
4051         keep, keep_if_subblocks to 1-bit bitfields of type bool.
4052         (current_function_level): New variable.
4053         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
4054         (keep_next_level, declare_parm_level, warn_if_shadowing):
4055         Update to match.
4056         (struct language_function): Kill named_labels, shadowed_labels fields.
4057         (c_init_decl_processing, start_function, c_push__function_context)
4058         (c_pop_function_context): No need to muck with named_labels nor
4059         shadowed_labels.
4060
4061         (make_binding_level): No need to clear the structure here.
4062         (pop_binding_level): Always operate on current_binding_level.
4063         Update current_function_level if necessary.
4064         (pushlevel): Don't clear named_labels.  Update current_function_level
4065         if necessary.  Use "true" and "false" where appropriate.
4066         (poplevel): Diagnose labels defined but not used, or vice
4067         versa, and clear out label-meanings leaving scope, while
4068         walking down the decls list, for all binding levels.
4069         Handle LABEL_DECLs appearing in the shadowed list.
4070         pop_binding_level takes no arguments.
4071         (pushdecl_function_level): Use current_function_level.
4072
4073         (make_label, bind_label): New static functions.
4074         (declare_label): New exported function.
4075         (lookup_label, define_label): Rewritten for new data structure.
4076         (shadow_label): Kill.
4077
4078         * c-tree.h: Prototype declare_label; don't prototype
4079         push_label_level, pop_label_level, nor shadow_label.
4080         * c-parse.in: Remove all calls to push_label_level and
4081         pop_label_level.  Use declare_label for __label__ decls.
4082
4083         * doc/extend.texi: Clarify that __label__ can be used to
4084         declare labels with local scope in any nested block, not
4085         just statement expressions.  Cross-reference nested functions
4086         section from local labels section.
4087
4088 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4089
4090         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
4091
4092 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
4093
4094         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
4095
4096 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4097
4098         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
4099         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
4100
4101 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
4102
4103         * config/s390/s390.c (legitimize_pic_address): Access local symbols
4104         relative to the GOT instead of relative to the literal pool base.
4105         (s390_output_symbolic_const): Handle new GOT-relative accesses.
4106         * config/s390/s390.md ("call"): Access local functions and PLT stubs
4107         relative to the GOT instead of relative to the literal pool base.
4108         ("call_value"): Likewise.
4109         ("call_value_tls"): Likewise.
4110
4111         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
4112         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
4113         (s390_chunkify_finish): Likewise.
4114         (s390_chunkify_cancel): Likewise.
4115         (s390_reorg): Adapt caller.
4116         (find_base_register_in_addr,
4117         find_base_register_ref, replace_base_register_ref): Delete.
4118         (find_ltrel_base, replace_ltrel_base): New functions.
4119         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
4120         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
4121         base vs. index register usage.
4122         (struct constant_pool): Remove 'anchor'.
4123         (s390_add_anchor): Delete.
4124         (s390_dump_pool): Remove anchor handling.
4125         * config/s390/s390.md ("reload_anchor"): Remove.
4126
4127         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
4128         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
4129         (s390_emit_prologue): Use it.
4130         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
4131         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
4132         hard-code register 14.
4133         * config/s390/s390-protos.h (s390_load_got): Declare.
4134
4135         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
4136         Support TImode constants.
4137         * config/s390/s390.md ("consttable_ti"): New.
4138         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
4139
4140         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
4141         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
4142         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
4143         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
4144         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
4145         New symbolic constants.
4146         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
4147         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
4148         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
4149         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
4150         symbolic UNSPEC values.
4151         * config/s390/s390.c (larl_operand, s390_short_displacement,
4152         bras_sym_operand, s390_cannot_force_const_mem,
4153         s390_delegitimize_address, s390_decompose_address,
4154         legitimize_pic_address, s390_output_symbolic_const,
4155         s390_function_profiler): Use symbolic UNSPEC values.
4156
4157 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4158
4159         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
4160         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
4161         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
4162         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
4163         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
4164         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
4165         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
4166         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
4167         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
4168         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
4169         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
4170         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
4171         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
4172         postreload.c prefix.c print-tree.c protoize.c ra-build.c
4173         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
4174         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
4175         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
4176         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
4177         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
4178         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
4179         casts.
4180
4181 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4182
4183         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
4184         * toplev.h (warning): Remove attribute.
4185
4186 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4187
4188         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
4189         (pop_label_level): Likewise.
4190         (duplicate_decls): Likewise.
4191         (implicitly_declare): Likewise.
4192         (shadow_label): Likewise.
4193         (start_decl): Likewise.
4194         (finish_decl): Likewise.
4195         (grokdeclarator): Likewise.
4196         (get_parm_info): Likewise.
4197         (detect_field_duplicates): Likewise.
4198         (finish_struct): Likewise.
4199         (start_function): Likewise.
4200         (store_parm_decls): Likewise.
4201         (finish_function): Likewise.
4202         (c_expand_body_1): Likewise.
4203         (check_for_loop_decls): Likewise.
4204         (merge_translation_unit_decls): Likewise.
4205
4206 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
4207
4208         * common.opt:  Document --param.
4209         * opts.c (columns, undocumented_msg): New.
4210         (print_help): Get number of columns from environment.  Print
4211         --param help.  Tweak newline handling.
4212         (print_param_help): New.
4213         (print_filtered_help): Better handling of duplicates.  Complain
4214         about undocumented switches.
4215         (print_switch): New.
4216         (wrap_help): Improve wrapping, use COLUMNS.
4217         * opts.sh: Ignore comments in records.
4218         * params.def: Fix typos and remove trailing periods.
4219         * toplev.c (display_help): Don't dump --param help.
4220         * doc/sourcebuild.texi: Update.
4221
4222 2003-07-18  Richard Henderson  <rth@redhat.com>
4223
4224         PR target/11556
4225         * optabs.c (prepare_operand): Fail gracefully instead of abort
4226         if the predicate doesn't satisfy.
4227         (gen_cond_trap): Allow prepare_operand to fail.
4228
4229 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4230
4231         * c-common.c: Don't undefine GCC_DIAG_STYLE.
4232         (fname_decl): Don't use xxx_with_decl.
4233         (c_add_case_label): Likewise.
4234         (handle_section_attribute): Likewise.
4235         (handle_alias_attribute): Likewise.
4236         (handle_no_instrument_function_attribute): Likewise.
4237         (handle_no_limit_stack_attribute): Likewise.
4238         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
4239         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
4240
4241 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4242
4243         * Makefile.in (ifcvt.o): Add cfgloop.h.
4244         * basic-block.h (EDGE_LOOP_EXIT): New flag.
4245         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
4246         * ifcvt.c: Include cfgloop.h.
4247         (mark_loop_exit_edges): New static function.
4248         (if_convert): Call it.
4249         (find_if_header): Ignore branches out of loops.
4250
4251 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
4252
4253         * combine.c (simplify_comparison): Don't share rtx when converting
4254         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
4255
4256 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
4257
4258         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
4259         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
4260         (MUST_PASS_IN_STACK): Define.
4261         (BLOCK_REG_PADDING): Define.
4262
4263 2003-07-18  Richard Henderson  <rth@redhat.com>
4264
4265         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
4266         to skip the addr_vec.
4267
4268 Fri Jul 18 15:22:28 2003  Alexandre Oliva  <aoliva@redhat.com>
4269
4270         * combine.c (combinable_i3pat): Don't forbid occurrences of
4271         i2dest or i1dest in inner_dest if inner_dest is a mem.
4272
4273 Fri Jul 18 17:05:57 CEST 2003  Jan Hubicka  <jh@suse.cz>
4274
4275         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
4276
4277 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
4278
4279         PR target/11087
4280         * loop.c (basic_induction_var): Check if convert_modes emitted any
4281         instructions. Remove them and return 0 if so.
4282
4283 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
4284
4285         PR optimization/11083
4286         * toplev.c (rest_of_handle_addresof): Rename into
4287         rest_of_handle_addressof.  Delete unreachable blocks
4288         if dead edges were purged after the addressof pass.
4289
4290 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
4291
4292         * Makefile.in, configure, configure.in: Remove handling of
4293         lang-options.h and options_.h.
4294         * toplev.c (struct lang_opt, documented_lang_options): Remove.
4295         (display_help): Don't use documented_lang_options.
4296
4297 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
4298
4299         * c-decl.c (pushdecl_function_level): Make static, return nothing.
4300         (kept_level_p): Fold into poplevel.
4301         (undeclared_variable): Moved here from c-typeck.c.  Export.
4302         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
4303         (undeclared_variable): Prototype here.  Don't prototype
4304         kept_level_p nor pushdecl_function_level.
4305         * c-parse.in: Change first argument to poplevel from
4306         "kept_level_p()" to "KEEP_MAYBE".
4307         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
4308
4309 2003-07-17  Roger Sayle  <roger@eyesopen.com>
4310
4311         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
4312         commutative operands instead of modifying the RTL in-place.
4313
4314 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
4315
4316         PR optimization/11557
4317         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
4318         unless we know which function is being called.
4319
4320 2003-07-17  Roger Sayle  <roger@eyesopen.com>
4321
4322         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
4323         whether to reorder the operands of a commutative binary operator.
4324
4325 2003-07-17  Roger Sayle  <roger@eyesopen.com>
4326
4327         * fold-const.c (const_binop): Avoid performing the FP operation at
4328         compile-time, if either operand is NaN and we honor signaling NaNs,
4329         or if we're dividing by zero and either flag_trapping_math is set
4330         or the desired mode doesn't support infinities.
4331         (fold_initializer): New function to fold an expression ignoring any
4332         potential run-time exceptions or traps.
4333         * tree.h (fold_initializer): Prototype here.
4334         * c-typeck.c (build_binary_op): Move to the end of the file so
4335         that intializer_stack is in scope.  If constructing an initializer,
4336         i.e. when initializer_stack is not NULL, use fold_initializer to
4337         fold expressions.
4338         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
4339         performing FP operations at compile-time, if they would raise an
4340         exception at run-time.
4341
4342 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
4343
4344         PR 11498
4345         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
4346         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
4347         (GTFILES): Add langhooks.c.
4348         (gt-langhooks.h): New.
4349         * c-common.h (c_static_assembler_name): Prototype.
4350         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
4351         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
4352         * c-opts.c: Include langhooks-def.h.
4353         (c_static_assembler_name): New.
4354         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
4355         (var_labelno): New.
4356         (lhd_set_decl_assembler_name): Give static objects with context
4357         unique names.
4358         * varasm.c (var_labelno): Delete.
4359         (make_decl_rtl): Don't change the assembler name once it's set.
4360
4361         * c-opts.c (this_input_filename): New.
4362         (finish_options): Take new parameter, name of file being compiled.
4363         Update callers.  Set this_input_filename.
4364         (push_command_line_include): Use this_input_filename not
4365         main_input_filename.
4366
4367 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
4368
4369         * Makefile.in: Depend .pot generation on options.c.
4370         * po/exgettext: Add an extra_files variable containing additional
4371         files to scan.
4372
4373 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
4374
4375         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
4376         c_write_global_declarations.
4377
4378         * c-decl.c: Fix typos in several comments.  Remove all
4379         #if 0 blocks; reindent as needed.  Remove unused argument
4380         to declare_parm_level; all callers changed.
4381         * c-parse.in: Update calls to declare_parm_level.  Avoid
4382         issuing a double warning in some circumstances.
4383         * c-typeck.c: Update calls to declare_parm_level.
4384         * c-tree.h: Update prototype of declare_parm_level.
4385
4386         * c-pragma.c (apply_pragma_weak): Don't complain about a
4387         redundant #pragma weak.
4388
4389         * objc/objc-act.c (forward_declare_categories,
4390         build_selector_reference_decl, build_class_reference_decl,
4391         build_objc_string_decl, synth_forward_declarations,
4392         build_protocol_reference): Set TREE_PUBLIC on synthetic
4393         forward decl to 0, consistent with eventual definition.
4394         Correct comments to match.
4395
4396         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
4397         in regexp that don't form a range expression.
4398         * fixinc/fixincl.def: Regenerate.
4399
4400 2003-07-17  Richard Henderson  <rth@redhat.com>
4401
4402         PR target/10907
4403         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
4404         even with !TARGET_CONST_GP.
4405         (ia64_function_ok_for_sibcall): Reject non-local functions.
4406
4407 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
4408
4409         * c-common.c (c_estimate_num_insns_1): Don't handle
4410         METHOD_CALL_EXPR.
4411         * expr.c (safe_from_p): Likewise.
4412         * gengtype.c (adjust_field_tree_exp): Likewise.
4413         * stmt.c (warn_if_unused_value): Likewise
4414         * tree.c (first_rtl_op): Likewise.
4415         * tree.def: Don't define METHOD_CALL_EXPR.
4416         * java/lang.c (java_estimate_num_insns_1): Don't handle
4417         METHOD_CALL_EXPR.
4418
4419 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4420
4421         PR other/11466
4422         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
4423         and its restrictions for the SPARC64 port.
4424         Move the entry of "-mimpure-text" before that of "-mv8".
4425
4426 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
4427             Phil Edwards <phil@jaj.com>
4428
4429         * doc/install.texi (*-*-solaris2*): Document the step-by-step
4430         procedure to bootstrap and install.
4431         Document the preference for the legacy Sun tools in /usr/bin
4432         over the POSIX tools in /usr/xpg4/bin for the build process.
4433
4434 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
4435
4436         * c.opt: Document Uncodumented; use it.  Document ObjC options.
4437         * opts.c (print_filtered_help): Skip undocumented switches.
4438         * opts.h (CL_UNDOCUMENTED): New.
4439         * opts.sh: Handle Undocumented.
4440         * toplev.c (documented_lang_options): Prevent its becoming empty.
4441 objc:
4442         * lang-options.h: Remove.
4443
4444 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
4445
4446         * loop.c (check_ext_dependent_givs): Pass const struct loop *
4447         instead of struct loop_info * as argument.  Accept BIVs with
4448         increment +/- 1 provided there is a friendly exit test against
4449         a loop-invariant value.
4450         (strength_reduce): Adapt call to check_ext_dependent_givs.
4451
4452 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
4453             Con Bradley <con.bradley@superh.com>
4454
4455         * sh-protos.h (sh_get_pr_initial_val): Declare.
4456         * sh.c (regno_reg_class): Make its elements type enum reg_class.
4457         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
4458         and live_regs_mask arguments.  Changed all callers.
4459         (save_schedule_s): New structure.
4460         (save_schedule): New typedef.
4461         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
4462         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
4463         In interrupts handlers, also save registers that are usually
4464         partially saved, and make sure there is at least one general purpose
4465         register saved if a target register needs saving.
4466         Add casts in comparisons to avoid warnings.
4467         (sh_media_register_for_return): return -1 for interrupt handlers.
4468         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
4469         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
4470         registers used are available.
4471         Set RTX_FRAME_RELATED_P where appropriate.
4472         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
4473         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
4474         (initial_elimination_offset): Likewise.
4475         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
4476         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
4477         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
4478         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
4479         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
4480         and for target registers.
4481         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
4482         (regno_reg_class): Make its elements type enum reg_class.
4483         (CONSTRAINT_LEN): Don't use isdigit.
4484         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
4485         (FUNCTION_ARG): Add parentheses to avoid warnings.
4486         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
4487         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
4488         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
4489         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
4490         * sh.md (xordi3+1): Remove unused variable regno.
4491         (return_media): Check that tr0 is available before using it.
4492
4493 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
4494
4495         * c.opt: Document more options.
4496
4497 2003-07-16  Roger Sayle  <roger@eyesopen.com>
4498
4499         * combine.c (subst): Also handle (subreg (const_double ...)) case
4500         if created by a substitution, by using the original inner mode.
4501
4502 2003-07-16  Roger Sayle  <roger@eyesopen.com>
4503
4504         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
4505         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
4506         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
4507
4508 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
4509
4510         * doc/install.texi (--without-headers): New.
4511
4512         Partial Fix PR/10129
4513         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
4514         (machopic_output_function_base_name): New; print the true pic label.
4515         (machopic_classify_ident): Pic Base is always a defined data.
4516         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
4517         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
4518
4519         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
4520         if they are not floating point registers.
4521
4522         PR c/10962
4523         * ggc.h: Add header guards.
4524         * c-decl.c (finish_struct): Sort fields if
4525         number greater than 15 and there are no
4526         anonymous structs/unions.
4527         * c-common.h: Include ggc.h.
4528         (sorted_fields_type): New struct.
4529         (field_decl_cmp): New prototype.
4530         (resort_sorted_fields): New prototype.
4531         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
4532         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
4533         as s, removing other fields.
4534         * c-typeck.c (lookup_field): Use s in lang_type.
4535         These were mostly moved from cp/class.c:
4536         * c-common.c (field_decl_cmp): New static function.
4537         (field_decl_cmp): New function.
4538         (resort_sorted_fields): New function.
4539
4540 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
4541
4542         * config/darwin.c (machopic_select_section): Use decl_readonly_section
4543         to do most of the work.
4544
4545 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
4546
4547         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
4548         * config/mmix/mmix.c: Convert functions to ISO C90.
4549         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
4550         formatting.
4551         (mmix_get_hard_reg_initial_val): Tweak section head comment.
4552
4553 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
4554
4555         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
4556
4557 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
4558
4559         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
4560         (uw_update_context_1): Use it.
4561         * config/rs6000/rs6000.c (insn_after_throw): Remove.
4562         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
4563         in parent frame if _Unwind_* called directly instead of through
4564         .plt.
4565         (rs6000_emit_eh_toc_restore): Remove.
4566         (rs6000_emit_prologue): Update stack pointer before doing any saving
4567         if current_function_calls_eh_return.  Generate unwind info for $r2.
4568         (rs6000_emit_epilogue): Restore stack pointer after doing all
4569         restoring if current_function_calls_eh_return.  Restore $r2.
4570         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
4571         * config/rs6000/rs6000.md (eh_return): Remove call to
4572         rs6000_emit_eh_toc_restore.
4573         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
4574         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
4575
4576 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
4577
4578         * expr.c (emit_block_move): Don't move anything if size is const 0.
4579         (clear_storage): Test against const0_rtx instead of comparing INTVAL
4580         against 0.
4581
4582 2003-07-15  David S. Miller  <davem@redhat.com>
4583
4584         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
4585         emit nop if the last real insn is CALL_INSN.
4586
4587 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
4588
4589         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
4590         as "nul".
4591         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
4592
4593 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
4594
4595         * config/i386/winnt.c (associated_type): Artificial methods are not
4596         affected by the import/export status of their class unless they are
4597         COMDAT.
4598         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
4599
4600         * config/i386/winnt.c: Fix GCC copyright comment.
4601
4602 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
4603
4604         PR c++/11531
4605         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
4606         not recursing on hard error.
4607         (diagnostic_for_decl): Likewise.
4608         * diagnostic.def: Rearrange.
4609
4610 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
4611
4612         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
4613         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
4614
4615 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
4616             Richard Henderson  <rth@redhat.com>
4617
4618         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
4619         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
4620         (_Unwind_SetGR): Likewise.
4621         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
4622         (Unwind_SpTmp): New typedef.
4623         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
4624         (uw_update_context): Use _Unwind_GetPtr.
4625         (init_dwarf_reg_size_table): Move above uw_init_context_1.
4626         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
4627         Use _Unwind_SetSpColumn.
4628         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
4629         Use _Unwind_GetPtr.
4630
4631 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
4632
4633         * c.opt: Document more options.
4634         * toplev.c (documented_lang_options): Remove all local help strings.
4635
4636 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
4637
4638         PR debug/11473
4639         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
4640         base classes.
4641
4642 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
4643
4644         PR target/10795
4645         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
4646         swap comparison operands if doing so would generate an
4647         unrecognizable insn.
4648
4649 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
4650
4651         PR optimization/11320
4652         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
4653         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
4654         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
4655         current_sched_info->compute_jump_reg_dependencies. Record which
4656         registers are used and which registers are set by the jump.
4657         Clear deps->reg_conditional_sets after a barrier.
4658         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
4659         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
4660         (init_deps): Initialize reg_conditional_sets.
4661         (free_deps): Clear reg_conditional_sets.
4662         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
4663         Mark registers live on entry of the fallthrough block and conditionally
4664         set as set by the jump. Mark registers live on entry of non-fallthrough
4665         blocks as used by the jump.
4666         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
4667         Mark new parameters as unused.
4668
4669 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
4670
4671         * doc/invoke.texi: Resync MIPS -march documentation.
4672
4673 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
4674
4675         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
4676         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
4677         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
4678         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
4679         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
4680         (mips_issue_rate): Handle PROCESSOR_R9000.
4681         (mips_use_dfa_pipeline_interface): Likewise.
4682         * config/mips/9000.md: New file.
4683         * config/mips/mips.md: Include it.
4684         (define_attr cpu): Add r9000.
4685         (mulsi3_mult3): Use "mul" for rm9000 code.
4686
4687 2003-07-15  Stan Cox  <scox@redhat.com>
4688
4689         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
4690         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
4691         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
4692         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
4693         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
4694         (mips_issue_rate): Handle PROCESSOR_R7000.
4695         (mips_use_dfa_pipeline_interface): Likewise.
4696         * config/mips/7000.md: New file.
4697         * config/mips/mips.md: Include it.
4698         (define_attr cpu): Add r7000.
4699         (mulsi3_mult3): Use "mul" for rm7000 code.
4700
4701 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
4702
4703         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
4704         the conditional move patterns.
4705         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
4706         Check for condmove type.
4707         (ir_vr54_arith): Add move type.
4708         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
4709         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
4710
4711 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
4712
4713         * c-opts.c (print_help): Remove.
4714         (c_common_handle_option): Don't handle --help.
4715         * c.opt: Document some options.
4716         (--help): Remove.
4717         * opts.c (print_filtered_help): New.
4718         (print_help): Use it.
4719
4720 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
4721
4722         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
4723         * tree.c: (build_common_tree_nodes_2): Likewise.
4724         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
4725         (V4DF_type_node): New.
4726
4727         * c-opts.c (push_command_line_include): Don't free deferred_opts,
4728         we'll need it.
4729         (finish_options): Reset init_cursor.
4730
4731 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
4732
4733         * expr.c (expand_assignment): Remove an unused argument
4734         SUGGEST_REG.
4735         * expr.h: Update the prototype.
4736         * function.c: Update the callers.
4737         * stmt.c: Likewise.
4738
4739 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
4740
4741         PR debug/11098
4742         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
4743         as DECL_ABSTRACT.
4744
4745 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
4746
4747         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
4748         with __cplusplus, not "we must use the C++ compiler's type"
4749         * fixinc/inclhack.def (void_null): Note that Interix needs this.
4750         * fixinc/fixincl.x: Regenerate.
4751
4752 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
4753
4754         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
4755         and unseen_objects from the global data before calling
4756         __deregister_frame_info_bases.
4757         (examine_objects): Insert objects into the seen_objects list,
4758         not unseen_objects.
4759         (_Unwind_Find_FDE): Always unlock the global object lists, even if
4760         we couldn't allocate a data structure to put in it.
4761
4762         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
4763         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
4764         (SET_TYPE_PROTOCOL_LIST): New.
4765         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
4766         (get_object_reference): Likewise.
4767
4768 Mon Jul 14 23:14:28 CEST 2003  Jan Hubicka  <jh@suse.cz>
4769
4770         * cfglayout.c (locator_file): Break out from ....
4771         (insn_file): ... here.
4772         (locator_line): Break out from ....
4773         (insn_line): ... here.
4774         * rtl.h (locator_file, locator_line): Declare.
4775         (final_start_function): Set proper line/file info.
4776
4777 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4778
4779         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
4780         handled by pp_c_cast_expression.
4781
4782 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
4783
4784         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
4785         allocate 32768 bytes of stack.  Use addition rather than subtraction
4786         when a single insn is enough.
4787         * config/mips/mips.md: Remove insns and splitters for subtracting
4788         constants.
4789         (subsi3): Only accept register operands.
4790         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
4791         (subdi3_internal_3, subsi3_internal_2): Likewise.
4792         (casesi): Use expand_binop to subtract the lower bound.
4793
4794 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
4795
4796         * config/mips/mips.c (mips_in_small_data_p): Don't handle
4797         TARGET_MIPS16 specially.
4798
4799 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
4800
4801         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
4802         mips_output_aligned_bss.
4803         * config/mips/linux.h: Likewise.
4804         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
4805         * config/mips/mips.c (mips_output_aligned_bss): New function.
4806
4807         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
4808         * config/mips/elf64.h: Likewise.
4809
4810         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
4811         mips_declare_object_name.
4812         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
4813         * config/mips/elf64.h: As for elf.h.
4814         * config/mips/iris6.h: Likewise.
4815         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
4816         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
4817         do...while (0) block.
4818         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
4819         (mips_finish_declare_object): Declare.
4820         * config/mips/mips.c (mips_declare_object_name): New function.
4821         (mips_finish_declare_object): New function.
4822
4823         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
4824         * config/mips/linux.h: Likewise.
4825
4826         * config/mips/mips.c (inside_function): Delete.
4827         (file_in_function_warning, ignore_line_number): Delete.
4828         (mips_output_filename): Don't warn about changing filenames within
4829         a function.
4830         (mips_output_lineno): Update accordingly.
4831         (mips_output_function_prologue): Don't reset the deleted variables.
4832         * config/mips/mips.h (inside_function): Delete.
4833         (file_in_function_warning, ignore_line_number): Delete.
4834
4835         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
4836         * config/mips/elf64.h: Likewise.
4837         * config/mips/openbsd.h: Likewise.
4838         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
4839         * config/mips/linux.h: Likewise.
4840         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
4841         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
4842
4843         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
4844         to the list of include files when using gas.
4845         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
4846         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
4847         * config/mips/elf64.h: Likewise.
4848         * config/mips/iris5.h: Likewise.
4849         * config/mips/linux.h: Likewise.
4850         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
4851         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
4852         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
4853         * config/mips/sdb.h: ...this new file.
4854
4855 2003-07-14  Douglas Rupp  <rupp@gnat.com>
4856
4857         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
4858         argument to getcwd; use fixed buffer instead.
4859
4860 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
4861
4862         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
4863         * fixinc/fixinc.wrap: Delete.
4864
4865 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
4866
4867         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
4868         don't have 2.
4869
4870 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
4871
4872         * ggc-page.c (struct globals): Add new fields to keep track of the
4873         total allocated memory and overhead.
4874         (ggc_print_statistics): Print them.
4875         (ggc_alloc): Keep track of the total allocated memory and the
4876         overhead.
4877
4878         * tree.c (dump_tree_statistics): Increase spacing.
4879         (enum tree_node_kind): Move to ...
4880         * tree.h (enum tree_node_kind): ... here.
4881         (tree_node_counts, tree_node_sizes): Declare.
4882
4883 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
4884
4885         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
4886
4887 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4888
4889         PR optimization/11440
4890         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
4891         SIGN_EXTRACT SETs.
4892
4893 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
4894
4895         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
4896         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
4897         (emit_group_load, emit_group_store): Adjust declarations.
4898         Remove most occurrences of #ifdef TREE_CODE.
4899         * expr.c (emit_group_load): Add "type" param, and use
4900         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
4901         aligned accesses if !SLOW_UNALIGNED_ACCESS.
4902         (emit_group_store): Likewise.
4903         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
4904         emit_group_load and emit_group_store calls.
4905         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
4906         BLOCK_REG_PADDING to determine whether we need endian_correction.
4907         (load_register_parameters): Localize vars.  Handle shifting of
4908         small values to the correct end of regs.  Adjust emit_group_load
4909         call.
4910         (expand_call, emit_library_call_value_1): Adjust emit_group_load
4911         and emit_group_store calls.
4912         * function.c (assign_parms): Set mem alignment for stack slots.
4913         Adjust emit_group_store call.  Store values at the "wrong" end
4914         of regs to the stack.  Use BLOCK_REG_PADDING.
4915         (locate_and_pad_parm): Save where_pad.
4916         (expand_function_end): Adjust emit_group_load call.
4917         * stmt.c (expand_value_return): Adjust emit_group_load call.
4918         * Makefile.in (calls.o): Depend on $(OPTABS_H).
4919         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
4920         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
4921         (MUST_PASS_IN_STACK): Define.
4922         (BLOCK_REG_PADDING): Define.
4923         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
4924         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
4925         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
4926         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
4927         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
4928
4929 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
4930
4931         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
4932
4933 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4934
4935         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
4936         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
4937
4938 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
4939
4940         PR other/11123
4941         * toplev.c: Don't cut off option names.
4942
4943 2003-07-13  Andreas Jaeger  <aj@suse.de>
4944
4945         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
4946         to integer of different size.
4947
4948 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
4949
4950         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
4951         to (eq (and X 1) 0).
4952
4953 2003-07-13  Andreas Jaeger  <aj@suse.de>
4954
4955         * config.gcc: Add pmmintrin.h for x86_64-*-*.
4956
4957 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
4958
4959         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
4960         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
4961         list.  Move these all together down by cpplib.
4962
4963         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
4964         definition of CPPCHAR_SIGNED_T.
4965
4966         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
4967         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
4968         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
4969
4970         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
4971         * cppinit.c (cpp_create_reader): Likewise.
4972
4973         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
4974         * cpptrad.c: Likewise.  All callers changed.
4975         * cpplib.c: All callers changed.
4976         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
4977         * hashtable.h: Define GTY(x) to nothing here too.
4978
4979 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4980
4981         * stor-layout.c (compute_record_mode): Remove very obsolete test
4982         that forces BLKmode for records with fields crossing word boundary.
4983
4984 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
4985
4986         * Makefile.in: Remove orphan reference to acconfig.h.
4987
4988 2003-07-13  Andreas Jaeger  <aj@suse.de>
4989
4990         * cgraphunit.c: Convert prototypes to ISO C90.
4991
4992 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
4993
4994         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
4995         (for OpenBSD).
4996         * fixinc/fixincl.x: Rebuild.
4997
4998 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
4999
5000         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
5001         i?86-*-*.  Use correct name of cache variable.
5002         * configure: Regenerate.
5003
5004 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
5005
5006         * config/alpha/alpha.c: Fix comment typos.
5007         * config/alpha/alpha.md: Likewise.
5008         * config/arm/arm.c: Likewise.
5009         * config/arm/arm.md: Likewise.
5010         * config/arm/lib1funcs.asm: Likewise.
5011         * config/avr/avr.md: Likewise.
5012         * config/arm/README-interworking: Fix typos.
5013
5014 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
5015
5016         * c-format.c: Fix comment formatting.
5017         * c-typeck.c: Likewise.
5018         * coverage.c: Likewise.
5019         * cppcharset.c: Likewise.
5020         * cpplib.c: Likewise.
5021         * dbxout.c: Likewise.
5022         * gcov-io.h: Likewise.
5023         * toplev.c: Likewise.
5024
5025 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
5026
5027         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
5028         fix.
5029
5030 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
5031
5032         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
5033         uses three-argument AC_DEFINE so no acconfig.h entries are
5034         needed.
5035         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
5036         which contains the GAS version number as a scaled integer.
5037         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
5038         ability to check for ELF assembler.
5039         (gcc_GAS_CHECK_FEATURE): New macro.
5040         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
5041         assembler feature checks using gcc_GAS_CHECK_FEATURE.
5042         Use three-argument AC_DEFINE everywhere.
5043         * acconfig.h: Deleted.
5044         * config.in, configure: Regenerate.
5045
5046 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
5047
5048         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
5049         (on OpenBSD).
5050         * fixinc/fixincl.x: Regenerate.
5051
5052         * fixinc/inclhack.def (gnu_types): Improve comment.
5053
5054 2003-07-12  Andreas Jaeger  <aj@suse.de>
5055
5056         * fp-test.c (main): Use ISO C90 prototype.
5057
5058         * version.c: Remove unneded include of ansidecl.h.
5059
5060         * cgraph.h: Convert prototypes to ISO C90.
5061         * cgraph.c: Likewise.
5062         * fix-header.c: Likewise.
5063         * ra.h: Likewise.
5064         * protoize.c: Likewise.
5065
5066 Sat Jul 12 06:09:38 CEST 2003  Jan Hubicka  <jh@suse.cz>
5067
5068         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
5069         warning.
5070
5071 Sat Jul 12 03:06:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
5072                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5073
5074         * cgraph.c (cgraph_max_uid): New global variable.
5075         (cgraph_node): Set uid field.
5076         (create_edge): Keep inline flags consistent.
5077         (dump_cgraph): Dump more info.
5078         * cgraph.h (struct cgraph_local_info): Remove inline_many and
5079         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
5080         (struct cgraph_global_info): Add insns, calls, cloned_times,
5081         will_be_output.
5082         (struct cgraph_node): Add uid.
5083         (struct cgraph_edge): Add inline_call.
5084         (cgraph_max_uid, cgraph_inline_p): Declare.
5085         * cgraph.c: Include params.h and fibheap.h
5086         (cgraph_mark_functions_to_inline_once): Kill.
5087         (INSNS_PER_CALL): New constant.
5088         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
5089         static variables.
5090         (cgraph_finalize_function): Do not analyze inlining.
5091         (cgraph_finalize_compilation_unit): Set inlining attributes.
5092         (cgraph_mark_functions_to_output): More consistency checks.
5093         (cgraph_optimize_function): Set current_function_decl to NULL.
5094         (cgraph_expand_function): Use new inline flags.
5095         (cgraph_postorder): Expand from cgraph_expand_functions.
5096         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
5097         (cgraph_inlined_into, cgraph_inlined_callees,
5098         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
5099         cgraph_mark_inline, cgraph_check_inline_limits,
5100         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
5101         cgraph_decide_inlining, cgraph_inline_p): New functions.
5102         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
5103         PARAM_INLINE_UNIT_GROWTH): New parameters.
5104         * tree-inline.c (struct inline_data): New field current_decl.
5105         (expand_call_inline): Avoid forward declarations; use
5106         inlinable_function_p.
5107         (optimize_inline_calls): Set id.current_decl.
5108
5109 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
5110
5111         * configure.in: Remove wrongly added definition of
5112         local_prefix.
5113         * configure: Regenerate.
5114
5115 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
5116
5117         * rtl.def (NOTE): Do not use padding.
5118
5119 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
5120
5121         * doc/install.tex: Update required binutils for i?86-*-linux*
5122
5123 2003-07-11  Richard Henderson  <rth@redhat.com>
5124
5125         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
5126
5127 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
5128
5129         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
5130         TRANSLATION_UNIT_DECL as top_level.
5131
5132 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
5133
5134         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
5135         then fall back to cmpstrM.
5136         * builtins.c (expand_builtin_memcmp): Likewise.
5137         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
5138         (s390_expand_cmpmem): ... this.
5139         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
5140         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
5141         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
5142         to s390_expand_cmpmem.
5143         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
5144         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
5145         to cmpmem*.
5146         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
5147         cmpstr* patterns.
5148         * doc/md.texi (cmpstrM): Describe as String compare insn, not
5149         Block compare insn.
5150         (cmpmemM): Add.
5151
5152 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
5153
5154         * config/i386/freebsd.h (SET_ASM_OP): Remove.
5155         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
5156         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
5157          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
5158
5159 2003-07-11  Richard Henderson  <rth@redhat.com>
5160
5161         * function.c (assign_parms): Don't recombine complex args if
5162         fnargs is unchanged from orig_fnargs.
5163         (split_complex_args): Return args without complex before copying.
5164         Re-layout the modified parameters.
5165
5166 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
5167
5168         * regclass.c (choose_hard_reg_mode): Add third argument.
5169         Changed all callers.
5170         * rtl.h (choose_hard_reg_mode): Update declaration.
5171         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
5172         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
5173
5174 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
5175
5176         * c-decl.c (finish_decl): Handle 'used' here...
5177         * cgraphunit.c (cgraph_finalize_function): ... and here ...
5178         * c-common.c: (handle_used_attribute): ... not here.
5179
5180         * configure.in (onstep): Support --enable-intermodule.
5181         * Makefile.in (OBJS-common): New.
5182         (OBJS-md): New.
5183         (OBJS-archive): New.
5184         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
5185         (OBJS-onestep): New.
5186         (libbackend.a): Support @onestep@.
5187         (libbackend.o): New.
5188         * configure: Regenerate.
5189
5190         * c-common.h (c_reset_state): New prototype.
5191         (c_parse_file): New prototype.
5192         (finish_file): Move prototype from c-tree.h.
5193         * c-decl.c: Include <hashtab.h>.
5194         (builtin_decls): New.
5195         (current_file_decl): New.
5196         (duplicate_decls): Add extra parameter. Change all callers.  Don't
5197         output duplicate common symbols.
5198         (link_hash_hash): New.
5199         (link_hash_eq): New.
5200         (poplevel): Handle popping of the top level.
5201         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
5202         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
5203         (pushdecl_top_level): Likewise.
5204         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
5205         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
5206         (finish_decl): Handle TRANSLATION_UNIT_DECL.
5207         (merge_translation_unit_decls): New.
5208         (c_write_global_declarations): New.
5209         (c_reset_state): New.
5210         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
5211         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
5212         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
5213         TRANSLATION_UNIT_DECL.
5214         (c_objc_common_finish_file): Call merge_translation_unit_decls.
5215         * c-opts.c (in_fnames): Rename from in_fname.
5216         (c_common_decode_option): Handle multiple input filenames.
5217         (c_common_post_options): Likewise.
5218         (c_common_parse_file): Likewise; also, call c_parse_file rather than
5219         yyparse.
5220         * c-parse.in: Move cleanup code to c_parse_file.
5221         (free_parser_stacks): Move contents to c_parse_file.
5222         (c_parse_file): New.
5223         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
5224         for integer types.
5225         (C_DECL_FILE_SCOPE): New.
5226         (finish_file): Move prototype to c-common.h.
5227         (merge_translation_unit_decls): New prototype.
5228         (comptypes): Add extra parameter to prototype.
5229         (c_write_global_declarations): New prototype.
5230         * c-typeck.c (tagged_types_tu_compatible_p): New.
5231         (function_types_compatible_p): Add extra parameter, change all callers.
5232         (type_lists_compatible_p): Likewise.
5233         (comptypes): Likewise.
5234         (struct tagged_tu_seen): New.
5235         (tagged_tu_seen_base): New.
5236         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
5237         (c_mark_addressable): Remove #if 0 code.
5238         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
5239         comment explaining why it shouldn't have to.
5240         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
5241         options.
5242         * cppinit.c (cpp_read_next_file): New.
5243         (cpp_read_main_file): Use it.
5244         * cpplib.c (undefine_macros): New.
5245         (cpp_undef_all): New.
5246         * cpplib.h (cpp_read_next_file): Prototype.
5247         (cpp_undef_all): Prototype.
5248         * langhooks-def.h (write_global_declarations): Remove prototype.
5249         * toplev.h (write_global_declarations): Add prototype.
5250         * tree.c (decl_type_context): Use switch statement, handle
5251         TRANSLATION_UNIT_DECL.
5252         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
5253         (TRANSLATION_UNIT_DECL): New kind of tree.
5254         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
5255         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
5256         * doc/invoke.texi: Make attempt to document new functionality.
5257
5258         2003-05-19  Per Bothner <bothner@apple.com>
5259
5260         * gcc.c (combine_inputs): New.
5261         (process_command): Set combine_inputs.
5262         (do_spec_1): Handle combine_inputs.
5263         (main): Likewise.
5264
5265 2003-07-10  James E Wilson  <wilson@tuliptree.org>
5266
5267         PR optimization/9745
5268         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
5269         loop_insn_emit_before.
5270         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
5271
5272 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
5273
5274         * cppcharset.c: Fix comment.
5275         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
5276         (EILSEQ): #define to EINVAL if not already defined.
5277         (convert_using_iconv): #if out when !HAVE_ICONV.
5278         (init_iconv_desc): Handle !HAVE_ICONV here...
5279         (cpp_init_iconv): ...not here.
5280
5281 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
5282
5283         * common.opt: More --help messages.
5284         * opts.c (print_help): Use puts().
5285         * toplev.c (f_options): Remove help text.
5286         (display_help): Don't dump f_options.
5287
5288 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
5289
5290         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
5291         Move i?86-*-interix* to the don't-fix list.
5292         * fixinc/fixinc.interix: Delete with extreme prejudice.
5293
5294 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
5295
5296         PR bootstrap/10758
5297         * doc/install.texi: Document requirements for ia64-*-hpux* target.
5298
5299 2003-07-10  Roger Sayle  <roger@eyesopen.com>
5300
5301         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
5302
5303 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
5304
5305         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
5306         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
5307         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
5308         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
5309         convert_no_conversion, convert_using_iconv): New functions.
5310         (APPLY_CONVERSION): New macro.
5311         (struct conversion, conversion_tab): New data structure.
5312         (init_iconv_desc): Check conversion_tab for a custom conversion
5313         primitive before trying to use iconv.
5314         (convert_cset): Deleted.
5315         (cpp_init_iconv): Use UTF- terminology, not UCS-.
5316         (_cpp_destroy_iconv): Update to match.
5317         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
5318         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
5319         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
5320         (_cpp_interpret_string_notranslate): New function, moved here
5321         from cpplib.c.
5322
5323         * cpphash.h (convert_f, struct cset_converter): New types.
5324         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
5325         are now struct cset_converter, not bare iconv_t.
5326         Update prototypes.
5327         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
5328         all callers changed.
5329
5330 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
5331
5332         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
5333         to opts.sh command line.
5334         * opts.sh: Write to temporary files with a move-if-change at the end.
5335
5336 2003-07-10  Denis Chertykov  <denisc@overta.ru>
5337             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5338
5339         * combine.c (gen_binary): Handle the CLOBBER rtx and
5340         don't build a binary operation with it.
5341
5342 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5343
5344         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
5345         store_killed_after, store_killed_before): Keep track of the correct
5346         dependency function to use.
5347
5348 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
5349         * toplev.c (do_compile): Don't try to open dump files before
5350         lang_dependent_init initializes dump_base_name.
5351
5352 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5353
5354         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
5355         Use ARRAY_SIZE.
5356         * config/frv/frv.c (frv_expand_builtin): Likewise.
5357         * config/sh/sh.c (sh_media_init_builtins): Likewise.
5358
5359 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
5360
5361         PR c++/10032
5362         * doc/invoke.texi (C++ Dialect Options): Change documentation of
5363         -fpermissive.
5364
5365 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
5366
5367         * tm.texi (RETURN_ADDR_OFFSET): Document.
5368
5369 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
5370
5371         * gcov-io.h: Update documentation.
5372         (GCOV_UNSIGNED2STRING): New.
5373         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
5374         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
5375         GCOV_TAG_SUMMARY_LENGTH): Adjust.
5376         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
5377         GCOV_TAG_COUNTER_NUM): New.
5378         (GCOV_BLOCK_SIZE): Number of words.
5379         (gcov_var): Adjust buffer type.
5380         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
5381         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
5382         count, not byte count.
5383         (gcov_open): Adjust overread init.
5384         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
5385         gcov_write_string, gcov_write_tag, gcov_write_length,
5386         gcov_write_tag_length): Adjust.
5387         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
5388         (gcov_sync, gcov_seek): Adjust.
5389         * gcov-dump.c (print_usage): Show gcc version only.
5390         (dump_file): Use GCOV_UNSIGNED2STRING.
5391         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
5392         * gcov.c (print_version): Show gcc version only.
5393         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
5394         GCOV_TAG_*_NUM macros.
5395         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
5396         GCOV_TAG_COUNTER_LENGTH.
5397         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
5398         Use GCOV_TAG_COUNTER_NUM.
5399         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
5400         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
5401
5402 2003-07-10  Andreas Schwab  <schwab@suse.de>
5403
5404         * gcov-dump.c (dump_file): Fix missing address operator.
5405
5406 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
5407
5408         PR c/11449
5409         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
5410         of HOST_WIDE_INT.
5411         (fold_single_bit_test): If sign_bit_p() fails, assume that the
5412         bit being tested is not a sign bit.
5413
5414 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
5415
5416         * config/h8300/h8300.md (a peephole2): New.
5417
5418 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
5419
5420         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
5421         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
5422         from ld-linux.so.2 to ld.so.1.
5423         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
5424         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
5425         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
5426         nor -Wl,-rpath-link.
5427         (LIB_SPEC): Add -rpath-link if !static.
5428         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
5429         * config/mn10300/mn10300.c (mn10300_protect_label): New
5430         variable.
5431         * config/mn10300/linux.h (PRINT_OPERAND,
5432         PRINT_OPERAND_ADDRESS): Set it during their execution.
5433         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
5434         mn10300_protect_label is set.
5435         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
5436         -Wl,-rpath-link.
5437         (LIB_SPEC, STARTFILE_SPEC): Define.
5438         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
5439         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
5440         FLOAT_BIT_ORDER_MISMATCH.
5441         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
5442         * config.gcc (am33_2.0-*-linux*): Added.
5443         * config/mn10300/linux.h: New.
5444         * config/mn10300/t-linux: New.
5445
5446 2003-07-10  Andreas Jaeger  <aj@suse.de>
5447
5448         * fold-const.c: Properly wrap prototypes.
5449
5450 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
5451
5452         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
5453         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
5454         Moved from...
5455         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
5456         * config/mn10300/mn10300.h: GTY-declare it.
5457         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
5458         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
5459         prototype.  Use incoming RTL argument.
5460         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
5461         * config/mn10300/mn10300.md (int_label): Move C statements...
5462         (GOTaddr2picreg): ... here.
5463         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
5464         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
5465         * config/mn10300/mn10300.c (mn10300_encode_section_info):
5466         ... here.  New function.
5467         (TARGET_ENCODE_SECTION_INFO): Define to it.
5468         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
5469         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
5470         pattern name.
5471         (mn10300_loadPC): Define as insn splittable after reload.
5472         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
5473         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
5474         be defined in .rodata even in PIC, now that the assembler
5475         supports that.
5476         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
5477         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
5478         symbol take an underscore prefix.
5479         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
5480         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
5481         legitimize_pic_address): Declare.
5482         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
5483         the PIC register as fixed.
5484         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
5485         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
5486         PIC.
5487         (LEGITIMATE_PIC_OPERAND_P): Define.
5488         (PIC_OFFSET_TABLE_REGNUM): Define.
5489         (GOT_SYMBOL_NAME): Define.
5490         (SYMBOLIC_CONST_P): Define.
5491         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
5492         symbols.
5493         (MN10300_GLOBAL_P): Test it.
5494         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
5495         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
5496         * config/mn10300/mn10300.c (print_operand): Handle unspec.
5497         (expand_prologue): Set PIC register.
5498         (call_address_operand): Don't match SYMBOL_REFs in PIC.
5499         (legitimize_address): Call legitimize_pic_address.
5500         (legitimize_pic_address): New fn.
5501         (legitimate_pic_operand_p): New fn.
5502         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
5503         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
5504         UNSPEC_PLT): New constants.
5505         (pop_pic_reg): New insn.
5506         (movsi): Adjust non-PIC addresses.
5507         (builtin_setjmp_receiver): Restore the PIC register.
5508         (casesi): New insn.
5509         (call): Adjust non-PIC addresses.
5510         (int_label, GOTaddr2picreg): New expands.
5511         (am33_loadPC): New insn.
5512         (mn10300_loadPC): New expand.
5513         (call_next_insn): New insn.
5514         (add_GOT_to_pic_reg): New expand.
5515         (symGOT2reg, symGOT2reg_i): New expands.
5516         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
5517         (sym2PIC, sym2PLT): New expands.
5518
5519 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
5520
5521         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
5522         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
5523         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
5524         to flag_unsafe_math_optimizations.
5525         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
5526         * config/mn10300/mn10300.c (expand_prologue): Mark
5527         FP-register-saving insns as frame-related.
5528         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
5529         * config/mn10300/mn10300.c
5530         (mn10300_get_live_callee_saved_regs): Don't search past
5531         LAST_EXTENDED_REGNUM.
5532         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
5533         * config/mn10300/mn10300.md: Remove excessive line breaks from
5534         `@' output patterns that were accounted as additional
5535         alternatives.
5536         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
5537         Re-introduce changes accidentally removed in Richard Sandiford's
5538         2000-12-05's patch.
5539         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
5540         Re-instate am33-2 lost in merge from net GCC.
5541         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
5542         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
5543         floating-point registers.
5544         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
5545         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
5546         pessimizations that had gone in on 2000-05-08.
5547         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
5548         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
5549         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
5550         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
5551         operand 0.
5552         * (movhi): Likewise.
5553         * (movsi): Likewise.
5554         * (movsf): Likewise.
5555         * (movdi): Likewise.
5556         * (movdf): Likewise.
5557         Wed May 24 13:16:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
5558         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
5559         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
5560         (expand_prologue, expand_epilogue): Save and restore FP regs.
5561         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
5562         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
5563         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
5564         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
5565         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
5566         Do not clobber cc0.
5567         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
5568         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
5569         Discourage the two-argument, longer opcodes.
5570         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
5571         ones.
5572         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
5573         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
5574         * config/mn10300/mn10300.md (cmpsf): New pattern.
5575         (branch): Test mdep.fpCC and output fbCC.
5576         * config/mn10300/mn10300.c (print_operand): Output conditions.
5577         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
5578         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
5579         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
5580         mulsf3, divsf3): Use the `F' constraint for FP values.
5581         * config/mn10300/mn10300.c (const_1f_operand): New function.
5582         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
5583         * config/mn10300/mn10300.md (sqrtsf2): New expand.
5584         (rsqrtsf2): New insn.
5585         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
5586         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
5587         previous check-in.
5588         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
5589         * config/mn10300/mn10300.md (abssf2, negdf2): On
5590         TARGET_AM33_2, expand to...
5591         (abssf2_am33_2, negdf2_am33_2): New insns.
5592         (addsf3, subsf3, mulsf3, divsf3): Likewise.
5593         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
5594         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
5595         movdi, movdf): Added FP regs.
5596         * invoke.texi (-mam33-2, -mno-am33-2): Document.
5597         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
5598         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
5599         New macros.
5600         (REGNO_AM33_2_FP_P): Renamed to...
5601         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
5602         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
5603         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
5604         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
5605         regs from GENERAL_REGS.
5606         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
5607         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
5608         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
5609         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
5610         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
5611         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
5612         as FP_REGS.
5613         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
5614         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
5615         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
5616         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
5617         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
5618         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
5619         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
5620         AM33/2.0 floating-point registers.
5621         (CONDITIONAL_REGISTER_USAGE): Adjust.
5622         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
5623         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
5624         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
5625         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
5626         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
5627         (MULTILIB_DIRNAMES): Likewise.
5628         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
5629         `__AM33_2__' when `-mam33-2' is given.
5630         (TARGET_AM33_2): Define.
5631         (TARGET_SWITCHES): Adjust.
5632         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
5633         when appropriate.
5634
5635 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
5636
5637         * doc/install.texi: Add missing @.
5638
5639 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
5640
5641         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
5642
5643 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
5644
5645         PR/11144
5646         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
5647
5648 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
5649
5650         PR bootstrap/11043
5651         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
5652         "x-crtfini.o" with "crtinit.o", "crtfini.o".
5653
5654         * fixinc/inclhack.def (limits_ifndefs): Add select test.
5655         * fixinc/fixincl.x: Rebuild.
5656
5657         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
5658         * fixinc/fixincl.x: Rebuild.
5659
5660 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
5661
5662         * doc/install.texi (Configuration): Document the valgrind option
5663         to --enable-checking.
5664
5665 Wed Jul  9 16:16:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
5666
5667         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
5668
5669 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5670
5671         * c-lex.c (cb_ident): Cast cstr.text to const char *.
5672
5673 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
5674
5675         * gcov-io.h: Update documentation.
5676         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
5677         GCOV_NOTE_MAGIC.
5678         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
5679         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
5680         (struct gcov_var): Change buffer's type. Add endian flag.
5681         (gcov_open): Remove mode in libgcov.
5682         (gcov_magic): Prototype.
5683         * gcov-io.c (from_file): New.
5684         (gcov_open): Clear endian flag.
5685         (gcov_magic): New.
5686         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
5687         pointers.
5688         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
5689         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
5690         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
5691         * gcov-iov.c (main): Correct cast.
5692         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
5693         conversion.
5694         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
5695         (coverage_init): Use GCOV_NOTE_SUFFIX.
5696         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
5697         Rename to gcov_version, and return flag.
5698         (gcov_exit): Use gcov_version.
5699         (__gcov_init): Use gcov_version.
5700         * Makefile.in (coverageexts): Update.
5701         * gcov.c (print_version): Remove endianness conversion.
5702         (create_file_names): Use GCOV_NOTE_SUFFIX.
5703         (read_graph_file): Use gcov_magic.
5704         (read_count_file): Likewise.
5705         * gcov-dump.c (dump_file): Remove endianness conversion, use
5706         gcov_magic.
5707
5708 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
5709
5710         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
5711         coverage is on.
5712         * configure: Regenerated.
5713         * Makefile.in (ALL_CFLAGS): Correct its comment.
5714
5715 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
5716
5717         * fold-const.c (make_range): Do not access operand 1 for a
5718         zero-operand operator.
5719
5720 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
5721
5722         * toplev.c (warn_dummy, W_options): Die.
5723         (display_help): Don't print W_options.
5724         * common.opt: Add W_options help from toplev.c.
5725
5726 2003-07-09  Andreas Jaeger  <aj@suse.de>
5727
5728         * opts.c (wrap_help): Only pass int arguments as arguments to
5729         printf's '*' modifier.  Change argument of function.
5730
5731 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
5732
5733         * doc/invoke.texi: Fix misspelling of "@item".
5734
5735 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
5736
5737         * config/i386/i386.md: Remove an old comment about
5738         NOTICE_UPDATE_CC.
5739
5740 Wed Jul  9 03:00:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
5741
5742         * cgraph.c (cgraph_node_name): New function.
5743         (dump_cgraph): Use it.
5744         * cgraph.h (cgraph_dump_file): Declare.
5745         (cgraph_node_name): Declare.
5746         * cgraphunit.c: Include timevar.h
5747         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
5748         (cgraph_optimize_function): Use TV_INTEGRATION.
5749         (cgraph_mark_local_functions): reorganize dumps.
5750         (cgraph_mark_functions_to_inline_once): Likewise.
5751         (cgraph_optimize): Likewise; use timevar.
5752         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
5753         * toplev.c (dump_file_index): Add DFI_cgraph.
5754         (dump_file_info): Likewise.
5755         (cgraph_dump_file): New global variable.
5756         (do_compile): Open and close cgraph dump.
5757         * invoke.texi (-d): Document new flag; renumber.
5758
5759 2003-07-08  Roger Sayle  <roger@eyesopen.com>
5760
5761         PR c/11370
5762         * calls.c (emit_call_1): Don't bother popping the arguments off of
5763         the stack after a noreturn function call;  The adjustment is dead.
5764         (expand_call): Likewise.
5765
5766 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
5767
5768         * expr.c (MOVE_MAX_PIECES): Move from here...
5769         * defaults.h (MOVE_MAX_PIECES): ... to here.
5770
5771 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
5772
5773         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
5774
5775 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5776
5777         * genattr.c (internal_dfa_insn_code): Don't prototype.
5778         * genattrtab.c (attr_desc): Add `static_p' field.
5779         (expand_units): Make blockage range and ready cost functions
5780         static.
5781         (write_attr_get): Don't add extern prototypes in C file.  Mark
5782         static functions as appropriate.
5783         (find_attr, make_internal_attr): Initialize static_p.
5784         * genattrtab.h (ATTR_STATIC): New macro.
5785         * genautomata.c (output_internal_reset_func): Mark output function
5786         as inline.
5787         (make_internal_dfa_insn_code_attr): Mark output function as static.
5788
5789 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5790
5791         * genattrtab.h: Add new macros for attr `special' flags.
5792         * genattrtab.c (attr_desc): Reorder/resize fields better.
5793         Use attr `special' macros in all calls to make_internal_attr.
5794         * genautomata.c: Likewise.
5795
5796 Wed Jul  9 02:25:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
5797
5798         * c-common.c (c_estimate_num_insns_1): New static function.
5799         (c_estimate_num_insns): New global function.
5800         * c-common.h (DECL_NUM_STMTS): Rename to...
5801         (DECL_ESTIMATED_INSNS): ... this.
5802         (c_estimate_num_insns): Declare.
5803         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
5804         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
5805         * c-semantics.c (add_stmt): Do not account statements.
5806         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
5807         New.
5808         * langhooks.h (lang_hooks_for_tree_inlining): Add
5809         estimate_num_insns
5810         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
5811         to 100.
5812         (max-inline-insns): set to 300.
5813         (min-inline-insns): set to 10.
5814         * tree-inline.c (struct inline_data): Rename inlined_stmts to
5815         inlined-insns.
5816         (INSNS_PER_STMT): Kill.
5817         (inlinable_function_p): Compute and store body size.
5818         (expand_call_inline): Likewise.
5819         (optimize_inline_calls): Likewise.
5820
5821 2003-07-08  James E Wilson  <wilson@tuliptree.org>
5822
5823         PR target/10021
5824         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
5825         loop over new variable t2 instead of t.
5826
5827 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
5828
5829         PR bootstrap/11455
5830         * config/i386/winnt.c: Replace use of error(), warning() with
5831         error_with_decl(), warning_with_decl(),  throughout.
5832
5833 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
5834
5835         * opts.c (wrap_help): Use unsigned int, not size_t.
5836
5837 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
5838
5839         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
5840         as .file/.loc directives are incompatible with linker relaxation.
5841
5842 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
5843
5844         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
5845         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
5846         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
5847         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
5848         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
5849         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
5850         Escape { and } characters which are not part of range expressions.
5851         * fixinc/fixincl.x: Regenerate.
5852         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
5853
5854 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
5855
5856         PR c/1687
5857         * tree-inline.c (find_alloca_call): Use
5858         walk_tree_without_duplicates, instead of walk_tree.
5859         (find_builtin_longjmp_call): Likewise.
5860         * c-objc-common.c (c_cannot_inline_fn): Likewise.
5861         * c-semantics.c (find_reachable_label): Likewise.
5862
5863 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
5864
5865         PR c/11420
5866         * config/i386/i386.c (ix86_check_movabs): New function.
5867         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
5868         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
5869         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
5870
5871 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
5872
5873         * Makefile.in (install-po): Cope with empty CATALOGS.
5874
5875 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
5876
5877         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
5878         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
5879         (SECTION_FUNCTION_TEMPLATE): Delete.
5880         * config/mips/elf.h: As for elf64.h.
5881         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
5882         * config/mips/linux.h: As for elf.h
5883         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
5884         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
5885         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
5886         of in_sdata from current_section_name and current_section_flags.
5887         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
5888         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
5889         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
5890         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
5891         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
5892         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
5893         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
5894         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
5895         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
5896         (override_options): Remove setting of MASK_GPOPT.
5897         (mips_output_external): Use mips_in_small_data_p to check whether a
5898         symbol needs an .extern directive.  Don't emit such directives for
5899         TARGET_EXPLICIT_RELOCS.
5900         (mips_declare_object): Update accordingly.
5901         (mips_select_rtx_section): Call named_section rather than
5902         SMALL_DATA_SECTION.
5903         (mips_select_section): Use default_elf_section_section for everything
5904         except .text string constants.
5905         (mips_in_small_data_p): New function.
5906         (mips_encode_section_info): Remove small data handling.
5907         (mips_unique_section): Delete.
5908         (iris6_section_type_flags): New function.
5909         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
5910
5911 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5912
5913         PR Target/11453
5914         * pa.md: Disparage all mtsar constraints.
5915         (extzv, extv, insv): Don't fail on length of {32|64}.
5916
5917 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
5918
5919         * system.h: Poison MAP_CHARACTER.
5920         * config/i370/i370-protos.h (mvs_map_char): Delete.
5921         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
5922         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
5923         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
5924
5925 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
5926
5927         * toplev.c (randomize): Correct call to time().
5928
5929 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
5930
5931         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
5932         REG_EQUIV notes as well.
5933
5934 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
5935
5936         * doc/md.texi: Fix the description of addmodecc.
5937
5938 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
5939
5940         * Makefile.in (top_builddir): Set to "..", not ".".
5941         (INTLLIBS, INTLDEPS): Delete.
5942         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
5943         (LIBDEPS): Add $(LIBICONV_DEP).
5944         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
5945         (INCLUDES): Replace -I../intl with @INCINTL@.
5946         ($(top_builddir)/intl/libintl.a): Delete rule.
5947         (stage2-start, stage3-start, stage4-start, stageprofile-start,
5948         stagefeedback-start): Use $$ for variable to be evaluated by
5949         shell, not make.
5950         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
5951         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
5952         * aclocal.m4: sinclude ../config/progtest.m4.  Add
5953         contents of lcmessage.m4 from gettext distro.
5954         * configure.in: Check for wchar.h and setlocale.  Set
5955         LIBICONV_DEP to the empty string and substitute it.
5956         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
5957         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
5958         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
5959         in $LIBINTL, to avoid linking it twice.
5960         * configure, config.in: Regenerate.
5961
5962 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
5963
5964         * fixinc/mkfixinc.sh: Remove winnt support.
5965         * fixinc/fixinc.winnt: Delete with extreme prejudice.
5966
5967 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
5968
5969         * Makefile.in: Update.
5970         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
5971         * c.opt: Update documentation.
5972         * common.opt: Add some help text.
5973         * opts.c: Include intl.h.
5974         (wrap_help, print_help): New.
5975         (find_opt, handle_option, common_handle_option): opt_text now
5976         contains the '-'.  Use print_help to output help.
5977         * opts.h (struct cl_option): New member "help".
5978         * opts.sh: Update to handle help text output and to prepend
5979         options with '-'.
5980         * toplev.c (display_help): Remove some help text.
5981
5982 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
5983             Fariborz Jahanian  <fjahanian@apple.com>
5984
5985         * configure.in: Test for PowerPC mfcr field support in assembler.
5986         * config.in, configure: Regenderated.
5987
5988         * config/rs6000/power4.md: Add mfcrf reservation.
5989         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
5990         * config/rs6000/rs6000.c (mfcr_operation): Define.
5991         (print_operand): Add 'Q' case for mfcrf.
5992         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
5993         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
5994         (movcc_internal1): Emit optional field operand for mfcr and set
5995         "type" attribute appropriately.
5996         (mfcr SCC): Likewise.
5997         (movesi_from_cr_one): New.
5998
5999 2003-07-07  Roger Sayle  <roger@eyesopen.com>
6000
6001         * config/i386/i386.md: Correct check-in of incorrect version.
6002
6003 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6004
6005         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
6006         adjacent stdio calls.
6007         * c-decl.c (c_print_identifier): Likewise.
6008         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
6009         * print-rtl.c (print_rtx): Likewise.
6010         * print-tree.c (print_node_brief, print_node): Likewise.
6011         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
6012
6013         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
6014         * config.in, configure: Regenerated.
6015
6016 2003-07-07  Roger Sayle  <roger@eyesopen.com>
6017
6018         PR target/10979
6019         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
6020         Changed to define_expand patterns that copy operand[1] to prevent
6021         it from being clobbered before emitting an atan2?f3_1 insn.
6022         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
6023         patterns that actually specify the behaviour of x87's FPATAN.
6024
6025 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
6026
6027         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
6028         clearing of SYMBOL_FLAG_LOCAL bit.
6029         If vcall_offset fits into signed 16-bit immediate, use
6030         one instruction for both addition and load.
6031
6032 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
6033
6034         * opts.c (common_handle_option): Correct handling of the
6035         -falign- switches that do and don't take an argument.
6036
6037 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
6038
6039         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
6040         today.
6041         (pushhi1_h8300hs): Likewise.
6042
6043 2003-07-07  Andreas Jaeger  <aj@suse.de>
6044
6045         * genextract.c: Convert remaining prototypes to ISO C90.
6046
6047         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
6048         * fold-const.c (fold_single_bit_test): Likewise.
6049         * diagnostic.c (default_diagnostic_finalizer): Likewise.
6050         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
6051
6052         * gengtype.c (write_array): Generate ISO C90 prototypes.
6053
6054         * genflags.c (gen_proto): Generate ISO C90 prototypes.
6055
6056 2003-07-07  Roger Sayle  <roger@eyesopen.com>
6057
6058         PR optimization/11059
6059         * expr.c (can_store_by_pieces): Return true if length is zero.
6060         (store_by_pieces): If length is zero and endp is two, abort,
6061         othwerise, if length is zero and endp is not two, return "to".
6062         (clear_by_pieces): Do nothing if length is zero.
6063         (clear_storage): Do nothing if length is zero.
6064         (store_constructor): Simplify code when size is zero, or the
6065         target has already been cleared.  This avoids emitting a
6066         blockage instruction when initializing empty structures.
6067
6068 2003-07-07  Andreas Jaeger  <aj@suse.de>
6069
6070         * mips-tfile.c: Convert prototypes to ISO C90.
6071         * mips-tdump.c: Convert prototypes to ISO C90.
6072
6073 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
6074
6075         * rtl.h (emit_line_note): Take a location_t.
6076         (emit_line_note_force): Remove.
6077         (set_file_and_line_for_statement): Take a location_t.
6078         * tree.g (emit_line_note): Take a location_t.
6079         * emit-rtl.c (emit_line_note): Take a location_t.
6080         (emit_line_note_force): Remove.
6081         * function.c (init_function_start): Adjust emit_line_note call.
6082         (expand_function_end): Use force_next_line_note, not
6083         emit_line_note_force.
6084         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
6085         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
6086         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
6087         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
6088         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
6089         genrtl_continue_stmt, genrtl_switch_stmt,
6090         genrtl_asm_stmt): Likewise.
6091         * expr.c (expand_expr): Likewise.
6092         * integrate.c (expand_inline_function): Likewise.
6093         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
6094         (expand_decl_init): Adjust emit_line_note call.
6095
6096 2003-07-07  Dale Johannesen  <dalej@apple.com>
6097
6098         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
6099
6100 2003-07-07  Andreas Jaeger  <aj@suse.de>
6101
6102         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
6103         * config/i386/i386.c: Likewise.
6104
6105 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
6106
6107         * config/h8300/h8300.md: Use gen_int_mode instead of
6108         GEN_INT (trunc_int_for_mode (...)).
6109
6110 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
6111
6112         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
6113         2 bytes and then subtract 2 from the stack pointer.
6114         (pushhi1_h8300hs): Likewise.
6115
6116 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
6117
6118         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
6119         -frandom-seed.
6120         * configure: Regenerated.
6121         * Makefile.in: Remove extraneous comment.
6122         * toplev.c (randomize): Protect against potential multiple calls.
6123         * doc/invoke.texi (-frandom-seed): Document use for in coverage
6124         files.
6125
6126 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6127             Eric Botcazou  <ebotcazou@libertysurf.fr>
6128
6129         PR optimization/11198
6130         * alias.c (objects_must_conflict_p): Return 1 if the types have
6131         the same alias set, not if the alias sets only conflict.
6132
6133 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
6134
6135         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
6136         (convert_cset): Change inbuf to type ICONV_CONST char.
6137         * Makefile.in (LIBS): Add LIBICONV.
6138
6139         * doc/invoke.texi (-falign-functions): Document that
6140         when n is zero then a machine-dependent default is used.
6141         (-falign-labels): Document that when n is zero then a
6142         machine-dependent default is used and that -falign-labels =1
6143         is equivalent to -fno-align-labels.
6144         (-falign-loops): Likewise.
6145         (-falign-jumps): Likewise.
6146
6147 2003-07-06  Art Haas  <ahaas@airmail.net>
6148
6149         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
6150         initializer syntax.
6151
6152 2003-07-06  James E Wilson  <wilson@tuliptree.org>
6153
6154         PR optimization/9812
6155         * rtl.h (mem_for_const_double): Delete prototype.
6156         * varasm.c (mem_for_const_double): Delete function.
6157         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
6158         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
6159         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
6160         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
6161         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
6162         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
6163         comment about confused support for XFmode constants.
6164
6165 Mon Jul  7 02:03:56 CEST 2003  Jan Hubicka  <jh@suse.cz>
6166
6167         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
6168
6169 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
6170
6171         * config/h8300/h8300.c: Fix comment typos.
6172         * config/h8300/h8300.md: Likewise.
6173         * config/i386/athlon.md: Likewise.
6174         * config/i386/i386.c: Likewise.
6175         * config/i386/pentium.md: Likewise.
6176         * config/ia64/ia64.c: Likewise.
6177         * config/ia64/itanium1.md: Likewise.
6178         * config/ia64/itanium2.md: Likewise.
6179         * config/m32r/m32r.md: Likewise.
6180         * config/m68hc11/m68hc11.c: Likewise.
6181         * config/mcore/mcore.c: Likewise.
6182         * config/mips/sr71k.md: Likewise.
6183         * config/mips/t-iris5-as: Likewise.
6184         * config/mmix/mmix.h: Likewise.
6185         * config/ns32k/ns32k.h: Likewise.
6186         * config/ns32k/NOTES: Fix a typo.
6187
6188 2003-07-06  Andreas Jaeger  <aj@suse.de>
6189
6190         * stmt.c: Convert remaining prototypes to ISO C90.
6191         * cfglayout.c: Likewise.
6192         * dbxout.c: Likewise.
6193         * gcc.c: Likewise.
6194         * genemit.c: Likewise.
6195
6196         * basic-block.h: Convert prototypes to ISO C90.
6197         * c-parse.in: Likewise.
6198         * c-pragma.h: Likewise.
6199         * c-typeck.c: Likewise.
6200         * cfghooks.h: Likewise.
6201         * cfgloopanal.c: Likewise.
6202         * dbxout.h: Likewise.
6203         * debug.h: Likewise.
6204         * dwarf2asm.h: Likewise.
6205         * gcov.c: Likewise.
6206         * gengtype-lex.l: Likewise.
6207         * sched-int.h: Likewise.
6208         * timevar.c: Likewise.
6209
6210 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
6211
6212         * c-common.h (c_comon_handle_filename,
6213         c_common_missing_arguement): New.
6214         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
6215         LANG_HOOKS_MISSING_ARGUMENT): New.
6216         * c-opts.c (missing_arg): Rename c_common_missing_argument,
6217         update to be an appropriate langhook.
6218         (c_common_handle_option): Don't handle filenames.
6219         (c_common_handle_filename): New.
6220         * hooks.c (hook_void_constcharptr,
6221         hook_bool_constcharptr_size_t_false): New.
6222         * hooks.h (hook_void_constcharptr,
6223         hook_bool_constcharptr_size_t_false): New.
6224         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
6225         LANG_HOOKS_MISSING_ARGUMENT): New.
6226         (LANG_HOOKS_INITIALIZER): Update.
6227         * langhooks.h (struct lang_hooks): Add handle_filename and
6228         missing_argument.
6229         * opts.c (handle_option): Don't handle filenames here, but ...
6230         (handle_options): ... here.
6231         (common_handle_option): Don't handle missing arguments here.
6232         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
6233         LANG_HOOKS_MISSING_ARGUMENT): New.
6234
6235 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
6236
6237         * Makfile.in: Remove traces of mbchar.
6238         * c-parse.in (MULTIBYTE_CHARS): Remove.
6239         * config.in (MULTIBYTE_CHARS): Remove.
6240         * configure: Remove --enable-mbchar.
6241         * configure.in: Remove --enable-mbchar.
6242         * mbchar.c, mbchar.h: Remove.
6243         * system.h: Poison MULTIBYTE_CHARS.
6244         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
6245         * config/linux.h (MULTIBYTE_CHARS): Remove.
6246         * config/svr4.h (MULTIBYTE_CHARS): Remove.
6247         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
6248
6249 2003-07-06  Andreas Jaeger  <aj@suse.de>
6250
6251         * varray.c (varray_check_failed): Fix typo.
6252
6253         * unroll.c: Convert prototypes to ISO C90.
6254         * varasm.c: Likewise.
6255         * varray.c: Likewise.
6256         * varray.h: Likewise.
6257         * vmsdbgout.c: Likewise.
6258         * xcoffout.c: Likewise.
6259         * xcoffout.h: Likewise.
6260
6261 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
6262
6263         * gcov-io.h: Add a local time stamp.
6264         (struct gcov_info): Add stamp field.
6265         (gcov_truncate): New.
6266         * coverage.c (read_counts_file): Skip the stamp.
6267         (coverage_begin_output): Write the stamp.
6268         (build_gcov_info): Declare and init the stamp.
6269         (coverage_finish): Only unlink data file, if stamp is zero.
6270         * gcov-dump.c (dump_file): Dump the stamp.
6271         * gcov.c (bbg_stamp): New.
6272         (release_structures): Clear bbg_stamp.
6273         (read_graph_file): Read stamp.
6274         (read_count_file): Check stamp.
6275         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
6276
6277 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
6278
6279         * tree.h (default_flag_random_seed): Remove.
6280         * toplev.h (local_tick): Declare.
6281         * tree.c (flag_random_seed, default_flag_random_seed): Move to
6282         toplev.c.
6283         (append_random_chars): Don't call default_flag_random_seed.
6284         * toplev.c (flag_random_seed): Define here. Set local_tick.
6285         (local_tick): Define.
6286         (randomize): New, moved from tree.c.
6287         (print_switch_values): Adjust.
6288         (toplev_main): Call randomize.
6289
6290 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
6291
6292         * tree.h (crc32_string): Declare.
6293         * tree.c (append_random_chars): Remove.
6294         (crc32_string): New.
6295         (get_file_function_name_long): Use crc32_string here.
6296
6297 2003-07-06  Andreas Jaeger  <aj@suse.de>
6298
6299         * gcc.c: Convert prototypes to ISO C90.
6300         * gcc.h: Likewise.
6301         * gcov-dump.c: Likewise.
6302         * gcov-iov.c: Likewise.
6303         * gcse.c: Likewise.
6304         * genattrtab.h: Likewise.
6305         * ggc.h: Likewise.
6306         * global.c: Likewise.
6307         * graph.c: Likewise.
6308         * graph.h: Likewise.
6309         * hosthooks.h: Likewise.
6310         * hooks.h: Likewise.
6311         * hooks.c: Likewise.
6312         * hashtable.h: Likewise.
6313         * hashtable.c: Likewise.
6314         * haifa-sched.c: Likewise.
6315         * integrate.h: Likewise.
6316         * integrate.c: Likewise.
6317         * input.h: Likewise.
6318         * ifcvt.c: Likewise.
6319         * jump.c: Likewise.
6320         * langhooks-def.h: Likewise.  Add extern to prototypes.
6321         * langhooks.c: Likewise.
6322         * langhooks.h: Likewise.
6323         * lcm.c: Likewise.
6324         * local-alloc.c: Likewise.
6325         * loop-init.c: Likewise.
6326         * loop-unroll.c: Likewise.
6327         * loop-unswitch.c: Likewise.
6328         * loop.c: Likewise.
6329         * loop.h: Likewise. Add extern to prototypes.
6330         * machmode.h: Likewise.
6331         * main.c: Likewise.
6332         * mbchar.c: Likewise.
6333         * mbchar.h: Likewise.
6334         * mkdeps.c: Likewise.
6335         * mkdeps.h: Likewise.
6336         * optabs.c: Likewise.
6337         * optabs.h: Likewise.
6338         * output.h: Likewise.
6339         * gccspec.c: Likwise.
6340         * postreload.c: Likewise.
6341         * prefix.c: Likewise.
6342         * prefix.h: Likewise.
6343         * print-rtl.c: Likewise.
6344         * print-tree.c: Likewise.
6345         * profile.c: Likewise.
6346         * read-rtl.c: Likewise.
6347         * real.c: Likewise.
6348         * real.h: Likewise.
6349         * recog.c: Likewise.
6350         * recog.h: Likewise.
6351         * reg-stack.c: Likewise.
6352         * regclass.c: Likewise.
6353         * regmove.c: Likewise.
6354         * regrename.c: Likewise.
6355         * regs.h: Likewise.
6356         * reload.c: Likewise.
6357         * reload.h: Likewise.
6358         * reload1.c: Likewise.
6359         * reorg.c: Likewise.
6360         * resource.c: Likewise.
6361         * resource.h: Likewise.
6362         * rtl-error.c: Likewise.
6363         * rtl.c: Likewise.
6364         * rtl.h: Likewise.
6365         * rtlanal.c: Likewise.
6366         * sbitmap.c: Likewise.
6367         * sbitmap.h: Likewise.
6368         * scan-decls.c: Likewise.
6369         * scan.c: Likewise.
6370         * sched-deps.c: Likewise.
6371         * sched-ebb.c: Likewise.
6372         * sched-int.h: Likewise.
6373         * sched-rgn.c: Likewise.
6374         * sched-vis.c: Likewise.
6375         * sibcall.c: Likewise.
6376         * simplify-rtx.c: Likewise.
6377         * sreal.c: Likewise.
6378         * sreal.h: Likewise.
6379         * ssa-ccp.c: Likewise.
6380         * ssa-dce.c: Likewise.
6381         * ssa.c: Likewise.
6382         * ssa.h: Likewise.
6383         * stack.h: Likewise.
6384         * stmt.c: Likewise.
6385         * stor-layout.c: Likewise.
6386         * stringpool.c: Likewise.
6387         * target.h: Likewise.
6388         * timevar.c: Likewise.
6389         * timevar.h: Likewise.
6390         * tlink.c: Likewise.
6391         * tracer.c: Likewise.
6392         * tree-inline.c: Likewise.
6393         * tree-inline.h: Likewise.
6394         * tree.c: Likewise.
6395         * tree.h: Likewise.
6396
6397 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
6398
6399         * combine.c (nonzero_bits1): Fix a warning.
6400
6401 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
6402
6403         * config/h8300/h8300.c (compute_mov_length): Correct the
6404         length of loading CONST0_RTX (SFmode).
6405
6406 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
6407
6408         * toplev.c (output_clean_symbol_name): Remove.
6409         * toplev.h (output_clean_symbol_name): Remove.
6410         * config/alpha/alpha.c (unicosmk_output_module_name): Use
6411         lbasename & clean_symbol_name.
6412
6413 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
6414
6415         * ggc.h: Follow spelling conventions.
6416         * config/i386/i386.c: Likewise.
6417         * config/i386/winnt.c: Likewise.
6418         * config/rs6000/rs6000.c: Likewise.
6419
6420 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
6421
6422         * bt-load.c: Fix comment typos.
6423         * c-incpath.c: Likewise.
6424         * cfg.c: Likewise.
6425         * cfgcleanup.c: Likewise.
6426         * cfgloop.h: Likewise.
6427         * cfgloopmanip.c: Likewise.
6428         * cfgrtl.c: Likewise.
6429         * diagnostic.h: Likewise.
6430         * dwarfout.c: Likewise.
6431         * emit-rtl.c: Likewise.
6432         * et-forest.c: Likewise.
6433         * et-forest.h: Likewise.
6434         * expr.c: Likewise.
6435         * gcse.c: Likewise.
6436         * genattr.c: Likewise.
6437         * jump.c: Likewise.
6438         * langhooks.h: Likewise.
6439         * local-alloc.c: Likewise.
6440         * loop-unroll.c: Likewise.
6441         * loop-unswitch.c: Likewise.
6442         * ra-build.c: Likewise.
6443         * regclass.c: Likewise.
6444         * regmove.c: Likewise.
6445         * rtl.def: Likewise.
6446         * rtlanal.c: Likewise.
6447         * sched-ebb.c: Likewise.
6448         * sched-rgn.c: Likewise.
6449         * simplify-rtx.c: Likewise.
6450         * ssa.c: Likewise.
6451         * tracer.c: Likewise.
6452         * tree.c: Likewise.
6453
6454 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
6455
6456         * cppcharset.c: Use the correct return type for the fallback iconv
6457         macro.
6458
6459 Sat Jul  5 16:18:53 CEST 2003  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6460
6461         Blame to Jan Hubicka  <jh@suse.cz>
6462         * cfglayout.c (record_effective_endpoints): Split insns before
6463         first basic block correctly.
6464
6465 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6466
6467         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
6468         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
6469         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
6470
6471 2003-07-05  Andreas Jaeger  <aj@suse.de>
6472
6473         * genattrtab.c (write_attr_get): Revert part of last patch to
6474         always write out a prototype.
6475
6476         * genemit.c (gen_split): Readd lost unused attributes in last
6477         patch.
6478
6479 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6480
6481         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
6482         different from header.
6483
6484 2003-07-05  Andreas Schwab  <schwab@suse.de>
6485
6486         * config/m68k/m68k.c: Remove code protected by CRDS.
6487         * config/m68k/m68k.md: Likewise.
6488
6489 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
6490
6491         PR driver/11417
6492         * c-opts.c (permit_fortran_options): New.
6493         (c_common_init_options): Accept fortran front end options if
6494         it looks like we might be preprocessing Fortran.
6495         (c_common_handle_option): Don't reject switch if permit_fotran_options.
6496
6497 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6498
6499         * genattr.c (internal_dfa_insn_code): Output prototype.
6500         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
6501         * genautomata.c: Likewise.
6502         * genconditions.c: Likewise.
6503         * genemit.c: Likewise.
6504         * genextract.c: Likewise.
6505         * gengenrtl.c: Likewise.
6506         * gengtype.c: Likewise.
6507         * genopinit.c: Likewise.
6508         * genoutput.c: Likewise.
6509         * genpeep.c: Likewise.
6510         * genrecog.c: Likewise.
6511
6512 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
6513
6514         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
6515         (struct cpp_options): Add narrow_charset, wide_charset,
6516         bytes_big_endian fields.  Remove EBCDIC field.
6517         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
6518
6519         * cpphash.h: Include <iconv.h> if we have it, otherwise
6520         provide a dummy definition of iconv_t.
6521         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
6522         (_cpp_valid_ucn): Update prototype.
6523         (_cpp_destroy_iconv): New prototype.
6524
6525         * doc/cpp.texi: Document character set handling.
6526         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
6527         * doc/extend.texi: Delete entire section on multiline strings.
6528         Rewrite section on __FUNCTION__ etc now that these are
6529         variables in C.
6530
6531         * cppucnid.tab, cppucnid.pl: New files.
6532         * cppucnid.h: New generated file.
6533         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
6534         (iconv_open, iconv, iconv_close): Provide dummy definitions
6535         if !HAVE_ICONV.
6536         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
6537         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
6538         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
6539         cpp_interpret_string, narrow_str_to_charconst,
6540         wide_str_to_charconst): New.
6541         (ucn_valid_in_identifier): Use a binary search through the
6542         ucnranges table defined in cppucnid.h, not a long chain of if
6543         statements.
6544         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
6545         character names are only valid in C++ and C99" to a warning.
6546         Issue the "meaning of \[uU] is different in traditional C"
6547         warning here.  Take care not to let iconv see an invalid UCS
6548         value if we get a malformed UCN.  Issue an error if we don't
6549         have iconv.
6550         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
6551         cpp_interpret_string to do the heavy lifting.
6552
6553         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
6554         narrow_charset, wide_charset fields of options structure.
6555         (cpp_destroy): Call _cpp_destroy_iconv.
6556         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
6557         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
6558         (cpp_interpret_charconst): Moved to cppcharset.c.
6559         * cpplib.c (dequote_string): Delete.
6560         (interpret_string_notranslate): New.
6561         (do_line, do_linemarker): Use interpret_string_notranslate.
6562
6563         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
6564
6565         * c-common.c (fname_string, combine_strings): Delete.
6566         * c-common.h (fname_string, combine_strings): Delete prototypes.
6567         * c-lex.c (ignore_escape_flag): Delete.
6568         (cb_ident): Use cpp_interpret_string, not lex_string.
6569         (get_nonpadding_token): New function.
6570         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
6571         Adjust calls to lex_string.  Don't write *value twice.
6572         (lex_string): Now handles string constant concatenation.
6573         Most of the work handed off to cpp_interpret_string.
6574         Call fix_string_type here.
6575         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
6576         FUNC_NAME, throughout.
6577         (OBJC_STRING): New token type.
6578         (primary:STRING): No need to call fix_string_type here.
6579         (primary:objc_string): Make that OBJC_STRING.
6580         (objc_string nonterminal): Delete.
6581         (yylexname): Delete code to handle fake string constants.
6582         (yylexstring): Delete entirely.
6583         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
6584         to handle CPP_ATSIGN.
6585
6586         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
6587         * c-opts.c (missing_arg, c_common_handle_option): Handle
6588         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
6589         (c_common_init): Set cpp_opts->bytes_big_endian, not
6590         cpp_opts->EBCDIC.  Call cpp_init_iconv.
6591         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
6592         (TARGET_EBCDIC): Delete default definition.
6593
6594         * objc/objc-act.c (build_objc_string_object): No need to
6595         handle string constant concatenation.
6596
6597 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
6598
6599         * doc/install.texi: Fix typos.
6600         * doc/invoke.texi: Likewise.
6601         * doc/tm.texi: Likewise.
6602
6603 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
6604
6605         * config/pa/fptr.c: Fix comment typos.
6606         * config/pa/pa-64.h: Likewise.
6607         * config/pa/pa.c: Likewise.
6608         * config/pa/pa.h: Likewise.
6609         * config/rs6000/603.md: Likewise.
6610         * config/rs6000/7xx.md: Likewise.
6611         * config/rs6000/darwin.h: Likewise.
6612         * config/rs6000/freebsd.h: Likewise.
6613         * config/rs6000/rs6000.c: Likewise.
6614         * config/rs6000/rs6000.md: Likewise.
6615         * config/rs6000/spe.h: Likewise.
6616
6617 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
6618
6619         * config/s390/2064.md: Change GNU CC to GCC.
6620         * config/s390/2084.md: Likewise.
6621         * config/s390/fixdfdi.h: Likewise.
6622         * config/s390/linux.h: Likewise.
6623         * config/s390/s390-modes.def: Likewise.
6624         * config/s390/s390-protos.h: Likewise.
6625         * config/s390/s390.c: Likewise.
6626         * config/s390/s390.h: Likewise.
6627         * config/s390/s390.md: Likewise.
6628         * config/s390/s390x.h: Likewise.
6629
6630 2003-07-04  Jeff Law  <law@redhat.com>
6631
6632         PR c/11428
6633         * expr.c (do_store_flag): Pass in the correct result type
6634         when calling fold_single_bit_test.
6635         * fold-const.c (fold_single_bit_test): Use result_type for the
6636         result when folding a sign bit test.
6637
6638 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
6639
6640         * opts.c (common_handle_options): Negate sense of -falign- switches.
6641
6642 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
6643
6644         * Makefile.in: Replace PWD with PWD_COMMAND.
6645
6646 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6647
6648         * cfgloopanal.c (count_strange_loop_iterations): New static function.
6649         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
6650         Handle strange loops.
6651
6652 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
6653
6654         * install.texi: Even the g77 manpage is derived from
6655         the full g77 manual.
6656
6657 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
6658
6659         * ABOUT-NLS: Delete.
6660         * intl: Delete entire directory.
6661         * aclocal.m4: Include ../config/gettext.m4.  Delete
6662         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
6663         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
6664         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
6665         Remove intl/Makefile from all_outputs.
6666         * configure, config.in: Regenerate.
6667         * Makefile.in: Expunge all references to intl subdirectory.
6668         Add -I../intl to INCLUDES.
6669         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
6670
6671 2003-07-04  Roger Sayle  <roger@eyesopen.com>
6672
6673         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
6674         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
6675
6676 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
6677
6678         PR c++/5287, PR c++/7910, PR c++/11021
6679         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
6680         dllimport attribute if function is defined at declaration, but
6681         report error instead. Likewise for dllimport'd variable
6682         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
6683         declared within functions, Report error if dllimport or dllexport
6684         symbol is not global.
6685         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
6686         if defined after declaration or if inlined. Don't allow definition
6687         of static data members of C++ classes. Don't dllimport virtual
6688         methods.
6689         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
6690         (i386_pe_mark_dllimport): Remove unnecessary checks.
6691         (i386_pe_encode_section_info): Warn if the dllimport attribute
6692         and symbol prefix have been instantiated and then overridden.
6693
6694         * doc/extend.texi: Document dllimport and dllexport attributes.
6695
6696         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
6697
6698 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
6699
6700         * config/kaos.h (CPP_PREDEFINES): Delete.
6701         (TARGET_OS_CPP_BUILTINS): New.
6702
6703 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6704
6705         * c-aux-info.c: Include toplev.h after c-tree.h.
6706         * c-common.c: Likewise.
6707         (GCC_DIAG_STYLE): Undef.
6708         * c-semantics.c (GCC_DIAG_STYLE): Define.
6709         * c-tree.h (GCC_DIAG_STYLE): Likewise.
6710         * diagnostic.h (inform): Move prototype to toplev.h.
6711         * jump.c: Include diagnostic.h before toplev.h.
6712         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
6713         (warning, error, fatal_error, pedwarn, sorry, inform,
6714         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
6715
6716 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6717
6718         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
6719         at all if edge is not specified.
6720         (can_copy_bbs_p, copy_bbs): New.
6721         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
6722         * cfgloop.c (get_loop_body): Comment more precisely.
6723         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
6724         (scale_bbs_frequencies): Fix comment typo.
6725         (can_duplicate_loop_p): Use can_copy_bbs_p.
6726         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
6727
6728 2003-07-03  Devang Patel <dpatel@apple.com>
6729
6730         * c-opts.c (c_common_parse_file): Remove extra
6731         debug_hooks->start_source_file call.
6732
6733 2003-07-03  Roger Sayle  <roger@eyesopen.com>
6734
6735         * real.c (real_trunc, real_floor, real_ceil): New functions
6736         to implement trunc, floor and ceil respectively.
6737         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
6738         * builtins.c (integer_valued_real_p): New function to test if
6739         a floating point expression has an integer valued result.
6740         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
6741         foo(x) where foo is an integer rounding function.  Similarly,
6742         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
6743         (double)(int)x when both foo and bar are integer rounding
6744         functions and we don't need to honor errno.
6745         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
6746         New functions to fold trunc, floor and ceil.
6747         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
6748         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
6749         to fold BUILT_IN_CEIL*.
6750         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
6751         the remaining integer rounding functions.
6752
6753 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
6754
6755         * config/sparc/sparc.c (function_arg_partial_nregs): Use
6756         SPARC_INT_ARG_MAX to determine where to split unnamed
6757         complex FP arguments.
6758
6759 Thu Jul  3 20:36:47 CEST 2003  Jan Hubicka  <jh@suse.cz>
6760
6761         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
6762         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
6763         (merge_blocks_move_predecessor_nojumps,
6764          merge_blocks_move_successor_nojumps): Use merge_blocks.
6765         (try_optimize_cfg): Use merge_blocks_move.
6766         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
6767         (merge_blocks_nomove): Rename to rtl_merge_blocks.
6768         (cfg_layout_create_basic_block): New.
6769         (rtl_can_merge_blocks): New.
6770         (cfg_layout_split_block): Do not alloc aux by hand.
6771         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
6772         merge_blocks.
6773         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
6774         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
6775         * cfgloopmanip.c (loop_split_edge_with): Likewise.
6776         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
6777
6778         * basic-block.h (basic_block_def): Add field 'rbi'.
6779         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
6780         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
6781         * cfg.c (entry_exit_blocks): Add new field.
6782         * cfglayout.c: Include alloc-pool.h;
6783         (cfg_layout_pool): New.
6784         (record_effective_endpoints, fixup_reorder_chain,
6785         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
6786         of rbi.
6787         (cfg_layout_initialize_rbi): New function.
6788         (cfg_layout_initialize): Use it.
6789         (cfg_layout_finalize): Clear rbi fields.
6790         * cfglayout.h (RBI): Kill.
6791         (cfg_layout_initialize_rbi): Declare.
6792         * cfgloopmanip.c (copy_bbs): Use rbi.
6793         (record_exit_edges): Likewise.
6794         (duplicate_loop_to_header_edge): Likewise.
6795         * cfgrtl.c (cfg_layout_create_basic_block): Use
6796         cfg_layout_initialize_rbi.
6797         (cfg_layout_split_block): Use rbi.
6798         (cfg_layout_delete_block): Likewise.
6799         * loop-init.c (loop_optimizer_finalize): Likewise.
6800         * loop-unswitch.c (unswitch_loop): Likewise.
6801         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
6802
6803         * cfgrtl.c: Update comments.
6804         (try_redirect_by_replacing_jump): New argument.
6805         (redirect_branch_edge): Break out from ...
6806         (rtl_redirect_edge_and_branch): ... this one.
6807         (update_cfg_after_block_merging): Break out from ...
6808         (rtl_merge_blocks): ... this one.
6809         (cfg_layout_split_edge): New.
6810         (cfg_layout_merge_blocks): New.
6811         (cfg_layout_can_merge_blocks_p): New.
6812         (cfg_layout_redirect_edge_and_branch): Reorganize.
6813         (cfg_layout_rtl_cfg_hooks): Fill in.
6814         (cfg_layout_delete_block): Kill barriers.
6815         * cfganal.c (can_fallthru): Deal with exit blocks
6816         * cfglayout.c (cfg_layout_function_header): New function
6817         (record_effective_endpoints): Record function header.
6818         (fixup_reorder_chain): Fixup dead jumptables; place header
6819
6820         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
6821         * bb-reorder.c (cfg_layout_initialize): Update call.
6822         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
6823         edges in cfglayout mode.
6824         * cfglayout.c (cleanup_unconditional_jumps): Kill.
6825         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
6826         * cfglayout.h (cfg_layout_initialize): Update prototype.
6827         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
6828         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
6829         * flow.c (propagate_block): Do not crash when basic block ends
6830         by first insn in the chain.
6831         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
6832         do loop discovery.
6833         * tracer.c (tracer): Update call of cfg_layout_initialize.
6834
6835 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6836
6837         * Makefile.in: Use dependency variables in lieu of explicit
6838         files throughout.
6839
6840 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
6841
6842         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
6843         * tree.h: ...to here.
6844
6845 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
6846
6847         * config/s390/2064.md: Fix comment typos.
6848         * config/s390/2084.md: Likewise.
6849         * config/s390/s390.c: Likewise.
6850         * config/s390/s390.md: Likewise.
6851         * config/sh/sh.c: Likewise.
6852         * config/sh/sh.h: Likewise.
6853         * config/sh/sh.md: Likewise.
6854         * config/sparc/sparc.c: Likewise.
6855         * config/sparc/sparc.h: Likewise.
6856         * config/sparc/sparc.md: Likewise.
6857         * config/stormy16/stormy16.c: Likewise.
6858         * config/stormy16/stormy16.h: Likewise.
6859         * config/stormy16/stormy-abi: Fix a typo.
6860
6861 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
6862
6863         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
6864
6865 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6866
6867         * config/mips/mips.h (save_argv): Delete.
6868
6869 2003-07-03  Roger Sayle  <roger@eyesopen.com>
6870
6871         PR target/10700
6872         * fold-const.c (extract_muldiv_1): There's nothing that can be done
6873         if the expression is a SAVE_EXPR.
6874
6875 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
6876
6877         * config/m32r/m32r.c: Fix comment typos.
6878         * config/m68hc11/m68hc11.c: Likewise.
6879         * config/m68hc11/m68hc11.h: Likewise.
6880         * config/m68k/m68k.c: Likewise.
6881         * config/mcore/mcore.c: Likewise.
6882         * config/mcore/mcore.h: Likewise.
6883         * config/mcore/mcore.md: Likewise.
6884         * config/mips/mips.c: Likewise.
6885         * config/mips/mips.h: Likewise.
6886         * config/mips/mips.md: Likewise.
6887         * config/mips/netbsd.h: Likewise.
6888         * config/mn10300/mn10300.c: Likewise.
6889
6890 2003-07-03  Andreas Schwab  <schwab@suse.de>
6891
6892         * dbxout.c (pending_bincls): Move decl down inside
6893         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
6894
6895 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
6896
6897         * rtl.h (NOTE_DATA): Refer to whole union.
6898         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
6899
6900 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
6901
6902         PR optimization/11381
6903         * simplify-rtx.c (simplify_relational_operation): Check that
6904         two equal operands have no side-effects before simplifying
6905         the comparison.
6906
6907 2003-07-02  Jeff Law  <law@redhat.com>
6908
6909         * expr.c (do_store_flag): Remove special case folding for
6910         single bit tests.  Instead call back into the commonized folder
6911         routine.
6912         * fold-const.c (fold_single_bit_test): New function, mostly
6913         extracted from do_store_flag, with an additional case extracted
6914         from fold.
6915         (fold): Call fold_single_bit_test appropriately.
6916         * tree.h (fold_single_bit_test): Prototype.
6917
6918 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
6919
6920         * system.h: Include filenames.h.
6921         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
6922         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
6923         define based on HAVE_DOS_BASED_FILE_SYSTEM.
6924         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
6925         * config/i386/xm-mingw32.h: Don't define
6926         HAVE_DOS_BASED_FILE_SYSTEM,
6927         DIR_SEPARATOR, or DIR_SEPARATOR_2.
6928         * doc/hostconfig.texi: Update to match.
6929
6930         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
6931         config/i386/cygwin.h:
6932         Use IS_ABSOLUTE_PATH throughout.
6933         * gcc.c (DIR_UP): Delete, unused.
6934         * protoize.c (IS_SAME_PATH): Define in terms of
6935         FILENAME_CMP.
6936         (is_abspath): Delete.
6937
6938 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
6939
6940         * config/i386/emmintrin.h: Fix comment typos.
6941         * config/i386/i386.c: Likewise.
6942         * config/i386/i386.h: Likewise.
6943         * config/i386/sco5.h: Likewise.
6944         * config/ia64/ia64.c: Likewise.
6945         * config/ia64/itanium2.md: Likewise.
6946
6947 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
6948
6949         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
6950         DBX_USE_BINCL.
6951         (emit_bincl_stab): Same.
6952         (emit_pending_bincls): Same.
6953
6954 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
6955
6956         * config/h8300/h8300.c (compute_mov_length): Fix the length of
6957         loading CONST0_RTX (SFmode).
6958         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
6959         'G' to CONST0_RTX (SFmode).
6960         * config/h8300/h8300.md (movsf_h8300): Change the first
6961         constraint to 'G'.
6962         (movsf_h8300h): Likewise.
6963
6964 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
6965
6966         * c-common.h (c_common_init_options): New prototype.
6967         * c-opts.c (deferred_size): Remove.
6968         (defer_opt): Array is now pre-allocated.
6969         (c_common_init_options): Pre-allocate deferred_opts.  Make
6970         lang_flags unsigned.
6971         (push_command_line_options): Free deferred_opts.
6972         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
6973         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
6974         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
6975         * langhooks.h (struct lang_hooks): New prototype for init_options.
6976         * main.c (main): Cast argv.
6977         * opts.c (handle_option, handle_options): Update prototypes.
6978         (decode_options): save_argc, save_argv are not global.  Constify.
6979         * opts.h (decode_options): New prototype.
6980         * toplev.c (general_init): New protoype.
6981         (save_argv): Make static.
6982         (save_argc): Remove.
6983         (print_switch_values, general_init): Constify.
6984         (toplev_main): Save argv.
6985         * toplev.h (toplev_main): Update prototype.
6986         (save_argc, save_argv): Remove.
6987
6988 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
6989
6990         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
6991         (emit_bincl_stab): Same.
6992         (emit_pending_bincls): Same.
6993
6994 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
6995
6996         PR c++/11072
6997         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
6998
6999 2003-07-02  Andreas Schwab  <schwab@suse.de>
7000
7001         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
7002
7003 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
7004
7005         PR optimization/11210
7006         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
7007         about the behaviour with regard to bitfields.
7008         * fold-const (decode_field_reference): Record outermost type in
7009         case the expression is a NOP. Strip all NOPs. Set the signedness
7010         to that of the outermost type (if any) when the bitsize is equal
7011         to the size of the type.
7012
7013 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
7014
7015         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
7016         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
7017         (adddi3_internal_3, addsi3_internal_2): Likewise.
7018
7019 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
7020
7021         * config/mips/mips.c (machine_function): Add new fields:
7022         ignore_hazard_length_p and all_noreorder_p.
7023         (mips_flag_delayed_branch): New variable.
7024         (override_options): Treat '/' as an operand punctuation character.
7025         Set up mips_flag_delayed_branch.
7026         (print_operand): Handle '/'.
7027         (mips_output_function_prologue): Put the whole function in
7028         .set noreorder and .set nomacro if all_noreorder_p is true.
7029         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
7030         (mips16_optimize_gp): Remove "first insn" parameter.
7031         (mips16_lay_out_constants): New function, split out from mips_reorg.
7032         (mips_avoid_hazard, mips_avoid_hazards): New functions.
7033         (mips_reorg): For mips16 code, call mips16_lay_out_constant
7034         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
7035         do delayed-branch scheduling followed by hazard detection.
7036         (mips_adjust_insn_length): Only account for hazards if
7037         !ignore_hazard_length_p.
7038         (mips_output_load_label): Add a nop to the o32 sequence if
7039         the target suffers from load delays.
7040         (mips_output_conditional_branch): Add %/ to the end of branches.
7041         (mips_output_division): Fill the branch delay slot with %#.
7042         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
7043         instructions.  End all other %* branches with %/.
7044         (ffssi2, ffsdi2): Fix lengths.
7045         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
7046         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
7047         (fix_truncsfsi2_macro): Likewise.
7048         (mov_lwl): Set hazard to "none".
7049         (ashldi3_internal): Fill the branch delay slot with %#.
7050         (ashrdi3_internal, lshrdi3_internal): Likewise.
7051         (exception_receiver): Explicitly set $28.
7052         (hazard_nop): New pattern.
7053
7054 Wed Jul  2 08:12:36 CEST 2003  Jan Hubicka  <jh@suse.cz>
7055
7056         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
7057         before calling tree_inlinable_function_p.
7058
7059 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7060
7061         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
7062         <internal/stdio_core.h> too.
7063         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
7064         <internal/wchar_core.h> too.
7065         Substitute va_list uses in inline definition.
7066         * fixinc/fixincl.x: Regenerate.
7067
7068 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7069
7070         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
7071         Undef before redefinition.
7072         (LABEL_AFTER_LOC): Likewise.
7073         (DEFAULT_SIGNED_CHAR): Likewise.
7074         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
7075         Fix IRIX spelling.
7076
7077         * config/mips/iris3.h: Remove, unused.
7078         * config/mips/iris4.h: Likewise.
7079
7080         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
7081
7082         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
7083         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
7084         target_cpu_default.
7085
7086         * config/mips/iris5.h: Move explicit includes ...
7087         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
7088
7089         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
7090         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
7091         tm_defines.
7092
7093         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
7094         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
7095         target_cpu_default.
7096
7097         * config/mips/iris6.h: Fix IRIX spelling.
7098         (MULTILIB_DEFAULTS): Undef before redefinition.
7099
7100         * config/mips/iris6.h: Move explicit includes ...
7101         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
7102
7103 Wed Jul  2 02:16:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
7104
7105         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
7106         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
7107         Use next_needed field instead of aux to maintain the queue.
7108         * cgraph.h (cgraph_node): Add next_needed.
7109         (cgraph_varpool_node): Add next_needed; remove aux.
7110         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
7111
7112 Wed Jul  2 02:12:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
7113
7114         * cgraphunit.c (cgraph_finalize_function): Set finalized.
7115         (cgraph_finalize_function): Do not examine inlinablility.
7116         (cgraph_finalize_compilation_unit): Do it here.
7117         * cgraph.h (cgraph_local_info): Add finalized field.
7118
7119 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7120
7121         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
7122         (gt_pch_restore): Likewise.
7123
7124 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
7125
7126         * config/alpha/alpha.c: Fix comment typos.
7127         * config/alpha/elf.h: Likewise.
7128         * config/arm/arm.c: Likewise.
7129         * config/arm/arm.h: Likewise.
7130         * config/arm/arm.md: Likewise.
7131         * config/arm/t-arm-coff: Likewise.
7132         * config/arm/t-strongarm-pe: Likewise.
7133         * config/arm/xscale-elf.h: Likewise.
7134         * config/avr/avr.h: Likewise.
7135
7136 2003-07-01  Jeff Law  <law@redhat.com>
7137
7138         * stmt.c (any_pending_cleanups): Remove another redundant test.
7139
7140 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
7141             J"orn Rennecke <joern.rennecke@superh.com>
7142
7143         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
7144         for MEM case.
7145
7146 2003-07-01  Devang Patel  <dpatel@apple.com>
7147
7148         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
7149         (binclstatus): New.
7150         (struct dbx_file): New members - bincl_status, pending_bincl_name and
7151         prev.
7152         (pending_bincls): New.
7153         (dbxout_init): Initialize new dbx_file members.
7154         (dbxout_start_source_file): Same.
7155         (emit_bincl_stab): New function.
7156         (emit_pending_bincls): Same.
7157         (emit_pending_bincls_if_required): Same.
7158         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
7159         processed.
7160         (dbxout_begin_block): Emit pending BINCL stabs.
7161         (dbxout_end_block): Same.
7162         (dbxout_function_decl): Same.
7163         (dbxout_continue): Same.
7164         (dbxout_type): Same.
7165         (dbxout_class_name_qualifiers): Same.
7166         (dbxout_symbol): Same.
7167         (dbxout_symbol_location): Same.
7168         (dbxout_parms): Same.
7169
7170 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7171
7172         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
7173         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
7174
7175 2003-07-01  Andreas Jaeger  <aj@suse.de>
7176
7177         * fold-const.c: Convert prototypes to ISO C90.
7178         * function.c: Likewise.
7179         * function.h: Likewise.
7180
7181 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
7182
7183         * doc/contrib.texi: Fix typos.
7184         * doc/invoke.texi: Likewise.
7185         * doc/passes.texi: Likewise.
7186         * doc/sourcebuild.texi: Likewise.
7187         * doc/tm.texi: Likewise.
7188
7189 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
7190
7191         * basic-block.h: Fix comment typos.
7192         * bb-reorder.c: Likewise.
7193         * c-format.c: Likewise.
7194         * cfgcleanup.c: Likewise.
7195         * cfghooks.h: Likewise.
7196         * cfgloop.c: Likewise.
7197         * cfgloopmanip.c: Likewise.
7198         * cfgrtl.c: Likewise.
7199         * cgraph.h: Likewise.
7200         * cgraphunit.c: Likewise.
7201         * combine.c: Likewise.
7202         * convert.c: Likewise.
7203         * dbxout.c: Likewise.
7204         * df.c: Likewise.
7205         * df.h: Likewise.
7206         * diagnostic.c: Likewise.
7207         * dwarf2out.c: Likewise.
7208         * et-forest.h: Likewise.
7209         * flow.c: Likewise.
7210         * fold-const.c: Likewise.
7211         * function.h: Likewise.
7212         * gcov-io.h: Likewise.
7213         * gcov.c: Likewise.
7214         * gcse.c: Likewise.
7215         * genautomata.c: Likewise.
7216         * ggc-common.c: Likewise.
7217         * ggc-page.c: Likewise.
7218         * loop-unroll.c: Likewise.
7219         * loop-unswitch.c: Likewise.
7220         * loop.c: Likewise.
7221         * mips-tfile.c: Likewise.
7222         * optabs.c: Likewise.
7223         * ra-build.c: Likewise.
7224         * ra-colorize.c: Likewise.
7225         * ra-rewrite.c: Likewise.
7226         * ra.h: Likewise.
7227         * regmove.c: Likewise.
7228         * reload.c: Likewise.
7229         * rtlanal.c: Likewise.
7230         * sched-ebb.c: Likewise.
7231         * sched-int.h: Likewise.
7232         * sched-vis.c: Likewise.
7233         * sreal.c: Likewise.
7234         * ssa-ccp.c: Likewise.
7235         * ssa.c: Likewise.
7236         * toplev.c: Likewise.
7237         * tree-inline.c: Likewise.
7238         * value-prof.c: Likewise.
7239         * value-prof.h: Likewise.
7240
7241 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
7242
7243         * rtl.h (emit_line_note_after): Remove.
7244         (emit_note_copy_after, emit_note_copy): New.
7245         * emit-rtl.c (reorder_insns_with_line_notes): Replace
7246         emit_line_note_after with emit_note_copy_after.
7247         (emit_insn_after_with_line_notes): Likewise.
7248         (emit_line_note_after): Kill.
7249         (emit_note_copy_after): New.
7250         (emit_note_copy): New.
7251         * function.c (emit_return_into_block): Use emit_note_copy_after.
7252         (thread_prologue_and_epilogue_insns): Likewise.
7253         * integrate.c (expand_inline_function): Use emit_note_copy.
7254         (copy_insn_list): Likewise.
7255         * unroll.c (copy_loop_body): Likewise.
7256         * cfglayout.c (duplicate_insn_chain): Likewise.
7257
7258 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
7259
7260         * c-tree.h (define_label): Replace filename and lineno arguments
7261         with a location_t.
7262         * c-decl.c (poplevel): Adjust define_label call.
7263         (pop_label_level): Likewise.
7264         (define_label): Replace filename and lineno arguments with a
7265         location_t.
7266         (store_parm_decls): Use DECL_SOURCE_LOCATION.
7267         * c-parse.in (label): Adjust define_label call.
7268
7269 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
7270
7271         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
7272         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
7273         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
7274         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
7275         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
7276
7277 2003-07-01  Andreas Jaeger  <aj@suse.de>
7278
7279         * final.c: Convert prototypes to ISO C90.
7280         * flow.c: Likewise.
7281         * flags.h: Likewise.
7282         * gcov-io.c: Likewise.
7283         * gcov-io.h: Likewise.
7284
7285 See ChangeLog.9 for earlier changes.