OSDN Git Service

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