OSDN Git Service

* Makefile.in (ifcvt.o): Depend on target.h
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
2
3         * Makefile.in (ifcvt.o): Depend on target.h
4         * ifcvt.c (target.h): Include.
5         (if_convert): Don't call mark_loop_exit_edges if we can't
6         modify jumps.
7
8 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9
10         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
11
12 2003-07-26  Richard Henderson  <rth@redhat.com>
13
14         PR inline-asm/11676
15         * cse.c (count_reg_usage): Handle asm_operands properly.
16
17 2003-07-26  Roger Sayle  <roger@eyesopen.com>
18
19         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
20         (DEF_EXT_FALLBACK_BUILTIN): Delete.
21         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
22         the regular DEF_EXT_LIB_BUILTIN macro.
23         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
24         the regular DEF_LIB_BUILTIN macro.
25         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
26         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
27         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
28         DEF_EXT_LIB_BUILTIN macro.
29
30         * c-decl.c (duplicate_decls): Remove code to handle builtin
31         functions prototyped without an argument list.
32
33 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
34
35         * config/i386/winnt.c: Revert 2003-07-08 change.
36         (i386_pe_section_type_flags): Remove error_with_decl here too.
37
38 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
39
40         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
41         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
42         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
43         (v850_handle_data_area_attribute): Likewise.
44
45 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
46
47         * Makefile.in (libbackend.o): Remove options_.h.
48         (mostlyclean): Likewise.
49
50         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
51         insert a label at the end of an function under Mach-O.
52
53         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
54
55 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
56
57         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
58         equality.
59         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
60
61         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
62
63 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
64
65         * doc/passes.texi (Passes): Mention pretty-printing and
66         diagnostic files.
67
68 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
69
70         * doc/extend.texi (Function Attributes): GNU C++ does now allow
71         unused parameter decls.
72         (Attribute Syntax): GNU C++ does not allow label attributes to be
73         after the ':'.
74
75 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
76
77         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
78         (objc_declare_class): Likewise.
79         (error_with_ivar): Likewise.
80         (start_class): Likewise.
81         (warn_with_method): Likewise.
82
83 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
84
85         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
86         from GCC. 
87         * calls.c (try_to_integrate): Don't use xxx_with_decl.
88         (expand_call): Likewise.
89         * dwarfout.c (output_reg_number): Likewise.
90         * expr.c (expand_expr): Likewise.
91         * function.c (assign_temp): Likewise.
92         (uninitialized_vars_warning): Likewise.
93         (setjmp_args_warning): Likewise.
94         (expand_function_end): Likewise.
95         * stmt.c (fixup_gotos): Likewise.
96         (warn_about_unused_variables): Likewise.
97         (expand_end_bindings): Likewise.
98         * stor-layout.c (layout_decl): Likewise.
99         (place_field): Likewise.
100         * toplev.c (check_global_declarations): Likewise.
101         (rest_of_handle_inlining): Likewise.
102         (default_tree_printer): New function.
103         (general_init): Initialize diagnostic machinery before routing
104         signals to the ICE machinery.  Set default tree printer.
105         * toplev.h (pedwarn_with_decl): Remove declaration.
106         (warning_with_decl): Likewise.
107         (error_with_decl): Likewise.
108         (pedwarn): Remove attribute for the time being. 
109         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
110         * varasm.c (named_section): Likewise.
111         (make_decl_rtl): Likewise.
112         (assemble_variable): Likewise.
113         (merge_weak): Likewise.
114         (declare_weak): Likewise.
115
116         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
117         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
118         (format_with_decl): Remove.
119         (diagnostic_for_decl): Likewise.
120         (pedwarn_with_decl): Likewise.
121         (warning_with_decl): Likewise.
122         (error_with_decl): Likewise.
123         (diagnostic_initialize): Adjust.
124         (diagnostic_count_diagnostic): Likewise.
125         (announce_function): Likewise.
126         (lhd_print_error_function): Likewise.
127         (diagnostic_report_current_module): Likewise.
128         (default_diagnostic_starter): Likewise.
129         (diagnostic_report_diagnostic): Likewise.
130         (default_diagnostic_finalizer): Likewise.
131         (verbatim): Likewise.
132         (error): Likewise.
133         (warning): Likewise.
134         * opts.c (common_handle_option): Likewise.
135         * pretty-print.c: New file.
136         * c-pretty-print.h (pp_base): Override.
137         * c-pretty-print.c: Adjust use of macros throughout.
138         (pp_buffer): New macro.
139         (pp_newline): Likewise.
140         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
141         * Makefile.in (DIAGNOSTIC_H): New variable.
142         (c-errors.o): Use it.
143         (c-objc-common.o): Likewise.
144         (c-common.o): Likewise.
145         (c-opts.o): Likewise.
146         (c-format.o): Likewise.
147         (diagnostic.o): Likewise.
148         (opts.o): Likewise.
149         (toplev.o): Likewise.
150         (rtl-error.o): Likewise.
151         (dwarf2out.o): Likewise.
152         (jump.o): Likewise.
153         (pretty-print.o): New rule.
154
155 2003-07-24  Roger Sayle  <roger@eyesopen.com>
156
157         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
158         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
159         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
160         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
161         (DEF_FRONT_END_LIB_BUILTIN): Delete.
162         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
163         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
164
165         * builtins.c (build_string_literal): New function to construct
166         a char* pointer to a string literal.
167         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
168         "rtx target" to be consistent with other expand_builtin_* functions.
169         Change 3rd argument from "int unlocked" to "bool unlocked".
170         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
171         c-common.c to avoid front-end dependencies.  Optimize printf("")
172         as a no-op when the result isn't required.  Handle embedded NULs
173         in format string.
174         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
175         from c-common.c to avoid front-end dependencies.  Likewise, optimize
176         fprintf(fp,"") as a no-op when the result isn't required, evaluating
177         fp for side-effects.  Handle embedded NULs in format string.
178         (expand_builtin_sprintf): Fix typo.
179         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
180         optimizing.  Adjust calls of expand_builtin_fputs to match the API
181         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
182         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
183         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
184
185         * c-common.c (is_valid_printf_arglist): Delete.
186         (c_expand_builtin): Delete.
187         (c_expand_builtin_printf): Moved to builtins.c. Delete.
188         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
189         (c_expand_expr): No longer treat CALL_EXPRs specially.
190         (CALLED_AS_BUILT_IN): Delete.
191
192 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
193
194         PR optimization/11631
195         * gcse.c (store_motion): Connect infinite loops to exit.
196
197 2003-07-24  Jason Merrill  <jason@redhat.com>
198
199         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
200         (boolean_true_node, boolean_false_node): Likewise.
201         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
202         * tree.c (build_common_tree_nodes): Init boolean_type_node.
203         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
204         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
205         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
206         (truthvalue_true_node): Renamed from boolean_true_node.
207         (truthvalue_false_node): Renamed from boolean_false_node.
208         * c-decl.c: Just set truthvalue_* to integer_*.
209         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
210
211 2003-07-24  Roger Sayle  <roger@eyesopen.com>
212
213         * c-decl.c (match_builtin_function_types): New subroutine of
214         duplicate_decls to test whether a redeclaration of a builtin
215         function is suitably close, i.e. the return type and all of
216         the argument types have the same modes as the builtin expects.
217         (duplicate_decls): Fuzzy type matching for builtin functions
218         moved to match_builtin_function_types.
219
220 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
221
222         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
223         flag correctly.
224
225 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
226
227         * c-decl.c: Search-and-replace change 'binding level' to
228         'scope' in commentary.
229         (struct binding_level): Now struct c_scope.
230         (current_binding_level): Now current_scope.
231         (free_binding_level): Now scope_freelist.
232         (current_function_level): Now current_function_scope.
233         (global_binding_level): Now global_scope.
234         (make_binding_level): Now make_scope.
235         (pop_binding_level): Now pop_scope.
236
237 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
238
239         * configure.in (libgcc_visibility): Add missing whitespace.
240
241 2003-07-24  Richard Henderson  <rth@redhat.com>
242
243         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
244         __gcc_personality_v0.
245
246 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
247
248         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
249
250 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
251
252         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
253         documentation missed from my 2003-07-09 patch.
254
255 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
256
257         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
258         it's not provided.
259         * configure: Rebuild.
260
261 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
262
263         PR c/10602
264         * c-typeck.c (type_lists_compatible_p): Do not compare
265         arguments if one of them is an error_mark_node
266
267 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
268
269         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
270         if current_function_calls_eh_return.
271
272 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
273
274         * doc/c-tree.texi (OFFSET_TYPE): Update description.
275
276 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
277
278         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
279         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
280         __umodsi3, __modsi3): Increase frame size to 32.
281
282 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
283
284         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
285         prototype.
286
287 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
288
289         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
290
291         PR optimization/10679
292         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
293
294 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
295
296         PR target/11607 and PR target/11516
297         * pa.md (extzv, extv, insv): Revert latter half of last patch.
298
299 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
300
301         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
302         * varasam.c (output_constant): Likewise.
303
304 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
305
306         * alias.c: Fix comment formatting.
307         * c-common.c: Likewise.
308         * c-decl.c: Likewise.
309         * c-opts.c: Likewise.
310         * combine.c: Likewise.
311         * cpplib.c: Likewise.
312         * diagnostic.c: Likewise.
313         * dojump.c: Likewise.
314         * final.c: Likewise.
315         * fold-const.c: Likewise.
316         * gcc.c: Likewise.
317         * gcse.c: Likewise.
318         * ggc-page.c: Likewise.
319         * jump.c: Likewise.
320         * loop.c: Likewise.
321         * mips-tfile.c: Likewise.
322         * recog.c: Likewise.
323         * regclass.c: Likewise.
324         * regmove.c: Likewise.
325         * tree.c: Likewise.
326         * tree.h: Likewise.
327
328 2003-07-22  Per Bothner  <pbothner@apple.com>
329
330         * line-map.c (add_line_map):  Handle invalid LEAVE request.
331         Fixes PR preprocessor/11361.
332
333 2003-07-22  Per Bothner  <pbothner@apple.com>
334
335         * diagnostic.c.(diagnostic_report_current_module):  Update to match
336         2003-06-05 changes to push_srcloc and pop_srcloc.
337
338 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
339
340         * doc/trouble.texi: Better document two-stage name lookup.
341
342 2003-07-22  Eric Christopher <echristo@redhat.com>
343
344         * config/s390.c (s390_valid_pointer_mode): New.
345         (TARGET_VALID_POINTER_MODE): Use.
346         (s390_emit_prologue): Add tpf profiling hooks.
347         (s390_emit_epilogue): Ditto.
348         * config/s390.h (MASK_TPF): New.
349         (TARGET_TPF): Use.
350         (POINTERS_EXTEND_UNSIGNED): Define.
351         * config/s390.md (ptr_extend): New pattern.
352
353 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
354
355         * hashtable.c (approx_sqrt): Make static.
356         * hashtable.h: Don't prototype approx_sqrt.
357         * line-map.c (init_line_maps): Rename linemap_init.
358         (free_line_maps): Rename linemap_free.
359         (add_line_map): Rename linemap_add.
360         (lookup_line): Rename linemap_lookup.
361         (print_containing_files): Rename linemap_print_containing_files.
362         * linemap.h: Update to match.
363
364         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
365         linemap routines to use new names.
366
367 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
368
369         * c-common.c (handle_packed_attribute): Don't pack a struct via a
370         typedef. Propagate packedness from a main variant.
371
372 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
373
374         * Makefile.in (install-common): Add dependency on installdirs.
375
376 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
377
378         * c-common.c (c_common_type_for_mode): Return integer types for
379         pointer modes.
380
381 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
382
383         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
384         (finish_decl): Call maybe_apply_pragma_weak here.
385         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
386         TREE_PUBLIC and TREE_STATIC are decided.
387         (start_function): Move call to maybe_apply_pragma_weak.  Check that
388         DECL_ASSEMBLER_NAME isn't set too early.
389
390         * cpplex.c (_cpp_process_line_notes): Mention option name in
391         trigraphs warning.
392
393 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
394
395         * combine.c (if_then_else_cond): Simplify the comparison of
396         rtx against -1, 0, and 1.
397         * loop.c (check_dbra_loop): Likewise.
398         * optabs.c (emit_conditional_move): Likewise.
399         (emit_conditional_add): Likewise.
400         * config/i386/i386.md (*movsi_or): Likewise.
401         (*movdi_or_rex6): Likewise.
402
403 Tue Jul 22 00:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
404
405         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
406
407 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
408
409         * cppfiles.c (open_file_pch): Don't put unused entries in the
410         splay tree.  Remove dead code.
411
412 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
413
414         * c-common.h (num_in_fnames): Declare.
415         (c_static_assembler_name): Move from here...
416         * c-tree.h (c_static_assembler_name): ... to here.
417         * c-opts.c: Don't include langhooks-def.h.
418         (c_static_assembler_name): Move to c-decl.c.
419         (num_in_fnames): Make externally visible.
420         * c-decl.c: Include langhooks-def.h.
421         (c_static_assembler_name): Move from c-opts.c.
422         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
423         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
424
425         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
426         when it's not needed.
427
428 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
429
430         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
431         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
432         (rs6000_emit_prologue): Save FPRs inline if set.
433
434 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
435
436         * config/ia64/ia64.md (prefetch): Support predicate.
437
438 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
439
440         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
441         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
442         table.
443
444 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
445
446         PR optimization/11536
447         * unroll.c (loop_iterations): Do not replace a register holding
448         the final value by its equivalent before the loop if it is not
449         invariant.
450
451 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
452
453         * doc/extend.texi: Fixes to spelling, grammar, and diction.
454
455 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
456
457         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
458         (V850 Options): Spelling fixes.
459
460 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
461
462         * doc/invoke.texi: Fixes to style, grammar and diction.
463
464 2003-07-20  Roger Sayle  <roger@eyesopen.com>
465
466         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
467         * system.h (SMALL_STACK): Poison obsolete target macro.
468         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
469
470 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
471
472         * configure.in:  Cache the results of testing for cmp's capabilities.
473         * configure:  Regenerate.
474
475 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
476
477         PR debug/11279
478         * dwarf2out.c (gen_enumeration_type_die): Remember that
479         enumerators can be unsigned.
480
481 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
482
483         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
484         (push_label_level, pop_label_level): Kill.
485         (struct binding_level): Rename level_chain to outer.
486         Add outer_function field.  Change parm_flag, function_body,
487         keep, keep_if_subblocks to 1-bit bitfields of type bool.
488         (current_function_level): New variable.
489         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
490         (keep_next_level, declare_parm_level, warn_if_shadowing):
491         Update to match.
492         (struct language_function): Kill named_labels, shadowed_labels fields.
493         (c_init_decl_processing, start_function, c_push__function_context)
494         (c_pop_function_context): No need to muck with named_labels nor
495         shadowed_labels.
496
497         (make_binding_level): No need to clear the structure here.
498         (pop_binding_level): Always operate on current_binding_level.
499         Update current_function_level if necessary.
500         (pushlevel): Don't clear named_labels.  Update current_function_level
501         if necessary.  Use "true" and "false" where appropriate.
502         (poplevel): Diagnose labels defined but not used, or vice
503         versa, and clear out label-meanings leaving scope, while
504         walking down the decls list, for all binding levels.
505         Handle LABEL_DECLs appearing in the shadowed list.
506         pop_binding_level takes no arguments.
507         (pushdecl_function_level): Use current_function_level.
508
509         (make_label, bind_label): New static functions.
510         (declare_label): New exported function.
511         (lookup_label, define_label): Rewritten for new data structure.
512         (shadow_label): Kill.
513
514         * c-tree.h: Prototype declare_label; don't prototype
515         push_label_level, pop_label_level, nor shadow_label.
516         * c-parse.in: Remove all calls to push_label_level and
517         pop_label_level.  Use declare_label for __label__ decls.
518
519         * doc/extend.texi: Clarify that __label__ can be used to
520         declare labels with local scope in any nested block, not
521         just statement expressions.  Cross-reference nested functions
522         section from local labels section.
523
524 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
525
526         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
527
528 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
529
530         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
531
532 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
533
534         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
535         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
536
537 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
538
539         * config/s390/s390.c (legitimize_pic_address): Access local symbols
540         relative to the GOT instead of relative to the literal pool base.
541         (s390_output_symbolic_const): Handle new GOT-relative accesses.
542         * config/s390/s390.md ("call"): Access local functions and PLT stubs
543         relative to the GOT instead of relative to the literal pool base.
544         ("call_value"): Likewise.
545         ("call_value_tls"): Likewise.
546
547         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
548         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
549         (s390_chunkify_finish): Likewise.
550         (s390_chunkify_cancel): Likewise.
551         (s390_reorg): Adapt caller.
552         (find_base_register_in_addr,
553         find_base_register_ref, replace_base_register_ref): Delete.
554         (find_ltrel_base, replace_ltrel_base): New functions.
555         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
556         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
557         base vs. index register usage.
558         (struct constant_pool): Remove 'anchor'.
559         (s390_add_anchor): Delete.
560         (s390_dump_pool): Remove anchor handling.
561         * config/s390/s390.md ("reload_anchor"): Remove.
562
563         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
564         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
565         (s390_emit_prologue): Use it.
566         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
567         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
568         hard-code register 14.
569         * config/s390/s390-protos.h (s390_load_got): Declare.
570
571         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
572         Support TImode constants.
573         * config/s390/s390.md ("consttable_ti"): New.
574         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
575
576         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
577         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
578         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
579         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
580         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
581         New symbolic constants.
582         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
583         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
584         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
585         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
586         symbolic UNSPEC values.
587         * config/s390/s390.c (larl_operand, s390_short_displacement,
588         bras_sym_operand, s390_cannot_force_const_mem,
589         s390_delegitimize_address, s390_decompose_address,
590         legitimize_pic_address, s390_output_symbolic_const,
591         s390_function_profiler): Use symbolic UNSPEC values.
592
593 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
594
595         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
596         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
597         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
598         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
599         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
600         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
601         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
602         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
603         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
604         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
605         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
606         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
607         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
608         postreload.c prefix.c print-tree.c protoize.c ra-build.c
609         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
610         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
611         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
612         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
613         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
614         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
615         casts.
616
617 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
618
619         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
620         * toplev.h (warning): Remove attribute.
621
622 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
623
624         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
625         (pop_label_level): Likewise.
626         (duplicate_decls): Likewise.
627         (implicitly_declare): Likewise.
628         (shadow_label): Likewise.
629         (start_decl): Likewise.
630         (finish_decl): Likewise.
631         (grokdeclarator): Likewise.
632         (get_parm_info): Likewise.
633         (detect_field_duplicates): Likewise.
634         (finish_struct): Likewise.
635         (start_function): Likewise.
636         (store_parm_decls): Likewise.
637         (finish_function): Likewise.
638         (c_expand_body_1): Likewise.
639         (check_for_loop_decls): Likewise.
640         (merge_translation_unit_decls): Likewise.
641
642 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
643
644         * common.opt:  Document --param.
645         * opts.c (columns, undocumented_msg): New.
646         (print_help): Get number of columns from environment.  Print
647         --param help.  Tweak newline handling.
648         (print_param_help): New.
649         (print_filtered_help): Better handling of duplicates.  Complain
650         about undocumented switches.
651         (print_switch): New.
652         (wrap_help): Improve wrapping, use COLUMNS.
653         * opts.sh: Ignore comments in records.
654         * params.def: Fix typos and remove trailing periods.
655         * toplev.c (display_help): Don't dump --param help.
656         * doc/sourcebuild.texi: Update.
657
658 2003-07-18  Richard Henderson  <rth@redhat.com>
659
660         PR target/11556
661         * optabs.c (prepare_operand): Fail gracefully instead of abort
662         if the predicate doesn't satisfy.
663         (gen_cond_trap): Allow prepare_operand to fail.
664
665 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
666
667         * c-common.c: Don't undefine GCC_DIAG_STYLE.
668         (fname_decl): Don't use xxx_with_decl.
669         (c_add_case_label): Likewise.
670         (handle_section_attribute): Likewise.
671         (handle_alias_attribute): Likewise.
672         (handle_no_instrument_function_attribute): Likewise.
673         (handle_no_limit_stack_attribute): Likewise.
674         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
675         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
676
677 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
678
679         * Makefile.in (ifcvt.o): Add cfgloop.h.
680         * basic-block.h (EDGE_LOOP_EXIT): New flag.
681         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
682         * ifcvt.c: Include cfgloop.h.
683         (mark_loop_exit_edges): New static function.
684         (if_convert): Call it.
685         (find_if_header): Ignore branches out of loops.
686
687 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
688
689         * combine.c (simplify_comparison): Don't share rtx when converting
690         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
691
692 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
693
694         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
695         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
696         (MUST_PASS_IN_STACK): Define.
697         (BLOCK_REG_PADDING): Define.
698
699 2003-07-18  Richard Henderson  <rth@redhat.com>
700
701         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
702         to skip the addr_vec.
703
704 Fri Jul 18 15:22:28 2003  Alexandre Oliva  <aoliva@redhat.com>
705
706         * combine.c (combinable_i3pat): Don't forbid occurrences of
707         i2dest or i1dest in inner_dest if inner_dest is a mem.
708
709 Fri Jul 18 17:05:57 CEST 2003  Jan Hubicka  <jh@suse.cz>
710
711         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
712
713 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
714
715         PR target/11087
716         * loop.c (basic_induction_var): Check if convert_modes emitted any
717         instructions. Remove them and return 0 if so.
718
719 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
720
721         PR optimization/11083
722         * toplev.c (rest_of_handle_addresof): Rename into
723         rest_of_handle_addressof.  Delete unreachable blocks
724         if dead edges were purged after the addressof pass.
725
726 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
727
728         * Makefile.in, configure, configure.in: Remove handling of
729         lang-options.h and options_.h.
730         * toplev.c (struct lang_opt, documented_lang_options): Remove.
731         (display_help): Don't use documented_lang_options.
732
733 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
734
735         * c-decl.c (pushdecl_function_level): Make static, return nothing.
736         (kept_level_p): Fold into poplevel.
737         (undeclared_variable): Moved here from c-typeck.c.  Export.
738         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
739         (undeclared_variable): Prototype here.  Don't prototype
740         kept_level_p nor pushdecl_function_level.
741         * c-parse.in: Change first argument to poplevel from
742         "kept_level_p()" to "KEEP_MAYBE".
743         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
744
745 2003-07-17  Roger Sayle  <roger@eyesopen.com>
746
747         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
748         commutative operands instead of modifying the RTL in-place.
749
750 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
751
752         PR optimization/11557
753         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
754         unless we know which function is being called.
755
756 2003-07-17  Roger Sayle  <roger@eyesopen.com>
757
758         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
759         whether to reorder the operands of a commutative binary operator.
760
761 2003-07-17  Roger Sayle  <roger@eyesopen.com>
762
763         * fold-const.c (const_binop): Avoid performing the FP operation at
764         compile-time, if either operand is NaN and we honor signaling NaNs,
765         or if we're dividing by zero and either flag_trapping_math is set
766         or the desired mode doesn't support infinities.
767         (fold_initializer): New function to fold an expression ignoring any
768         potential run-time exceptions or traps.
769         * tree.h (fold_initializer): Prototype here.
770         * c-typeck.c (build_binary_op): Move to the end of the file so
771         that intializer_stack is in scope.  If constructing an initializer,
772         i.e. when initializer_stack is not NULL, use fold_initializer to
773         fold expressions.
774         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
775         performing FP operations at compile-time, if they would raise an
776         exception at run-time.
777
778 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
779
780         PR 11498
781         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
782         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
783         (GTFILES): Add langhooks.c.
784         (gt-langhooks.h): New.
785         * c-common.h (c_static_assembler_name): Prototype.
786         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
787         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
788         * c-opts.c: Include langhooks-def.h.
789         (c_static_assembler_name): New.
790         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
791         (var_labelno): New.
792         (lhd_set_decl_assembler_name): Give static objects with context
793         unique names.
794         * varasm.c (var_labelno): Delete.
795         (make_decl_rtl): Don't change the assembler name once it's set.
796
797         * c-opts.c (this_input_filename): New.
798         (finish_options): Take new parameter, name of file being compiled.
799         Update callers.  Set this_input_filename.
800         (push_command_line_include): Use this_input_filename not
801         main_input_filename.
802
803 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
804
805         * Makefile.in: Depend .pot generation on options.c.
806         * po/exgettext: Add an extra_files variable containing additional
807         files to scan.
808
809 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
810
811         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
812         c_write_global_declarations.
813
814         * c-decl.c: Fix typos in several comments.  Remove all
815         #if 0 blocks; reindent as needed.  Remove unused argument
816         to declare_parm_level; all callers changed.
817         * c-parse.in: Update calls to declare_parm_level.  Avoid
818         issuing a double warning in some circumstances.
819         * c-typeck.c: Update calls to declare_parm_level.
820         * c-tree.h: Update prototype of declare_parm_level.
821
822         * c-pragma.c (apply_pragma_weak): Don't complain about a
823         redundant #pragma weak.
824
825         * objc/objc-act.c (forward_declare_categories,
826         build_selector_reference_decl, build_class_reference_decl,
827         build_objc_string_decl, synth_forward_declarations,
828         build_protocol_reference): Set TREE_PUBLIC on synthetic
829         forward decl to 0, consistent with eventual definition.
830         Correct comments to match.
831
832         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
833         in regexp that don't form a range expression.
834         * fixinc/fixincl.def: Regenerate.
835
836 2003-07-17  Richard Henderson  <rth@redhat.com>
837
838         PR target/10907
839         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
840         even with !TARGET_CONST_GP.
841         (ia64_function_ok_for_sibcall): Reject non-local functions.
842
843 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
844
845         * c-common.c (c_estimate_num_insns_1): Don't handle
846         METHOD_CALL_EXPR.
847         * expr.c (safe_from_p): Likewise.
848         * gengtype.c (adjust_field_tree_exp): Likewise.
849         * stmt.c (warn_if_unused_value): Likewise
850         * tree.c (first_rtl_op): Likewise.
851         * tree.def: Don't define METHOD_CALL_EXPR.
852         * java/lang.c (java_estimate_num_insns_1): Don't handle
853         METHOD_CALL_EXPR.
854
855 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
856
857         PR other/11466
858         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
859         and its restrictions for the SPARC64 port.
860         Move the entry of "-mimpure-text" before that of "-mv8".
861
862 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
863             Phil Edwards <phil@jaj.com>
864
865         * doc/install.texi (*-*-solaris2*): Document the step-by-step
866         procedure to bootstrap and install.
867         Document the preference for the legacy Sun tools in /usr/bin
868         over the POSIX tools in /usr/xpg4/bin for the build process.
869
870 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
871
872         * c.opt: Document Uncodumented; use it.  Document ObjC options.
873         * opts.c (print_filtered_help): Skip undocumented switches.
874         * opts.h (CL_UNDOCUMENTED): New.
875         * opts.sh: Handle Undocumented.
876         * toplev.c (documented_lang_options): Prevent its becoming empty.
877 objc:
878         * lang-options.h: Remove.
879
880 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
881
882         * loop.c (check_ext_dependent_givs): Pass const struct loop *
883         instead of struct loop_info * as argument.  Accept BIVs with
884         increment +/- 1 provided there is a friendly exit test against
885         a loop-invariant value.
886         (strength_reduce): Adapt call to check_ext_dependent_givs.
887
888 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
889             Con Bradley <con.bradley@superh.com>
890
891         * sh-protos.h (sh_get_pr_initial_val): Declare.
892         * sh.c (regno_reg_class): Make its elements type enum reg_class.
893         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
894         and live_regs_mask arguments.  Changed all callers.
895         (save_schedule_s): New structure.
896         (save_schedule): New typedef.
897         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
898         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
899         In interrupts handlers, also save registers that are usually
900         partially saved, and make sure there is at least one general purpose
901         register saved if a target register needs saving.
902         Add casts in comparisons to avoid warnings.
903         (sh_media_register_for_return): return -1 for interrupt handlers.
904         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
905         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
906         registers used are available.
907         Set RTX_FRAME_RELATED_P where appropriate.
908         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
909         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
910         (initial_elimination_offset): Likewise.
911         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
912         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
913         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
914         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
915         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
916         and for target registers.
917         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
918         (regno_reg_class): Make its elements type enum reg_class.
919         (CONSTRAINT_LEN): Don't use isdigit.
920         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
921         (FUNCTION_ARG): Add parentheses to avoid warnings.
922         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
923         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
924         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
925         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
926         * sh.md (xordi3+1): Remove unused variable regno.
927         (return_media): Check that tr0 is available before using it.
928
929 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
930
931         * c.opt: Document more options.
932
933 2003-07-16  Roger Sayle  <roger@eyesopen.com>
934
935         * combine.c (subst): Also handle (subreg (const_double ...)) case
936         if created by a substitution, by using the original inner mode.
937
938 2003-07-16  Roger Sayle  <roger@eyesopen.com>
939
940         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
941         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
942         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
943
944 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
945
946         * doc/install.texi (--without-headers): New.
947
948         Partial Fix PR/10129
949         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
950         (machopic_output_function_base_name): New; print the true pic label.
951         (machopic_classify_ident): Pic Base is always a defined data.
952         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
953         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
954
955         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
956         if they are not floating point registers.
957
958         PR c/10962
959         * ggc.h: Add header guards.
960         * c-decl.c (finish_struct): Sort fields if
961         number greater than 15 and there are no
962         anonymous structs/unions.
963         * c-common.h: Include ggc.h.
964         (sorted_fields_type): New struct.
965         (field_decl_cmp): New prototype.
966         (resort_sorted_fields): New prototype.
967         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
968         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
969         as s, removing other fields.
970         * c-typeck.c (lookup_field): Use s in lang_type.
971         These were mostly moved from cp/class.c:
972         * c-common.c (field_decl_cmp): New static function.
973         (field_decl_cmp): New function.
974         (resort_sorted_fields): New function.
975
976 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
977
978         * config/darwin.c (machopic_select_section): Use decl_readonly_section
979         to do most of the work.
980
981 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
982
983         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
984         * config/mmix/mmix.c: Convert functions to ISO C90.
985         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
986         formatting.
987         (mmix_get_hard_reg_initial_val): Tweak section head comment.
988
989 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
990
991         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
992
993 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
994
995         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
996         (uw_update_context_1): Use it.
997         * config/rs6000/rs6000.c (insn_after_throw): Remove.
998         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
999         in parent frame if _Unwind_* called directly instead of through
1000         .plt.
1001         (rs6000_emit_eh_toc_restore): Remove.
1002         (rs6000_emit_prologue): Update stack pointer before doing any saving
1003         if current_function_calls_eh_return.  Generate unwind info for $r2.
1004         (rs6000_emit_epilogue): Restore stack pointer after doing all
1005         restoring if current_function_calls_eh_return.  Restore $r2.
1006         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
1007         * config/rs6000/rs6000.md (eh_return): Remove call to
1008         rs6000_emit_eh_toc_restore.
1009         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
1010         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
1011
1012 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
1013
1014         * expr.c (emit_block_move): Don't move anything if size is const 0.
1015         (clear_storage): Test against const0_rtx instead of comparing INTVAL
1016         against 0.
1017
1018 2003-07-15  David S. Miller  <davem@redhat.com>
1019
1020         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
1021         emit nop if the last real insn is CALL_INSN.
1022
1023 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
1024
1025         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
1026         as "nul".
1027         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
1028
1029 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
1030
1031         * config/i386/winnt.c (associated_type): Artificial methods are not
1032         affected by the import/export status of their class unless they are
1033         COMDAT.
1034         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
1035
1036         * config/i386/winnt.c: Fix GCC copyright comment.
1037
1038 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
1039
1040         PR c++/11531
1041         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
1042         not recursing on hard error.
1043         (diagnostic_for_decl): Likewise.
1044         * diagnostic.def: Rearrange.
1045
1046 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
1047
1048         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1049         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
1050
1051 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
1052             Richard Henderson  <rth@redhat.com>
1053
1054         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
1055         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
1056         (_Unwind_SetGR): Likewise.
1057         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
1058         (Unwind_SpTmp): New typedef.
1059         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
1060         (uw_update_context): Use _Unwind_GetPtr.
1061         (init_dwarf_reg_size_table): Move above uw_init_context_1.
1062         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
1063         Use _Unwind_SetSpColumn.
1064         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
1065         Use _Unwind_GetPtr.
1066
1067 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
1068
1069         * c.opt: Document more options.
1070         * toplev.c (documented_lang_options): Remove all local help strings.
1071
1072 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
1073
1074         PR debug/11473
1075         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
1076         base classes.
1077
1078 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
1079
1080         PR target/10795
1081         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
1082         swap comparison operands if doing so would generate an
1083         unrecognizable insn.
1084
1085 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
1086
1087         PR optimization/11320
1088         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
1089         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
1090         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
1091         current_sched_info->compute_jump_reg_dependencies. Record which
1092         registers are used and which registers are set by the jump.
1093         Clear deps->reg_conditional_sets after a barrier.
1094         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
1095         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
1096         (init_deps): Initialize reg_conditional_sets.
1097         (free_deps): Clear reg_conditional_sets.
1098         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
1099         Mark registers live on entry of the fallthrough block and conditionally
1100         set as set by the jump. Mark registers live on entry of non-fallthrough
1101         blocks as used by the jump.
1102         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
1103         Mark new parameters as unused.
1104
1105 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
1106
1107         * doc/invoke.texi: Resync MIPS -march documentation.
1108
1109 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
1110
1111         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
1112         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
1113         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
1114         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
1115         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
1116         (mips_issue_rate): Handle PROCESSOR_R9000.
1117         (mips_use_dfa_pipeline_interface): Likewise.
1118         * config/mips/9000.md: New file.
1119         * config/mips/mips.md: Include it.
1120         (define_attr cpu): Add r9000.
1121         (mulsi3_mult3): Use "mul" for rm9000 code.
1122
1123 2003-07-15  Stan Cox  <scox@redhat.com>
1124
1125         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
1126         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
1127         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
1128         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
1129         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
1130         (mips_issue_rate): Handle PROCESSOR_R7000.
1131         (mips_use_dfa_pipeline_interface): Likewise.
1132         * config/mips/7000.md: New file.
1133         * config/mips/mips.md: Include it.
1134         (define_attr cpu): Add r7000.
1135         (mulsi3_mult3): Use "mul" for rm7000 code.
1136
1137 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
1138
1139         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
1140         the conditional move patterns.
1141         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
1142         Check for condmove type.
1143         (ir_vr54_arith): Add move type.
1144         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
1145         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
1146
1147 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
1148
1149         * c-opts.c (print_help): Remove.
1150         (c_common_handle_option): Don't handle --help.
1151         * c.opt: Document some options.
1152         (--help): Remove.
1153         * opts.c (print_filtered_help): New.
1154         (print_help): Use it.
1155
1156 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
1157
1158         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
1159         * tree.c: (build_common_tree_nodes_2): Likewise.
1160         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
1161         (V4DF_type_node): New.
1162
1163         * c-opts.c (push_command_line_include): Don't free deferred_opts,
1164         we'll need it.
1165         (finish_options): Reset init_cursor.
1166
1167 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
1168
1169         * expr.c (expand_assignment): Remove an unused argument
1170         SUGGEST_REG.
1171         * expr.h: Update the prototype.
1172         * function.c: Update the callers.
1173         * stmt.c: Likewise.
1174
1175 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
1176
1177         PR debug/11098
1178         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
1179         as DECL_ABSTRACT.
1180
1181 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
1182
1183         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
1184         with __cplusplus, not "we must use the C++ compiler's type"
1185         * fixinc/inclhack.def (void_null): Note that Interix needs this.
1186         * fixinc/fixincl.x: Regenerate.
1187
1188 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
1189
1190         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
1191         and unseen_objects from the global data before calling
1192         __deregister_frame_info_bases.
1193         (examine_objects): Insert objects into the seen_objects list,
1194         not unseen_objects.
1195         (_Unwind_Find_FDE): Always unlock the global object lists, even if
1196         we couldn't allocate a data structure to put in it.
1197
1198         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
1199         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
1200         (SET_TYPE_PROTOCOL_LIST): New.
1201         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
1202         (get_object_reference): Likewise.
1203
1204 Mon Jul 14 23:14:28 CEST 2003  Jan Hubicka  <jh@suse.cz>
1205
1206         * cfglayout.c (locator_file): Break out from ....
1207         (insn_file): ... here.
1208         (locator_line): Break out from ....
1209         (insn_line): ... here.
1210         * rtl.h (locator_file, locator_line): Declare.
1211         (final_start_function): Set proper line/file info.
1212
1213 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1214
1215         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
1216         handled by pp_c_cast_expression.
1217
1218 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
1219
1220         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
1221         allocate 32768 bytes of stack.  Use addition rather than subtraction
1222         when a single insn is enough.
1223         * config/mips/mips.md: Remove insns and splitters for subtracting
1224         constants.
1225         (subsi3): Only accept register operands.
1226         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
1227         (subdi3_internal_3, subsi3_internal_2): Likewise.
1228         (casesi): Use expand_binop to subtract the lower bound.
1229
1230 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
1231
1232         * config/mips/mips.c (mips_in_small_data_p): Don't handle
1233         TARGET_MIPS16 specially.
1234
1235 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
1236
1237         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
1238         mips_output_aligned_bss.
1239         * config/mips/linux.h: Likewise.
1240         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
1241         * config/mips/mips.c (mips_output_aligned_bss): New function.
1242
1243         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
1244         * config/mips/elf64.h: Likewise.
1245
1246         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
1247         mips_declare_object_name.
1248         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
1249         * config/mips/elf64.h: As for elf.h.
1250         * config/mips/iris6.h: Likewise.
1251         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
1252         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
1253         do...while (0) block.
1254         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
1255         (mips_finish_declare_object): Declare.
1256         * config/mips/mips.c (mips_declare_object_name): New function.
1257         (mips_finish_declare_object): New function.
1258
1259         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
1260         * config/mips/linux.h: Likewise.
1261
1262         * config/mips/mips.c (inside_function): Delete.
1263         (file_in_function_warning, ignore_line_number): Delete.
1264         (mips_output_filename): Don't warn about changing filenames within
1265         a function.
1266         (mips_output_lineno): Update accordingly.
1267         (mips_output_function_prologue): Don't reset the deleted variables.
1268         * config/mips/mips.h (inside_function): Delete.
1269         (file_in_function_warning, ignore_line_number): Delete.
1270
1271         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
1272         * config/mips/elf64.h: Likewise.
1273         * config/mips/openbsd.h: Likewise.
1274         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
1275         * config/mips/linux.h: Likewise.
1276         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
1277         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
1278
1279         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
1280         to the list of include files when using gas.
1281         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
1282         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
1283         * config/mips/elf64.h: Likewise.
1284         * config/mips/iris5.h: Likewise.
1285         * config/mips/linux.h: Likewise.
1286         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
1287         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
1288         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
1289         * config/mips/sdb.h: ...this new file.
1290
1291 2003-07-14  Douglas Rupp  <rupp@gnat.com>
1292
1293         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
1294         argument to getcwd; use fixed buffer instead.
1295
1296 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
1297
1298         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
1299         * fixinc/fixinc.wrap: Delete.
1300
1301 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
1302
1303         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
1304         don't have 2.
1305
1306 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
1307
1308         * ggc-page.c (struct globals): Add new fields to keep track of the
1309         total allocated memory and overhead.
1310         (ggc_print_statistics): Print them.
1311         (ggc_alloc): Keep track of the total allocated memory and the
1312         overhead.
1313
1314         * tree.c (dump_tree_statistics): Increase spacing.
1315         (enum tree_node_kind): Move to ...
1316         * tree.h (enum tree_node_kind): ... here.
1317         (tree_node_counts, tree_node_sizes): Declare.
1318
1319 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
1320
1321         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
1322
1323 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1324
1325         PR optimization/11440
1326         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
1327         SIGN_EXTRACT SETs.
1328
1329 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
1330
1331         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
1332         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
1333         (emit_group_load, emit_group_store): Adjust declarations.
1334         Remove most occurrences of #ifdef TREE_CODE.
1335         * expr.c (emit_group_load): Add "type" param, and use
1336         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
1337         aligned accesses if !SLOW_UNALIGNED_ACCESS.
1338         (emit_group_store): Likewise.
1339         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
1340         emit_group_load and emit_group_store calls.
1341         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
1342         BLOCK_REG_PADDING to determine whether we need endian_correction.
1343         (load_register_parameters): Localize vars.  Handle shifting of
1344         small values to the correct end of regs.  Adjust emit_group_load
1345         call.
1346         (expand_call, emit_library_call_value_1): Adjust emit_group_load
1347         and emit_group_store calls.
1348         * function.c (assign_parms): Set mem alignment for stack slots.
1349         Adjust emit_group_store call.  Store values at the "wrong" end
1350         of regs to the stack.  Use BLOCK_REG_PADDING.
1351         (locate_and_pad_parm): Save where_pad.
1352         (expand_function_end): Adjust emit_group_load call.
1353         * stmt.c (expand_value_return): Adjust emit_group_load call.
1354         * Makefile.in (calls.o): Depend on $(OPTABS_H).
1355         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
1356         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
1357         (MUST_PASS_IN_STACK): Define.
1358         (BLOCK_REG_PADDING): Define.
1359         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
1360         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
1361         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
1362         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
1363         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
1364
1365 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
1366
1367         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
1368
1369 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1370
1371         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
1372         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
1373
1374 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
1375
1376         PR other/11123
1377         * toplev.c: Don't cut off option names.
1378
1379 2003-07-13  Andreas Jaeger  <aj@suse.de>
1380
1381         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
1382         to integer of different size.
1383
1384 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
1385
1386         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
1387         to (eq (and X 1) 0).
1388
1389 2003-07-13  Andreas Jaeger  <aj@suse.de>
1390
1391         * config.gcc: Add pmmintrin.h for x86_64-*-*.
1392
1393 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
1394
1395         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
1396         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
1397         list.  Move these all together down by cpplib.
1398
1399         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
1400         definition of CPPCHAR_SIGNED_T.
1401
1402         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
1403         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
1404         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
1405
1406         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
1407         * cppinit.c (cpp_create_reader): Likewise.
1408
1409         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
1410         * cpptrad.c: Likewise.  All callers changed.
1411         * cpplib.c: All callers changed.
1412         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
1413         * hashtable.h: Define GTY(x) to nothing here too.
1414
1415 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1416
1417         * stor-layout.c (compute_record_mode): Remove very obsolete test
1418         that forces BLKmode for records with fields crossing word boundary.
1419
1420 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
1421
1422         * Makefile.in: Remove orphan reference to acconfig.h.
1423
1424 2003-07-13  Andreas Jaeger  <aj@suse.de>
1425
1426         * cgraphunit.c: Convert prototypes to ISO C90.
1427
1428 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
1429
1430         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
1431         (for OpenBSD).
1432         * fixinc/fixincl.x: Rebuild.
1433
1434 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
1435
1436         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
1437         i?86-*-*.  Use correct name of cache variable.
1438         * configure: Regenerate.
1439
1440 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
1441
1442         * config/alpha/alpha.c: Fix comment typos.
1443         * config/alpha/alpha.md: Likewise.
1444         * config/arm/arm.c: Likewise.
1445         * config/arm/arm.md: Likewise.
1446         * config/arm/lib1funcs.asm: Likewise.
1447         * config/avr/avr.md: Likewise.
1448         * config/arm/README-interworking: Fix typos.
1449
1450 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
1451
1452         * c-format.c: Fix comment formatting.
1453         * c-typeck.c: Likewise.
1454         * coverage.c: Likewise.
1455         * cppcharset.c: Likewise.
1456         * cpplib.c: Likewise.
1457         * dbxout.c: Likewise.
1458         * gcov-io.h: Likewise.
1459         * toplev.c: Likewise.
1460
1461 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
1462
1463         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
1464         fix.
1465
1466 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
1467
1468         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
1469         uses three-argument AC_DEFINE so no acconfig.h entries are
1470         needed.
1471         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
1472         which contains the GAS version number as a scaled integer.
1473         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
1474         ability to check for ELF assembler.
1475         (gcc_GAS_CHECK_FEATURE): New macro.
1476         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
1477         assembler feature checks using gcc_GAS_CHECK_FEATURE.
1478         Use three-argument AC_DEFINE everywhere.
1479         * acconfig.h: Deleted.
1480         * config.in, configure: Regenerate.
1481
1482 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
1483
1484         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
1485         (on OpenBSD).
1486         * fixinc/fixincl.x: Regenerate.
1487
1488         * fixinc/inclhack.def (gnu_types): Improve comment.
1489
1490 2003-07-12  Andreas Jaeger  <aj@suse.de>
1491
1492         * fp-test.c (main): Use ISO C90 prototype.
1493
1494         * version.c: Remove unneded include of ansidecl.h.
1495
1496         * cgraph.h: Convert prototypes to ISO C90.
1497         * cgraph.c: Likewise.
1498         * fix-header.c: Likewise.
1499         * ra.h: Likewise.
1500         * protoize.c: Likewise.
1501
1502 Sat Jul 12 06:09:38 CEST 2003  Jan Hubicka  <jh@suse.cz>
1503
1504         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
1505         warning.
1506
1507 Sat Jul 12 03:06:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
1508                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1509
1510         * cgraph.c (cgraph_max_uid): New global variable.
1511         (cgraph_node): Set uid field.
1512         (create_edge): Keep inline flags consistent.
1513         (dump_cgraph): Dump more info.
1514         * cgraph.h (struct cgraph_local_info): Remove inline_many and
1515         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
1516         (struct cgraph_global_info): Add insns, calls, cloned_times,
1517         will_be_output.
1518         (struct cgraph_node): Add uid.
1519         (struct cgraph_edge): Add inline_call.
1520         (cgraph_max_uid, cgraph_inline_p): Declare.
1521         * cgraph.c: Include params.h and fibheap.h
1522         (cgraph_mark_functions_to_inline_once): Kill.
1523         (INSNS_PER_CALL): New constant.
1524         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
1525         static variables.
1526         (cgraph_finalize_function): Do not analyze inlining.
1527         (cgraph_finalize_compilation_unit): Set inlining attributes.
1528         (cgraph_mark_functions_to_output): More consistency checks.
1529         (cgraph_optimize_function): Set current_function_decl to NULL.
1530         (cgraph_expand_function): Use new inline flags.
1531         (cgraph_postorder): Expand from cgraph_expand_functions.
1532         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
1533         (cgraph_inlined_into, cgraph_inlined_callees,
1534         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
1535         cgraph_mark_inline, cgraph_check_inline_limits,
1536         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
1537         cgraph_decide_inlining, cgraph_inline_p): New functions.
1538         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
1539         PARAM_INLINE_UNIT_GROWTH): New parameters.
1540         * tree-inline.c (struct inline_data): New field current_decl.
1541         (expand_call_inline): Avoid forward declarations; use
1542         inlinable_function_p.
1543         (optimize_inline_calls): Set id.current_decl.
1544
1545 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
1546
1547         * configure.in: Remove wrongly added definition of
1548         local_prefix.
1549         * configure: Regenerate.
1550
1551 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
1552
1553         * rtl.def (NOTE): Do not use padding.
1554
1555 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
1556
1557         * doc/install.tex: Update required binutils for i?86-*-linux*
1558
1559 2003-07-11  Richard Henderson  <rth@redhat.com>
1560
1561         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
1562
1563 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
1564
1565         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
1566         TRANSLATION_UNIT_DECL as top_level.
1567
1568 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
1569
1570         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
1571         then fall back to cmpstrM.
1572         * builtins.c (expand_builtin_memcmp): Likewise.
1573         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
1574         (s390_expand_cmpmem): ... this.
1575         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
1576         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
1577         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
1578         to s390_expand_cmpmem.
1579         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
1580         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
1581         to cmpmem*.
1582         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
1583         cmpstr* patterns.
1584         * doc/md.texi (cmpstrM): Describe as String compare insn, not
1585         Block compare insn.
1586         (cmpmemM): Add.
1587
1588 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
1589
1590         * config/i386/freebsd.h (SET_ASM_OP): Remove.
1591         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
1592         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
1593          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
1594
1595 2003-07-11  Richard Henderson  <rth@redhat.com>
1596
1597         * function.c (assign_parms): Don't recombine complex args if
1598         fnargs is unchanged from orig_fnargs.
1599         (split_complex_args): Return args without complex before copying.
1600         Re-layout the modified parameters.
1601
1602 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
1603
1604         * regclass.c (choose_hard_reg_mode): Add third argument.
1605         Changed all callers.
1606         * rtl.h (choose_hard_reg_mode): Update declaration.
1607         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1608         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
1609
1610 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
1611
1612         * c-decl.c (finish_decl): Handle 'used' here...
1613         * cgraphunit.c (cgraph_finalize_function): ... and here ...
1614         * c-common.c: (handle_used_attribute): ... not here.
1615
1616         * configure.in (onstep): Support --enable-intermodule.
1617         * Makefile.in (OBJS-common): New.
1618         (OBJS-md): New.
1619         (OBJS-archive): New.
1620         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
1621         (OBJS-onestep): New.
1622         (libbackend.a): Support @onestep@.
1623         (libbackend.o): New.
1624         * configure: Regenerate.
1625
1626         * c-common.h (c_reset_state): New prototype.
1627         (c_parse_file): New prototype.
1628         (finish_file): Move prototype from c-tree.h.
1629         * c-decl.c: Include <hashtab.h>.
1630         (builtin_decls): New.
1631         (current_file_decl): New.
1632         (duplicate_decls): Add extra parameter. Change all callers.  Don't
1633         output duplicate common symbols.
1634         (link_hash_hash): New.
1635         (link_hash_eq): New.
1636         (poplevel): Handle popping of the top level.
1637         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
1638         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
1639         (pushdecl_top_level): Likewise.
1640         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
1641         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
1642         (finish_decl): Handle TRANSLATION_UNIT_DECL.
1643         (merge_translation_unit_decls): New.
1644         (c_write_global_declarations): New.
1645         (c_reset_state): New.
1646         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
1647         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
1648         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
1649         TRANSLATION_UNIT_DECL.
1650         (c_objc_common_finish_file): Call merge_translation_unit_decls.
1651         * c-opts.c (in_fnames): Rename from in_fname.
1652         (c_common_decode_option): Handle multiple input filenames.
1653         (c_common_post_options): Likewise.
1654         (c_common_parse_file): Likewise; also, call c_parse_file rather than
1655         yyparse.
1656         * c-parse.in: Move cleanup code to c_parse_file.
1657         (free_parser_stacks): Move contents to c_parse_file.
1658         (c_parse_file): New.
1659         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
1660         for integer types.
1661         (C_DECL_FILE_SCOPE): New.
1662         (finish_file): Move prototype to c-common.h.
1663         (merge_translation_unit_decls): New prototype.
1664         (comptypes): Add extra parameter to prototype.
1665         (c_write_global_declarations): New prototype.
1666         * c-typeck.c (tagged_types_tu_compatible_p): New.
1667         (function_types_compatible_p): Add extra parameter, change all callers.
1668         (type_lists_compatible_p): Likewise.
1669         (comptypes): Likewise.
1670         (struct tagged_tu_seen): New.
1671         (tagged_tu_seen_base): New.
1672         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
1673         (c_mark_addressable): Remove #if 0 code.
1674         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
1675         comment explaining why it shouldn't have to.
1676         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
1677         options.
1678         * cppinit.c (cpp_read_next_file): New.
1679         (cpp_read_main_file): Use it.
1680         * cpplib.c (undefine_macros): New.
1681         (cpp_undef_all): New.
1682         * cpplib.h (cpp_read_next_file): Prototype.
1683         (cpp_undef_all): Prototype.
1684         * langhooks-def.h (write_global_declarations): Remove prototype.
1685         * toplev.h (write_global_declarations): Add prototype.
1686         * tree.c (decl_type_context): Use switch statement, handle
1687         TRANSLATION_UNIT_DECL.
1688         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
1689         (TRANSLATION_UNIT_DECL): New kind of tree.
1690         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
1691         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
1692         * doc/invoke.texi: Make attempt to document new functionality.
1693
1694         2003-05-19  Per Bothner <bothner@apple.com>
1695
1696         * gcc.c (combine_inputs): New.
1697         (process_command): Set combine_inputs.
1698         (do_spec_1): Handle combine_inputs.
1699         (main): Likewise.
1700
1701 2003-07-10  James E Wilson  <wilson@tuliptree.org>
1702
1703         PR optimization/9745
1704         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
1705         loop_insn_emit_before.
1706         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
1707
1708 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
1709
1710         * cppcharset.c: Fix comment.
1711         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
1712         (EILSEQ): #define to EINVAL if not already defined.
1713         (convert_using_iconv): #if out when !HAVE_ICONV.
1714         (init_iconv_desc): Handle !HAVE_ICONV here...
1715         (cpp_init_iconv): ...not here.
1716
1717 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
1718
1719         * common.opt: More --help messages.
1720         * opts.c (print_help): Use puts().
1721         * toplev.c (f_options): Remove help text.
1722         (display_help): Don't dump f_options.
1723
1724 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
1725
1726         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
1727         Move i?86-*-interix* to the don't-fix list.
1728         * fixinc/fixinc.interix: Delete with extreme prejudice.
1729
1730 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
1731
1732         PR bootstrap/10758
1733         * doc/install.texi: Document requirements for ia64-*-hpux* target.
1734
1735 2003-07-10  Roger Sayle  <roger@eyesopen.com>
1736
1737         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
1738
1739 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
1740
1741         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
1742         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
1743         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
1744         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
1745         convert_no_conversion, convert_using_iconv): New functions.
1746         (APPLY_CONVERSION): New macro.
1747         (struct conversion, conversion_tab): New data structure.
1748         (init_iconv_desc): Check conversion_tab for a custom conversion
1749         primitive before trying to use iconv.
1750         (convert_cset): Deleted.
1751         (cpp_init_iconv): Use UTF- terminology, not UCS-.
1752         (_cpp_destroy_iconv): Update to match.
1753         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
1754         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
1755         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
1756         (_cpp_interpret_string_notranslate): New function, moved here
1757         from cpplib.c.
1758
1759         * cpphash.h (convert_f, struct cset_converter): New types.
1760         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
1761         are now struct cset_converter, not bare iconv_t.
1762         Update prototypes.
1763         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
1764         all callers changed.
1765
1766 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
1767
1768         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
1769         to opts.sh command line.
1770         * opts.sh: Write to temporary files with a move-if-change at the end.
1771
1772 2003-07-10  Denis Chertykov  <denisc@overta.ru>
1773             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1774
1775         * combine.c (gen_binary): Handle the CLOBBER rtx and
1776         don't build a binary operation with it.
1777
1778 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1779
1780         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
1781         store_killed_after, store_killed_before): Keep track of the correct
1782         dependency function to use.
1783
1784 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
1785         * toplev.c (do_compile): Don't try to open dump files before
1786         lang_dependent_init initializes dump_base_name.
1787
1788 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1789
1790         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
1791         Use ARRAY_SIZE.
1792         * config/frv/frv.c (frv_expand_builtin): Likewise.
1793         * config/sh/sh.c (sh_media_init_builtins): Likewise.
1794
1795 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
1796
1797         PR c++/10032
1798         * doc/invoke.texi (C++ Dialect Options): Change documentation of
1799         -fpermissive.
1800
1801 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
1802
1803         * tm.texi (RETURN_ADDR_OFFSET): Document.
1804
1805 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
1806
1807         * gcov-io.h: Update documentation.
1808         (GCOV_UNSIGNED2STRING): New.
1809         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
1810         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
1811         GCOV_TAG_SUMMARY_LENGTH): Adjust.
1812         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
1813         GCOV_TAG_COUNTER_NUM): New.
1814         (GCOV_BLOCK_SIZE): Number of words.
1815         (gcov_var): Adjust buffer type.
1816         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
1817         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
1818         count, not byte count.
1819         (gcov_open): Adjust overread init.
1820         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
1821         gcov_write_string, gcov_write_tag, gcov_write_length,
1822         gcov_write_tag_length): Adjust.
1823         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
1824         (gcov_sync, gcov_seek): Adjust.
1825         * gcov-dump.c (print_usage): Show gcc version only.
1826         (dump_file): Use GCOV_UNSIGNED2STRING.
1827         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
1828         * gcov.c (print_version): Show gcc version only.
1829         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
1830         GCOV_TAG_*_NUM macros.
1831         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
1832         GCOV_TAG_COUNTER_LENGTH.
1833         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
1834         Use GCOV_TAG_COUNTER_NUM.
1835         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
1836         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
1837
1838 2003-07-10  Andreas Schwab  <schwab@suse.de>
1839
1840         * gcov-dump.c (dump_file): Fix missing address operator.
1841
1842 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
1843
1844         PR c/11449
1845         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
1846         of HOST_WIDE_INT.
1847         (fold_single_bit_test): If sign_bit_p() fails, assume that the
1848         bit being tested is not a sign bit.
1849
1850 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
1851
1852         * config/h8300/h8300.md (a peephole2): New.
1853
1854 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
1855
1856         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
1857         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
1858         from ld-linux.so.2 to ld.so.1.
1859         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
1860         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
1861         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
1862         nor -Wl,-rpath-link.
1863         (LIB_SPEC): Add -rpath-link if !static.
1864         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
1865         * config/mn10300/mn10300.c (mn10300_protect_label): New
1866         variable.
1867         * config/mn10300/linux.h (PRINT_OPERAND,
1868         PRINT_OPERAND_ADDRESS): Set it during their execution.
1869         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
1870         mn10300_protect_label is set.
1871         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
1872         -Wl,-rpath-link.
1873         (LIB_SPEC, STARTFILE_SPEC): Define.
1874         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
1875         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
1876         FLOAT_BIT_ORDER_MISMATCH.
1877         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
1878         * config.gcc (am33_2.0-*-linux*): Added.
1879         * config/mn10300/linux.h: New.
1880         * config/mn10300/t-linux: New.
1881
1882 2003-07-10  Andreas Jaeger  <aj@suse.de>
1883
1884         * fold-const.c: Properly wrap prototypes.
1885
1886 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
1887
1888         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
1889         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
1890         Moved from...
1891         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
1892         * config/mn10300/mn10300.h: GTY-declare it.
1893         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
1894         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
1895         prototype.  Use incoming RTL argument.
1896         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
1897         * config/mn10300/mn10300.md (int_label): Move C statements...
1898         (GOTaddr2picreg): ... here.
1899         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
1900         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
1901         * config/mn10300/mn10300.c (mn10300_encode_section_info):
1902         ... here.  New function.
1903         (TARGET_ENCODE_SECTION_INFO): Define to it.
1904         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
1905         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
1906         pattern name.
1907         (mn10300_loadPC): Define as insn splittable after reload.
1908         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
1909         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
1910         be defined in .rodata even in PIC, now that the assembler
1911         supports that.
1912         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
1913         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
1914         symbol take an underscore prefix.
1915         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
1916         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
1917         legitimize_pic_address): Declare.
1918         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
1919         the PIC register as fixed.
1920         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
1921         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
1922         PIC.
1923         (LEGITIMATE_PIC_OPERAND_P): Define.
1924         (PIC_OFFSET_TABLE_REGNUM): Define.
1925         (GOT_SYMBOL_NAME): Define.
1926         (SYMBOLIC_CONST_P): Define.
1927         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
1928         symbols.
1929         (MN10300_GLOBAL_P): Test it.
1930         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
1931         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
1932         * config/mn10300/mn10300.c (print_operand): Handle unspec.
1933         (expand_prologue): Set PIC register.
1934         (call_address_operand): Don't match SYMBOL_REFs in PIC.
1935         (legitimize_address): Call legitimize_pic_address.
1936         (legitimize_pic_address): New fn.
1937         (legitimate_pic_operand_p): New fn.
1938         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
1939         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
1940         UNSPEC_PLT): New constants.
1941         (pop_pic_reg): New insn.
1942         (movsi): Adjust non-PIC addresses.
1943         (builtin_setjmp_receiver): Restore the PIC register.
1944         (casesi): New insn.
1945         (call): Adjust non-PIC addresses.
1946         (int_label, GOTaddr2picreg): New expands.
1947         (am33_loadPC): New insn.
1948         (mn10300_loadPC): New expand.
1949         (call_next_insn): New insn.
1950         (add_GOT_to_pic_reg): New expand.
1951         (symGOT2reg, symGOT2reg_i): New expands.
1952         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
1953         (sym2PIC, sym2PLT): New expands.
1954
1955 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
1956
1957         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
1958         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
1959         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
1960         to flag_unsafe_math_optimizations.
1961         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
1962         * config/mn10300/mn10300.c (expand_prologue): Mark
1963         FP-register-saving insns as frame-related.
1964         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
1965         * config/mn10300/mn10300.c
1966         (mn10300_get_live_callee_saved_regs): Don't search past
1967         LAST_EXTENDED_REGNUM.
1968         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
1969         * config/mn10300/mn10300.md: Remove excessive line breaks from
1970         `@' output patterns that were accounted as additional
1971         alternatives.
1972         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
1973         Re-introduce changes accidentally removed in Richard Sandiford's
1974         2000-12-05's patch.
1975         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
1976         Re-instate am33-2 lost in merge from net GCC.
1977         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
1978         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
1979         floating-point registers.
1980         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
1981         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
1982         pessimizations that had gone in on 2000-05-08.
1983         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
1984         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
1985         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
1986         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
1987         operand 0.
1988         * (movhi): Likewise.
1989         * (movsi): Likewise.
1990         * (movsf): Likewise.
1991         * (movdi): Likewise.
1992         * (movdf): Likewise.
1993         Wed May 24 13:16:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
1994         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
1995         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
1996         (expand_prologue, expand_epilogue): Save and restore FP regs.
1997         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
1998         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
1999         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
2000         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
2001         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
2002         Do not clobber cc0.
2003         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
2004         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
2005         Discourage the two-argument, longer opcodes.
2006         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
2007         ones.
2008         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
2009         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
2010         * config/mn10300/mn10300.md (cmpsf): New pattern.
2011         (branch): Test mdep.fpCC and output fbCC.
2012         * config/mn10300/mn10300.c (print_operand): Output conditions.
2013         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
2014         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
2015         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
2016         mulsf3, divsf3): Use the `F' constraint for FP values.
2017         * config/mn10300/mn10300.c (const_1f_operand): New function.
2018         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
2019         * config/mn10300/mn10300.md (sqrtsf2): New expand.
2020         (rsqrtsf2): New insn.
2021         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
2022         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
2023         previous check-in.
2024         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
2025         * config/mn10300/mn10300.md (abssf2, negdf2): On
2026         TARGET_AM33_2, expand to...
2027         (abssf2_am33_2, negdf2_am33_2): New insns.
2028         (addsf3, subsf3, mulsf3, divsf3): Likewise.
2029         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
2030         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
2031         movdi, movdf): Added FP regs.
2032         * invoke.texi (-mam33-2, -mno-am33-2): Document.
2033         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
2034         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
2035         New macros.
2036         (REGNO_AM33_2_FP_P): Renamed to...
2037         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
2038         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
2039         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
2040         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
2041         regs from GENERAL_REGS.
2042         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
2043         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
2044         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
2045         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
2046         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
2047         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
2048         as FP_REGS.
2049         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
2050         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
2051         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
2052         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
2053         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
2054         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
2055         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
2056         AM33/2.0 floating-point registers.
2057         (CONDITIONAL_REGISTER_USAGE): Adjust.
2058         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
2059         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
2060         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
2061         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
2062         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
2063         (MULTILIB_DIRNAMES): Likewise.
2064         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
2065         `__AM33_2__' when `-mam33-2' is given.
2066         (TARGET_AM33_2): Define.
2067         (TARGET_SWITCHES): Adjust.
2068         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
2069         when appropriate.
2070
2071 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
2072
2073         * doc/install.texi: Add missing @.
2074
2075 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
2076
2077         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
2078
2079 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
2080
2081         PR/11144
2082         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
2083
2084 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
2085
2086         PR bootstrap/11043
2087         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
2088         "x-crtfini.o" with "crtinit.o", "crtfini.o".
2089
2090         * fixinc/inclhack.def (limits_ifndefs): Add select test.
2091         * fixinc/fixincl.x: Rebuild.
2092
2093         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
2094         * fixinc/fixincl.x: Rebuild.
2095
2096 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
2097
2098         * doc/install.texi (Configuration): Document the valgrind option
2099         to --enable-checking.
2100
2101 Wed Jul  9 16:16:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
2102
2103         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2104
2105 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2106
2107         * c-lex.c (cb_ident): Cast cstr.text to const char *.
2108
2109 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
2110
2111         * gcov-io.h: Update documentation.
2112         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
2113         GCOV_NOTE_MAGIC.
2114         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
2115         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
2116         (struct gcov_var): Change buffer's type. Add endian flag.
2117         (gcov_open): Remove mode in libgcov.
2118         (gcov_magic): Prototype.
2119         * gcov-io.c (from_file): New.
2120         (gcov_open): Clear endian flag.
2121         (gcov_magic): New.
2122         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
2123         pointers.
2124         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
2125         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
2126         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
2127         * gcov-iov.c (main): Correct cast.
2128         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
2129         conversion.
2130         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
2131         (coverage_init): Use GCOV_NOTE_SUFFIX.
2132         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
2133         Rename to gcov_version, and return flag.
2134         (gcov_exit): Use gcov_version.
2135         (__gcov_init): Use gcov_version.
2136         * Makefile.in (coverageexts): Update.
2137         * gcov.c (print_version): Remove endianness conversion.
2138         (create_file_names): Use GCOV_NOTE_SUFFIX.
2139         (read_graph_file): Use gcov_magic.
2140         (read_count_file): Likewise.
2141         * gcov-dump.c (dump_file): Remove endianness conversion, use
2142         gcov_magic.
2143
2144 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
2145
2146         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
2147         coverage is on.
2148         * configure: Regenerated.
2149         * Makefile.in (ALL_CFLAGS): Correct its comment.
2150
2151 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
2152
2153         * fold-const.c (make_range): Do not access operand 1 for a
2154         zero-operand operator.
2155
2156 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
2157
2158         * toplev.c (warn_dummy, W_options): Die.
2159         (display_help): Don't print W_options.
2160         * common.opt: Add W_options help from toplev.c.
2161
2162 2003-07-09  Andreas Jaeger  <aj@suse.de>
2163
2164         * opts.c (wrap_help): Only pass int arguments as arguments to
2165         printf's '*' modifier.  Change argument of function.
2166
2167 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
2168
2169         * doc/invoke.texi: Fix misspelling of "@item".
2170
2171 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
2172
2173         * config/i386/i386.md: Remove an old comment about
2174         NOTICE_UPDATE_CC.
2175
2176 Wed Jul  9 03:00:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
2177
2178         * cgraph.c (cgraph_node_name): New function.
2179         (dump_cgraph): Use it.
2180         * cgraph.h (cgraph_dump_file): Declare.
2181         (cgraph_node_name): Declare.
2182         * cgraphunit.c: Include timevar.h
2183         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
2184         (cgraph_optimize_function): Use TV_INTEGRATION.
2185         (cgraph_mark_local_functions): reorganize dumps.
2186         (cgraph_mark_functions_to_inline_once): Likewise.
2187         (cgraph_optimize): Likewise; use timevar.
2188         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
2189         * toplev.c (dump_file_index): Add DFI_cgraph.
2190         (dump_file_info): Likewise.
2191         (cgraph_dump_file): New global variable.
2192         (do_compile): Open and close cgraph dump.
2193         * invoke.texi (-d): Document new flag; renumber.
2194
2195 2003-07-08  Roger Sayle  <roger@eyesopen.com>
2196
2197         PR c/11370
2198         * calls.c (emit_call_1): Don't bother popping the arguments off of
2199         the stack after a noreturn function call;  The adjustment is dead.
2200         (expand_call): Likewise.
2201
2202 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
2203
2204         * expr.c (MOVE_MAX_PIECES): Move from here...
2205         * defaults.h (MOVE_MAX_PIECES): ... to here.
2206
2207 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
2208
2209         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
2210
2211 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2212
2213         * genattr.c (internal_dfa_insn_code): Don't prototype.
2214         * genattrtab.c (attr_desc): Add `static_p' field.
2215         (expand_units): Make blockage range and ready cost functions
2216         static.
2217         (write_attr_get): Don't add extern prototypes in C file.  Mark
2218         static functions as appropriate.
2219         (find_attr, make_internal_attr): Initialize static_p.
2220         * genattrtab.h (ATTR_STATIC): New macro.
2221         * genautomata.c (output_internal_reset_func): Mark output function
2222         as inline.
2223         (make_internal_dfa_insn_code_attr): Mark output function as static.
2224
2225 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2226
2227         * genattrtab.h: Add new macros for attr `special' flags.
2228         * genattrtab.c (attr_desc): Reorder/resize fields better.
2229         Use attr `special' macros in all calls to make_internal_attr.
2230         * genautomata.c: Likewise.
2231
2232 Wed Jul  9 02:25:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
2233
2234         * c-common.c (c_estimate_num_insns_1): New static function.
2235         (c_estimate_num_insns): New global function.
2236         * c-common.h (DECL_NUM_STMTS): Rename to...
2237         (DECL_ESTIMATED_INSNS): ... this.
2238         (c_estimate_num_insns): Declare.
2239         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
2240         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2241         * c-semantics.c (add_stmt): Do not account statements.
2242         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
2243         New.
2244         * langhooks.h (lang_hooks_for_tree_inlining): Add
2245         estimate_num_insns
2246         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
2247         to 100.
2248         (max-inline-insns): set to 300.
2249         (min-inline-insns): set to 10.
2250         * tree-inline.c (struct inline_data): Rename inlined_stmts to
2251         inlined-insns.
2252         (INSNS_PER_STMT): Kill.
2253         (inlinable_function_p): Compute and store body size.
2254         (expand_call_inline): Likewise.
2255         (optimize_inline_calls): Likewise.
2256
2257 2003-07-08  James E Wilson  <wilson@tuliptree.org>
2258
2259         PR target/10021
2260         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
2261         loop over new variable t2 instead of t.
2262
2263 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
2264
2265         PR bootstrap/11455
2266         * config/i386/winnt.c: Replace use of error(), warning() with
2267         error_with_decl(), warning_with_decl(),  throughout.
2268
2269 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
2270
2271         * opts.c (wrap_help): Use unsigned int, not size_t.
2272
2273 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
2274
2275         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
2276         as .file/.loc directives are incompatible with linker relaxation.
2277
2278 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
2279
2280         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
2281         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
2282         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
2283         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
2284         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
2285         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
2286         Escape { and } characters which are not part of range expressions.
2287         * fixinc/fixincl.x: Regenerate.
2288         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
2289
2290 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
2291
2292         PR c/1687
2293         * tree-inline.c (find_alloca_call): Use
2294         walk_tree_without_duplicates, instead of walk_tree.
2295         (find_builtin_longjmp_call): Likewise.
2296         * c-objc-common.c (c_cannot_inline_fn): Likewise.
2297         * c-semantics.c (find_reachable_label): Likewise.
2298
2299 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
2300
2301         PR c/11420
2302         * config/i386/i386.c (ix86_check_movabs): New function.
2303         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
2304         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
2305         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
2306
2307 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
2308
2309         * Makefile.in (install-po): Cope with empty CATALOGS.
2310
2311 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
2312
2313         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2314         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2315         (SECTION_FUNCTION_TEMPLATE): Delete.
2316         * config/mips/elf.h: As for elf64.h.
2317         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
2318         * config/mips/linux.h: As for elf.h
2319         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2320         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
2321         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
2322         of in_sdata from current_section_name and current_section_flags.
2323         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2324         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
2325         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
2326         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
2327         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
2328         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2329         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
2330         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
2331         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
2332         (override_options): Remove setting of MASK_GPOPT.
2333         (mips_output_external): Use mips_in_small_data_p to check whether a
2334         symbol needs an .extern directive.  Don't emit such directives for
2335         TARGET_EXPLICIT_RELOCS.
2336         (mips_declare_object): Update accordingly.
2337         (mips_select_rtx_section): Call named_section rather than
2338         SMALL_DATA_SECTION.
2339         (mips_select_section): Use default_elf_section_section for everything
2340         except .text string constants.
2341         (mips_in_small_data_p): New function.
2342         (mips_encode_section_info): Remove small data handling.
2343         (mips_unique_section): Delete.
2344         (iris6_section_type_flags): New function.
2345         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
2346
2347 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2348
2349         PR Target/11453
2350         * pa.md: Disparage all mtsar constraints.
2351         (extzv, extv, insv): Don't fail on length of {32|64}.
2352
2353 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
2354
2355         * system.h: Poison MAP_CHARACTER.
2356         * config/i370/i370-protos.h (mvs_map_char): Delete.
2357         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
2358         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
2359         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
2360
2361 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
2362
2363         * toplev.c (randomize): Correct call to time().
2364
2365 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
2366
2367         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
2368         REG_EQUIV notes as well.
2369
2370 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
2371
2372         * doc/md.texi: Fix the description of addmodecc.
2373
2374 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
2375
2376         * Makefile.in (top_builddir): Set to "..", not ".".
2377         (INTLLIBS, INTLDEPS): Delete.
2378         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
2379         (LIBDEPS): Add $(LIBICONV_DEP).
2380         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
2381         (INCLUDES): Replace -I../intl with @INCINTL@.
2382         ($(top_builddir)/intl/libintl.a): Delete rule.
2383         (stage2-start, stage3-start, stage4-start, stageprofile-start,
2384         stagefeedback-start): Use $$ for variable to be evaluated by
2385         shell, not make.
2386         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
2387         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
2388         * aclocal.m4: sinclude ../config/progtest.m4.  Add
2389         contents of lcmessage.m4 from gettext distro.
2390         * configure.in: Check for wchar.h and setlocale.  Set
2391         LIBICONV_DEP to the empty string and substitute it.
2392         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
2393         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
2394         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
2395         in $LIBINTL, to avoid linking it twice.
2396         * configure, config.in: Regenerate.
2397
2398 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
2399
2400         * fixinc/mkfixinc.sh: Remove winnt support.
2401         * fixinc/fixinc.winnt: Delete with extreme prejudice.
2402
2403 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
2404
2405         * Makefile.in: Update.
2406         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
2407         * c.opt: Update documentation.
2408         * common.opt: Add some help text.
2409         * opts.c: Include intl.h.
2410         (wrap_help, print_help): New.
2411         (find_opt, handle_option, common_handle_option): opt_text now
2412         contains the '-'.  Use print_help to output help.
2413         * opts.h (struct cl_option): New member "help".
2414         * opts.sh: Update to handle help text output and to prepend
2415         options with '-'.
2416         * toplev.c (display_help): Remove some help text.
2417
2418 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
2419             Fariborz Jahanian  <fjahanian@apple.com>
2420
2421         * configure.in: Test for PowerPC mfcr field support in assembler.
2422         * config.in, configure: Regenderated.
2423
2424         * config/rs6000/power4.md: Add mfcrf reservation.
2425         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
2426         * config/rs6000/rs6000.c (mfcr_operation): Define.
2427         (print_operand): Add 'Q' case for mfcrf.
2428         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
2429         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
2430         (movcc_internal1): Emit optional field operand for mfcr and set
2431         "type" attribute appropriately.
2432         (mfcr SCC): Likewise.
2433         (movesi_from_cr_one): New.
2434
2435 2003-07-07  Roger Sayle  <roger@eyesopen.com>
2436
2437         * config/i386/i386.md: Correct check-in of incorrect version.
2438
2439 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2440
2441         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
2442         adjacent stdio calls.
2443         * c-decl.c (c_print_identifier): Likewise.
2444         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
2445         * print-rtl.c (print_rtx): Likewise.
2446         * print-tree.c (print_node_brief, print_node): Likewise.
2447         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
2448
2449         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
2450         * config.in, configure: Regenerated.
2451
2452 2003-07-07  Roger Sayle  <roger@eyesopen.com>
2453
2454         PR target/10979
2455         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
2456         Changed to define_expand patterns that copy operand[1] to prevent
2457         it from being clobbered before emitting an atan2?f3_1 insn.
2458         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
2459         patterns that actually specify the behaviour of x87's FPATAN.
2460
2461 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
2462
2463         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
2464         clearing of SYMBOL_FLAG_LOCAL bit.
2465         If vcall_offset fits into signed 16-bit immediate, use
2466         one instruction for both addition and load.
2467
2468 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
2469
2470         * opts.c (common_handle_option): Correct handling of the
2471         -falign- switches that do and don't take an argument.
2472
2473 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
2474
2475         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
2476         today.
2477         (pushhi1_h8300hs): Likewise.
2478
2479 2003-07-07  Andreas Jaeger  <aj@suse.de>
2480
2481         * genextract.c: Convert remaining prototypes to ISO C90.
2482
2483         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
2484         * fold-const.c (fold_single_bit_test): Likewise.
2485         * diagnostic.c (default_diagnostic_finalizer): Likewise.
2486         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
2487
2488         * gengtype.c (write_array): Generate ISO C90 prototypes.
2489
2490         * genflags.c (gen_proto): Generate ISO C90 prototypes.
2491
2492 2003-07-07  Roger Sayle  <roger@eyesopen.com>
2493
2494         PR optimization/11059
2495         * expr.c (can_store_by_pieces): Return true if length is zero.
2496         (store_by_pieces): If length is zero and endp is two, abort,
2497         othwerise, if length is zero and endp is not two, return "to".
2498         (clear_by_pieces): Do nothing if length is zero.
2499         (clear_storage): Do nothing if length is zero.
2500         (store_constructor): Simplify code when size is zero, or the
2501         target has already been cleared.  This avoids emitting a
2502         blockage instruction when initializing empty structures.
2503
2504 2003-07-07  Andreas Jaeger  <aj@suse.de>
2505
2506         * mips-tfile.c: Convert prototypes to ISO C90.
2507         * mips-tdump.c: Convert prototypes to ISO C90.
2508
2509 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
2510
2511         * rtl.h (emit_line_note): Take a location_t.
2512         (emit_line_note_force): Remove.
2513         (set_file_and_line_for_statement): Take a location_t.
2514         * tree.g (emit_line_note): Take a location_t.
2515         * emit-rtl.c (emit_line_note): Take a location_t.
2516         (emit_line_note_force): Remove.
2517         * function.c (init_function_start): Adjust emit_line_note call.
2518         (expand_function_end): Use force_next_line_note, not
2519         emit_line_note_force.
2520         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
2521         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
2522         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
2523         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
2524         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
2525         genrtl_continue_stmt, genrtl_switch_stmt,
2526         genrtl_asm_stmt): Likewise.
2527         * expr.c (expand_expr): Likewise.
2528         * integrate.c (expand_inline_function): Likewise.
2529         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
2530         (expand_decl_init): Adjust emit_line_note call.
2531
2532 2003-07-07  Dale Johannesen  <dalej@apple.com>
2533
2534         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
2535
2536 2003-07-07  Andreas Jaeger  <aj@suse.de>
2537
2538         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
2539         * config/i386/i386.c: Likewise.
2540
2541 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
2542
2543         * config/h8300/h8300.md: Use gen_int_mode instead of
2544         GEN_INT (trunc_int_for_mode (...)).
2545
2546 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
2547
2548         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
2549         2 bytes and then subtract 2 from the stack pointer.
2550         (pushhi1_h8300hs): Likewise.
2551
2552 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
2553
2554         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
2555         -frandom-seed.
2556         * configure: Regenerated.
2557         * Makefile.in: Remove extraneous comment.
2558         * toplev.c (randomize): Protect against potential multiple calls.
2559         * doc/invoke.texi (-frandom-seed): Document use for in coverage
2560         files.
2561
2562 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2563             Eric Botcazou  <ebotcazou@libertysurf.fr>
2564
2565         PR optimization/11198
2566         * alias.c (objects_must_conflict_p): Return 1 if the types have
2567         the same alias set, not if the alias sets only conflict.
2568
2569 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
2570
2571         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
2572         (convert_cset): Change inbuf to type ICONV_CONST char.
2573         * Makefile.in (LIBS): Add LIBICONV.
2574
2575         * doc/invoke.texi (-falign-functions): Document that
2576         when n is zero then a machine-dependent default is used.
2577         (-falign-labels): Document that when n is zero then a
2578         machine-dependent default is used and that -falign-labels =1
2579         is equivalent to -fno-align-labels.
2580         (-falign-loops): Likewise.
2581         (-falign-jumps): Likewise.
2582
2583 2003-07-06  Art Haas  <ahaas@airmail.net>
2584
2585         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
2586         initializer syntax.
2587
2588 2003-07-06  James E Wilson  <wilson@tuliptree.org>
2589
2590         PR optimization/9812
2591         * rtl.h (mem_for_const_double): Delete prototype.
2592         * varasm.c (mem_for_const_double): Delete function.
2593         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
2594         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
2595         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
2596         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
2597         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
2598         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
2599         comment about confused support for XFmode constants.
2600
2601 Mon Jul  7 02:03:56 CEST 2003  Jan Hubicka  <jh@suse.cz>
2602
2603         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
2604
2605 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
2606
2607         * config/h8300/h8300.c: Fix comment typos.
2608         * config/h8300/h8300.md: Likewise.
2609         * config/i386/athlon.md: Likewise.
2610         * config/i386/i386.c: Likewise.
2611         * config/i386/pentium.md: Likewise.
2612         * config/ia64/ia64.c: Likewise.
2613         * config/ia64/itanium1.md: Likewise.
2614         * config/ia64/itanium2.md: Likewise.
2615         * config/m32r/m32r.md: Likewise.
2616         * config/m68hc11/m68hc11.c: Likewise.
2617         * config/mcore/mcore.c: Likewise.
2618         * config/mips/sr71k.md: Likewise.
2619         * config/mips/t-iris5-as: Likewise.
2620         * config/mmix/mmix.h: Likewise.
2621         * config/ns32k/ns32k.h: Likewise.
2622         * config/ns32k/NOTES: Fix a typo.
2623
2624 2003-07-06  Andreas Jaeger  <aj@suse.de>
2625
2626         * stmt.c: Convert remaining prototypes to ISO C90.
2627         * cfglayout.c: Likewise.
2628         * dbxout.c: Likewise.
2629         * gcc.c: Likewise.
2630         * genemit.c: Likewise.
2631
2632         * basic-block.h: Convert prototypes to ISO C90.
2633         * c-parse.in: Likewise.
2634         * c-pragma.h: Likewise.
2635         * c-typeck.c: Likewise.
2636         * cfghooks.h: Likewise.
2637         * cfgloopanal.c: Likewise.
2638         * dbxout.h: Likewise.
2639         * debug.h: Likewise.
2640         * dwarf2asm.h: Likewise.
2641         * gcov.c: Likewise.
2642         * gengtype-lex.l: Likewise.
2643         * sched-int.h: Likewise.
2644         * timevar.c: Likewise.
2645
2646 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
2647
2648         * c-common.h (c_comon_handle_filename,
2649         c_common_missing_arguement): New.
2650         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2651         LANG_HOOKS_MISSING_ARGUMENT): New.
2652         * c-opts.c (missing_arg): Rename c_common_missing_argument,
2653         update to be an appropriate langhook.
2654         (c_common_handle_option): Don't handle filenames.
2655         (c_common_handle_filename): New.
2656         * hooks.c (hook_void_constcharptr,
2657         hook_bool_constcharptr_size_t_false): New.
2658         * hooks.h (hook_void_constcharptr,
2659         hook_bool_constcharptr_size_t_false): New.
2660         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
2661         LANG_HOOKS_MISSING_ARGUMENT): New.
2662         (LANG_HOOKS_INITIALIZER): Update.
2663         * langhooks.h (struct lang_hooks): Add handle_filename and
2664         missing_argument.
2665         * opts.c (handle_option): Don't handle filenames here, but ...
2666         (handle_options): ... here.
2667         (common_handle_option): Don't handle missing arguments here.
2668         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2669         LANG_HOOKS_MISSING_ARGUMENT): New.
2670
2671 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
2672
2673         * Makfile.in: Remove traces of mbchar.
2674         * c-parse.in (MULTIBYTE_CHARS): Remove.
2675         * config.in (MULTIBYTE_CHARS): Remove.
2676         * configure: Remove --enable-mbchar.
2677         * configure.in: Remove --enable-mbchar.
2678         * mbchar.c, mbchar.h: Remove.
2679         * system.h: Poison MULTIBYTE_CHARS.
2680         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
2681         * config/linux.h (MULTIBYTE_CHARS): Remove.
2682         * config/svr4.h (MULTIBYTE_CHARS): Remove.
2683         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
2684
2685 2003-07-06  Andreas Jaeger  <aj@suse.de>
2686
2687         * varray.c (varray_check_failed): Fix typo.
2688
2689         * unroll.c: Convert prototypes to ISO C90.
2690         * varasm.c: Likewise.
2691         * varray.c: Likewise.
2692         * varray.h: Likewise.
2693         * vmsdbgout.c: Likewise.
2694         * xcoffout.c: Likewise.
2695         * xcoffout.h: Likewise.
2696
2697 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
2698
2699         * gcov-io.h: Add a local time stamp.
2700         (struct gcov_info): Add stamp field.
2701         (gcov_truncate): New.
2702         * coverage.c (read_counts_file): Skip the stamp.
2703         (coverage_begin_output): Write the stamp.
2704         (build_gcov_info): Declare and init the stamp.
2705         (coverage_finish): Only unlink data file, if stamp is zero.
2706         * gcov-dump.c (dump_file): Dump the stamp.
2707         * gcov.c (bbg_stamp): New.
2708         (release_structures): Clear bbg_stamp.
2709         (read_graph_file): Read stamp.
2710         (read_count_file): Check stamp.
2711         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
2712
2713 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
2714
2715         * tree.h (default_flag_random_seed): Remove.
2716         * toplev.h (local_tick): Declare.
2717         * tree.c (flag_random_seed, default_flag_random_seed): Move to
2718         toplev.c.
2719         (append_random_chars): Don't call default_flag_random_seed.
2720         * toplev.c (flag_random_seed): Define here. Set local_tick.
2721         (local_tick): Define.
2722         (randomize): New, moved from tree.c.
2723         (print_switch_values): Adjust.
2724         (toplev_main): Call randomize.
2725
2726 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
2727
2728         * tree.h (crc32_string): Declare.
2729         * tree.c (append_random_chars): Remove.
2730         (crc32_string): New.
2731         (get_file_function_name_long): Use crc32_string here.
2732
2733 2003-07-06  Andreas Jaeger  <aj@suse.de>
2734
2735         * gcc.c: Convert prototypes to ISO C90.
2736         * gcc.h: Likewise.
2737         * gcov-dump.c: Likewise.
2738         * gcov-iov.c: Likewise.
2739         * gcse.c: Likewise.
2740         * genattrtab.h: Likewise.
2741         * ggc.h: Likewise.
2742         * global.c: Likewise.
2743         * graph.c: Likewise.
2744         * graph.h: Likewise.
2745         * hosthooks.h: Likewise.
2746         * hooks.h: Likewise.
2747         * hooks.c: Likewise.
2748         * hashtable.h: Likewise.
2749         * hashtable.c: Likewise.
2750         * haifa-sched.c: Likewise.
2751         * integrate.h: Likewise.
2752         * integrate.c: Likewise.
2753         * input.h: Likewise.
2754         * ifcvt.c: Likewise.
2755         * jump.c: Likewise.
2756         * langhooks-def.h: Likewise.  Add extern to prototypes.
2757         * langhooks.c: Likewise.
2758         * langhooks.h: Likewise.
2759         * lcm.c: Likewise.
2760         * local-alloc.c: Likewise.
2761         * loop-init.c: Likewise.
2762         * loop-unroll.c: Likewise.
2763         * loop-unswitch.c: Likewise.
2764         * loop.c: Likewise.
2765         * loop.h: Likewise. Add extern to prototypes.
2766         * machmode.h: Likewise.
2767         * main.c: Likewise.
2768         * mbchar.c: Likewise.
2769         * mbchar.h: Likewise.
2770         * mkdeps.c: Likewise.
2771         * mkdeps.h: Likewise.
2772         * optabs.c: Likewise.
2773         * optabs.h: Likewise.
2774         * output.h: Likewise.
2775         * gccspec.c: Likwise.
2776         * postreload.c: Likewise.
2777         * prefix.c: Likewise.
2778         * prefix.h: Likewise.
2779         * print-rtl.c: Likewise.
2780         * print-tree.c: Likewise.
2781         * profile.c: Likewise.
2782         * read-rtl.c: Likewise.
2783         * real.c: Likewise.
2784         * real.h: Likewise.
2785         * recog.c: Likewise.
2786         * recog.h: Likewise.
2787         * reg-stack.c: Likewise.
2788         * regclass.c: Likewise.
2789         * regmove.c: Likewise.
2790         * regrename.c: Likewise.
2791         * regs.h: Likewise.
2792         * reload.c: Likewise.
2793         * reload.h: Likewise.
2794         * reload1.c: Likewise.
2795         * reorg.c: Likewise.
2796         * resource.c: Likewise.
2797         * resource.h: Likewise.
2798         * rtl-error.c: Likewise.
2799         * rtl.c: Likewise.
2800         * rtl.h: Likewise.
2801         * rtlanal.c: Likewise.
2802         * sbitmap.c: Likewise.
2803         * sbitmap.h: Likewise.
2804         * scan-decls.c: Likewise.
2805         * scan.c: Likewise.
2806         * sched-deps.c: Likewise.
2807         * sched-ebb.c: Likewise.
2808         * sched-int.h: Likewise.
2809         * sched-rgn.c: Likewise.
2810         * sched-vis.c: Likewise.
2811         * sibcall.c: Likewise.
2812         * simplify-rtx.c: Likewise.
2813         * sreal.c: Likewise.
2814         * sreal.h: Likewise.
2815         * ssa-ccp.c: Likewise.
2816         * ssa-dce.c: Likewise.
2817         * ssa.c: Likewise.
2818         * ssa.h: Likewise.
2819         * stack.h: Likewise.
2820         * stmt.c: Likewise.
2821         * stor-layout.c: Likewise.
2822         * stringpool.c: Likewise.
2823         * target.h: Likewise.
2824         * timevar.c: Likewise.
2825         * timevar.h: Likewise.
2826         * tlink.c: Likewise.
2827         * tracer.c: Likewise.
2828         * tree-inline.c: Likewise.
2829         * tree-inline.h: Likewise.
2830         * tree.c: Likewise.
2831         * tree.h: Likewise.
2832
2833 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
2834
2835         * combine.c (nonzero_bits1): Fix a warning.
2836
2837 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
2838
2839         * config/h8300/h8300.c (compute_mov_length): Correct the
2840         length of loading CONST0_RTX (SFmode).
2841
2842 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
2843
2844         * toplev.c (output_clean_symbol_name): Remove.
2845         * toplev.h (output_clean_symbol_name): Remove.
2846         * config/alpha/alpha.c (unicosmk_output_module_name): Use
2847         lbasename & clean_symbol_name.
2848
2849 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
2850
2851         * ggc.h: Follow spelling conventions.
2852         * config/i386/i386.c: Likewise.
2853         * config/i386/winnt.c: Likewise.
2854         * config/rs6000/rs6000.c: Likewise.
2855
2856 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
2857
2858         * bt-load.c: Fix comment typos.
2859         * c-incpath.c: Likewise.
2860         * cfg.c: Likewise.
2861         * cfgcleanup.c: Likewise.
2862         * cfgloop.h: Likewise.
2863         * cfgloopmanip.c: Likewise.
2864         * cfgrtl.c: Likewise.
2865         * diagnostic.h: Likewise.
2866         * dwarfout.c: Likewise.
2867         * emit-rtl.c: Likewise.
2868         * et-forest.c: Likewise.
2869         * et-forest.h: Likewise.
2870         * expr.c: Likewise.
2871         * gcse.c: Likewise.
2872         * genattr.c: Likewise.
2873         * jump.c: Likewise.
2874         * langhooks.h: Likewise.
2875         * local-alloc.c: Likewise.
2876         * loop-unroll.c: Likewise.
2877         * loop-unswitch.c: Likewise.
2878         * ra-build.c: Likewise.
2879         * regclass.c: Likewise.
2880         * regmove.c: Likewise.
2881         * rtl.def: Likewise.
2882         * rtlanal.c: Likewise.
2883         * sched-ebb.c: Likewise.
2884         * sched-rgn.c: Likewise.
2885         * simplify-rtx.c: Likewise.
2886         * ssa.c: Likewise.
2887         * tracer.c: Likewise.
2888         * tree.c: Likewise.
2889
2890 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
2891
2892         * cppcharset.c: Use the correct return type for the fallback iconv
2893         macro.
2894
2895 Sat Jul  5 16:18:53 CEST 2003  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2896
2897         Blame to Jan Hubicka  <jh@suse.cz>
2898         * cfglayout.c (record_effective_endpoints): Split insns before
2899         first basic block correctly.
2900
2901 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2902
2903         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
2904         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
2905         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
2906
2907 2003-07-05  Andreas Jaeger  <aj@suse.de>
2908
2909         * genattrtab.c (write_attr_get): Revert part of last patch to
2910         always write out a prototype.
2911
2912         * genemit.c (gen_split): Readd lost unused attributes in last
2913         patch.
2914
2915 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2916
2917         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
2918         different from header.
2919
2920 2003-07-05  Andreas Schwab  <schwab@suse.de>
2921
2922         * config/m68k/m68k.c: Remove code protected by CRDS.
2923         * config/m68k/m68k.md: Likewise.
2924
2925 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
2926
2927         PR driver/11417
2928         * c-opts.c (permit_fortran_options): New.
2929         (c_common_init_options): Accept fortran front end options if
2930         it looks like we might be preprocessing Fortran.
2931         (c_common_handle_option): Don't reject switch if permit_fotran_options.
2932
2933 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2934
2935         * genattr.c (internal_dfa_insn_code): Output prototype.
2936         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
2937         * genautomata.c: Likewise.
2938         * genconditions.c: Likewise.
2939         * genemit.c: Likewise.
2940         * genextract.c: Likewise.
2941         * gengenrtl.c: Likewise.
2942         * gengtype.c: Likewise.
2943         * genopinit.c: Likewise.
2944         * genoutput.c: Likewise.
2945         * genpeep.c: Likewise.
2946         * genrecog.c: Likewise.
2947
2948 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
2949
2950         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
2951         (struct cpp_options): Add narrow_charset, wide_charset,
2952         bytes_big_endian fields.  Remove EBCDIC field.
2953         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
2954
2955         * cpphash.h: Include <iconv.h> if we have it, otherwise
2956         provide a dummy definition of iconv_t.
2957         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
2958         (_cpp_valid_ucn): Update prototype.
2959         (_cpp_destroy_iconv): New prototype.
2960
2961         * doc/cpp.texi: Document character set handling.
2962         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
2963         * doc/extend.texi: Delete entire section on multiline strings.
2964         Rewrite section on __FUNCTION__ etc now that these are
2965         variables in C.
2966
2967         * cppucnid.tab, cppucnid.pl: New files.
2968         * cppucnid.h: New generated file.
2969         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
2970         (iconv_open, iconv, iconv_close): Provide dummy definitions
2971         if !HAVE_ICONV.
2972         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
2973         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
2974         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
2975         cpp_interpret_string, narrow_str_to_charconst,
2976         wide_str_to_charconst): New.
2977         (ucn_valid_in_identifier): Use a binary search through the
2978         ucnranges table defined in cppucnid.h, not a long chain of if
2979         statements.
2980         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
2981         character names are only valid in C++ and C99" to a warning.
2982         Issue the "meaning of \[uU] is different in traditional C"
2983         warning here.  Take care not to let iconv see an invalid UCS
2984         value if we get a malformed UCN.  Issue an error if we don't
2985         have iconv.
2986         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
2987         cpp_interpret_string to do the heavy lifting.
2988
2989         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
2990         narrow_charset, wide_charset fields of options structure.
2991         (cpp_destroy): Call _cpp_destroy_iconv.
2992         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
2993         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
2994         (cpp_interpret_charconst): Moved to cppcharset.c.
2995         * cpplib.c (dequote_string): Delete.
2996         (interpret_string_notranslate): New.
2997         (do_line, do_linemarker): Use interpret_string_notranslate.
2998
2999         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
3000
3001         * c-common.c (fname_string, combine_strings): Delete.
3002         * c-common.h (fname_string, combine_strings): Delete prototypes.
3003         * c-lex.c (ignore_escape_flag): Delete.
3004         (cb_ident): Use cpp_interpret_string, not lex_string.
3005         (get_nonpadding_token): New function.
3006         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
3007         Adjust calls to lex_string.  Don't write *value twice.
3008         (lex_string): Now handles string constant concatenation.
3009         Most of the work handed off to cpp_interpret_string.
3010         Call fix_string_type here.
3011         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
3012         FUNC_NAME, throughout.
3013         (OBJC_STRING): New token type.
3014         (primary:STRING): No need to call fix_string_type here.
3015         (primary:objc_string): Make that OBJC_STRING.
3016         (objc_string nonterminal): Delete.
3017         (yylexname): Delete code to handle fake string constants.
3018         (yylexstring): Delete entirely.
3019         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
3020         to handle CPP_ATSIGN.
3021
3022         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
3023         * c-opts.c (missing_arg, c_common_handle_option): Handle
3024         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
3025         (c_common_init): Set cpp_opts->bytes_big_endian, not
3026         cpp_opts->EBCDIC.  Call cpp_init_iconv.
3027         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
3028         (TARGET_EBCDIC): Delete default definition.
3029
3030         * objc/objc-act.c (build_objc_string_object): No need to
3031         handle string constant concatenation.
3032
3033 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
3034
3035         * doc/install.texi: Fix typos.
3036         * doc/invoke.texi: Likewise.
3037         * doc/tm.texi: Likewise.
3038
3039 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
3040
3041         * config/pa/fptr.c: Fix comment typos.
3042         * config/pa/pa-64.h: Likewise.
3043         * config/pa/pa.c: Likewise.
3044         * config/pa/pa.h: Likewise.
3045         * config/rs6000/603.md: Likewise.
3046         * config/rs6000/7xx.md: Likewise.
3047         * config/rs6000/darwin.h: Likewise.
3048         * config/rs6000/freebsd.h: Likewise.
3049         * config/rs6000/rs6000.c: Likewise.
3050         * config/rs6000/rs6000.md: Likewise.
3051         * config/rs6000/spe.h: Likewise.
3052
3053 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
3054
3055         * config/s390/2064.md: Change GNU CC to GCC.
3056         * config/s390/2084.md: Likewise.
3057         * config/s390/fixdfdi.h: Likewise.
3058         * config/s390/linux.h: Likewise.
3059         * config/s390/s390-modes.def: Likewise.
3060         * config/s390/s390-protos.h: Likewise.
3061         * config/s390/s390.c: Likewise.
3062         * config/s390/s390.h: Likewise.
3063         * config/s390/s390.md: Likewise.
3064         * config/s390/s390x.h: Likewise.
3065
3066 2003-07-04  Jeff Law  <law@redhat.com>
3067
3068         PR c/11428
3069         * expr.c (do_store_flag): Pass in the correct result type
3070         when calling fold_single_bit_test.
3071         * fold-const.c (fold_single_bit_test): Use result_type for the
3072         result when folding a sign bit test.
3073
3074 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
3075
3076         * opts.c (common_handle_options): Negate sense of -falign- switches.
3077
3078 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
3079
3080         * Makefile.in: Replace PWD with PWD_COMMAND.
3081
3082 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3083
3084         * cfgloopanal.c (count_strange_loop_iterations): New static function.
3085         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
3086         Handle strange loops.
3087
3088 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
3089
3090         * install.texi: Even the g77 manpage is derived from
3091         the full g77 manual.
3092
3093 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
3094
3095         * ABOUT-NLS: Delete.
3096         * intl: Delete entire directory.
3097         * aclocal.m4: Include ../config/gettext.m4.  Delete
3098         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
3099         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
3100         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
3101         Remove intl/Makefile from all_outputs.
3102         * configure, config.in: Regenerate.
3103         * Makefile.in: Expunge all references to intl subdirectory.
3104         Add -I../intl to INCLUDES.
3105         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
3106
3107 2003-07-04  Roger Sayle  <roger@eyesopen.com>
3108
3109         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
3110         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
3111
3112 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
3113
3114         PR c++/5287, PR c++/7910, PR c++/11021
3115         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
3116         dllimport attribute if function is defined at declaration, but
3117         report error instead. Likewise for dllimport'd variable
3118         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
3119         declared within functions, Report error if dllimport or dllexport
3120         symbol is not global.
3121         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
3122         if defined after declaration or if inlined. Don't allow definition
3123         of static data members of C++ classes. Don't dllimport virtual
3124         methods.
3125         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
3126         (i386_pe_mark_dllimport): Remove unnecessary checks.
3127         (i386_pe_encode_section_info): Warn if the dllimport attribute
3128         and symbol prefix have been instantiated and then overridden.
3129
3130         * doc/extend.texi: Document dllimport and dllexport attributes.
3131
3132         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
3133
3134 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
3135
3136         * config/kaos.h (CPP_PREDEFINES): Delete.
3137         (TARGET_OS_CPP_BUILTINS): New.
3138
3139 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3140
3141         * c-aux-info.c: Include toplev.h after c-tree.h.
3142         * c-common.c: Likewise.
3143         (GCC_DIAG_STYLE): Undef.
3144         * c-semantics.c (GCC_DIAG_STYLE): Define.
3145         * c-tree.h (GCC_DIAG_STYLE): Likewise.
3146         * diagnostic.h (inform): Move prototype to toplev.h.
3147         * jump.c: Include diagnostic.h before toplev.h.
3148         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
3149         (warning, error, fatal_error, pedwarn, sorry, inform,
3150         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
3151
3152 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3153
3154         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
3155         at all if edge is not specified.
3156         (can_copy_bbs_p, copy_bbs): New.
3157         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
3158         * cfgloop.c (get_loop_body): Comment more precisely.
3159         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
3160         (scale_bbs_frequencies): Fix comment typo.
3161         (can_duplicate_loop_p): Use can_copy_bbs_p.
3162         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
3163
3164 2003-07-03  Devang Patel <dpatel@apple.com>
3165
3166         * c-opts.c (c_common_parse_file): Remove extra
3167         debug_hooks->start_source_file call.
3168
3169 2003-07-03  Roger Sayle  <roger@eyesopen.com>
3170
3171         * real.c (real_trunc, real_floor, real_ceil): New functions
3172         to implement trunc, floor and ceil respectively.
3173         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
3174         * builtins.c (integer_valued_real_p): New function to test if
3175         a floating point expression has an integer valued result.
3176         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
3177         foo(x) where foo is an integer rounding function.  Similarly,
3178         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
3179         (double)(int)x when both foo and bar are integer rounding
3180         functions and we don't need to honor errno.
3181         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
3182         New functions to fold trunc, floor and ceil.
3183         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
3184         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
3185         to fold BUILT_IN_CEIL*.
3186         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
3187         the remaining integer rounding functions.
3188
3189 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3190
3191         * config/sparc/sparc.c (function_arg_partial_nregs): Use
3192         SPARC_INT_ARG_MAX to determine where to split unnamed
3193         complex FP arguments.
3194
3195 Thu Jul  3 20:36:47 CEST 2003  Jan Hubicka  <jh@suse.cz>
3196
3197         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
3198         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
3199         (merge_blocks_move_predecessor_nojumps,
3200          merge_blocks_move_successor_nojumps): Use merge_blocks.
3201         (try_optimize_cfg): Use merge_blocks_move.
3202         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
3203         (merge_blocks_nomove): Rename to rtl_merge_blocks.
3204         (cfg_layout_create_basic_block): New.
3205         (rtl_can_merge_blocks): New.
3206         (cfg_layout_split_block): Do not alloc aux by hand.
3207         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
3208         merge_blocks.
3209         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
3210         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
3211         * cfgloopmanip.c (loop_split_edge_with): Likewise.
3212         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
3213
3214         * basic-block.h (basic_block_def): Add field 'rbi'.
3215         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
3216         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
3217         * cfg.c (entry_exit_blocks): Add new field.
3218         * cfglayout.c: Include alloc-pool.h;
3219         (cfg_layout_pool): New.
3220         (record_effective_endpoints, fixup_reorder_chain,
3221         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
3222         of rbi.
3223         (cfg_layout_initialize_rbi): New function.
3224         (cfg_layout_initialize): Use it.
3225         (cfg_layout_finalize): Clear rbi fields.
3226         * cfglayout.h (RBI): Kill.
3227         (cfg_layout_initialize_rbi): Declare.
3228         * cfgloopmanip.c (copy_bbs): Use rbi.
3229         (record_exit_edges): Likewise.
3230         (duplicate_loop_to_header_edge): Likewise.
3231         * cfgrtl.c (cfg_layout_create_basic_block): Use
3232         cfg_layout_initialize_rbi.
3233         (cfg_layout_split_block): Use rbi.
3234         (cfg_layout_delete_block): Likewise.
3235         * loop-init.c (loop_optimizer_finalize): Likewise.
3236         * loop-unswitch.c (unswitch_loop): Likewise.
3237         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
3238
3239         * cfgrtl.c: Update comments.
3240         (try_redirect_by_replacing_jump): New argument.
3241         (redirect_branch_edge): Break out from ...
3242         (rtl_redirect_edge_and_branch): ... this one.
3243         (update_cfg_after_block_merging): Break out from ...
3244         (rtl_merge_blocks): ... this one.
3245         (cfg_layout_split_edge): New.
3246         (cfg_layout_merge_blocks): New.
3247         (cfg_layout_can_merge_blocks_p): New.
3248         (cfg_layout_redirect_edge_and_branch): Reorganize.
3249         (cfg_layout_rtl_cfg_hooks): Fill in.
3250         (cfg_layout_delete_block): Kill barriers.
3251         * cfganal.c (can_fallthru): Deal with exit blocks
3252         * cfglayout.c (cfg_layout_function_header): New function
3253         (record_effective_endpoints): Record function header.
3254         (fixup_reorder_chain): Fixup dead jumptables; place header
3255
3256         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
3257         * bb-reorder.c (cfg_layout_initialize): Update call.
3258         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
3259         edges in cfglayout mode.
3260         * cfglayout.c (cleanup_unconditional_jumps): Kill.
3261         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
3262         * cfglayout.h (cfg_layout_initialize): Update prototype.
3263         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
3264         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
3265         * flow.c (propagate_block): Do not crash when basic block ends
3266         by first insn in the chain.
3267         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
3268         do loop discovery.
3269         * tracer.c (tracer): Update call of cfg_layout_initialize.
3270
3271 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3272
3273         * Makefile.in: Use dependency variables in lieu of explicit
3274         files throughout.
3275
3276 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
3277
3278         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
3279         * tree.h: ...to here.
3280
3281 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
3282
3283         * config/s390/2064.md: Fix comment typos.
3284         * config/s390/2084.md: Likewise.
3285         * config/s390/s390.c: Likewise.
3286         * config/s390/s390.md: Likewise.
3287         * config/sh/sh.c: Likewise.
3288         * config/sh/sh.h: Likewise.
3289         * config/sh/sh.md: Likewise.
3290         * config/sparc/sparc.c: Likewise.
3291         * config/sparc/sparc.h: Likewise.
3292         * config/sparc/sparc.md: Likewise.
3293         * config/stormy16/stormy16.c: Likewise.
3294         * config/stormy16/stormy16.h: Likewise.
3295         * config/stormy16/stormy-abi: Fix a typo.
3296
3297 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
3298
3299         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
3300
3301 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3302
3303         * config/mips/mips.h (save_argv): Delete.
3304
3305 2003-07-03  Roger Sayle  <roger@eyesopen.com>
3306
3307         PR target/10700
3308         * fold-const.c (extract_muldiv_1): There's nothing that can be done
3309         if the expression is a SAVE_EXPR.
3310
3311 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
3312
3313         * config/m32r/m32r.c: Fix comment typos.
3314         * config/m68hc11/m68hc11.c: Likewise.
3315         * config/m68hc11/m68hc11.h: Likewise.
3316         * config/m68k/m68k.c: Likewise.
3317         * config/mcore/mcore.c: Likewise.
3318         * config/mcore/mcore.h: Likewise.
3319         * config/mcore/mcore.md: Likewise.
3320         * config/mips/mips.c: Likewise.
3321         * config/mips/mips.h: Likewise.
3322         * config/mips/mips.md: Likewise.
3323         * config/mips/netbsd.h: Likewise.
3324         * config/mn10300/mn10300.c: Likewise.
3325
3326 2003-07-03  Andreas Schwab  <schwab@suse.de>
3327
3328         * dbxout.c (pending_bincls): Move decl down inside
3329         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
3330
3331 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
3332
3333         * rtl.h (NOTE_DATA): Refer to whole union.
3334         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
3335
3336 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3337
3338         PR optimization/11381
3339         * simplify-rtx.c (simplify_relational_operation): Check that
3340         two equal operands have no side-effects before simplifying
3341         the comparison.
3342
3343 2003-07-02  Jeff Law  <law@redhat.com>
3344
3345         * expr.c (do_store_flag): Remove special case folding for
3346         single bit tests.  Instead call back into the commonized folder
3347         routine.
3348         * fold-const.c (fold_single_bit_test): New function, mostly
3349         extracted from do_store_flag, with an additional case extracted
3350         from fold.
3351         (fold): Call fold_single_bit_test appropriately.
3352         * tree.h (fold_single_bit_test): Prototype.
3353
3354 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
3355
3356         * system.h: Include filenames.h.
3357         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
3358         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
3359         define based on HAVE_DOS_BASED_FILE_SYSTEM.
3360         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
3361         * config/i386/xm-mingw32.h: Don't define
3362         HAVE_DOS_BASED_FILE_SYSTEM,
3363         DIR_SEPARATOR, or DIR_SEPARATOR_2.
3364         * doc/hostconfig.texi: Update to match.
3365
3366         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
3367         config/i386/cygwin.h:
3368         Use IS_ABSOLUTE_PATH throughout.
3369         * gcc.c (DIR_UP): Delete, unused.
3370         * protoize.c (IS_SAME_PATH): Define in terms of
3371         FILENAME_CMP.
3372         (is_abspath): Delete.
3373
3374 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
3375
3376         * config/i386/emmintrin.h: Fix comment typos.
3377         * config/i386/i386.c: Likewise.
3378         * config/i386/i386.h: Likewise.
3379         * config/i386/sco5.h: Likewise.
3380         * config/ia64/ia64.c: Likewise.
3381         * config/ia64/itanium2.md: Likewise.
3382
3383 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
3384
3385         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
3386         DBX_USE_BINCL.
3387         (emit_bincl_stab): Same.
3388         (emit_pending_bincls): Same.
3389
3390 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
3391
3392         * config/h8300/h8300.c (compute_mov_length): Fix the length of
3393         loading CONST0_RTX (SFmode).
3394         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
3395         'G' to CONST0_RTX (SFmode).
3396         * config/h8300/h8300.md (movsf_h8300): Change the first
3397         constraint to 'G'.
3398         (movsf_h8300h): Likewise.
3399
3400 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
3401
3402         * c-common.h (c_common_init_options): New prototype.
3403         * c-opts.c (deferred_size): Remove.
3404         (defer_opt): Array is now pre-allocated.
3405         (c_common_init_options): Pre-allocate deferred_opts.  Make
3406         lang_flags unsigned.
3407         (push_command_line_options): Free deferred_opts.
3408         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
3409         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
3410         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
3411         * langhooks.h (struct lang_hooks): New prototype for init_options.
3412         * main.c (main): Cast argv.
3413         * opts.c (handle_option, handle_options): Update prototypes.
3414         (decode_options): save_argc, save_argv are not global.  Constify.
3415         * opts.h (decode_options): New prototype.
3416         * toplev.c (general_init): New protoype.
3417         (save_argv): Make static.
3418         (save_argc): Remove.
3419         (print_switch_values, general_init): Constify.
3420         (toplev_main): Save argv.
3421         * toplev.h (toplev_main): Update prototype.
3422         (save_argc, save_argv): Remove.
3423
3424 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
3425