OSDN Git Service

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