OSDN Git Service

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