OSDN Git Service

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