OSDN Git Service

2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
2
3         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
4         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
5         (SUBTARGET_CPP_SPEC): Define.
6         (LIB_SPEC): Delete.
7         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
8         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
9         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
10         Define.
11         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
12         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
13
14 2003-04-25  H.J. Lu <hjl@gnu.org>
15
16         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
17         for return mode.
18         (ia64_expand_builtin): Set rmode to SImode for
19         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
20         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
21         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
22         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
23
24 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
25
26         * configure.in (make_compare_target):  Test for GNU cmp and set this
27         variable appropriately.
28         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
29         compare4-lean): Rename actual targets to slowcompare*.  New compare*
30         targets depend on names based on make_compare_target.
31         * configure:  Regenerated.
32
33 2003-04-25  Richard Henderson  <rth@redhat.com>
34
35         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
36         to clobber ar.pfs and ar.unat.
37         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
38         fix test for spilling ar.pfs to the stack.
39
40 2003-04-25  Richard Henderson  <rth@redhat.com>
41
42         PR opt/10315 
43         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
44         checks during reload; use validize_mem instead of adjust_address.
45
46 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
47
48         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
49         return values from recog_memoized().
50
51 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
52
53         PR opt/8705
54         * gcse.c (try_replace_reg): On a successful substitution of a constant
55         into a single set, try to simplify the source of the set.
56         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
57         constant source.
58
59 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
60
61         * cpplex.c (cpp_token_len): Tighten up.
62         (cpp_token_as_text): Need extra byte now.
63         * cpplib.c (glue_header_name): Need extra 2 bytes.
64         * cppmacro.c (cpp_macro_definition): Need extra byte.
65
66 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
67
68         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
69         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets 
70         where they might be not present. Use their _sp64 equivalent
71         instead.
72
73 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
74
75         * i386.md (cvtsi2sdq): Fix typo in previous patch.
76         
77 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
78
79         * configure.in: Check whether mbstowcs works.
80         * configure, config.in: Regenerate.
81         * intl.c: Use HAVE_WORKING_MBSTOWCS.
82
83 2003-04-24  H.J. Lu <hjl@gnu.org>
84
85         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
86         for __sync_bool_compare_and_swap_di for int return type.
87
88         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
89         Change return type to int.
90         (__sync_bool_compare_and_swap): Likewise.
91
92 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
93
94         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
95         looking for fallthru edge.
96
97         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
98         Fix.
99         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
100         athlon-fvector): New.
101         (athlon_*): Revisit to match new optimization guide.
102         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
103         * i386.md (cvt??2?? patterns): Fix modes.
104         (fistp patterns): Set modes.
105
106         Accidentaly commited with my earlier reload patch:
107         PR c/10308
108         * reload.c (find_reloads_address_1): Reload plus at the place of
109         index register.
110         
111 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
112
113         New GCOV_TAG_FUNCTION layout
114         * coverage.c (struct function_list): Replace name with ident.
115         (struct counts_entry): Likewise.
116         (fn_ident): New.
117         (htab_counts_entry_hash, htab_counts_entry_eq,
118         htab_counts_entry_del): Adjust.
119         (reads_count_file, get_coverage_counts,
120         coverage_begin_output, coverage_end_function): Adjust.
121         (build_fn_info_type, build_fn_info_value): Likewise.
122         * gcov-dump.c (tag_function): Adjust.
123         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
124         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
125         * gcov.c (struct function_info): Add ident.
126         (read_graph_file, read_count_file): Adjust.
127         * libgcov.c (gcov_exit): Adjust.
128
129 2003-04-23  Richard Henderson  <rth@redhat.com>
130
131         PR opt/8300
132         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
133         after initialize_uninitialized_subregs; update reg info assuming
134         new pseudos were created.
135
136 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
137
138         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
139         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
140         (lex_string): Take cpp_string with full spelling.
141         (cb_ident): Update.
142         (c_lex): Update diagnostics.
143         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
144         (create_literal): New.
145         (lex_string): Unterminated literals have type CPP_OTHER.
146         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
147         for CPP_OTHER.
148         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
149         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
150         * cpplib.c (parse_include, do_line, do_linemarker,
151         destringize_and_run): Update for token storing full spelling.
152         * cpplib.h: Update token spelling types.
153         * cppmacro.c (stringify_arg, check_trad_stringification):
154         Update for token storing full spelling.
155
156 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
157
158         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
159
160 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
161
162         * arm.h (TARGET_OPTIONS): Add value field.
163
164 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
165
166         * doc/extend.texi: Remove duplicate 2003 copyright date.
167
168 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
169
170         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
171         (libgcov.a): Depends on LIBGCC_DEPS.
172         * basic-block.h (profile_info): Moved here from coverage.h. Made
173         a pointer.
174         * coverage.c (struct function_list): Fixed array of counter types.
175         (struct counts_entry): Keyed by counter type, contains summary.
176         (profile_info): Moved to profile.c.
177         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
178         vars.
179         (profiler_label): Remove.
180         (ctr_labels): New.
181         (set_purpose, label_for_tag, build_counter_section_fields,
182         build_counter_section_value, build_counter_section_data_fields,
183         build_counter_section_data_values, build_function_info_fields,
184         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
185         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
186         build_ctr_info_value, build_gcov_info): New.
187         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
188         (reads_counts_file): Adjust.
189         (get_coverage_counts): Takes counter number. Add summary
190         parameter. Adjust.
191         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
192         create counter array labels.
193         (coverage_end_function): Adjust.
194         (create_coverage): Adjust.
195         (find_counters_section): Remove.
196         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
197         (struct section_info, struct profile_info): Remove.
198         (profile_info): Moved to basic-block.h.
199         (coverage_counter_ref): Takes a counter number.
200         (get_coverage_counts): Takes a counter number. Added summary
201         parameter.
202         (find_counters_section): Remove.
203         * gcov-dump.c (tag_arc_counts): Rename to ...
204         (tag_counters): ... here. Adjust.
205         (tag_table): Move tag_counters to 3rd entry. Remove
206         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
207         (dump_file): Check for counter tag values here.
208         (tag_summary): Adjust.
209         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
210         * gcov-io.h (GCOV_LOCKED): New.
211         (GCOV_TAG_ARC_COUNTS): Rename to ...
212         (GCOV_TAG_COUNTS_BASE): ... here.
213         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
214         Remove.
215         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
216         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
217         GCOV_TAG_IS_COUNTER): New.
218         (struct gcov_ctr_summary): New.
219         (struct gcov_summary): Adjust.
220         (struct gcov_counter_section): Remove.
221         struct gcov_counter_section_data): Remove.
222         (struct gcov_function_info): Rename to ...
223         (struct gcov_fn_info): ... here. Adjust.
224         (struct gcov_ctr_info): New.
225         (struct gcov_info): Adjust.
226         * gcov.c (read_count_file): Adjust.
227         (output_lines): Adjust.
228         * libgcov.c (gcov_exit): Adjust.
229         (__gcov_flush): Adjust.
230         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
231         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
232         probably_never_executed_bb_p, compute_frequency_function): Adjust
233         profile_info use.
234         * profile.c (struct counts_entry): Remove.
235         (profile_info): Define here.
236         (get_exec_counts): Adjust get_coverage_counts call.
237         (compute_branch_probablilities): Remove find_counters_section
238         call.
239         (gen_edge_profiler): Adjust coverage_counter_ref call.
240         * tracer.c (tail_duplicate): Adjust profile_info use.
241
242 2003-04-23  Roger Sayle  <roger@eyesopen.com>
243
244         PR optimization/10339
245         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
246         directly instead of unsafely transforming call into a memcmp.
247         (expand_builtin_strncmp): Likewise.
248
249 2003-04-22  Roger Sayle  <roger@eyesopen.com>
250
251         * alias.c (mark_constant_function):  Check for constancy and
252         purity even of void functions.  Update both the function decl
253         and the cgraph RTL info with the results.
254
255 2003-04-22  Roger Sayle  <roger@eyesopen.com>
256
257         * real.c (do_add): Change to return a bool indicating that the
258         result of the operation may be inexact due to loss of precision.
259         (do_multiply): Likewise.
260         (do_divide): Likewise.
261
262 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
263             Loren James Rittle  <ljrittle@acm.org>
264
265         * dwarf2out.c (fde_table_allocated): Mark with GTY.
266         (decl_die_table_allocated): Likewise.
267         (abbrev_die_table_allocated): Likewise.
268         (line_info_table_allocated): Likewise.
269         (separate_line_info_table_allocated): Likewise.
270         (pubname_table_allocated): Likewise.
271         (arange_table_allocated): Likewise.
272         (ranges_table_allocated): Likewise.
273         (decl_die_table_in_use): Unconditionalize; mark with GTY.
274         (abbrev_die_table_in_use): Likewise.
275         (line_info_table_in_use): Likewise.
276         (separate_line_info_table_in_use): Likewise.
277         (pubname_table_in_use): Likewise.
278         (arange_table_in_use): Likewise.
279         (ranges_table_in_use): Likewise.
280         (have_location_lists): Likewise.
281         (emitcount): New GTY-marked static, moved...
282         (maybe_emit_file): ...from here.
283         (label_num): New GTY-marked static, moved...
284         (gen_internal_sym): ...from here.
285
286 2003-04-22  Richard Henderson  <rth@redhat.com>
287
288         PR 8866
289         * rtl.h (MEM_NOTRAP_P): New.
290         (MEM_COPY_ATTRIBUTES): Copy it.
291         * rtlanal.c (may_trap_p): Check it.
292         * expr.c (do_tablejump): Set it.
293         * doc/rtl.texi (Flags): Document it.
294
295         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
296
297 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
298
299         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
300         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
301
302 2003-04-22  Vincent Celier <celier@gnat.com>
303
304         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
305         --enable-threads=gnat.
306         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
307         * configure.in: Add gnat to the list of thread packages
308         * configure: Rebuild.
309         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
310
311 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
312
313         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
314
315 2003-04-22  Devang Patel  <dpatel@apple.com>
316
317         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
318         parameter count.
319         (_cpp_copy_replacement_text): Same.
320         
321 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
322
323         * c-lex.c (c_lex): Handle CPP_OTHER differently.
324         * cppexp.c (_cpp_parse_expr): Similarly.
325         * cpplex.c (SPELL_CHAR): Remove.
326         (_cpp_lex_direct): Stray chars are saved as byte strings.
327         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
328         handle SPELL_CHAR.
329         (cpp_avoid_paste): Update handling of CPP_OTHER.
330         * cpplib.h: Spell CPP_OTHER like a number.
331         (struct cpp_token): Remove member c.
332         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
333
334 2003-04-22  David Turner <novalis@gnu.org>
335
336         * gbl-ctors.h: Add special license exception.
337         * libgcc2.h: Likewise.
338         * tsystem.h: Likewise.
339         * gcov-io.h: Likewise.
340
341 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
342
343         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
344         macro defaulting to original BRANCH_COST heuristic.
345         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
346
347         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
348
349 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
350
351         * config/rs6000/t-spe: Merge in t-fprules into file.
352
353         * config.gcc: Add t-spe to powerpc-eabispe.
354
355 2003-04-22  Kean Johnston  <jkj@sco.com>
356
357         * tlink.c (recompile_files): Add missing '=' to putenv calls
358
359 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
360
361         * ginclude/stddef.h: Provide C++ safe offsetof.
362
363 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
364
365         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
366         for reg notes, if there are no substitutions, just use a SUBREG.
367
368 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
369
370         * Makefile.in (calls.o): Depend on except.h.
371         * calls.c: Include except.h.
372         (emit_call_1): Call note_eh_region_may_contain_throw if
373         appropriate.
374         * except.c (eh_region): Add may_contain_throw.
375         (expand_eh_region_end_cleanup): Do not include handler code when
376         it cannot be reached.
377         (note_eh_region_may_contain_throw): New function.
378         * except.h (note_eh_region_may_contain_throw): New function.
379
380 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
381
382         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
383         changes.
384
385 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
386
387         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
388         64-bit long doubles.
389
390 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
391
392         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
393         a number of conversions required for type consistency and previously
394         stripped off by STRIP_NOPS.
395
396         * calls.c (expand_call): Prevent sibcall optimization for calls to
397         nested subprograms.
398
399         * expmed.c (extract_bit_field): Reverse operands of && condition to
400         prevent a potential division by zero in the previously first branch.
401         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
402
403 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
404
405         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
406         (subrange_type_die): Likewise.
407         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
408         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
409
410 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
411
412         Break out coverage routines to new file.
413         * Makefile.in (COVERAGE_H): New variable
414         (C_OBJS): Add coverage.o
415         (coverage.o): New target.
416         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
417         dependencies.
418         (GTFILES): Adjust.
419         (gt-coverage.h): New target.
420         (gt-profile.h): Remove.
421         * profile.h: Remove. Move to ...
422         * coverage.h: ... here. New. #include gcov-io.h.
423         * gcov-io.h: Move function definitions to ...
424         * gcov-io.c: ... here. New.
425         * profile.c: Move coverage routines to coverage.c.
426         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
427         end_branch_prob): Adjust.
428         * coverage.c: New. Coverage routines from profile.c
429         (coverage_counter_ref, coverage_init, coverage_finish,
430         coverage_end_function, coverage_begin_output,
431         coverage_counter_ref, get_coverage_counts): Define.
432         * gcov-dump.c, gcov.c: #include gcov-io.c.
433         * libgcov.c: Likewise. Adjust.
434         * loop-init.c: Don't #include profile.h
435         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
436         * rtl.h: Add coverage prototypes.
437         * toplev.c (compile_file): Init coverage, not branch_prob.
438         Always call coverage_finish.
439         (rest_of_compilation): Call coverage_end_function.
440
441 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
442
443         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
444
445 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
446
447         * c-ppoutput.c (cb_include): Don't take a cpp_token.
448         * cppfiles.c: Don't undef strcmp.
449         (find_include_file): Don't take a cpp_token.  Check for empty
450         file names.
451         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
452         (cpp_push_include): Simplify.
453         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
454         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
455         (parse_include): Similary.  Don't check for zero-length filenames.
456         (do_include_common, do_pragma_dependency): Update accordingly.
457         * cpplib.h (struct cpp_callbacks): Change prototype of include.
458
459 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
460         
461         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
462         details of conflict handling.
463         
464         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
465         when conversion overflows.
466
467         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
468
469         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
470         before clearing.
471
472 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
473
474         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
475         have the same form as the old RTL.
476
477 2003-04-21  Andreas Jaeger  <aj@suse.de>
478
479         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
480
481 2003-04-20  Chris Lattner  <sabre@nondot.org>
482             Zack Weinberg  <zack@codesourcery.com>
483
484         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
485         genrtl_cleanup_stmt.  Correct comment at head of
486         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
487
488         * stmt.c (struct nesting): Kill n_function_calls.
489         (expand_start_bindings): Don't set
490         thisblock->data.block.n_function_calls.
491         (expand_end_bindings): Compare function_call_count against 0.
492         (expand_cleanups): Kill DONT_DO argument; all callers passed
493         NULL_TREE. All callers updated to match.
494
495 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
496
497         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
498         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
499         (output_constant_def): Remove code predicated on
500         defer_addressed_constants_flag.
501
502         * output.h: Remove prototypes of deleted functions.
503         * c-typeck.c (constructor_subconstants_deferred): Kill.
504         (struct initializer_stack): Remove 'deferred' field.
505         (start_init): Remove all references to the above.
506         (finish_init): Likewise. Also remove never-executed call to
507         output_deferred_addressed_constants.  Pull assignment to
508         defstr out of if expression.
509
510 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
511
512         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
513         NOTE_NEWLINE): Remove.
514         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
515         to handle new form of line note type.
516
517 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
518
519         * target.h (encode_section_info): Add new argument carrying
520         the RTL to be modified by the hook.
521
522         * varasm.c (make_decl_rtl, output_constant_def): Update calls
523         to encode_section_info.
524         (default_encode_section_info): Take and use RTL argument,
525         don't use TREE_CST_RTL or DECL_RTL.
526         * output.h: Update prototype of default_encode_section_info.
527         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
528         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
529         Update calls to encode_section_info.
530
531         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
532         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
533         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
534         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
535         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
536         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
537         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
538         except for PE dllimport/dllexport.  Update calls to
539         default_encode_section_info.
540
541         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
542         Update prototypes.
543
544         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
545
546 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
547
548         PR/8705
549         * pa.md (movccfp): New expander.
550         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
551         Reverse fcmp conditions.
552
553 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
554
555         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
556         of operand 1 correctly.
557
558 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
559
560         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
561         * gcov.c (output_lines): Don't be so fussy about going past EOF.
562
563 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
564
565         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
566         (cppcharset.o): New target.
567         * c-lex.c (is_extended_char): Move to cppcharset.c.
568         (utf8_extend_token): Delete.
569         * cppcharset.c: New file.
570         * cpphash.h (_cpp_valid_ucn): New.
571         * cpplex.c (lex_identifier): Update prototype.
572         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
573         escapes.
574         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
575         in cppcharset.c.
576         (lex_number, lex_identifier, cpp_parse_escape): Update.
577         (_cpp_lex_direct): Update to handle UCNs.
578         (cpp_avoid_paste): Don't paste to form a UCN.
579
580 2003-04-19  Roger Sayle  <roger@eyesopen.com>
581
582         * builtins.c (expand_builtin):  Don't expand a pure or const
583         built-in function if the result will be ignored and none of
584         its arguments are volatile.
585
586 2003-04-19  Kean Johnston  <jkj@sco.com>
587
588         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
589         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
590         target fragment now: t-sco5; dont compile crti.o.
591         * config/i386/sco5.h: major overhaul to remove all COFF remnants
592         and to use elfos.h for most definitions.
593         (BSS_SECTION_ASM_OP): set correct segment attributes.
594         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
595         (DWARF2_UNWIND_INFO): Always set to 1.
596         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
597         (MD_STARTFILE_PREFIX_1): Define.
598         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
599         (DEFAULT_LINKER): Define if not specified to configure.
600         (CTORS_SECTION_ASM_OP): Remove COFF crud.
601         (DTORS_SECTION_ASM_OP): Remove COFF crud.
602         (WINT_TYPE): Define.
603         (SDB_DEBUGGING_INFO): Remove.
604         (EXTRA_SECTIONS): Likewise.
605         (EXTRA_SECTION_FUNCTIONS): Likewise.
606         (CTOR_LIST_BEGIN): Likewise.
607         (CTOR_LIST_END): Likewise.
608         (INIT_SECTION_FUNCTION): Likewise.
609         (FINI_SECTION_FUNCTION): Likewise.
610         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
611         (LOCAL_LABEL_PREFIX): Likewise.
612         (NON_SAVING_SETJMP): Likewise.
613         (RETURN_POPS_ARGS): Likewise.
614         (ASM_OUTPUT_SKIP): Likewise.
615         (TARGET_ASM_NAMED_SECTION): Likewise.
616         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
617         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
618         (ASM_OUTPUT_IDENT): Likewise.
619         (ASM_OUTPUT_CASE_LABEL): Likewise.
620         (ASM_OUTPUT_ASCII): Likewise.
621         (ASM_OUTPUT_LIMITED_STRING): Likewise.
622         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
623         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
624         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
625         (ASM_FINISH_DECLARE_OBJECT): Likewise.
626         (ASM_DECLARE_OBJECT_NAME): Likewise.
627         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
628         (ASM_DECLARE_FUNCTION_NAME): Likewise.
629         (ASM_DECLARE_RESULT): Likewise.
630         (ASM_WEAKEN_LABEL): Likewise.
631         (SUPPORTS_WEAK): Likewise.
632         (APPLY_RESULT_SIZE): Likewise.
633         (LPREFIX): Likewise.
634         (ALIGN_ASM_OP): Likewise.
635         (ASCII_DATA_ASM_OP): Likewise.
636         (IDENT_ASM_OP): Likewise.
637         (ASM_SHORT): Likewise.
638         (ASM_LONG): Likewise.
639         (TYPE_ASM_OP): Likewise.
640         (SIZE_ASM_OP): Likewise.
641         (STRING_ASM_OP): Likewise.
642         (SKIP_ASM_OP): Likewise.
643         (EH_FRAME_SECTION_ASM_OP): Likewise.
644         (READONLY_DATA_SECTION_ASM_OP): Likewise.
645         (INIT_SECTION_ASM_OP): Likewise.
646         (FINI_SECTION_ASM_OP): Likewise.
647         (TEXT_SECTION_ASM_OP): Likewise.
648         (DATA_SECTION_ASM_OP): Likewise.
649         (TYPE_OPERANT_FORMAT): Likewise.
650         (ASM_SPEC): Remove COFF code.
651         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
652         cause -pg to emit an error; use pcrt1elf.o with -pp
653         (ENDFILE_SPEC): Likewise.
654         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
655         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
656         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
657         add -z alt_resolve to support weak symbols the way GCC wants them.
658         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
659         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
660         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
661         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
662         (CRTSTUFF_T_CFLAGS_S): Define.
663         (MULTILIB_OPTIONS): Likewise.
664         (MULTILIB_DIRNAMES): Likewise.
665         (MULTILIB_MATCHES): Likewise.
666         (MULTILIB_EXTRA_OPTS): Likewise.
667         (LIBGCC): Likewise.
668         (INSTALL_LIBGCC): Likewise.
669         (crti.o): Remove.
670         * config/i386/t-sco5gas: Remove.
671         * doc/install.texi: Updated for new OpenServer instructions.
672         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
673
674 2003-04-19  Kean Johnston  <jkj@sco.com>
675
676         * fixinc/check.tpl: Allow user to over-ride diff program.
677         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
678         (sco_math): Added test for SCO math header files.
679         (sco_regset): Added check for conflicts with ieeefp.h.
680         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
681         * fixinc/fixincl.x: Regenerated
682         * fixinc/tests/base/math.h: Added sco_math tests.
683         * fixinc/tests/base/string.h: New file.
684         * fixinc/tests/base/sys/regset.h: New file.
685
686 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
687
688         * cpphash.h (struct cpp_buffer): Remove backup_to.
689         * cpplex.c (BACKUP, get_effective_char): Die.
690         (_cpp_skip_block_comment): Assume '*' is location on entry.
691         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
692         (IF_NEXT_IS): Update.
693         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
694
695 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
696
697         * README.Portability: Move to a new section and obsolete K+R
698         portability issues.
699
700 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
701
702         * rtlanal.c (subreg_offset_representable_p):  Fix call of
703         subreg_lowpart.
704
705 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
706
707         * cpphash.h (struct cpp_reader): New member warned_dollar.
708         * cpplex.c (continues_identifier_p): New function.
709         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
710         lex_number and lex_string, and simplify.
711         (parse_slow, unescaped_terminator_p): Die.
712         (_cpp_lex_direct): Update.
713
714 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
715
716         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
717
718 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
719
720         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
721         fork behaviour.
722
723 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
724
725         * cppexp.c (eval_token): Permit true and false even if pedantic.
726
727 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
728
729         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
730
731 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
732
733         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
734         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
735         (struct include_file): Remove fefcnt, mapped members.
736         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
737         (read_include_file): Don't use mmap, terminate buffers in '\r'.
738         (purge_cache): Don't use munmap.
739         * cpphash.h (CPP_BUF_COLUMN): Update.
740         (lexer_state): Remove lexing_comment.
741         (struct _cpp_line_note): New.
742         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
743         next_line and need_line.  Remove col_adjust and saved_flags.
744         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
745         _cpp_skip_block_comment, scan_out_logical_line): New.
746         (_cpp_init_mbchar): Remove.
747         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
748         (cpp_read_main_file): Set line to 1 earlier.
749         (post_options): -traditional-cpp doesn't want trigraphs.
750         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
751         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
752         _cpp_get_fresh_line): New.
753         (handle_newline, skip_escaped_newlines, trigraph_p,
754         continue_after_nul, _cpp_init_mbchar): Remove.
755         (get_effective_char): Update.
756         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
757         (skip_line_comment): Simplify.
758         (skip_whitespace, parse_identifier, parse_slow, parse_number,
759         parse_string): Update.
760         (cpp_lex_direct): Use clean lines and process line notes.  Update.
761         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
762         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
763         directly.
764         (_cpp_handle_directive): Don't set saved_flags.
765         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
766         cpp_undef, handle_assertion, cpp_push_buffer): Update.
767         (_cpp_pop_buffer): Free notes.
768         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
769         * cpppch.c (cpp_read_state): \n terminate buffer.
770         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
771         (copy_comment): Use _cpp_skip_block_comment.
772         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
773         Simplify.
774         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
775         save_replacement_text): Update.
776         (scan_out_logical_line): Update to use clean lines and process
777         line notes.
778         * fix-header.c (read_scan_file): Update.
779
780 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
781
782         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
783         null begin parameter (as well as pointer to null).
784         (__deregister_frame_info_bases): Likewise.
785
786 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
787
788         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
789         hard or virtual register and copy into pseudo if replacement fails.
790
791         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
792
793         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
794
795 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
796
797         * calls.c (expand_call): Move special case for constructor calls
798         to right place. Ensures constructor calls used to initialize
799         arguments get a clean outgoing argument block for themselves.
800         Move check for stack deallocation completeness until after last
801         deallocation.  Add stack_pointer_delta to set of state
802         variables saved and restored along with current stack_level.
803
804         * integrate.c (expand_inline_function): Ensure non-const actuals
805         don't end up const in the caller's flow after conversion to possibly
806         const formal type.
807
808 2003-04-18  Vincent Celier  <celier@gnat.com>
809
810         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
811         and *_DIV_EXPR as TRUNC_*_EXPR.
812
813 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
814
815         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
816         for orphaned jump tables.
817
818 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
819
820         * reload1.c: Revert my previous patch on 2002-04-17.
821
822 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
823
824         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
825         Add Segher Boessenkool.
826
827 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
828
829         PR c/9177
830         * c-decl.c (c_expand_body): Don't garbage collect the function
831         body if we are going to dump it later.
832
833 2003-04-18  Richard Henderson  <rth@redhat.com>
834
835         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
836         (alpha_end_function): Don't set them.
837         (decl_in_text_section): Remove.
838         (alpha_encode_section_info): Remove.
839         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
840         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
841         sections, rather than decl_in_text_section results.
842
843 2003-04-18  Roger Sayle  <roger@eyesopen.com>
844
845         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
846         and SIGN_EXTRACT.
847
848 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
849
850         PR optimization/7675
851         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
852         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
853         nested functions if they refer to declarations from parent functions.
854         * stmt.c (expand_decl): Don't put automatic variables in registers
855         if the DECL_NONLOCAL flag is set.
856
857 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
858
859         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
860         consider those to be movable where the source matches
861         want_to_gcse_p.
862         (update_ld_motion_stores): In comment, refer to
863         compute_ld_motion_mems for validity of replacement.
864
865 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
866
867         * gcov-dump.c (tag_summary): Remove max_sum
868         * gcov-io.h (gcov_summary, gcov_write_summary,
869         gcov_read_summary): Kill max_sum.
870         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
871         message more verbose.
872
873         * emit-rtl.c (subreg_hard_regno):  Check that register is
874         representable.
875         
876         * reload.c (reload_inner_reg_of_subreg):  When register is not
877         representable, reload the whole thing.
878         (find_reloads): Likewsie.
879         * rtlanal.c (subreg_representable_p):  New function.
880
881         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
882         allow negative probabilities for edges from the call to exit.
883         (branch_prob): Do not add fake edges for functions that may return
884         twice.
885
886 2003-04-17  DJ Delorie  <dj@redhat.com>
887
888         * toplev.c (target_options): Add value field.
889         (set_target_switch): Handle target options with values.
890         * doc/tm.texi: Document how fixed vs variable target
891         options work.
892         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
893         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
894         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
895         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
896         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
897         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
898         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
899         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
900         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
901         Add value initializer to target options.
902
903 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
904
905         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
906
907 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
908
909         * reload1.c (move2add_last_cc0): New.
910         (reload_cse_move2add): Detect implicit sets.
911         (move2add_note_store): Notice a store into cc0.
912
913 2003-04-17  Roger Sayle  <roger@eyesopen.com>
914
915         PR c/10375
916         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
917         function attributes.
918
919 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
920
921         * doc/sourcebuild.texi (Test Suites): Document support for testing
922         binary compatibility (moved from testsuite/README.compat).
923
924 2003-04-17  Richard Henderson  <rth@redhat.com>
925
926         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
927
928 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
929
930         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
931         the one provided by the FSF.
932
933 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
934
935         * doc/install.texi (Binaries): Update URL and list of platforms
936         provided by ftp.thewrittenword.com.
937
938 2003-04-17  Richard Henderson  <rth@redhat.com>
939
940         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
941         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
942         * config/xtensa/xtensa.md (call, call_value): Likewise.
943
944 2003-04-17  Richard Henderson  <rth@redhat.com>
945
946         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
947         (print_operand_address): Likewise.
948         (ep_memory_operand): Likewise.
949         (special_symbolref_operand): Likewise.
950         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
951         (v850_encode_section_info): Call default_encode_section_info.
952         (v850_strip_name_encoding): Remove.
953         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
954         (ASM_OUTPUT_LABELREF): Remove.
955         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
956         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
957         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
958         (ENCODED_NAME_P): Remove.
959         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
960         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
961         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
962
963 2003-04-17  Richard Henderson  <rth@redhat.com>
964
965         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
966         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
967         SYMBOL_REF_FUNCTION_P.
968
969 2003-04-17  Richard Henderson  <rth@redhat.com>
970
971         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
972         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
973         (text_segment_operand): Likewise.
974
975 2003-04-17  Richard Henderson  <rth@redhat.com>
976
977         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
978         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
979         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
980         (sh_encode_section_info): Remove.
981         (sh_strip_name_encoding): Remove.
982         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
983         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
984         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
985         (ASM_OUTPUT_LABELREF): Remove.
986         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
987         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
988
989 2003-04-17  Richard Henderson  <rth@redhat.com>
990
991         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
992         (tls_model_chars): Remove.
993         (larl_operand): Use SYMBOL_REF_FLAGS.
994         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
995         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
996         (s390_output_mi_thunk): Likewise.
997         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
998         (s390_function_profiler): Likewise.
999         (s390_encode_section_info): Use default_encode_section_info
1000         and SYMBOL_FLAG_ALIGN1.
1001         (s390_strip_name_encoding): Remove.
1002         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
1003         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
1004         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
1005
1006 2003-04-17  Richard Henderson  <rth@redhat.com>
1007
1008         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
1009         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
1010         (print_operand_address): Likewise.
1011
1012         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
1013         * config/ns32k/ns32k.c (expand_block_move): Don't check
1014         flag_unroll_loops.
1015
1016 2003-04-17  Richard Henderson  <rth@redhat.com>
1017
1018         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
1019         SYMBOL_REF_FLAG.
1020
1021 2003-04-17  Richard Henderson  <rth@redhat.com>
1022
1023         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
1024
1025         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
1026         (SYMBOL_REF_MODEL): New.
1027         (LIT_NAME_P): Move from m32r.h.
1028         (m32r_select_section): Remove.
1029         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
1030         (m32r_strip_name_encoding): Remove.
1031         (m32r_in_small_data_p): New.
1032         (small_data_operand): Use SYMBOL_REF_SMALL_P.
1033         (addr24_operand): Use SYMBOL_REF_MODEL.
1034         (call26_operand): Likewise.
1035         (addr32_operand): Tidy.
1036         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
1037         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
1038         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
1039         (READONLY_DATA_SECTION_ASM_OP): Remove.
1040         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
1041         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
1042         (TARGET_ASM_SELECT_SECTION): Remove.
1043         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
1044         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
1045         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
1046         (ASM_OUTPUT_LABELREF): Remove.
1047
1048 2003-04-17  Richard Henderson  <rth@redhat.com>
1049
1050         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
1051         (encode_section_info): Remove.
1052         * config/ip2k/ip2k-protos.h: Update.
1053
1054 2003-04-17  Richard Henderson  <rth@redhat.com>
1055
1056         * varasm.c (default_encode_section_info): Don't set
1057         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
1058         * config/i370/i370.c (i370_encode_section_info): Remove.
1059         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
1060         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
1061         * config/i370/i370.md (movsi): Likewise.
1062
1063         * config/i370/t-i370: Add missing backslash.
1064
1065 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
1066
1067         * doc/invoke.texi (inline-limit): Fix pasto.
1068
1069 2003-04-17  Richard Henderson  <rth@redhat.com>
1070
1071         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
1072         (small_call_insn_operand): Use it.
1073         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
1074         (h8300_eightbit_constant_address_p): Use it.
1075         (SYMBOL_FLAG_TINY_DATA): New.
1076         (h8300_tiny_constant_address_p): Use it.
1077         (h8300_encode_label, h8300_strip_name_encoding): Remove.
1078         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
1079         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
1080         (ASM_OUTPUT_LABELREF): Remove.
1081
1082 2003-04-16  Richard Henderson  <rth@redhat.com>
1083
1084         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
1085         all users with SYMBOL_REF_SMALL_P.
1086         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
1087         (frv_encode_section_info): Remove.
1088         (frv_strip_name_encoding): Remove.
1089         (frv_in_small_data_p): Merge tests from encode_section_info.
1090         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
1091         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
1092         (SDATA_NAME_P): Remove.
1093         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
1094         (ASM_OUTPUT_LABELREF): Remove.
1095         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
1096
1097         * config/frv/frv.c (frv_asm_out_constructor): New.
1098         (frv_asm_out_destructor): New.
1099         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
1100         (DTORS_SECTION_ASM_OP): New.
1101         (ASM_OUTPUT_CONSTRUCTOR): Remove.
1102         (ASM_OUTPUT_DESTRUCTOR): Remove.
1103
1104 2003-04-16  Richard Henderson  <rth@redhat.com>
1105
1106         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
1107         SYMBOL_REF_LOCAL_P; abort if not pic.
1108         (cris_encode_section_info): Remove.
1109
1110 2003-04-16  Richard Henderson  <rth@redhat.com>
1111
1112         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
1113         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
1114
1115         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
1116         flag_inline_trees.
1117
1118 2003-04-16  Richard Henderson  <rth@redhat.com>
1119
1120         * config/avr/avr.c (avr_encode_section_info): Remove.
1121         (avr_insert_attributes): New.
1122         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
1123         (avr_assemble_integer): Likewise.
1124
1125 2003-04-16  Richard Henderson  <rth@redhat.com>
1126
1127         * arc.c (arc_encode_section_info): Remove.
1128         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
1129         (arc_print_operand, arc_print_operand_address): Likewise.
1130         * arc.h (EXTRA_CONSTRAINT): Likewise.
1131
1132 2003-04-16  Roger Sayle  <roger@eyesopen.com>
1133
1134         * c-semantics.c (find_reachable_label): New function to find a
1135         potentially reachable label in an expression.
1136         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
1137         assumes the start of the IF_STMT is unreachable (dead) code.
1138         (expand_unreachable_stmt): Similar to expand_stmt but assumes
1139         the start of the statement list is unreachable (dead) code.
1140         (genrtl_if_stmt):  If the controlling expression of the IF
1141         is constant, use expand_unreachable_stmt for the THEN or ELSE
1142         clause as appropriate.
1143         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
1144         the body of a SWITCH statement.
1145         (expand_stmt): The code immediately following a "return",
1146         "break", "continue" or "goto" is unreachable.
1147         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
1148
1149 2003-04-16  Richard Henderson  <rth@redhat.com>
1150
1151         * rtl.h (MEM_ALIAS_SET): Update documentation.
1152         * doc/rtl.texi (Special Accessors): New node.
1153         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
1154
1155 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
1156
1157         * reload1.c (reload_cse_noop_set_p): Return false if mode of
1158         SET_DEST is not the same as that returned by...
1159         * cselib.h (cselib_reg_set_mode): ... new function.
1160         * cselib.c (cselib_reg_set_mode): Define it.
1161         (REG_VALUES): Document semantics of first element as set mode.
1162         (cselib_subst_to_values): Skip first element if ELT is NULL.
1163         (cselib_lookup): Likewise.  Insert past the first element.
1164         (cselib_invalidate_regno): NULLify first element.
1165         (cselib_record_set): Set first element.
1166
1167 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
1168
1169         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
1170         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
1171         * tree.h: Add prototypes for the two new functions.
1172         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
1173         updates introduced in the previous revision by call to saved_expr_p.
1174         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
1175
1176         * expr.c (store_field): Force usage of bitfield instructions when
1177         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
1178         (expand_expr, case BIT_FIELD_REF): likewise.
1179
1180 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
1181
1182         PR middle-end/8866
1183         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
1184         jumptables.
1185
1186 2003-04-16  Richard Henderson  <rth@redhat.com>
1187
1188         * config/ia64/ia64.c (sdata_symbolic_operand): Use
1189         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
1190         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
1191         (function_operand): Use SYMBOL_REF_FUNCTION_P.
1192         (ia64_expand_load_address): Likewise.
1193         (ia64_assemble_integer): Likewise.
1194         (ia64_encode_section_info): Remove.
1195         (ia64_strip_name_encoding): Remove.
1196         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
1197         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
1198
1199 2003-04-16  Richard Henderson  <rth@redhat.com>
1200
1201         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
1202         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
1203         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
1204         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
1205         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
1206         (global_symbolic_operand): Similarly.
1207         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
1208         (tls_symbolic_operand_type): Likewise.
1209         (alpha_encode_section_info): Use default_encode_section_info.
1210         (alpha_strip_name_encoding): Remove.
1211         (get_tls_get_addr): Split out from ...
1212         (alpha_legitimize_address): ... here.
1213         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
1214         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
1215         (alpha_initialize_trampoline): Use init_one_libfunc.
1216         (alpha_setup_incoming_varargs): Mark unused parameters.
1217         (alpha_initial_elimination_offset): Likewise.
1218         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
1219         (unicosmk_unique_section): Use default_strip_name_encoding.
1220         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
1221
1222 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
1223
1224         * config.gcc: Add t-spe for eabispe.
1225
1226         * config/rs6000/t-spe: New.
1227
1228 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
1229
1230         Re-apply this patch:
1231
1232         2002-05-16  Dale Johannesen  <dalej@apple.com>
1233           * combine.c (cant_combine_insn_p):  Reenable combinations
1234           involving hard regs unless CLASS_LIKELY_SPILLED_P.
1235
1236 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1237
1238         PR/10271
1239         * pa-protos.h (function_arg): Remove last argument.
1240         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
1241         * pa.h (struct hppa_args): Add member incoming.
1242         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
1243         member incoming.
1244         (FUNCTION_ARG): Revise call to function_arg.
1245         (FUNCTION_INCOMING_ARG): Delete.
1246
1247 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
1248
1249         * configure.in: Unify the code which creates symlinks to a
1250         just-built as, ld, objdump, and nm with the code that detects
1251         their presence for purposes of feature tests.
1252         * configure: Regenerate.
1253
1254 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
1255
1256         * varasm.c (output_constant_def): Do not consult
1257         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
1258         (after_function_constants, output_after_function_constants): Delete.
1259         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
1260         * config/mips/mips-protos.h, config/mips/mips.c
1261         (mips16_constant_after_function_p): Delete.
1262         * config/mips/mips.h: Delete #if-0-ed definition of
1263         CONSTANT_AFTER_FUNCTION_P.
1264         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
1265         mention of CONSTANT_AFTER_FUNCTION_P in comment.
1266
1267 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
1268
1269         * tree.c (next_decl_uid): Mark with GTY.
1270         (next_type_uid): Likewise.
1271
1272 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
1273
1274         PR target/9594:
1275         * sh.c (barrier_align): Also recognize stuff_delay_slot as
1276         an indicator that a barrier was created by branch splitting.
1277
1278 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
1279
1280         * c-decl.c (implicitly_declare): Copy declarations that are going
1281         to be placed in a local scope.
1282
1283 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
1284
1285         * invoke.texi (Spec Files): Wrap if-exists-else example.
1286         (MCore): Remove duplicate @itemx entries and @opindex entries.
1287
1288 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
1289
1290         * unwind.inc (_Unwind_Backtrace): New function.
1291         * unwind.h (_Unwind_Backtrace): Declare it.
1292         * libgcc-std.ver (_Unwind_Backtrace): Export it.
1293
1294 2003-04-14  Jason Merrill  <jason@redhat.com>
1295
1296         PR middle-end/10336, c++/10401
1297         * jump.c (never_reached_warning): Also stop looking if we reach the
1298         beginning of the function.
1299
1300 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1301
1302         PR target/10338
1303         PR bootstrap/10198
1304         PR bootstrap/10140
1305         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
1306
1307 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
1308
1309         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
1310
1311 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1312
1313         * optabs.c (expand_binop): In multi-word add cases, ensure
1314         XTARGET is copied to TARGET if they are different.
1315
1316 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
1317
1318         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
1319         to region, possible after integration of function with unreachable
1320         regions that were optimized away.
1321
1322 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
1323
1324         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
1325         instead of TOC_REGISTER in epilogue in
1326         current_function_calls_eh_return functions.
1327
1328 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
1329
1330         * doc/extend.texi (Empty Structures): Correct description of G++'s
1331         handling of these structures.
1332
1333         * c-decl.c (grokdeclarator): Reject extern redeclarations of
1334         static variables.
1335
1336 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
1337
1338         * config/rs6000/rs6000.md (define_constants): Define constants for
1339         all UNSPEC usage, including new values for TLS support.
1340         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
1341         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
1342         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
1343         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
1344         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
1345         eh_set_lr_di): Use them.
1346         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
1347         rs6000_emit_epilogue) Use them.
1348
1349         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
1350
1351 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
1352
1353         * Makefile.in (c-opts.o): Use custom action.
1354
1355 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
1356
1357         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
1358
1359 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1360
1361         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
1362         handle "superflat arrays" in Ada.
1363
1364         * integrate.c (expand_inline_function): Don't inline if would
1365         lose /u on a BLKmode TARGET.
1366
1367 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
1368
1369         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
1370         extracted from dbxout_type.
1371         (dbxout_range_type): print large bounds in octal format.
1372         (dbxout_type): Replace extracted code by call to
1373         print_int_cst_bounds_in_octal_p.
1374
1375         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
1376         of DW_LANG_Ada83 for Ada units.
1377
1378 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
1379
1380         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
1381         temporary used to round CONST_INT sizes.
1382
1383         * tree.c (int_fits_type_p): Extract generic checks from the case
1384         of constant type bounds. Refine the checks against constant type
1385         bounds to allow for possible decisions against each of these bounds
1386         without requiring both bounds to be constant.
1387         (tree_int_cst_msb): Put back.
1388         * tree.h (tree_int_cst_msb): Likewise.
1389
1390         * global.c (global_conflicts): Prevent allocation of call clobbered
1391         hard regs to pseudos live across abnormal edges, as later passes are
1392         not ready to handle them.
1393
1394         * fold-const.c (fold): Reorder tests for conditional expressions.
1395
1396         * expr.c (highest_pow2_factor): Return unsigned.
1397         * expr.h (offset_address): Likewise.
1398         * emit-rtl.c (offset_address): POW2 argument now unsigned.
1399
1400 2003-04-14  Roger Sayle  <roger@eyesopen.com>
1401
1402         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
1403         string literals at compile-time.
1404
1405 2003-04-14  Roger Sayle  <roger@eyesopen.com>
1406
1407         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
1408         comparison operation and c1/c2 are floating point constants into
1409         x swap(cmp) (c1 - c2).
1410
1411 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
1412
1413         * genautomata.c (output_translate_vect): Fix a typo in loop
1414         condition.
1415
1416 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
1417
1418         PR target/10377
1419         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
1420         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
1421         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
1422         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
1423         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
1424         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
1425         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
1426         ("*extopqihi_swap_side", "*extopqisi_swap_side")
1427         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
1428         When next to constraint R, replace constraint i with n.
1429
1430 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
1431
1432         PR opt/10024
1433         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
1434
1435 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
1436
1437         * doc/contrib.texi (Contributors): Correct my entry.
1438
1439 2003-04-13  Roger Sayle  <roger@eyesopen.com>
1440
1441         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
1442         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
1443         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
1444         implies DECL_BUILT_IN to simplify logic.
1445         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
1446
1447 2003-04-13  Roger Sayle  <roger@eyesopen.com>
1448
1449         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
1450         (BT_FN_PTR_SIZE_SIZE): Likewise.
1451         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
1452         New built-in functions for malloc, calloc and strdup respectively.
1453         * calls.c (special_function_p): No need to handle malloc-like
1454         functions any longer.  ECF_MALLOC is set via built-in attributes.
1455
1456         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
1457
1458         * doc/extend.texi: Document these new built-in functions.
1459
1460 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1461
1462         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
1463         (expand_builtin_stpcpy): New.
1464         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
1465         * builtins.def: Add mempcpy & stpcpy support.
1466         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
1467
1468 2003-04-13  Nick Clifton  <nickc@redhat.com>
1469
1470         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
1471         "GCC".
1472         * config/rs6000/40x.md, config/rs6000/603.md,
1473         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
1474         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
1475         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
1476         config/rs6000/aix43.h, config/rs6000/aix51.h,
1477         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
1478         config/rs6000/altivec.h, config/rs6000/altivec.md,
1479         config/rs6000/beos.h, config/rs6000/darwin.h,
1480         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
1481         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
1482         config/rs6000/freebsd.h, config/rs6000/gnu.h,
1483         config/rs6000/host-darwin.c, config/rs6000/linux.h,
1484         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
1485         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
1486         config/rs6000/netbsd.h, config/rs6000/power4.md,
1487         config/rs6000/rios1.md, config/rs6000/rios2.md,
1488         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
1489         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
1490         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
1491         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
1492         config/rs6000/spe.md, config/rs6000/sysv4.h,
1493         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
1494         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
1495
1496 2003-04-13  Nick Clifton  <nickc@redhat.com>
1497
1498         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
1499         support for -mcall-aix switch.
1500         * config/rs6000/eabiaix.h: Delete.
1501         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
1502         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
1503         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
1504         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
1505         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
1506         debug_stack_info, output_function_profiler,
1507         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
1508         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
1509         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
1510         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
1511         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
1512         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
1513         multilibs.
1514         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
1515         (MULTILIB_EXCEPTIONS): Delete.
1516         (MULTILIB_MATCHES): Remove mcall-aix matches.
1517
1518         * doc/fragments.texi: Replace -mcall-aix example with an ARM
1519         one.
1520         * doc/install.texi: Delete powerpc-*-eabiaix target.
1521         * doc/invoke.texi: Remove documentation of mcall-aix switch.
1522         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
1523         * config.gcc: Delete powerpc-*-eabiaix target.
1524
1525 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
1526
1527         * doc/invoke.texi: Fix typos.
1528         * doc/tm.texi: Likewise.
1529
1530 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
1531
1532         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
1533
1534 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
1535
1536         * tree.c (build_constructor): New function.
1537         * tree.h: Prototype it.
1538
1539         * c-typeck.c (build_c_cast, pop_init_level)
1540         * profile.c (build_function_info_value, build_gcov_info_value)
1541         (create_profiler):
1542         Use build_constructor.
1543
1544         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
1545
1546         * objc/objc-act.c (build_constructor):
1547         Rename objc_build_constructor. Use build_constructor.
1548         (build_objc_string_object, objc_add_static_instance)
1549         (init_def_list, init_objc_symtab, init_module_descriptor)
1550         (generate_static_references, build_selector_translation_table)
1551         (build_descriptor_table_initializer, generate_descriptor_table)
1552         (build_protocol_initializer, build_ivar_list_initializer)
1553         (generate_ivars_list, build_dispatch_table_initializer)
1554         (generate_dispatch_table, generate_protocol_list)
1555         (build_category_initializer, build_shared_structure_initializer):
1556         Update to match.
1557
1558 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
1559
1560         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
1561
1562 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
1563
1564         * config/m68hc11/m68hc11-protos.h
1565         (m68hc11_eq_compare_operator): Declare
1566         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
1567         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
1568         (d_register_operand): Check the operand mode.
1569         (hard_addr_reg_operand): Likewise.
1570
1571 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
1572
1573         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
1574         pattern for dbcc/ibcc generation for 68HC12.
1575         ("doloop_end"): New pattern.
1576         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
1577         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
1578         ("m68hc12_dbcc_dec_qi"): New pattern.
1579         ("m68hc12_dbcc_inc_qi"): New pattern.
1580         (split): Add split for the above when we can't use dbcc/ibcc due to
1581         reloading.
1582         (peephole2): Add peephole2 to generate the above when possible.
1583
1584 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
1585
1586         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
1587         mode of operand 0.
1588         (peephole2 optimize const load): Likewise for operand 2.
1589         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
1590         clobbers CC_REGNUM.
1591         ("*rotrhi3_with_carry"): Likewise.
1592         (ashift:DI 1 split): Update pattern to create the above rotate.
1593         (lshiftrt:DI 1 split): Likewise.
1594
1595 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
1596
1597         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
1598         ("tstqi_z_used" split): Use it.
1599         ("cmphi_z_used"): Likewise.
1600         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
1601         ("cmpqi_z_used"): Likewise.
1602
1603 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
1604
1605         PR c++/7910
1606         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
1607
1608 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
1609
1610         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
1611         * configure, config.in: Regenerate.
1612         * intl.c (gcc_gettext_width): New function.
1613         * intl.h: Prototype it.
1614
1615 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
1616
1617         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
1618         recognize -mnorelax.
1619         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
1620         (REG_CLASS_NAMES): Add its name.
1621         (REG_CLASS_CONTENTS): Define its content.
1622
1623 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
1624
1625         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
1626         parameters so that offsets are valid for far definition.
1627         (__mulsi3): Likewise and use ret to return.
1628         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
1629
1630 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
1631
1632         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
1633
1634 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
1635
1636         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
1637         containing a libgcc.a, move lib* to the corresponding stage dir.
1638
1639         * Makefile.in (stage1-start, stage2-start, stage3-start,
1640         stage4-start): Move $(SPECS) to specs in stage dir.
1641         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
1642         back as $(SPECS).
1643
1644         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
1645         object files from the non-libgcc/ multilib directories as well.
1646
1647 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
1648
1649         * profile.c (read_counts_file): Initialise 'checksum'.
1650
1651         * emit-rtl.c (gen_rtx): Really correct typo.
1652
1653         PR c++/9393
1654         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
1655         * configure.in: Check for gettimeofday.
1656         * tree.c (flag_random_seed): Define.
1657         (default_flag_random_seed): New.
1658         (append_random_chars): Use flag_random_seed rather than trying
1659         to acquire randomness here.
1660         * tree.h (default_flag_random_seed): Declare.
1661         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
1662         descriptions.
1663         (decode_f_option): Handle -frandom-seed.
1664         (print_switch_values): Call default_flag_random_seed.
1665         * flags.h (flag_random_seed): Declare.
1666         * configure: Regenerate.
1667         * config.in: Regenerate.
1668         * config/alpha/t-crtfm: Use -frandom-seed.
1669
1670         * doc/extend.texi (Empty Structures): New.
1671
1672         * c-pch.c: Include flags.h.  Add comments to routines.
1673         (struct c_pch_validity): New.
1674         (get_ident): Update PCH file version number.
1675         (pch_init): Output current debugging type.
1676         (c_common_valid_pch): Check debugging type.
1677         * Makefile.in (c-pch.o): Update dependencies.
1678         * flags.h (debug_type_names): Declare.
1679         * toplev.c (debug_type_names): Move out of decode_g_option.
1680
1681 2003-04-11  Eric Christopher  <echristo@redhat.com>
1682
1683         * emit-rtl.c (gen_rtx): Fix typos.
1684
1685 2003-04-11  Richard Henderson  <rth@redhat.com>
1686
1687         * emit-rtl.c (gen_rtx): Zero '0' fields.
1688
1689 2003-04-11  Richard Henderson  <rth@redhat.com>
1690
1691         PR c++/10202
1692         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
1693         not COMPLETE_TYPE_P for re-invoking layout_decl.
1694
1695 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
1696
1697         * doc/bugreport.texi: Fix paragraph breaking between sections
1698         in preparation for TeXinfo's paragraph indentation fixes.
1699         * doc/extend.texi: Ditto.
1700         * doc/invoke.texi: Ditto.
1701         * doc/objc.texi: Ditto.
1702         * doc/gcov.texi: Wrap 'gcov' in @command{}.
1703         * doc/invoke.texi (Darwin Options): Add a preamble.
1704
1705 2003-04-11  Richard Henderson  <rth@redhat.com>
1706
1707         * config/i386/i386.c (tls_model_chars): Remove.
1708         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
1709         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
1710         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
1711         (tls_symbolic_operand_1): Likewise.
1712         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
1713         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
1714         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
1715         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
1716         bits "copied from i386.h" with default_encode_section_info.
1717
1718 2003-04-11  Richard Henderson  <rth@redhat.com>
1719
1720         * rtl.def (SYMBOL_REF): Add two 0 fields.
1721         * gengtype.c (adjust_field_rtx_def): Handle them.
1722         * print-rtl.c (print_rtx): Print them.
1723         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
1724         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
1725         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
1726         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
1727         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
1728         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
1729         (SYMBOL_FLAG_MACH_DEP): New.
1730         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
1731         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
1732         (assemble_static_space): Set SYMBOL_REF_FLAGS.
1733         (assemble_trampoline_template): Likewise.
1734         (output_constant_def, force_const_mem): Likewise.
1735         (default_encode_section_info): New.
1736         * output.h: Declare it.
1737         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
1738
1739 2003-04-11  Richard Henderson  <rth@redhat.com>
1740
1741         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
1742         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
1743         * optabs.c (init_optabs): Initialize them.
1744         (init_libfuncs): Use init_one_libfunc.
1745         * calls.c (expand_call): Use gcov_flush_libfunc.
1746         * expr.c (store_constructor): Use setbits_libfunc.
1747         * function.c (expand_main_function): Use init_one_libfunc.
1748         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
1749
1750 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
1751
1752         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
1753         documentation; add DECL_FRIEND_CONTEXT.
1754
1755 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1756
1757         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
1758         notes on linker selection and configuration for 64-bit HP-UX port.
1759         * doc/invoke.texi (hppa): Remove hppa text from description for
1760         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
1761         and -threads options.
1762
1763         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
1764         libc.a on libdld.sl when -static is specified and -nolibdld is not
1765         specified.
1766         * pa64-hpux.h (LIB_SPEC): Likewise.
1767         * pa-hpux11.h (LIB_SPEC): Likewise.
1768         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
1769         is not specified.
1770
1771 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
1772
1773         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
1774         not IDENTIFIER_LOCAL_VALUE.
1775
1776 2003-04-11  Richard Henderson  <rth@redhat.com>
1777
1778         PR c/10201
1779         * expr.c (expand_expr): Move DECL_RTL frobbing ...
1780         * stor-layout.c (layout_decl): ... here.
1781
1782 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
1783
1784         * doc/invoke.texi: Eliminate extra white-space caused by
1785         @gccoptlist{ on its own line.
1786         * doc/invoke.texi: Ensured there are two spaces between each option.
1787         * doc/invoke.texi: Re-wrapped option lines that were too wide.
1788         Added @gol to options that didn't have them.
1789
1790 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
1791
1792         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
1793         gcov-iov.h.
1794
1795         Simplify interface to gcov reading and writing.
1796         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
1797         gcov_alloc, gcov_modified, gcov_errored): Move into ...
1798         (struct gcov_var gcov_var): ... this static structure.
1799         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
1800         Return void.
1801         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
1802         read object.
1803         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
1804         (gcov_reserve_length): Remove.
1805         (gcov_write_tag): New.
1806         (gcov_write_length): Adjust.
1807         (gcov_read_summary, gcov_write_summary): Adjust.
1808         (gcov_eof, gcov_ok): Rename to ...
1809         (gcov_is_eof, gcov_is_error): ... here. Return error code.
1810         (gcov_save_position, gcov_resync): Rename to ...
1811         (gcov_position, gcov_seek): ... here.
1812         (gcov_skip, gcov_skip_string): Remove.
1813         (gcov_error): Remove.
1814         (gcov_open, gcov_close): Adjust.
1815         * gcov.c (find_source): Take const char *, copy it on allocation.
1816         (read_graph_file): Adjust.
1817         (read_count_file): Adjust.
1818         * libgcov.c (gcov_exit): Adjust.
1819         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
1820         tag_arc_counts, tag_summary): Return void. Adjust.
1821         (struct tag_format): Adjust proc member.
1822         (dump_file): Adjust gcov calls.
1823
1824 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
1825
1826         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
1827         mkfixinc.sh.
1828         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
1829         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
1830         build != host sysrooted builds.
1831         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
1832         TARGET_SYSTEM_ROOT even on sysrooted natives.
1833         * configure: Rebuilt.
1834
1835 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
1836
1837         * c-decl.c (struct binding_level): Add shadowed_tags and
1838         function_body; remove this_block, tag_transparent, and
1839         subblocks_tag_transparent; update comments.
1840         (clear_binding_level, lookup_tag_reverse): Kill.
1841         (make_binding_level): Use ggc_alloc_cleared or memset.
1842         (lookup_tag): Remove struct binding_level* parameter.  All
1843         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
1844         current_binding_level->tags if asked for thislevel_only or if
1845         we might have to diagnose "struct foo; union foo;"
1846         (pushlevel): Ignore argument.  Do not push another binding
1847         level on the transition from the parameters to the top level
1848         of the function body; just tweak the flags and proceed.
1849         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
1850         a function body, separate the parameter list from the
1851         top-level local variables.
1852         (set_block): Do nothing.
1853         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
1854         shadowed_tags if necessary.
1855         (warn_if_shadowing): Nuke the special case for local shadowing
1856         parameter.
1857         (pushdecl): Do not create a shadow entry if we are replacing
1858         an older decl in the same binding level.
1859         (pushdecl_function_level): Tweak for new way of indicating
1860         function scope.
1861         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
1862         (start_function): Don't set subblocks_tag_transparent.
1863         (finish_function): Fix up the binding_level stack for totally
1864         empty functions.  Otherwise, don't call poplevel.
1865
1866         * c-common.c (shadow_warning): MANDATORY argument is no longer
1867         necessary.  Always use plain warning.
1868         * c-common.h: Update to match.
1869
1870         * cfglayout.c (scope_to_insns_initialize): Clear block when we
1871         hit the FUNCTION_DECL.
1872         * function.c: Do not create cyclic tree structure.
1873
1874 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
1875
1876         * c-tree.h (struct lang_identifier): Replace global_value,
1877         local_value members with symbol_value, tag_value.  Kill
1878         implicit_decl and limbo_value.
1879         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
1880         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
1881         C_MISSING_PROTOTYPE_WARNED): Kill.
1882         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
1883         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
1884         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
1885         (implicit_decl_warning, lookup_name_current_level,
1886         record_function_scope_shadow): Don't prototype.
1887         (pushdecl_function_level): Prototype.
1888
1889         * c-decl.c (truly_local_externals): New variable.
1890         (struct binding_level): Adjust commentary.
1891         (get_function_binding_level, clear_limbo_values,
1892         record_function_scope_shadow): Kill.
1893         (lookup_name_current_level, implicit_decl_warning): Are now static.
1894         (any_external_decl, record_external_decl): New static functions.
1895         (clone_underlying type): Split out of pushdecl.
1896         (c_print_identifier): Update to match changes to struct
1897         lang_identifier.
1898         (poplevel): Delete #if 0 block.  Make externals invisible
1899         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
1900         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
1901         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
1902         (duplicate-decls): For real parm decl after a forward decl,
1903         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
1904         foo(...) { } with only a warning.  Say whether a previous
1905         declaration was implicit.
1906         (warn_if_shadowing): Now handles all shadowing, not just
1907         local-over-local.  Clarify comments.
1908         (pushdecl): Rewritten.  There is no longer a distinction
1909         between global and local symbol values; they're all
1910         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
1911         DECL_EXTERNAL decls, and use any_external_decl to check
1912         against previous externals.  Kill #if 0 blocks.  Don't
1913         tolerate error_mark_node being NULL.
1914         (pushdecl_top_level): Handle only those cases which
1915         Objective C (the only user) needs.
1916         (pushdecl_function_level): New function.
1917         (implicitly_declare): Create ordinary decls with
1918         C_DECL_IMPLICIT set.  Recycle old decls, however they got
1919         created.
1920         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
1921         for C_DECL_INVISIBLE symbols.
1922         (lookup_name_current_level): Likewise.  Use chain_member.
1923         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
1924         Use pushdecl_function_level.
1925         (builtin_function): Use C_DECL_INVISIBLE.
1926         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
1927         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
1928         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
1929         (identifier_global_value): Same.  Must scan
1930         global_binding_level in extremis.
1931
1932         * c-typeck.c (undeclared_variable): New static function, split
1933         from build_external_ref.
1934         (build_external_ref): Use DECL_CONTEXT, not
1935         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
1936         an instance variable.  Restructure for clarity.
1937         * objc/objc-act.c: Use identifier_global_value, not
1938         IDENTIFIER_GLOBAL_VALUE.
1939
1940 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
1941
1942         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
1943         not Working Paper.
1944         * doc/invoke.texi (C++ Dialect Options): Same.
1945
1946 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
1947
1948         * tree.c (tree_operand_check_failed): New function.
1949         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
1950         TREE_RTL_OPERAND_CHECK): New checking macros.
1951         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
1952         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
1953         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
1954         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
1955         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
1956         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
1957         checking macros.
1958
1959 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
1960
1961         PR inline-asm/8803
1962         * function.c (instantate_virtual_regs):  Verify that all ASM statements
1963         match after the virutal regs instantiation.
1964
1965 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
1966
1967         * ia64-protos.h (addp4_optimize_ok): New.
1968         * ia64.c (addp4_optimize_ok): New.
1969         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
1970         (*ptr_extend_plus_2): Ditto.
1971
1972 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
1973
1974         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
1975         not with convert_memory_address.
1976         (store_constructor): Ditto, and same for copy_size_rtx.
1977         (expand_expr): Ditto.
1978
1979 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
1980
1981         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
1982
1983 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
1984
1985         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
1986         even if it is configured to be write-through.
1987
1988 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
1989
1990         * config/s390/s390.c (larl_operand): Do not allow symbols
1991         marked with '@'.
1992         (s390_encode_section_info): Mark symbols with forced 1-byte
1993         alignment with '@'.
1994         (s390_strip_name_encoding): Strip '@'.
1995         (legitimize_pic_address): Handle symbols that are not valid
1996         LARL operands in 64-bit mode.
1997
1998 2003-04-10  Andrew Haley  <aph@redhat.com>
1999
2000         * tree-inline.c (inlinable_function_p): Disable inlining for
2001         synchronized methods.
2002
2003 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
2004
2005         * c-common.h (lang_statement_code_p): Remove declaration.
2006         (statement_code_p): Ditto.
2007         (c_common_stmt_codes): Define; list of c-common statement codes.
2008         (statement_code_p): New extern declaration.
2009         (STATEMENT_CODE_P): Define.
2010         (INIT_STATEMENT_CODES): Define.
2011         * c-common.c (statement_code_p): Kill the function, declare
2012         as an array of bools instead.
2013         (lang_statement_code_p): Remove.
2014         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
2015         (c_safe_from_p): Ditto.
2016         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
2017         to initialize the statement_code_p array.
2018         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
2019         statement_code_p.
2020         (copy_tree_r): Ditto.
2021         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
2022         statement tree codes.
2023         * cp/lex.c (cxx_init): Add missing print line break.  Use
2024         INIT_STATEMENT_CODES to initialize the statement_code_p array.
2025         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
2026         instead of statement_code_p.
2027         * cp/pt.c (tsubst_expr): Ditto.
2028         * cp/tree.c (verify_stmt_tree_r): Ditto.
2029         (cp_statement_code_p): Remove.
2030         (init_tree): Don't set lang_statement_code_p, it's gone.
2031
2032 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
2033             Zack Weinberg  <zack@codesourcery.com>
2034
2035         * regrename.c (struct du_chain): Use a bitfield for reg_class.
2036         * cse.c (struct qty_table_elem, struct table_elt, struct set):
2037         Use bitfields for fields holding enum rtx_code or
2038         enum machine_mode values.  Add comments explaining size choices.
2039
2040 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
2041
2042         * config/fp-bit.c (unpack_d): Handle pair of doubles with
2043         different signs correctly.
2044
2045 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
2046
2047         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
2048         (reg_pending_barrier): Make it of the enumeration type.
2049         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
2050         TRUE_BARRIER.
2051         (sched_analyze): Ditto.
2052         (sched_analyze_insn): Ditto.  Use anti-dependencies for
2053         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
2054         (init_deps_global): Initialize the barrier as NO_BARRIER.
2055
2056 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
2057
2058         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
2059         Check that asm insn starts on a new cycle.  Add nops after asm
2060         insn to end bundle.
2061         (bundling): Move insn type evaluation from the loop.  Call
2062         issue_nops_and_insn with the new parameter.  Ignore changing
2063         position for nops after asm insn.
2064
2065 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
2066
2067         * optabs.c: Comment that gen_add2_insn and others may actually
2068         return emitted insns, if the gen functions turn out to return
2069         emitted insns.
2070         * reload1.c (reload_cse_move2add): Cope with emitted insns from
2071         gen_add2_insn.
2072
2073 2003-04-09  Richard Henderson  <rth@redhat.com>
2074
2075         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
2076         but not tls_symbolic_operand.
2077         (ia64_expand_load_address): Remove scratch operand.
2078         (ia64_expand_tls_address): Split out from ia64_expand_move.
2079         (ia64_expand_move): Split symbolics only after reload.
2080         (ia64_emit_cond_move): New.
2081         * config/ia64/ia64-protos.h: Update.
2082         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
2083         (symbolic splitter): Accept SImode operands too.
2084         (cmove splitter): Use ia64_emit_cond_move.
2085
2086 2003-04-09  Nick Clifton  <nickc@redhat.com>
2087
2088         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
2089         newer.
2090         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
2091         instead of -mno-fpu.
2092         * config/arm/semi.h (ASM_SPEC): Likewise.
2093         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
2094         but only if -msoft-float is specified pass.  Otherwise pass
2095         -mfpu=softvfp.
2096
2097 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2098
2099         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
2100         free_EXPR_LIST_node.
2101
2102 2003-04-08  Roger Sayle  <roger@eyesopen.com>
2103
2104         * fold-const.c (fold):  Use "fold" following build in more places.
2105         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
2106         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
2107
2108 2003-04-08  Roger Sayle  <roger@eyesopen.com>
2109
2110         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
2111         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
2112         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
2113         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
2114         Delete function scope "fcode" variable to avoid shadowing.
2115
2116 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
2117
2118         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
2119         Take into account DWARF_INITIAL_LENGTH_SIZE.
2120
2121 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
2122
2123         * reorg.c (fill_slots_from_thread): When considering changing the
2124         insn following a reg-to-reg copy insn to use the source reg of the
2125         copy, bail out if there's overlap between the registers.
2126
2127 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2128
2129         * function.c (postponed_insns): New.
2130         (purge_addressof_1): Postpone processing of insns if addressofs
2131         are not put into stack.
2132         (purge_addressof): Process postponed insns.
2133
2134 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
2135
2136         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
2137         this is FP_MODE_DOUBLE .
2138         * sh.c (ra.h): #include.
2139         (push_regs): Add second parameter.  Changed all callers.
2140         If necessary, set fpscr before saving floating point registers.
2141         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
2142         do saves / restores with SZ == 1.
2143         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
2144         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
2145         registers are being restored, restore FPSCR only after restoring them.
2146
2147 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
2148
2149         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
2150         regardless of architecture.
2151         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
2152
2153 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
2154
2155         * sh.c (push_regs, calc_live_regs): Return int.  Take single
2156         HARD_REG_SET * parameter.  Changed all callers.
2157
2158 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
2159
2160         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
2161         GOTOFF operand.
2162         (legitimize_pic_address): Move plus outside the unspec.
2163         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
2164         for validity.
2165
2166 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
2167
2168         * gcov-io.h (gcov_save_position): Remove __inline__ from
2169         declaration.
2170
2171 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
2172
2173         * doc/install.texi: Use @command and @samp for single- and
2174         multi-word commands respectively.
2175         * doc/makefile.texi: Likewise.
2176         * doc/sourcebuild.texi: Likewise.
2177
2178 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
2179             Richard Henderson  <rth@redhat.com>
2180
2181         PR c/9516
2182         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
2183         favour of looping and tail recursion for TREE_LIST and binops.
2184
2185 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2186
2187         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
2188         for insns without luid.
2189
2190 2003-04-07  Glen Nakamura  <glen@imodulo.com>
2191
2192         PR opt/8634
2193         * explow.c (maybe_set_unchanging): Don't flag non-static const
2194         aggregate type initializers with RTX_UNCHANGING_P.
2195
2196 2003-04-07  Richard Henderson  <rth@redhat.com>
2197
2198         PR opt/8634
2199         * function.c (purge_addressof_1): Don't try arithmetics for
2200         unchanging memories.
2201
2202 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
2203
2204         * doc/sourcebuild.texi (Test Suites): Document testing support for
2205         gcov and profile-directed optimizations; describe gcc.misc-tests.
2206
2207 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
2208
2209         PR target/10077
2210         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
2211
2212 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2213
2214         * doc/rtl.texi (Comparison operations): Update to
2215         record the allowed comparison modes.
2216
2217 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
2218
2219         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
2220         V2SI_type_node to opaque_V2SI_type_node.  Rename all
2221         V2SF_type_node to opaque_V2SF_type_node.
2222         (rs6000_init_builtins): Define opaque_V2SI_type_node and
2223         opaque_V2SF_type_node.
2224         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
2225         opaque_V2SF_type_node are opaque types.
2226
2227 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
2228
2229         * gcse.c (replace_store_insn): Use single_set.
2230
2231 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
2232
2233         Change gcov file interface to single file at a time.
2234         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
2235         Convert to C89 prototypes.
2236         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
2237         gcov_error, gcov_modified): New static variables.
2238         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
2239         functions.
2240         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
2241         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
2242         (gcov_read_summary, gcov_write_summary): Adjust.
2243         (gcov_save_position, gcov_reserve_length, gcov_write_length):
2244         Adjust.
2245         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
2246         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
2247         (da_file_position, da_file_seek, da_file_write, da_file_read):
2248         Remove.
2249         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
2250         * gcov.c (gcov_type): Don't typedef here.
2251         (IN_GCOV): #define
2252         (read_graph_file, read_count_file): Adjust.
2253         * gcov-dump.c (gcov_type): Don't typedef here.
2254         (IN_GCOV): #define.
2255         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
2256         Remove FILE parameter, adjust.
2257         (struct tag_format): Adjust proc member.
2258         (dump_file): Adjust.
2259         * libgcov.c (IN_LIBGCOV): #define.
2260         (gcov_exit): Adjust.
2261         * loop-init.c: Don't #include gcov-io.h
2262         * profile.c (struct counts_entry): New structure to hold counter
2263         values.
2264         (struct section_reference, struct da_index_entry): Remove.
2265         (bbg_file, da_file): Remove.
2266         (htab_counts_index_hash, htab_counts_index_eq,
2267         htab_counts_index_del): Replace with ...
2268         (htab_counts_entry_hash, htab_counts_entry_eq,
2269         htab_counts_entry_del): ... these.
2270         (cleanup_counts_index, index_counts_file): Remove.
2271         (read_counts_file): New function.
2272         (get_exec_counts): Adjust.
2273         (compute_branch_probabilities): Don't free the exec counts here.
2274         (branch_prob): Adjust.
2275         (init_branch_prob): Adjust.
2276         (end_branch_prob): Adjust.
2277
2278 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
2279
2280         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2281         -mfloat-gprs.
2282
2283         * config/rs6000/rs6000.c: Delete rs6000_fprs.
2284         Declare rs6000_float_gprs.
2285         Declare rs6000_float_gprs_string.
2286         (rs6000_parse_float_gprs_option): New.
2287         (rs6000_override_options): Genericize rs6000_parse_* calls to use
2288         rs6000_parse_yes_no_option.
2289         Change check for cpu=8540, to use TARGET_E500.
2290         (rs6000_parse_isel_option): Delete.
2291         (rs6000_parse_spe_option): Delete.
2292         (rs6000_parse_vrsave_option): Delete.
2293
2294         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
2295         Define rs6000_float_gprs_string.
2296         (TARGET_OPTIONS): Add rs6000_float_gprs option.
2297
2298         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
2299
2300         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
2301
2302 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
2303
2304         PR opt/10024
2305         * cfglayout.c (cfg_layout_redirect_edge):
2306         Redirect any branch edges unified with the fallthru one.
2307         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
2308         case fallthru edges when called via cfglayout.c
2309
2310 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
2311
2312         * c-typeck.c (output_init_element): Check for type == error_mark_node.
2313
2314 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
2315
2316         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
2317         split.
2318         (a splitter): Do zero-extension via HImode.
2319
2320 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
2321
2322         * doc/invoke.texi: Eliminate extra white-space caused by
2323         @gccoptlist{ on its own line.
2324         * doc/invoke.texi: Ensured there are two spaces between each option.
2325         * doc/invoke.texi: Re-wrapped option lines that were too wide.
2326         Added @gol to options that didn't have them.
2327
2328 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
2329
2330         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
2331
2332 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
2333
2334         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
2335         at the sizes of the relevant structures, rather than relying
2336         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
2337         sizes of any such we don't know about.  Use
2338         lang_hooks.identifier_size for IDENTIFIER_NODE.
2339
2340         (initializer_zerop): Use CONSTRUCTOR_ELTS.
2341         * tree.def: Update commentary.  Make fourth element of
2342         the definition for all 'c' and 'x' nodes zero.
2343
2344         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
2345         * langhooks-def.h: Update to match.
2346         * langhooks.c: New default, lhd_tree_size.
2347
2348         * c-common.def (SRCLOC): Kill.
2349         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
2350         Remove entirely - was already #if-ed out.
2351
2352
2353 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
2354
2355         * mklibgcc.in: Use a here document to avoid running afoul of
2356         shells that generate control-A from "echo \1".
2357
2358 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
2359
2360         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
2361         option.
2362
2363         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2364         rs6000_spe.
2365
2366         * config/rs6000/eabi.h (TARGET_E500): Define.
2367
2368         * config/rs6000/rs6000.h (TARGET_E500): Define.
2369         (TARGET_OPTIONS): Add spe= option.
2370         Declare rs6000_spe and rs6000_spe_string extern.
2371
2372         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
2373         Change TARGET_SPE to TARGET_E500.
2374         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
2375         !TARGET_FPRS.
2376         (print_operand): Same.
2377         (rs6000_generate_compare): Same.
2378         (output_cbranch): Same.
2379         (rs6000_spe): Declare.
2380         (rs6000_spe_string): Declare.
2381         (rs6000_override_options): Call rs6000_parse_spe_option.
2382         (rs6000_parse_spe_option): New.
2383
2384 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
2385
2386         * hashtable.c (gcc_obstack_init): Delete this function
2387         and everything related to it.
2388         * hashtable.h: Remove prototype.
2389         * bitmap.c (bitmap_element_allocate): Cleanup redundant
2390         defines.  Cleanup some unnecessary whitespace.
2391         * defaults.h (obstack_chunk_alloc): Redefine with
2392         appropriate casts for libiberty obstacks.
2393         (obstack_chunk_free): Ditto.
2394         (OBSTACK_CHUNK_SIZE): Define, default to 0.
2395         (gcc_obstack_init): Define as a call to _obstack_begin.
2396         * tree.c (print_obstack_statistics): Delete this unused
2397         function.
2398         * tree.h (obstack): Don't forward-declare.
2399         (print_obstack_statistics): Delete prototype.
2400         (print_obstack_name): Ditto.
2401         (gcc_obstack_init): Ditto.
2402         * rtl.h (gcc_obstack_init): Ditto.
2403         * java/jv-scan.c (gcc_obstack_init): Delete this
2404         function, its prototype and related defines.
2405         * java/jvgenmain.c (gcc_obstack_init): Delete this
2406         function, and related defines.
2407         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
2408         (obstack_chunk_free): Ditto
2409
2410 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
2411
2412         * dbxout.c (dbxout_handle_pch): Move prototype out from
2413         #if defined DBX_DEBUGGING_INFO.
2414
2415 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
2416
2417         * gcov.c (struct arc_info): Replace local_span with cycle.
2418         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
2419         (solve_flow_graph): Set is_call_return.
2420         (add_line_counts): Adjust. In block mode, blocks attach to last line.
2421         (accumulate_line_counts): Find graph cycles, not spanning tree.
2422         (output_branch_count): Adjust.
2423         (output_lines): Adjust.
2424         * doc/gcov.texi: Update.
2425
2426 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
2427
2428         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
2429         the second alternative to "#".
2430
2431 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
2432
2433         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
2434         (single_zero_operand): Likewise.
2435
2436 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
2437
2438         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
2439         * df.c: Include alloc-pool.h, not obstack.h.
2440         (df_ref_obstack): Remove.
2441         (df_ref_pool, df_link_pool): Add pools.
2442         (df_alloc): Init the new pools.
2443         (df_free): And free them.
2444         (df_link_create): Use the pools.
2445         (df_ref_create): Ditto.
2446
2447 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
2448
2449         * simplify-rtx.c: Fix formatting.
2450
2451 2003-04-05  Andrew Pinski  <apinski@apple.com>
2452
2453         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
2454         reg with reg1 == reg2 and offset1 = -8.
2455
2456 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
2457
2458         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
2459         multiply costs.  Correct Power4 divide costs.
2460         * config/rs6000/power4.md: Restore multiply and FP latency.
2461
2462 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2463
2464         * alias.c (find_base_term): Export.
2465         * rtl.h (find_base_term): Declare.
2466         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
2467         instead of flag_exceptions.  Move test for parameter passing ...
2468         (store_killed_in_insn): ... here.
2469
2470 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2471
2472         PR bootstrap/10267
2473         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
2474         for configuring.
2475
2476 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
2477
2478         * dbxout.c (scope_labelno): Add GTY.
2479         (have_used_extensions): Add GTY.
2480         (source_label_number): Add GTY.
2481         (lastfile): Add GTY.
2482         (lastfile_is_base): New.
2483         (base_input_file): New.
2484         (dbxout_handle_pch): New.
2485         (dbx_debug_hooks): Add handle_pch.
2486         (xcoff_debug_hooks): Likewise.
2487         (dbxout_function_end): Remove scope_labelno.
2488         (dbxout_init): Set base_input_file.
2489         (dbxout_handle_pch): New.
2490         (dbxout_source_file): Honour lastfile_is_base.
2491         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
2492         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
2493         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
2494         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
2495         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
2496         * debug.h (struct gcc_debug_hooks): Add handle_pch.
2497         * c-pch.c (pch_init): Don't call start_source_file, but do call
2498         handle_pch.
2499         (c_common_write_pch): Call handle_pch.
2500         (c_common_read_pch): Don't call start_source_file,
2501         or end_source_file.
2502
2503 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
2504
2505         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
2506         use of default attributes to agree MEM_ALIGN macro.
2507
2508 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
2509
2510         * dbxout.c (dbxout_type): When printing type index of range type
2511         whose bounds are printed in octal format, print type of parent type if
2512         it exists so enumerated type descriptions are not transformed
2513         into unsigned types.
2514
2515 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
2516
2517         * config/h8300/h8300-protos.h: Add a prototype for
2518         compute_a_shift_cc.
2519         * config/h8300/h8300.c (shift_one): Update the CC status.
2520         (shift_two): Likewise.
2521         (output_a_shift_cc): Set cc_inline and cc_special.
2522         (compute_a_shift_cc): New.
2523         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
2524
2525 2003-04-04  Richard Henderson  <rth@redhat.com>
2526
2527         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
2528
2529 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
2530
2531         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
2532         * fixinc/fixincl.x: Rebuilt.
2533         * fixinc/tests/base/stdio.h: Regenerated.
2534
2535 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
2536
2537         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
2538
2539 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
2540
2541         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
2542         (NORMAL_MODE).
2543         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
2544
2545 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2546
2547         * doc/contrib.texi (Contributors): Add entries for Wolfgang
2548         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
2549         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
2550         Danny Smith, and Ulrich Weigand.
2551         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
2552         entry.
2553
2554 2003-04-04  Nick Clifton  <nickc@redhat.com>
2555
2556         * config/sparc/sol2-bi.h: Revert previous delta.
2557         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
2558
2559 2003-04-04  Nick Clifton  <nickc@redhat.com>
2560
2561         * config/v850/v850.c (expand_prologue): Only use register save
2562         helper functions if long calls are not being used.
2563         Add a clobber of r11 id using long calls.
2564         (pattern_is_ok_for_prologue): Account for the extra clobber.
2565         (construct_save_jarl): Likewise.
2566         * config/v850/v850.md (prolog pattern): Do not use this pattern
2567         for v850e's.
2568
2569 2003-04-04  Andreas Schwab  <schwab@suse.de>
2570
2571         * stor-layout.c (layout_decl): Avoid syntax error in last change
2572         when PCC_BITFIELD_TYPE_MATTERS is defined but not
2573         EMPTY_FIELD_BOUNDARY.
2574
2575 2003-04-03  Jason Merrill  <jason@redhat.com>
2576
2577         PR c/10175
2578         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
2579         Look backwards for a line note.
2580
2581 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
2582
2583         * fix-header.c (read_scan_file): Defer switch processing.
2584
2585 2003-04-03  Matt Austern  <austern@apple.com>
2586
2587         * cpppch.c (reset_ht): Remove.
2588         (cpp_read_state): Remove loop to reset hashtable identifiers.
2589         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
2590         after pch file is written.
2591         * ggc.h (gt_pch_fixup_stringpool): Declare.
2592         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
2593         hashnode's value to another hashtable, then clear the original.
2594         (saved_ident_hash): Define.
2595         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
2596         store definitions in ident_hash, and clear ident_hash.
2597         (gt_pch_fixup_stringpool): Define.  Restore definitions from
2598         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
2599
2600 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
2601
2602         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
2603
2604 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
2605
2606         PR optimization/10157
2607         * gcse.c (can_copy_p): Rename it to can_copy.
2608         (can_copy_init_p): Remove.
2609         (compute_can_copy): Use can_copy instead of can_copy_p.
2610         (can_copy_p): New exported function. Call compute_can_copy.
2611         (hash_scan_set): Use it.
2612         (gcse_main): Don't call compute_can_copy.
2613         (bypass_jumps): Don't call compute_can_copy.
2614         * rtl.h (can_copy_p): Declare.
2615         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
2616         copy if the mode doesn't support copy operations.
2617
2618 2003-04-03  Jason Merrill  <jason@redhat.com>
2619
2620         * Makefile.in (unstrap): Also remove stage_last.
2621
2622         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
2623         (dwarf2out_source_line): Don't do anything if line==0.
2624
2625         * stor-layout.c (do_type_align): New fn, split out from...
2626         (layout_decl): ...here.  Do all alignment calculations for
2627         FIELD_DECLs here.
2628         (update_alignment_for_field): Not here.
2629         (start_record_layout, debug_rli): Remove unpadded_align.
2630         * tree.h (struct record_layout_info_s): Remove unpadded_align.
2631         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
2632         or DECL_MODE on the CONST_DECLs.
2633         (finish_struct): Don't mess with DECL_ALIGN.
2634
2635 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
2636
2637         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
2638
2639 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
2640
2641         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
2642         function is an interrupt handler.
2643
2644         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
2645         restoring target registers with EH_RETURN_STACKADJ_RTX; use
2646         multiple registers in round-robin fashion.
2647
2648 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2649
2650         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
2651         * system.h (CHAR_BITFIELD): New.
2652
2653 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
2654
2655         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
2656         and LE.
2657         (another peephole2): Likewise.
2658
2659 2003-04-03  Nick Clifton  <nickc@redhat.com>
2660
2661         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
2662         (DEF_ARCH64_SPEC): Likewise.
2663
2664 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
2665
2666         * i386.c (constant_address_p): Use legitimate_constant_p.
2667         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
2668
2669 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
2670
2671         * config/h8300/h8300-protos.h: Add a prototype for
2672         gtle_operator.
2673         * config/h8300/h8300.c (gtle_operator): New.
2674         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
2675         gtle_operator.
2676         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
2677         and LE.
2678
2679 2003-04-02  Richard Henderson  <rth@redhat.com>
2680
2681         * libgcc-std.ver (_Unwind_GetCFA): New.
2682         * unwind-dw2.c (_Unwind_GetCFA): New.
2683         * unwind-libunwind.c (_Unwind_GetCFA): New.
2684         * unwind-sjlj.c (_Unwind_GetCFA): New.
2685         * unwind.h: Declare it.
2686
2687 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
2688
2689         PR inline-asm/8088
2690         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
2691         when MMX/SSE is not available.
2692
2693 2003-04-02  Mike Stump  <mrs@apple.com>
2694
2695         * doc/install.texi (Specific): Update pointers to apple.com.
2696
2697 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
2698
2699         * i386.c (override_options):  Disable red zone by default on i386.
2700         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
2701         Do not test TARGET_64BIT together with TARGET_RED_ZONE
2702
2703 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
2704
2705         * config/h8300/h8300.md (a peephole2): Tighten the condition.
2706
2707 2003-04-02  Richard Henderson  <rth@redhat.com>
2708
2709         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
2710
2711 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
2712
2713         * config/h8300/h8300.md (a peephole2): New.
2714
2715 2003-04-02  Richard Henderson  <rth@redhat.com>
2716
2717         * except.c (sjlj_find_directly_reachable_regions): Recognize when
2718         must-not-throw region has been deleted.
2719
2720 2003-04-02  Richard Henderson  <rth@redhat.com>
2721
2722         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
2723         optimization when flag_exceptions not enabled.
2724
2725 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
2726
2727         * config/rs6000/rs6000.c
2728         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
2729         macros.
2730         (rs6000_issue_rate): Add case for 8540.
2731         (rs6000_use_sched_lookahead): New function.
2732
2733         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
2734         units into MU ones.
2735         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
2736         reservation before retirement.
2737         (ppc8540_multiply, ppc8540_load, ppc8540_store,
2738         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
2739         Remove additional cycle in the reservation before retirement.
2740         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
2741         reservation of ppc8540_issue.
2742
2743 2003-04-02  Andreas Schwab  <schwab@suse.de>
2744
2745         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
2746
2747 2003-04-01  Richard Henderson  <rth@redhat.com>
2748
2749         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
2750         notes for nothrow calls if flag_forced_unwind_exceptions.
2751         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
2752         (sjlj_find_directly_reachable_regions): Likewise.
2753         (reachable_handlers): Likewise.
2754         (can_throw_external): Likewise.
2755         (collect_one_action_chain): Record cleanups after catch-all and
2756         must-not-throw if flag_forced_unwind_exceptions.
2757         * flags.h (flag_forced_unwind_exceptions): Declare.
2758         * toplev.c (flag_forced_unwind_exceptions): New.
2759         (lang_independent_options): Add it.
2760         * doc/invoke.text: Add it.
2761
2762 2003-04-01  David Mosberger <davidm@hpl.hp.com>
2763
2764         * config/ia64/crti.asm: Clean up trailing whitespace.
2765         Remove trailing hashes (#) from identifiers.
2766
2767         * config/ia64/crtn.asm: Ditto.
2768
2769         * config/ia64/crtend.asm: Remove trailing hashes (#) from
2770         identifiers.
2771         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
2772         directives.  Drop explicit bundling---it just makes the code
2773         harder to read.  Don't save/restore gp needlessly.
2774
2775         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
2776         identifiers (they're only needed if the identifier would clash
2777         with a register name otherwise).
2778         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
2779         directives.  Drop explicit bundling---it just makes the code
2780         harder to read.
2781         (__do_jv_register_classes): Ditto.
2782         (.fini_array): Remove "progbits" (newer
2783         assemblers don't like wrong section-types).
2784         (.init_array): Ditto.
2785
2786 2003-04-01  Roger Sayle  <roger@eyesopen.com>
2787
2788         PR fortran/9974
2789         * gcse.c (reg_killed_on_edge): New function to test whether the
2790         given reg is overwritten by any instruction queued on an edge.
2791         (bypass_block): Ignore substitutions killed on incoming edges.
2792         Don't bypass outgoing edges that have queued instructions.
2793
2794 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
2795
2796         * real.h (EXP_BITS): Make room for...
2797         (struct real_value): ... added canonical bit.
2798         (struct real_format): Added pnan.
2799         (mips_single_format, mips_double_format, mips_extended_format,
2800         mips_quad_format): New.
2801         * real.c: Copy p to pnan in all formats.
2802         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
2803         (real_nan): Use pnan to compute significand's shift.
2804         (real_identical): Disregard significand in canonical
2805         NaNs.
2806         (real_hash): Likewise.  Take signalling into account.
2807         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
2808         Disregard significand bits in canonical NaNs.  Set all bits of
2809         canonical NaN if !qnan_msb_set.
2810         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
2811         qnan_msb_set to tell the base double format.
2812         (ibm_extended_format): Use 53 as pnan.
2813         (mips_single_format, mips_double_format, mips_extended_format,
2814         mips_quad_format): Copied from the corresponding ieee/ibm
2815         formats, with qnan_msb_set false.
2816         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
2817         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
2818         * config/mips/mips.c (override_options): Use mips_single_format
2819         and mips_double_format.  Default TFmode to mips_quad_format.
2820         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
2821         * config/mips/t-irix6: Likewise.
2822         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
2823         * config/fp-bit.c (pack_d, unpack_d): Obey it.
2824
2825 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
2826
2827         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
2828         (live_image_destructor): Reset image to initial state.
2829         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
2830
2831 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
2832
2833         * config/sparc/sparc.c (input_operand): Accept bare
2834         CONSTANT_P_RTX operands.
2835
2836 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2837
2838         * gcse.c (struct ls_expr): Added pattern_regs field.
2839         (ldst_entry): Initialize it.
2840         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
2841         (store_ops_ok): Use regs precomputed by them.
2842         (find_loads, store_killed_in_insn, load_kills_store): Change return
2843         type to bool.
2844         (store_killed_before, store_killed_after): Take position of register
2845         set in account.
2846         (reg_set_info): Store position of the setter.
2847         (gcse_main): Enable store motion.
2848         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
2849         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
2850         sharing.
2851         (simple_mem): Enable store motion of non-symbol mems.
2852         (regvec): Type changed.
2853         (LAST_AVAIL_CHECK_FAILURE): New.
2854         (compute_store_table_current_insn): New.
2855         (build_store_vectors): Computation of availability and anticipatability
2856         moved ...
2857         (compute_store_table, find_moveable_store): ... here.
2858         (delete_store): Remove senseless comment.
2859         (store_motion): Reorganize.
2860
2861 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
2862
2863         * config/mips/mips.c (override_options): Provide mappings for
2864         HI_REGNUM and LO_REGNUM.
2865         * config/mips/mips.h (MD_DBX_FIRST): Define.
2866
2867 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2868
2869         * combine.c (merge_outer_ops): Fix typo.
2870
2871         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
2872
2873 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
2874
2875         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
2876         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
2877         imul_compare.  Add lmul_compare.
2878         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
2879         in second pair of dispatch slots.  Model stores more accurately.
2880         Tweak multiply model.  Add bypasses for CR instructions dependent
2881         on complicated compares.
2882         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
2883         (muldi3): Add lmul_compare patterns.
2884         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
2885         and FPSTORE_UX to split instructions and add COMPARE,
2886         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
2887         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
2888         (rs6000_rtx_costs): Separate POWER4 multiply case.
2889
2890 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
2891
2892         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
2893         Do nothing if __builtin_return_address was not used.
2894
2895 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
2896
2897         * i386.md (test patterns):  Allow memory operand in operand1.
2898
2899 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
2900
2901         * testsuite/gcc.c-torture/execute/simd-3.c: New.
2902
2903         * expr.c (expand_expr): Handle VECTOR_CST.
2904         (const_vector_from_tree): New.
2905
2906         * varasm.c (output_constant): Handle VECTOR_CST.
2907
2908         * c-typeck.c (digest_init): Build a vector constant from a
2909         VECTOR_TYPE.
2910
2911         * config/rs6000/rs6000.c: Remove prototype for
2912         easy_vector_constant.
2913         (easy_vector_constant): Add mode parameter.  Rewrite to handle
2914         more easy constants.
2915         (rs6000_emit_move): Pass mode to easy_vector_constant.
2916         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
2917         (emit_easy_vector_insn): New.
2918         (easy_vector_same): New.
2919         (EASY_VECTOR_15): New macro.
2920         (EASY_VECTOR_15_ADD_SELF): New macro.
2921         (bdesc_2arg): Rename to xorv2si3.
2922         (easy_vector_constant_add_self): New.
2923         (input_operand): Allow vector constants.
2924
2925         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
2926         easy_vector_constant, easy_vector_constant_add_self.
2927         (EXTRA_CONSTRAINT): Add 'W'.
2928
2929         * config/rs6000/rs6000-protos.h: Add prototype for
2930         easy_vector_constant, emit_easy_vector_insn.
2931
2932         * config/rs6000/altivec.md (xorv8hi3): New.
2933         (xorv16qi3): New.
2934         Remove all _const0 patterns.
2935         (movv4si_internal): Rewrite to use code.  Add vector constant to
2936         vector alternative.  Add splitter.
2937         (movv8hi_internal): Same.
2938         (movv16qi_internal): Same.
2939         (movv4sf_internal): Same.
2940         Change the unspecs for vspltis* to use constants.
2941
2942         * config/rs6000/spe.md ("xorv4hi3"): New.
2943         ("spe_evxor"): Rename to xorv2si3.
2944         ("xorv1di3"): New.
2945         Remove all _const0 patterns.
2946         (movv2si_internal): Rewrite to use code.  Add vector constant to
2947         alternatives.  Add splitter.
2948         (movv4hi_internal): Add vector constant to alternatives.
2949         (movv1di_internal): Same.
2950         (movv2sf_internal): Same.
2951
2952 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
2953
2954         PR c/9936
2955         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
2956         variably-sized arrays in parameters.
2957         (set_save_expr_context): New function.
2958         (c_expand_body): Use it, via walk_tree.
2959
2960 2003-03-31  Eric Christopher  <echristo@redhat.com>
2961
2962         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
2963         (combinable_i3pat): Remove call to expand_field_assignment and
2964         #if 0'd code.
2965
2966 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
2967
2968         PR c++/10278
2969         * c-common.c (finish_label_address_expr): Handle the
2970         error_mark_node.
2971
2972 2003-03-31  Richard Henderson  <rth@redhat.com>
2973
2974         * real.c (real_identical): Reorg so as to not compare
2975         signalling for normals.
2976
2977 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
2978
2979         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
2980
2981 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
2982
2983         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
2984         notes as they are boggus.
2985         (m68hc11_gen_movqi): Likewise.
2986
2987 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
2988
2989         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
2990         save the soft registers after the frame pointer so that gdb can unwind
2991         the frame more easily.
2992         (expand_epilogue): Likewise in opposite order; allow to use X register
2993         as scratch if the return value is by reference.
2994
2995 2003-03-31  Jason Merrill  <jason@redhat.com>
2996
2997         PR java/10145
2998         * stor-layout.c (update_alignment_for_field): Respect
2999         DECL_USER_ALIGN for zero-length bitfields, too.
3000         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
3001         fields.
3002
3003 2003-03-31  Matt Austern  <austern@apple.com>
3004
3005         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
3006         (count_defs): Keep track of number of defs as well as total size.
3007         (write_defs): Put every definition in cpp_savedstate's defs array.
3008         (comp_hashnode): Define.  Comparison function for qsort.
3009         (cpp_write_pch_deps): Sort definitions before writing them.
3010         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
3011         (collect_ht_nodes): Define.
3012         (cpp_valid_state): When verifying that undefined identifiers in
3013         the pch file are still undefined, read a sorted list of undefined
3014         identifiers, collect all defined identifiers into a sorted list,
3015         and walk through both lists to make sure there's no match.
3016
3017 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
3018
3019         * config/h8300/h8300.md (a peephole2): New.
3020
3021 2003-03-31  Michael Matz  <matz@suse.de>
3022
3023         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
3024
3025 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
3026
3027         PR target/10177
3028         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
3029         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
3030         all call-clobbered registers as used.
3031
3032 2003-03-31  Michael Matz  <matz@suse.de>
3033
3034         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
3035         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
3036
3037 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
3038
3039         * gcov.c: Add -a & -u options.
3040         (struct arc_info): Add local_span, is_call_non_return,
3041         is_nonlocal_return, is_unconditional flags, remove is_call flag.
3042         (struct block_info): Add flags, is_call_site, is_nonlocal_return
3043         members. Make encodings a union with span member.
3044         (struct function_info): Add blocks_executed, line, src, line_next
3045         members.
3046         (struct coverage_info): Make branches a union with blocks member.
3047         (struct source_info): Add functions member.
3048         (object_summary, program_count): New global variables.
3049         (flag_all_blocks, flag_unconditional): New flags.
3050         (find_source, output_branch_count): New functions.
3051         (print_usage): Adjust.
3052         (options): Adjust.
3053         (process_args): Adjust.
3054         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
3055         <GCOV_TAG_BLOCKS>: Read flags.
3056         <GCOV_TAG_LINES>: Adjust.
3057         (read_count_file): Process SUMMARY tags.
3058         (solve_flow_graph): Set is_unconditional and clear is_call_site
3059         appropriately.
3060         (add_branch_counts): Adjust. Don't count unconditional branches.
3061         (add_line_counts): Deal with all-blocks mode, accumulate block
3062         coverage.
3063         (accumulate_line_counts): Adjust, generate local spanning tree for
3064         all-blocks mode.
3065         (output_lines): Adjust.
3066         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
3067         * doc/gcov.texi: Document.
3068
3069 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
3070
3071         * config/h8300/h8300.md: Organize peephole2's that transform
3072         (compare (reg:HI) (const_int)).
3073
3074 2003-03-31  Roger Sayle  <roger@eyesopen.com>
3075
3076         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
3077         (init_emit_once): Initialize dconstm2 and dconsthalf here.
3078         * real.h (dconstm2, dconsthalf): Add prototypes here.
3079         * real.c (real_sqrt): Use dconsthalf rather than local copy.
3080         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
3081         exp(x/2.0) remember to fold the division if possible.
3082         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
3083         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
3084         1.0/(x*x) and pow(x,0.5) as sqrt(x).
3085
3086 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
3087
3088         * config/h8300/h8300.md (a new peephole2): New.
3089
3090 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
3091
3092         * gcse.c (simple_mem): Return false for floating-point accesses
3093         if flag_float_store is true.
3094
3095 2003-03-30  Roger Sayle  <roger@eyesopen.com>
3096
3097         * gcse.c (gcse_constant_p): New function to identify constants
3098         suitable for constant propagation, including COMPARE with two
3099         integer constant arguments.
3100         (hash_scan_set): Use gcse_constant_p.
3101         (find_avail_set): Likewise.
3102         (cprop_insn): Likewise.
3103         (do_local_cprop): Likewise.
3104         (find_implicit_sets): Likewise.
3105         (find_bypass_set): Likewise.
3106
3107 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
3108
3109         * except.h: Remove definition of varray_type.
3110
3111 2003-03-30  Richard Henderson  <rth@redhat.com>
3112
3113         PR opt/10011, opt/10252:
3114         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
3115         before post-gcse cse pass.
3116
3117 2003-03-30  Roger Sayle  <roger@eyesopen.com>
3118
3119         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
3120
3121 2003-03-30  DJ Delorie  <dj@redhat.com>
3122
3123         * profile.c (instrument_edges): Make sure any newly created
3124         jump insns have correct jump label info.
3125
3126 2003-03-30  Richard Henderson  <rth@redhat.com>
3127
3128         * cfgbuild.c (make_edges): Use tablejump_p.
3129         * cfgcleanup.c (label_is_jump_target_p): Likewise.
3130         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
3131         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
3132         (try_redirect_by_replacing_jump): Likewise.
3133         (redirect_edge_and_branch): Likewise.
3134         * cse.c (fold_rtx): Likewise.
3135         * jump.c (delete_related_insns): Likewise.
3136         * rtlanal.c (get_jump_table_offset): Likewise.
3137         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
3138
3139 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3140
3141         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
3142         (STRICT2_WARN): Likewise.
3143
3144 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3145
3146         PR other/6955
3147         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
3148         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
3149
3150 2003-03-30  Richard Henderson  <rth@redhat.com>
3151
3152         PR c/10083
3153         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
3154         don't zero_extend const inputs.
3155
3156 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
3157
3158         * reload1.c (reload_cse_move2add): Fix a comment typo.
3159
3160 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
3161
3162         * config/h8300/h8300.md (a peephole2): Remove useless code.
3163
3164 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
3165
3166         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
3167         (*iorsi3_and_lshiftrt): Likewise.
3168         (*iorsi3_zero_extract): Likewise.
3169
3170 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
3171
3172         * config/h8300/h8300.md (*insv_si_8_8): New.
3173         (*insv_si_8_8_lshiftrt_8): Likewise.
3174         (a peephole2): Likewise.
3175
3176 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3177
3178         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
3179         Uniformly use bugfix instead of bug fix.
3180
3181 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3182
3183         PR doc/895
3184         * ONEWS: Remove those items that already appear in the EGCS
3185         release notes on our web pages.
3186
3187 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
3188
3189         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
3190         TARGET_HARD_FLOAT.  Reformat.
3191         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
3192
3193 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
3194
3195         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
3196         work on Solaris 2.5.1.
3197
3198 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
3199
3200         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
3201         section of h8300.md
3202         (*addsi3_and_nor_r_1): Likewise.
3203
3204 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
3205
3206         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
3207         set up before any trapping memory access if flag_non_call_exceptions.
3208
3209 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
3210
3211         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
3212
3213         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
3214
3215 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
3216
3217         * configure.in: Clarify comments.
3218         * configure: Regenerate.
3219
3220 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
3221
3222         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
3223         label even if pool empty when generating PIC.
3224         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
3225
3226 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
3227             Dhananjay Deshpande  <dhananjayd@kpit.com>
3228
3229         PR target/10205
3230         * config/h8300/h8300.c (h8300_initial_elimination_offset):
3231         Correct the offset computation when TARGET_NORMAL.
3232
3233 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
3234
3235         PR target/10067
3236         * config/sparc/sparc.md (jump pattern): Correct order
3237         when issuing the annuling marker.
3238
3239 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
3240
3241         PR c/8281
3242         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
3243         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
3244
3245 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
3246
3247         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
3248         globalize_label.
3249         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3250         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3251         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3252         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3253         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3254         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3255         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
3256
3257 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
3258
3259         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
3260         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
3261         notes after hoisting.
3262         (load_mems): Adjust replace_loop_mems call.
3263
3264 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
3265             Richard Henderson  <rth@redhat.com>
3266
3267         PR target/10114 and PR target/10084
3268         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
3269
3270 2003-03-27  Richard Henderson  <rth@redhat.com>
3271
3272         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
3273
3274 2003-03-27  Roger Sayle  <roger@eyesopen.com>
3275
3276         * fold-const.c (fold_inf_compare):  New function to simplify FP
3277         comparisons against +Infinity or -Infinity.
3278         (fold):  Optimize floating point comparisons against Infs and NaNs.
3279
3280 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
3281
3282         * libgcov.c: Provide only dummy functions if libc is not available.
3283
3284 2003-03-27  Richard Henderson  <rth@redhat.com>
3285
3286         * real.h (struct real_value): Add signalling.
3287         (EXP_BITS): Decrement.
3288         * real.c (get_canonical_qnan): Don't set MSB-1.
3289         (get_canonical_snan): Likewise.  Set signalling.
3290         (real_identical): Compare signalling.
3291         (round_for_format): Remove force-one-bit on code.
3292         (real_nan): Likewise.  Set signalling.
3293         (encode_ieee_single): Add force-one-bit code; honor signalling.
3294         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
3295         (decode_ieee_single): Set signalling.
3296         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
3297
3298 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
3299
3300         PR ada/9953
3301         * ada/Makefile.in (gnatlib configuration for HPUX): Split
3302         the general section for HPUX into specific sections for
3303         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
3304         11 case.
3305
3306 2003-03-27  Glen Nakamura  <glen@imodulo.com>
3307
3308         PR opt/10087
3309         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
3310         while incrementing giv.
3311         (record_biv): Check for duplicate biv locations and
3312         set (struct induction *) v->same if found.
3313
3314 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
3315
3316         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
3317         v0.9 API change: replace read of UNW_REG_HANDLER with
3318         unw_get_proc_info().
3319         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
3320         with unw_get_proc_info().
3321         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
3322         unw_get_proc_info().
3323
3324 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
3325
3326         * config/rs6000/8540.md: Use presence_set instead of absence_set.
3327
3328 2003-03-26  Richard Henderson  <rth@redhat.com>
3329
3330         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
3331
3332 2003-03-26  Roger Sayle  <roger@eyesopen.com>
3333
3334         PR bootstrap/10051, PR bootstrap/10169.
3335         * mips-tfile.c (init_file): Don't provide a static initializer.
3336         (initialize_init_file): Initialize the contents of init_file.
3337         (add_file): Call initialize_init_file if not already initialized.
3338
3339 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
3340
3341         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
3342         registers used for global asm variables.
3343         (s390_frame_info, s390_arg_frame_offset): Likewise.
3344         (s390_emit_prologue, s390_emit_epilogue): Likewise.
3345
3346 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
3347
3348         * config/rs6000/8540.md: New file.
3349
3350         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
3351         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
3352         reservations for imul.
3353
3354         * config/rs6000/rs6000.md: Include 8540.md.  Change
3355         delayed_compare onto mult_compare for insns generating
3356         multiplication.
3357         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
3358         New type attribute values.
3359
3360         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
3361         fpsimple instead of fp.
3362         (*divsf3_gpr): Use type vecfdiv instead of fp.
3363         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
3364         instead of vecfloat.
3365         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
3366         (spe_brinc): Use type brinc instead of veccomplex.
3367         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
3368         veccomplex.
3369         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
3370         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
3371         *movv2sf_internal): Define type attribute values for all
3372         alternatives.
3373         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
3374         of fpcompare.
3375         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
3376         instead of fpcompare.
3377
3378 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
3379
3380         * config/rs6000/power4.md: Allow delay between dispatch and
3381         function units for simple instructions.  Correct store units.
3382         Allow branch to occupy as many dispatch slots as necessary.
3383
3384 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
3385
3386         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
3387         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
3388         zero extend old to it.
3389         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
3390         operand.
3391
3392 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
3393
3394         PR target/7784
3395         * reload.c (find_reloads_address): Handle
3396         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
3397         all base registers.
3398
3399 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
3400
3401         PR other/10203
3402         * version.c: Reference the GCC web site in the URL.
3403
3404 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
3405
3406         * c-incpath.c (add_standard_paths): Add both "translated" and
3407         non-translated header paths.
3408
3409 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
3410
3411         * doc/install.texi (*-*-freebsd*): Update with known status.
3412
3413 2003-03-21  Jason Merrill  <jason@redhat.com>
3414
3415         PR optimization/10171
3416         * unroll.c (unroll_loop): Don't delete the jump at the end unless
3417         we also delete a jump at the beginning.
3418
3419 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
3420
3421         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
3422         contributor.
3423
3424 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
3425
3426         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
3427         constants are not expensive.
3428
3429 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
3430
3431         PR opt/10056
3432         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
3433         jump jumping to the next instruction.
3434         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
3435
3436 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3437
3438         * doc/passes.texi (Passes): Properly document that we do not
3439         perform jump2 any longer; remove command-line option -dJ.
3440
3441 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
3442
3443         PR optimization/8746
3444         * config/i386/i386.md (and promoting splitters): Disable HImode to
3445         SImode promoting when the sign bit matters and is not preserved, or
3446         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
3447         for size.
3448
3449 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
3450
3451         * config/h8300/h8300.md (a peephole2): Extend to support loads
3452         in QImode and HImode.
3453
3454 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
3455
3456         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
3457         _return_far
3458         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
3459         (MULTILIB_EXCEPTIONS): Likewise.
3460         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
3461         by calling some board support routine.
3462         ("call_value"): Likewise.
3463         ("*return_void"): Likewise for return.
3464         ("*return_16bit"): Likewise.
3465         ("*return_32bit"): Likewise.
3466         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
3467         for 68HC11 too.
3468         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
3469         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
3470         -mlong-calls for 68HC11.
3471         * config/m68hc11/larith.asm (declare_near): New macro.
3472         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
3473         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
3474         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
3475         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
3476         (__mulhi32): Likewise.
3477         (ret): Update macro for 68HC11.
3478         (__far_trampoline): Implement for 68HC11.
3479         (__call_a16, __call_a32, __return_void, __return_16): New support
3480         routines for 68HC11 memory bank switching calling support.
3481         (__return_32): Likewise.
3482
3483 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
3484
3485         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
3486
3487 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
3488
3489         * doc/install.texi (Testing): Mention test result links from build
3490         status pages.
3491
3492 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
3493
3494         * function.c (put_var_into_stack): Change bool parameter to int.
3495         (gen_mem_addressof): Likewise.
3496         * rtl.h (gen_mem_addressof): Likewise.
3497         * tree.h (put_var_into_stack): Likewise.
3498         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
3499         gen_mem_addressof or put_var_into_stack.
3500         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
3501         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
3502
3503 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
3504
3505         * config/h8300/h8300.md (a peephole2): New.
3506
3507 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
3508
3509         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
3510
3511 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3512
3513         * doc/contrib.texi (Contributors): Update Janis Johnson.
3514
3515 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
3516
3517         PR target/10072
3518         * combine.c (simplify_if_then_else): Check that the mode
3519         has MODE_INT class before applying the (OP Z (mult COND C2))
3520         transformation.
3521
3522 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
3523
3524         PR optimization/9414
3525         * config/sparc/sparc.md (widening peepholes): Use
3526         widen_memory_access instead of change_address.
3527
3528 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
3529
3530         PR c++/7086
3531         * c-typeck.c (c_mark_addressable): Adjust calls to
3532         put_var_into_stack.
3533         * expr.c (expand_expr): Likewise.
3534         * function.c (put_var_into_stack): Add rescan parameter.  Do not
3535         call fixup_var_refs when rescan is false.
3536         (gen_mem_addressof): Likewise.
3537         (assign_parms): Adjust calls to put_var_into_stack.
3538         (setjmp_protect): Likewise.
3539         (setjmp_protect_args): Likewise.
3540         * rtl.h (gen_mem_addressof): Change prototype.
3541         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
3542         * tree.h (put_var_into_stack): Change prototype.
3543
3544 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
3545
3546         PR middle-end/9967
3547         * builtins.c (expand_builtin_fputs): When optimizing for size,
3548         don't transform fputs into fwrite.
3549
3550 2003-03-23  Glen Nakamura <glen@imodulo.com>
3551
3552         PR c/8224
3553         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
3554         when signedness changes for division or modulus.
3555
3556 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
3557
3558         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
3559         globalize_label.
3560
3561 2003-03-23  Roger Sayle  <roger@eyesopen.com>
3562
3563         PR c/10178
3564         * stmt.c (expand_end_case_type): Check for overflow in range when
3565         determining whether to use a bit-test implementation.
3566
3567 2003-03-23  Richard Henderson  <rth@redhat.com>
3568
3569         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
3570         before flow2.
3571         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
3572
3573 2003-03-23  Richard Henderson  <rth@redhat.com>
3574
3575         PR opt/10116
3576         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
3577         from then_bb or else_bb after flow2.
3578
3579 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
3580
3581         * configure.in: Check whether it is necessary to link against
3582         libm to use ldexp.
3583         * configure: Regenerate.
3584         * Makefile.in: Add LDEXP_LIB substitution variable.
3585
3586 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
3587
3588         * config/h8300/h8300.md: Fix comment typos.
3589
3590 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3591
3592         * pa.c (output_cbranch): Fix typo in comment.
3593
3594 2003-03-22  Richard Henderson <rth@redhat.com>
3595
3596         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
3597         after reload.
3598
3599 2003-03-22  DJ Delorie  <dj at redhat dot com>,
3600         Bruce Korb  <bkorb at gnu dot org>
3601
3602         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
3603         buggy Solaris 2.6 mutex/cond initializers.
3604         (solaris_mutex_init): Rename to solaris_mutex_init_2.
3605         * fixinc/fixincl.x: Regenerate.
3606         * fixinc/tests/base/pthread.h: Update.
3607         * fixinc/fixincl.c(initialize): be explicit about the default case
3608         and indicate verbose level when being very, very verbose.
3609         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
3610
3611 2003-03-22  Andreas Jaeger  <aj@suse.de>
3612
3613         * config/i386/i386.c (ix86_init_machine_status): Return value.
3614
3615 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3616
3617         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
3618         conditional branch to the following instruction.  Use next_real_insn
3619         instead of next_active_insn.
3620         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
3621         instead of next_active_insn.
3622
3623 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
3624
3625         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
3626         instead of 'm' constraint in forced-split alternatives.
3627         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
3628         VALIDATE_ADDRESS parameter to operand_subword.
3629
3630 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
3631
3632         * config/h8300/h8300.c (notice_update_cc): Correctly handle
3633         the case where the set destination is STRICT_LOW_PART.
3634
3635 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
3636
3637         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
3638         c30 instead of a c40 processor.
3639
3640 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
3641
3642         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
3643
3644 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
3645
3646         * c-common.c: Include intl.h.
3647         (shadow_warning): Rewrite to allow better diagnostic translations.
3648         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
3649         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
3650         use it throughout.
3651         * Makefile.in (c-common.o): Add intl.h.
3652
3653 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
3654
3655         * config.gcc: Remove 'float_format'.
3656
3657         * fixproto: Define NULL and size_t in generated stdlib.h and
3658         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
3659         Rearrange file generation loop for readability.  Generate time.h,
3660         string.h if missing.
3661         * tsystem.h: Include <string.h>, <time.h> unconditionally.
3662         * config.gcc: Blow away POSIX defines.
3663
3664 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
3665
3666         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
3667
3668 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
3669
3670         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
3671         writing .interrupt command.
3672         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
3673         if it's a far or near function.
3674         ("call_value"): Likewise.
3675         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
3676         near attributes.
3677         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
3678         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
3679         (m68hc11_initial_elimination_offset): Set current_function_far
3680         according to attributes.
3681         (expand_prologue): Likewise.
3682         (trap_handler_symbol): New global to keep track of trap handlers.
3683         (m68hc11_encode_section_info): Mark symbol as far if needed; set
3684         trap symbol.
3685         (m68hc11_is_far_symbol): New function.
3686         (m68hc11_is_trap_symbol): New function.
3687         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
3688         (m68hc11_is_trap_symbol): Declare.
3689
3690 2003-03-21  Jan Hubicka  <jh@suse.cz>
3691
3692         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
3693         only when amount of saved regs changed.
3694         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
3695         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
3696
3697 2003-03-21  Jan Hubicka  <jh@suse.cz>
3698
3699         PR inline-asm/7916
3700         * function.c (instantiate_virtual_regs_lossage): New function.
3701         (instantiate_virtual_regs_1): Use it.
3702         (instantiate_virtual_regs): Do not continue in substition when insn has
3703         been deleted.
3704
3705 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
3706
3707         * combine.c (make_field_assignment): Fix a warning.
3708
3709 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
3710
3711         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
3712
3713 2003-03-21  Dale Johannesen  <dalej@apple.com>
3714
3715         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
3716         priority for R2 on Darwin.
3717         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
3718
3719 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
3720
3721         * combine.c (make_field_assignment): Remove unnecessary AND
3722         when storing into zero_extract.
3723
3724 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
3725
3726         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
3727         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
3728         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
3729         in comment.
3730
3731 2003-03-21  DJ Delorie  <dj@redhat.com>
3732
3733         * optabs.c (init_integral_libfuncs): Make sure we init at least up
3734         to "long long" size words.
3735
3736 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
3737
3738         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
3739         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
3740         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
3741
3742 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3743
3744         PR doc-bug/9813
3745         * doc/extend.texi: Move misplaced paragraph about underscores in
3746         variables in macros.
3747
3748 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3749             Richard Henderson  <rth@redhat.com>
3750
3751         PR optimization/8366
3752         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
3753         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
3754         PIC+SYMBOLIC_CONST in other modes than Pmode.
3755         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
3756         the form PIC+SYMBOLIC_CONST as mode dependent.
3757
3758 2003-03-21  DJ Delorie  <dj@redhat.com>
3759
3760         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
3761         sure we always emit at least one insn.
3762
3763 2003-03-21  Christopher Faylor  <cgf@redhat.com>
3764
3765         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
3766         stub t-cygming. Use common target header cygming.h. Add extra
3767         c_target_obj and cxx_target_obj file. Default cygwin to posix
3768         threading. Enforce i386 as float format.
3769         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
3770         Remove cygwin.h as target header. Use common target header
3771         cygming.h  Enforce i386 as float format. Correct typo.
3772         * config/i386/cygming.h: New file, containing definitions
3773         common to mingw32 and cygwin.
3774         * config/i386/cygwin.h: Remove definitions common to cygwin and
3775         mingw.  Simplify special spec logic.  Define "wrappers" around
3776         certain include path defines to accommodate -mno-cygwin.
3777         Remove some #if 0'ed code.
3778         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
3779         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
3780         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
3781         * config/i386/mingw32.h: Remove definitions common to cygwin and
3782         mingw.
3783         (EXTRA_OS_CPP_BUILTINS): Adjust.
3784         (TARGET_VERSION): Define.
3785         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
3786         mingw32.h definitions.
3787         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
3788         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
3789         Add compilation rules for cygwin1.o cygwin2.o.
3790         * config/i386/cygwin1.c: New file.
3791         * config/i386/cygwin2.c: New file.
3792         * config/i386/t-cygming: New makefile stub.
3793
3794 2003-03-20  Richard Henderson  <rth@redhat.com>
3795
3796         * fold-const.c (extract_muldiv_1): Revert changing order of
3797         operands in case MULT_EXPR of 2003-02-16 patch.
3798
3799 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
3800         Merge changes from new-regalloc-branch
3801
3802         From Michael Matz  <matz@suse.de>
3803         * df.c (df_ref_record_1): Move init of loc to safe point.
3804         Only recurse on interesting things in parallels.
3805         Handle CLASS_CANNOT_CHANGE_MODE smarter.
3806         (df_uses_record): Ditto.
3807
3808         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
3809         it's already okay to use memory operands in (IE doesn't require
3810         adding another insn or anything).
3811
3812 2003-03-20  Richard Henderson  <rth@redhat.com>
3813
3814         PR middle-end/6348
3815         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
3816         different from word_mode.
3817
3818 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
3819
3820         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
3821         source operand to those that can be extracted with bld.
3822
3823 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
3824
3825         PR 10066
3826         * arm.md (UNSPEC_PIC_BASE): New constant.
3827         (pic_add_dot_plus_four): Wrap with unspec.
3828         (pic_add_dot_plus_eight): Likewise.
3829
3830 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
3831
3832         * config/h8300/h8300.md (*insv_si_1_n): New.
3833         (*insv_si_1_n_lshiftrt): Likewise.
3834
3835 2003-03-20  Roger Sayle  <roger@eyesopen.com>
3836
3837         * fold-const.c (fold_mathfn_compare): New function to simplify
3838         comparisons against built-in math functions.  Fold comparisons
3839         of sqrt against constants.
3840         (fold): Call fold_mathfn_compare when appropriate.
3841
3842 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
3843
3844         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
3845         information.
3846
3847 2003-03-20  Per Bothner  <pbothner@apple.com>
3848
3849         Various cleanups to help compile server.
3850
3851         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
3852         and pass that to _cpp_init_hashtable.
3853         (cpp_read_main_file):  Drop hash_table* argument; don't call
3854         _cpp_init_hashtable.
3855         * cpplib.h:  Update declarations to match.
3856         * c-opts.c (c_common_init_options):  Pass ident_hash to
3857         cpp_create_reader.
3858         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
3859         * fix-header.c (read_scan_file):  Likewise pass NULL table to
3860         cpp_create_reader rather than cpp_read_main_file.
3861
3862         * cppfiles.c (cpp_rename_file):  Generalized and renamed
3863         to cpp_change_file.
3864         * cpplib.h:  Update declaration to match.
3865         * c-opts.c (push_command_line_line, finish_options):  Change
3866         cpp_rename_file calls to cpp_change_file.
3867
3868         * line-map.c (add_line_map):  Allow leaving the outermost file.
3869         Allowing entering an outermost-file after the initial time.
3870
3871         * toplev.c (pop_srcloc):  Allow popping from initial file.
3872
3873 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
3874
3875         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
3876
3877 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
3878
3879         * config/h8300/h8300.md (a peephole2): New.
3880
3881 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
3882
3883         * config/h8300/h8300.md (*addsi3_and_r_1): New.
3884         (*addsi3_and_not_r_1): Likewise.
3885
3886 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
3887
3888         * Makefile.in (STRICT2_WARN): Add @WERROR@.
3889         (GCC_WARN_CFLAGS): Remove $(WERROR).
3890         (fixinc.sh-warn): New.
3891         * ada/Make-lang.in (ada-warn): Add $(WERROR).
3892         * cp/Make-lang.in (cp-warn): Add $(WERROR).
3893         * f/Make-lang.in (f-warn): Add $(WERROR).
3894         * java/Make-lang.in (java-warn): Add $(WERROR).
3895         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
3896
3897 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
3898
3899         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
3900         langhooks-def.h (lhd_tree_dump_dump_tree),
3901         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
3902         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
3903         true and false in return statements.
3904
3905 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
3906
3907         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
3908         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
3909         DWARF_INITIAL_LENGTH_SIZE.
3910         (output_compilation_unit_header, output_pubnames, output_aranges)
3911         (output_line_info): Output 0xffffffff escape value for 64-bit
3912         DWARF extension.
3913         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
3914
3915 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
3916
3917         * config/s390/s390.c (s390_preferred_reload_class): Do not
3918         force constants to the pool unless necessary.
3919         (s390_decompose_address): Prefer to use pointer as base,
3920         not index register.
3921         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
3922         Q alternative.
3923         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
3924         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
3925         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
3926         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
3927         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
3928
3929 2003-03-19  Jan Hubicka  <jh@suse.cz>
3930
3931         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
3932         * i386.c (use_fast_prologue_epilogue): Remove.
3933         (ix86_frame): New field save_regs-using_mov;
3934         (ix86_compute_frame_layout):  Decide on fast prologues;
3935         allocate saved registers in red zone.
3936         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
3937
3938 2003-03-19  Nick Clifton  <nickc@redhat.com>
3939
3940         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
3941
3942 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3943
3944         PR 10062
3945         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
3946         * pa-protos.h (output_lbranch): New prototype.
3947         * pa.c (compute_frame_size): Change size of the frame marker on the
3948         64-bit ports to 48 bytes.
3949         (pa_output_function_prologue): Document why SAVE_SP is set.
3950         (hppa_expand_prologue): Save previous stack pointer into frame marker
3951         on targets which use the hpux unwind library.
3952         (output_cbranch): Use output_lbranch.
3953         (output_lbranch): New function to output long unconditional branches.
3954         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
3955         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
3956         64-bit ports.
3957         * pa.md (jump): Use output_lbranch.
3958         (allocate_stack): New expander for dynamic stack allocation.
3959
3960 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
3961
3962         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
3963         when debugging on XCOFF targets.  Delete "abi" temp.
3964
3965         PR target/10073
3966         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
3967
3968 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
3969
3970         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
3971         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
3972         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
3973
3974         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
3975         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
3976         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
3977
3978 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
3979
3980         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
3981         the result of machopic_function_base_name.
3982         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
3983         string rather than a static array.
3984
3985         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
3986
3987         * gengtype.c: Include rtl.h.
3988         (enum rtx_code): Don't define.
3989         (rtx_format): Make declaration match rtl.h.
3990         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
3991         users.
3992         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
3993         * Makefile.in (gengtype.o): Update dependencies.
3994
3995 2003-03-18  Andreas Schwab  <schwab@suse.de>
3996
3997         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
3998         martin@blom.org.
3999
4000 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
4001
4002         * function.c (next_block_index): Mark with GTY.
4003
4004         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
4005
4006 2003-03-18  Richard Henderson  <rth@redhat.com>
4007
4008         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
4009         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
4010         until after reload.
4011
4012 2003-03-18  Richard Henderson  <rth@redhat.com>
4013
4014         * builtins.c (expand_builtin_unop): New target_mode operand;
4015         use it to convert the result to the correct mode.
4016         (expand_builtin): Update all callers.
4017
4018 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
4019
4020         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
4021
4022 2003-03-18  Jan Hubicka  <jh@suse.cz>
4023
4024         * i386.md:  Fix previous commit that mistakely applied the patch
4025         twice.
4026
4027         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
4028         canonicalized.
4029         (memrefs_conflict_p): Likewise.
4030         (addr_side_effect_eval): Canonicalize the constructed address.
4031
4032 2003-03-18  Jan Hubicka  <jh@suse.cz>
4033
4034         * i386.md (cvtts?2si peep2): New.
4035
4036 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
4037
4038         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
4039
4040 2003-03-18  Andreas Schwab  <schwab@suse.de>
4041
4042         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
4043         for format.
4044
4045 2003-03-17  Jason Merrill  <jason@redhat.com>
4046
4047         PR c++/10091
4048         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
4049         an unaligned member of TREE_ADDRESSABLE type.
4050
4051 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
4052
4053         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
4054         (TARGET_PROFILE_KERNEL): Define.
4055         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
4056         (PROFILE_BEFORE_PROLOGUE): Don't define.
4057         (PROFILE_KERNEL): Remove hacks.
4058         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
4059         (rs6000_stack_info): No need to save lr if just for profiling when
4060         TARGET_PROFILE_KERNEL.
4061         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
4062         (output_function_profiler): Localize label generation.  Emit code
4063         for kernel profiling.
4064
4065 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
4066
4067         * config/h8300/h8300-protos.h: Add a prototype for
4068         byte_accesses_mergeable_p.
4069         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
4070         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
4071         (a splitter): Likewise.
4072         (*iorsi3_ashift_16_ashift_24): Likewise.
4073         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
4074
4075 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4076
4077         * dwarf2asm.h: Delete obsolete comment.
4078         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
4079         dw2_asm_output_pcrel, dw2_asm_output_addr,
4080         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
4081         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
4082         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
4083         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
4084
4085 2003-03-17  Zack Weinberg <zack@codesourcery.com>
4086
4087         * c-tree.h (struct lang_identifier): Remove error_locus field.
4088         (IDENTIFIER_ERROR_LOCUS): Kill.
4089         (record_function_scope_shadow): New prototype.
4090         * c-typeck.c (build_external_ref): Don't complain if
4091         decl is error_mark_node.  When not at file scope, bind the
4092         decl's local value to error_mark_node to suppress further
4093         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
4094
4095         * c-decl.c (get_function_binding_level): New static function.
4096         (record_function_scope_shadow): New exported function.
4097         (c_make_fname_decl): Use get_function_binding_level.
4098
4099 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
4100
4101         * stmt.c (tail_recursion_args): Call promote_mode to set
4102         unsignedp flag correctly before calling convert_move.
4103
4104 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4105
4106         * loop-unroll.c (decide_peel_completely,
4107         decide_unroll_constant_iterations, decide_unroll_stupid,
4108         decide_unroll_runtime_iterations, decide_peel_simple): Set
4109         loop->has_desc.
4110
4111 2003-03-17  Jan Hubicka  <jh@suse.cz>
4112
4113         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
4114
4115 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
4116
4117         * function.c (assign_parms): For a struct value address passed as
4118         first argument, delay the function's result RTL setup code until
4119         after the emission of parameter conversions.
4120
4121 2003-03-17  Dave Love  <fx@gnu.org>
4122             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4123
4124         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
4125         __arch64__ to match Compaq cc.
4126
4127 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
4128
4129         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
4130         (c_common_init): Set EBCDIC in cpp options.
4131         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
4132         not conditional compilation.
4133         * cpplib.h (struct cpp_options): New entry EBCDIC.
4134
4135 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
4136
4137         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
4138
4139 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4140
4141         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
4142         argument to 0 for redirect_jump.
4143
4144 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
4145
4146         PR c++/8805
4147         * except.c (eh_region_u_cleanup): Add prev_try.
4148         (expand_eh_region_end_cleanup): Set it.
4149         (reachable_handlers): Use it to skip over cleanup blocks.
4150
4151 2003-03-17  Andreas Jaeger  <aj@suse.de>
4152
4153         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
4154
4155 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
4156
4157         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
4158         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
4159         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
4160         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
4161
4162 2003-03-16  Richard Henderson  <rth@redhat.com>
4163
4164         * simplify-rtx (simplify_binary_operation): Don't abort for
4165         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
4166
4167 2003-03-16  Richard Henderson  <rth@redhat.com>
4168
4169         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
4170         optimize_size as well.
4171
4172 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
4173
4174         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
4175         for D register to specify the low part of it, aka B.
4176         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
4177         the register if we are loading 1 or -1 to it; avoid using temp
4178         register when moving X/Y to Y/X.
4179         (m68hc11_gen_movqi): Likewise.
4180         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
4181
4182 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
4183
4184         PR optimization/9016
4185         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
4186         into the constant pool.
4187
4188 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4189
4190         PR target/9164
4191         * tree.c (get_narrower): For extensions with unchanged bit number,
4192         return the unsignedness of the outer mode.
4193
4194 2003-03-16  Roger Sayle  <roger@eyesopen.com>
4195
4196         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
4197         to avoid "may be used uninitialized" warning on ia64-hpux.
4198         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
4199
4200 2003-03-16  Andreas Jaeger  <aj@suse.de>
4201
4202         * configure.in: Improve check for memcheck.h.
4203         * configure: Regenerated.
4204
4205 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
4206
4207         * doc/cppopts.texi: Remove documentation of -A-.
4208
4209 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
4210
4211         * doc/libgcc.texi: Remove @tie.
4212
4213 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
4214
4215         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
4216         (rtx_pair): Added new element update_label_nuses, renamed to
4217         replace_label_data.
4218         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
4219         replace_label_data instead of rtx_pair.
4220         * loop.c (load_mems): Likewise.
4221         * rtlanal.c (replace_label): Replace label in pool constants and in
4222         INSN_LIST (in REG_LABEL note).
4223         (subrtx_p): Renamed to rtx_referenced_p.
4224         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
4225         LABEL_REF with CODE_LABEL, traverse constants from pool.
4226
4227 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
4228             Zack Weinberg  <zack@codesourcery.com>
4229
4230         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
4231         * doc/libgcc.texi: New file.
4232         * doc/interface.texi: Delete paragraph about libgcc interface.
4233         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
4234
4235 2003-03-15  Jason Merrill  <jason@redhat.com>
4236
4237         PR debug/9039
4238         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
4239
4240         PR debug/6387
4241         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
4242         function DIEs at toplevel.
4243         (decls_for_scope): At -g1, don't descend into subblocks.
4244
4245 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
4246
4247         * varasm.c (struct rtx_const): Change type of un.addr member
4248         to struct holding an additional 'symbol' member.
4249         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
4250         with equal string addresses as equal.
4251         (simplify_subtraction): Adapt to struct rtx_const change.
4252
4253 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
4254
4255         * fix-header.c (read_scan_file): Read main file before handling -D.
4256
4257 2003-03-15  Roger Sayle  <roger@eyesopen.com>
4258
4259         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
4260         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
4261         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
4262         (find_sub_basic_blocks): Likewise.
4263         * cgraphunit.c (cgraph_expand_functions): Likewise.
4264         * dwarf2out.c (prune_unused_types): Likewise.
4265         * expr.c (store_field): Likewise.
4266         * genextract.c (print_path): Likewise.
4267         * haifa-sched.c (schedule_insn): Likewise.
4268         * lcm.c (compute_antinout_edge): Likewise.
4269         * loop-unroll.c (decide_peel_once_rolling): Likewise.
4270         * ra-colorize.c (ra_colorize_free_all): Likewise.
4271         * ra-debug.c (dump_igraph): Likewise.
4272         (debug_hard_reg_set): Likewise.
4273         * reg-stack.c (reg_to_stack): Likewise.
4274         * rtlanal.c (refers_to_regno_p): Likewise.
4275         * tracer.c (layout_superblocks): Likewise.
4276
4277 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
4278
4279         * fix-header.c (read_scan_file): Fix thinko.
4280
4281 2003-03-15  Glen Nakamura  <glen@imodulo.com>
4282
4283         * reload1.c (choose_reload_regs): Use && instead of ||
4284         with REG_CANNOT_CHANGE_MODE_P condition.
4285
4286 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
4287
4288         * Makefile.in: Update.
4289         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
4290         * c-lex.c (init_c_lex): Register builtins hook is dead.
4291         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
4292         (c_common_decode_option): Don't call cpp_handle_option.
4293         Handle -A, -D and -U.
4294         (handle_deferred_opts): Simplify.
4295         (finish_options): Define builtins and command line macros.
4296         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
4297         * cppinit.c: Don't include intl.h.
4298         (init_builtins): Rename cpp_init_builtins.  No hook to call.
4299         (init_library): Don't need to sort options.
4300         (cpp_create_reader): Don't set pending.
4301         (cpp_destroy): Don't free pending.
4302         (struct pending_option, cl_directive_handler, struct cpp_pending,
4303         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
4304         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
4305         cl_options, cpp_handle_option): Remove.
4306         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
4307         cpp_finish_options): Remove.
4308         (cpp_init_builtins): New.
4309         * fix-header.c (read_scan_file): Update to handle -D.  Fix
4310         handling of -I.  Replace call to cpp_finish_options.
4311
4312 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4313
4314         PR optimization/9387
4315         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
4316         for conditional returns.
4317
4318 2003-03-14  Jason Merrill  <jason@redhat.com>
4319
4320         PR optimization/6871
4321         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
4322
4323 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
4324
4325         * c-opts.c (finish_options): New.
4326         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
4327         (missing_arg): Handle OPT_include and OPT_imacros.
4328         (c_common_init, c_common_parse_file): Use finish_options.
4329         (handle_deferred_opts): Update.
4330         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
4331         (cpp_finish_options): Don't handle -imacros here.
4332         (no_fil): Remove.
4333         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
4334
4335 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
4336
4337         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
4338         rs6000_maybe_dead if !fromprolog.
4339
4340 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
4341
4342         * Makefile.in: Update.
4343         * c-common.h (fe_file_change, pp_file_change): New.
4344         * c-lex.c (init_c_lex): Don't set cb_file_change.
4345         (c_common_parse_file): Move to c-opts.c.
4346         (cb_file_change): Rename fe_file_change.
4347         * c-opts.c: Include debug.h.
4348         (warn_unused_macros, include_cursor): New.
4349         (push_command_line_include, cb_file_change): New.
4350         (COMMAND_LINE_OPTIONS): Handle -include.
4351         (c_common_decode_option): Use local warn_unused_macros.
4352         Handle OPT_include.
4353         (c_common_post_options): Set file change callback.
4354         (handle_deferred_opts): Skip -include.  Don't free the array.
4355         (c_common_init): Call cpp_finish_options here, and push an
4356         initial -include file.
4357         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
4358         (preprocess_file): Don't call cpp_finish_options.
4359         (init_pp_output): Don't set the file change callback.
4360         (pp_file_change): Return if no line commands or no output.
4361         * cpphash.h (next_include_file, first_unused_line): Remove.
4362         * cppinit.c (include_head, include_tail): Remove.
4363         (cpp_destroy): Don't free -include chain.
4364         (cpp_finish_options): Don't handle -include, or worry about
4365         -Wunused-macros.
4366         (_cpp_maybe_push_include_file): Remove.
4367         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
4368         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
4369         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
4370         Used flag is set based upon the state of the warn_unused_macros
4371         flag, and so use of first_unused_line is unnecessary.
4372
4373 2003-03-13  Jan Hubicka  <jh@suse.cz>
4374
4375         * cselib.c (clear_table): Do not take argument; always clear just
4376         used slots.
4377         (cselib_process_insn):  Update call of clear_table
4378         (cselib_init): Do not call clear_table.
4379         (cselib_finish): Clear table.
4380
4381         * cse.c (count_reg_usage): Do not check side_effects_p.
4382         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
4383         like noop.
4384         (find_reg_equal_equiv_note): Do not use find_reg_note.
4385
4386 2003-03-14  Richard Henderson  <rth@redhat.com>
4387
4388         PR target/9700
4389         * config/alpha/alpha.c (alpha_va_start): Account for
4390         current_function_pretend_args_size in the AP offset.
4391
4392         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
4393         (INITIAL_ELIMINATION_OFFSET): Move out of line.
4394         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
4395         (alpha_initial_elimination_offset) New.
4396         * config/alpha/alpha-protos.h: Update.
4397
4398 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
4399
4400         * stmt.c (expand_start_case): Call emit_queue ().
4401
4402 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
4403             Alexandre Oliva  <aoliva@redhat.com>
4404
4405         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
4406         words in new abis.
4407
4408 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
4409
4410         PR optimization/8396
4411         * tree-inline.c (initialize_inlined_parameters): Make sure the value
4412         of read-only constant arguments is passed with the right type.
4413
4414 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
4415
4416         * doc/extend.texi (Function Names): Make the example compilable.
4417
4418 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
4419
4420         * config/rs6000/rs6000.c (processor_target_table): Really allow
4421         GP optional instructions on Power4.
4422
4423 2003-03-13  Roger Sayle  <roger@eyesopen.com>
4424
4425         * calls.c (flags_from_decl_or_type): Factor and remove redundant
4426         conditional tests.
4427
4428 2003-03-13  Mike Stump  <mrs@apple.com>
4429
4430         * ggc-page.c (struct page_entry): Remove varray.h header.
4431         Add index_by_depth field.
4432         Remove save_in_use_p field.
4433         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
4434         by_depth_max, by_depth, and save_in_use fields.
4435         (INITIAL_PTE_COUNT): Add.
4436         (save_in_use_p_i): Add.
4437         (save_in_use_p): Add.
4438         (adjust_depth): Add.
4439         (move_ptes_to_front): Add.
4440         (push_depth): Add.
4441         (push_by_depth): Add.
4442         (prefetch): Add.
4443         (free_page): Add support for and use faster data structures.
4444         (ggc_alloc): Likewise.
4445         (init_ggc): Likewise.
4446         (ggc_recalculate_in_use_p): Likewise.
4447         (ggc_pop_context): Likewise.
4448         (clear_marks): Likewise.
4449         (ggc_pch_read): Likewise.
4450         * Makefile.in (ggc-page.o): Remove varray.h.
4451
4452 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
4453
4454         * ChangeLog: Rotated last year's entries to...
4455         * ChangeLog.8: New.
4456
4457         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
4458         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
4459         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
4460         config/ia64/ia64-protos.h, config/ia64/ia64.c,
4461         config/ia64/ia64.h, config/ia64/ia64.md,
4462         config/ia64/itanium1.md, config/ia64/itanium2.md,
4463         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
4464         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
4465
4466 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
4467
4468         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
4469         Differentiate endianness.
4470         (s6000_override_options): Use cpu type instead of TARGET_SPE.
4471
4472 2003-03-13  Nick Clifton  <nickc@redhat.com>
4473
4474         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
4475         LDM instructions with writeback enabled.
4476         (output_return_instruction): Likewise.
4477
4478         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
4479         (CALL_USED_REGISTERS): Remove definition.
4480         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
4481
4482 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
4483
4484         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
4485         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
4486         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
4487         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
4488         (rs6000_legitimize_address): Formatting.
4489         (rs6000_emit_move): Likewise.
4490         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
4491         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
4492         (rs6000_elf_select_section): Comment reason for shlib being
4493         set for ABI_AIX.
4494         (rs6000_elf_unique_section): Likewise.
4495         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
4496         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
4497         as well as flag_pic.
4498         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4499         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4500         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
4501
4502 2003-03-13  Richard Henderson  <rth@redhat.com>
4503
4504         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
4505
4506         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
4507         (ia64_gp_save_reg): Remove.
4508         (struct ia64_frame_info): Move to the beginning of the file;
4509         add reg_save_gp.
4510         (ia64_expand_call): Rearrange for new call patterns.
4511         (ia64_reload_gp): New.
4512         (ia64_split_call): New.
4513         (ia64_compute_frame_size): Allocate reg_save_gp.
4514         (ia64_expand_prologue): Save reg_save_gp.
4515         (ia64_expand_epilogue): Don't restore gp.
4516         (ia64_hard_regno_rename_ok): Remove R4 hack.
4517         (ia64_function_ok_for_sibcall): New.
4518         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
4519         call try_split on sibcall pattern.
4520         * config/ia64/ia64-protos.h: Update.
4521         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
4522         Rename from nopic versions.  Confiscate 2nd argument to call as
4523         a marker.
4524         (call_pic, call_value_pic, sibcall_pic): Remove.
4525         (call_gp, call_value_gp, sibcall_gp): New.
4526         (builtin_setjmp_setup): Remove.
4527         (builtin_setjmp_receiver): Call ia64_reload_gp.
4528
4529 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
4530
4531         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
4532         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
4533         "GNU CC" with "GCC".
4534
4535         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
4536         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4537         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
4538         GCC, not GNU CC.
4539
4540         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
4541         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
4542
4543         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
4544         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
4545         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
4546         "GNU CC" with "GCC".
4547
4548         * config/v850/lib1funcs.asm, config/v850/rtems.h,
4549         config/v850/v850-c.c, config/v850/v850-protos.h,
4550         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
4551         GCC, not GNU CC.
4552
4553         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
4554         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
4555         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
4556         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
4557         GNU CC.
4558
4559 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
4560
4561         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
4562
4563 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
4564
4565         * fixinc/fixinc.interix: Remove dead code (most of it).
4566         * fixinc/fixinc.dgux: Remove.
4567
4568         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
4569         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
4570
4571 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4572
4573         * pa.c (pa_init_builtins): Fix warning.
4574
4575 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
4576
4577         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
4578         (ASM_OUTPUT_XDATA_SHORT): Remove.
4579         (ASM_OUTPUT_XDATA_INT): Remove.
4580         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
4581         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
4582         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
4583         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
4584
4585 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
4586
4587         PR c++/7050
4588         * expr.c (store_expr): Don't attempt to store void-typed trees,
4589         just evaluate them for side effects.
4590
4591 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
4592
4593         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
4594         * cppinit.c (push_include): Move with changes to cppfiles.c.
4595         (cpp_read_main_file): Mark named operators here...
4596         (cpp_finish_options): ...not here.  Update.
4597         (_cpp_maybe_push_include_file): Update.
4598         * cpplib.h (cpp_push_include, cpp_rename_file): New.
4599
4600 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
4601
4602         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
4603         _gcc_COMPUTE_GAS_VERSION.
4604         * configure.in: Use them.
4605         * configure: Regenerate.
4606
4607 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
4608
4609         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
4610         to detect carry.
4611         (subdi3): Reorder emitted instructions.
4612
4613 2003-03-12  Andreas Jaeger  <aj@suse.de>
4614
4615         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
4616         NETBSD_OS_CPP_BUILTINS_LP64.
4617
4618 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
4619
4620         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
4621         Rearrange.  Reorganize.
4622         * configure.in: Rearrange.
4623         * configure: Regenerate.
4624
4625 2003-03-12  Andreas Jaeger  <aj@suse.de>
4626
4627         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
4628         LP64 targets.
4629
4630         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
4631         _LP64.
4632
4633         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
4634         _LP64 macros here.
4635         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4636
4637         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
4638         NETBSD_OS_CPP_BUILTINS_LP64.
4639         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
4640         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
4641
4642         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
4643
4644 2003-03-12  Jan Hubicka  <jh@suse.cz>
4645
4646         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
4647
4648 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
4649
4650         Fix PR target/9797 and PR c/9853.
4651         * stmt.c (expand_decl_init): Call push_temp_slots () and
4652         pop_temp_slots ().
4653
4654 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
4655
4656         * sh.c: Include basic-block.h.
4657         (sh_output_mi_thunk, emit_load_ptr): New functions.
4658         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
4659
4660 2003-03-12  Nick Clifton  <nickc@redhat.com>
4661
4662         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
4663         (CALL_USED_REGISTERS): Likewise.
4664         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
4665         describing how this value is calculated.
4666
4667 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
4668
4669         * configure.in (rlim_t): Define to long if no valid definition
4670         found in sys/resource.h.
4671         * config.in, configure: Regenerate.
4672
4673 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
4674
4675         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
4676         TARGET_OS_CPP_BUILTINS.
4677         * config/mcore/mcore-pe.h: Similarly.
4678         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
4679         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
4680
4681 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
4682
4683         PR c/9928
4684         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
4685         only if it is a VAR_DECL.
4686
4687 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
4688
4689         PR optimization/9888
4690         * config/i386/i386.md (jcc_1): Fix range.
4691         (jcc_2): Likewise.
4692         (jump): LIkewise.
4693         (doloop_end_internal): Likewise.
4694
4695 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
4696
4697         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
4698         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
4699         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
4700         DLL_IMPORT_EXPORT_PREFIX and "i."
4701         (i386_pe_dllexport_name_p): Here.
4702         (i386_pe_dllimport_name_p): Here.
4703         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
4704         not 9 chars when getting identifier name.
4705         (i386_pe_mark_dllimport): Here.
4706         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
4707         not 9 chars when getting identifier name. Correct comment.
4708         (i386_pe_strip_name_encoding): Here. Add comments for different
4709         cases.
4710         (gen_fastcall_suffix): Break down xmalloc() argument to
4711         components.
4712         (gen_stdcall_suffix): Likewise.
4713         Update copyright year.
4714
4715 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
4716
4717         PR optimization/9888
4718         * config/i386/i386.md (movsi_1): Remove special alternatives
4719         for %eax register.
4720         (movsi_1_nointernunit): Likewise.
4721         (movhi_1): Likewise.
4722         * config/i386/i386.c (memory_address_length): Do not use
4723         short displacement when there is no base.
4724         (ix86_attr_length_address_default): Handle LEA instructions.
4725
4726 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
4727
4728         * c-cppbuiltin.c (builtin_define_std): Make non-static.
4729
4730 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
4731
4732         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
4733         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
4734         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
4735         * config/freebsd.h (CPP_PREDEFINES): Remove.
4736         (TARGET_OS_CPP_BUILTINS): New.
4737         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
4738         instead of TARGET_OS_CPP_BUILTINS.
4739         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
4740
4741 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
4742
4743         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
4744
4745 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
4746
4747         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
4748         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
4749
4750         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
4751
4752 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
4753
4754         * toplev.c (independent_decode_option): Return success for --help,
4755         --target-help and --version.
4756
4757 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
4758
4759         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
4760         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
4761         specified.
4762         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
4763         DRIVER_SELF_SPECS.
4764         (LINK_SPEC): Let endian options affect the linker emulation name.
4765
4766 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
4767
4768         * sh.md (reload_inqi): Fix mode for source in second set.
4769
4770 2003-03-11  Jan Hubicka  <jh@suse.cz>
4771
4772         * cselib.c (cselib_invalidate_mem_1): Move too ...
4773         (cselib_invalidate_mem): ... here; use new list
4774         (dummy_val, first_containing_mem): New static variables.
4775         (clear_table): Initialize first_containing_mem.
4776         (discard_useless_values):  Compact the containing_mem list.
4777         (add_mem_for_addr): Add to the list.
4778         * cselib.h (cselib_val): Add next_containing_mem.
4779
4780 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
4781
4782         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
4783         instructions for e500.
4784
4785 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
4786
4787         * Makefile.in: Update.
4788         * c-cppbuiltin.c: Include tm_p.h.
4789
4790 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
4791
4792         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
4793
4794         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
4795         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
4796         (_Unwind_SetGR): Same.
4797         (_Unwind_GetGRPtr): New.
4798         (_Unwind_SetGRPtr): New.
4799         (uw_update_context_1): Use accesor functions instead of accessing
4800         context->reg[] directly.
4801         (uw_install_context_1): Same.
4802         (execute_cfa_program): Same.
4803         (__frame_state_for): Same.
4804
4805         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
4806         the synthetic register offset.
4807
4808         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
4809
4810 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
4811
4812         * config/cris/cris.md: Remove lingering EGCS reference.
4813         ("*extopqihi_side_biap"): For HI operation, match
4814         cris_additive_operand_extend_operator, not
4815         cris_operand_extend_operator.  Adjust condition.
4816         ("*extopqihi_side", "*extopqihi"): Ditto.
4817         ("*extopqisi_side_biap"): Correct operand numbers in condition.
4818         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
4819         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
4820         ("*extophisi_swap"): Ditto.
4821         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
4822         PLUS, not cris_operand_extend_operator.  Adjust condition and
4823         output template.
4824         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
4825         * config/cris/cris.h (PREDICATE_CODES): Add
4826         cris_additive_operand_extend_operator.
4827         * config/cris/cris.c (cris_additive_operand_extend_operator):
4828         New predicate.
4829
4830 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
4831
4832         * df.c (read_modify_subreg_p): Change from static to global.
4833         * df.h (read_modify_subreg_p): Add prototype.
4834         * sched-deps.c (sched_analyze_1): Generate true dependency for
4835         strict_low_part, certain subregs and zero/sign_extract.
4836
4837 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
4838
4839         * Makefile.in: Update.
4840         * c-common.c: Don't include real.h or except.h.
4841         (REGISTER_PREFIX): Remove.
4842         (builtin_define_std, builtin_define_with_value,
4843         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
4844         builtin_define_type_max, builtin_define_type_precision,
4845         builtin_define_float_constants): Move to c-cppbuiltin.c.
4846         (c_stddef_cpp_builtins): New.
4847         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
4848         * c-cppbuiltin.c: New, extracted from c-common.c.
4849         (define__GNUC__): New.
4850         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
4851         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
4852         (cpp_unique_options): Don't support no-gcc.
4853         (do_spec_1): Remove support of version specs.
4854         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
4855         * doc/passes.texi: Update.
4856         * doc/tm.texi: Update.
4857
4858 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
4859
4860         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
4861
4862 2003-03-10  Andrew Pinski  <apinski@apple.com>
4863
4864         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
4865         is on should not get here.
4866         (machopic_indirect_data_reference): If dynamic-no-pic is on just
4867         generate high/low parts of the address.
4868         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
4869         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
4870         symbol and labels with a new reg.  Dynamic-no-pic does not have a
4871         pic_offset_table_rtx.
4872         (machopic_select_section): Change references of flag_pic to
4873         MACHOPIC_INDIRECT.
4874         (machopic_asm_out_destructor): Likewise.
4875         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
4876         reference of flag_pic to MACHOPIC_INDIRECT.
4877         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
4878         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
4879         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
4880         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
4881         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
4882         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
4883         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
4884         (TARGET_DYNAMIC_NO_PIC): Define.
4885         (SUBTARGET_SWITCHES): Define, have sub-target switches for
4886         dynamic-no-pic.
4887         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
4888         rs6000_override_options to here. Dynamic-no-pic overrides
4889         pic.
4890         (CC1_SPEC): Change from not static then pic to not static and not
4891         dynamic-no-pic then pic.
4892         * config/rs6000/rs6000.c (rs6000_override_options): Move the
4893         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
4894         (rs6000_legitimize_reload_address): Add case for loading floating in
4895         dynamic-no-pic.
4896         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
4897         of flag_pic to MACHOPIC_INDIRECT.
4898         (secondary_reload_class): Conditional change the reference of
4899         flag_pic to MACHOPIC_INDIRECT.
4900         (rs6000_output_mi_thunk): Change reference of flag_pic to
4901         MACHOPIC_INDIRECT.
4902         (output_profile_hook): Likewise.
4903         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
4904         * config/rs6000/rs6000.md (movdf_low): Add the case for
4905         MACHO_DYNAMIC_NO_PIC_P.
4906         (call): Change references for flag_pic in TARGET_MACHO to
4907         MACHOPIC_INDIRECT.
4908         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
4909         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
4910         * doc/invoke.texi (-mdynamic-no-pic): Document.
4911
4912 2003-03-10  Devang Patel  <dpatel@apple.com>
4913
4914         PR c++/9394
4915         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
4916         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
4917         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
4918         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
4919         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
4920         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
4921
4922 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4923
4924         PR optimization/7189
4925         * toplev.c (rest_of_compilation):  Move
4926         check_function_return_warnings up to just after
4927         delete_unreachable_blocks.
4928
4929 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
4930
4931         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
4932         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
4933         Declare.
4934         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
4935         for reg rename optimization to avoid using Z and Y registers.
4936
4937 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
4938
4939         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
4940         when adding to X and Y since leax/leay are fast.
4941         ("*addhi3"): Accept 'I' constraint when adding to address register.
4942         ("rotlhi3"): Operand 1 must be a register_operand.
4943         (peephole2): New peephole to optimize some adds.
4944         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
4945         to represent -2 .. 2 small integer range.
4946
4947 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
4948
4949         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
4950         each 16-bit rotation.
4951
4952 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
4953
4954         * c-opts.c (add_prefixed_path): Don't use concat.  When
4955         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
4956         cpp_GCC_INCLUDE_DIR_len characters.
4957
4958 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
4959
4960         * testsuite/gcc.dg/altivec-9.c: New file.
4961
4962         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
4963         (rs6000_emit_prologue): Use rs6000_frame_related instead.
4964
4965 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
4966
4967         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
4968         vectors.
4969         (__ev_convert_u64): Remove macro.  Define as inline.
4970         (__ev_convert_s64): Same.
4971
4972 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
4973
4974         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
4975         (rs6000_stack_t): Add spe_64bit_regs_used.
4976
4977         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
4978         spe_64bit_regs_used, and use it to determine the size of the
4979         frame.
4980         (spe_func_has_64bit_regs_p): New.
4981         (spe_synthesize_frame_save): New.
4982         (rs6000_frame_related): Handle SPE synthetic registers.
4983         (rs6000_emit_prologue): Only save in 64-bits if the function used
4984         any registers in 64-bit mode.
4985         (rs6000_emit_epilogue): Same, but for restore.
4986
4987 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
4988
4989         * arm.h (enum floating_point_type): Delete.  Replace with...
4990         (enum fputype): ... new.
4991         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
4992         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
4993         * arm.md (attr fpu): Reworked for new underlying enum values.
4994         * arm.c (arm_fpu_arch): Now enum fputype.
4995         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
4996         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
4997         Update uses of arm_fpu_arch and arm_fpu_tune.
4998
4999 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
5000
5001         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
5002         (try_crossjump_to_edge): Replace refereces to one jump table by
5003         references to identical jump table.
5004         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
5005         (replace_label): Moved to rtlanal.c.
5006         (struct rtx_pair): Moved to rtl.h.
5007         * rtl.h (struct rtx_pair): Moved from loop.c.
5008         (replace_label): New extern function.
5009         (subrtx_p): New extern function.
5010         (tablejump_p): New extern function.
5011         * rtlanal.c (replace_label): Moved from loop.c.
5012         (subrtx_p_1): New static function.
5013         (subrtx_p): New function.
5014         (tablejump_p): New function.
5015
5016 2003-03-10  Jan Hubicka  <jh@suse.cz>
5017
5018         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
5019
5020         * cfgcleanup.c (merge_blocks): Return where to iterate next.
5021         (try_optimize_cfg): Use return value of merge_blocks
5022
5023 2003-03-10  Michael Matz  <matz@suse.de>
5024
5025         * cfg.c (unchecked_make_edge): New.
5026         (cached_make_edge): Use it.
5027         * basic-block.h (unchecked_make_edge): Declare.
5028         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
5029
5030 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
5031
5032         * fpa.md: New file.  Move all patterns relating to FPA co-processor
5033         to here...
5034         * arm.md: ... from here.
5035         (cirrus.md, fpa.md): Include at end of description.
5036         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
5037         (pic_load_addr_based): Remove register constraint from expander.
5038         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
5039         (sordered, sungt, sunle, sunge, sunlt): Likewise.
5040         (eh_epilogue, tablejump): Likewise.
5041
5042 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5043
5044         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
5045         on operands if it has a PLACEHOLDER_EXPR.
5046
5047 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
5048             Mostafa Hagog
5049
5050         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
5051         condition.
5052
5053 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
5054
5055         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
5056         * config/ip2k/ip2k.h: Similarly.
5057         * config/m32r/m32r.h: Similarly.
5058         * config/m68hc11/m68hc11.h: Similarly.
5059         * config/mn10200/mn10200.h: Similarly.
5060         * config/mn10300/mn10300.h: Similarly.
5061         * config/pdp11/pdp11.h: Similarly.
5062         * config/v850/v850.h: Similarly.
5063         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
5064         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
5065         * config/mips/iris3.h: Remove #if 0 block.
5066
5067 2003-03-09  Roger Sayle  <roger@eyesopen.com>
5068             Joern Rennecke <joern.rennecke@superh.com>
5069
5070         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
5071         pending argument upon return from handle_braces here.
5072         (do_spec_2): Instead handle it upon return from do_spec_1 here.
5073
5074 2003-03-09  Roger Sayle  <roger@eyesopen.com>
5075             Joern Rennecke <joern.rennecke@superh.com>
5076
5077         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
5078         pending argument upon return from handle_braces here.
5079         (do_spec_2): Instead handle it upon return from do_spec_1 here.
5080
5081 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5082
5083         * varasm.c (make_decl_one_only): Use declare_weak().
5084
5085 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5086
5087         PR middle-end/9986
5088         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
5089         after the common builtins.
5090         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
5091         * pa.c (TARGET_INIT_BUILTINS): Define.
5092         (pa_init_builtins): New function.
5093
5094         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
5095         space has been allocated for the outgoing arguments, set the arg
5096         pointer for a call emitted after virtuals have been instantiated
5097         using the stack pointer offset, otherwise abort.
5098
5099 2003-03-09  DJ Delorie  <dj@redhat.com>
5100
5101         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
5102
5103 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
5104
5105         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
5106         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
5107         conversion to integer.
5108         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
5109
5110 2003-03-09  Roger Sayle  <roger@eyesopen.com>
5111
5112         * builtins.def: Fix typo and improve grammar.
5113         * loop-unroll.c (decide_peel_completely): Tidy log message.
5114
5115 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
5116
5117         * config/h8300/h8300.md (*tstsi_upper_bit): New.
5118         (*iorsi3_e2f): Likewise.
5119
5120 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
5121
5122         * config/h8300/h8300.c (h8300_and_costs): Return the number of
5123         assembly instructions needed.
5124         (h8300_shift_costs): Likewise.
5125
5126 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
5127
5128         * config/cris/aout.h (ENDFILE_SPEC): Undef.
5129
5130         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
5131         moves from here ...
5132         * expr.c (emit_move_insn_1): ... to here.
5133
5134         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
5135         (TARGET_OS_CPP_BUILTINS): New macro.
5136         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
5137         (TARGET_OS_CPP_BUILTINS): New macro.
5138         (CPP_PREDEFINES): Don't define.  Move old definitions and...
5139         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
5140         (TARGET_CPU_CPP_BUILTINS): New macro.
5141         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
5142         definitions and the optional __PIC__, __pic__ and
5143         __NO_UNDERSCORES__ definitions to...
5144         (TARGET_OS_CPP_BUILTINS): New macro.
5145
5146         * flags.h (flag_leading_underscore): Declare.
5147
5148         * c-opts.c (c_common_post_options): On fopen failure, return
5149         false, not NULL.
5150
5151 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
5152
5153         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
5154         config.h.
5155         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
5156         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
5157
5158 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
5159
5160         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
5161         CPP_PREDEFINES.
5162         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
5163         CPP_PREDEFINES.
5164
5165 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
5166
5167         * c-common.h (c_common_init, c_common_post_options): Update.
5168         * c-objc-common.c (c_objc_common_init): Update for new prototype.
5169         * c-opts.c (saved_lineno): New.
5170         (c_common_post_options, c_common_init): Update prototypes,
5171         move call to cpp_read_main_file from latter to former.
5172         * c-tree.h (c_ojbc_common_init): Update.
5173         * langhooks-def.h (lhd_post_options): New.
5174         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
5175         * langhooks.c (lhd_post_options): New.
5176         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
5177         * toplev.c (no_backend): New.
5178         (process_options): Call post_options hook and set main_input_filename
5179         and input_filename here.
5180         (lang_dependent_init, do_compile): post_options hook moved to
5181         process_options.
5182         * objc/objc-act.c (objc_init): Update prototype.
5183         * objc/objc-act.h (objc_init): Update prototype.
5184
5185 2003-03-08  Roger Sayle  <roger@eyesopen.com>
5186
5187         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
5188         a complex or vector type, using a load in the original mode.
5189
5190 2003-03-08  Jan Hubicka  <jh@suse.cz>
5191
5192         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
5193         * gt-cgraph.h: New GC file.
5194         * cgraph.c (known_fns): New static variable.
5195         (cgraph_node): Add the decl into varray.
5196
5197 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
5198
5199         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
5200
5201 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
5202
5203         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
5204         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
5205         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
5206         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
5207         All callers changed.
5208         * arm.md, arm.h, arm-protos.h: Updated.
5209
5210         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
5211         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
5212         * arm.c (arm_regno_class, f_register_operand): Updated.
5213
5214 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
5215
5216         * config/cris/cris.h: Remove EGCS references.
5217         (CPP_SPEC): Remove "-$".
5218         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
5219
5220 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
5221
5222         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
5223         preference to CPP_PREDEFINES.
5224
5225 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
5226
5227         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
5228
5229 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
5230
5231         * config/h8300/h8300.md (*extzv_16_8): New.
5232
5233 2003-03-08  Jan Hubicka  <jh@suse.cz>
5234
5235         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
5236         * cgraph.h: (cgraph_local_info): Add can_inline_once
5237         (cgraph_global_info): Add inline_once.
5238         (cgraph_node): Add previous.
5239         (cgraph_remove_node): New.
5240         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
5241         function.
5242         (cgraph_optimize): Call it.
5243         (cgraph_finalize_function):  Set inlinable flags.
5244         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
5245         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
5246         (cgraph_expand_function): Likewise.
5247         * cgraph.c
5248         (cgraph_node): Put nodes into doubly linked chain.
5249         (cgraph_remove_node): New function.
5250         * flags.h (flag_inline_functions_called_once): Declare.
5251         * tree-inline.c: Include cgraph.h
5252         (inlinable_functions_p): Add extra argument to bypass limits.
5253         (expand_call_inline):  Obey cgraph flag.
5254         * tree-inline.h (tree_inlinable_function_p): Update prototype.
5255
5256 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5257
5258         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
5259         irreducible loops.
5260
5261         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
5262         loops info correctly.
5263
5264 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
5265
5266         PR middle-end/7796
5267         * unroll.c (calculate_giv_inc): Handle constants being
5268         loaded with LSHIFTRT.
5269
5270 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
5271
5272         * config/rs6000/rs6000.c (processor_target_table): Do not disable
5273         GP optional instructions on Power3, Power4, 620, and 630.
5274
5275 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
5276
5277         * calls.c: Fix comment formatting.
5278         * cfgloopanal.c: Likewise.
5279         * cfgloopmanip.c: Likewise.
5280         * combine.c: Likewise.
5281         * dwarf2out.c: Likewise.
5282         * ggc-common.c: Likewise.
5283         * langhooks.c: Likewise.
5284         * loop-unroll.c: Likewise.
5285         * loop.c: Likewise.
5286         * ra-build.c: Likewise.
5287         * sbitmap.c: Likewise.
5288         * toplev.c: Likewise.
5289
5290 2003-03-07  James E Wilson  <wilson@tuliptree.org>
5291
5292         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
5293
5294 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
5295
5296         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
5297         support -no-integrated-cpp.
5298
5299         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
5300         than langhooks.name.
5301
5302 2003-03-07  Michael Matz  <matz@suse.de>
5303
5304         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
5305         (DF_FOR_REGALLOC): New.
5306         * df.c (df_ref_record): Set DF_REF_STRIPPED.
5307         (read_modify_subreg_p): Simplify.
5308         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
5309         Use DF_FOR_REGALLOC.
5310         * ra.h (struct web): New member subreg_stripped.
5311         (invalid_mode_change_regs): Declare.
5312         * ra.c (invalid_mode_change_regs): New.
5313         (init_ra): Initialize it.
5314         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
5315         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
5316         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
5317         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
5318         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
5319
5320 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
5321
5322         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
5323         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
5324         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
5325         machine description file from ...
5326         * cirrus.md: ... here.
5327
5328 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
5329
5330         * config/h8300/h8300.md (a peephole2): Don't use
5331         reg_overlap_mentioned_p.
5332
5333 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
5334
5335         * c-pch.c: Include langhooks.h.
5336         (IDENT_LENGTH): New.
5337         (get_ident): New.
5338         (pch_ident): Delete.
5339         (pch_init): Use get_ident, IDENT_LENGTH.
5340         (c_common_valid_pch): Likewise.  Also, use actual language
5341         in warning message.
5342         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
5343
5344         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
5345         c-parse.in.
5346         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
5347         gt-objc-objc-act.h.
5348         (gt-objc-objc-act.h): New rule.
5349         * objc/lang-specs.h: Support PCH.
5350         * objc/objc-act.c: Include gt-objc-objc-act.h.
5351         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
5352         (build_selector_reference_decl): Move idx out, mark for PCH.
5353         (build_class_reference_decl): Likewise.
5354         (build_objc_string_decl): Move *_idx out, mark for PCH.
5355         (build_tmp_function_decl): Move xxx out, mark for PCH.
5356
5357 2003-03-06  Dale Johannesen  <dalej@apple.com>
5358
5359         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
5360         global functions for inlining on Darwin.
5361
5362 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
5363
5364         * haifa-sched.c (schedule_block): Don't call reorder when sorting
5365         is prohibited.
5366
5367 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
5368
5369         * Makefile.in (c-ppoutput.o): Update.
5370         * c-common.h (init_pp_output): New.
5371         (preprocess_file): Update.
5372         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
5373         Register builtins.
5374         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
5375         Make call to cpp_read_main_file common to whether preprocessing
5376         or not.  Don't register builtins.
5377         * c-ppoutput.c: Include c-pragma.h.
5378         (setup_callbacks): Rename init_pp_output.
5379         (preprocess_file): No longer setup callbacks or call
5380         cpp_read_main_file.
5381         * cpphash.h (_cpp_init_mbchar): New.
5382         * cppinit.c (init_library): Call _cpp_init_mbchar.
5383         * cpplex.c (_cpp_init_mbchar): New.
5384
5385 2003-03-06  Roger Sayle  <roger@eyesopen.com>
5386
5387         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
5388         MEM, try loading the MEM into a register and taking the low-part
5389         of that, to help CSE see the use of the MEM in its true mode.
5390
5391 2003-03-05  Tom Tromey  <tromey@redhat.com>
5392
5393         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
5394         Define.
5395
5396 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
5397
5398         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
5399         operand 2.
5400         ("*ineqbranchsi"): Likewise.
5401
5402 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
5403
5404         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
5405         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
5406         register store followed by a stack increment.
5407
5408 2003-03-05  Chris Moller  <cmoller@redhat.com>
5409
5410         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
5411         to inhibit saving CARRY_REGS.
5412
5413         * config/stormy16/stormy16.c (xs_hi_general_operand):
5414         added predicate to detect and error-out on out-of-range
5415         const_ints for movhi.
5416         * config/stormy16/stormy16.md (movhi): use
5417         xs_hi_general_operand.
5418
5419         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
5420         added a check for local vbl size overflow.
5421         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
5422         added predicate to detect and error-out on out-of-range
5423         const_ints for addhi and subhi.
5424         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
5425         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
5426
5427         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
5428         add a term to accept PRE_MODIFY addresses.
5429         * config/stormy16/stormy16.c (xstormy16_expand_move):
5430         add code to expand PRE_MODIFY addresses to an add followed
5431         by a move.
5432
5433 2003-03-06  Jason Merrill  <jason@redhat.com>
5434
5435         * tree-inline.c (inlinable_function_p): Revert earlier change
5436         pending investigation.
5437
5438 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
5439
5440         * config/h8300/h8300.md (a new peephole2): New.
5441
5442 2003-03-06  Jan Hubicka  <jh@suse.cz>
5443
5444         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
5445
5446 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5447
5448         * dwarf2out.c (size_of_die): Compute size of external reference to
5449         die correctly.
5450
5451 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
5452
5453         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
5454         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
5455         expanders.
5456
5457 2003-03-05  Roger Sayle  <roger@eyesopen.com>
5458
5459         * expr.h (lang_expand_expr): Delete obsolete prototype.
5460
5461 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
5462
5463         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
5464
5465 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
5466
5467         * config/h8300/h8300.md (a peephole2): Generalize to
5468         accept a memory operand.
5469
5470 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
5471
5472         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
5473         * config/alpha/alpha.c (print_operand, case '+'): New.
5474         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
5475         (call_value_osf_1_noreturn): Likewise.
5476
5477 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5478
5479         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
5480         (expand_end_bindings): Likewise.
5481
5482 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5483
5484         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
5485         (epilogue): Don't generate return_external_pic when emitting PA 2.0
5486         code.
5487
5488 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
5489
5490         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
5491
5492         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
5493
5494         * hooks.c (hook_rtx_rtx_null): New.
5495
5496         * hooks.h (hook_rtx_rtx_null): Protoize.
5497
5498         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
5499         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
5500
5501         * target.h (struct gcc_target): Add dwarf_register_span.
5502
5503         * dwarf2out.c (multiple_reg_loc_descriptor): New.
5504         (one_reg_loc_descriptor): New.
5505         (reg_loc_descriptor): Add support for values that span more than
5506         one register.
5507
5508 2003-03-05  Jan Hubicka  <jh@suse.cz>
5509
5510         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
5511         * alias.c:  Include cgraph.h
5512         (mark_constant_function): Use cgraph_rtl_info.
5513         * calls.c:  Include cgraph.h
5514         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
5515         calls.
5516         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
5517         * cgraph.c (cgraph_rtl_info): New function.
5518         * cgraph.h (cgraph_rtl_info): Declare
5519         (cgraph_rtl_info): Likewise.
5520         * function.h (struct function): Add recursive_call_emit.
5521         * toplev.c: Include cgraph.h.
5522         (rest_of_compilation): Set preferred_incoming_stack_boundary.
5523
5524 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
5525
5526         * config/h8300/h8300.c (output_simode_bld): Clear the
5527         destination first if possible.
5528         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
5529         alternative.
5530         (extzv_1_r_inv_h8300hs): Likewise.
5531
5532 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5533
5534         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
5535         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
5536         * cfgloop.c (flow_loop_free): Made global.
5537         (establish_preds): New static function.
5538         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
5539         (get_loop_exit_edges): New.
5540         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
5541         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
5542         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
5543         loops.
5544         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
5545         removability of an edge.
5546         (fix_irreducible_loops): New static function.
5547         (find_path, remove_path): Add ability to remove enclosing loops.
5548         (unloop): New.
5549         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
5550         flags.
5551         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
5552         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
5553         not neccessary.
5554         (decide_peel_completely, peel_loops_completely): Allow complete peeling
5555         of non-duplicable once rolling loops.
5556         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
5557
5558 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
5559
5560         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
5561         for align_jumps is 4.
5562
5563         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
5564         use GENERAL_REGS.
5565
5566 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
5567
5568         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
5569         according to va_arg type.
5570         (EXPAND_BUILTIN_VA_ARG): Remove.
5571         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
5572         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
5573
5574 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
5575
5576         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
5577         else clauses.
5578
5579 2003-03-05  Michael Matz  <matz@suse.de>
5580
5581         * i386/i386.c (ix86_save_reg): Also test
5582         current_function_uses_const_pool.
5583
5584 2003-03-05  Michael Matz  <matz@suse.de>
5585
5586         * unwind.h: Add the GPL exception.
5587         * Makefile.in (USER_H): Add unwind.h.
5588
5589 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
5590
5591         PR c/9799
5592         * c-typeck.c (push_init_level): Add sanity check.
5593
5594 2003-03-05  Jan Hubicka  <jh@suse.cz>
5595
5596         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
5597         RTL inlining is done.
5598
5599         * cgraphunit.c (cgraph_mark_local_functions): New local function.
5600         (cgraph_optimize): Mark local functions.
5601         * i386-protos.h (init_cumulative_args): Update prototype.
5602         * i386.c (init_cumulative_args): Use register passing convention for
5603         local functions.
5604
5605         * cgraph.c (cgraph_global_info_ready): New global variable
5606         (cgraph_local_info, cgraph_global_info): New functions.
5607         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
5608         structures.
5609         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
5610         Declare.
5611         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
5612         (cgraph_mark_functions_to_output): Use inline_many.
5613         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
5614         (cgraph_expand_functions): Expand inline functions last.
5615         (cgraph_optimize): Do not emit uneeded functions.
5616
5617 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
5618
5619         * expr.c (convert_modes): Check for legal hard register.
5620
5621 2003-03-04  Tom Tromey  <tromey@redhat.com>
5622
5623         * doc/sourcebuild.texi (Front End Directory): Document tags.
5624         * configure: Rebuilt.
5625         * configure.in (target_list): Added tags.
5626         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
5627         TAGS files by reference.
5628         * objc/Make-lang.in (objc.tags): New target.
5629
5630 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5631
5632         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
5633         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
5634         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
5635         gcov_read_string, gcov_write_length): Modified to enable reading/
5636         writing of whole .da file just once.
5637         (da_file_open, da_file_close, da_file_eof, da_file_error,
5638         da_file_position, da_file_seek, da_file_write, da_file_read): New
5639         functions.
5640         (actual_da_file, actual_da_file_position, actual_da_file_length,
5641         actual_da_file_buffer, actual_da_file_buffer_size): New static
5642         functions.
5643         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
5644         just once.
5645
5646
5647 2003-03-04  Andreas Schwab  <schwab@suse.de>
5648
5649         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
5650         offset without frame pointer.
5651
5652 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
5653
5654         * expr.c (expand_expr): Call promote_mode to set unsignedp.
5655
5656 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
5657
5658         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
5659         * configure: Regenerated.
5660         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
5661
5662 2003-03-04  Andreas Jaeger  <aj@suse.de>
5663
5664         * configure.in: Check for <memcheck.h>.
5665         * configure: Regenerated.
5666
5667         * config.in: Define HAVE_MEMCHECK_H.
5668
5669         * ggc-common.c: Use <memcheck.h> if available instead of
5670         <valgrind.h>.
5671         * ggc-page.c: Likewise.
5672         * cppfiles.c: Likewise.
5673
5674 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
5675
5676         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
5677
5678 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5679
5680         PR c/9262
5681         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
5682         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
5683
5684 2003-03-04  Jan Hubicka  <jh@suse.cz>
5685
5686         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
5687         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
5688         for -O3.
5689
5690 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
5691
5692         * configure.in: Delete three unused variables.  Move a variable
5693         definition closer to its use.  Simplify use_collect2 logic.  Start to
5694         organize.  Simplify tests for in-tree gas and ld.
5695         * configure: Regenerate.
5696
5697 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
5698
5699         * Makefile.in: Update.
5700         * c-common.c (flag_no_line_commands, flag_no_output,
5701         flag_dump_macros, flag_dump_includes): New.
5702         * c-common.h (flag_no_line_commands, flag_no_output,
5703         flag_dump_macros, flag_dump_includes, preprocess_file): New.
5704         (init_c_lex): Update prototype.
5705         * c-lex.c (init_c_lex): Update prototype; move some code to
5706         c_common_init.
5707         * c-opts.c (preprocess_file): Subsume into c_common_init.
5708         (c_common_decode_option): Update flags.
5709         (c_common_init): Move code from preprocess_file and init_c_lex.
5710         (sanitize_cpp_opts): Update.
5711         * c-ppoutput.c: New, cppmain.c almost verbatim.
5712         * cpphash.h (struct printer): Remove.
5713         (struct cpp_reader): Remove print.
5714         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
5715         cpp_preprocess_file): Remove.
5716         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
5717         and dump_includes.
5718         * cppmain.c: Remove.
5719         * doc/passes.texi: Update.
5720
5721 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5722
5723         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
5724         (assign_stack_local_1): Perform overall stack alignment only when
5725         STACK_ALIGNMENT_NEEDED is non-zero.
5726         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
5727
5728         * pa.c (compute_frame_size): Rename fsize to size.  Account for
5729         alignment to a word boundary before general register save block.  Only
5730         account for double-word alignment before floating point register save
5731         block if one or more are saved.  Don't allocate space for %r3 when
5732         frame pointer is needed.
5733         (hppa_expand_prologue): Include alignment to word boundary in local
5734         frame size.
5735         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
5736         (STACK_ALIGNMENT_NEEDED): Define.
5737
5738 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
5739
5740         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
5741         global register variables.
5742
5743 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
5744
5745         * reload.c (reload_adjust_reg_for_mode): New function.
5746         (subst_reloads): Call it.
5747         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
5748         * reload.h (reload_adjust_reg_for_mode): Declare.
5749         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
5750         Call it.
5751
5752 2003-03-03  James E Wilson  <wilson@tuliptree.org>
5753
5754         * optabs.c (add_equal_note): Delete SUBREG_REG use.
5755         Fixes PR c/7872.
5756
5757 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
5758
5759         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
5760         (*ixorsi3_lshiftrt_16): New.
5761         (*iorsi3_ashift_16): Remove.
5762
5763 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
5764
5765         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
5766         pattern.
5767
5768 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
5769
5770         * doc/install.texi (Specific): Update entry for powerpc-darwin.
5771
5772 2003-03-03  Richard Henderson  <rth@redhat.com>
5773
5774         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
5775
5776 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
5777
5778         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
5779         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
5780         (rs6000_variable_issue): Do not return negative value.
5781         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
5782         scheduling pass.
5783
5784 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5785
5786         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
5787         prune_unused_types calls.
5788
5789 2003-03-03  Jason Merrill  <jason@redhat.com>
5790
5791         * tree-inline.c (find_builtin_longjmp_call): Save and restore
5792         lineno and input_filename.
5793         (find_alloca_call): Likewise.
5794         (inlinable_function_p): Run the langhook earlier.
5795
5796         * calls.c (compute_argument_addresses): Give the new MEMs a
5797         minimum alignment of PARM_BOUNDARY.
5798
5799 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
5800
5801         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
5802         subtarget_asm_isa_spec.
5803         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
5804         (ASM_SPEC): Define as SH_ASM_SPEC.
5805         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
5806         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
5807         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
5808         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
5809
5810         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
5811         and align_jumps if not set.
5812         Force align_jumps to be at least 2.
5813         When relaxing, force align_functions to be at least the maximum of
5814         align_loops, align_jumps and 4.
5815         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
5816         (sh_loop_align): Honour align_loops_log.
5817
5818         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
5819         to check for indirect_jump_scratch.
5820         (indirect_jump_scratch): Add second set.
5821         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
5822         when looking for indirect_jump_scratch.
5823         Extract scratch register taking new structure of indirect_jump_scratch
5824         into account.
5825         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
5826
5827 2003-03-03  Jan Hubicka  <jh@suse.cz>
5828
5829         * calls.c (rtx_for_function_call): Take the address as an argument
5830         (expand_call): Do not modify the expression.
5831
5832         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
5833         optimizing.
5834
5835 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
5836
5837         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
5838         TARGET_H8300H and TARGET_H8300S.
5839
5840 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
5841
5842         * config/h8300/h8300.md (a peephole2): New.
5843
5844 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
5845
5846         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
5847         operands[0] and operands[1] are different.
5848
5849 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
5850
5851         * reload1.c (reload_cse_move2add): Remove variable success.
5852
5853 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5854
5855         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
5856         warnings.
5857
5858 2003-03-02  Richard Henderson  <rth@redhat.com>
5859
5860         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
5861         * config.in, configure: Rebuild.
5862         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
5863         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
5864         paired ldtoffx and ldxmov annotations.
5865         (load_symptr_internal1): Remove.
5866         (load_symptr_high, load_symptr_low): New.
5867
5868 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
5869
5870         * c-incpath.c (add_path): Fix sysp assignment.
5871
5872 2003-03-02  Kurt Garloff  <garloff@suse.de>
5873
5874         * params.def: Introduce parameter max-inline-insns-rtl for
5875         a separate limit for the RTL inliner.
5876         * params.h: Likewise.
5877         * integrate.c (function_cannot_inline_p): Use it.
5878         * toplev.c (decode_f_option): Set multiple parameters
5879         controlling inlining with -finline-limit.
5880         * params.def: Fix orthographic and typographic errors.
5881         * doc/invoke.texi: Document parameters controlling inlining
5882         and the way -finline-limit sets multiple of them.
5883
5884         * tree.h (struct tree_decl): Introduce inlined_function_flag,
5885         recording whether the function became eligible for inlining
5886         by a compiler flag rather than the declaration.
5887         Provide DID_INLINE_FUNC macro to access it.
5888         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
5889         * cp/decl.c (grokfndecl): Likewise.
5890         * toplev.c (rest_of_compilation): Likewise.
5891         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
5892         * print-tree.c (print_node): Report it.
5893         * params.def: Introduce new max-inline-insns-auto limit.
5894         * params.h: Likewise.
5895         * tree-inline.c (inlinable_function_p): Apply it to functions
5896         with DID_INLINE_FUNC set.
5897         * toplev.c (decode_f_option): Initialize it from -finline-limit
5898         value.
5899         * doc/invoke.texi: Document new parameter.
5900
5901 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
5902
5903         * fix-header.c (read_scan_file): Don't reference simplify_path.
5904
5905 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
5906
5907         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
5908         min/max instructions by default as may result in reload errors.
5909
5910 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
5911
5912         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
5913         avoid reload problems; define split for it.
5914
5915 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
5916
5917         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
5918         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
5919         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
5920         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
5921         rotatert and rotate.
5922         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
5923         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
5924         ("*rotrhi3_addr"): New split for shift insns on address register.
5925         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
5926         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
5927         (___rotrhi3): Likewise.
5928         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
5929
5930 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
5931
5932         * toplev.c (aux_base_name): Moved from toplev.h.
5933         (filename): Constify.
5934         (lang_dependent_init): Don't duplicate name.
5935         (process_options): Set aux_base_name here, not...
5936         (do_compile): ...here.  Change protoype.
5937         (toplev_main): Move some code from do_compile.
5938         * toplev.h: Remove aux_base_name.
5939
5940 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
5941
5942         * config/h8300/h8300-protos.h: Add a prototype for
5943         iorxor_operator.
5944         * config/h8300/h8300.c (print_operand): Handle 'c'.
5945         (iorxor_operator): New.
5946         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
5947         * config/h8300/h8300.md (*iorhi3_zext): Remove.
5948         (*iorsi3_zexthi): Likewise.
5949         (*iorsi3_zextsi): Likewise.
5950         (*xorhi3_zextqi): Likewise.
5951         (*xorsi3_zexthi): Likewise.
5952         (*xorsi3_zextsi): Likewise.
5953         (*ixorhi3_zext): New.
5954         (*ixorsi3_zext_qi): Likewise.
5955         (*ixorsi3_zext_hi): Likewise.
5956
5957 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
5958
5959         * c-incpath.c (remove_component_p, simplify_path): Move back to
5960         cppfiles.c.
5961         (remove_duplicates): Use cpp_simplify_path.
5962         * c-incpath.h (simplify_path): Remove.
5963         * c-lex.c: Don't include c-incpath.h.
5964         (init_c_lex): Remove simplify_path.
5965         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
5966         (find_or_create_entry, validate_pch): Revert.
5967
5968 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
5969
5970         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
5971           an external cpp during compilation.
5972         (option_map): Likewise.
5973         * objc/lang-specs.h (default_compilers): Similarly.
5974         * doc/invoke.texi: Document -no-integrated-cpp flag.
5975
5976 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
5977
5978         * config/h8300/h8300.md (zero_extendqisi2): Change to an
5979         expander.
5980         (*zero_extendqisi2_h8300): New.
5981         (*zero_extendqisi2_h8300hs): New.
5982         (two splitters): New.
5983
5984 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5985
5986         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
5987
5988 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
5989
5990         * config/h8300/h8300.md (a peephole2): Remove dead code.
5991
5992 2003-03-01  Roger Sayle  <roger@eyesopen.com>
5993
5994         PR c++/9367
5995         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
5996         (BT_FN_INT_CONST_STRING_VALIST_ARG,
5997         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
5998         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
5999         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
6000         BT_FN_INT_STRING_CONST_STRING_VAR,
6001         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
6002         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
6003         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
6004         ATTR_NONNULL_3): Also include the nothrow attribute.
6005         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
6006         vsnprintf, vscanf, vsscanf): Don't define attributes here.
6007         * builtins.def (putchar, puts): Make full C89 built-ins.
6008         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
6009         vsscanf, vsnprintf, vsprintf): New built-ins.
6010         * c-common.c (c_common_nodes_and_builtins): Handle new macro
6011         DEF_FUNCTION_TYPE_VAR_3.
6012
6013         * doc/extend.texi: Document these new built-in functions.
6014
6015 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
6016
6017         * config/h8300/h8300.md (a peephole2): New.
6018
6019 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
6020
6021         * predict.c (estimate_bb_frequencies): Correctly set
6022         real_values_initialized after initialization.
6023
6024 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
6025
6026         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
6027         cppinit.o, cppdefault.o, fix-header): Update.
6028         * c-incpath.c: New file.
6029         * c-incpath.h: New file.
6030         * c-lex.c: Include c-incpath.h.
6031         (init_c_lex): Register path simplifier.
6032         * c-opts.c: Include cppdefault.h and c-incpath.h.
6033         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
6034         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
6035         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
6036         (missing_arg, c_common_decode_option): Handle them.
6037         (c_common_post_options): Register include chains.
6038         (print_help): Update.
6039         * cppdefault.h (struct default include): Update.
6040         Move some macros to ...
6041         * cppdefault.c: ... here.
6042         (cpp_include_defaults): Add extra field add_sysroot.
6043         * cppfiles.c (include_file, search_from, find_or_create_entry,
6044         cpp_included, find_include_file, remap_filename): Update for
6045         renaming of search_path to cpp_path, and of the chain headers.
6046         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
6047         * cpphash.h (struct search_path): Move to cpplib.h.
6048         (struct cpp_buffer, struct cpp_reader): Update.
6049         (_cpp_simplify_pathname): Remove.
6050         * cppinit.c: Don't include prefix.h and cppdefault.h.
6051         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
6052         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
6053         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
6054         no_pth, cpp_handle_options): Remove.
6055         (struct pending_option): Remove chain members.
6056         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
6057         cpp_handle_option): Update.
6058         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
6059         (struct cpp_options): Remove quote_include, bracket_include,
6060         include_prefix, include_prefix_len, verbose, ignore_srcdir,
6061         no_standard_includes, no_standard_cplusplus_includes.
6062         (struct cpp_callbacks): Add simplify_path.
6063         (cpp_handle_options): Remove.
6064         * fix-header.c: Include c-incpath.h.
6065         (read_scan_file): Update to use c-incpath functionality.
6066         * doc/passes.texi: Update.
6067
6068 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
6069
6070         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
6071         satisfies EXTRA_CONSTRAINT 'U'.
6072
6073 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
6074
6075         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
6076         register.
6077         (*tst_extzv_memqi_1_n): Change to a splitter.
6078         (a peephole2): Update.
6079
6080 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
6081
6082         * predict.c (estimate_bb_frequencies): Initialize the sreal
6083         constants once per compilation.
6084
6085 2003-02-28  Richard Henderson  <rth@redhat.com>
6086
6087         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
6088
6089 2003-02-28  scott snyder  <snyder@fnal.gov>
6090
6091         * flags.h: Add flag_eliminate_unused_debug_types.
6092         * toplev.c: Add flag_eliminate_unused_debug_types.
6093         (f_options): Add -feliminate-unused-debug-types.
6094         * dwarf2out.c (struct file_table): Add emitted member.
6095         (splice_child_die): Fix the parent pointer for the child being
6096         spliced.
6097         (lookup_filename): Maintain file_table.emitted array.  Don't
6098         output .file directive here.
6099         (maybe_emit_file): (new)
6100         (init_file_table): Set up file_table.emitted.
6101         (dwarf2out_source_line): Use maybe_emit_file.
6102         (dwarf2out_start_source_file): Use maybe_emit_file.
6103         (dwarf2out_init): Use maybe_emit_file.
6104         (prune_unused_types_walk_attribs): (new)
6105         (prune_unused_types_mark): (new)
6106         (prune_unused_types_walk): (new)
6107         (prune_unused_types_prune): (new)
6108         (prune_unused_types): (new)
6109         (dwarf2out_finish): Call prune_unused_types if
6110         flag_eliminate_unused_debug_types is set.
6111         * doc/invoke.texi (Option Summary): Add
6112         -feliminate-unused-debug-types.
6113         (Debugging Options): Likewise.
6114
6115 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
6116
6117         * doc/invoke.texi: Change .pch to .gch.
6118         * cppfiles.c (open_file_pch): Likewise.
6119         * gcc.c (default_compilers): Likewise.
6120
6121 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
6122
6123         * floatlib.c: Remove.
6124
6125 2003-02-28  Jason Merrill  <jason@redhat.com>
6126
6127         * stor-layout.c (variable_size): Leave a "minus 1" outside the
6128         SAVE_EXPR.
6129
6130 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
6131
6132         * config/rs6000/power4.md: Add compare bypass.
6133
6134 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
6135
6136         * config/netbsd.h: Update copyright years.
6137         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
6138         -pthread is specified on the command line.
6139
6140 2003-02-28  Dale Johannesen <dalej@apple.com>
6141
6142         * loop.c (struct movable): Add insert_temp, shrink savemode.
6143         (scan_loop): Accept invariants that require copying; mark as
6144         insert_temp.
6145         (combine_movables): Don't combine insert_temp movables.
6146         (move_movables): Insert copies for insert_temp movables.
6147         Don't record the info based on regno for insert_temp's.
6148
6149 2003-02-28  Joel Sherrill <joel@OARcorp.com>
6150
6151         PR 9638/other
6152         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
6153         this constant defaults to 1.
6154
6155 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
6156
6157         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
6158
6159 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
6160
6161         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
6162         ARMv5e processor, not just for XScale.  Instructions are predicable.
6163         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
6164
6165 2003-02-28  Nick Clifton  <nickc@redhat.com>
6166
6167         * config/arm/arm.c (note_invalid_constants): Change parameter type
6168         from bool to int.
6169
6170 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
6171
6172         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
6173         test of bit 7.
6174         (*tst_extzv_memqi_1_n): Likewise.
6175         (a peephole2): New.
6176
6177 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
6178
6179         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
6180         #ifndef __mips16.
6181
6182 2003-02-28  Jan Hubicka  <jh@suse.cz>
6183
6184         * combine.c (gen_lowpart_for_combine): Update handling of
6185         subregs_of_mode
6186         * flow.c (life_analysis, mark_used_regs): Likewise.
6187         * regclass.c (subregs_of_mode): Turn into single bitmap.
6188         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
6189         dealing with subregs_of_mode
6190         * regs.h (subregs_of_mode): Update prototype.
6191
6192 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
6193
6194         * emit-rtl.c (set_reg_attrs_for_parm): New function.
6195         * rtl.h (set_reg_attrs_for_parm): New exported function.
6196         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
6197         set_reg_attrs_from_mem.
6198
6199 2003-02-27  Roger Sayle  <roger@eyesopen.com>
6200             Zack Weinberg <zack@codesourcery.com>
6201
6202         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
6203
6204 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
6205
6206         * reload1.c (sext_for_mode): Remove.
6207         (reload_cse_move2add): Use trunc_int_for_mode instead of
6208         sext_for_mode.
6209         (move2add_note_store): Likewise.
6210         Reset register information if we see a set in non-integer
6211         mode.
6212
6213 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
6214
6215         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
6216         option.
6217         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
6218         * config/rs6000/aix51.h: Same.
6219         * config/rs6000/aix52.h: Same.
6220         * config/rs6000/power4.md: Additional VMX bypasses.
6221
6222 2003-02-27   Geert Bosch <bosch@gnat.com>
6223
6224         * toplev.c (print_version): Add indentation for GGC heuristics and
6225         output after printing version information.
6226
6227 2003-02-27  James E Wilson  <wilson@tuliptree.org>
6228
6229         * combine.c (simplify_comparison): Require integral mode when
6230         permuting SUBREG with AND.
6231
6232 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
6233
6234         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
6235
6236 2003-02-27  Nick Clifton  <nickc@redhat.com>
6237
6238         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
6239         deleted when cirrus instructions were added.
6240
6241 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
6242
6243         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
6244         POSIX thread support by default.
6245
6246 2003-02-27  Roger Sayle  <roger@eyesopen.com>
6247
6248         * config/i386/cygwin.h: Don't include any other files directly.
6249         * config/i386/mingw32.h: Don't include cygwin.h directly.
6250         * config.gcc (cygwin, mingw32, uwin): Instead make these files
6251         explicit in the tm_files variable.
6252
6253 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
6254
6255         * config/rs6000/rs6000.md: Add TI constant splitter.
6256
6257 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
6258
6259         * builtins.c (purge_builtin_constant_p): Handle subreg of
6260         constant_p_rtx too.
6261
6262         * function.c (assign_stack_local_1): Truncate constant added to
6263         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
6264
6265 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
6266
6267         * config.gcc: Add power4 to PowerPC with_cpu list.
6268
6269 2003-02-26  Jan Hubicka  <jh@suse.cz>
6270
6271         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
6272
6273 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6274
6275         * gcov-dump.c (print_prefix): Fix signedness warning.
6276         * gcov-io.h (struct counter_section, struct counter_section_data): New.
6277         (struct function_info): n_arc_counts field removed, n_counter_sections,
6278         counter_sections fields added.
6279         (struct gcov_info): arc_counts, n_arc_counts fields removed,
6280         n_counter_sections, counter_sections fields added.
6281         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
6282         profile sections.
6283         * profile.h (MAX_COUNTER_SECTIONS): New.
6284         (struct section_info): New.
6285         (struct profile_info): count_instrumented_edges,
6286         count_edges_instrumented_now fields removed, n_sections, section_info
6287         fields added.
6288         (find_counters_section): Declare.
6289         * profile.c (struct function_list): count_edges field removed,
6290         n_counter_sections, counter_sections fields added.
6291         (set_purpose, label_for_tag, build_counter_section_fields,
6292         build_counter_section_value, build_counter_section_data_fields,
6293         build_counter_section_data_value, build_function_info_fields,
6294         build_function_info_value, build_gcov_info_fields,
6295         build_gcov_info_value): New static functions.
6296         (find_counters_section): New function.
6297         (instrument_edges, get_exec_counts, compute_branch_probabilities,
6298         branch_prob, create_profiler): Modified to support multiple profile
6299         sections.
6300
6301 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6302
6303         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
6304         is 8 * STACK_BOUNDARY.
6305         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
6306
6307 2003-02-26  Michael Matz  <matz@suse.de>
6308
6309         * ra-colorize.c (merge_moves): Fix list handling.
6310
6311 2003-02-26  Nick Clifton  <nickc@redhat.com>
6312
6313         * config/arm/arm.c (is_load_address): Rename to...
6314         (arm_memory_load_p) ... this and make it check for SUBREGs and
6315         constant loads that will be converted into loads from the
6316         minipool.
6317         (is_cirrus_insn): Rename to ...
6318         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
6319         of CIRRUS_NO with CIRRUS_NOT.
6320         (cirrus_reorg): Use renamed functions.
6321         (note_invalid_constants): Change from a void function to bool.
6322         Add an extra parameter, saying whether the fixups should be
6323         pushed.  Return true if fixups are needed.
6324         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
6325         of CIRRUS_NO with CIRRUS_NOT.
6326         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
6327         other floating point co-processors can also affect this.
6328         * config/arm/arm.md ("type" attribute): Add mav_farith and
6329         mav_dmult.  Replace references to "cirrus_type" attribute with
6330         "type".
6331         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
6332         ("cirrus_type" attribute): Delete - use "type" instead.
6333         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
6334         'normal'.
6335
6336 2003-02-25  Jan Hubicka  <jh@suse.cz>
6337
6338         * objc-act.c: Include cgraph.h
6339         (mark_referenced_methods): New function.
6340         (objc_init): Call it.
6341         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
6342
6343         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
6344         mode.
6345
6346         * optabs.c (expand_fix): Do not widen the input operand.
6347
6348         * expr.c (emit_group_store):  Fix crash when converting single
6349         register into complex register.
6350
6351         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
6352         * alias.c: Include timevar.h
6353         (init_alias_analysis):  Set timevar
6354         * jump.c: Include timevar.h
6355         (rebuild_jump_labels):  Set timevar
6356         * regcalss.c: Include timevar.h
6357         (reg_scan):  Set timevar
6358         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
6359
6360 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6361
6362         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
6363
6364         * Makefile.in (loop-unroll.o): New.
6365         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
6366         (unroll_and_peel_loops): Declare.
6367         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
6368         flag_old_unroll_loops.
6369         * loop.c (loop_invariant_p): Ditto.
6370         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
6371         flag_old_unroll_all_loops.
6372         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
6373         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
6374         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
6375         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
6376         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
6377         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
6378         PARAM_MAX_ONCE_PEELED_INSNS): New.
6379         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
6380         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
6381         instead of old one.
6382         (flag_peel_loops): New.
6383         (lang_independent_options): The new flags added.
6384         (rest_of_compilation): Call new unroller.
6385         (process_options): Setup flags for coexistence of old and new unroller.
6386         * doc/invoke.texi: Document new options.
6387         * doc/passes.texi: Document new unroller pass.
6388
6389 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
6390
6391         * fixinc/fixincl.x: Regenerate
6392
6393 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
6394
6395         * function.c (assign_parms): Set reg_attrs for parameters passed in
6396         registers.
6397
6398 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
6399
6400         PR target/9681
6401         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
6402
6403 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
6404
6405         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
6406         pseudo-op.
6407
6408 2003-02-25  Roger Sayle  <roger@eyesopen.com>
6409
6410         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
6411         * cse.c (invalidate_skipped_set):  Likewise.
6412         * integrate.c (subst_constants):  Likewise.
6413         * jump.c (reversed_comparison_code_parts):  Likewise.
6414         * loop.c (canonicalize_condition):  Likewise.
6415         * simplify-rtx.c (simplify_relational_operation):  Likewise.
6416
6417 2003-02-25  Roger Sayle  <roger@eyesopen.com>
6418
6419         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
6420         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
6421         the appropriate macro to define built-in function.
6422         (fmod,fmodf,fmodl): New built-in functions.
6423
6424         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
6425
6426 2003-02-25  Richard Henderson  <rth@redhat.com>
6427
6428         * config/i386/i386.c (function_arg): Pass variable sized
6429         structures correctly on the stack.
6430
6431 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
6432
6433         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
6434         does not reduce the cost of SET.
6435
6436 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6437
6438         PR target/9732
6439         * config/rs6000/rs6000.c (first_reg_to_save): Handle
6440         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
6441         (rs6000_emit_prologue): Likewise.
6442         (rs6000_emit_epilogue): Likewise.
6443         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
6444         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
6445
6446 2003-02-25  Richard Henderson  <rth@redhat.com>
6447
6448         * real.c (real_to_integer2): Force overflow result only for
6449         unsigned overflow.
6450
6451 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
6452
6453         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
6454
6455 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
6456             Richard Henderson  <rth@redhat.com>
6457
6458         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
6459         there is no similar load.
6460
6461 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
6462             Richard Henderson  <rth@redhat.com>
6463
6464         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
6465         sched-rgn.c.
6466         (add_forward_dependence): New function prototype.
6467
6468         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
6469         sched-init.h.
6470         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
6471         them to haifa-sched.c.
6472
6473         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
6474         haifa_classify_insn): Move them from sched-rgn.c.
6475
6476         * sched-deps.c (add_dependence): Return flag of creating a new
6477         entry.
6478         (add_forward_dependence): New function.
6479         (compute_forward_dependences): Use the function.
6480
6481         * sched-ebb.c (earliest_block_with_similiar_load): New function.
6482         (add_deps_for_risky_insns): New function.
6483         (schedule_ebb): Call the function.
6484
6485 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
6486
6487         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
6488         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
6489
6490         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
6491         opaque types fail.
6492
6493         * c-typeck.c (comptypes): Change call to vector_types_compatible
6494         to vector_opaque_p.
6495         (convert_for_assignment): Call vector_opaque_p instead of
6496         vector_types_compatible.
6497         (really_start_incremental_init): Disallow initialization of opaque
6498         types.
6499
6500         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
6501         Define TARGET_VECTOR_OPAQUE_P.
6502         (TARGET_INITIALIZER): Same.
6503
6504         * target.h (struct gcc_target): Remove vector_types_compatible.
6505         Add vector_opaque_p.
6506
6507         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
6508         Remove.
6509         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
6510         a vector type.  Change return type to bool.
6511         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
6512         (TARGET_VECTOR_OPAQUE_P): Define.
6513
6514         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
6515         target hook.
6516         Include target.h.
6517         (cp_parser_init_declarator): Fix typo in function comments.
6518
6519 2003-02-25  Jan Hubicka  <jh@suse.cz>
6520
6521         * Makefile.in (lcm.o):  Add dependency on function.h
6522         * lcm.c (function.h): Include.
6523         * i386.c (machine_function, ix86_stack_locals,
6524         * ix86_save_varrargs_registers) : Move to
6525         ...
6526         * i386.h (machine_function, ix86_stack_locals,
6527         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
6528         (ix86_optimize_mode_switching): New.
6529         * i386.md (fix patterns): Set ix86_optimize_mode_switching
6530
6531 2003-02-25  Nick Clifton  <nickc@redhat.com>
6532
6533         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
6534         of fourth arg is 'fndecl' not 'indirect'.  Update comment
6535         describing the function's parameters.
6536
6537 2003-02-24  Jan Hubicka  <jh@suse.cz>
6538
6539         * combine.c (simplify_shift_const):  Fix previous patch.
6540
6541 2003-02-24  Jeff Law  <law@redhat.com>
6542
6543         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
6544         alternative.
6545         (testsi_1, testhi_1, testqi_1): Likewise.
6546
6547 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6548
6549         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
6550         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
6551         * doc/extend.texi (Tru64 Pragmas): Reflect this.
6552
6553         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
6554         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
6555         * fixinc/fixincl.x: Regenerate.
6556         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
6557         testcase.
6558         Fixes PR c/5059, c/6126, other/9671.
6559
6560 2003-02-24  Roger Sayle  <roger@eyesopen.com>
6561
6562         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
6563         from handle_braces in "%{...}".
6564
6565 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
6566
6567         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
6568         (prepare_move_operands): Handle TLS operands.
6569         (tls_symbolic_operand): New.
6570         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
6571         (legitimize_pic_address): Do nothing for the TLS symbol.
6572         (sh_encode_section_info): Handle TLS case.
6573         (sh_strip_name_encoding): Drop TLS encoding.
6574         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
6575         * config/sh/sh.h (SH_TLS_ENCODING): Define.
6576         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
6577         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
6578         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
6579         * config/sh/sh.md: Define TLS UNSPEC constants.
6580         (type): Add tls_load.
6581         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
6582         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
6583         ("tls_initial_exec"): New insn.
6584         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
6585         ("load_gbr"): New insn.
6586
6587         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
6588         * configure: Regenerate.
6589
6590 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
6591
6592         PR 9297, PR 9722
6593         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
6594         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
6595         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
6596         (enum block_op_methods): Reorder for better store_expr optimization.
6597         * expr.c (store_expr): Test bit 1 of "want_value" for call param
6598         stores, test bit 0 for original want_value meaning.  Pass
6599         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
6600         recursive calls, and calls to expand_param.
6601         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
6602         expected, set target to 0 rather than to subtarget.  Formatting.
6603
6604 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
6605
6606         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
6607
6608 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6609
6610         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
6611         new default behavior.
6612         * ggc-common.c: Include sys/resource.h.
6613         (ggc_rlimit_bound): New function.
6614         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
6615         defaults to account for rlimits.
6616
6617 2003-02-22  Richard Henderson  <rth@redhat.com>
6618
6619         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
6620
6621 2003-02-22  Kelley Cook <kelley@dwhoops.info>
6622
6623         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
6624         (ix86_tune_string): Rename from ix86_cpu_string.
6625
6626 2003-02-22  Kelley Cook <kelleycook@comcast.net>
6627
6628         * config/i386/i386.c: Replace "mcpu" with "mtune".
6629         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
6630         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
6631         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
6632         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
6633
6634 2003-02-23  Andreas Schwab  <schwab@suse.de>
6635
6636         * config.gcc: Delete references to m68k/t-linux and
6637         m68k/t-linux-aout.
6638         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
6639
6640 2003-02-22  Jan Hubicka  <jh@suse.cz>
6641
6642         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
6643         of track scheduling patch.
6644
6645 2003-02-22  Jan Hubicka  <jh@suse.cz>
6646
6647         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
6648         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
6649
6650 2003-02-22  Jan Hubicka  <jh@suse.cz>
6651
6652         * c-decl.c (c_expand_body_1): Fix.
6653
6654 2003-02-22  Jan Hubicka  <jh@suse.cz>
6655
6656         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
6657
6658         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
6659         when not optimizing.
6660         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
6661         when not expensive.
6662         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
6663         optimizing;  Delete trivially dead insns early; fix optimize check.
6664
6665         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
6666         dependency on cgraph.h
6667         * c-decl.c: Include cgraph.h
6668         (finish_function): Update call of tree_inlinable_function_p.
6669         * c-objc-common.c: Include cgraph.h
6670         * cgraph.h: New file.
6671         * cgraphunit.c: New file.
6672         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
6673         (cgraph_nodes, cgraph_n_nodes): Globalize.
6674         (cgraph_finalize_function, cgraph_finalize_compilation_unit
6675         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
6676         Move into cgraphunit.c
6677         * tree-inline.c: Include cgraph.h
6678         * tree-inline.c: Include cgraph.h
6679
6680 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
6681
6682         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
6683         for copying a register.
6684
6685 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
6686
6687         PR other/3782
6688         * toplev.c (process_options): If flag_detailed_statistics is set,
6689         then set time_report as well.
6690
6691         PR c/8828
6692         * jump.c (never_reached_warning): Don't fall through BARRRIER
6693         insns.  Update comments to reflect what the function really does.
6694
6695 2003-02-21  Roger Sayle  <roger@eyesopen.com>
6696
6697         * fold-const.c (omit_one_operand): No longer static.
6698         * tree.h (omit_one_operand): Prototype here.
6699         (div_and_round_double): Keep fold-const.c prototypes together.
6700         * builtins.c (builtin_mathfn_code): Handle binary built-in
6701         funtions, such as "pow" and "atan2".
6702         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
6703         Simplify optimizations using "type" the builtin's return type.
6704
6705 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
6706
6707         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
6708         Fix functionalization typo.
6709
6710         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
6711         in an asm.
6712
6713 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6714
6715         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
6716         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
6717         documentation.
6718         * ggc-common.c: Include params.h
6719         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
6720         init_ggc_heuristics): New functions.
6721         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
6722         init_ggc_heuristics): Prototype.
6723         * toplev.c (print_version):  Output GGC heuristics.
6724         (parse_options_and_default_flags): Call init_ggc_heuristics.
6725
6726 2003-02-22  Jan Hubicka  <jh@suse.cz>
6727
6728         * i386.c (def_builtin):  Special case 64bit builtins.
6729         (MASK_SSE164, MASK_SSE264): New constants.
6730         (builtin_description): Add 64bit builtins.
6731         (ix86_init_mmx_sse_builtins): Likewise.
6732         * i386.h (enum ix86_builtins): Likewise.
6733         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
6734         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
6735         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
6736         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
6737         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
6738         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
6739         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
6740
6741 2003-02-22  Jan Hubicka  <jh@suse.cz>
6742
6743         * i386.c (builtin_description): Add __builtin_ia32_paddq and
6744         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
6745          and __builtin_ia32_psubq128.
6746         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
6747         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
6748         (mmx_adddi3, mmx_subdi3): New.
6749         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
6750         * xmmintrin.h (_mm_movepi64_pi64): New.
6751         (_mm_add_epi64, _mm_sub_epi64): fix.
6752         (_mm_mul_pu16): Rename to...
6753         (_mm_mul_su32): ... this one.
6754
6755         * builtins.c (expand_builtin_expect):  Do not predict
6756         flag_guess_branch_prob is not set.
6757         * c-semantics.c (expand_stmt): Likewise.
6758         * predict.c (predict_insn): Likewise.
6759         * stmt.c (expand_continue_loop): Likewise.
6760         * toplev.c (rest_of_compilation): Do not call
6761         note_prediction_to_br_prob and note_prediction_to_br_prob
6762         when not optimizing.
6763
6764 2003-02-21  Jan Hubicka  <jh@suse.cz>
6765
6766         * cfgrtl.c (commit_edge_insertions):  Call
6767         find_many_sub_basic_block only when some code has been emitted.
6768         (commit_edge_insertions_watch_calls): Bring into sync with
6769         commit_edge_insertions
6770
6771 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
6772
6773         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
6774
6775         * sh.md (binary_sf_op): Use extra constant operand instead of
6776         negating constant operand 4.
6777         * sh.c (sh_expand_binop_v2sf): Supply it.
6778
6779 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
6780
6781         * cpphash.h (struct lexer_state): Add directive_wants_padding.
6782         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
6783         for directives of type INCL.
6784         (glue_header_name, parse_include): Use get_token_no_padding.
6785         * cppmacro.c (replace_args): If directive_wants_padding,
6786         provide padding tokens.
6787
6788 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
6789
6790         * config/h8300/h8300.md (a peephole2): New.
6791
6792 2003-02-21  Jan Hubicka  <jh@suse.cz>
6793
6794         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
6795         (commit_edge_insertions): Call find_many_sub_basic_blocks
6796
6797         * reg-stack.c (convert_regs): Cleax aux for blocks.
6798
6799 2003-02-21  Jan Hubicka  <jh@suse.cz>
6800
6801         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
6802
6803 2003-02-21  Glen Nakamura  <glen@imodulo.com>
6804
6805         PR optimization/8613
6806         * builtins.c (expand_builtin): Emit postincrements before expanding
6807         builtin functions.
6808
6809 2003-02-21  Ben Elliston  <bje@redhat.com>
6810
6811         PR other/5634
6812         * doc/install.texi (Configuration): Explain using $HOME instead of
6813         the ~ metacharacter when referring to home directories.
6814
6815 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
6816
6817         * configure.in (TARGET_SYSTEM_ROOT): Set default to
6818         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
6819         '${exec_prefix}' (in addition to the expansion thereof) as
6820         relocatable.
6821         * configure: Rebuilt.
6822
6823 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
6824
6825         * config/h8300/h8300.md (addhi3_incdec): Change the name to
6826         *addhi3_incdec.
6827         (addsi3_incdec): Change the name to *addsi3_incdec.
6828
6829 2003-02-20  Roger Sayle  <roger@eyesopen.com>
6830
6831         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
6832
6833 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
6834
6835         PR fortran/9038
6836         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
6837         options to be ignored.
6838         (c_common_decode_option): Ignore them when preprocessing.
6839
6840 2003-02-20  Jan Hubicka  <jh@suse.cz>
6841
6842         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
6843         global variables.
6844         (lang_independent_options):  Add -fsched2-use-superblocks
6845         -fsced2-use-traces.
6846         (rest_of_compilation): Deal with it.
6847         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
6848         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
6849         Declare.
6850         * rtl.h (reg_to_stack):  Update prototype.
6851         * reg-stack.c (reg_to_stack): Return when something has changed;
6852         update liveness when executing after superblock scheduling.
6853
6854         * combine.c (simplify_shift_const):  Simplify few special cases
6855         into constants.
6856
6857 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
6858
6859         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
6860         (add.,subf.,neg.): Change attribute to fast_compare.
6861         All DFA descriptions updated.
6862
6863 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
6864
6865         Change base class access representation.
6866         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
6867         TREE_VIA_PRIVATE): Remove.
6868         (BINFO_BASEACCESSES): New binfo elt.
6869         (BINFO_BASEACCESS): New accessor.
6870         (BINFO_ELTS): Increase.
6871         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
6872         (access_public_node, access_protected_node,
6873         access_private_node): New global nodes.
6874         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
6875         * dbxout.c (dbxout_type): Adjust.
6876         * dwarf2out.c (gen_inheritance_die): Add access parameter.
6877         (gen_member_die): Adjust.
6878         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
6879         (output_type): Adjust.
6880         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
6881
6882         Change base class access representation. Share virtual base
6883         binfos.
6884         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
6885         call.
6886         * cp/class.c (build_base_path): Likewise.
6887         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
6888         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
6889         (make_new_vtable): Adjust.
6890         (force_canonical_binfo_r): Delete.
6891         (force_canonical_binfo): Delete.
6892         (mark_primary_virtual_base): Delete.
6893         (dfs_unshared_virtual_bases): Delete.
6894         (mark_primary_bases): Adjust.
6895         (maybe_warn_about_overly_private_class): Adjust.
6896         (dfs_base_derived_from): Delete.
6897         (base_derived_from): Follow the inheritance chain.
6898         (struct find_final_overrider_data): Add vpath member.
6899         (dfs_find_final_overrider): Adjust.
6900         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
6901         (find_final_overrider): Adjust.
6902         (update_vtable_entry_for_fn): Adjust.
6903         (modify_all_vtables): Adjust.
6904         (walk_subobject_offsets): Adjust.
6905         (layout_nonempty_base_or_field): Adjust.
6906         (layout_empty_base): Remove last parameter. Adjust.
6907         (build_base_field): Adjust.
6908         (build_base_fields): Adjust.
6909         (propagate_binfo_offsets): Remove last parameter. Adjust.
6910         (dfs_set_offset_for_unshared_vbases): Delete.
6911         (layout_virtual_bases): Adjust.
6912         (finish_struct_1): Adjust.
6913         (init_class_processing): Don't init access nodes.
6914         (dfs_get_primary_binfo): Delete.
6915         (get_primary_binfo): Adjust.
6916         (dump_class_hierarchy_r): Remove most derived arg, add IGO
6917         parameter. Adjust.
6918         (dump_class_hierarchy): Adjust.
6919         (finish_vtbls): Adjust.
6920         (get_original_base): Delete.
6921         (build_vtt_inits): Adjust.
6922         (dfs_build_secondary_vptr_vtt_inits): Adjust.
6923         (dfs_ctor_vtable_bases_queue_p): Adjust.
6924         (build_ctor_vtbl_group): Adjust.
6925         (dfs_accumulate_vtbl_inits): Adjust.
6926         (build_vtbl_initializer): Adjust.
6927         (build_vbase_offset_vtbl_entries): Adjust.
6928         (add_vcall_offset_vtbl_entries_1): Adjust.
6929         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
6930         (access_*_node): Remove.
6931         (CANONICAL_BINFO): Delete.
6932         (BINFO_UNSHARED_MARKED): Remove.
6933         (BINFO_MARKED): Set LANG_FLAG_0 directly.
6934         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
6935         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
6936         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
6937         Delete.
6938         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
6939         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
6940         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
6941         Delete.
6942         (BINFO_DEPENDENT_BASE_P): New.
6943         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
6944         index.
6945         (markedp, unmarkedp): Adjust.
6946         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
6947         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
6948         find_vbase_instance, binfo_for_vbase): Delete.
6949         (copied_binfo, original_binfo): Declare.
6950         (finish_base_specifier): Add virtual_p arg.
6951         (unshare_base_binfos): Delete.
6952         (copy_base_binfos): Declare.
6953         (reverse_path): Delete.
6954         * cp/decl.c (xref_basetypes): Access and virtuality passed
6955         differently. Don't copy direct base binfos here. Call
6956         copy_base_binfos.
6957         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
6958         (initialize_vtbl_ptrs): Adjust.
6959         (expand_member_init): Adjust.
6960         * cp/parser.c (cp_parser_base_specifier): Adjust.
6961         * cp/pt.c (instantiate_class_template): Adjust.
6962         (get_template_base_recursive): Adjust.
6963         * cp/rtti.c (get_pseudo_ti_init): Adjust.
6964         (get_pseudo_ti_desc): Adjust.
6965         * cp/tree.c (unshare_base_binfos): Rename to ...
6966         (copy_base_binfos): ... here, reimplement.
6967         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
6968         (reverse_path): Remove.
6969         * cp/typeck.c (get_delta_difference): Adjust error messages.
6970         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
6971         * cp/search.c (lookup_base_r): Adjust.
6972         (dynamic_cast_base_recurse): Adjust.
6973         (canonical_binfo): Remove.
6974         (dfs_canonical_queue): Remove.
6975         (dfs_assert_unmarked_p): Remove.
6976         (assert_canonical_unmarked): Remove.
6977         (shared_marked_p, shared_unmarked_p): Remove.
6978         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
6979         (dfs_access_in_type): Adjust.
6980         (access_in_type): Adjust.
6981         (dfs_accessible_queue_p): Adjust.
6982         (dfs_accessible_p): Adjust.
6983         (is_subobject_of_p_1, is_subobject_of_p): Remove.
6984         (struct lookup_field_info): Remove from_dep_base_p field.
6985         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
6986         (lookup_field_r): Remove dependent base code.
6987         (lookup_member): Likewise.
6988         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
6989         (dfs_unmarked_real_bases_queue_p): Remove.
6990         (dfs_marked_real_bases_queue_p): Remove.
6991         (dfs_skip_vbases): Remove.
6992         (dfs_get_pure_virtuals): Adjust.
6993         (markedp, unmarkedp): Adjust.
6994         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
6995         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
6996         (dfs_unmark): Adjust.
6997         (dfs_get_vbase_types):Remove.
6998         (dfs_build_inheritance_graph_order): Remove.
6999         (get_vbase_types): Remove
7000         (dfs_find_vbase_instance): Remove.
7001         (find_vbase_instance): Remove.
7002         (dfs_debug_unmarkedp): Adjust.
7003         (dependent_base_p): Remove.
7004         (dfs_push_type_decls): Adjust.
7005         (dfs_push_decls): Adjust.
7006         (dfs_no_overlap_yet): Adjust.
7007         (copied_binfo): New function.
7008         (original_binfo): New function.
7009         (binfo_for_vbase): Remove.
7010
7011         Change base class access representation.
7012         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
7013         (add_interface_do): Likewise.
7014
7015 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
7016
7017         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7018         * config/rs6000/power4.md (power4-store,power4-vecstore): New
7019         insn reservations.
7020         (power4-fpstore): Compact.
7021
7022 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
7023
7024         * config/h8300/h8300.md (*iorsi3_w): New.
7025
7026 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
7027
7028         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
7029         * rtl.c (reg_note_name): Likewise.
7030         * rtl.h (enum reg_note): Likewise.
7031         * doc/invoke.texi: Likewise.
7032         * doc/rtl.texi: Likewise.
7033
7034 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
7035
7036         * bb-reorder.c (find_traces_1_round): Fix comment typo.
7037
7038 2003-02-19  Roger Sayle  <roger@eyesopen.com>
7039
7040         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
7041         addition in the presence of signaling NaNs.
7042
7043 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
7044
7045         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
7046
7047 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
7048
7049         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
7050         ORing with 0xffff??00 with the highest bit of the ?? part set.
7051         (compute_logical_op_length): Update.
7052         (compute_logical_op_cc): Likewise.
7053
7054 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
7055
7056         * bb-reorder.c (find_traces_1_round): Fixed condition for small
7057         destination block with multiple predecessors.
7058         (connect_traces): Check whether the block is a start of trace.
7059
7060 2003-02-19  Jan Hubicka  <jh@suse.cz>
7061
7062         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
7063         * function.c (assign_params): Likewise.
7064         * arm-protos.h (arm_init_cumulative_args): Update prototype.
7065         * arm.c (arm_init_cumulative_args): Update function.
7066         * arm.h (INIT_CUMULATIVE_ARGS): Update.
7067         * avr-protos.h (init_cumulative_args): Update prototype.
7068         * avr.c (init_cumulative_args): Update function.
7069         * avr.h (INIT_CUMULATIVE_ARGS): Update.
7070         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
7071         * d30v.c (d30v_init_cumulative_args): Update function.
7072         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
7073         * frv-protos.h (frv_init_cumulative_args): Update prototype.
7074         * frv.c (frv_init_cumulative_args): Update function.
7075         * frv.h (INIT_CUMULATIVE_ARGS): Update.
7076         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
7077         * pa.h (INIT_CUMULATIVE_ARGS): Update.
7078         * sparc-protos.h (init_cumulative_args): Update prototype.
7079         * sparc.c (init_cumulative_args): Update function.
7080         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
7081         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
7082
7083 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
7084
7085         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
7086         (*ashiftsi_sextqi_7): Likewise.
7087
7088 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7089
7090         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
7091         ISO C99 and C++.
7092
7093         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
7094         for C++ on IRIX 6.5.1[89].
7095         * fixinc/tests/base/internal/sgimacros.h: New file.
7096
7097         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
7098         * fixinc/tests/base/internal/wchar_core.h: New file.
7099
7100         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
7101         socklen_t definition.
7102         * fixinc/fixincl.x: Regenerate.
7103         * fixinc/tests/base/sys/socket.h: New file.
7104         Fixes PR libgcj/9652.
7105
7106 2003-02-19  Jan Hubicka  <jh@suse.cz>
7107
7108         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
7109
7110 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
7111
7112         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
7113         align_jumps_max_skip and align_loops_max_skip.
7114
7115 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
7116
7117         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
7118         test size if named section.
7119
7120 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
7121
7122         * expr.c (expand_expr): Use gen_int_mode for the argument
7123         to gen_rtx_MULT.
7124
7125 2003-02-19  Jan Hubicka  <jh@suse.cz>
7126
7127         * i386.md (cosxf2):  Fix conditional.
7128
7129 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
7130
7131         * config/h8300/h8300.md (extendqisi2): Change to an expander.
7132         (*extendqisi2_h8300): New.
7133         (*extendqisi2_h8300hs): Likewise.
7134
7135 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
7136
7137         * config/h8300/h8300-protos.h: Update the prototype for
7138         split_adds_subs.  Remove the prototypes for
7139         const_int_le_2_operand and const_int_le_6_operand.
7140         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
7141         (const_int_le_2_operand): Remove.
7142         (const_int_le_6_operand): Likewise.
7143         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
7144         for const_int_le_2_operand and const_int_le_6_operand.
7145         * config/h8300/h8300.md: Update all uses of split_adds_subs.
7146         (a peephole2): New.
7147
7148 2003-02-18  Jan Hubicka  <jh@suse.cz>
7149
7150         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
7151         (cgraph_expand_function): Rewrite.
7152
7153 2003-02-18  Matt Austern <austern@apple.com>
7154
7155         * toplev.c, langhooks.c, langhooks-def.h: Move
7156         write_global_declarations from toplev.c to langhooks.c.
7157
7158 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
7159
7160         * config/h8300/h8300.c (general_operand_src): Always check
7161         MODE.
7162         (general_operand_dst): Likewise.
7163
7164 2003-02-18  Roger Sayle  <roger@eyesopen.com>
7165
7166         * convert.c (convert_to_real): Also optimize (float)log(x) into
7167         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
7168
7169 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
7170
7171         * config/sh/sh.c (unspec_caller_rtx_p): New.
7172         (sh_cannot_copy_insn_p): New.
7173         (TARGET_CANNOT_COPY_INSN_P): New.
7174
7175 2003-02-18  Richard Henderson  <rth@redhat.com>
7176
7177         * c-common.c (handle_used_attribute): Accept static data too.
7178
7179 2003-02-18  Nick Clifton  <nickc@redhat.com>
7180             Aldy Hernandez  <aldyh@redhat.com>
7181
7182         * testsuite/gcc.dg/20030218-1.c: New.
7183
7184         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
7185
7186         * target-def.h (TARGET_INITIALIZER): Add
7187         TARGET_VECTOR_TYPES_COMPATIBLE.
7188         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
7189
7190         * target.h (struct gcc_target): Add field vector_types_compatible.
7191
7192         * c-typeck.c (comptypes): Take into account
7193         TARGET_VECTOR_TYPES_COMPATIBLE.
7194         (convert_for_assignment): Same.
7195
7196         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
7197         (rs6000_spe_vector_types_compatible): New.
7198         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
7199
7200 2003-02-19  Andreas Schwab  <schwab@suse.de>
7201
7202         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
7203         * toplev.c: Include langhooks-def.h.
7204
7205 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
7206
7207         * config/mips/mips.h (enum processor_type): Sort entries
7208         alphabetically.
7209         * config/mips/mips.md (define_attr cpu): Sync with processor_type
7210         enum values, including adding entries that were missing.
7211
7212 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
7213
7214         * sh.c (calc_live_regs): Also check GET_CODE when checking if
7215         initial value for PR_REG is still the PR_REG register.
7216
7217 2003-02-18  Jim Wilson  <wilson@redhat.com>
7218
7219         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
7220         instruction in output template.
7221         (bsp_value): Change output template from string to C code, add %,
7222         before actual instruction.
7223         (flushrs): Mark as not predicable.
7224
7225 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
7226
7227         * inclhack.def (netbsd_bogus_semicolon): New fix.
7228         * fixincl.x: Rebuilt.
7229         * tests/base/ctype.h: Update.
7230
7231 2003-02-18  Roger Sayle  <roger@eyesopen.com>
7232
7233         * fold-const.c (negate_expr_p): New function to determine whether
7234         an expression can be negated cheaply.
7235         (fold) [MINUS_EXPR]: Use it to determine whether to transform
7236         -A - B into -B - A for floating point types.
7237
7238 2003-02-18  Roger Sayle  <roger@eyesopen.com>
7239
7240         * sbitmap.c (sbitmap_resize): New function.
7241         * sbitmap.h (sbitmap_resize): Prototype here.
7242         * recog.c (split_all_insns): Use sbitmap_resize.
7243
7244 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
7245
7246         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
7247         insn length.
7248         (extendqisi2): Likewise.
7249         (*extendhisi2_h8300): Likewise.
7250
7251 2003-02-18  Matt Austern <austern@apple.com>
7252
7253         * langhooks.h, langhooks-def.h: introduce new langhook,
7254         final_write_globals, with write_global_declarations as default.
7255         * toplev.c: Move invocation of wrapup_global_declarations from
7256         compile_file to new function, write_global_declarations.  Change
7257         compile_file to use final_write_globals hook.  Change
7258         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
7259         conditional.
7260
7261 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7262
7263         * pa.md: Correct and enhance comment.
7264
7265 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
7266
7267         * gcc.c (validate_switches): Don't scan past closing '}'.
7268
7269 2003-02-18  Ben Elliston  <bje@redhat.com>
7270
7271         PR c++/1607
7272         * doc/extend.texi (Function Attributes): Document the effect of
7273         the C++ "this" parameter on the counting of arguments for the
7274         "format" and "format_arg" attributes.
7275
7276 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
7277
7278         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
7279         (__ev_stdw): Same.
7280         (__ev_stdh): Same.
7281
7282 2003-02-17  Jan Hubicka  <jh@suse.cz>
7283
7284         * recog.c (split_all_insns):  Fix memory overflow.
7285
7286 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
7287
7288         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
7289         (cmphi): Likewise.
7290         (*cmphi_h8300): Likewise.
7291         (*cmphi_h8300hs): Likewise.
7292         (cmpsi): Likewise.
7293         (7 peephole2): Likewise.
7294
7295 2003-02-16  Jan Hubicka  <jh@suse.cz>
7296
7297         * c-typeck.c (build_c_cast):  Fold constant variables into
7298         initial values.
7299
7300 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7301
7302         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
7303         (Binaries): Ditto for Sinix/Reliant Unix.
7304
7305 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
7306
7307         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
7308         not overlap the final result register.
7309
7310 2003-02-16 Arend Bayer <arend.bayer@web.de>
7311            Richard Henderson  <rth@redhat.com>
7312
7313         PR c/8068
7314         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
7315         rearrange mult arguments for less recursion.
7316         (extract_muldiv): New.  Prevent runaway recursion.
7317
7318 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
7319
7320         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
7321         MASK_ALIGN_DOUBLE.
7322
7323 2003-02-15  Roger Sayle  <roger@eyesopen.com>
7324
7325         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
7326         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
7327         (ext_80387_constants_table): Global table of 80387 special constants
7328         guarded by ext_80387_constants_init flag when not initialized.
7329         (init_ext_80387_constants): New function to initialize this table.
7330         (standard_80387_constant_p): Extend to recognize extra 80387
7331         constants, in XFmode, on processors where this is a win.
7332         (standard_80387_constant_opcode): New function to return the
7333         opcode associated with standard_80387_constant_p.
7334         (standard_80387_constant_rtx): New function to return the XFmode
7335         CONST_DOUBLE associated with standard_80387_constant_p.
7336         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
7337
7338         * config/i386/i386-protos.h (standard_80387_constant_opcode):
7339         Prototype here.
7340         (standard_80387_constant_rtx): Likewise.
7341
7342         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
7343         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
7344         *movtf_integer): Simplify using new standard_80387_constant_opcode.
7345
7346 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
7347
7348         * doc/invoke.texi (Optimize Options): Correct @option syntax.
7349
7350 2003-02-15  Richard Henderson  <rth@redhat.com>
7351
7352         * Makefile.in (cfglayout.o): Depend on TARGET_H.
7353         * cfglayout.c: Include target.h.
7354         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
7355         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
7356         * target.h (struct gcc_target): Add cannot_copy_insn_p.
7357
7358         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
7359         (TARGET_CANNOT_COPY_INSN_P): New.
7360         (override_options): Revert 2003-02-08 hack.
7361
7362 2003-02-15  Richard Henderson  <rth@redhat.com>
7363
7364         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
7365         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
7366
7367 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
7368
7369         * config/rs6000/rs6000.h (processor_type): Add PPC440.
7370         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7371         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7372         TARGET_SCHED_VARIABLE_ISSUE): Define.
7373         (rs6000_use_dfa_pipeline_interface): New function.
7374         (rs6000_multipass_dfa_lookahead): New Function.
7375         (rs6000_variable_issue): New function.
7376         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
7377         (rs6000_issue_rate): Add PPC440.
7378         * config/rs6000/rs6000.md (unspec list): Correct typo.
7379         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
7380         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
7381         cmp, delayed_cr, mfcr, mtcr.
7382         (automata_option): Set "ndfa".
7383         (extendMMNN2): Update attributes.
7384         (movcc_internal1): Discourage move to non-cr0.  Update
7385         attributes.
7386         (movMM_update): Update attributes.
7387         (cmpMM_internal): Update attributes.
7388         (sCC CR materialization): Update attributes.
7389         (branch patterns): Do not discourage non-cr0.
7390         (cr logical patterns): Prefer destructive register allocation.
7391         Update attributes.
7392         (movesi_from_cr): Update attribute.
7393         (mtcrf_operation): Update attribute.
7394         (mtcrfsi): Update attribute.
7395         * config/rs6000/40x.md: New file.
7396         * config/rs6000/603.md: New file.
7397         * config/rs6000/6xx.md: New file.
7398         * config/rs6000/7450.md: New file.
7399         * config/rs6000/7xx.md: New file.
7400         * config/rs6000/mpc.md: New file.
7401         * config/rs6000/power4.md: New file.
7402         * config/rs6000/rios1.md: New file.
7403         * config/rs6000/rios2.md: New file.
7404         * config/rs6000/rs64.md: New file.
7405         [Some DFA descriptions based on work by Michael Hayes]
7406
7407 2003-02-15  Richard Henderson  <rth@redhat.com>
7408
7409         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
7410         successors with multiple predecessors.
7411         (connect_traces): Try harder to copy traces of length 1.
7412
7413         * function.h (struct function): Add computed_goto_common_label,
7414         computed_goto_common_reg.
7415         * function.c (free_after_compilation): Zap them.
7416         * stmt.c (expand_computed_goto): Use them to produce one
7417         indirect branch per function.
7418
7419 2003-02-15  Richard Henderson  <rth@redhat.com>
7420
7421         * cfgcleanup.c: Include params.h.
7422         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
7423         too many outgoing edges from a block.
7424         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
7425         * params.def (max-crossjump-edges): New.
7426         * doc/invoke.texi: Document it.
7427
7428 2003-02-15  Richard Henderson  <rth@redhat.com>
7429
7430         * recog.c (split_all_insns): Include new blocks in life update;
7431         do a global life update.
7432
7433 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
7434
7435         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
7436         Update copyright.
7437         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
7438         -mno-cygwin case.
7439
7440 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
7441
7442         PR optimization/7702
7443         * reload1.c (reload_cse_simplify_set): Honor
7444         CANNOT_CHANGE_MODE_CLASS.
7445
7446 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
7447
7448         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
7449         function.
7450         * config/mn10300/mn10300-protos.h: Declare it.
7451         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
7452         attribute cc of instructions that may use clr.
7453
7454 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
7455
7456         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
7457         (x - (x & y)) is found.
7458
7459 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7460
7461         * configure.in: Fix typo.
7462         * configure: Regenerate.
7463
7464 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
7465
7466         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
7467
7468 2003-02-13  Adam Nemet  <anemet@lnxw.com>
7469
7470         PR opt/2391
7471         * combine.c: Fix spelling in comment.
7472         (cached_nonzero_bits): New function.
7473         (cached_num_sign_bit_copies): New function.
7474         (nonzero_bits_with_known): New macro.
7475         (num_sign_bit_copies_with_known): New macro.
7476         (nonzero_bits1): Rename from nonzero_bits.  Add three new
7477         arguments.  Change calls from nonzero_bits to
7478         nonzero_bits_with_known.
7479         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
7480         three new arguments.  Change calls from num_sign_bit_copies to
7481         num_sign_bit_copies_with_known.
7482         (nonzero_bits): New macro.
7483         (num_sign_bit_copies): New macro.
7484         (update_table_tick): Don't traverse identical subexpression more
7485         than once.
7486         (get_last_value_validate): Likewise.
7487
7488 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
7489
7490         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
7491         * function.h (struct emit_status): Length of regno_pointer_align
7492         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
7493         not regno_pointer_align_length (i.e. length actually used, not
7494         length as allocated)
7495
7496         * config/i386/i386.c (struct stack_local_entry): New.
7497         (struct machine_function): Replace huge array with alist.
7498         (assign_386_stack_local): Change to match.
7499
7500 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
7501
7502         * inclhack.def (hpux_long_double): Tighten select and add bypass
7503         regexp.
7504         * fixincl.x: Rebuilt.
7505
7506 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
7507
7508         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
7509         edge and block ends with a jump insn it must be simple jump.
7510
7511 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
7512
7513         * Makefile.in (PREPROCESSOR_DEFINES): Add
7514         @TARGET_SYSTEM_ROOT_DEFINE@.
7515         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
7516         is specified or if building a cross compiler.
7517         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
7518         if the sysroot is under $exec_prefix.
7519         * configure: Regenerated.
7520         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
7521         defined.
7522         (struct default_include): Add add_sysroot field.
7523         (cpp_SYSROOT): Declare.
7524         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
7525         field.
7526         (cpp_SYSROOT): New variable.
7527         * cppinit.c (cpp_create_reader): Initialize
7528         CPP_OPTION (pfile, sysroot).
7529         (init_standard_includes): Handle add_sysroot.  Do not
7530         add unrelocated copies of relocated directories.
7531         (COMMAND_LINE_OPTIONS): Add -isysroot.
7532         (cpp_handle_option): Handle -isysroot.
7533         * cpplib.h (struct cpp_options): Add sysroot member.
7534         * gcc.c (The Specs Language): Update description of %I.
7535         (target_system_root_changed): New variable.
7536         (process_command): Conditionalize make_relative_prefix call
7537         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
7538         target_system_root_changed.
7539         (do_spec_1): Add -isysroot to %I.
7540         * doc/invoke.texi (Spec Files): Update description of %I.
7541         * doc/install.texi (--with-sysroot): Update comment about
7542         relocation.
7543
7544 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
7545
7546         * config/h8300/h8300.md (a peephole2): New.
7547
7548 2003-02-13  Robert Lipe <robertlipe@usa.net>
7549             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7550
7551         * doc/install.texi (Specific): Update three SCO-related URLs.
7552
7553 2003-02-13  Andreas Schwab  <schwab@suse.de>
7554
7555         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
7556         Parenthesize properly.
7557         (NPREDECESORS): Parenthesize properly.
7558
7559 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7560
7561         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
7562
7563 2003-02-12  Roger Sayle  <roger@eyesopen.com>
7564
7565         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
7566         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
7567
7568         * reg-stack.c (subst_stack_regs_pat): Add support for binary
7569         UNSPEC instructions (e.g. "fpatan").
7570
7571 2003-02-12  Mike Stump  <mrs@apple.com>
7572
7573         * varray.c (element_size): Remove.
7574         (uses_ggc): Remove.
7575         (element): Add.
7576         (varray_init): Use new interface.
7577         (varray_grow): Use new interface.
7578         (varray_clear): Use new interface.
7579
7580 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
7581
7582         * config/rs6000/spe.h: Add casts to the arguments of the following
7583         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
7584         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
7585         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
7586         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
7587         __ev_get_u16, __ev_get_s16.
7588
7589 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
7590
7591         * config/h8300/h8300.md (a peephole2): New.
7592
7593 2003-02-12  Jan Hubicka  <jh@suse.cz>
7594
7595         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
7596         (OBJS): Add callgraph.o
7597         (callgraph.o): New.
7598         * c-decl.c (expand_body_1): Break out from ...
7599         (expand_body): This one;  change calling convention
7600         (finish_function): Move some of expand_body logic here.
7601         (c_expand_deferred_function): Update call of expand_body
7602         (c_expand_stmt): Use c_expand_body_1.
7603         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
7604         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
7605         * c-tree.h (c_expand_body): Declare.
7606         * callgraph.c: New file.
7607         * flags.h (flag_unit_at_a_time): Declare.
7608         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
7609         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
7610         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
7611         * langhooks.h (struct lang_hooks_for_callgraph): New.
7612         (struct lang_hooks): Add callgraph field.
7613         * toplev.c (flag_unit_at_a_time): New.
7614         (lang_independent_options): Add flag_unit_at_a_time.
7615         (process_options): Disable unit-at-a-time mode for frontends not
7616         supporting callgraph.
7617         * tree-inline.c (typedef struct inline_data): Add "decl"
7618         (expand_call_inline): Update callgraph.
7619         (optimize_inline_calls): Set id.decl.
7620         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
7621         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
7622         cgraph_calls_p): Declare.
7623         * invoke.texi (-funit-at-a-time): Document
7624
7625 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
7626
7627         * config/rs6000/spe.h: Fix misc formatting.
7628         (__ev_create_ufix32_fs): Cast ev argument.
7629         (__ev_create_sfix32_fs): Same.
7630         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
7631         (__ev_get_ufix32_fs_internal): Same.
7632
7633 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
7634
7635         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
7636         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
7637
7638 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
7639
7640         * cpplib.c (do_include_common): Move warnings for
7641         #include_next and #import out to callers.  Use early-return
7642         instead of nested ifs.  Don't do check_eol here.
7643         (parse_include): Do check_eol here with the rest of the
7644         parsing stuff.
7645         (do_include_next, do_import): Now handle warnings.
7646
7647 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7648
7649         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
7650
7651 2003-02-12  Jan Hubicka  <jh@suse.cz>
7652
7653         * predict.c (estimate_probability):  Fix roundoff error.
7654
7655 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
7656
7657         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
7658         (two peephole2): New.
7659
7660 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
7661
7662         * config/h8300/h8300.md (several peephole2): Replace
7663         find_regno_note with peep2_reg_dead_p.
7664
7665 2003-02-11  Richard Henderson  <rth@redhat.com>
7666
7667         * gcse.c (lookup_set): Remove unused argument PAT.  Update
7668         both callers.
7669
7670 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
7671
7672         * diagnostic.c (real_abort): New.
7673         (diagnostic_report_diagnostic): Call real_abort on error.
7674         * diagnostic.h (diagnostic_abort_on_error): New.
7675         (struct diagnostic_context): Add abort_on_error field.
7676         * toplev.c (setup_core_dumping): New.
7677         (decode_d_option): Handle 'H' case.
7678         * doc/invoke.texi (Debugging Options): Document -dH.
7679
7680 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
7681
7682         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
7683         which refers to obsolete directories.
7684
7685 2003-02-11  Richard Henderson  <rth@redhat.com>
7686
7687         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
7688
7689 2002-10-21  Jan Hubicka  <jh@suse.cz>
7690
7691         * i386.c (contains_128bit_aligned_vector_p): New function.
7692         (ix86_function_arg_boundary): Properly align vector modes.
7693
7694 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
7695
7696         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
7697         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
7698         as a SET pattern.
7699
7700 2003-02-11  Roger Sayle  <roger@eyesopen.com>
7701
7702         * builtins.c:  Fix failure caused by commiting wrong patch.
7703
7704 2003-02-11  Dale Johannesen  <dalej@apple.com>
7705         * ra-build.c (compare_and_free_webs):  Relax checking.
7706         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
7707         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
7708
7709 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
7710
7711         PR optimization/9651
7712         * rtlanal.c (may_trap_p): Handle FIX.
7713
7714 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
7715
7716         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
7717         * doc/invoke.texi: Extra alias.
7718
7719 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
7720
7721         * config/rs6000/host-darwin.c: Fix comment.
7722
7723 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
7724
7725         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
7726         predicate for mod result.
7727
7728 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7729
7730         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
7731         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
7732         * fixincl.x: Rebuilt.
7733         * tests/base/stdlib.h: Update.
7734         * tests/base/ctype.h: New file.
7735
7736 2003-02-11  Jan Hubicka  <jh@suse.cz>
7737
7738         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
7739
7740 2003-02-11  Richard Henderson  <rth@redhat.com>
7741
7742         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
7743         appropriated as globals.
7744         (ix86_expand_clrstr): Similarly.
7745         * config/i386/i386.md (cmpstrsi): Similarly.
7746
7747 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
7748
7749         * config/h8300/h8300.md (a peephole2): Add a case of 255.
7750
7751 2003-02-11  Roger Sayle  <roger@eyesopen.com>
7752
7753         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
7754         (pow_optab, atan2_optab): Define corresponding macros.
7755         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
7756         * genopinit.c (optabs): Implement pow_optab and atan2_optab
7757         using pow?f3 and atan2?f3 patterns.
7758         * builtins.c (expand_errno_check): New function to update errno
7759         if necessary, split out from expand_builtin_mathfn.
7760         (expand_builtin_mathfn): Use expand_errno_check.
7761         (expand_builtin_mathfn_2): New function to handle expanding binary
7762         math functions, reusing the code in expand_errno_check.
7763         (expand_builtin): Handle the pow and atan2 math built-ins,
7764         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
7765         expand_builtin_mathfn_2.
7766
7767         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
7768
7769 2003-02-11  Jan Hubicka  <jh@suse.cz>
7770
7771         * combine.c (combine_simplify_rtx): Fix folding of
7772         nested float_truncates.
7773
7774 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
7775
7776         * config/h8300/h8300.md (a peephole2): Fix a typo.
7777
7778 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
7779
7780         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
7781         register number.
7782
7783 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
7784
7785         * config/h8300/h8300-protos.h: Add a prototype for
7786         gtuleu_operator.
7787         * config/h8300/h8300.c (gtuleu_operator): New.
7788         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
7789         * config/h8300/h8300.md (a peephole2): New.
7790
7791 2003-02-11  Jan Hubicka  <jh@suse.cz>
7792
7793         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
7794
7795 2003-02-11  Jan Hubicka  <jh@suse.cz>
7796
7797         * predict.c (choose_function_section): Choose sections correctly.
7798
7799 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7800
7801         * reload1.c (first_label_num): New.
7802         (reload): Index offsets_known_at and offsets_at using difference of
7803         label number and first label number.  Don't use offset pointers.
7804         (set_label_offsets, set_initial_label_offsets): Likewise.
7805
7806 2003-02-10  Roger Sayle  <roger@eyesopen.com>
7807
7808         * mips-tfile.c (init_file): Add missing initializers in the
7809         "#ifdef __alpha" case.
7810         (file_offset, max_file_offset): Declare as unsigned long.
7811         (write_varray): Cast to "unsigned long" in comparisons against
7812         either file_offset or max_file_offset.
7813         (write_object): Likewise.
7814         (read_seek): Likewise.
7815         (copy_object): Likewise. Declare "ifd" as int to match its use
7816         in add_ext_symbol, and avoid signed/unsigned conditional warning.
7817
7818 2003-02-10  Nick Clifton  <nickc@redhat.com>
7819             Aldy Hernandez  <aldyh@redhat.com>
7820
7821         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
7822         override options which have been specified on the command line.
7823
7824 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
7825
7826         * config/h8300/h8300.md (abssf2): New.
7827         (*abssf2_h8300): Likewise.
7828         (*abssf2_h8300hs): Likewise.
7829
7830 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
7831
7832         * tree.c (build_tree_list):  Fix parameter names in comment.
7833
7834 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
7835
7836         * config/rs6000/ppc64-fp.c: New file.
7837         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
7838
7839 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
7840
7841         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
7842         * bb-reorder.c (make_reorder_chain): Deleted.
7843         (make_reorder_chain_1): Deleted.
7844         (find_traces): New function.
7845         (rotate_loop): New function.
7846         (mark_bb_visited): New function.
7847         (find_traces_1_round): New function.
7848         (copy_bb): New function.
7849         (bb_to_key): New function.
7850         (better_edge_p): New function.
7851         (connect_traces): New function.
7852         (copy_bb_p): New function.
7853         (get_uncond_jump_length): New function.
7854         (reorder_basic_blocks): Use new functions (Software Trace Cache).
7855         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
7856         boundaries.
7857
7858 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
7859
7860         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
7861
7862 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
7863
7864         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
7865         (DECL_LIVE_RANGE_RTL): Remove.
7866
7867 2003-02-10  Nick Clifton  <nickc@redhat.com>
7868
7869         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
7870         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
7871         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
7872         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
7873         config/arm/freebsd.h, config/arm/linux-elf.h,
7874         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
7875         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
7876         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
7877         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
7878         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
7879         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
7880         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
7881         and reformat as appropriate.
7882
7883 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
7884
7885         * config/h8300/clzsi2.c: Remove.
7886         * config/h8300/ctzsi2.c: Likewise.
7887         * config/h8300/paritysi2.c: Likewise.
7888         * config/h8300/popcountsi2.c: Likewise.
7889         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
7890         ctzsi2, paritysi2, and popcountsi2.
7891
7892 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
7893             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
7894
7895         PR c/7741
7896         * c-decl.c (duplicate_decls): Discard the initializer of the
7897         new decl when the types are conflicting.
7898
7899 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
7900
7901         * Makefile.in (sreal.o): Added.
7902         (predict.o): Depends on sreal.h instead of real.h.
7903         * sreal.c: New file.
7904         * sreal.h: New file.
7905         * predict.c: Use sreal.c instead of real.c.
7906
7907 2003-02-10  Nick Clifton  <nickc@redhat.com>
7908
7909         * Contributed support for the Cirrus EP9312 "Maverick"
7910         floating point co-processor.  Written by Aldy Hernandez
7911         <aldyh@redhat.com>.
7912         (config/arm/arm.c): Add Cirrus support.
7913         (config/arm/arm.h): Likewise.
7914         (config/arm/aout.h): Likewise.
7915         (config/arm/arm.md): Likewise.
7916         (config/arm/arm-protos.h): Likewise.
7917         (config.gcc): Likewise.
7918         (doc/invoke.texi): Describe new -mcpu value and new
7919         -mcirrus-fix-invalid-insns switch,
7920         (cirrus.md): New file.
7921
7922 2003-02-10  Jan Hubicka  <jh@suse.cz>
7923
7924         * combine.c (combine_simplify_rtx): Simplify using
7925         (float_truncate (float x)) is (float x)
7926         (float_extend (float_extend x)) is (float_extend x).
7927
7928 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
7929
7930         * calls.c (try_to_integrate): Tidy stack_usage_map access.
7931         (emit_library_call_value_1): Likewise.  Formatting.
7932         (store_one_arg): Likewise.
7933
7934 2003-02-09  Nick Clifton  <nickc@redhat.com>
7935             Aldy Hernandez  <aldyh@redhat.com>
7936
7937         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
7938         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
7939         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
7940         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
7941         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
7942         docs.  Add range test for immediate value.
7943
7944 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
7945
7946         Rename spe_evxor to xorv2si3.
7947         (xorv4hi3): New.
7948         (xorv1di3): New.
7949
7950 2003-02-10  Glen Nakamura  <glen@imodulo.com>
7951
7952         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
7953         tag.
7954
7955 2003-02-10  Jan Hubicka  <jh@suse.cz>
7956
7957         * i386.c (vector_move_operand): New predicate.
7958         (ix86_expand_vector_move): Be happy about 0.
7959         * i386.h (PREDICATE_CODES): Add sse-move_operand.
7960         * i386.md (mov*_internal): Add 'C' alternative.
7961
7962 2003-02-09  Jan Hubicka  <jh@suse.cz>
7963
7964         * i386.md (floathi*): Deal with SSE.
7965
7966 2003-02-09  Jan Hubicka  <jh@suse.cz>
7967
7968         * simplify-rtx.c (simplify_unary_operation,
7969         simplify_binary_operation):  Deal with vector modes
7970         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
7971
7972 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
7973
7974         * toplev.c (rest_of_compilation): Recompute register usage after
7975         split_all_insns.
7976
7977 2003-02-09  Richard Henderson  <rth@redhat.com>
7978
7979         * libgcc-std.ver (__clztf2): New.
7980         (__ctztf2, __popcounttf2, __paritytf2): New.
7981         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
7982         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
7983         adjust code to match the different type sizes.
7984         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
7985         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
7986
7987         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
7988         TImode; select word_mode and twice that.
7989         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
7990         select the modes from float, double, and long double.
7991         (init_optabs): Remove duplicate initializations.
7992
7993 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
7994
7995         * doc/install.texi: Squeeze and streamline section on
7996         testing and regression checking.
7997
7998 2003-02-09  Jan Hubicka  <jh@suse.cz>
7999
8000         * i386.md (ahi?v*3): Set third operand type to TImode.
8001         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
8002
8003         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
8004         integer mode.
8005
8006         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
8007         Change code so they are arithmetic expressions now.
8008         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
8009         simplify_ternary_operation): Deal with VEC_* expressions.
8010
8011         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
8012
8013 2003-02-08  Jan Hubicka  <jh@suse.cz>
8014
8015         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
8016         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
8017         possibly got duplicated.
8018
8019 2003-02-08  Richard Henderson  <rth@redhat.com>
8020
8021         * config/alpha/alpha.c (override_options): Turn off explicit
8022         relocs until post-peep2 code duplication resolved.
8023
8024 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
8025
8026         * optabs.c (expand_unop): Widen clz properly when clz is done
8027         via libcall.
8028
8029 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
8030
8031         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
8032         * config/h8300/crti.asm: Likewise.
8033         * config/h8300/crtn.asm: Likewise.
8034         * config/h8300/ctzsi2.c: Likewise.
8035         * config/h8300/fixunssfsi.c: Likewise.
8036         * config/h8300/h8300-protos.h: Likewise.
8037         * config/h8300/h8300.c: Likewise.
8038         * config/h8300/h8300.h: Likewise.
8039         * config/h8300/h8300.md: Likewise.
8040         * config/h8300/paritysi2.c: Likewise.
8041         * config/h8300/popcountsi2.c: Likewise.
8042         * config/h8300/rtems.h: Likewise.
8043
8044 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8045
8046         * doc/invoke.texi: Documentation for my previous commit.
8047         * doc/passes.texi: Ditto.
8048
8049 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8050
8051         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
8052         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
8053         Declare.
8054         (DLTHE_FLAG_UPDATE_FREQ): New.
8055         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
8056         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
8057         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
8058         fix_bb_placement, fix_bb_placements, place_new_loop,
8059         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
8060         New static functions.
8061         (fix_loop_placement, can_duplicate_loop_p,
8062         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
8063         New functions.
8064
8065         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
8066         unswitch_loops): Declare.
8067         * loop-init.c: New file.
8068         * loop-unswitch.c: New file.
8069         * Makefile.in (loop-init.o, loop-unswitch.o): New.
8070         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
8071         * toplev.c (DFI_loop2): New dump.
8072         (flag_unswitch_loops): New.
8073         (lang_independent_options): Add it.
8074         (rest_of_compilation): Call new loop optimizer.
8075         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
8076
8077 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
8078
8079         * config/h8300/clzsi2.c: New.
8080         * config/h8300/ctzsi2.c: Likewise.
8081         * config/h8300/paritysi2.c: Likewise.
8082         * config/h8300/popcountsi2.c: Likewise.
8083         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
8084
8085 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
8086
8087         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
8088         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
8089         (ctzsi2): New pattern.
8090         (ffssi2): Use clz instead of unspec.
8091         (clzdi2): Rename from cntlzd2.
8092         (ctzdi2): New pattern.
8093         (ffsdi2): Use clz instead of unspec.
8094
8095 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
8096
8097         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
8098         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
8099         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8100         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
8101
8102 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
8103
8104         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
8105
8106 2003-02-07  Richard Henderson  <rth@redhat.com>
8107
8108         PR 9226
8109         * gcse.c (local_cprop_find_used_regs): New.
8110         (local_cprop_pass): Use it.
8111
8112 2003-02-07  Fred Fish  <fnf@intrinsity.com>
8113
8114         * mips-tfile.c (parse_def): Parenthesize assignments to fix
8115         precedence bugs.
8116
8117 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
8118
8119         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
8120
8121 2003-02-07  Roger Sayle  <roger@eyesopen.com>
8122
8123         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
8124         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
8125         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
8126         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
8127         builtin functions (and their __builtin_* variants).
8128         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
8129         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
8130         when not optimizing.
8131
8132         * doc/extend.texi: Document new pow and atan2 builtins, and
8133         their float and long double variants.  Realphabetize builtins.
8134
8135 2003-02-07  Jan Hubicka  <jh@suse.cz>
8136
8137         * i386.md (sse2_nandv2di3): Fix.
8138
8139 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
8140
8141         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
8142         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
8143         definition.
8144         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
8145         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
8146
8147 2003-02-07  Jan Hubicka  <jh@suse.cz>
8148
8149         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
8150
8151 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
8152
8153         * cfg.c (dump_flow_info): Add back accidently deleted line.
8154
8155 2003-02-07  Andrey Petrov <petrov@netbsd.org>
8156
8157         * optabs.c (expand_float): Search wider integer modes first.
8158
8159 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
8160
8161         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
8162         based on preprocessor flag.
8163
8164 2003-02-07  Roger Sayle  <roger@eyesopen.com>
8165             Richard Henderson  <rth@redhat.com>
8166
8167         * gcse.c (implicit_sets): New.
8168         (compute_hash_table_work): Include them in hash table.
8169         (find_implicit_sets, fis_get_condition): New.
8170         (one_cprop_pass): Allocate and free implicit_sets; call
8171         find_implicit_sets before building hash table.
8172
8173 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
8174
8175         * config/t-netbsd (USER_H): Revert previous change.
8176
8177 2003-02-07  Gabor Greif  <ggreif@lucent.com>
8178
8179         * doc/c-tree.texi (Namespaces): Fix typo.
8180
8181 2003-02-07  Jan Hubicka  <jh@suse.cz>
8182
8183         * regrename.c (do_replace, find_oldest_value_reg,
8184         copyprop_hardreg_forward_1): Update register attributes.
8185
8186 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
8187
8188         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
8189         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
8190         variables starting with underscore.
8191         (struct unit_usage): New structure.
8192         (unit_usages, cycle_alt_unit_usages): New global variables.
8193         (check_unit_distribution_in_reserv): Remove it.
8194         (store_alt_unit_usage): New function.
8195         (check_regexp_units_distribution): Rewrite it.
8196
8197 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8198
8199         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
8200         target_cpu_default.
8201         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
8202         if not MASK_NO_SPACE_REGS.
8203         (output_call): Adjust return pointer, don't load new space register
8204         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
8205         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
8206         TARGET_NO_SPACE_REGS is true.
8207         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
8208         conditions.
8209         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
8210         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
8211         true.  Use bve when TARGET_64BIT is true.
8212
8213 2003-02-06  Richard Henderson  <rth@redhat.com>
8214
8215         * combine.c (nonzero_bits): Fix double break.
8216
8217 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
8218             Richard Henderson <rth@redhat.com>
8219
8220         PR c/9530
8221         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
8222         from functions that return a float to functions that don't.
8223
8224 2003-02-06  Jan Hubicka  <jh@suse.cz>
8225
8226         * i386.c (x86_inter_unit_moves): New variable.
8227         (ix86_secondary_memory_needed): Fix 64bit case, honor
8228         TARGET_INTER_UNIT_MOVES
8229         * i386.h (x86_inter_unit_moves): Declare.
8230         (TARGET_INTER_UNIT_MOVES): New macro.
8231         * i386.md (movsi_1): Cleanup constraints; disable
8232         when not doing inter-unit moves.
8233         (movsi_1_nointernunit): New.
8234         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
8235         (movdi_1_rex64_nointerunit): New.
8236         (mivsf_1): disable when not doing inter-unit moves.
8237         (movsf_1_nointerunit): New.
8238
8239         * basic-block.h (inside_basic_block_p):  Declare.
8240         * cfgbuild.c (inside_basic_block_p): Make global.
8241         * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
8242         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
8243         update CFG.
8244         (fix_basic_block_boundaries, add_missing_bbs): New.
8245         (rank): Use profile.
8246         (scheudle_ebbs): Rely on CFG; update coments.
8247
8248 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
8249
8250         * Makefile.in (host_hook_obj): New.
8251         (OBJS): Add $(host_hook_obj).
8252         (host_default.o): New rule.
8253         * config.gcc (host_hook_obj): New, default to host-default.o.
8254         (powerpc-*-darwin*): Use host-darwin.o.
8255         (out_host_hook_obj): New.
8256         * configure: Regenerate.
8257         * configure.in: Print information about out_host_hook_obj, substitute
8258         into output files.
8259         * host-default.c: New file.
8260         * hosthooks.h: New file.
8261         * toplev.c (general_init): Call host_hooks.extra_signals.
8262         * config/rs6000/host-darwin.c: New file.
8263         * config/rs6000/x-darwin: New file.
8264         * doc/hostconfig.texi: Add documentation for new host hook.
8265         Rearrange existing documentation.
8266
8267 2003-02-05  Roger Sayle  <roger@eyesopen.com>
8268
8269         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
8270         with *targetm.delegitimize_address.
8271         (rtl_for_decl_location): Likewise.
8272         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
8273         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
8274
8275         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
8276         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
8277         prototype.
8278         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
8279         i386_simplify_dwarf_addr.  Made static.  Prototyped.
8280         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
8281         i386_simplify_dwarf_addr to ix86_delegitimize_address.
8282         (ix86_find_base_term): Likewise.
8283         (maybe_get_pool_constant): Likewise.
8284
8285         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
8286         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
8287         prototype.
8288         * config/s390/s390.c (s390_delegitimize_address): Renamed from
8289         s390_simplify_dwarf_addr.  Made static.  Prototyped.
8290         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
8291
8292 2003-02-05  Richard Henderson  <rth@redhat.com>
8293
8294         PR c/8602
8295         * integrate.c (output_inline_function): Reset input_filename
8296         and lineno from the decl before rest_of_compilation.
8297
8298 2003-02-05  Richard Henderson  <rth@redhat.com>
8299
8300         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
8301         (CTZ_DEFINED_VALUE_AT_ZERO): New.
8302         * doc/rtl.texi, doc/tm.texi: Document them.
8303
8304         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
8305         of the value at zero properly.
8306         * fold-const.c (tree_expr_nonnegative_p): Likewise.
8307         * simplify-rtx.c (simplify_unary_operation): Likewise.
8308
8309         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
8310         (CTZ_DEFINED_VALUE_AT_ZERO): New.
8311
8312         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
8313         (TARGET_EXPAND_BUILTIN): Remove.
8314         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
8315         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
8316         (enum arm_builtins): Remove.
8317         * config/arm/arm.md (UNSPEC_CLZ): Remove.
8318         (clzsi2): Rename from clz; use clz instead of unspec.
8319         (ctzsi2): New.
8320         * config/arm/arm-protos.h: Update.
8321
8322 2003-02-05  Jan Hubicka  <jh@suse.cz>
8323
8324         * i386-protos.h (x86_emit_floatuns):  Declare.
8325         * i386.c (x86_emit_floatuns): New global function.
8326         * i386.md (floatunssisf2, floatunsdisf2,
8327         floatunsdidf2):  New patterns.
8328
8329 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8330
8331         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
8332
8333 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
8334
8335         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
8336           config/ia64/linux.h
8337
8338 2003-02-05  Roger Sayle  <roger@eyesopen.com>
8339
8340         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
8341
8342 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
8343
8344         PR optimization/8555
8345         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
8346         instead of aborting.
8347
8348 2003-02-04  Richard Henderson  <rth@redhat.com>
8349
8350         * config/i386/i386.md (UNSPEC_BSF): Remove.
8351         (ffssi2): Split into cmove and no_cmove insns and splitters;
8352         lose pentium float trick for now.
8353         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
8354         (ctzsi2, clzsi2, bsr): New.
8355
8356 2003-02-04  Richard Henderson  <rth@redhat.com>
8357
8358         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
8359         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
8360         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
8361         (ffsdi2): Use popcount instead of unspec.
8362         (popcountdi2): Rename from *popcnt.
8363         (ctzdi2, clzdi2, getf_exp_tf): New.
8364
8365 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
8366
8367         * genconfig.c (main): Generate CC0_P.
8368         * rtl.h (CC0_P): Remove.
8369
8370 2003-02-04  Richard Henderson  <rth@redhat.com>
8371
8372         * libgcc2.h, libgcc2.c (__ffsSI2): New.
8373         (__ffsDI2): Rename from __ffsdi2.
8374         * mklibgcc.in (lib2funcs): Add _ffssi2.
8375
8376 2003-02-04  Richard Henderson  <rth@redhat.com>
8377
8378         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
8379         rounds with a "bit table" lookup.
8380
8381 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
8382
8383         * reload.c (find_reloads): Do not use the mode specified in the insn
8384         pattern as reload mode for address operands.  Do not generate optional
8385         reloads for operands where a mandatory reload was already pushed.
8386
8387 2003-02-04  Richard Henderson  <rth@redhat.com>
8388
8389         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
8390         builtins instead of inline assembly.
8391
8392 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
8393
8394         PR c/9376
8395         * libgcc2.c (__subvdi3): Fix typo.
8396
8397 2003-02-04  Jan Hubicka  <jh@suse.cz>
8398
8399         * i386.md (movti_rex64):  Fix constraint.
8400
8401 2003-02-04  Jan Hubicka  <jh@suse.cz>
8402
8403         * i386.md (vector push splitters):  Fix typo in resolving conflict.
8404
8405 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
8406
8407         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
8408
8409 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
8410
8411         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
8412         for recent libstdc++.  Remove formatting cruft.
8413
8414 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
8415
8416         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
8417         attribute even if input file name is absolute, but one of the
8418         includes is relative.
8419
8420 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
8421
8422         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
8423         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
8424         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
8425
8426 2003-02-03  Richard Henderson  <rth@redhat.com>
8427
8428         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
8429         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
8430         return type to "int".  Shuffle declarations and undef int trap.
8431         * libgcc2.h: Remove their declarations.
8432         * optabs.c (expand_unop): Force outmode to int for bitops.
8433
8434 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
8435
8436         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
8437         coprocessor registers before floating-point registers.
8438         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
8439         to account for a previously removed register.
8440         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
8441         Delete unused macros.
8442
8443 2003-02-03  Jan Hubicka  <jh@suse.cz>
8444
8445         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
8446         (mov*_internal): Fix predicates; require one of operands to not be
8447         memory.
8448         (SSE?MMX move expanders):  Fix predicates; force one of operands to
8449         register.
8450         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
8451         (movups/movupd/movdqu patterns): Force one of operands to not be
8452         memory.
8453
8454 2003-02-03  Roger Sayle  <roger@eyesopen.com>
8455
8456         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
8457         takes a single rtx and returns it unmodified.
8458         * hooks.h (hook_rtx_rtx_identity): Prototype here.
8459         * target.h (struct gcc_target): Add "delegitimize_address"
8460         field to target structure.
8461         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
8462         for delegitimize_address target using hook_rtx_rtx_identity.
8463         (TARGET_INITIALIZER): Initialize delegitimize_address field
8464         using TARGET_DELEGITIMIZE_ADDRESS macro.
8465         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
8466         extensions of constant pool references.  Use delegitimize_address
8467         to undo the obfuscation of "-fpic".
8468         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
8469
8470         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
8471         i386_simplify_dwarf_addr.
8472         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
8473         (maybe_get_pool_constant): Likewise.
8474
8475 2003-02-03  Jan Hubicka  <jh@suse.cz>
8476
8477         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
8478
8479 2003-02-03  Jan Hubicka  <jh@suse.cz>
8480
8481         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
8482
8483 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8484
8485         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
8486         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
8487
8488 2003-02-02  Andreas Schwab  <schwab@suse.de>
8489
8490         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
8491
8492 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
8493
8494         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
8495         (epilogue_insns): Likewise.
8496
8497 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8498
8499         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
8500
8501 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8502
8503         * pa-protos.h (attr_length_millicode_call): Remove second argument.
8504         (attr_length_indirect_call, attr_length_indirect_call,
8505         attr_length_save_restore_dltp): New prototypes.
8506         * pa.c (attr_length_millicode_call): Remove second argument.  Check
8507         INSN_ADDRESSES_SET_P in distance calculation.
8508         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
8509         INSN_ADDRESSES.
8510         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
8511         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
8512         Call attr_length_call directly.
8513         (attr_length_indirect_call, output_indirect_call,
8514         attr_length_save_restore_dltp): New functions.
8515         * pa.md (attr_length_millicode_call): Drop second argument from all
8516         patterns.
8517         (return_internal_pic): Delete.
8518         (return_external_pic): Remove use of PIC register and pic operand and
8519         flag checks.
8520         (epilogue): Use return_internal for both normal and pic code.
8521         (call, call_value): Emit new 32-bit pic patterns for symref and
8522         indirect calls.  Remove uses for arg pointer and pic register.
8523         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
8524         call_reg_pic_post_reload, call_val_symref_pic,
8525         call_val_symref_pic_post_reload, call_val_reg_pic,
8526         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
8527         Implement define_split and define_peephole2 patterns for pre reload
8528         patterns.
8529         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
8530         call_value_internal_reg_64bit): Shorten names.
8531         (all call patterns): Explicitly indicate registers used and clobbered.
8532         Use attr_length_indirect_call and attr_length_save_restore_dltp for
8533         attribute length calculation.  Move code generation for indirect calls
8534         to output_indirect_call.
8535         (sibcall, sibcall_value): Don't restore PIC register.
8536         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
8537         register retore.
8538
8539 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8540
8541         * doc/install.texi (Testing): Simplify and compress instructions
8542         concerning Dejagnu.
8543
8544 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8545
8546         * collect2.c (pexecute_pid): Rename to pid.
8547         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
8548         pid.
8549
8550 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
8551
8552         * doc/extend.texi (Function Attributes): Remove documentation
8553         for PowerPC Windows NT function attributes..
8554
8555 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
8556
8557         * dwarf2out.c (gen_type_die): Check for typedefs before calling
8558         for TYPE_MAIN_VARIANT.
8559
8560 2003-02-01  Richard Henderson  <rth@redhat.com>
8561
8562         * libgcc2.c: Include auto-host.h.
8563         (ATTRIBUTE_HIDDEN): New.
8564         (__clz_tab): Don't declare here for clz and ctz.
8565         (__clzsi2, __clzdi2): Use count_leading_zeros.
8566         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
8567         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
8568         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
8569         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
8570
8571 2003-02-01  Richard Henderson  <rth@redhat.com>
8572
8573         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
8574         to the conditional.
8575         (ashlsi3_1_zext splitter): Likewise.
8576
8577 2003-02-01  Richard Henderson  <rth@redhat.com>
8578
8579         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
8580         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
8581         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
8582         return type to Wtype.
8583
8584         * libgcc-std.ver (GCC_3.4): Fix inheritance.
8585
8586         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
8587         expander input constraint.
8588
8589 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
8590
8591         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
8592         OTI_parity.
8593         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
8594         * optabs.c (widen_clz, expand_parity): New.
8595         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
8596         for libcalls to clz, ctz, popcount, and parity.
8597         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
8598         parity_optab, and set up libfunc handlers.
8599         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
8600         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
8601         __popcount_tab): New.
8602         * libgcc2.h: Declare them.
8603         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
8604         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
8605         and parity_optab.
8606         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
8607         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
8608         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
8609         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
8610         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
8611         BUILT_IN_PARITYLL): New.
8612         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
8613         and add optab argument.
8614         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
8615         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
8616         * expr.c (expand_expr): Handle them.
8617         * fold-const.c (tree_expr_nonnegative_p): Likewise.
8618         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
8619         * reload1.c (eliminate_regs): Handle them.
8620         (elimination_effects): Likewise.
8621         * function.c (instantiate_virtual_regs_1): Likewise
8622         * genattrtab.c (check_attr_value): Likewise.
8623         * simplify-rtx.c (simplify_unary_operation): Likewise.
8624         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
8625         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
8626         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
8627         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
8628         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
8629         __builtin_arm_clz.
8630         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
8631         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
8632         * doc/extend.texi (Other Builtins): Add new builtins.
8633         * doc/md.texi (Standard Names): Add new patterns.
8634
8635 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
8636
8637         * reload.c: Revert 2003-01-31 change.
8638
8639 2003-02-01  Jan Hubicka  <jh@suse.cz>
8640
8641         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
8642
8643 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
8644
8645         * flags.h (flag_volatile): Remove declaration.
8646         (flag_volatile_global, flag_volatile_static): Likewise.
8647         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
8648         * toplev.c (flag_volatile): Remove definition.
8649         (flag_volatile_global, flag_volatile_static): Likewise.
8650         (f_options): Remove corresponding entries here.
8651         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
8652         or flag_volatile_static.
8653         * doc/invoke.texi: Remove documentation of -fvolatile,
8654         -fvolatile-global and -fvolatile-static.
8655
8656 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8657
8658         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
8659         updating of total_code_bytes from prologue to epilogue.
8660
8661 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
8662
8663         * reload.c (find_reloads): Do not use the mode specified in the insn
8664         pattern as reload mode for address operands.  Do not generate optional
8665         reloads for operands where a mandatory reload was already pushed.
8666         Generate optional reloads only in the final pass though find_reloads.
8667         (have_replacement_p): New function.
8668
8669 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8670
8671         * doc/install.texi (Testing): Remove a reference to our obsolete
8672         /testresults web pages and strip redundant information concerning
8673         test results.
8674         (Binaries): Refer to Microsoft Windows instead of listing all
8675         possible variants.
8676
8677 2003-02-01  Jan Hubicka  <jh@suse.cz>
8678
8679         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
8680         RTL chain.
8681
8682         * combine.c (simplify_set): Reverse order of ragumetns to
8683         REG_CANNOT_CHANGE_MODE_P
8684         * df.c (df_def_record_1): Likewise.
8685         * recog.c (register_operand): Likewise.
8686         * simplify-rtx.c (simplify_subreg): Likewise.
8687         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
8688         CANNOT_CHANGE_MODE_CLASS.
8689         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
8690         Likewise.
8691         * reload.c (push_reload): Likewise.
8692         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
8693         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
8694         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
8695         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
8696         * mips.c (mips_cannot_change_mode_class): Update.
8697         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
8698         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
8699         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
8700         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
8701         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
8702         * sh.c (sh_cannot_change_mode_class): Update.
8703         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
8704         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
8705
8706 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
8707
8708         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
8709         change to LINK_COMMAND_SPEC in gcc.c.
8710
8711 2003-01-31  Jan Hubicka  <jh@suse.cz>
8712
8713         PR c/9506
8714         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
8715
8716 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8717
8718         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
8719         duplicated code.
8720
8721 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
8722
8723         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
8724         (BINFO_ELTS): New #define.
8725         * stor-layout.c (finalize_record_size): Don't set them.
8726         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
8727         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
8728         (BINFO_LANG_ELTS): New #define.
8729         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
8730         * java/class.c (make_class): Use BINFO_ELTS.
8731         (set_super_info): Likewse.
8732         (add_interface_do): Likewise.
8733         * objc/objc-act.c (start_class): Use BINFO_ELTS.
8734
8735 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
8736
8737         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
8738         (times): Don't ever declare if not HAVE_TIMES.
8739         (clock): Don't ever declare if not HAVE_CLOCK.
8740
8741 2003-01-30  Richard Henderson  <rth@redhat.com>
8742
8743         * flow.c (update_life_info): Zap life info after cleanup_cfg.
8744         (regno_uninitialized): Use correct live at function entry set.
8745         (regno_clobbered_at_setjmp): Likewise.
8746
8747         * expr.c (store_expr): Promote all MEM intermediates to regs.
8748
8749 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
8750
8751         * config/arm/arm.c: Fix comment typos.
8752         * config/arm/arm.h: Likewise.
8753         * config/arm/netbsd-elf.h: Likewise.
8754         * config/arm/netbsd.h: Likewise.
8755
8756 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
8757
8758         * gengtype.c (struct walk_type_data): Add needs_cast_p.
8759         (walk_type): Set needs_cast_p in walk_type_data.
8760         (write_types_process_field): Supply casts when required to suppress
8761         warnings.
8762         (write_root): Cast gt_pch_n_S to suppress warning.
8763         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
8764         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
8765         when they might exist.
8766         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
8767         insn-conditions.o, and rs6000.o.
8768
8769 2003-01-30  Richard Henderson  <rth@redhat.com>
8770
8771         * ggc-page.c (G.context_depth_allocations): New.
8772         (G.context_depth_collections): New.
8773         (alloc_page): Set G.context_depth_allocations.
8774         (ggc_collect): Set G.context_depth_collections.
8775         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
8776         (ggc_pop_context): Early exit for no allocations or collections.
8777
8778 2003-01-30  Richard Henderson  <rth@redhat.com>
8779
8780         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
8781
8782 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
8783
8784         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
8785         size, the link register is always saved if any other register is
8786         saved.
8787
8788 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
8789
8790         * config/h8300/h8300-protos.h: Update the prototype for
8791         compute_plussi_cc.
8792         (cpp_reader): Declare before it is used.
8793         * config/h8300/h8300.c (compute_plussi_cc): Change the return
8794         type to int.
8795         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
8796         see an unknown H8 variant.
8797
8798 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
8799
8800         PR target/9316
8801         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
8802         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
8803         * config/rs6000/t-rtems: New file. multilib variants to match OS.
8804         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
8805         rs6000/t-ppcgas so we get the desired multilibs.
8806
8807 2003-01-30  Nick Clifton  <nickc@redhat.com>
8808
8809         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
8810         when popping saved IP register off the stack.
8811
8812 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
8813
8814         * config/rs6000/aix43.h: Fix comment typos.
8815         * config/rs6000/aix51.h: Likewise.
8816         * config/rs6000/aix52.h: Likewise.
8817         * config/rs6000/altivec.h: Likewise.
8818         * config/rs6000/rs6000.c: Likewise.
8819         * config/rs6000/rs6000.h: Likewise.
8820         * config/rs6000/rs6000.md: Likewise.
8821         * config/rs6000/spe.md: Likewise.
8822
8823 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
8824
8825         * c-common.c (builtin_define_float_constants): Define
8826         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
8827
8828 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
8829
8830         * config/sh/lib1funcs.asm: Fix comment typos.
8831         * config/sh/linux.h: Likewise.
8832         * config/sh/sh.c: Likewise.
8833         * config/sh/sh.md: Likewise.
8834
8835 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
8836
8837         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
8838
8839 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
8840
8841         * config/fp-bit.h (__make_dp): Declare if TMODES.
8842
8843 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
8844
8845         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
8846         general_operand_src and general_operand_dst.
8847
8848 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
8849
8850         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
8851         Return true for variable sized types.
8852         (rs6000_va_arg): Handle variable sized types passed by reference
8853         on non-SVR4 ABI.
8854
8855 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
8856
8857         * arm.c (arm_legtimize_address): New function.
8858         * arm-protos.h (arm_legtimize_address): Add prototype.
8859         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
8860         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
8861         do ... while (0)
8862
8863 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
8864
8865         PR bootstrap/9296
8866         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
8867         depended on it being defined until now.
8868
8869 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
8870
8871         PR target/9295
8872         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
8873         RTEMS code knows which C++ initialization style the toolset
8874         configuration is using.
8875
8876 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
8877
8878         PR bootstrap/9293
8879         * config/m68k/t-crtstuff: Replace spaces with tabs, add
8880          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
8881
8882 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
8883
8884         PR bootstrap/9292
8885         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
8886         RTEMS threads.
8887         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
8888
8889 2003-01-29  Nick Clifton  <nickc@redhat.com>
8890
8891         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
8892         not $(srcdir).
8893
8894 2003-01-29  Andrew Haley  <aph@redhat.com>
8895
8896         * tree-inline.c (walk_tree): Add CHAR_TYPE.
8897
8898 2003-01-29  Jan Hubicka  <jh@suse.cz>
8899
8900         * i386.md (subdi3_carry_rex64): Fix typo.
8901
8902 2003-01-28  Stan Shebs  <shebs@apple.com>
8903
8904         * coretypes.h (cpp_reader): Forward declare struct.
8905         * c-pragma.h (cpp_reader): Remove forward declaration.
8906         * hashtable.h (cpp_reader): Likewise.
8907         * scan.h (cpp_reader): Likewise.
8908         * tree.h (cpp_reader): Likewise.
8909         * config/darwin-protos.h (cpp_reader): Likewise.
8910         * config/arm/arm-protos.h (cpp_reader): Likewise.
8911         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
8912         struct cpp_reader in prototypes.
8913
8914 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
8915
8916         * doc/install.texi: Add documentation for installation into
8917         tooldirs and with DESTDIR.
8918
8919 2003-01-28  Richard Henderson  <rth@redhat.com>
8920
8921         * config.gcc (ia64*-*-aix*): Remove.
8922         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
8923         * config/ia64/unwind-aix.c: Remove file.
8924
8925 2003-01-28  Andreas Schwab  <schwab@suse.de>
8926
8927         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
8928         register.
8929         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
8930         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
8931         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
8932         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
8933         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
8934         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
8935         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
8936
8937 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
8938
8939         * combine.c (nonzero_bits): Fix check for negative divide operands.
8940
8941 2003-01-28  Richard Henderson  <rth@redhat.com>
8942
8943         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
8944         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
8945
8946 2003-01-28  Richard Henderson  <rth@redhat.com>
8947
8948         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
8949
8950         * config/cris/cris.c (cris_address_cost): Make static.
8951         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
8952         * config/cris/cris.h (ADDRESS_COST): Remove.
8953         * config/cris/cris-protos.h: Update.
8954
8955 2003-01-23  Mike Stump  <mrs@apple.com>
8956
8957         * regclass.c (init_reg_autoinc): New function.
8958         (regclass): Move initialization of forbidden_inc_dec_class from
8959         here...
8960         (init_regs): to here.  Avoids reinitialization for each function,
8961         saving compilation time.
8962
8963 2003-01-28  Jason Merrill  <jason@redhat.com>
8964
8965         * cpplib.h (struct cpp_options): Add warn_deprecated field.
8966         * cppinit.c (cpp_create_reader): Turn it on by default.
8967         * c-opts.c (c_common_decode_option): Set it.
8968         * cpplib.c (do_pragma_once): Only complain about #pragma once
8969         if warn_deprecated is set.
8970
8971 2003-01-28  Dale Johannesen  <dalej@apple.com>
8972
8973         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
8974         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
8975         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
8976
8977 2003-01-28  Richard Henderson  <rth@redhat.com>
8978
8979         * target.h (targetm.address_cost): New.
8980         * target-def.h (TARGET_ADDRESS_COST): New.
8981         (TARGET_RTX_COSTS): Uncomment.  Oops.
8982         * cse.c (address_cost): Use new target hook.
8983         (default_address_cost): New.
8984         * output.h (default_address_cost): Declare.
8985         * hooks.c (hook_int_rtx_0): New.
8986         * hooks.h (hook_int_rtx_0): Declare.
8987         * loop.c (combine_givs_p): Remove if 0 code.
8988         * system.h (ADDRESS_COST): Poison.
8989
8990         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
8991         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
8992         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
8993         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
8994         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
8995         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
8996         config/xtensa/xtensa.c, config/xtensa/xtensa.h
8997         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
8998         (ADDRESS_COST): Remove.
8999
9000         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
9001         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
9002         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
9003         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
9004         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
9005         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
9006         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
9007         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
9008         config/mips/mips.c, config/mips/mips.h,
9009         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
9010         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
9011         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
9012         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
9013         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
9014         config/vax/vax.c, config/vax/vax.h
9015         (foo_address_cost): Make static.
9016         (TARGET_ADDRESS_COST): New.
9017         (ADDRESS_COST): Remove.
9018
9019         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
9020         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
9021         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
9022         config/stormy16/stormy16.h
9023         (ADDRESS_COST): Move code ...
9024         (foo_address_cost): ... here.
9025         (TARGET_ADDRESS_COST): New.
9026
9027         * config/m32r/m32r.c (m32r_address_cost): Remove.
9028         * config/m32r/m32r-protos.h: Update.
9029
9030         * config/mmix/mmix.c (mmix_address_cost): Remove.
9031         * config/mmix/mmix-protos.h: Update.
9032
9033         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
9034         mn10300_address_cost; move unsig allocation ...
9035         (mn10300_address_cost): ... here.
9036         (TARGET_ADDRESS_COST): New.
9037         * config/mn10300/mn10300-protos.h: Update.
9038         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
9039
9040         * doc/tm.texi: Update.
9041
9042 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
9043
9044         * haifa-sched.c (schedule_insn): Return necessary cycle advance
9045         after issuing the insn.
9046         (rank_for_schedule): Make a insn with /S the highest priority
9047         insn.
9048         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
9049         (choose_ready): Check SCHED_GROUP_P.
9050         (schedule_block): Advance cycle after issuing insn if it is
9051         necessary.  Don't reorder insns if there is an insn with /S.
9052         (set_priorities): Ignore schedule groups.
9053
9054         * sched-deps.c (remove_dependence, group_leader): Remove the
9055         functions.
9056         (add_dependence): Ignore schedule groups.
9057         (set_sched_group_p): Don't make copy of dependencies from previous
9058         insn of the schedule group.  Add anti-dependency to the previous
9059         insn of the schedule group.
9060         (compute_forward_dependences): Ignore schedule groups.
9061
9062         * sched-ebb.c (init_ready_list): Ignore schedule groups.
9063
9064         * sched-rgn.c (init_ready_list): Ditto.
9065         (can_schedule_ready_p): Ditto.
9066
9067 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
9068
9069         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
9070         register to another one.
9071
9072 2003-01-28  Richard Henderson  <rth@redhat.com>
9073
9074         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
9075
9076 2003-01-28  Roger Sayle  <roger@eyesopen.com>
9077
9078         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
9079
9080 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
9081
9082         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
9083         class contains a floating-point register, return the size of the
9084         mode in half words.
9085
9086 2003-01-28  Jan Hubicka  <jh@suse.cz>
9087
9088         * i386.c (ix86_carry_flag_operator):  New predicate.
9089         (fcmov_operator): Fix whitespace.
9090         (ix86_expand_carry_flag_compare):  Deal with floating point.
9091         (ix86_expand_int_movcc): Deal with fp; update insn expansion
9092         (ix86_expand_int_addcc): Likewise.
9093         (ix86_expand_strlensi_unroll_1): likewsie.
9094         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
9095         * i386.md (add?i_carry_rex64): Use new predicate.
9096         (sub?i3_carry_rex64): Likewise.
9097         (x86_mov?icc_0_m1*): Likewise.
9098
9099 2003-01-28  Andreas Schwab  <schwab@suse.de>
9100
9101         * cfgloopmanip.c (create_preheader): Initialize src to avoid
9102         warning.
9103
9104         * expmed.c (emit_store_flag): Fix cast to avoid sign
9105         comparison warning.
9106
9107         * combine.c (force_to_mode): Add cast to fix warning when
9108         STORE_FLAG_VALUE is negative.
9109
9110 2003-01-27  Richard Henderson  <rth@redhat.com>
9111
9112         * Makefile.in (cse.o): Depend on TARGET_H.
9113         * cse.c (rtx_cost): Use targetm.rtx_costs.
9114         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
9115         * doc/tm.texi: Update.
9116
9117         * target.h (targetm.rtx_costs): New.
9118         * target-def.h (TARGET_RTX_COSTS): New.
9119         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
9120         * hooks.h: Update.
9121
9122         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
9123         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
9124         * config/alpha/alpha.h (PROCESSOR_MAX): New.
9125         (CONST_COSTS, RTX_COSTS): Remove.
9126
9127         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
9128         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
9129         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
9130         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
9131         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
9132         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
9133         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
9134         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
9135         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
9136         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
9137         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
9138         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
9139         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
9140         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
9141         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
9142         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
9143         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
9144         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
9145         config/v850/v850.c, config/v850/v850.h,
9146         config/xtensa/xtensa.c, config/xtensa/xtensa.h
9147         (CONST_COSTS, RTX_COSTS): Move code ...
9148         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
9149
9150         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
9151         (arm_rtx_costs, TARGET_RTX_COSTS): New.
9152         * config/arm/arm-protos.h: Update.
9153         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
9154
9155         * config/avr/avr.h (CONST_COSTS): Move code ...
9156         * config/avr/avr.c (avr_rtx_costs): ... here.
9157         (default_rtx_costs): Make static.
9158         * config/avr/avr-protos.h: Update.
9159
9160         * config/h8300/h8300.c (const_costs): Make static.
9161         (h8300_and_costs, h8300_shift_costs): Likewise.
9162         * config/h8300/h8300-protos.h: Update.
9163
9164         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
9165         (CONST_COSTS): Move code ...
9166         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
9167         default_rtx_costs; update for signature change.
9168         * config/ip2k/ip2k-protos.h: Update.
9169
9170         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
9171         (CONST_COSTS): Move code ...
9172         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
9173         (TARGET_RTX_COSTS): New.
9174         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
9175         * config/m68hc11/m68hc11-protos.h: Update.
9176
9177         * config/m68k/m68k.c (const_int_cost): Make static.
9178         * config/m68k/m68k-protos.h: Update.
9179
9180         * config/mcore/mcore.c (mcore_const_costs): Make static.
9181         (mcore_and_cost, mcore_ior_cost): Likewise.
9182         * config/mcore/mcore-protos.h: Update.
9183
9184         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
9185         (mmix_rtx_cost_recalculated): Remove.
9186         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
9187         * config/mmix/mmix-protos.h: Update.
9188
9189         * config/sh/sh.c (shiftcosts): Make static.
9190         (addsubcosts, andcosts, multcosts): Likewise.
9191         * config/sh/sh-protos.h: Update.
9192
9193         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
9194         (sparc_rtx_costs): Make static; update for change in signature.
9195         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
9196         * config/sparc/sparc-protos.h: Update.
9197
9198         * config/v850/v850.c (const_costs): Make static.
9199         * config/v850/v850-protos.h: Update.
9200
9201         * config/vax/vax.h (RTX_COSTS): Remove.
9202         (CONST_COSTS): Move code ...
9203         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
9204         from vax_rtx_cost.
9205         (vax_rtx_costs, TARGET_RTX_COSTS): New.
9206
9207 2003-01-27  Richard Henderson  <rth@redhat.com>
9208
9209         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
9210         * config/vax/vax-protos.h: Update.  Really.
9211
9212 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
9213
9214         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
9215         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
9216         zero if no hardware floating point.
9217         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
9218         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
9219         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
9220         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
9221         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
9222         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
9223         even FP registers on N32 and N64.
9224         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
9225         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
9226         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
9227         even-register-like alignment to 128-bit arguments.
9228         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
9229         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
9230         on N32 or N64.
9231         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
9232         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
9233         (TPBIT): Set to tp-bit.c.
9234         (tp-bit.c): Create out of fp-bit.c.
9235
9236 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9237
9238         * c-parse.in: Remove '%expect 32' directive in objc mode.
9239
9240 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
9241
9242         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
9243         (LIBGCOV): New variable.
9244         (libgcc.mk): Add LIBGCOV.
9245         (LIBGCC_DEPS): Add libgcov.c.
9246         (libgcov.a): New target.
9247         (clean): Remove libgcov.a.
9248         (install-libgcc): Do libgcov too.
9249         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
9250         with libgcov.a.
9251         * libgcc2.c (L_gcov): Move into ...
9252         * libgcov.c: ... here. New file.
9253         * mklibgcc.in: Add libgcov rules.
9254         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
9255
9256         * doc/invoke.texi (profile-arcs, test-coverage): Update and
9257         clarify.
9258
9259         * profile.c (index_counts_file): Remove duplicate check for open file.
9260
9261 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
9262
9263         * gcc/doc/invoke.texi (Optimization Options): Group together
9264         optional and experimental flags.  Move trapv and bounds-check
9265         out of this section.  Group floating point flags together.
9266         (Code Gen Options): Move trapv and bounds-check to here.
9267
9268 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
9269
9270         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
9271
9272 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
9273
9274         PR optimization/9090
9275         * function.c (purge_addressof_1): After pushing an addressed register
9276         onto the stack, simplify the result.
9277
9278 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9279
9280         * doc/extend.texi: Fix typo.
9281
9282 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9283
9284         * doc/cppopts.texi: Fix typo.
9285         * doc/objc.texi: Likewise.
9286         * doc/passes.texi: Likewise.
9287
9288 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
9289
9290         * real.c (ibm_extended_format): Add 53 to minimum exponent.
9291         (encode_ibm_extended): Adjust.
9292
9293 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
9294
9295         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
9296         timevar_id enumerations.
9297
9298 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
9299
9300         * combine.c: Fix formatting.
9301
9302 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
9303
9304         * doc/gccint.texi: Update the copyright.
9305
9306 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
9307
9308         * doc/cpp.texi: Fix typos.
9309         * doc/extend.texi: Likewise.
9310         * doc/gty.texi: Likewise.
9311         * doc/install.texi: Likewise.
9312         * doc/passes.texi: Likewise.
9313         * doc/rtl.texi: Likewise.
9314         * doc/tm.texi: Likewise.
9315
9316 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
9317
9318         * config/ia64/fde-glibc.c: Fix comment typos.
9319         * config/ia64/hpux.h: Likewise.
9320         * config/ia64/ia64.c: Likewise.
9321         * config/ia64/ia64.h: Likewise.
9322         * config/ia64/unwind-ia64.c: Likewise.
9323
9324 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
9325
9326         * config/i386/i386-modes.def: Fix comment typos.
9327         * config/i386/i386.c: Likewise.
9328         * config/i386/i386.md: Likewise.
9329
9330 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
9331
9332         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
9333         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
9334         ASM_FINISH_DECLARE_OBJECT before defining it.
9335         * toplev.c (rest_of_decl_compilation):  Don't define
9336         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
9337         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
9338         parameters for DWARF2 targets because they _are_ used.
9339
9340 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
9341
9342         * fp-bit.h: Define macros for TFmode floating-point constants
9343         in IBM-extended TFmode types.
9344         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
9345         widths.
9346         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
9347         TFmode type.
9348
9349         * config/fp-bit.h: Define macros for TFmode floating-point
9350         constants in IEEE quad TFmode type.  Declare functions according
9351         to L_ macros.
9352         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
9353         (TFtype, TItype, UTItype): Define if TMODES is defined.
9354         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
9355         (F_T_BITOFF, D_T_BITOFF): Define.
9356         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
9357         guaranteed to be wide enough.
9358         * config/fp-bit.c: Check for L_ macros for tf functions.
9359         (__thenan_tf): New.
9360         (nan): Adjust.
9361         (pack_d, unpack_d): Support IEEE 854 quad type.
9362         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
9363         from FRAC_NBITS, FRAC_BITS and NGARDS.
9364         (usi_to_float): Cast constants to be shifted to fractype
9365         instead of assuming long long is wide enough.
9366         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
9367
9368 2003-01-26  Andreas Jaeger  <aj@suse.de>
9369
9370         * df.c: Remove prototype of unused function df_regno_rtl_debug.
9371
9372 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
9373
9374         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
9375         (DBBIT_FUNCS): Added _df_to_tf.
9376         (TPBIT_FUNCS): New.
9377         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
9378         (LIBGCC_DEPS): Added TPBIT.
9379         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
9380
9381         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
9382         been able to move the result to target.
9383
9384         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
9385         for the appropriate mode.
9386
9387         * calls.c (emit_library_call_value_1): Handle return values
9388         in a PARALLEL.
9389
9390         * rtl.c (get_mode_alignment): Moved to...
9391         * stor-layout.c: ... here.
9392
9393         * print-rtl.c (print_rtx): Don't print MEM details in
9394         GENERATOR_FILEs.
9395
9396 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
9397
9398         * df.h: Update comments, tidy formatting.
9399         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
9400         REVERSE, UNION, INTERSECTION.  All uses updated.
9401         (OLD_DF_INTERFACE): Remove.
9402         (struct insn_info): Remove commented out insn field.
9403         * df.c: Update comments, tidy formatting.
9404         (df_def_table_realloc): Remove.
9405
9406
9407 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
9408
9409         * calls.c (save_fixed_argument_area): Tidy.
9410         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
9411         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
9412         call chain loop at 1 if !try_tail_call.  Formatting.
9413         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
9414         Use save_fixed_argument_area and restore_fixed_argument_area.
9415
9416 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9417
9418         * df.c (df_uses_record): Handle CC0.
9419
9420 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
9421
9422         * reload.c (maybe_memory_address_p): New function.
9423         (find_reloads_address): Use it instead of memory_address_p.
9424
9425 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
9426
9427         * final.c (shorten_branches): Align the address of code label
9428         when computing initial lengths and addresses.
9429
9430 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
9431
9432         * config/m68hc11/m68hc11.md: Fix a comment typo.
9433
9434 2003-01-25  Andreas Jaeger  <aj@suse.de>
9435
9436         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
9437         TARGET_MACHO.
9438
9439 2003-01-25  Roger Sayle  <roger@eyesopen.com>
9440
9441         * gcse.c (bypass_last_basic_block): New global variable.
9442         (bypass_block):  Use redirect_edge_and_branch_force to redirect
9443         fall-through edges.  Use bypass_last_basic_block to determine
9444         which blocks have valid PRE information.
9445         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
9446
9447 2003-01-25  Jan Hubicka  <jh@suse.cz>
9448
9449         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
9450
9451 2003-01-25  Jan Hubicka  <jh@suse.cz>
9452                               Eric Botcazou <ebotcazou@libertysurf.fr>
9453         PR opt/8492
9454         * gcse.c (one_cprop_pass): Delete unreachable blocks.
9455
9456 2003-01-25  Richard Henderson  <rth@redhat.com>
9457
9458         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
9459         from ia64_aix_select_rtx_section.
9460         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
9461         instead of saving and restoring flag_pic.
9462         (ia64_rwreloc_unique_section): Similarly.
9463         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
9464         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
9465         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
9466         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
9467
9468 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
9469
9470         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
9471         comment.
9472
9473 2003-01-25  Richard Henderson  <rth@redhat.com>
9474
9475         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
9476
9477 2003-01-25  Kelley Cook <kelleycook@comcast.net>
9478
9479         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
9480
9481 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
9482
9483         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
9484         type for bitmaps.  Use unsigned long.
9485         (nBITMAP_WORD_BITS): New macro.
9486         (BITMAP_WORD_BITS): New macro.
9487         (rest of file): Use it.
9488         * bitmap.c: Use it.
9489
9490 2003-01-25  Richard Henderson  <rth@redhat.com>
9491
9492         2002-02-19  Robert Lipe  <robertlipe@usa.net>
9493         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
9494
9495 2003-01-25  Roger Sayle  <roger@eyesopen.com>
9496
9497         * builtins.c (purge_builtin_constant_p): Scan insn stream
9498         sequentially rather than by basic block.
9499         * function.c (purge_addressof): Simplify test with INSN_P.
9500
9501 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
9502
9503         * combine.c (simplify_comparison, case AND): Remove a redundant test.
9504
9505 2003-01-25  Roger Sayle  <roger@eyesopen.com>
9506
9507         * function.h (struct function): New field calls_constant_p.
9508         (current_function_calls_constant_p): New macro for above.
9509         * function.c (prepare_function_start): Initialize calls_eh_return
9510         and calls_constant_p.
9511         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
9512         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
9513         when the current_function_calls_constant_p.
9514         * integrate.c (expand_inline_function): Set calls_constant_p if
9515         the function being inlined has calls_constant_p set.
9516
9517 2003-01-25  Roger Sayle  <roger@eyesopen.com>
9518
9519         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
9520         optimizing, even if flag_gcse is true.
9521         * toplev.c (rest_of_compilation): purge_builtin_constant_p
9522         only needs to be called when "optimize > 0 && flag_gcse".
9523
9524 2003-01-25  Roger Sayle  <roger@eyesopen.com>
9525
9526         * stmt.c (emit_case_bit_tests): New routine to implement suitable
9527         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
9528         (case_bit_test_cmp): New comparison function for "qsort" to order
9529         case_bit_tests by decreasing number of destination nodes.
9530         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
9531         (expand_end_case_type): Use emit_case_bit_tests to implement
9532         suitable switch statments.
9533         (CASE_USE_BIT_TESTS): New target macro to disable the above.
9534         * Makefile.in (stmt.o): Add dependency on optab.h.
9535         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
9536
9537 2003-01-23  Andreas Schwab  <schwab@suse.de>
9538
9539         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
9540         __do_global_ctors_aux hidden global and don't put it in
9541         .init_array.
9542         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
9543         instead so that it comes first.
9544
9545 2003-01-25  Jan Hubicka  <jh@suse.cz>
9546
9547         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
9548         subreg is read/modify.
9549
9550 2003-01-25  Jan Hubicka  <jh@suse.cz>
9551
9552         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
9553         do libcall for large blocks.
9554         * i386.md (comi patterns): Set type to ssecomi.
9555         (sse2_unpck?pd): Fix mode of vec_select.
9556
9557         * cse.c: Include except.h
9558         (cse_set_around_loop):  Do not create new basic blocks.
9559         * Makefile.in (cse.o): Add dependnecy on except.h
9560
9561 2003-01-25  Jan Hubicka  <jh@suse.cz>
9562
9563         * builtins.c (fold_trunc_transparent_mathfn): New function.
9564         (fold_builtin): Use it.
9565         * convert.c (convert_to_real): Re-enable code to convert
9566         math functions; add support for floor familly functions.
9567
9568 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9569
9570         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
9571         dependencies on coretypes.h and $(TM_H).
9572
9573 2003-01-25  Jan Hubicka  <jh@suse.cz>
9574
9575         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
9576
9577 2003-01-24  Stuart Hastings  <stuart@apple.com>
9578
9579         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
9580
9581 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9582
9583         * config/c4x/c4x.md (UNSPEC_BU): New constants.
9584         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
9585         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
9586         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
9587         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
9588         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
9589         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
9590         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
9591
9592 2003-01-24  Jan Hubicka  <jh@suse.cz>
9593
9594         * emit-rtl.c (reg_attrs_htab): New static variable.
9595         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
9596         functions.
9597         (reg_rtx): Do not maintain regno_decl.
9598         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
9599         set_mem_attrs_from_reg): New global function.
9600         (init_emit): Do not initialize regno_decl.
9601         (init_emit_once): initialize reg_attrs_htab.
9602         * final.c (alter_subreg): Do not replace REG by SUBREG.
9603         (gen_mem_expr_from_op): Improve output.
9604         (output_asm_operands): Likewise.
9605         * function.c (assign_params): Do not set REGNO_DECL.
9606         * function.h (struct function): Kill regno_decl.
9607         (REGNO_DECL): Kill.
9608         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
9609         * print_rtl.c (print_rtx): Output REG information.
9610         * regclass.c (reg_scan_mark_refs): Update attrs.
9611         * reload1.c (alter_reg): Likewise.
9612         * simplify_rtx.c (simplify_subreg): Likewise.
9613         * stmt.c (expand_decl): Likewise.
9614         * rtl.def (REG): Add new field.
9615         * rtl.h (struct reg_attrs): New.
9616         (rtunion_def): At rtreg.
9617         (X0MEMATTR): Add checking.
9618         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
9619         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
9620         Declare.
9621         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
9622
9623 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
9624
9625         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
9626         (xtensa_emit_call, print_operand): Fix printf format strings
9627         to avoid compile warnings.
9628         (xtensa_function_prologue, xtensa_function_epilogue): Change type
9629         of "size" argument to HOST_WIDE_INT to fix compile warnings.
9630         * config/xtensa/xtensa-protos.h
9631         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
9632
9633 2003-01-24  Jan Hubicka  <jh@suse.cz>
9634
9635         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
9636         (implicit_built_in_decls): New global array.
9637         (mathfn_built_in): New global function.
9638         (fold_trunc_transparent_mathfn): New static function
9639         (expand_builtin_strstr, expand_bultin_strchr,
9640         expand_builtin_strpbrk, expand_builtin_strcpy,
9641         expand_builtin_strncpy, expand_bultin_strcmp,
9642         expand_bultin_strncat, expand_builtin_fputs): Use
9643         implicint_built_in_decls.
9644         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
9645         * builtins.def: Fix comments.
9646         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
9647         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
9648         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
9649         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
9650         (DEF_C99_C90RES_BULTIN): New.
9651         (*f, *l builtins): Update.
9652         * c-common.c (DEF_BUILTIN): Initialize implicit array.
9653         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
9654         * convert.c (strip_float_extensions): New global function.
9655         * tree.h (DEF_BUILTIN): Accept 10 arguments.
9656         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
9657         Declare.
9658         * java/builtins.c (define_builtin): Handle implicit.
9659         (DEF_BUILTIN): Update.
9660         * tm.texi (TARGET_C99_FUNCTIONS): Document.
9661         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
9662         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
9663         when using glibc2.
9664
9665 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
9666
9667         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
9668         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
9669         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
9670         * config/xtensa/crti.asm: New file.
9671         * config/xtensa/crtn.asm: New file.
9672         * config/xtensa/t-elf: New file.
9673         * config/xtensa/t-linux: New file.
9674         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
9675         Move various CFLAGS settings to new t-elf file.
9676
9677 2003-01-24  Richard Henderson  <rth@redhat.com>
9678
9679         PR optimization/4382
9680         * tree-inline.c (find_builtin_longjmp_call_1): New.
9681         (find_builtin_longjmp_call): New.
9682         (inlinable_function_p): Use it.
9683
9684 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9685
9686         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
9687         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
9688         * config/i386/i386.c (function_arg_pass_by_reference): New.
9689         (ix86_va_arg): Support arguments passed by reference.
9690
9691 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9692
9693         * cfgloopanal.c: New file.
9694         * cfgloopmanip.c: New file.
9695         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
9696         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
9697         cfglayout.o): Add dependency on cfgloop.h.
9698         (cfgloop.o): Add flags.h dependency.
9699         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
9700         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
9701         (struct loop, struct loops, flow_loops_find, flow_loops_update,
9702         flow_loops_free, flow_loops_dump, flow_loop_dump,
9703         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
9704         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
9705         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
9706         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
9707         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
9708         find_common_loop, verify_loop_structure): Declarations moved to ...
9709         * cfgloop.h: New file.
9710         * bb-reorder.c (reorder_basic_blocks): Modified.
9711         * cfglayout.c: Include cfgloop.h.
9712         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
9713         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
9714         (break_superblocks): New static function.
9715         (cfg_layout_finalize): Use it.
9716         (cfg_layout_split_block): New function.
9717         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
9718         fields.
9719         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
9720         changed.
9721         (cfg_layout_split_block): Declare.
9722         * cfgloop.c: Include cfgloop.h and flags.h.
9723         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
9724         get_loop_body): Avoid signed versus unsigned comparison warnings.
9725         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
9726         loop_latch_edge): Modified.
9727         (verify_loop_structure): Modified to use flags stored in loop structure;
9728         check irreducible loops.
9729         (cancel_loop, cancel_loop_tree): New functions.
9730         (estimate_probability): Use loop analysis code for predictions.
9731         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
9732         warnings.
9733         * doloop.c: Include cfgloop.h.
9734         * loop.c: Include cfgloop.h.
9735         * predict.c: Include cfgloop.h.
9736         * toplev.c: Include cfgloop.h.
9737         * unroll.c: Include cfgloop.h.
9738         * tracer.c (tracer): Modified.
9739
9740 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
9741
9742         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
9743
9744 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
9745
9746         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
9747         * configure: Regenerate.
9748
9749         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
9750         (tls_symbolic_reference_mentioned_p): Add prototype.
9751         (s390_tls_get_offset): Add prototype.
9752         (emit_pic_move): Remove prototype, replace by ...
9753         (emit_symbolic_move): .. this new prototype.
9754
9755         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
9756         (tls_model_chars): New global variable.
9757         (s390_encode_section_info): Encode TLS model.
9758         Use targetm.binds_local_p to check for local symbols.
9759         (s390_strip_name_encoding): New function.
9760         (TARGET_STRIP_NAME_ENCODING): Define.
9761
9762         (get_thread_pointer): New function.
9763         (legitimize_tls_address): New function.
9764         (legitimize_address): Call it.
9765         (emit_pic_move): Remove, replace by ...
9766         (emit_symbolic_move): ... this new function.
9767
9768         (larl_operand): Handle TLS operands.
9769         (legitimate_constant_p): Likewise.
9770         (s390_decompose_address): Likewise.
9771         (s390_cannot_force_const_mem): New function.
9772         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9773
9774         (s390_output_symbolic_const): Handle TLS unspecs.
9775         (print_operand): New code 'J'.
9776         (machine_function): Add struct member 'some_ld_name'.
9777         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
9778
9779         (enum s390_builtin): New type.
9780         (code_for_builtin_64, code_for_builtin_31): New global variables.
9781         (s390_init_builtins, s390_expand_builtin): New functions.
9782         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9783
9784         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
9785         (ASM_OUTPUT_LABELREF): Define.
9786         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
9787
9788         * config/s390/s390.md: Define TLS UNSPEC constants.
9789         ("movdi", "movsi"): Handle TLS operands.
9790         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
9791         ("*tls_load_64", "*tls_load_31"): New insns.
9792         ("call_value_tls", "call_value_tls_exp"): New expanders.
9793         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
9794         "bas_tls_64", "bas_tls_31"): New insns.
9795
9796 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
9797
9798         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
9799         spe ABI is configured, if requested.
9800
9801 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9802
9803         * doc/passes.texi: Fix typo.
9804
9805 2003-01-24  Andreas Schwab  <schwab@suse.de>
9806
9807         * stor-layout.c (excess_unit_span): Only define if used.
9808
9809 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
9810
9811         * gcc/doc/invoke.texi (Optimization Options): List -O levels
9812         for each optimization flag.
9813
9814 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
9815
9816         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
9817
9818 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9819
9820         * doc/bugreport.texi: Use @command instead of @code for commands.
9821         * doc/collect2.texi: Likewise.
9822         * doc/headerdirs.texi: Likewise.
9823         * doc/invoke.texi: Likewise.
9824         * doc/standards.texi: Likewise.
9825         * doc/tm.texi: Likewise.
9826         * doc/trouble.texi: Likewise.
9827
9828 2003-01-24  Nick Clifton  <nickc@redhat.com>
9829
9830         * config/arm/arm.c (use_return_insn): Do not use a single return
9831         instruction for interrupt handelrs which have to create a stack
9832         frame.
9833         (arm_expand_prologue): Do not pre-bias the return address of
9834         interrupt handlers which create a stack frame.
9835
9836 2003-01-24  Nick Clifton  <nickc@redhat.com>
9837
9838         * Add sh2e support:
9839
9840         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
9841
9842                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
9843                 med_cbranches.  Fix logic in short_cbranches.
9844
9845         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
9846
9847                 * config/sh/sh.md (delay for cbranch): Don't annul delay
9848                 slots on SH2e.
9849                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
9850                 cbranch with unfilled delay slot on SH2e.
9851                 (output_branch): Fill with a nop the delay slot of a
9852                 branch that required a delay slot but didn't get one.
9853
9854         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
9855
9856                 * doc/invoke.texi (SH options): Document -m2e.
9857                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
9858                 * config/sh/lib1funcs.asm: Likewise.
9859                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
9860                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
9861                 not __sh1__.
9862                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
9863                 SH2E up.
9864                 (SH3E_BIT): Renamed to...
9865                 (SH_E_BIT): ... this.  Replace all uses.
9866                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
9867                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
9868                 (TARGET_SWITCHES): Added 2e.
9869                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
9870                 (processor_type): Added PROCESSOR_SH2E.
9871                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
9872                 TARGET_SH2E, except in sqrtsf2_i.
9873                 (attribute cpu): Added sh2e.
9874                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
9875                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
9876                 * config.gcc: Add sh2e target support.
9877
9878 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
9879
9880         Rename -W to -Wextra.
9881         * c-decl.c:  Update comments.
9882         * c-typeck.c:  Likewise.
9883         * flags.h:  Likewise.
9884         * function.c:  Likewise.
9885         * stmt.c:  Likewise.
9886         * toplev.c:  Update comments.
9887         (W_options):  Add 'extra'.
9888         (display_help):  Remove '-W'.
9889         (decode_W_option):  Special warn_uninitialized treatment in the case
9890         of -Wextra.
9891         * doc/invoke.texi:  Update with new entries.
9892
9893 2003-01-23  Richard Henderson  <rth@redhat.com>
9894
9895         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
9896         in no-else-block case.  Add commentary.
9897
9898 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9899
9900         * configure.in: Revert last change.
9901
9902 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9903
9904         * configure.in: Don't include ansidecl.h in tconfig.h.
9905         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
9906         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
9907         ATTRIBUTE_UNUSED.
9908
9909         * configure: Regenerate.
9910
9911 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9912
9913         PR java/6748
9914         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
9915         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
9916         kernels.
9917
9918 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9919
9920         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
9921
9922 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
9923
9924         * genattrtab.c (write_attr_get): Mark 'insn' paramter
9925         as ATTRIBUTE_UNUSED.
9926
9927 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
9928
9929         * arm.c (thumb_base_register_rtx_p): New function.
9930         (thumb_index_register_rtx_p): New function.
9931         (thumb_legitimate_address_p): New function.
9932         (thumb_legitimate_offset_p): New function.
9933         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
9934         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
9935         definitions.
9936         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
9937         (THUMB_LEGITIMATE_OFFSET): Delte.
9938         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
9939         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
9940         (thumb_legitimate_offset_p): Likewise.
9941
9942 2003-01-23  Andreas Schwab  <schwab@suse.de>
9943
9944         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
9945
9946 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9947
9948         * fixinc/Makefile.in (FL_LIST): Revert last change.
9949
9950 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9951
9952         PR other/7341
9953         * invoke.texi (ftest-coverage): Fix broken cross-reference.
9954         Change @code to @command for gcov command.
9955
9956         * gcc.texi: Adjust title of gcov section.
9957         Adjust copyright.
9958         * gcov.texi: Likewise.
9959
9960 2003-01-22  Roger Sayle  <roger@eyesopen.com>
9961
9962         PR optimization/8423
9963         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
9964         its argument is constant, or 0 if !flag_gcse.
9965         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
9966         if it's argument is constant.
9967         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
9968         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
9969         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
9970         * builtins.c (purge_builtin_constant_p): New function to force
9971         instantiation of any remaining CONSTANT_P_RTX nodes.
9972         * rtl.h (purge_builtin_constant_p): Prototype here.
9973         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
9974         pass after GCSE and before loop.
9975         (flag_gcse): No longer static.
9976         * flags.h (flag_gcse): Prototype here.
9977
9978 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
9979
9980         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
9981         introduced by last change.
9982
9983 2003-01-22  Andreas Schwab  <schwab@suse.de>
9984
9985         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
9986
9987 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
9988
9989         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
9990         request a scratch reg on H8S when the shift count is 8.
9991
9992 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
9993
9994         * config/s390/s390-protos.h (preferred_la_operand_p):
9995         Remove second parameter.
9996         * config/s390/s390.c (preferred_la_operand_p): Likewise.
9997         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
9998         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
9999         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
10000         Add peepholes to transform ADD to LOAD ADDRESS.
10001
10002 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
10003
10004         * arm.c (arm_address_register_rtx_p): New function.
10005         (arm_legitimate_address_p): New function.
10006         (arm_legitimate_index_p): New function.
10007         (legitimize_pic_address): Use arm_legitimate_index_p.
10008         * arm-protos.h (arm_legtimate_address_p): Add prototype.
10009         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
10010         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
10011
10012 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
10013
10014         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
10015         * config/s390/2064.md (define_bypass): Correct 'Load' and
10016         'Load-address' bypass values.
10017
10018 2003-01-22  Andreas Schwab  <schwab@suse.de>
10019
10020         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
10021
10022 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
10023
10024         * genautomata.c (output_internal_insn_latency_func,
10025         output_print_reservation_func): Short circuit when there is no
10026         automaton to generate code for.
10027
10028 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10029
10030         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
10031         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
10032
10033 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
10034
10035         * config/rs6000/rs6000.md: Remove warning.
10036         (builtin_setjmp_receiver): Likewise.
10037         * config/darwin.c (update_stubs): Slightly improve terrible hack
10038         with identifiers.  Add comment pointing out problems with it.
10039         (update_non_lazy_ptrs): Likewise.
10040
10041 2003-01-21  Richard Henderson  <rth@redhat.com>
10042
10043         * dwarf2out.c (lookup_filename): Fix printf format warning.
10044         * system.h (fread_unlocked, fwrite_unlocked): Undef.
10045
10046         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
10047         (fixincl.o-warn, gnu-regex.o-warn): New.
10048         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
10049         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
10050         * fixinc/fixincl.c (process): Fix printf format warning.
10051
10052 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
10053
10054         * dwarf2out (output_file_names): Don't crash if called
10055         with empty file_table.
10056
10057 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
10058
10059         * genautomata.c (output_internal_insn_latency_func): Add
10060         missing break statement to generated code.
10061
10062 2003-01-21  Roger Sayle  <roger@eyesopen.com>
10063
10064         * stmt.c (same_case_target_p): New function to determine whether
10065         two case labels branch to the same target.  Split out from...
10066         (group_case_nodes): ... here.  Use same_case_target_p instead.
10067         (strip_default_case_nodes): Remove explicit case nodes
10068         that branch to the default destination.
10069         (expand_end_case_type): Call strip_default_case_nodes after
10070         group_case_nodes, to simplify the case-list before we count it.
10071         Only generate table_label RTX when actually needed.  Try to share
10072         thiscase->exit_label and thiscase->data.case_stmt.default_label
10073         when a switch has no explicit default case.  Simplify test for
10074         constant index.
10075
10076 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
10077
10078         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
10079         \t.
10080         (*negsf2_h8300hs): Likewise.
10081         (*addsi3_lshiftrt_16_zexthi): Likewise.
10082         (*iorhi3_lshiftrt_8): Likewise.
10083
10084 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
10085
10086         * dwarf2out.c (fde_table_in_use): Mark GTY.
10087         (dwarf2out_cfi_label_num): New variable, marked GTY.
10088         (dwarf2out_cfi_label): Use it instead of static label_num.
10089         * emit-rtl.c (label_num): Mark GTY.
10090
10091 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
10092
10093         * config/h8300/h8300.c (output_plussi): Support H8/300.
10094         (compute_plussi_length): Likewise.
10095         (compute_plussi_cc): Likewise.
10096         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
10097         output assembly instructions.
10098
10099 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10100
10101         * calls.c (fix_unsafe_tree): Prototype.
10102
10103         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
10104         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
10105         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
10106         c-parse.o-warn): Add -Wno-error.
10107         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
10108
10109         * configure.in (--enable-werror): Add new flag.
10110         * doc/install.texi (--enable-werror): Document.
10111         * configure: Regenerate.
10112
10113         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
10114
10115 2003-01-21  Andreas Schwab  <schwab@suse.de>
10116
10117         * genautomata.c (output_internal_insn_latency_func): Fix missing
10118         close paren in output.
10119
10120 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
10121
10122         * genautomata.c: Space savings in generated code:
10123         (output_dfa_insn_code_func): Split out the table-enlargement
10124         path to an out-of-line static function, dfa_insn_code_enlarge.
10125         (output_internal_insn_latency_func): Use a lookup table for the
10126         default latencies.
10127         (output_print_reservation_func): Use a lookup table for the
10128         strings.
10129
10130 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
10131
10132         PR opt/7507
10133         * calls.c (fix_unsafe_tree): Split out from ...
10134         (expand_call): ... here.  Use it on the function address too.
10135
10136 2003-01-20  Richard Henderson  <rth@redhat.com>
10137
10138         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
10139
10140 2003-01-20  Richard Henderson  <rth@redhat.com>
10141
10142         PR opt/7154
10143         * stmt.c (expand_asm_operands): Validize memory operands.
10144
10145 2003-01-20  Richard Henderson  <rth@redhat.com>
10146
10147         PR opt/8848
10148         * ifcvt.c (noce_process_if_block): Correct arguments to
10149         modified_between_p for no-else-block case.
10150
10151 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
10152
10153         * config/h8300/h8300.c (const_costs): Remove a warning.
10154         (output_plussi): Likewise.
10155         (compute_plussi_length): Likewise.
10156         (compute_plussi_cc): Likewise.
10157
10158 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
10159
10160         * config/h8300/h8300.md (addsi_h8300): Remove the last
10161         alternative.
10162
10163 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
10164
10165         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
10166
10167 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10168
10169         * system.h (__NO_STRING_INLINES): Define.
10170
10171 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10172
10173         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
10174         is not a scalar int mode.
10175
10176 2003-01-20  Roger Sayle  <roger@eyesopen.com>
10177
10178         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
10179         insn's notes following a substitution inside a libcall.
10180
10181 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
10182
10183         * configure.in: Check for system-provided 'uchar' type.
10184         * configure, config.in: Regenerate.
10185         * cpphash.h: Only typedef 'uchar' if the system doesn't.
10186
10187 2003-01-20  Richard Henderson  <rth@redhat.com>
10188
10189         * expr.h (MUST_PASS_IN_STACK): Move implementation...
10190         * calls.c (default_must_pass_in_stack): ... here.
10191
10192 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
10193
10194         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
10195
10196         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
10197
10198         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
10199         Wrap up definition of `insn_alts'.
10200
10201         * genattrtab.c (main): Wrap up `insn_alts'.
10202
10203 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10204
10205         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
10206         prototyping.
10207         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
10208
10209         * config.in, configure: Regenerate.
10210
10211 2003-01-20  Nick Clifton  <nickc@redhat.com>
10212
10213         * config/arm/arm.md (sibcall_epilogue): Add an
10214         UNSPEC_PROLOGUE_USE to prevent the link register from being
10215         considered dead.
10216
10217 2003-01-20  Jan Hubicka  <jh@suse.cz>
10218
10219         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
10220
10221 2003-01-20  Andreas Schwab  <schwab@suse.de>
10222
10223         * system.h: Don't declare strsignal if the decl test hasn't been
10224         run yet.
10225
10226 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
10227
10228         * config/h8300/h8300.c (notice_update_cc): Don't assume that
10229         recog_data.operands[0] is always associated with cc0.
10230
10231 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
10232
10233         * collect2.c (ldgetname): Expand declaration to prototype.
10234         * read-rtl.c (atoll): Add prototype.
10235         * system.h (strsignal): Also declare if no declaration found.
10236
10237 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
10238
10239         * config.gcc (mips64*-*-linux*): Added.
10240         * config/mips/linux64.h, config/mips/t-linux64: New file.
10241         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
10242         * config/mips/mips.c (override_options): Use it.
10243         * config/mips/mips.h (TARGET_SWITCHES): Added...
10244         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
10245         * Makefile.in (SPECS): New.
10246         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
10247         * gcc.c (process_command): Move self-spec processing past spec
10248         file loading.
10249         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
10250         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
10251         CRTSTUFF_T_CFLAGS.
10252         (SPECS): Document.
10253         * doc/invoke.texi (-mabi-fake-default): Document.
10254
10255 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
10256
10257         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
10258         z_reg, z_reg_qi): Declare static and GTY().
10259         (da_reg): Remove.
10260         (create_regs_rtx): Don't create da_reg.
10261         ("gt-m68hc11.h"): Include for GTY roots.
10262         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
10263         and GTY() here.
10264         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
10265         (m68hc11_soft_tmp_reg): Likewise.
10266         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
10267
10268 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
10269
10270         * basic-block.h: Fix comment formatting.
10271         * calls.c: Likewise.
10272         * combine.c: Likewise.
10273         * convert.c: Likewise.
10274         * gcov.c: Likewise.
10275         * haifa-sched.c: Likewise.
10276         * libgcc2.c: Likewise.
10277         * loop.c: Likewise.
10278         * profile.c: Likewise.
10279         * system.h: Likewise.
10280
10281 2003-01-18  Roger Sayle  <roger@eyesopen.com>
10282
10283         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
10284
10285 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10286
10287         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
10288
10289 2003-01-17  Dale Johannesen  <dalej@apple.com>
10290
10291         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
10292           (*floatunssidf2_internal):  Ditto.
10293
10294 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
10295
10296         * alias.c: Fix comment typos.
10297         * basic-block.h: Likewise.
10298         * c-common.c: Likewise.
10299         * c-common.h: Likewise.
10300         * c-decl.c: Likewise.
10301         * c-opts.c: Likewise.
10302         * c-pragma.c: Likewise.
10303         * c-pretty-print.h: Likewise.
10304         * cfg.c: Likewise.
10305         * cfganal.c: Likewise.
10306         * cfgbuild.c: Likewise.
10307         * cfgcleanup.c: Likewise.
10308         * cfglayout.c: Likewise.
10309         * cfgrtl.c: Likewise.
10310         * convert.c: Likewise.
10311         * cpphash.h: Likewise.
10312         * cpplex.c: Likewise.
10313         * cpplib.h: Likewise.
10314         * df.h: Likewise.
10315         * diagnostic.c: Likewise.
10316         * diagnostic.h: Likewise.
10317         * dwarf2.h: Likewise.
10318
10319 2003-01-17  Stan Shebs  <shebs@apple.com>
10320
10321         * config/darwin-protos.h: Forward-declare struct cpp_reader.
10322
10323 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
10324
10325         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
10326         mistake in last checkin.
10327
10328 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
10329
10330         * et-forest.c: Fix comment typos.
10331         * et-forest.h: Likewise.
10332         * except.c: Likewise.
10333         * expr.c: Likewise.
10334         * flags.h: Likewise.
10335         * flow.c: Likewise.
10336         * gcc.c: Likewise.
10337         * gcse.c: Likewise.
10338         * genattrtab.c: Likewise.
10339         * genautomata.c: Likewise.
10340         * gengtype.c: Likewise.
10341         * genrecog.c: Likewise.
10342         * global.c: Likewise.
10343         * gthr-rtems.h: Likewise.
10344
10345 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10346
10347         * i386.c (x86_function_profiler): Fix format specifier.
10348
10349 2003-01-17  Richard Henderson  <rth@redhat.com>
10350
10351         * gengtype.c (walk_type): Allow paramN_is.
10352
10353 2003-01-17  Nick Clifton  <nickc@redhat.com>
10354
10355         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
10356
10357 2003-01-16  Richard Henderson  <rth@redhat.com>
10358
10359         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
10360
10361 2003-01-16  Richard Henderson  <rth@redhat.com>
10362
10363         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
10364         (alpha_next_sequence_number): Likewise.
10365         (alpha_this_literal_sequence_number): Likewise.
10366         (alpha_this_gpdisp_sequence_number): Likewise.
10367         (struct alpha_funcs, alpha_funcs_num): Likewise.
10368         (struct alpha_links): Fix branch merge error.
10369         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
10370
10371 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
10372
10373         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
10374         R. Ghazi.
10375
10376 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
10377
10378         * ifcvt.c: Fix comment typos.
10379         * lcm.c: Likewise.
10380         * libgcc2.c: Likewise.
10381         * local-alloc.c: Likewise.
10382         * loop.c: Likewise.
10383         * predict.c: Likewise.
10384         * ra-build.c: Likewise.
10385         * ra.c: Likewise.
10386         * ra-colorize.c: Likewise.
10387         * ra.h: Likewise.
10388         * ra-rewrite.c: Likewise.
10389         * regmove.c: Likewise.
10390         * reload.h: Likewise.
10391         * rtlanal.c: Likewise.
10392         * toplev.c: Likewise.
10393         * tree.h: Likewise.
10394         * unwind-dw2-fde-glibc.c: Likewise.
10395         * vmsdbgout.c: Likewise.
10396
10397 2003-01-16  Richard Henderson  <rth@redhat.com>
10398
10399         * dwarf2out.c (struct file_table): Remove.
10400         (FILE_TABLE_INCREMENT): Remove.
10401         (file_table): Make a varray; mark for GC.  Update all users.
10402         (file_table_last_lookup_index): Extract from struct file_table.
10403         (output_file_names): Fix unsigned compare warnings.
10404         (add_name_attribute): Remove inline marker.
10405         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
10406         (lookup_filename): Don't manage size of file_table.
10407         (init_file_table): Allocate file_table with GC.
10408         (dwarf2out_init): Don't record main_input_filename here.
10409         (dwarf2out_finish): Do it here instead.
10410
10411 2003-01-16  Bruce Korb  <bkorb@gnu.org>
10412
10413         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
10414
10415 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
10416
10417         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
10418         instead of rotldi3_mextr.
10419
10420 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
10421
10422         * haifa-sched.c (move_insn): Restore moving all schedule group.
10423         (set_priorities): Restore taking SCHED_GROUP_P into account.
10424
10425         * sched-deps.c (add_dependence): Restore processing the last group
10426         insn.
10427         (remove_dependence, group_leader): Restore the functions.
10428         (set_sched_group_p): Restore adding dependencies from previous insn
10429         in the group.
10430         (compute_forward_dependences): Restore usage of group_leader.
10431
10432         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
10433         account.
10434
10435         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
10436         account.
10437         (can_schedule_ready_p): Ditto.
10438         (add_branch_dependences): Restore skipping over the group insns.
10439
10440 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
10441
10442         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
10443         68HC12 pre/post inc/dec side effects.
10444
10445 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
10446
10447         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
10448
10449 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
10450
10451         * sh.md (mshflo_w_x): Fix description of operation.
10452
10453 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
10454
10455         * config/rs6000/rs6000.h: Mention Altivec registers in
10456         commentary.  Fix typo.
10457
10458 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
10459
10460         * config/rs6000/rs6000.md (movti_string): Remove clobber.
10461         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
10462         generate PARALLEL with clobber for TARGET_POWER.
10463
10464 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10465
10466         * ra-colorize.c (colorize_one_web): Initialize variable.
10467         * regmove.c (fixup_match_1): Likewise.
10468         * reload1.c (reload_as_needed): Likewise.
10469         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
10470
10471 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10472
10473         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
10474
10475 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10476
10477         * dbxout.c (lastfile, cwd): Fix `unused' warning.
10478         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
10479         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
10480         is_main_source, file_table, decl_die_table_in_use,
10481         abbrev_die_table_in_use, line_info_table_in_use,
10482         separate_line_info_table_in_use, pubname_table_in_use,
10483         arange_table_in_use, ranges_table_in_use,
10484         current_function_has_inlines): Likewise.
10485         * flow.c (life_analysis): Likewise.
10486         * genemit.c (gen_insn): Likewise.
10487         * protoize.c (cplus_suffix): Likewise.
10488
10489         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
10490         * arm.h (ROUND_UP_WORD): Likewise.
10491
10492         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
10493         warning.
10494         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
10495         init_emit_once): Likewise.
10496         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
10497         Likewise.
10498         * function.c (assign_stack_temp_for_type): Likewise.
10499         * loop.c (loop_invariant_p): Likewise.
10500         * recog.c (push_operand): Likewise.
10501         * regclass.c (init_reg_sets_1): Likewise.
10502         * reload.c (update_auto_inc_notes): Likewise.
10503         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
10504         * stmt.c (expand_asm_operands): Likewise.
10505         * stor-layout.c (start_record_layout): Likewise.
10506
10507 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
10508
10509         * config/c4x/c4x.md (epilogue): Correct last patch.
10510
10511 2003-01-15  Richard Henderson  <rth@redhat.com>
10512
10513         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
10514         also check that GP is being used.
10515         (alpha_find_lo_sum_using_gp): New.
10516         (alpha_does_function_need_gp): Use get_attr_usegp.
10517         * config/alpha/alpha-protos.h: Update.
10518         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
10519         as needed.
10520
10521 2003-01-15  Roger Sayle  <roger@eyesopen.com>
10522
10523         * gcse.c (one_cprop_pass): Change function arguments to take both
10524         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
10525         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
10526         (bypass_jumps): New function to perform separate jump bypassing pass.
10527         * rtl.h (bypass_jumps): Add function prototype.
10528         * timevar.def (TV_BYPASS): New timing variable.
10529         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
10530         (dump_file): New entry for the bypass RTL dump file.
10531         (rest_of_compilation): Insert new jump bypassing optimization
10532         pass after loop.
10533         * doc/passes.texi: Document new pass.
10534
10535 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10536
10537         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
10538         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
10539         * pa.h (TARGET_SOM_SDEF): Define.
10540         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
10541
10542 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
10543
10544         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
10545         allocate 4-bytes of locals on 68HC11.
10546         (expand_epilogue): Likewise.
10547         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
10548
10549 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
10550
10551         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
10552         and -mshort-double to the assembler to specify the ABI.
10553         (LINK_SPEC): Likewise.
10554         (CPP_SPEC): Pass HCS12 specific define.
10555         (MASK_M68S12): New define.
10556         (TARGET_M68S12): Likewise.
10557         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
10558         (TARGET_VERSION): Update.
10559         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
10560         (LINK_SPEC): Update.
10561         (ASM_SPEC): Update.
10562         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
10563         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
10564
10565 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
10566
10567         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
10568         the return code.
10569
10570 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
10571
10572         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
10573         flag before setting it.
10574
10575 2003-01-15  Roger Sayle  <roger@eyesopen.com>
10576
10577         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
10578         when loop condition is known true, i.e.  "while (1) { ... }".
10579         (genrtl_for_stmt): Similarly for "for" statements.
10580
10581 2003-01-15  Roger Sayle  <roger@eyesopen.com>
10582
10583         * real.c (real_sqrt): Return a bool result indicating whether
10584         a floating point exception or trap should be raised.
10585         * real.h (real_sqrt): Update function prototype.
10586         * builtins.c (fold_builtin): Only fold non-trapping square
10587         roots unless we're ignoring errno and trapping math.
10588
10589 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
10590
10591         * expr.h (emit_conditional_add): Add PARAMS to declaration.
10592         * gengtype-lex.l (malloc, realloc): Move defines after include of
10593         system.h.  Remove duplicate include of system.h.
10594
10595 2003-01-15  Roger Sayle  <roger@eyesopen.com>
10596
10597         PR middle-end/9009
10598         * optabs.c (expand_unop):  When manipulating the FP sign bit
10599         using integer operations, account for targets with different
10600         integer and FP word orders.
10601         (expand_abs): Likewise.
10602
10603 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
10604
10605         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
10606         file extension in section name.
10607
10608 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
10609
10610         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
10611         constant offset.
10612
10613 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
10614
10615         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
10616         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
10617         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
10618         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
10619
10620 2003-01-15  Jan Hubicka  <jh@suse.cz>
10621
10622         PR f/9258
10623         * global.c (struct allocno): Add no_stack_reg.
10624         (global_conflicts): Set no_stack_reg.
10625         (find_reg): Use it.
10626
10627         * convert.c (convert_to_real): Fold - and abs only when profitable.
10628         * fold-const.c (fold): Fold truncates in - and abs.
10629
10630 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
10631
10632         Segher Boessenkool  <segher@koffie.nl>
10633
10634         * predict.c (real_inv_br_prob_base): New variable.
10635         (propagate_freq): Use multiply by reciprocal instead of
10636         division.  Don't divide by 1.0 at all.
10637         (estimate_bb_frequencies): Similar.
10638
10639 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
10640
10641         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
10642         * configure: Rebuilt.
10643
10644 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
10645
10646         * config/s390/s390.c (s390_safe_attr_type): New function.
10647         (s390_use_dfa_pipeline_interface): New function, return true for z900.
10648         (s390_issue_rate): New function.
10649         (s390_agen_dep_p): New function.
10650         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
10651         (s390_adjust_cost): Return 'cost' if new DFA is used.
10652         (s390_adjust_priority): Delete function.
10653         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
10654         * config/s390/s390.md (atype attribute): Attribute 'atype' default
10655         determined by 'op_type'.
10656         (type attribute): Added more type attributes.
10657         * config/s390/2064.md: New DFA description for z900 pipeline.
10658
10659 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
10660
10661         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
10662         forced to memory.  Fixes PR bootstrap/9036.
10663
10664         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
10665         to set $gp before the call.
10666
10667 2003-01-14  Richard Henderson  <rth@redhat.com>
10668
10669         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
10670         for force_const_mem.
10671
10672 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10673
10674         * genattr.c (main): Rearrange output to avoid prototype warning.
10675         * genautomata.c (transform_3): Fix ambiguous-else warning.
10676         * local-alloc.c (requires_inout): Add parentheses around
10677         assignment used as truth-value.
10678         * timevar.c: Move system includes above local includes.  Include
10679         toplev.h
10680         * Makefile.in (timevar.o): Depend on toplev.h.
10681
10682 2003-01-14  Denis Chertykov  <denisc@overta.ru>
10683
10684         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
10685         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
10686
10687         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
10688         attributes.
10689         (TARGET_ATTRIBUTE_TABLE): New macro.
10690         (valid_machine_type_attribute): Remove.
10691         (valid_machine_decl_attribute): Remove.
10692         (ip2k_handle_progmem_attribute): New function.
10693         (ip2k_handle_fndecl_attribute): New function.
10694
10695 2003-01-10  Andrew Haley  <aph@redhat.com>
10696
10697         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
10698         registers to be in correct order.  Add rip.
10699
10700 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10701
10702         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
10703         (*iorsi3_and_lshiftrt_9_sb): Likewise.
10704
10705 2003-01-14  Jan Hubicka  <jh@suse.cz>
10706
10707         * convert.c (strip_float_extensions):  Look for narrowest type handling
10708         FP constants.
10709
10710         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
10711         float1 CMP float2.
10712         * convert.c (strip_float_extensions): Make global.
10713         * tree.h (strip_float_extensions): Declare.
10714
10715 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10716
10717         * timevar.def: define TV_NAME_LOOKUP.
10718         * timevar.c (timevar_pop): Be verbose when aborting.
10719
10720 2003-01-13  Andreas Schwab  <schwab@suse.de>
10721
10722         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
10723         $(parsedir), just move the temporary file at the end.
10724         ($(parsedir)/gengtype-yacc.c): Likewise.
10725
10726 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
10727
10728         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
10729         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
10730         splitting.
10731         * configure: Rebuilt.
10732
10733 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10734
10735         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
10736         internal_mcount): Don't use PARAMS.
10737         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
10738         ISO C style.
10739         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
10740
10741 2003-01-13  Andreas Schwab  <schwab@suse.de>
10742
10743         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
10744         directive.
10745
10746 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10747
10748         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
10749         (*iorsi3_and_lshiftrt_n_sb): Likewise.
10750
10751 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
10752
10753         PR c++/9264
10754         * c-lex.c (c_lex): Set the token value to error_mark_node for
10755         invalid numeric constants.
10756
10757 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10758
10759         * c-pch.c (asm_file_startpos): Change to `long'.
10760         (pch_init): Use ftell, not ftello.
10761         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
10762         Use `long' instead of `off_t'.
10763         (c_common_read_pch): Likewise.
10764         * ggc-common.c (gt_pch_save): Use long/ftell instead of
10765         off_t/ftello.
10766
10767 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
10768
10769         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
10770
10771 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
10772
10773         * arm-protos.h (struct cpp_reader): Add declaration.
10774
10775 2003-01-11  Jan Hubicka  <jh@suse.cz>
10776
10777         PR target/9068
10778         * i386.c (output_fp_compare): Fix typo.
10779
10780 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
10781
10782         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
10783
10784 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
10785
10786         * Makefile.in (parsedir): New variable.
10787         (docobjdir): New variable.
10788         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
10789         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
10790         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
10791         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
10792         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
10793         Use docobjdir.
10794         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
10795         objc.maintainer-clean): Use parsedir.
10796
10797         * varasm.c (struct constant_descriptor_rtx): Remove unused
10798         `label' field.
10799
10800         * toplev.c (documented_lang_options): Document -Winvalid-pch.
10801
10802 2003-01-10  Richard Henderson  <rth@redhat.com>
10803
10804         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
10805         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
10806
10807 2003-01-10  Richard Henderson  <rth@redhat.com>
10808
10809         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
10810         not INTEGRAL_MODE_P when widening extensions.
10811
10812 2003-01-10  Richard Henderson  <rth@redhat.com>
10813
10814         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
10815
10816 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
10817
10818         * ggc-page.c (ggc_collect): Avoid overflow computing
10819         min_expand.
10820
10821         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
10822         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
10823         Remove calls.
10824         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
10825
10826 2003-01-10  Jan Hubicka  <jh@suse.cz>
10827
10828         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
10829         with weird operands.
10830
10831 2003-01-10  Dale Johannesen <dalej@apple.com>
10832
10833         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
10834         parameters.  Call check_sibcall_argument_overlap if indicated.
10835         (check_sibcall_argument_overlap):  Add mark_stored_args_map
10836         parameter.  Don't mark parameter area as clobbered if not set.
10837         (expand_call):  Adjust calls to above.
10838
10839 2003-01-10 Kelley Cook <kelleycook@comcast.net>
10840
10841         * configure.in (linker read-only and read-write section mixing):
10842         Squelch some assembler warnings.
10843         * configure: Likewise.
10844
10845 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
10846
10847         * doc/invoke.texi: Document -mtune, delete -mcpu
10848         option for S/390 and zSeries.
10849         * config/s390/s390.c (s390_tune_string) New variable.
10850         (s390_cpu_string) Delete variable.
10851         (override_options): Use s390_tune_string instead of
10852         s390_cpu_string.
10853         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
10854
10855 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
10856
10857         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
10858
10859 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
10860
10861         * jump.c (next_nonnote_insn_in_loop): New function.
10862         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
10863         next_nonnote_insn.
10864         (duplicate_loop_exit_test). Likewise.
10865
10866 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
10867
10868         Merge from pch-branch:
10869
10870         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
10871
10872         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
10873         load.
10874
10875         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
10876
10877         * cpplib.c (count_registered_pragmas): New function.
10878         (save_registered_pragmas): New function.
10879         (_cpp_save_pragma_names): New function.
10880         (restore_registered_pragmas): New function.
10881         (_cpp_restore_pragma_names): New function.
10882         * cpphash.h (_cpp_save_pragma_names): Prototype.
10883         (_cpp_restore_pragma_names): Likewise.
10884         * cpppch.c (struct save_macro_item): Split from save_macro_data.
10885         (struct save_macro_data): New field 'saved_pragmas'.
10886         (save_macros): Update for changes to struct save_macro_data.
10887         (cpp_prepare_state): Call _cpp_save_pragma_names, update
10888         for changes to struct save_macro_data.
10889         (cpp_read_state): Call _cpp_restore_pragma_names, update
10890         for changes to struct save_macro_data.
10891
10892         * cpppch.c (cpp_read_state): Restore the hashtable references
10893         in the cpp_reader.
10894
10895         * tree.h (built_in_decls): Mark for PCH.
10896
10897         * dbxout.c (lastfile): Don't mark for PCH.
10898
10899         * ggc.h: Document PCH calls into memory managers.
10900
10901         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
10902
10903         * doc/invoke.texi (Precompiled Headers): Document the
10904         directory form of PCH.
10905         * cppfiles.c (validate_pch): New function.
10906         (open_file_pch): Search suitably-named directories for PCH files.
10907
10908         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
10909
10910         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
10911         reorder options.
10912         (Type Information): Mention that the information is also
10913         used to implement PCH.
10914         * doc/passes.texi (Passes): Improve documentation of
10915         language-specific files.
10916
10917         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
10918
10919         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
10920         (struct walk_type_data): Add reorder_fn field.
10921         (walk_type): Process 'reorder' option.
10922         (write_types_process_field): Reorder parameters to gt_pch_note_object,
10923         call reorder_note_routine.
10924         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
10925         (ggc_wtd): Update for change to struct write_types_data.
10926         (pch_wtd): Likewise.
10927         * ggc.h (gt_pch_note_object): Reorder parameters.
10928         (gt_handle_reorder): New definition.
10929         (gt_pch_note_reorder): New prototype.
10930         * ggc-common.c (struct ptr_data): Add reorder_fn.
10931         (gt_pch_note_object): Reorder parameters.
10932         (gt_pch_note_reorder): New.
10933         (gt_pch_save): Call reorder_fn.
10934         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
10935
10936         * dbxout.c (cwd): Don't mark for PCH.
10937
10938         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
10939
10940         * gengtype.c (finish_root_table): Fix some warnings.
10941         (write_root): Handle TYPE_STRING.
10942         * ggc.h (gt_ggc_m_S): Add prototype.
10943         * stringpool.c (gt_ggc_m_S): New function.
10944
10945         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
10946
10947         * dwarf2out.c (dw2_string_counter): New.
10948         (AT_string_form): Use it.
10949         (same_dw_val_p): Update for removal of hashtable.h hash tables.
10950
10951         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
10952
10953         * dbxout.c: Include gt-dbxout.h.
10954         (lastfile): Mark for PCH/GGC.
10955         (cwd): Likewise.
10956         (struct typeinfo): Likewise.
10957         (typevec): Likewise.
10958         (typevec_len): Likewise.
10959         (next_type_number): Likewise.
10960         (struct dbx_file): Likewise.
10961         (current_file): Likewise.
10962         (next_file_number): Likewise.
10963         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
10964         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
10965         (dbxout_end_source_file): Don't free struct dbx_file.
10966         (dbxout_type): Use GGC to allocate typevec.
10967         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
10968         (GTFILES): Add dbxout.c.
10969         (gt-dbxout.h): New rule.
10970
10971         * Makefile.in (c-pch.o): Add debug.h as dependency.
10972         * c-pch.c: Include debug.h.
10973         (pch_init): Call start_source_file to keep nesting right.
10974         (c_common_read_pch): Add orig_name parameter.  Call
10975         start_source_file debug hook.  Call end_source_file debug hook.
10976         * c-common.h (c_common_read_pch): Update prototype.
10977         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
10978         callback.
10979         * cppfiles.c (struct include_file): Add new field `header_name'.
10980         (find_or_create_entry): Default it to `name'.
10981         (open_file_pch): Set it to the original header file searched for.
10982         (stack_include_file): Don't stack an empty buffer, just handle
10983         PCH files immediately.  Pass header_name field to read_pch callback.
10984
10985         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
10986
10987         * function.c (funcdef_no): Mark to be saved in a PCH.
10988
10989         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
10990
10991         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
10992
10993         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
10994
10995         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
10996
10997         * optabs.h (code_to_optab): Add GTY marker.
10998
10999         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
11000
11001         * Makefile.in (GTFILES): Add cpplib.h.
11002         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
11003         * c-decl.c (build_compound_literal): Don't use var_labelno.
11004         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
11005         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
11006         * varasm.c (const_labelno): Use gengtype to mark.
11007         (var_labelno): Likewise.
11008         (in_section): Likewise.
11009         (in_named_name): Likewise.
11010         (struct in_named_entry): Likewise.
11011         (in_named_htab): Likewise.
11012         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
11013         (init_varasm_once): Use GGC to allocate in_named_htab.
11014         * config/darwin.c (current_pic_label_num): Mark for PCH.
11015
11016         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
11017
11018         * ggc-simple.c (init_ggc_pch): New stub procedure.
11019         (ggc_pch_count_object): Likewise.
11020         (ggc_pch_total_size): Likewise.
11021         (ggc_pch_this_base): Likewise.
11022         (ggc_pch_alloc_object): Likewise.
11023         (ggc_pch_prepare_write): Likewise.
11024         (ggc_pch_write_object): Likewise
11025         (ggc_pch_finish): Likewise.
11026         (ggc_pch_read): Likewise.
11027
11028         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
11029
11030         * c-pch.c (c_common_write_pch): Write the macro definitions after
11031         the GCed data.
11032         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
11033         definitions after the GCed data.
11034         * cpplib.c (save_macros): New.
11035         (reset_ht): New.
11036         (cpp_write_pch_deps): Split out of cpp_write_pch.
11037         (cpp_write_pch_state): Split out of cpp_write_pch.
11038         (cpp_write_pch): Delete.
11039         (struct save_macro_data): Delete.
11040         (cpp_prepare_state): New.
11041         (cpp_read_state): Erase and restore initial macro definitions.
11042         * cpplib.h (struct save_macro_data): Forward-declare.
11043         (cpp_write_pch_deps): Prototype.
11044         (cpp_write_pch_state): Prototype.
11045         (cpp_write_pch): Delete prototype.
11046         (cpp_prepare_state): Prototype.
11047         (cpp_read_state): Add fourth argument.
11048
11049         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
11050
11051         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
11052         (write_array): Remove warning.
11053
11054         * gengtype.c (contains_scalar_p): New.
11055         (finish_root_table): Add the table to all languages, even if it's
11056         empty.
11057         (write_roots): Output gt_pch_scalar_rtab.
11058         * ggc-common.c (gt_pch_save): Write out scalars.
11059         (gt_pch_restore): Read scalars back.
11060
11061         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
11062         (struct page_entry): Delete pch_page field.
11063         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
11064         (clear_marks): Likewise.
11065         (sweep_pages): Likewise.
11066         (poison_pages): Likewise.
11067         (ggc_print_statistics): Likewise.
11068         (ggc_pch_read): Don't free objects read from a PCH.
11069         Properly set up in_use_p and page_tails.
11070
11071         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
11072
11073         * gengtype.c (struct write_types_data): New.
11074         (struct walk_type_data): Make `cookie' const; add extra
11075         prev_val item; add `orig_s' field.
11076         (walk_type): Update prev_val[3].
11077         (write_types_process_field): New.
11078         (write_func_for_structure): Take write_types_data structure.
11079         (write_types): New.
11080         (ggc_wtd): New.
11081         (pch_wtd): New.
11082         (write_types_local_process_field): New.
11083         (gc_mark_process_field): Delete.
11084         (write_local_func_for_structure): New.
11085         (gc_mark_func_name): Delete.
11086         (write_gc_types): Delete.
11087         (write_local): New.
11088         (finish_root_table): Don't include 'ggc_' in PFX.
11089         (write_root): Rename from write_root.  Fill pchw field of structures.
11090         (write_array): New.
11091         (write_roots): Rename from write_gc_roots.  Split out to write_array.
11092         Update to changes to other routines.  Write gt_pch_cache_rtab table.
11093         (main): Write PCH walking routines.
11094         * ggc-common.c: Include toplev.h, sys/mman.h.
11095         (ggc_mark_roots): For cache hashtables, also mark the hash table
11096         and the array of entries.
11097         (saving_htab): New.
11098         (struct ptr_data): New.
11099         (POINTER_HASH): New.
11100         (gt_pch_note_object): New.
11101         (saving_htab_hash): New.
11102         (saving_htab_eq): New.
11103         (struct traversal_state): New.
11104         (call_count): New.
11105         (call_alloc): New.
11106         (compare_ptr_data): New.
11107         (relocate_ptrs): New.
11108         (write_pch_globals): New.
11109         (struct mmap_info): New.
11110         (gt_pch_save): New.
11111         (gt_pch_restore): New.
11112         * ggc-page.c (ROUND_UP_VALUE): New.
11113         (ROUND_UP): New.
11114         (struct page_entry): Add field `pch_page'.
11115         (init_ggc): Use ROUND_UP.
11116         (struct ggc_pch_data): Declare.
11117         (init_ggc_pch): New.
11118         (ggc_pch_count_object): New.
11119         (ggc_pch_total_size): New.
11120         (ggc_pch_this_base): New.
11121         (ggc_pch_alloc_object): New.
11122         (ggc_pch_prepare_write): New.
11123         (ggc_pch_write_object): New.
11124         (ggc_pch_finish): New.
11125         (ggc_pch_read): New.
11126         * ggc.h (gt_pointer_operator): New.
11127         (gt_note_pointers): New.
11128         (gt_pch_note_object): New prototype.
11129         (gt_pointer_walker): New.
11130         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
11131         (LAST_GGC_ROOT_TAB): Update.
11132         (gt_pch_cache_rtab): Declare.
11133         (gt_pch_scalar_rtab): Declare.
11134         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
11135         (LAST_GGC_CACHE_TAB): Update.
11136         (gt_pch_save_stringpool): Declare.
11137         (gt_pch_restore_stringpool): Declare.
11138         (gt_pch_p_S): Declare.
11139         (gt_pch_n_S): Declare.
11140         (struct ggc_pch_data): Forward-declare.
11141         (init_ggc_pch): Declare.
11142         (ggc_pch_count_object): Declare.
11143         (ggc_pch_total_size): Declare.
11144         (ggc_pch_this_base): Declare.
11145         (ggc_pch_alloc_object): Declare.
11146         (ggc_pch_prepare_write): Declare.
11147         (ggc_pch_write_object): Declare.
11148         (ggc_pch_finish): Declare.
11149         (ggc_pch_read): Declare.
11150         (gt_pch_save): Declare.
11151         (gt_pch_restore): Declare.
11152         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
11153         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
11154         const_double_htab, mem_attrs_htab using GGC.
11155         * c-pch.c: Include ggc.h.
11156         (pch_init): Allow reading PCH file back.
11157         (c_common_write_pch): Call gt_pch_save.
11158         (c_common_read_pch): Call gt_pch_restore.
11159         * c-parse.in (init_reswords): Delete now-untrue comment.
11160         Allocate ridpointers using GGC.
11161         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
11162         calling expand_deferred_fns.
11163         * c-common.h (ridpointers): Mark for GTY machinery.
11164         * Makefile.in (stringpool.o): Update dependencies.
11165         (c-pch.o): Update dependencies.
11166         (ggc-common.o): Update dependencies.
11167         * stringpool.c: Include gt-stringpool.h.
11168         (gt_pch_p_S): New.
11169         (gt_pch_n_S): New.
11170         (struct string_pool_data): New.
11171         (spd): New.
11172         (gt_pch_save_stringpool): New.
11173         (gt_pch_restore_stringpool): New.
11174         * tree.c (init_ttree): Make type_hash_table allocated using GC.
11175
11176         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
11177
11178         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
11179         (output_mangled_typename): Don't pass size_t to printf.
11180
11181         * tree.h (union tree_type_symtab): Add tag to `address' field.
11182         (union tree_decl_u2): Add tag to 'i' field.
11183         * varasm.c (union rtx_const_un): Add tags to all fields.
11184         * gengtype.c (struct walk_type_data): New.
11185         (output_escaped_param): Take struct walk_type_data parameter.
11186         (write_gc_structure_fields): Delete.
11187         (walk_type): New.
11188         (write_gc_marker_routine_for_structure): Delete.
11189         (write_func_for_structure): New.
11190         (gc_mark_process_field): New.
11191         (gc_mark_func_name): New.
11192         (gc_counter): Delete.
11193         (write_gc_types): Use write_func_for_structure.
11194         (write_gc_roots): Use walk_type.
11195
11196         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
11197
11198         * ggc-common.c (ggc_mark_roots): Delete 'x'.
11199         (ggc_splay_dont_free): Fix warning about unused 'x'.
11200         (ggc_print_common_statistics): Remove warnings.
11201
11202         2002-10-01  Mike Stump  <mrs@apple.com>
11203
11204         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
11205         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
11206
11207         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
11208             Catherine Moore  <clm@redhat.com>
11209
11210         * Makefile (c-pch.o): Update dependencies.
11211         (LIBCPP_OBJS): Add cpppch.o.
11212         (cpppch.o): New.
11213         * c-common.c (c_common_init): Don't call pch_init here.
11214         * c-common.h (c_common_read_pch): Update prototype.
11215         * c-lex.c (c_common_parse_file): Call pch_init here.
11216         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
11217         (c_common_decode_option): Handle them.
11218         * c-pch.c: Include c-pragma.h.
11219         (save_asm_offset): Delete.
11220         (pch_init): Move contents of save_asm_offset into here, call
11221         cpp_save_state.
11222         (c_common_write_pch): Call cpp_write_pch.
11223         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
11224         cpp_valid_state.
11225         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
11226         * cppfiles.c (stack_include_file): Update for change to
11227         parameters of cb.read_pch.
11228         * cpphash.h (struct cpp_reader): Add `savedstate' field.
11229         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
11230         `restore_pch_deps' fields.
11231         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
11232         (cpp_save_state): Prototype.
11233         (cpp_write_pch): Prototype.
11234         (cpp_valid_state): Prototype.
11235         (cpp_read_state): Prototype.
11236         * cpppch.c: New file.
11237         * flags.h (version_flag): Remove prototype.
11238         * mkdeps.c (deps_save): New.
11239         (deps_restore): New.
11240         * mkdeps.h (deps_save): Prototype.
11241         (deps_restore): Prototype.
11242         * toplev.c (late_init_hook): Delete.
11243         (version_flag): Make static again.
11244         (compile_file): Don't call late_init_hook.
11245         * toplev.h (late_init_hook): Delete.
11246         * doc/cppopts.texi: Document -fpch-deps.
11247         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
11248
11249         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
11250
11251         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
11252         callers.
11253         (c_common_valid_pch): Rename from c_valid_pch, change callers.
11254         (c_common_read_pch): Rename from c_read_pch, change callers.
11255
11256         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
11257         a space between it and its argument.
11258
11259         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
11260
11261         * c-pch.c: New file.
11262         * toplev.h (late_init_hook): Declare.
11263         * toplev.c (late_init_hook): Define.
11264         (version_flag): Make globally visible.
11265         (compile_file): Call late_init_hook.
11266         (init_asm_output): Make output file seekable.
11267         * gcc.c (default_compilers): Update c-header rule.
11268         * flags.h (version_flag): Declare.
11269         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
11270         fields.
11271         * cppfiles.c (struct include_file): Add 'pch' field.
11272         (INCLUDE_PCH_P): New.
11273         (open_file_pch): New.
11274         (stack_include_file): Handle PCH files specially.
11275         (find_include_file): Call open_file_pch instead of open_file.
11276         (_cpp_read_file): Explain why open_file is used instead of
11277         open_file_pch.
11278         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
11279         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
11280         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
11281         in cpplib callbacks.
11282         * c-common.c (pch_file): Correct comment.
11283         (allow_pch): Define.
11284         (c_common_init): Call pch_init.
11285         * c-common.h (allow_pch): Declare.
11286         (pch_init): Declare.
11287         (c_valid_pch): Declare.
11288         (c_read_pch): Declare.
11289         (c_write_pch): Declare.
11290         * Makefile.in (c-pch.o): New.
11291         (C_AND_OBJC_OBJS): Add c-pch.o.
11292         * doc/invoke.texi (Precompiled Headers): Add index entries,
11293         complete truncated paragraph.
11294
11295         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
11296
11297         * c-common.c: (pch_file): Define.
11298         * c-common.h (pch_file): Declare.
11299         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
11300         (missing_arg): Require --output-pch= to have an argument.
11301         (c_common_decode_option): Handle --output-pch=.
11302         * gcc.c: Document new %V.
11303         (default_compilers): Handle compiling C header files.
11304         (do_spec_1): Implement %V.
11305         (main): Handle "gcc foo.h" without trying to run linker.
11306         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
11307         (Overall Options): Document what the driver does with header files,
11308         document new -x option possibilities.
11309         (Invoking G++): More documentation for PCH.
11310         (Precompiled Headers): New.
11311
11312         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
11313
11314         * ggc.h: Don't include varray.h.  Rearrange functions to be more
11315         organized.
11316         (ggc_add_root): Delete.
11317         (ggc_mark_rtx): Delete.
11318         (ggc_mark_tree): Delete.
11319         (struct ggc_statistics): Remove contents.
11320         * ggc-common.c: Remove unneeded includes.
11321         (struct ggc_root): Delete.
11322         (roots): Delete.
11323         (ggc_add_root): Delete.
11324         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
11325         (ggc_print_common_statistics): Remove most of the contents.
11326         * Makefile.in (GGC_H): No longer uses varray.h.
11327         (ggc-common.o): Update dependencies.
11328         (c-parse.o): Add varray.h to dependencies.
11329         (c-common.o): Add varray.h.
11330         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
11331         (mark_ident_hash): Rename to ggc_mark_stringpool.
11332         (init_stringpool): Don't use ggc_add_root.
11333         * c-parse.in: Include varray.h.
11334         * c-common.c: Include varray.h.
11335         * objc/Make-lang.in (objc-act.o): Add varray.h.
11336         * objc/objc-act.c: Include varray.h.
11337
11338         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
11339
11340         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
11341         (dw_cfi_oprnd1_desc): Likewise.
11342
11343         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
11344
11345         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
11346         move out of ifdef.
11347         (alpha_links): Use gengtype to mark; move out of ifdef.
11348         (mark_alpha_links_node): Delete.
11349         (mark_alpha_links): Delete.
11350         (alpha_need_linkage): Use GGC to allocate splay tree, struct
11351         alpha_links, strings.  Don't use ggc_add_root.
11352         * ggc-common.c (ggc_splay_alloc): New.
11353         (ggc_splay_dont_free): New.
11354         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
11355         (ggc_mark_tree): Likewise.
11356         (splay_tree_new_ggc): New.
11357         (ggc_splay_alloc): Declare.
11358         (ggc_splay_dont_free): Declare.
11359         * dwarf2asm.c: Include gt-dwarf2asm.h.
11360         (mark_indirect_pool_entry): Delete.
11361         (mark_indirect_pool): Delete.
11362         (indirect_pool): Use gengtype to mark.
11363         (dw2_force_const_mem): Don't use ggc_add_root.
11364         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
11365         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
11366         (gt-dwarf2asm.h): Depend on s-gtype.
11367
11368         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
11369
11370         * tree.h (union tree_type_symtab): Mark `die' field.
11371         * Makefile.in (dwarf2out.o): Update dependencies.
11372         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
11373         hash tables.
11374         (dw_cfi_oprnd1_desc): New function.
11375         (dw_cfi_oprnd2_desc): New function.
11376         (indirect_string_alloc): Delete.
11377         (debug_str_do_hash): New function.
11378         (debug_str_eq): New function.
11379         (mark_limbo_die_list): Delete.
11380         (dwarf2out_init): Don't call ggc_add_root.
11381
11382 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
11383
11384         The following changes are merged from itanium-sched-branch:
11385
11386         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
11387
11388         * doc/md.texi: Clarify assignment of units to automata description.
11389
11390         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
11391
11392         * genautomata.c (unit_decl): Remove members
11393         `the_same_automaton_unit' and
11394         `the_same_automaton_message_reported_p'.
11395         (process_unit_to_form_the_same_automaton_unit_lists,
11396         form_the_same_automaton_unit_lists_from_regexp,
11397         form_the_same_automaton_unit_lists, the_same_automaton_lists):
11398         Remove them.
11399         (annotation_message_reported_p): New global variable.
11400         (check_unit_distribution_in_reserv,
11401         check_regexp_units_distribution): New functions.
11402         (check_unit_distributions_to_automata): Rewrite it.
11403
11404         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
11405
11406         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
11407         Use continue instead of break if cycle is too big.
11408
11409         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
11410
11411         * genautomata.c (check_unit_distributions_to_automata): Output at
11412         most one message for a unit.
11413         (process_unit_to_form_the_same_automaton_unit_lists): Check
11414         automaton of units instead of units themself.
11415
11416         * doc/md.texi: Describe the constraint about assigning unit to
11417         automata.
11418
11419         2002-12-20  Jan Hubicka  <jH@suse.cz>
11420                     Vladimir Makarov  <vmakarov@redhat.com>
11421
11422         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
11423         and `in_set_p'.
11424         (gen_cpu_unit): Initialize the new members.
11425         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
11426         up `min_occ_cycle_num'.
11427         (evaluate_max_reserv_cycles): Change the function call.
11428         (CLEAR_BIT): New macro.
11429         (states_union, state_shift): Use the mask.
11430         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
11431         (form_reservs_matter): New function.
11432         (make_automaton): Call the function and use the mask.
11433         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
11434         account.
11435
11436         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
11437
11438         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
11439
11440         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
11441
11442         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
11443         for Itanium.
11444
11445         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
11446
11447         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
11448         default cpu.
11449
11450         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
11451                 2002-10-31  Dale Johannesen <dalej@apple.com>
11452
11453         * haifa-sched.c (find_set_reg_weight): New function.
11454         (find_insn_reg_weight): Use the new function.
11455         (schedule_block): Do sorting ready queue always
11456         after insn issue.
11457
11458         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
11459
11460         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
11461
11462         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
11463
11464         * haifa-sched.c (choice_entry): New structure.
11465         (choice_stack, cycle_issued_insns): New variables.
11466         (max_issue): Rewrite it.
11467         (choose_ready): Set up ready_try for unknown insns too.
11468         (schedule_block): Allocate and free choice_stack.  Set up
11469         and modify cycle_issued_insns.
11470
11471         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
11472         with and without filling the bundle.
11473         (bundling): Combine calls of issue_nops_and_insn.
11474
11475         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
11476
11477         * config/ia64/itanium1.md: New file.
11478
11479         * config/ia64/itanium2.md: New file.
11480
11481         * config/ia64/ia64.md: Move DFA descriptions into the new files.
11482         Remove the old pipeline description.
11483
11484         * config/ia64/ia64.c (ia64_override_options): Add aliases of
11485         itanium processor names.
11486
11487         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
11488
11489         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
11490         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
11491
11492         * config/ia64/ia64.md: Add descriptions for Itanium2.
11493
11494         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
11495
11496         * config/ia64/ia64.h (processor_type): New enumeration.
11497         (ia64_tune, ia64_tune_string): New external declarations.
11498         (TARGET_OPTIONS): Add option `tune='.
11499
11500         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
11501         variables.
11502         (ia64_override_options): Set up `ia64_tune'.
11503         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
11504         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
11505         (bundling): Add nops for MM-insns only for Itanium.
11506         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
11507         Itanium.
11508
11509         * config/ia64/ia64.md (cpu): New attribute.
11510         (DFA description): Enable it only for Itanium.
11511
11512         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
11513                     Richard Henderson  <rth@redhat.com>
11514
11515         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
11516         MASK_EARLY_STOP_BITS.
11517         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
11518         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
11519         `early-stop-bits'.
11520
11521         * config/ia64/ia64.c (ia64_dfa_new_cycle,
11522         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
11523         instead of TARGET_TUNE_STOP_BITS.
11524
11525         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
11526         `-mearly-stop-bits'.
11527
11528         * config/ia64/ia64.c (automata_option "v"): Comment it.
11529
11530         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
11531
11532         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
11533         New macros.
11534         (TARGET_SWITCHES): Add entries for the new option.
11535
11536         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
11537         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
11538         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
11539         global variables.
11540         (ia64_sched_reorder2): Set up `clocks'.
11541         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
11542         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
11543         queue when TARGET_TUNE_STOP_BITS.
11544         (bundling): Insert additional nops for MM-insns.
11545         (final_emit_insn_group_barriers): Add insertion of stop bits
11546         according `stops_p'.
11547         (ia64_reorg): Initiate the new varibales.
11548
11549         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
11550
11551         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
11552
11553         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
11554         insns at the end of block insn scheduling.
11555
11556         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
11557
11558         * sched-deps.c (remove_dependence, group_leader): Remove it.
11559         (add_dependence): Add dependence to group leader to.
11560         (set_sched_group_p): Add dependence to the first insn of the
11561         schedule group too.
11562         (sched_analyze_insn): Make dependence to jump as anti-dependence.
11563         Change true dependence by anti-dependence when
11564         `reg_pending_barrier'.
11565
11566         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
11567         add_branch_dependences): Ignore schedule groups.
11568
11569         * sched-ebb.c (init_ready_list): Ditto.
11570
11571         * (move_insn, set_priorities): Ditto.
11572
11573         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
11574         flag is clear after reload.
11575         (adjust_cost): Change cost only for output dependencies.
11576
11577         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
11578
11579         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
11580
11581         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
11582
11583         * target.h (gcc_target): Add member
11584         `dependencies_evaluation_hook'.
11585
11586         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
11587         macro.
11588         (TARGET_SCHED): Add initiatialization of the new member.
11589
11590         * sched-ebb.c: Include `target.h'.
11591         (schedule_ebb): Call `dependencies_evaluation_hook'.
11592
11593         * sched-rgn.c (schedule_region): Call
11594         `dependencies_evaluation_hook'.
11595
11596         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
11597         New macro.
11598         (ia64_dependencies_evaluation_hook): New function.
11599
11600         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
11601         Describe the new hook.
11602
11603         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
11604
11605         * target.h (gcc_target): Add members
11606         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
11607
11608         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
11609         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
11610         macros.
11611         (TARGET_SCHED): Add initiatialization of the new members.
11612
11613         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
11614         insn scheduling too.
11615         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
11616         initialize `ready_try'.
11617         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
11618         `dfa_new_cycle' says not to do it.
11619
11620         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
11621         bundling.
11622
11623         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
11624
11625         * config/ia64/ia64.c: Include `hashtab.h'.
11626         (ia64_first_cycle_multipass_dfa_lookahead_guard,
11627         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
11628         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
11629         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
11630         bundle_state_eq_p, insert_bundle_state,
11631         initiate_bundle_state_table, finish_bundle_state_table,
11632         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
11633         get_template, get_next_important_insn, bundling): New functions.
11634         (ia64_internal_sched_reorder): Remove it.
11635         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
11636         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
11637         (ia64_safe_itanium_requires_unit0): Remove it.
11638         (group_barrier_needed_p): Place group barrier right before a real
11639         insn.
11640         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
11641         Remove them.
11642         (bundle_name): New variable.
11643         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
11644         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
11645         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
11646         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
11647         temp_dfa_state, prev_cycle_state): New global variables.
11648         (insn_matches_slot, maybe_rotate, finish_last_head,
11649         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
11650         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
11651         find_best_packet, itanium_reorder, dump_current_packet,
11652         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
11653         (sched_data, sched_ready, sched_types): Remove them.
11654         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
11655         `init_insn_group_barriers'.
11656         (ia64_sched_reorder, ia64_sched_reorder2): Call
11657         ia64_dfa_sched_reorder.
11658         (ia64_variable_issue): Rewrite it.
11659         (bundle_state): New structure.
11660         (index_to_bundle_states, bundle_states_num,
11661         allocated_bundle_states_chain, free_bundle_state_chain): New
11662         global variables.
11663         (ia64_sched_finish): Add stop bits and call `bundling' after the
11664         2nd insn scheduling.
11665         (ia64_use_dfa_pipeline_interface): Return zero always.
11666         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
11667         insn scheduling.
11668         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
11669         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
11670         (ia64_reorg): Add bundling insns.
11671
11672         * doc/tm.texi
11673         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
11674         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
11675
11676         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
11677
11678         * config/ia64/ia64.md: Add Itanium1 DFA description.
11679         (itanium_class): Add `nop' and `pre_cycle'.  Add
11680         define_function_unit for `nop'.
11681         (nop): Change attribute `itanium_class'.
11682         (pre_cycle): New define_insn.
11683
11684         * config/ia64/ia64-protos.h (bundling_p): New external variable.
11685         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
11686         ia64_produce_address_p): New function prototypes.
11687
11688         * config/ia64/ia64.c (bundling_p): New global variable.
11689         (ia64_use_dfa_pipeline_interface,
11690         ia64_first_cycle_multipass_dfa_lookahead,
11691         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
11692         functions.
11693         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11694         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11695         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11696         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
11697         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
11698         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
11699         (dfa_pre_cycle_insn): New variable.
11700
11701         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
11702
11703         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
11704         constructions.
11705
11706         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
11707         New function prototypes.
11708
11709         * genattrtab.c (main): Process the new constructions.
11710
11711         * genautomata.c (gen_presence_absence_set,
11712         process_presence_absence_names, process_presence_absence_patterns,
11713         add_presence_absence, check_absence_pattern_sets): Add parameter
11714         `final_p'.
11715         (unit_decl): Add new members `final_presence_list' and
11716         `final_absence_list'.
11717         (unit_pattern_rel_decl): Add new member `final_p'.
11718         (gen_final_presence_set, gen_final_absence_set): New functions.
11719         (process_decls): Use member `final_p'.
11720         (temp_reserv): New global variable.
11721         (reserv_sets_are_intersected): Add processing `final_presence_set'
11722         and `final_absence_set'.
11723         (initiate_states): Allocate `temp_reserv'.
11724         (unit_final_presence_set_table, unit_final_absence_set_table): New
11725         gloabal variables.
11726         (initiate_presence_absence_pattern_sets): Initiate them.
11727         (NDFA_to_DFA): Fix typo.
11728         (output_description): Output `final_presence_set' and
11729         `final_absence_set'.
11730
11731         * doc/md.texi (final_presence_set, final_absence_set): Describe
11732         them.
11733
11734         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
11735
11736         * genautomata.c (transform_3): Process a missing case (nothing on
11737         unit place).
11738
11739         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
11740
11741         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
11742         comments about queried units and the minimization.
11743
11744         * doc/md.texi: Ditto.
11745
11746         * genautomata.c (create_composed_state): Return nonzero if the new
11747         state has been created.
11748         (first_cycle_unit_presence): New function.
11749         (state_is_differed): Add new parameter.  Use the new function.
11750         Take queried units into account.
11751         (partition_equiv_class): Pass additional parameter to
11752         `state_is_differed'.
11753         (merge_states): Process composed states too.
11754         (build_automaton, create_automata, output_min_issue_delay_table,
11755         output_tables, output_statistics): Output more information.
11756         (output_reserved_units_table): Use function
11757         `first_cycle_unit_presence'.
11758         (output_tables): Output table of queried units even if the
11759         minimization is switched on.
11760         (write_automata): Output code for querying units even if the
11761         minimization is switched on.
11762
11763         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
11764
11765         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
11766         syntax of the constructions.
11767
11768         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
11769         extended syntax of the constructions.
11770
11771         * genautomata.c (unit_rel_decl): Rename it to
11772         `unit_pattern_rel_decl'.
11773         (pattern_set_el, pattern_reserv): New structures.
11774         (pattern_set_el_t, pattern_reserv_t): New types.
11775         (gen_presence_absence_set): New function.
11776         (process_presence_absence): Remove it.
11777         (process_presence_absence_names,
11778         process_presence_absence_patterns): New functions.
11779         (get_presence_absence_set): Remove it.
11780         (initiate_presence_absence_sets): Rename it on
11781         `initiate_presence_absence_pattern_sets'.  Use new function
11782         `form_reserv_sets_list'.
11783         (form_reserv_sets_list, check_presence_pattern_sets,
11784         check_absence_pattern_sets, output_pattern_set_el_list): New
11785         functions.
11786         (unit_decl): Change types of members `presence_list' and
11787         `absence_list'.
11788         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
11789         (decl): Change types of members `excl', `presence', and `absence'.
11790         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
11791         at the end of the vector.
11792         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
11793         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
11794         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
11795         (gen_presence_set, gen_absence_set): Use new function
11796         `gen_presence_absence_set'.
11797         (add_presence_absence): Process `pattern_list' instead of
11798         `source_list'.
11799         (process_decls): USe new functions
11800         `process_presence_absence_names' and
11801         `process_presence_absence_patterns'.
11802         (reserv_sets_are_intersected): Use new function
11803         `check_presence_pattern_sets'.
11804         (presence_set, absence_set): Remove them.
11805         (unit_presence_set_table, unit_absence_set_table): New global
11806         variables.
11807         (output_description): Use new function
11808         `output_pattern_set_el_list'.
11809         (generate): Use `initiate_presence_absence_pattern_sets'.
11810
11811         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
11812
11813         * genattr.c (main): Add output of prototype of new interface
11814         function `dfa_clean_insn_cache'.
11815
11816         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
11817         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
11818         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
11819         the generated code.
11820         (write_automata): Call the new function.
11821
11822 2003-01-09  Jan Hubicka  <jh@suse.cz>
11823
11824         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
11825         correctly.
11826
11827 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
11828
11829         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
11830
11831 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
11832
11833         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
11834         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
11835         (CONSTRAINT_LEN): Provide default definition.
11836         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
11837         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
11838         (EXTRA_CONSTRAINT_STR): Likewise.
11839         (REG_CLASS_FROM_CONSTRAINT): Define.
11840         * genoutput.c (check_constraint_len, constraint_len): New functions.
11841         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
11842         constraint / modifier.
11843         (gen_insn): Call check_constraint_len.
11844         * local-alloc.c (block_alloc): Update to use new macros / pass
11845         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
11846         * ra-build.c (handle_asm_insn): Likewise.
11847         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11848         (constrain_operands, peep2_find_free_register): Likewise.
11849         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
11850         * regmove.c (find_matches): Likewise.
11851         * reload.c (push_secondary_reload, find_reloads): Likewise.
11852         (alternative_allows_memconst): Likewise.
11853         * reload1.c (maybe_fix_stack_asms): Likewise.
11854         (reload_cse_simplify_operands): Likewise.
11855         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
11856         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
11857         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
11858         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
11859         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
11860         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
11861
11862         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
11863
11864 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
11865
11866         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
11867         length.
11868         (*extzv_1_r_h8300hs): Likewise.
11869         (*extzv_1_r_inv_h8300): Likewise.
11870         (*extzv_1_r_inv_h8300hs): Likewise.
11871
11872 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
11873
11874         * config/h8300/h8300.h (PREDICATE_CODES): New.
11875
11876 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
11877
11878         * config/h8300/h8300.md (*addsi3_upper): New.
11879         (*iorsi3_shift): Likewise.
11880         (two splitters): Likewise.
11881         (*addsi3_shift): Likewise.
11882         (two splitters): Likewise.
11883
11884 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
11885
11886         * Makefile.in (optabs.o): Add dependency on basic-block.h.
11887         * basic-block.h (control_flow_insn_p): Fuction was exported.
11888         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
11889         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
11890         notes only when the region is contained in a single basic block.
11891
11892 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
11893
11894         PR inline-asm/8832
11895         * tree.h (expand_asm): New prototype.
11896         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
11897         to do so.
11898         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
11899         down to expand_asm.
11900         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
11901         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
11902         (volatile_refs_p) [ASM_INPUT]: Likewise.
11903         (side_effects_p) [ASM_INPUT]: Likewise.
11904
11905 2003-01-09  Jan Hubicka  <jh@suse.cz>
11906
11907         * i386.md (*mul*): FIx constraints; remove confused comment; fix
11908         athlon_decode attributes
11909         (imul/k8 optimization peep2s): New.
11910
11911         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
11912         * i386.md (type attribute): Add ssecomi.
11913         (unit, memory, prefix attributes): Handle ssecomi.
11914         (cvt?2? patterns): Fix athlon_decode attribute
11915         (comi patterns): Set attribute to ssecomi.
11916
11917         PR target/8343
11918         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
11919
11920 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
11921
11922         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
11923         that match register_operands.
11924         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
11925         register_operand the default case.
11926
11927 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
11928
11929         PR c/8032
11930         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
11931         an empty element, do not advance the pointer to unfilled
11932         fields if there are pending initializers.
11933
11934 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
11935
11936         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
11937         (install-gcc-tooldir, install-cpp, installdirs,
11938         install-common, install-driver, install-info, install-man,
11939         install-headers, install-include-dir, install-headers-tar,
11940         install-headers-cpio, install-headers-cp, install-mkheaders,
11941         install-collect2, uninstall): Prepend $(DESTDIR) to
11942         destination paths in all (un)installation commands.
11943         (install-driver): Rewrite $(LN) commands to support DESTDIR
11944         with "ln" as well as with "ln -s".
11945         (installdirs): Simply use mkinstalldirs.
11946         (install-libgcc, install-multilib): Also pass DESTDIR.
11947         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
11948         installation destination variable ldir.
11949         * config/alpha/t-osf4, config/arm/t-netbsd,
11950         config/ia64/t-hpux, config/mips/t-iris5-6,
11951         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
11952         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
11953         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
11954         in the definition of SHLIB_INSTALL.
11955         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
11956         $(libsubdir) in the installation commands.
11957
11958 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
11959
11960         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
11961         non-optimizing compile.
11962         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
11963         compile.
11964
11965 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
11966
11967         * config/i386/i386.c (ix86_attribute_table): Add new attributes
11968         ms_struct and gcc_struct.
11969         (ix86_handle_struct_attribute): New function.
11970         (ix86_ms_bitfield_layout_p): Update to take new attributes
11971         into account.
11972         * doc/extend.texi: Document new attributes.
11973         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
11974
11975 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
11976
11977         PR optimization/8750
11978         * config/i386/i386.c (ix86_expand_prologue): Don't allow
11979         scheduling pass to move insns across __alloca call.
11980
11981 2003-01-08  Dale Johannesen  <dalej@apple.com>
11982
11983         * config/rs6000/rs6000.md:  Replace *store_multiple_string
11984         with *stmsi[3-8].
11985
11986 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
11987
11988         PR target/9210
11989         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
11990         Set SYMBOL_REF_FLAG on local data sym_ref.
11991
11992 2003-01-08  Dale Johannesen  <dalej@apple.com>
11993
11994         * function.c (assign_parms):  Don't set pretend_args_size if
11995           REG_PARM_STACK_SPACE.
11996           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
11997           pretend_args_size.
11998
11999 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
12000
12001         * gcc.hlp: Delete.
12002
12003 2003-01-09  Jan Hubicka  <jh@suse.cz>
12004
12005         * i386.c  (ix86_expand_int_addcc): Fix thinko.
12006
12007 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
12008
12009         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
12010         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
12011         as hook_bool_tree_hwi_hwi_tree_true.
12012         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
12013         (rs6000_emit_epilogue): Same.
12014         (rs6000_output_mi_thunk): Re-implement as RTL.
12015         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
12016         xcoffout_declare_function if any debugging enabled.
12017
12018 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
12019
12020         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
12021         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
12022         * config/mips/mips.h (enum processor_type): Rename
12023         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
12024         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
12025         Add PROCESSOR_M4K.
12026         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
12027         (ISA_MIPS32R2): New define.
12028         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
12029         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
12030         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
12031         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
12032         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
12033         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
12034         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
12035         compiling MIPS16 code.
12036         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
12037         comment.
12038         (ISA_HAS_SEB_SEH): New define.
12039         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
12040         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
12041         processor_type value renaming.  Add support for MIPS32R2.
12042         Clean up comments, and move "sb1" entry with other MIPS64 CPU
12043         entries.
12044         (override_options): Reimplement -mipsN option handling so that
12045         it will work correctly for -mips32r2.  Avoid branch-likely
12046         instructions on MIPS32R2.
12047         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
12048         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
12049         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
12050         (extendhisi2_hw, extendqisi2_hw): New.
12051         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
12052         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
12053         MIPS32R2, and MIPS64.
12054         (LINK_SPEC): Pass -mips32r2 to linker.
12055         * config/mips/t-isa3264: Built -mips32r2 multilibs.
12056         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
12057         for mips32r2 in the -march description.  Alphabetically sort
12058         CPU names in the -march description.  Add long-missed -mips32
12059         and -mips64 to MIPS option summary.
12060
12061         * config.gcc: Update copyright years to include 2003.
12062         * config/mips/mips.c: Likewise.
12063         * config/mips/mips.h: Likewise.
12064         * config/mips/mips.md: Likewise.
12065         * config/mips/netbsd.h: Likewise.
12066         * doc/invoke.texi: Likewise.
12067
12068 2003-01-08  Andreas Schwab  <schwab@suse.de>
12069
12070         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
12071         variable.
12072         * configure: Regenerated.
12073
12074 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
12075
12076         * config/h8300/h8300.c (output_logical_op): Replace byte/word
12077         extraction of det with b0, b1, w0, w2, etc.
12078         (compute_logical_op_length): Likewise.
12079         (compute_logical_op_cc): Likewise.
12080
12081 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
12082
12083         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
12084         HIGH on all variants.
12085
12086 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
12087
12088         * Makefile.in (PARTITION_H): New.
12089         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
12090         * basic-block.h: Include hard-reg-set.h.
12091
12092 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
12093
12094         * arm.h (ENABLE_XF_PATTERNS): Delete.
12095         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
12096         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
12097         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
12098         (cmpxf_trap): Delete.
12099         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
12100
12101 2003-01-08  Jan Hubicka  <jh@suse.cz>
12102
12103         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
12104         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
12105         (add??cc): New expanders.
12106         * i386.c (expand_int_addcc): New function.
12107         * i386-protos.h (expand_int_addcc): Declare.
12108
12109         * alias.c (memory_modified_1): New static function.
12110         (memory_modified): New static varaible.
12111         (memory_modified_in_insn_p): New global function.
12112         * rtl.h (memory_modified_in_insn_p): Declare.
12113         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
12114         references.
12115
12116         * expr.h (emit_conditional_add): Declare.
12117
12118 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
12119
12120         PR other/8947
12121         * doc/invoke.texi (-malign-double): Explain that the option breaks
12122         binary compatibility.
12123
12124 2003-01-08  Andreas Schwab  <schwab@suse.de>
12125
12126         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
12127         should come from the generic *-*-linux* entry.
12128
12129 2003-01-07  Jan Hubicka  <jh@suse.cz>
12130
12131         * cselib.c (cselib_current_insn_in_libcall): New static variable.
12132         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
12133         we are inside libcall.
12134         * cselib.h (elt_loc_list): Add in_libcall.
12135         * gcse.c (do_local_cprop): Do not copy propagate using insns
12136         in libcalls.
12137
12138 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
12139
12140         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
12141         not normally affect to issue rate.
12142
12143 2003-01-07  Jan Hubicka  <jh@suse.cz>
12144
12145         * genopinit.c (optabs): Add addc_optab.
12146         * ifcvt.c (noce_try_store_flag): Rename to ...
12147         (noce_try_addcc): ... this one; handle generic conditional increment.
12148         (noce_process_if_block): Update noce_try_addcc call.
12149         * optabs.c (emit_conditional_add): New.
12150         (init_obtabs): Initialize addc_optab.
12151         * optabs.h (optab_index): Add OTI_addcc.
12152         (addcc_optab): New macro.
12153         * md.texi: Document addMcc
12154
12155         PR target/8322
12156         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
12157         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
12158         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
12159
12160         * reload1.c (delete_output_reload): Avoid repeated attempts
12161         to delete insn.
12162
12163 2003-01-07  Andreas Schwab  <schwab@suse.de>
12164
12165         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
12166         Move --enable-initfini-array check ...
12167         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
12168         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
12169         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
12170         * configure: Rebuild.
12171
12172 2003-01-07  Richard Henderson  <rth@redhat.com>
12173
12174         * alias.c (find_base_value): Only use new_reg_base_value shortcut
12175         if the register is set once.
12176
12177 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
12178
12179         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
12180         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
12181         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
12182
12183 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
12184             Sunil Davasam  <sunil.k.davasam@intel.com>
12185
12186         PR libstdc++/9076
12187         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
12188         DW_CFA_same_value, read next and ignore.
12189
12190 2003-01-07  Richard Henderson  <rth@redhat.com>
12191
12192         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
12193
12194 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
12195
12196         * cfg.c: Include alloc-pool.h
12197         (edge_pool): New pool.
12198         (bb_pool): New pool.
12199         (first_deleted_edge): Remove.
12200         (first_deleted_block): Remove.
12201         (init_flow): Alloc/free the pools.
12202         (free_edge): Use pools.
12203         (alloc_block): Ditto.
12204         (expunge_block): Ditto.
12205         (cached_make_edge): Ditto.
12206
12207         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
12208
12209 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
12210
12211         * et-forest.c: Include alloc-pool.h.
12212         (struct et_forest): Add node_pool and occur_pool.
12213         (et_forest_create): Create the new pools.
12214         (et_forest_delete): Delete them.
12215         (et_forest_add_node): Allocate and free using pools.
12216         (et_forest_add_edge): Ditto.
12217         (et_forest_remove_node): Ditto.
12218         (et_forest_remove_edge): Ditto.
12219
12220         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
12221
12222 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
12223
12224         * config/h8300/h8300.c (output_logical_op): Simplify and
12225         optimize the handling of SImode.
12226         * config/h8300/h8300.c (compute_logical_op_length): Update
12227         accordingly.
12228         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
12229
12230 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
12231
12232         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
12233         big-endian correction to indirect arguments too.
12234
12235 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
12236
12237         Segher Boessenkool  <segher@koffie.nl>
12238
12239         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
12240         (alt_reg_names): Ditto, fix formatting.
12241         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
12242
12243 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
12244
12245         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
12246         (output_logical_op): Constify intval and det.
12247         (compute_logical_length): Likewise.
12248         (compute_logical_cc): Likewise.
12249         (output_a_shift): Constify mask.
12250         (h8300_encode_label): Constify len.
12251
12252 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
12253
12254         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
12255         (h8300_expand_epilogue): Likewise.
12256
12257 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
12258
12259         Segher Boessenkool  <segher@koffie.nl>
12260
12261         * config/rs6000/altivec.md: Remove spaces from assembler
12262         instruction argument lists.
12263
12264 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12265
12266         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
12267         c4x_assembler_function_p.
12268         (c4x_null_epilogue_p): Complement return value, all uses updated.
12269         (c4x_insert_attributes): Add naked.
12270         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
12271         * doc/extend.texi: Update C4x function attributes.
12272
12273 2003-01-06  Richard Henderson  <rth@redhat.com>
12274
12275         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
12276         properly when changing "local-ness".
12277         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
12278
12279 2003-01-06  Dale Johannesen  <dalej@apple.com>
12280
12281         * config/darwin-protos.h:  Add prototypes for new section functions.
12282
12283 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
12284
12285         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
12286         to EABI.
12287
12288 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
12289
12290         * hwint.h: If the current compiler has no 64-bit type at all,
12291         make HOST_WIDEST_INT 32 bits.
12292
12293 2003-01-06  Eric Christopher  <echristo@redhat.com>
12294
12295         * config/mips/mips.md (movdf_internal2): Fix constraints.
12296
12297 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
12298
12299         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
12300
12301 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
12302
12303         * config/mips/mips.md (leadi): Use dla rather than la.
12304
12305 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
12306
12307         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
12308         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
12309
12310 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
12311
12312         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
12313         redefinition.
12314
12315 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
12316
12317         * config/h8300/h8300.md (*extzv_8_23): New.
12318
12319 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12320
12321         * pa64-hpux.h (JCR_SECTION_NAME): Define.
12322         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
12323         USE_EH_FRAME_REGISTRY when defining.
12324
12325 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
12326
12327         * config/h8300/h8300.c (output_a_shift): Do not output a
12328         variable shift.
12329         * config/h8300/h8300.md (two splitters): New.
12330
12331 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
12332
12333         * config/mips/mips.md: Disable the movstrsi define_split.
12334
12335 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12336
12337         * alloc-pool.c: Don't include "libiberty.h".
12338         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
12339         * convert.c (convert_to_real): Hide unused variable.
12340
12341 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12342
12343         * Makefile.in (gtyp-gen.h): Const-ify.
12344         * gcov-dump.c (tag_table): Likewise.
12345
12346 2003-01-04  Bruce Korb  <bkorb@gnu.org>
12347
12348         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
12349         of *both* the file name and the fix name.
12350
12351 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
12352
12353         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
12354         collect2.
12355         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
12356         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
12357         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
12358         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
12359         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
12360         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
12361         elfos.h.
12362         (EH_FRAME_IN_DATA_SECTION): Delete define.
12363         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
12364         (STARTFILE_SPEC): Use crtbegin.o.
12365         (ENDFILE_SPEC): Use crtend.o.
12366         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
12367         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
12368         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
12369         DTOR_LIST_BEGIN): Define.
12370         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
12371         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
12372         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
12373
12374 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
12375
12376         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
12377         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
12378         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
12379         Cleanup handling of replacement text.
12380         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
12381
12382 2003-01-04  Bruce Korb  <bkorb@gnu.org>
12383
12384         * fixinc/tests/base/math.h: removed obsolete results
12385         * fixinc/tests/base/stdlib.h: ditto
12386         * fixinc/tests/base/sys/param.h: ditto
12387         * fixinc/tests/base/sys/stat.h: ditto
12388         * fixinc/tests/base/time.h: ditto
12389         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
12390         * fixinc/tests/base/sys/byteorder.h: ditto
12391         * fixinc/inclhack.def: Remove superfluous backslashes
12392
12393 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
12394
12395         * config/h8300/h8300-protos.h: Add prototypes for
12396         the new functions defined below.
12397         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
12398         define.
12399         (dosize): Emit RTL instead of assembly code.
12400         (push): Likewise.
12401         (pop): Likewise.
12402         (h8300_output_function_prologue): Remove.
12403         (h8300_expand_prologue): New.
12404         (h8300_expand_epilogue): New.
12405         (h8300_output_function_epilogue): Do only the reset of
12406         pragma_saveall.
12407         * config/h8300/h8300.md (push_h8300): New.
12408         (push_h8300hs): Likewise.
12409         (pop_h8300): Likewise.
12410         (pop_h8300hs): Likewise.
12411         (*stm_h8300s_2): Change the name to stm_h8300s_2.
12412         (*stm_h8300s_3): Change the name to stm_h8300s_3.
12413         (*stm_h8300s_4): Change the name to stm_h8300s_4.
12414         (*ldm_h8300s_2): New.
12415         (*ldm_h8300s_3): Likewise.
12416         (*ldm_h8300s_4): Likewise.
12417         (return): Likewise.
12418         (*return_1): Likewise.
12419         (prologue): Likewise.
12420         (epilogue): Likewise.
12421         (monitor_prologue): Likewise.
12422
12423 2003-01-03  Dale Johannesen  <dalej@apple.com>
12424
12425         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
12426           machopic_picsymbol_stub1.
12427           (EXTRA_SECTION_FUNCTIONS):  Ditto.
12428         * rs6000/rs6000.c:  Update copyright.
12429           (machopic_output_stub):  Use them.  Remove an insn from stub code.
12430
12431 2003-01-02  Jason Merrill  <jason@redhat.com>
12432
12433         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
12434
12435         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
12436         static/external decls.
12437
12438         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
12439         outermost scope.
12440         * c-decl.c (c_make_fname_decl): Push the decls there, too.
12441
12442 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
12443
12444         * config/h8300/h8300-protos.h: Add a prototype for
12445         h8300_current_function_interrupt_function_p.
12446         * config/h8300/h8300.c (interrupt_handler): Remove.
12447         (os_task): Likewise.
12448         (monitor): Likewise.
12449         (pragma_interrupt): New.
12450         (WORD_REG_USED): Use
12451         h8300_current_function_interrupt_function_p.
12452         (dosize): Likewise.
12453         (h8300_output_function_prologue): Likewise.
12454         Do not set interrupt_handler, os_task, monitor.
12455         (h8300_output_function_prologue): Use
12456         h8300_current_function_interrupt_function_p.
12457         Do not set interrupt_handler, os_task, monitor.
12458         (h8300_current_function_interrupt_function_p): New.
12459         (h8300_pr_interrupt): Set pragma_interrupt.
12460         (h8300_insert_attributes): Reset pragma_interrupt.
12461
12462 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12463
12464         * doc/install.texi (Configuration): Fix markup for reference to
12465         gcc/config.gcc.
12466
12467 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
12468
12469         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
12470         (*iorhi3_two_qi): Likewise.
12471         (*iorsi3_zexthi): Likewise.
12472         (*xorhi3_zextqi): Likewise.
12473         (*xorsi3_zexthi): Likewise.
12474         (*xorsi3_zextqi): Likewise.
12475
12476 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
12477
12478         * config/h8300/h8300.c (stack_pointer_operand): New.
12479         (const_int_gt_2_operand): Likewise.
12480         (const_int_ge_8_operand): Likewise.
12481         * config/h8300/h8300.md (a splitter): Likewise.
12482         (a peephole2): Likewise.
12483         * config/h8300/h8300-protos.h: Add prototypes for the new
12484         functions above.
12485
12486 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
12487
12488         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
12489         objc/objc-act.h: Fix copyright years.
12490
12491 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
12492
12493         * doc/passes.texi: Fix documentation for -fssa-ccp
12494
12495 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
12496
12497         * gccbug.in: Update for new categories.
12498
12499 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
12500
12501         * config/h8300/h8300.md: Reorder some patterns.
12502
12503 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
12504
12505         * config/h8300/h8300.c (output_logical_op): Fix a warning.
12506
12507 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
12508
12509         * config/darwin-protos.h, config/c4x/c4x-protos.h,
12510         config/cris/cris-protos.h, config/i370/i370-protos.h,
12511         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
12512         config/v850/v850-protos.h: Use struct, and don't conditionally
12513         compile on GCC_C_PRAGMA_H.
12514
12515 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
12516
12517         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
12518         * config/h8300/h8300-protos.h: Likewise.
12519         * config/sh/sh-protos.h: Likewise.
12520
12521 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
12522
12523         * config/arm/arm-protos.h: Use struct cpp_reader instead of
12524         cpp_reader.
12525         * config/h8300/h8300-protos.h: Likewise.
12526         * config/sh/sh-protos.h: Likewise.
12527
12528 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
12529
12530         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
12531         arm_pr_long_calls_off): Use struct.
12532         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
12533         : Similarly.
12534         Don't include cpplib.h.
12535         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
12536         sh_pr_nosave_low_regs): Similarly.
12537
12538 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
12539
12540         * config/h8300/h8300.c: Include cpplib.h.
12541
12542 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
12543
12544         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
12545           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
12546           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
12547           "GCC" in the copyright header.
12548
12549 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
12550
12551         * c-pragma.c (c_register_pragma): New.
12552         (init_pragma): Use it.
12553         * c-pragma.h (cpp_register_pragma): Don't declare.
12554         (c_register_pragma): New.
12555         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
12556         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
12557         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
12558         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
12559         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
12560         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
12561         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
12562         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
12563         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
12564         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
12565         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
12566         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
12567
12568 See ChangeLog.8 for earlier changes.